JP2007097203A - Method of correcting light volume difference - Google Patents

Method of correcting light volume difference Download PDF

Info

Publication number
JP2007097203A
JP2007097203A JP2006300944A JP2006300944A JP2007097203A JP 2007097203 A JP2007097203 A JP 2007097203A JP 2006300944 A JP2006300944 A JP 2006300944A JP 2006300944 A JP2006300944 A JP 2006300944A JP 2007097203 A JP2007097203 A JP 2007097203A
Authority
JP
Japan
Prior art keywords
image
low
light
pass filter
pixel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2006300944A
Other languages
Japanese (ja)
Other versions
JP4566974B2 (en
Inventor
Toshiaki Harada
利明 原田
Eiji Yamada
栄二 山田
Tetsuo Iwaki
哲男 岩木
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.)
Sharp Corp
Original Assignee
Sharp Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sharp Corp filed Critical Sharp Corp
Priority to JP2006300944A priority Critical patent/JP4566974B2/en
Publication of JP2007097203A publication Critical patent/JP2007097203A/en
Application granted granted Critical
Publication of JP4566974B2 publication Critical patent/JP4566974B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To suppress the deterioration of a composite image, based on the light volume difference between a plurality of images, in the light volume correcting method which obtains high solution images by obtaining one composite image from a plurality of images produced using image shifting. <P>SOLUTION: An image memory 4 stores a plurality of images photographed by a photographing element, while composing them. An LPF (low-pass filter) 5 cuts a spatial frequency component less than a predetermined frequency in a predetermined direction from a composite image data stored in the image memory 4, whereby the image data in which the light volume difference between the plurality of images is corrected, is produced to rewrite the data stored in the image memory 4. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、高解像度画像を得ることのできる光量差補正方法に関し、特に、被写体からの画像光を撮像手段に対して相対的に移動させて複数の画像を撮像して、それらを合成して1つの高解像度画像を得る光量差補正方法に関する。   The present invention relates to a light amount difference correction method capable of obtaining a high-resolution image, and in particular, takes a plurality of images by moving image light from a subject relative to an imaging means, and combines them. The present invention relates to a light amount difference correction method for obtaining one high-resolution image.

近年、静止画像を撮像する撮像装置として、電子スチルカメラと称される静止画像用撮像装置が実用化されている。また、動画像を撮像する動画像用撮像装置として、家庭用ビデオカメラが実用化されている。これらの撮像装置では、被写体からの画像光を受光して画像を撮像する手段として、固体撮像素子を用いる。この固体撮像素子は、いわゆる2次元CCD(Charge Coupled Device :電荷結合素子)イメージセンサである。この固体撮像素子では、2次元平面である結像面に、複数の受光領域が行列状に配置されている。   In recent years, a still image imaging device called an electronic still camera has been put into practical use as an imaging device for capturing a still image. A home video camera has been put to practical use as a moving image capturing apparatus for capturing a moving image. In these imaging apparatuses, a solid-state imaging device is used as means for receiving image light from a subject and capturing an image. This solid-state imaging device is a so-called two-dimensional CCD (Charge Coupled Device) image sensor. In this solid-state imaging device, a plurality of light receiving regions are arranged in a matrix on an image plane that is a two-dimensional plane.

撮像装置は、被写体からの画像光を固体撮像素子の結像面上に結像させて、各受光領域に受光させる。画像光は、受光領域での光の受光量を示す電気信号に光電変換された後、画像信号として記録媒体に記録される。この画像信号を単独で表示装置に目視表示させると、撮像した静止画像となる。また、この画像信号を撮像した順に連続的に目視表示させると、撮像した動画像となる。   The imaging device forms image light from the subject on the imaging surface of the solid-state imaging device and receives the light in each light receiving region. The image light is photoelectrically converted into an electric signal indicating the amount of light received in the light receiving area, and then recorded on the recording medium as an image signal. When this image signal is visually displayed on a display device alone, a captured still image is obtained. Further, when the image signals are continuously visually displayed in the order in which the image signals are captured, a captured moving image is obtained.

このような撮像装置において撮像された画像は、固体撮像素子の受光領域に対応した画素から構成される。すなわち、各撮像素子は、空間的に連続的に変化する画像光の光量を、空間サンプリング周波数でサンプリングしていることと等しい。この空間サンプリング周波数は、画素の配列周期の逆数である。これによって、画像光の光量変化は、画素単位で平滑化される。ゆえに、画素の数が多いほど画像の解像度が向上する。   An image picked up by such an image pickup apparatus is composed of pixels corresponding to the light receiving region of the solid-state image pickup device. That is, each image sensor is equivalent to sampling the amount of image light that varies spatially continuously at a spatial sampling frequency. This spatial sampling frequency is the reciprocal of the pixel arrangement period. Thereby, the light quantity change of the image light is smoothed in units of pixels. Therefore, the larger the number of pixels, the better the image resolution.

画像の解像度を上げる手法として、イメージシフトを用いた固体撮像装置がある。イメージシフトとは、固体撮像素子に入射される画像光の受光位置を移動させる手法である。イメージシフトを用いた固体撮像装置では、被写体からの画像光の結像面における受光位置を異ならせて、複数回撮像する。このように撮像された画像を、像の受光位置が一致するように重ね合わせて、出力画像を生成する。   As a technique for increasing the resolution of an image, there is a solid-state imaging device using image shift. Image shift is a technique for moving the light receiving position of image light incident on a solid-state imaging device. In a solid-state imaging device using image shift, imaging is performed a plurality of times with different light receiving positions on the imaging plane of image light from a subject. The output images are generated by superimposing the captured images so that the light receiving positions of the images coincide with each other.

このイメージシフト機構を用いた固体撮像装置としては、引用文献1(特開昭63−284980号公報)に記載されたものが知られている。この固体撮像装置では、被写体からの光を集光する集光レンズと固体撮像素子との間に、光を透過する平行平板が介在される。平行平板は、光軸に対して垂直に配置された第1の状態と、視野の水平および垂直方向に対して45度を成す斜め方向を軸として傾けられた第2の状態を取る。固体撮像素子では、平行平板が第1の状態にあるときに第1の画像を撮像し、その後平行平板を傾けて第2の状態における第2の画像を撮像する。   As a solid-state imaging device using this image shift mechanism, the one described in cited document 1 (Japanese Patent Laid-Open No. 63-284980) is known. In this solid-state imaging device, a parallel plate that transmits light is interposed between a condensing lens that collects light from a subject and the solid-state imaging device. The parallel plate takes a first state arranged perpendicular to the optical axis and a second state inclined about an oblique direction of 45 degrees with respect to the horizontal and vertical directions of the field of view. The solid-state imaging device captures the first image when the parallel plate is in the first state, and then tilts the parallel plate to capture the second image in the second state.

図32は、出力画像の等価的な画素配列を示す図である。この出力画像はモノクロ画像である。また、この固体撮像素子の受光領域は、水平配列周期PH、および垂直配列周期PVで行列状に配置されていおり、上記第1の画像,第2の画像は被写体からの光を互いに1/2画素ずつ斜め方向にずらして撮像されているものとする。このとき、上記2枚の画像が合成された出力画像において、画素は、水平方向配列周期(PH/2)、垂直方向配列周期(PV/2)で配列される。すなわち、画像全体として画素の数が4倍となる。図32において、画素s1は第1の状態で撮像された第1原画像から画素データが得られる実画素である。また画素s2は、第2の状態で撮像された第2原画像から画素データが得られる実画素である。図32では、実画素にハッチングを付して示す。これによって、出力画像では、各画素のデータが得られた実画素は市松状に配置される。   FIG. 32 is a diagram illustrating an equivalent pixel arrangement of an output image. This output image is a monochrome image. The light receiving regions of the solid-state imaging device are arranged in a matrix with a horizontal array period PH and a vertical array period PV, and the first image and the second image halve light from the subject. It is assumed that the image is picked up by shifting each pixel in an oblique direction. At this time, in the output image obtained by combining the two images, the pixels are arranged in the horizontal direction arrangement period (PH / 2) and the vertical direction arrangement period (PV / 2). That is, the number of pixels in the entire image is quadrupled. In FIG. 32, a pixel s1 is an actual pixel from which pixel data is obtained from the first original image captured in the first state. The pixel s2 is an actual pixel from which pixel data is obtained from the second original image captured in the second state. In FIG. 32, the actual pixels are shown with hatching. Thereby, in the output image, the actual pixels from which the data of each pixel is obtained are arranged in a checkered pattern.

画素データを有しない画素(仮想画素)には、各配列方向に沿ってそれぞれ2つの実画素が隣接する。これら仮想画素の画素データは、例えば隣接する4つの実画素の画素データを平均した値を補間して得ることができる。このようにして、本従来技術の固体撮像装置では、固体撮像素子の受光領域の数の4倍の数の画素からなる高解像度画像を得ることができる。   A pixel (virtual pixel) that does not have pixel data is adjacent to two real pixels along each arrangement direction. The pixel data of these virtual pixels can be obtained, for example, by interpolating values obtained by averaging pixel data of four adjacent real pixels. In this way, in the solid-state imaging device according to the conventional technique, a high-resolution image including four times as many pixels as the number of light-receiving regions of the solid-state imaging device can be obtained.

上述した固体撮像装置では、イメージシフト処理を行い連続して撮像される2枚の原画像から、1枚の出力画像の画像信号を生成する。ゆえに、この装置では、2枚の原画像を撮像する際に、2枚の原画像間に光量差を生じさせないために、各露光時間が等しいことが望まれる。しかしながら、各露光時間が等しくした場合でも、蛍光灯のフリッカなどによって、2枚の原画像間に光量差が生じてしまうことがある。   In the solid-state imaging device described above, image shift processing is performed to generate an image signal of one output image from two original images that are successively captured. Therefore, in this apparatus, when capturing two original images, it is desirable that each exposure time be equal in order not to cause a light amount difference between the two original images. However, even when the exposure times are the same, there may be a difference in the amount of light between the two original images due to flickering of fluorescent lamps.

このように2枚の原画像間に光量差が生じた場合には、本来画像光には現れない市松模様が、出力画像に現れてしまい、著しく画質が損なわれる問題点が生じる。図33は、平坦な無地模様を撮像する場合に現れた市松模様の例を示す図である。図において各画素に記入している数字はその画素における画素データの値を示しており、第1の画像における画素s1が画素データつまり光量が100であるとしている。また、第2の画像における画素s2は、本来画素データが100であるところが、上述の現象により画素データ90になり光量が低下しているものとする。このとき、隣接する4つの実画素の画素データを平均補間することで仮想画素の画像データを求めるものとすれば、画素データは95と計算される。このように2枚の画像の間に光量差が生じた場合には、本来全ての画素の画素データが100である無地模様であるところが、図33のように市松模様が現れてしまう。   Thus, when a light quantity difference occurs between two original images, a checkered pattern that does not originally appear in the image light appears in the output image, resulting in a problem that the image quality is significantly impaired. FIG. 33 is a diagram illustrating an example of a checkered pattern that appears when a flat plain pattern is imaged. In the figure, the number written in each pixel indicates the value of the pixel data in that pixel, and the pixel s1 in the first image is assumed to have pixel data, that is, the light quantity is 100. Further, it is assumed that the pixel data s2 in the second image originally has pixel data of 100, but becomes pixel data 90 due to the above-described phenomenon, and the amount of light is reduced. At this time, if the image data of the virtual pixel is obtained by averaging the pixel data of the four adjacent real pixels, the pixel data is calculated as 95. In this way, when a light amount difference occurs between the two images, a checkered pattern appears as shown in FIG. 33 where the pixel data of all pixels is originally a plain pattern.

本出願人は先にこの問題点を解決する光量差補正手段を有する撮像装置を提案している(引用文献2(特願平8−267552号;発明の名称「撮像装置」))。以下に、本出願人がここで提案した光量差補正方法を説明する。   The present applicant has previously proposed an imaging apparatus having a light amount difference correcting means for solving this problem (Cited document 2 (Japanese Patent Application No. 8-267552; title of the invention “imaging apparatus”)). Below, the light quantity difference correction method proposed by the present applicant will be described.

まず、一つの光量差補正方法(光量差補正方法1)を図34から図36に基づいて説明する。図34は、第1の原画像を所定のブロックに分割した1つのブロックのヒストグラムを示し、図35は、第2の原画像を所定のブロックに分割した1つのブロックのヒストグラムを示している。光量差補正手段は、2つの原画像の各ブロックに対応する画素の画素データの値(例えば8ビットで記録されている場合は0以上255以下の整数値を取る)の内、最小値、平均値、最大値をそれぞれ次のような方法で合わせることにより、2画面間での光量差の補正を行う。   First, one light quantity difference correction method (light quantity difference correction method 1) will be described with reference to FIGS. FIG. 34 shows a histogram of one block obtained by dividing the first original image into predetermined blocks, and FIG. 35 shows a histogram of one block obtained by dividing the second original image into predetermined blocks. The light amount difference correction means is a minimum value or average value among pixel data values of pixels corresponding to each block of two original images (for example, an integer value of 0 or more and 255 or less when recorded in 8 bits). The light quantity difference between the two screens is corrected by adjusting the value and the maximum value in the following manner.

ここで、第1の画像に対応した画素の画素データの最小値、平均値、最大値をそれぞれα、β、γとする。一方第2の画像に対応した画素の画素データの最小値、平均値、最大値をそれぞれδ、ε、ζとする。   Here, the minimum value, the average value, and the maximum value of the pixel data of the pixels corresponding to the first image are α, β, and γ, respectively. On the other hand, the minimum value, the average value, and the maximum value of the pixel data of the pixels corresponding to the second image are δ, ε, and ζ, respectively.

そして、図36に示すように、横軸に光量差補正前の第2の画像に対応した画素の画素データの値を、また縦軸に光量差補正後の第2の画像に対応した画素の画素データの値を取り、点η(δ,α)、点θ(ε,β)、点ι(ζ,γ)を取る。そして、上記の点η,θ,ιを直線で結んで射影を行い、第2の画像の画素の画素データの値δ、ε、ζを、それぞれ第1の画像の画素の画素データの値α、β、γに変換する。   As shown in FIG. 36, the horizontal axis represents the pixel data value of the pixel corresponding to the second image before the light amount difference correction, and the vertical axis represents the pixel data corresponding to the second image after the light amount difference correction. The pixel data values are taken, and point η (δ, α), point θ (ε, β), and point ι (ζ, γ) are taken. Then, projection is performed by connecting the above points η, θ, ι with straight lines, and pixel data values δ, ε, ζ of the pixels of the second image are respectively converted into pixel data values α of the pixels of the first image. , Β, γ.

上記の構成によれば、第2の画像の画素の画素データの所定の画素値(つまり、最小値、平均値、最大値)が、光量差補正手段によって第1の画像の所定の画素データの値にそれぞれ変換されるので、2枚の原画像間において所定の画素データの値同士が一致する。   According to the above configuration, the predetermined pixel value (that is, the minimum value, the average value, and the maximum value) of the pixel data of the pixel of the second image is converted into the predetermined pixel data of the first image by the light amount difference correction unit. Since each value is converted to a value, the values of predetermined pixel data match between the two original images.

これにより、2枚の原画像間の撮像光の光量差を補正することができ、上記の光量差に起因する出力画像の画質劣化を防止することができる。   As a result, the difference in the amount of imaging light between the two original images can be corrected, and the deterioration in the image quality of the output image due to the difference in the amount of light can be prevented.

また、上記提案においては、移動平均を求めることにより光量差補正を行う方法(光量差補正方法2)も示している。この光量差補正方法2は、光量差補正を行うべき第2画像のある画素において、この画素位置における2枚の原画像毎に移動平均を求め、その移動平均の差、つまり光量差を求める。この光量差を第2画像のある画素の画素データに加算する。この作業を第2画像の画素毎に行うことにより光量差補正するものである。   The above proposal also shows a method of correcting the light amount difference by obtaining a moving average (light amount difference correcting method 2). This light quantity difference correction method 2 obtains a moving average for every two original images at this pixel position in a pixel of a second image to be subjected to light quantity difference correction, and obtains a difference between the moving averages, that is, a light quantity difference. This light amount difference is added to the pixel data of a certain pixel in the second image. By performing this operation for each pixel of the second image, the light amount difference is corrected.

また、上記提案では、各撮像を行う光量を検出するセンサーを別途設け、このセンサー出力から得られる各原画像の光量値に基づいて光量差補正を行う方法(光量差補正方法3)も示している。
特開昭63−284980号公報 特願平8−267552号公報(平成10年(1998)5月6日)
The above proposal also shows a method (light amount difference correction method 3) in which a sensor for detecting the amount of light for each imaging is separately provided and light amount difference correction is performed based on the light amount value of each original image obtained from the sensor output. Yes.
JP-A 63-284980 Japanese Patent Application No. 8-267552 (May 6, 1998)

上記した本出願人が提案した光量差補正方法1および2は、図33のような無地模様、または光量変化の緩やかな模様では画質を劣化させることなく光量差補正を行うことができる。   In the light quantity difference correction methods 1 and 2 proposed by the applicant, the light quantity difference correction can be performed without degrading the image quality in a plain pattern as shown in FIG.

しかしながら、光量差補正方法1では、ブロック毎に光量差補正を行うために、出力画像にブロックの境界が現れる(画像圧縮技術にて公知のブロック歪みに似たようなもの)という問題点がある。また、最小値、平均値、最大値の3つの光量に基づいて光量差補正を行っているため、この3つのパラメータの誤差による影響が大きい。例えば、第2原画像信号の最大値がノイズなどの影響により本来の光量よりも大きくなってしまった場合、光量差補正後の第2原画像信号は、第1原画像信号よりも暗くなってしまい、市松模様が残ったままになり、消滅しない。   However, the light amount difference correction method 1 has a problem that a block boundary appears in the output image (similar to block distortion known in image compression technology) in order to perform light amount difference correction for each block. . Further, since the light amount difference correction is performed based on the three light amounts of the minimum value, the average value, and the maximum value, the influence of the error of these three parameters is large. For example, when the maximum value of the second original image signal becomes larger than the original light amount due to the influence of noise or the like, the second original image signal after the light amount difference correction becomes darker than the first original image signal. The checkerboard pattern will remain and will not disappear.

また、光量差補正方法2では、エッジ部分で、偽エッジが発生してエッジが2重になったり、エッジ周辺部の光量差補正が十分に行われなくなるという問題が生じる。   Further, in the light amount difference correction method 2, there arises a problem that a false edge occurs at the edge portion and the edges are doubled, or the light amount difference correction in the peripheral portion of the edge is not sufficiently performed.

また、光量を検出するセンサーを別途設ける光量差補正方法3は、原画像全体に対して画一的に光量差補正を行う。そのため、原画像の光軸部分、周辺部分などの領域によって光量差が異なる場合には、正しく光量差補正を行うことができない。特に、メカシャッターを用いて露光時間を制御する場合には、光軸周辺の露光時間は、周辺部の露光時間よりも長く、顕著に画質が劣化してしまう。   Further, the light amount difference correction method 3 in which a sensor for detecting the light amount is separately provided performs light amount difference correction uniformly on the entire original image. For this reason, when the light amount difference varies depending on areas such as the optical axis portion and the peripheral portion of the original image, the light amount difference correction cannot be performed correctly. In particular, when the exposure time is controlled using a mechanical shutter, the exposure time around the optical axis is longer than the exposure time around the periphery, and the image quality is significantly degraded.

本発明は、上記問題を解決するためになされたものであって、2枚の原画像間に光量差が生じ、また画像の部分的に光量が異なる場合でも、光量差補正により、出力画像の画質の劣化を防止することができる光量差補正方法を提供することを目的とする。   The present invention has been made in order to solve the above-described problem. A light amount difference is generated between two original images, and even when the light amount is partially different from the original image, the output image is corrected by the light amount difference correction. It is an object of the present invention to provide a light amount difference correction method capable of preventing image quality deterioration.

本発明に係る光量差補正方法は、被写体からの画像光を撮像して、撮像手段によってモノクロの画像データを生成し、記画像光に対して前記撮像手段を複数の相対位置に移動させ、各相対位置において前記撮像手段に画像データを生成し、前記撮像手段が生成した複数個の画像データを合成し、前記複数個の画像データ間の光量差に基づいて発生する空間周波数成分を取り除くことを特徴としている。   In the light amount difference correction method according to the present invention, image light from a subject is imaged, monochrome image data is generated by the imaging unit, the imaging unit is moved to a plurality of relative positions with respect to the recording image light, Generating image data in the imaging unit at a relative position, combining a plurality of image data generated by the imaging unit, and removing a spatial frequency component generated based on a light amount difference between the plurality of image data; It is a feature.

本発明に係る光量差補正方法は、被写体からの色付きの画像光を撮像して、撮像手段によって1画像光当たりu種類の画像データを生成し、前記画像光に対して前記撮像手段をv通り(v≧2)の相対位置に移動させ、各相対位置において前記撮像手段に画像データを生成し、前記撮像手段が生成したu×v個の画像データを画像データの種類毎に合成し、前記v通りの相対位置における画像データ間の光量差に基づいて発生する空間周波数成分を取り除くことを特徴としている。   In the light amount difference correction method according to the present invention, colored image light from a subject is imaged, u types of image data per image light are generated by an imaging unit, and v types of image capturing units with respect to the image light. (V ≧ 2) is moved to a relative position, image data is generated in the imaging means at each relative position, and u × v pieces of image data generated by the imaging means are combined for each type of image data, A feature is that a spatial frequency component generated based on a light amount difference between image data at v relative positions is removed.

前記光量差補正方法では、上記被写体からの色付きの画像光を、色フィルタを介して撮像し、上記uは3であり、上記vは2であり、上記色フィルタの透過領域の基本配列パターンがベイヤー配列からなっていることが好ましい。   In the light amount difference correction method, colored image light from the subject is imaged through a color filter, u is 3, v is 2, and a basic array pattern of a transmission region of the color filter is It is preferable to consist of a Bayer array.

前記光量差補正方法では、前記画像データの合成によってデータを有することのできない画素のデータを、補間により求め追加し、前記画像データを生成した後、前記補間により求め追加する前の画像データに対して、上記空間周波数成分を取り除くことが好ましい。   In the light amount difference correction method, pixel data that cannot have data by combining the image data is obtained by interpolation and added, and after the image data is generated, the image data before being obtained and added by interpolation Thus, it is preferable to remove the spatial frequency component.

前記光量差補正方法では、前記画像データの合成によってデータを有することのできない画素のデータを、補間により求め追加し、前記画素のデータを、補間により求め追加した後の画像データに対して、上記空間周波数成分を取り除くことが好ましい。   In the light quantity difference correction method, pixel data that cannot have data by combining the image data is obtained by interpolation and the pixel data is obtained by interpolation and the image data after addition is added to the image data. It is preferable to remove the spatial frequency component.

前記光量差補正方法では、前記画像光に対して前記撮像手段を、第1位置と、該第1位置から水平方向に水平画素間隔の半分、および垂直方向に垂直画素間隔の半分だけ移動させた第2位置とに、相対的に移動させることが好ましい。   In the light amount difference correction method, the image pickup means is moved with respect to the image light by a first position, a half of a horizontal pixel interval in the horizontal direction, and a half of a vertical pixel interval in the vertical direction. It is preferable to move relative to the second position.

前記光量差補正方法では、前記画像光に対して前記撮像手段を、第1位置と、該第1位置から水平方向に水平画素間隔だけ移動させた第2位置とに、相対的に移動させることが好ましい。   In the light amount difference correction method, the imaging unit is moved relative to the image light to a first position and a second position moved from the first position in the horizontal direction by a horizontal pixel interval. Is preferred.

前記光量差補正方法では、前記画像光に対して前記撮像手段を、第1位置と、該第1位置から垂直方向に垂直画素間隔だけ移動させた第2位置とに、相対的に移動させることが好ましい。   In the light amount difference correction method, the image pickup unit is moved relative to the image light to a first position and a second position moved vertically from the first position by a vertical pixel interval. Is preferred.

前記光量差補正方法では、前記複数個または前記u種類の画像データを合成した画像データの画素配列の基底帯域を通過帯域とする2次元フィルタを用いて上記空間周波数成分を取り除くことが好ましい。   In the light amount difference correction method, it is preferable that the spatial frequency component is removed using a two-dimensional filter having a base band of a pixel array of image data obtained by combining the plurality or u types of image data as a pass band.

前記光量差補正方法では、前記撮像手段を複数の相対位置に移動させる移動量をX画素分(X>0)としたときに、その移動方向に2×(X−INT(X))を周期とする空間周波数をカットオフ周波数とし、それ以下の空間周波数を通過帯域とする1次元フィルタを用いて上記空間周波数成分を取り除くことが好ましい。   In the light amount difference correction method, when the amount of movement for moving the image pickup means to a plurality of relative positions is X pixels (X> 0), 2 × (X−INT (X)) is a period in the movement direction. It is preferable to remove the spatial frequency component using a one-dimensional filter having a spatial frequency as a cutoff frequency and a spatial frequency lower than that as a passband.

但し、ここで、INT(y)はyを超えない最大の整数を表している。   Here, INT (y) represents the maximum integer not exceeding y.

前記光量差補正方法では、前記複数個または前記u種類の画像データを合成した画像データの画素配列の基底帯域の内の、水平方向の最高空間周波数成分と垂直方向の最高空間周波数成分とを、少なくとも減衰させるフィルタを用いて上記空間周波数成分を取り除くことが好ましい。   In the light amount difference correction method, the highest spatial frequency component in the horizontal direction and the highest spatial frequency component in the vertical direction in the base band of the pixel array of the image data obtained by synthesizing the plurality or u types of image data, It is preferable to remove the spatial frequency component using at least an attenuation filter.

前記光量差補正方法では、前記基底帯域の水平方向での最高空間周波数をカットオフ周波数とする水平方向の1次元ローパスフィルタと、前記基底帯域の垂直方向での最高空間周波数をカットオフ周波数とする垂直方向の1次元ローパスフィルタと、が縦続接続されてなるフィルタを用いて上記空間周波数成分を取り除くことが好ましい。   In the light quantity difference correction method, a horizontal one-dimensional low-pass filter that uses a maximum spatial frequency in the horizontal direction of the baseband as a cutoff frequency, and a maximum spatial frequency in the vertical direction of the baseband is used as a cutoff frequency. It is preferable to remove the spatial frequency component using a filter in which a vertical one-dimensional low-pass filter is cascade-connected.

以上のように本発明の光量差補正方法では、画像光に対して前記撮像手段を複数の相対位置に移動させることによって複数の原画像信号間に生じる光量差基づいて発生する空間周波数成分を取り除くため、光量差に基づく縞模様を抑制することができ、画質を向上できる。   As described above, in the light amount difference correction method of the present invention, the spatial frequency component generated based on the light amount difference generated between the plurality of original image signals is removed by moving the imaging unit to a plurality of relative positions with respect to the image light. Therefore, a striped pattern based on the light amount difference can be suppressed, and the image quality can be improved.

また、複数の原画像の合成後補間処理前に前記空間周波数成分を取り除くことにより、光量差補正(フィルタリング)における処理量を減らすことができ、高速処理が可能となる。   Further, by removing the spatial frequency component before the interpolation process after combining a plurality of original images, the processing amount in the light amount difference correction (filtering) can be reduced, and high-speed processing is possible.

また、複数の原画像の補間処理後に前記空間周波数成分を取り除くことにより、補間処理により発生する縞模様を、光量差により発生する縞模様と同時に抑制することが可能となり、画質を向上できる。また、水平または垂直方向のエッジを的確に補正することができる。   Further, by removing the spatial frequency component after interpolation processing of a plurality of original images, it is possible to suppress the stripe pattern generated by the interpolation process simultaneously with the stripe pattern generated by the light amount difference, and the image quality can be improved. Also, the horizontal or vertical edge can be accurately corrected.

また、イメージシフトの方向を斜め方向とすることで、少ないイメージシフト回数で高画質の画像を得ることができる。   Further, by setting the image shift direction to an oblique direction, a high-quality image can be obtained with a small number of image shifts.

また、イメージシフトの方向を水平方向または垂直方向とすることで、水平方向または垂直方向の解像度を向上させることができる。   Further, by setting the image shift direction to the horizontal direction or the vertical direction, the resolution in the horizontal direction or the vertical direction can be improved.

さらに、上記フィルタを、複数の原画像を合成した画像データの画素配列の基底帯域を通過帯域とする2次元フィルタ、または、イメージシフトの移動方向に上記基底帯域の境界線の周波数成分をカットオフ周波数とする1次元フィルタを用いて上記空間周波数成分を取り除くことによって、光量差に基づく縞模様を確実に抑制できる。   Further, the filter is a two-dimensional filter that uses the base band of the pixel array of the image data obtained by combining a plurality of original images as a pass band, or the frequency component of the boundary line of the base band is cut off in the image shift moving direction. By removing the spatial frequency component using a one-dimensional filter having a frequency, a striped pattern based on a light amount difference can be reliably suppressed.

また、複数の原画像を合成した画像データの画素配列の基底帯域の水平、垂直方向での最高周波数成分を少なくともカットする(減衰する)フィルタを用いて上記空間周波数成分を取り除くことによって、最も縞模様が目立つ部分の周波数成分をカットでき、且つ、上記基底帯域中の周波数成分を必要以上にカットすることを防止できる。   Further, by removing the spatial frequency component using a filter that cuts (attenuates) at least the highest frequency component in the horizontal and vertical directions of the baseband of the pixel array of the image data obtained by combining a plurality of original images, the most fringe is obtained. It is possible to cut the frequency component of the portion where the pattern is conspicuous and to prevent the frequency component in the base band from being cut more than necessary.

さらに、複数の原画像を合成した画像データの画素配列の基底帯域の水平,垂直方向での最高周波数をカットオフ周波数とする水平方向1次元ローパスフィルタと垂直方向1次元ローパスフィルタとが縦続接続したフィルタを用いて上記空間周波数成分を取り除くことによって、最も縞模様が目立つ部分の周波数成分をカットできるとともに、上記基底帯域中の周波数成分を必要以上にカットすることを抑制できるため、画質の向上が図れる。また、上記光量差補正方法に用いる回路構成を簡略化できる。   In addition, a horizontal one-dimensional low-pass filter and a vertical one-dimensional low-pass filter are cascaded with the highest frequency in the horizontal and vertical directions of the baseband of the pixel array of the image data composed of a plurality of original images as the cutoff frequency. By removing the spatial frequency component using a filter, it is possible to cut the frequency component of the most conspicuous stripe pattern, and to suppress cutting the frequency component in the baseband more than necessary, thereby improving the image quality. I can plan. Further, the circuit configuration used for the light quantity difference correction method can be simplified.

(第1実施の形態)図1は、本実施の形態における撮像装置の構成を示している。本実施の形態における撮像装置は、同図に示すように、光学系1、固体撮像素子2、A/D変換器(Analog to Digital Converter )3、画像メモリ4、LPF5、駆動部6、同期信号発生部7、メモリ制御部8、信号処理部9、記録媒体10を備えている。   (First Embodiment) FIG. 1 shows a configuration of an image pickup apparatus according to the present embodiment. As shown in the figure, the imaging apparatus according to the present embodiment includes an optical system 1, a solid-state imaging device 2, an A / D converter (Analog to Digital Converter) 3, an image memory 4, an LPF 5, a driving unit 6, and a synchronization signal. The generator 7, the memory controller 8, the signal processor 9, and the recording medium 10 are provided.

被写体からの画像光は、光学系1の集光レンズで集光された後、撮像素子2の結像面上に結像される。撮像素子2の結像面には、複数の受光領域PDが行列状に並べられる。   Image light from the subject is condensed by the condenser lens of the optical system 1 and then imaged on the imaging surface of the image sensor 2. A plurality of light receiving regions PD are arranged in a matrix on the imaging surface of the image sensor 2.

光学系1には、画像光を集光する集光レンズの他に、イメージシフト機構が含まれる。イメージシフト機構は、駆動部6により制御されて、あらかじめ定める時間毎に、結像面上の画像光の結像位置を第1および第2結像位置にそれぞれシフト移動させる。この動作をイメージシフト動作と称する。   The optical system 1 includes an image shift mechanism in addition to a condensing lens that condenses image light. The image shift mechanism is controlled by the drive unit 6 and shifts the imaging position of the image light on the imaging plane to the first and second imaging positions, respectively, at predetermined time intervals. This operation is referred to as an image shift operation.

撮像素子2は、予め定める露光時間だけ、光学系2からの画像光を各受光領域PDに受光させることによって、画像光を撮像する。露光時間が経過すると、撮像素子2は、あらかじめ定める時間毎に、各受光領域PDからの受光データを第1または第2原画像信号として、A/D変換器3に導出する。なお、第1および第2原画像信号は、それぞれ画像光が第1および第2結像位置に結像されたときに、画像光を撮像して得られる画像信号である。各原画像信号は、各受光領域PDでの受光量に対応する受光データからそれぞれ構成される。   The image sensor 2 captures image light by causing each light receiving area PD to receive image light from the optical system 2 for a predetermined exposure time. When the exposure time elapses, the image sensor 2 derives the light reception data from each light reception region PD as the first or second original image signal to the A / D converter 3 at predetermined time intervals. The first and second original image signals are image signals obtained by imaging the image light when the image light is imaged at the first and second imaging positions, respectively. Each original image signal is composed of received light data corresponding to the amount of light received in each light receiving area PD.

A/D変換器3は、撮像素子2からのアナログ信号である第1及び第2原画像信号をデジタル信号に変換して、画像メモリ4にストアする。   The A / D converter 3 converts the first and second original image signals, which are analog signals from the image sensor 2, into digital signals and stores them in the image memory 4.

同期信号発生部7は、2つの原画像信号の撮像動作に対応する同期信号を発生させ、駆動部6およびメモリ制御部8に与える。駆動部6は、光学系1内のイメージシフト機構を用いて、イメージシフト動作を行う。これによって、撮像素子2では、各受光領域PDが受光する画像光が、被写体の像の中で移動前の撮像光とずれる。メモリ制御部8(請求項における画像合成手段)は、受光データを結像位置の異なる2つの原画像信号毎に関連させて、画像メモリ4にストアする。   The synchronization signal generation unit 7 generates a synchronization signal corresponding to the imaging operation of the two original image signals, and supplies it to the drive unit 6 and the memory control unit 8. The drive unit 6 performs an image shift operation using an image shift mechanism in the optical system 1. Thereby, in the image sensor 2, the image light received by each light receiving area PD is shifted from the image light before movement in the image of the subject. The memory control unit 8 (image compositing means in the claims) stores the received light data in the image memory 4 in association with two original image signals having different imaging positions.

ローパスフィルタ(以下、LPFと云う)5(請求項における光量差補正手段)は、画像メモリ4からの原画像信号を入力し、それに対して後述する光量差補正を行った後、再び画像メモリ4にストアする。この際、画像メモリ4における光量差補正前の原画像信号は、光量差補正後の原画像信号に上書きされて、消去される。   A low-pass filter (hereinafter referred to as “LPF”) 5 (light quantity difference correction means in the claims) inputs an original image signal from the image memory 4, performs light quantity difference correction described later on the original image signal, and then again the image memory 4. To store. At this time, the original image signal before the light amount difference correction in the image memory 4 is overwritten and erased by the original image signal after the light amount difference correction.

画像メモリ4にストアされた光量差補正後の原画像信号は、信号処理部9(請求項における補間手段)に与えられる。信号処理部9は、2つの原画像信号から撮像から得られない画像データを補間により生成して(2つの原画像信号を合成したときにデータを有していない画素の画像データを生成して)、補間後の画像信号を出力画像の出力画像信号として、記録媒体10にストアする。   The original image signal after the light amount difference correction stored in the image memory 4 is given to the signal processing unit 9 (interpolating means in claims). The signal processing unit 9 generates image data that cannot be obtained from imaging from two original image signals by interpolation (generates image data of pixels that do not have data when the two original image signals are combined) ), The interpolated image signal is stored in the recording medium 10 as an output image signal of the output image.

次に、本実施の形態の撮像装置の具体的な例について説明する。図2は、撮像素子2の結像面の具体的な画素配列を示す平面図である。撮像素子2は、N×M個の受光領域PDが、水平および垂直方向H,Vに沿って、配列周期PH,PVで行列状に配列される。水平および垂直方向H,Vは、相互に直交する。ここで、PD(1,1),PD(2,2),PD(3,3),…を通る方向を第1斜め方向U1と称することにする。また、PD(1,3),PD(2,2),PD(3,1),…を通る方向を第2斜め方向U2と称することにする。さらに、第1および第2斜め方向U1,U2を総称するとき、およびいずれか一方の斜め方向を任意に選ぶときには、「斜め方向U」と略称する。   Next, a specific example of the imaging device according to the present embodiment will be described. FIG. 2 is a plan view showing a specific pixel arrangement on the imaging surface of the image sensor 2. In the imaging device 2, N × M light receiving areas PD are arranged in a matrix with arrangement periods PH and PV along the horizontal and vertical directions H and V. The horizontal and vertical directions H and V are orthogonal to each other. Here, a direction passing through PD (1, 1), PD (2, 2), PD (3, 3),... Is referred to as a first oblique direction U1. In addition, a direction passing through PD (1, 3), PD (2, 2), PD (3, 1),... Is referred to as a second oblique direction U2. Furthermore, when the first and second oblique directions U1 and U2 are collectively referred to, and when any one of the oblique directions is arbitrarily selected, it is abbreviated as “oblique direction U”.

この画素配列において、画像光に対する水平および垂直方向H,Vのサンプリング周波数fH,fVは、水平および垂直方向H,Vの配列周期の逆数であり、以下の式で示される。
fH=1/PH (1)
fV=1/PV (2)
更に、以後、水平方向Hに沿って直線上に並べられる1群の構成要素を「行」と称する。同様に垂直方向Vに沿って直線上に並べられた1群の構成要素を「列」と称する。行列状に配列された1群の構成要素において、紙面上側から下側に向かって、各行を第1行,第2行,…,第N行とする。また紙面左側から右側に向かって各列を第1列,第2列,…,第M列とする。これら構成要素のうち、第n行第m列に属する単一の構成要素を表すとき、その構成要素を総称して示す参照符号と共に、符号(n,m)を付して示す。n,mは1以上N,M以下の任意の整数である。図2では、受光領域PDの配列パターンを4行3列の12個の受光領域PD(1,1)〜PD(4,3)で代表させて表す。実際の撮像素子2の結像面では、図2に示す構造が、水平及び垂直方向H,Vに周期的に繰り返される。
In this pixel array, the sampling frequencies fH and fV in the horizontal and vertical directions H and V with respect to the image light are reciprocals of the array periods in the horizontal and vertical directions H and V, and are expressed by the following equations.
fH = 1 / PH (1)
fV = 1 / PV (2)
Further, hereinafter, a group of components arranged on a straight line along the horizontal direction H will be referred to as “rows”. Similarly, a group of components arranged in a straight line along the vertical direction V is referred to as a “column”. In a group of components arranged in a matrix, each row is defined as a first row, a second row,..., An Nth row from the upper side to the lower side of the drawing. In addition, each column is defined as a first column, a second column,. Among these constituent elements, when a single constituent element belonging to the nth row and the mth column is represented, a reference numeral (n, m) is attached together with a reference symbol indicating the constituent element generically. n and m are arbitrary integers of 1 or more and N or M or less. In FIG. 2, the arrangement pattern of the light receiving areas PD is represented by 12 light receiving areas PD (1, 1) to PD (4, 3) in 4 rows and 3 columns. The structure shown in FIG. 2 is periodically repeated in the horizontal and vertical directions H and V on the actual imaging surface of the image sensor 2.

図3は、画像光の第1および第2結像位置の位置関係を示す図である。第1結像位置A1を基準にすると、第2結像位置B1は、第1結像位置A1から、受光領域PDの水平方向Hの配列周期PHの半分の長さだけ、かつ垂直方向Vの配列周期PVの半分の長さだけ、移動した位置である。   FIG. 3 is a diagram illustrating a positional relationship between the first and second imaging positions of the image light. With the first image formation position A1 as a reference, the second image formation position B1 is only half the length of the arrangement period PH in the horizontal direction H of the light receiving area PD from the first image formation position A1 and in the vertical direction V. The position is moved by the length of half of the arrangement period PV.

撮像素子2は、この第1および第2結像位置A1,B1に画像光が結像されたときに、該画像光を撮像して、第1および第2原画像信号を得る。   When the image light is imaged at the first and second imaging positions A1 and B1, the imaging device 2 captures the image light and obtains first and second original image signals.

図4は、上述した原画像を示す第1および第2原画像から構成される合成画像を表す図である。第1原画像の画素は、右下がりのハッチングをして表し、第2原画像の画素は、右上がりのハッチングをして表す。合成画像は、撮像時の空間的な位置を合わせるように第1および第2原画像を重ね合わせて生成される。この合成動作は、画像メモリ4を用い、第1および第2原画像の各画素データが交互にストアされるように、画素データがストアされるべきアドレスを定めてストアして行われる。すなわち合成画像は、第1および第2原画像を前述した結像位置のシフト方向と同じ方向に平行でかつ逆向きに、同じシフト長さだけずれるように重ね合わせた画像として表される。   FIG. 4 is a diagram illustrating a composite image including the first and second original images indicating the above-described original image. The pixels of the first original image are represented with right-down hatching, and the pixels of the second original image are represented with right-up hatching. The composite image is generated by superimposing the first and second original images so as to match the spatial position at the time of imaging. This compositing operation is performed by using the image memory 4 and determining and storing addresses at which the pixel data is stored so that the pixel data of the first and second original images are alternately stored. That is, the composite image is represented as an image obtained by superimposing the first and second original images so as to be shifted by the same shift length in a direction parallel to and opposite to the shift direction of the image formation position described above.

第1原画像の画素に対応する合成画像の画素sは、添字(n,m)がnおよびmがともに奇数である。また、第2原画像の画素に対応する合成画像の画素sは、添字(n,m)がnおよびmがともに偶数である。以後、いずれかの原画像に対応し画素データを有する画素を、実画素と称する。   In the composite image pixel s corresponding to the pixel of the first original image, the subscripts (n, m) are both n and m odd. In addition, in the composite image pixel s corresponding to the pixel of the second original image, the subscripts (n, m) are both n and m are even. Hereinafter, a pixel having pixel data corresponding to any original image is referred to as an actual pixel.

合成画像全体として、第1および第2原画像のいずれか一方に対応する画素を有する実画素は、市松状に配列される。水平および垂直方向H,Vに沿って隣接する2つの実画素の間には、画素データを有しない仮想画素がある。この仮想画素は、第1および第2原画像の画素に対応しない。仮想画素は、画素sの添字(n,m)がnおよびmがどちらか一方が偶数でありかつ他方が奇数である。   As the entire composite image, real pixels having pixels corresponding to one of the first and second original images are arranged in a checkered pattern. There is a virtual pixel having no pixel data between two real pixels adjacent in the horizontal and vertical directions H and V. This virtual pixel does not correspond to the pixels of the first and second original images. In the virtual pixel, subscripts (n, m) of the pixel s are either n or m, and one of them is an even number and the other is an odd number.

信号処理部9は、この仮想画素の画素データをその周囲の実画素の画素データから補間して代入して生成する。   The signal processing unit 9 generates the pixel data of the virtual pixel by interpolating and substituting the pixel data of the surrounding real pixels.

この補間処理では、例えば線形補間法、またはキュービックコンボリューション補間法などが用いられる。線形補間法は、例えば合成画像において仮想画素の周囲の4つの実画素の画素データの平均値として、仮想画素の画素データを補間する補間手法である。キュービックコンボリューション補間法は、仮想画素の周囲16個の実画素の画素データを用いて、仮想画素の画素データを補間する補間法である。   In this interpolation processing, for example, linear interpolation or cubic convolution interpolation is used. The linear interpolation method is an interpolation method that interpolates pixel data of a virtual pixel as an average value of pixel data of four real pixels around the virtual pixel in a synthesized image, for example. The cubic convolution interpolation method is an interpolation method in which pixel data of virtual pixels is interpolated using pixel data of 16 real pixels around the virtual pixels.

さらに、信号処理部9は、ガンマ補正を行う。陰極線管(ブラウン管)の電気−光電変換特性は、非直線性を持っている。このため、撮像装置の受光量と陰極線管の発光強度とが比例するように、受光量に対応する受光データを補正する。この補正をガンマ補正と称する。   Further, the signal processing unit 9 performs gamma correction. The electric-photoelectric conversion characteristics of a cathode ray tube (CRT) have non-linearity. For this reason, the received light data corresponding to the received light amount is corrected so that the received light amount of the imaging device is proportional to the emission intensity of the cathode ray tube. This correction is called gamma correction.

出力画像の配列周期は、第1および第2原画像の画素配列と比較して、水平、垂直はいずれに関しても半分となる。ゆえに、第1および第2原画像の解像度を標準解像度とすると、出力画像の解像度は、各方向H,Vに関して標準解像度よりも高解像度となる。また、出力画像の斜め方向Uの画素の配列周期は、合成画像の配列周期の半分になる。しかし、出力画像信号は、合成画像信号を補間して得られる。このとき補間処理で増加した画素によって出力画像の画素の配列周期が合成画像よりも小さくなっても、解像度は合成画像と変わらない。ゆえに、出力画像の斜め方向Uの解像度は、画素の配列周期から得られるべき解像度よりも低下する。   The arrangement period of the output image is halved in both horizontal and vertical directions compared to the pixel arrangement of the first and second original images. Therefore, if the resolution of the first and second original images is the standard resolution, the resolution of the output image is higher than the standard resolution in each direction H and V. Further, the arrangement period of the pixels in the oblique direction U of the output image is half of the arrangement period of the composite image. However, the output image signal is obtained by interpolating the composite image signal. At this time, even if the pixel arrangement period of the output image becomes smaller than that of the synthesized image due to the pixels increased by the interpolation processing, the resolution is not different from that of the synthesized image. Therefore, the resolution in the oblique direction U of the output image is lower than the resolution that should be obtained from the pixel arrangement period.

次に、本発明の特徴部分である光量差補正を行うLPF5について、説明する。LPF5は、2枚の原画像間に光量差がある場合に発生する市松模様を除去するために、実画素から構成された合成画像に対してローパスフィルタを施す。   Next, the LPF 5 that performs light amount difference correction, which is a characteristic part of the present invention, will be described. The LPF 5 applies a low-pass filter to a composite image composed of actual pixels in order to remove a checkerboard pattern that occurs when there is a light amount difference between two original images.

図5は、LPF5のローパス特性及び合成画像の基底帯域を空間周波数座標上に表した図である。基底帯域11は、以下の4点を頂点とする矩形領域(図中、ハッチング領域)となる。
(fH,0)
(0,fV)
(−fH,0)
(0,−fV)
ここで、例えば(fH,0)は、水平方向の空間周波数fH、かつ垂直方向の空間周波数0である空間周波数を表す。2枚の原画像間に光量差がある場合に発生する市松模様の周波数成分は、イメージシフトによるシフト量の2倍の周期となり、且つその方向はイメージシフトの方向に一致する。従って、その周波数成分は図5における点(fH,0),点(0,fV)を結ぶ境界線及び点(−fH,0),点(0,−fV)を結ぶ境界線上に存在する。このため、LPF5は、この境界線上のゲインが零であることが望ましく、上記基底帯域11を通過帯域とするものが望ましい。また、原画像が本来保持している周波数成分を減衰させないために(画像がぼやけないために)、境界線を除く矩形領域内の領域では、LPF5のゲインが1であることが望ましい。また、ローパス後の画像つまり光量差補正後の合成画像が歪まないために、LPF5は直線位相特性であることが望ましい。
FIG. 5 is a diagram showing the low-pass characteristics of the LPF 5 and the base band of the composite image on the spatial frequency coordinates. The base band 11 is a rectangular area (hatching area in the figure) having the following four points as vertices.
(FH, 0)
(0, fV)
(-FH, 0)
(0, -fV)
Here, for example, (fH, 0) represents a spatial frequency which is a spatial frequency fH in the horizontal direction and a spatial frequency 0 in the vertical direction. A checkered frequency component generated when there is a light quantity difference between two original images has a period twice as large as the shift amount by the image shift, and the direction coincides with the image shift direction. Accordingly, the frequency component exists on the boundary line connecting the point (fH, 0) and the point (0, fV) and the boundary line connecting the point (−fH, 0) and the point (0, −fV) in FIG. For this reason, it is desirable for the LPF 5 to have zero gain on this boundary line, and it is desirable to use the base band 11 as a pass band. Further, in order not to attenuate the frequency component originally held in the original image (in order not to blur the image), it is desirable that the gain of the LPF 5 is 1 in a region within the rectangular region excluding the boundary line. Further, it is desirable that the LPF 5 has a linear phase characteristic so that the image after the low pass, that is, the composite image after the light amount difference correction is not distorted.

上記のような要求を満たすローパスフィルタは、その次数が非常に大きくなってしまう傾向がある。高次数のローパスフィルタは、処理に時間がかかったり、回路規模が大きくなり、実用的でなくなってしまう。従って、上述のローパスフィルタの満たすべき条件と、処理時間や回路規模を鑑みて、適当な次数を設定する。例えば、以下のようなローパスフィルタr1が上げられる。   A low-pass filter that satisfies the above requirements tends to have a very large order. A high-order low-pass filter is not practical because it takes time to process and the circuit scale increases. Accordingly, an appropriate order is set in consideration of the conditions to be satisfied by the above-described low-pass filter, processing time, and circuit scale. For example, the following low-pass filter r1 is raised.

Figure 2007097203
Figure 2007097203

このローパスフィルタr1は、7行7列の行列として表される2次元ローパスフィルタである。第p行q列の要素をr1(p,q)として表すと、このローパスフィルタr1により、合成画像を光量差補正する計算は、以下の式で計算される。   The low-pass filter r1 is a two-dimensional low-pass filter expressed as a 7-row 7-column matrix. When the element in the p-th row and the q-th column is expressed as r1 (p, q), the calculation for correcting the light amount difference of the composite image by the low-pass filter r1 is calculated by the following equation.

Figure 2007097203
Figure 2007097203

ここで、s(n,m)は、光量差補正前の合成画像の第n行m列の画素を表す。また、t(n,m)は、光量差補正後の合成画像の第n行m列の画素を表す。図4に示したように、仮想画素には画素データがない。式(4)の計算においては、仮想画素の画素データは、零として行う。ローパスフィルタr1よりも簡略化したローパスフィルタr2を、以下に示す。   Here, s (n, m) represents a pixel in the nth row and mth column of the composite image before the light amount difference correction. Further, t (n, m) represents a pixel in the nth row and mth column of the composite image after the light amount difference correction. As shown in FIG. 4, the virtual pixel has no pixel data. In the calculation of Expression (4), the pixel data of the virtual pixel is assumed to be zero. A low-pass filter r2 that is more simplified than the low-pass filter r1 is shown below.

Figure 2007097203
Figure 2007097203

ローパスフィルタr2は、5行5列の行列として表される2次元ローパスフィルタである。第p行q列の要素は、r2(p,q)として表すとする。このローパスフィルタr2により、合成画像を光量差補正する計算は、以下の式で計算される。   The low-pass filter r2 is a two-dimensional low-pass filter expressed as a 5 × 5 matrix. The element in the pth row and the qth column is expressed as r2 (p, q). The calculation for correcting the light amount difference of the composite image by the low-pass filter r2 is calculated by the following equation.

Figure 2007097203
Figure 2007097203

ローパスフィルタr2は、ローパスフィルタr1よりも計算量が少なくてすむ利点がある。しかし、ローパスフィルタr2は、通過帯域11のゲインが境界線に近づくに連れて1よりも小さくなる傾向が強く、結果としてローパスフィルタr1よりも、通過域の特性が良くなく、光量差補正後の合成画像がぼやける欠点がある。   The low-pass filter r2 has the advantage of requiring less calculation amount than the low-pass filter r1. However, the low-pass filter r2 has a strong tendency to become smaller than 1 as the gain of the pass band 11 approaches the boundary line. As a result, the pass band characteristics are not as good as those of the low-pass filter r1, and after the light amount difference correction is performed. There is a drawback that the composite image is blurred.

また、さらに計算量を減らしたローパスフィルタを、以下に示す。   A low-pass filter with a further reduced calculation amount is shown below.

Figure 2007097203
Figure 2007097203

ローパスフィルタr3は、4行4列の行列として表される1次元ローパスフィルタである。第p行q列の要素は、r3(p,q)として表すとする。このローパスフィルタr3により、合成画像を光量差補正する計算は、以下の式で計算される。   The low-pass filter r3 is a one-dimensional low-pass filter represented as a 4 × 4 matrix. The element in the p-th row and the q-th column is expressed as r3 (p, q). The calculation for correcting the light amount difference of the composite image by the low-pass filter r3 is calculated by the following equation.

Figure 2007097203
Figure 2007097203

このローパスフィルタr3は、図3に示したイメージシフト方向に、合成画像をローパスフィルタリングしている。上記したように2枚の原画像間に光量差がある場合に発生する市松模様の周波数成分は、図3に示したイメージシフト量を表す有向線分A1B1の2倍を周期とする空間周波数Fdと等しい。空間周波数Fdは、その方向が第1斜め方向U1と等しく、この方向に以下の大きさの空間周波数である。   The low-pass filter r3 performs low-pass filtering of the composite image in the image shift direction shown in FIG. As described above, the frequency component of the checkered pattern that occurs when there is a light amount difference between the two original images is a spatial frequency having a cycle of twice the directed line segment A1B1 representing the image shift amount shown in FIG. Equal to Fd. The direction of the spatial frequency Fd is equal to the first oblique direction U1, and is a spatial frequency having the following magnitude in this direction.

Figure 2007097203
Figure 2007097203

ローパスフィルタr3は、上記した2次元ローパスフィルタと異なり、空間周波数Fdを含む破線12上のみをカットオフするように限定されている。このような第1斜め方向U1に対する1次元ローパスフィルタr3であっても、十分に光量差補正ができる。   Unlike the above-described two-dimensional low-pass filter, the low-pass filter r3 is limited to cut off only on the broken line 12 including the spatial frequency Fd. Even such a one-dimensional low-pass filter r3 for the first oblique direction U1 can sufficiently correct the light amount difference.

さらに、さらに計算量を減らしたローパスフィルタを、以下に示す。   Furthermore, a low-pass filter with a further reduced calculation amount is shown below.

Figure 2007097203
Figure 2007097203

ローパスフィルタr4は、3行3列の行列として表される1次元ローパスフィルタである。第p行q列の要素は、r4(p,q)として表すとする。このローパスフィルタr4により、合成画像を光量差補正する計算は、以下の式で計算される。   The low-pass filter r4 is a one-dimensional low-pass filter represented as a 3 × 3 matrix. The element in the pth row and the qth column is expressed as r4 (p, q). The calculation for correcting the light amount difference of the composite image by the low-pass filter r4 is calculated by the following equation.

Figure 2007097203
Figure 2007097203

このローパスフィルタr4は、図3に示したイメージシフト方向に、合成画像をローパスフィルタリングしている。ローパスフィルタr4は、ローパスフィルタr3よりも計算量が少なくてすむ利点がある。しかし、ローパスフィルタr4は、通過帯域11のゲインが破線12に近づくにつれて1よりも小さくなる傾向が強く、結果としてローパスフィルタr3よりも、通過域の特性が良くなく、光量差補正後の合成画像がぼやける欠点がある。   The low-pass filter r4 performs low-pass filtering of the composite image in the image shift direction shown in FIG. The low-pass filter r4 has an advantage that the calculation amount is smaller than that of the low-pass filter r3. However, the low-pass filter r4 tends to be smaller than 1 as the gain of the pass band 11 approaches the broken line 12, and as a result, the pass band characteristics are not better than the low-pass filter r3, and the composite image after the light amount difference correction is performed. Has the disadvantage of blurring.

以上のように、本実施の形態の撮像装置によれば、光量差補正をローパスフィルタにより行うことにより、従来よりも簡単に処理することができ、また、画素毎にローパス処理を行うため、2枚の原画像間の部分的な光量差をも的確に補正することができ、出力画像の劣化を防止することができる。   As described above, according to the imaging apparatus of the present embodiment, the light amount difference correction is performed by the low-pass filter, so that the processing can be performed more easily than in the past, and the low-pass processing is performed for each pixel. A partial light amount difference between the original images can be accurately corrected, and deterioration of the output image can be prevented.

なお、本実施の形態では、(1)2つの原画像信号を合成して合成画像を生成した後、(2)その合成画像に対してローパスフィルタリングを施し、その後、(3)信号処理部9が仮想画素の画像データを補間により求めているが、処理順序はこれに限るものではなく、仮想画素の画像データを求めた後ローパスフィルタリングを施しても良いし(第5実施の形態参照)、また、ローパスフィルタリングと補間処理を同時に行っても良い。   In the present embodiment, (1) a composite image is generated by combining two original image signals, (2) low-pass filtering is performed on the composite image, and then (3) a signal processing unit 9 However, the processing order is not limited to this, and low-pass filtering may be performed after the virtual pixel image data is obtained (see the fifth embodiment). Further, low-pass filtering and interpolation processing may be performed simultaneously.

また、ここでは、LPF5としてr1〜r4のローパスフィルタを用いる例について示したが、これに限るものではなく、例えば、第5実施の形態のように図5に示した基底帯域11の対向する2頂点をそれぞれカットオフ周波数とする水平,垂直の2つの1次元ローパスフィルタを用いても良い。   In addition, although an example in which the low-pass filters r1 to r4 are used as the LPF 5 is shown here, the present invention is not limited to this example. For example, as shown in the fifth embodiment, the two opposite base bands 11 shown in FIG. Two horizontal and vertical one-dimensional low-pass filters each having a vertex as a cutoff frequency may be used.

(第2実施の形態)本発明の第2実施の形態である撮像装置を以下に説明する。本実施の形態の撮像装置は、第1実施の形態の撮像装置と類似の構成を有している。このため、第1実施の形態と同一部分については同一符号を付し、詳細な説明を省略する。本実施の形態の撮像装置では、第1実施の形態と異なり、水平方向Hにイメージシフトを行う。   (Second Embodiment) An image pickup apparatus according to a second embodiment of the present invention will be described below. The imaging device of the present embodiment has a configuration similar to that of the imaging device of the first embodiment. For this reason, the same parts as those of the first embodiment are denoted by the same reference numerals, and detailed description thereof is omitted. In the imaging apparatus according to the present embodiment, unlike the first embodiment, image shift is performed in the horizontal direction H.

図6は、画像光の第1および第2結像位置の位置関係を示す図である。第1結像位置A2を基準にすると、第2結像位置B2は、第1結像位置A2から、受光領域PDの水平方向Hの配列周期PHの半分の長さ(PH/2)だけ移動した位置である。   FIG. 6 is a diagram illustrating a positional relationship between the first and second imaging positions of the image light. With reference to the first imaging position A2, the second imaging position B2 moves from the first imaging position A2 by a length (PH / 2) that is half the arrangement period PH in the horizontal direction H of the light receiving area PD. Is the position.

撮像素子2は、この第1および第2結像位置A2,B2に画像光が結像されたときに、該画像光を撮像して、第1および第2原画像信号を得る。   When the image light is imaged at the first and second imaging positions A2 and B2, the image sensor 2 captures the image light and obtains first and second original image signals.

図7は、上述した原画像を示す第1および第2原画像から構成される合成画像を表す図である。第1原画像の画素は、右下がりのハッチングをして表し、第2原画像の画素は、右上がりのハッチングをして表す。合成画像は、撮像時の空間的な位置を合わせるように第1および第2原画像を重ね合わせて生成される。この合成動作は、画像メモリ4を用い、第1および第2原画像の各画素データが交互にストアされるように、画素データがストアされるべきアドレスを定めてストアして行われる。すなわち合成画像は、第1および第2原画像を前述した結像位置のシフト方向と同じ方向に平行でかつ逆向きに、同じシフト長さだけずれるように重ね合わせた画像として表される。   FIG. 7 is a diagram illustrating a composite image including the first and second original images indicating the above-described original image. The pixels of the first original image are represented with right-down hatching, and the pixels of the second original image are represented with right-up hatching. The composite image is generated by superimposing the first and second original images so as to match the spatial position at the time of imaging. This compositing operation is performed by using the image memory 4 and determining and storing addresses at which the pixel data is stored so that the pixel data of the first and second original images are alternately stored. That is, the composite image is represented as an image obtained by superimposing the first and second original images so as to be shifted by the same shift length in a direction parallel to and opposite to the shift direction of the image formation position described above.

第1原画像の画素に対応する合成画像の画素s(n,m)は、mが奇数である。また、第2原画像の画素に対応する合成画像の画素s(n,m)はmが偶数である。   In the pixel s (n, m) of the composite image corresponding to the pixel of the first original image, m is an odd number. Further, m is an even number in the pixel s (n, m) of the composite image corresponding to the pixel of the second original image.

合成画像全体として、第1および第2原画像のいずれか一方に対応する画素を有する実画素は、垂直縞状に配列される。また、第2実施例においては、合成画像と出力画像の画素構成は、同じになる。   As the entire composite image, real pixels having pixels corresponding to one of the first and second original images are arranged in a vertical stripe pattern. In the second embodiment, the pixel configuration of the composite image and the output image is the same.

信号処理部9は、ガンマ補正を行う。   The signal processing unit 9 performs gamma correction.

出力画像の配列周期は、第1および第2原画像の画素配列と比較して、水平方向Hに関して半分となる。ゆえに、第1および第2原画像の解像度を標準解像度とすると、出力画像の解像度は、水平方向Hに関して標準解像度よりも高解像度となる。   The arrangement period of the output image is halved in the horizontal direction H as compared with the pixel arrangement of the first and second original images. Therefore, if the resolution of the first and second original images is the standard resolution, the resolution of the output image is higher than the standard resolution in the horizontal direction H.

ここで、第2実施の形態におけるLPF5について、説明する。LPF5は、2枚の原画像間に光量差がある場合に発生する垂直縞模様を除去するために、合成画像に対してローパスフィルタを施す。図8は、合成画像の基底帯域及びLPF5のローパス特性を空間周波数座標上に表した図である。合成画像の基底帯域13は、以下の4点を頂点とする矩形領域(図中、ハッチング領域)となる。
(fH,fV/2)
(−fH,fV/2)
(−fH,−fV/2)
(fH,−fV/2)
2枚の原画像間に光量差がある場合に発生する垂直縞模様の周波数成分は、(fH,fV/2),(fH,−fV/2)を結ぶ境界線及び(−fH,fV/2),(−fH,−fV/2)を結ぶ境界線上に存在する。従って、使用するLPF5は、この境界線上においてゲインがゼロであるものが望ましく、上記基底帯域15を通過帯域とするものが望ましい。また、ローパス後の画像つまり光量差補正後の合成画像が歪まないために、LPF5は直線位相特性であることが望ましい。このような要求を満たすローパスフィルタは、その次数が非常に大きくなってしまう傾向がある。高次数のローパスフィルタは、処理に時間がかかったり、回路規模が大きくなり、実用的でなくなってしまう。従って、上述のローパスフィルタの満たすべき条件と、処理時間や回路規模を鑑みて、適当な次数を設定する。例えば、以下のようなローパスフィルタr5が上げられる。
Here, the LPF 5 in the second embodiment will be described. The LPF 5 applies a low-pass filter to the composite image in order to remove a vertical stripe pattern that occurs when there is a light amount difference between the two original images. FIG. 8 is a diagram showing the base band of the composite image and the low-pass characteristics of the LPF 5 on the spatial frequency coordinates. The base band 13 of the composite image is a rectangular area (hatching area in the figure) having the following four points as vertices.
(FH, fV / 2)
(-FH, fV / 2)
(-FH, -fV / 2)
(FH, -fV / 2)
The frequency components of the vertical stripe pattern generated when there is a light quantity difference between the two original images are the boundary line connecting (fH, fV / 2), (fH, -fV / 2) and (-fH, fV / 2), on the boundary line connecting (−fH, −fV / 2). Accordingly, the LPF 5 to be used preferably has a zero gain on this boundary line, and preferably has the base band 15 as a pass band. Further, it is desirable that the LPF 5 has a linear phase characteristic so that the image after the low pass, that is, the composite image after the light amount difference correction is not distorted. A low-pass filter that satisfies such requirements tends to be very large in order. A high-order low-pass filter is not practical because it takes time to process and the circuit scale increases. Accordingly, an appropriate order is set in consideration of the conditions to be satisfied by the above-described low-pass filter, processing time, and circuit scale. For example, the following low-pass filter r5 is raised.

Figure 2007097203
Figure 2007097203

ローパスフィルタr5は、4行4列の行列として表される2次元ローパスフィルタである。第p行q列の要素は、r5(p,q)として表すとする。このローパスフィルタr5により、合成画像を光量差補正する計算は、以下の式で計算される。   The low-pass filter r5 is a two-dimensional low-pass filter expressed as a 4 × 4 matrix. The element in the p-th row and the q-th column is expressed as r5 (p, q). The calculation for correcting the light amount difference of the composite image by the low-pass filter r5 is calculated by the following equation.

Figure 2007097203
Figure 2007097203

ここで、s(n,m)は、光量差補正前の合成画像の第n行m列の画素を表す。また、t(n,m)は、光量差補正後の合成画像の第n行m列の画素を表す。   Here, s (n, m) represents a pixel in the nth row and mth column of the composite image before the light amount difference correction. Further, t (n, m) represents a pixel in the nth row and mth column of the composite image after the light amount difference correction.

ローパスフィルタr5よりも簡略化したローパスフィルタr6を、以下に示す。   A low-pass filter r6 simplified more than the low-pass filter r5 is shown below.

Figure 2007097203
Figure 2007097203

ローパスフィルタr6は、3行3列の行列として表される2次元ローパスフィルタである。第p行q列の要素は、r6(p,q)として表すとする。このローパスフィルタr6により、合成画像を光量差補正する計算は、以下の式で計算される。   The low-pass filter r6 is a two-dimensional low-pass filter represented as a 3 × 3 matrix. The element in the p-th row and the q-th column is expressed as r6 (p, q). The calculation for correcting the light amount difference of the composite image by the low-pass filter r6 is calculated by the following equation.

Figure 2007097203
Figure 2007097203

ローパスフィルタr6は、ローパスフィルタr5よりも計算量が少なくてすむ利点がある。しかし、ローパスフィルタr6は、通過帯域13のゲインが境界線に近づくに連れて1よりも小さくなる傾向が強く、結果としてローパスフィルタr5よりも、通過域の特性が良くなく、光量差補正後の合成画像がぼやける欠点がある。   The low-pass filter r6 has an advantage that the calculation amount is smaller than that of the low-pass filter r5. However, the low-pass filter r6 has a strong tendency to become smaller than 1 as the gain of the pass band 13 approaches the boundary line. As a result, the pass band characteristics are not better than the low-pass filter r5, and after the light amount difference correction is performed. There is a drawback that the composite image is blurred.

また、さらに計算量を減らしたローパスフィルタを、以下に示す。   A low-pass filter with a further reduced calculation amount is shown below.

Figure 2007097203
Figure 2007097203

ローパスフィルタr7は、行ベクトルとして表される1次元ローパスフィルタである。第q要素は、r7(q)として表すとする。このローパスフィルタr7により、合成画像を光量差補正する計算は、以下の式で計算される。   The low-pass filter r7 is a one-dimensional low-pass filter expressed as a row vector. The q-th element is represented as r7 (q). The calculation for correcting the light amount difference of the composite image by the low-pass filter r7 is calculated by the following equation.

Figure 2007097203
Figure 2007097203

このローパスフィルタr7は、図6に示したイメージシフト方向に、合成画像をローパスフィルタリングしている。2枚の原画像間に光量差がある場合に発生する垂直縞模様の周波数成分は、図6に示したイメージシフト量を表す有向線分A2B2の2倍を周期とする空間周波数Fc2と等しい。この空間周波数Fc2は、その方向が水平方向Hと等しく、この方向にfHの大きさの空間周波数である。   The low-pass filter r7 performs low-pass filtering of the composite image in the image shift direction shown in FIG. The frequency component of the vertical stripe pattern generated when there is a light amount difference between the two original images is equal to the spatial frequency Fc2 having a cycle of twice the directed line segment A2B2 representing the image shift amount shown in FIG. . The direction of the spatial frequency Fc2 is equal to the horizontal direction H, and is a spatial frequency having a magnitude of fH in this direction.

ローパスフィルタr7は、上記した2次元ローパスフィルタと異なり、空間周波数Fc2を含む破線14上をカットオフするように限定されている。このような水平方向Hに対する1次元ローパスフィルタr7であっても、十分に光量差補正ができる。   Unlike the above-described two-dimensional low-pass filter, the low-pass filter r7 is limited to cut off the broken line 14 including the spatial frequency Fc2. Even such a one-dimensional low-pass filter r7 for the horizontal direction H can sufficiently correct the light amount difference.

さらに計算量を減らしたローパスフィルタを、以下に示す。   A low-pass filter with a further reduced amount of calculation is shown below.

Figure 2007097203
Figure 2007097203

ローパスフィルタr8は、行ベクトルとして表される1次元ローパスフィルタである。第qの要素は、r8(q)として表すとする。このローパスフィルタr8により、合成画像を光量差補正する計算は、以下の式で計算される。   The low-pass filter r8 is a one-dimensional low-pass filter expressed as a row vector. The q-th element is represented as r8 (q). The calculation for correcting the light amount difference of the composite image by the low-pass filter r8 is calculated by the following equation.

Figure 2007097203
Figure 2007097203

このローパスフィルタr8は、図6に示したイメージシフト方向に、合成画像をローパスフィルタリングしている。ローパスフィルタr8は、ローパスフィルタr7よりも計算量が少なくてすむ利点がある。しかし、ローパスフィルタr8は、通過帯域13のゲインが破線14に近づくに連れて1よりも小さくなる傾向が強く、結果としてローパスフィルタr7よりも、通過域の特性が良くなく、光量差補正後の合成画像がぼやける欠点がある。   The low-pass filter r8 performs low-pass filtering of the composite image in the image shift direction shown in FIG. The low-pass filter r8 has an advantage that the calculation amount is smaller than that of the low-pass filter r7. However, the low-pass filter r8 tends to be smaller than 1 as the gain of the passband 13 approaches the broken line 14, and as a result, the passband characteristics are not as good as those of the low-pass filter r7. There is a drawback that the composite image is blurred.

以上のように、本実施の形態の撮像装置によれば、光量差補正をローパスフィルタにより行うことにより、従来よりも簡単に処理することができ、また、画素毎にローパス処理を行うため、2枚の原画像間の部分的な光量差をも的確に補正することができ、出力画像の劣化を防止することができる。   As described above, according to the imaging apparatus of the present embodiment, the light amount difference correction is performed by the low-pass filter, so that the processing can be performed more easily than in the past, and the low-pass processing is performed for each pixel. A partial light amount difference between the original images can be accurately corrected, and deterioration of the output image can be prevented.

(第3実施の形態)本発明の第3実施の形態である撮像装置を以下に説明する。本実施の形態の撮像装置は、第1及び第2実施の形態の撮像装置と類似の構成を有しているため、同一部分には同一符号を付し、詳細な説明を省略する。本実施の形態の撮像装置では、第1及び第2実施の形態とは異なり、垂直方向Vにイメージシフトする。   (Third Embodiment) An image pickup apparatus according to a third embodiment of the present invention will be described below. Since the imaging apparatus according to the present embodiment has a configuration similar to that of the imaging apparatuses according to the first and second embodiments, the same parts are denoted by the same reference numerals and detailed description thereof is omitted. In the imaging apparatus according to the present embodiment, the image shift is performed in the vertical direction V, unlike the first and second embodiments.

図9は、本実施の形態における画像光の第1および第2結像位置の位置関係を示す図である。第1結像位置A3を基準にすると、第2結像位置B3は、第1結像位置A3から、受光領域PDの垂直方向Vの配列周期PVの半分の長さだけ移動した位置である。   FIG. 9 is a diagram showing a positional relationship between the first and second imaging positions of the image light in the present embodiment. With reference to the first imaging position A3, the second imaging position B3 is a position moved from the first imaging position A3 by a length that is half the arrangement period PV in the vertical direction V of the light receiving area PD.

撮像素子2は、この第1および第2結像位置A3,B3に画像光が結像されたときに、画像光を撮像して、第1および第2原画像信号を得る。   When the image light is imaged at the first and second imaging positions A3 and B3, the image sensor 2 captures the image light and obtains first and second original image signals.

図10は、上述した原画像を示す第1および第2原画像から構成される合成画像を表す図である。第1原画像の画素は、右下がりのハッチングをして表し、第2原画像の画素は、右上がりのハッチングをして表す。合成画像は、撮像時の空間的な位置を合わせるように第1および第2原画像を重ね合わせて生成される。この合成動作は、画像メモリ4を用い、第1および第2原画像の各画素データが交互にストアされるように、画素データがストアされるべきアドレスを定めてストアして行われる。すなわち合成画像は、第1および第2原画像を前述した結像位置のシフト方向と同じ方向に平行でかつ逆向きに、同じシフト長さだけずれるように重ね合わせた画像として表される。   FIG. 10 is a diagram illustrating a composite image including the first and second original images indicating the above-described original image. The pixels of the first original image are represented with right-down hatching, and the pixels of the second original image are represented with right-up hatching. The composite image is generated by superimposing the first and second original images so as to match the spatial position at the time of imaging. This compositing operation is performed by using the image memory 4 and determining and storing addresses at which the pixel data is stored so that the pixel data of the first and second original images are alternately stored. That is, the composite image is represented as an image obtained by superimposing the first and second original images so as to be shifted by the same shift length in a direction parallel to and opposite to the shift direction of the image formation position described above.

第1原画像の画素に対応する合成画像の画素s(n,m)は、nが奇数である。また、第2原画像の画素に対応する合成画像の画素s(n,m)はnが偶数である。   In the synthesized image pixel s (n, m) corresponding to the first original image pixel, n is an odd number. Further, n is an even number in the pixel s (n, m) of the composite image corresponding to the pixel of the second original image.

合成画像全体として、第1および第2原画像のいずれか一方に対応する画素を有する実画素は、水平縞状に配列される。また、第3実施の形態においては、合成画像と出力画像の画素構成は、同じになる。   As the entire synthesized image, real pixels having pixels corresponding to one of the first and second original images are arranged in horizontal stripes. In the third embodiment, the pixel configuration of the composite image and the output image is the same.

信号処理部9は、ガンマ補正を行う。   The signal processing unit 9 performs gamma correction.

出力画像の配列周期は、第1および第2原画像の画素配列と比較して、垂直方向Vに関して半分となる。ゆえに、第1および第2原画像の解像度を標準解像度とすると、出力画像の解像度は、垂直方向Vに関して標準解像度よりも高解像度となる。   The arrangement period of the output image is halved in the vertical direction V as compared with the pixel arrangement of the first and second original images. Therefore, when the resolution of the first and second original images is the standard resolution, the resolution of the output image is higher than the standard resolution in the vertical direction V.

第3実施の形態におけるLPF5について、説明する。LPF5は、2枚の原画像間に光量差がある場合に発生する水平縞模様を除去するために、合成画像に対してローパスフィルタを施す。図11は、合成画像の基底帯域及びLPF5のローパス特性を空間周波数座標上に表した図である。合成画像の基底帯域15は、以下の4点を頂点とする矩形領域(図中、ハッチング領域)となる。
(fH/2,fV)
(−fH/2,fV)
(−fH/2,−fV)
(fH/2,−fV)
2枚の原画像間に光量差がある場合に発生する水平縞模様の周波数成分は、イメージシフトの方向にイメージシフト量の2倍を周期とするものである。したがって、点(fH/2,fV)と(−fH/2,fV)を結ぶ境界線及び点(−fH/2,−fV)と(fH/2,−fV)を結ぶ境界線上に存在する。従って、LPF5は、この境界線上のゲインがゼロであることが望ましく、上記基底帯域15を通過帯域とするものが望ましい。また、ローパス後の画像つまり光量差補正後の合成画像が歪まないために、LPF5は直線位相特性であることが望ましい。このような要求を満たすローパスフィルタは、その次数が非常に大きくなってしまう傾向がある。高次数のローパスフィルタは、処理に時間がかかったり、回路規模が大きくなり、実用的でなくなってしまう。従って、上述のローパスフィルタの満たすべき条件と、処理時間や回路規模を鑑みて、適当な次数を設定する。例えば、以下のようなローパスフィルタr9が上げられる。
The LPF 5 in the third embodiment will be described. The LPF 5 applies a low-pass filter to the composite image in order to remove a horizontal stripe pattern that occurs when there is a light amount difference between the two original images. FIG. 11 is a diagram showing the base band of the composite image and the low pass characteristics of the LPF 5 on the spatial frequency coordinates. The base band 15 of the composite image is a rectangular area (hatching area in the figure) having the following four points as vertices.
(FH / 2, fV)
(-FH / 2, fV)
(-FH / 2, -fV)
(FH / 2, -fV)
The frequency component of the horizontal stripe pattern generated when there is a light amount difference between two original images has a period of twice the image shift amount in the image shift direction. Therefore, it exists on the boundary line connecting the points (fH / 2, fV) and (−fH / 2, fV) and on the boundary line connecting the points (−fH / 2, −fV) and (fH / 2, −fV). . Therefore, the LPF 5 desirably has zero gain on this boundary line, and preferably has the base band 15 as a pass band. Further, it is desirable that the LPF 5 has a linear phase characteristic so that the image after the low pass, that is, the composite image after the light amount difference correction is not distorted. A low-pass filter that satisfies such requirements tends to be very large in order. A high-order low-pass filter is not practical because it takes time to process and the circuit scale increases. Accordingly, an appropriate order is set in consideration of the conditions to be satisfied by the above-described low-pass filter, processing time, and circuit scale. For example, the following low-pass filter r9 is raised.

Figure 2007097203
Figure 2007097203

ローパスフィルタr9は、4行4列の行列として表される2次元ローパスフィルタである。第p行q列の要素は、r9(p,q)として表すとする。このローパスフィルタr9により、合成画像を光量差補正する計算は、以下の式で計算される。   The low-pass filter r9 is a two-dimensional low-pass filter represented as a 4 × 4 matrix. The element in the p-th row and the q-th column is expressed as r9 (p, q). The calculation for correcting the light amount difference of the composite image by the low-pass filter r9 is calculated by the following equation.

Figure 2007097203
Figure 2007097203

ここで、s(n,m)は、光量差補正前の合成画像の第n行m列の画素を表す。また、t(n,m)は、光量差補正後の合成画像の第n行m列の画素を表す。   Here, s (n, m) represents a pixel in the nth row and mth column of the composite image before the light amount difference correction. Further, t (n, m) represents a pixel in the nth row and mth column of the composite image after the light amount difference correction.

ローパスフィルタr9よりも簡略化したローパスフィルタr10を、以下に示す。   A low-pass filter r10 that is more simplified than the low-pass filter r9 is shown below.

Figure 2007097203
Figure 2007097203

ローパスフィルタr10は、3行3列の行列として表される2次元ローパスフィルタである。第p行q列の要素は、r10(p,q)として表すとする。このローパスフィルタr10により、合成画像を光量差補正する計算は、以下の式で計算される。   The low-pass filter r10 is a two-dimensional low-pass filter represented as a 3 × 3 matrix. The element in the pth row and the qth column is expressed as r10 (p, q). The calculation for correcting the light amount difference of the composite image by the low-pass filter r10 is calculated by the following equation.

Figure 2007097203
Figure 2007097203

ローパスフィルタr10は、ローパスフィルタr9よりも計算量が少なくてすむ利点がある。しかし、ローパスフィルタr10は、通過帯域15のゲインが境界線に近づくに連れて1よりも小さくなる傾向が強く、結果としてローパスフィルタr9よりも、通過域の特性が良くなく、光量差補正後の合成画像がぼやける欠点がある。   The low-pass filter r10 has an advantage that the calculation amount is smaller than that of the low-pass filter r9. However, the low-pass filter r10 tends to be smaller than 1 as the gain of the passband 15 approaches the boundary, and as a result, the passband characteristics are not as good as those of the low-pass filter r9, and after the light amount difference correction. There is a drawback that the composite image is blurred.

また、さらに計算量を減らしたローパスフィルタを、以下に示す。   A low-pass filter with a further reduced calculation amount is shown below.

Figure 2007097203
Figure 2007097203

ローパスフィルタr11は、列ベクトルとして表される1次元ローパスフィルタである。第p要素は、r11(p)として表すとする。このローパスフィルタr11により、合成画像を光量差補正する計算は、以下の式で計算される。   The low-pass filter r11 is a one-dimensional low-pass filter expressed as a column vector. The p-th element is represented as r11 (p). The calculation for correcting the light amount difference of the composite image by the low-pass filter r11 is calculated by the following equation.

Figure 2007097203
Figure 2007097203

このローパスフィルタr11は、図9に示したイメージシフト方向に、合成画像をローパスフィルタリングしている。2枚の原画像間に光量差がある場合に発生する水平縞模様の周波数成分は、図9に示したイメージシフト量を表す有向線分A3B3の2倍を周期とする空間周波数Fc3と等しい。空間周波数Fc3は、その方向が垂直方向Vと等しく、この方向にfVの大きさの空間周波数である。   The low-pass filter r11 performs low-pass filtering of the composite image in the image shift direction shown in FIG. The frequency component of the horizontal stripe pattern generated when there is a light amount difference between the two original images is equal to the spatial frequency Fc3 having a cycle of twice the directed line segment A3B3 representing the image shift amount shown in FIG. . The direction of the spatial frequency Fc3 is equal to the vertical direction V, and is a spatial frequency having a magnitude of fV in this direction.

ローパスフィルタr11は、上記した2次元ローパスフィルタと異なり、空間周波数Fc3を含む破線16上をカットオフするように限定されている。このような垂直方向Vに対するローパスフィルタr11であっても、十分に光量差補正ができる。   Unlike the above-described two-dimensional low-pass filter, the low-pass filter r11 is limited to cut off the broken line 16 including the spatial frequency Fc3. Even such a low-pass filter r11 with respect to the vertical direction V can sufficiently correct the light amount difference.

さらに、さらに計算量を減らしたローパスフィルタを、以下に示す。   Furthermore, a low-pass filter with a further reduced calculation amount is shown below.

Figure 2007097203
Figure 2007097203

ローパスフィルタr12は、列ベクトルとして表される1次元ローパスフィルタである。第p要素は、r12(p)として表すとする。このローパスフィルタr12により、合成画像を光量差補正する計算は、以下の式で計算される。   The low-pass filter r12 is a one-dimensional low-pass filter expressed as a column vector. The p-th element is represented as r12 (p). The calculation for correcting the light amount difference of the composite image by the low-pass filter r12 is calculated by the following equation.

Figure 2007097203
Figure 2007097203

このローパスフィルタr12は、図9に示したイメージシフト方向に、合成画像をローパスフィルタリングしている。ローパスフィルタr12は、ローパスフィルタr11よりも計算量が少なくてすむ利点がある。しかし、ローパスフィルタr12は、通過帯域15のゲインが破線16に近づくに連れて1よりも小さくなる傾向が強く、結果としてローパスフィルタr11よりも、通過域の特性が良くなく、光量差補正後の合成画像がぼやける欠点がある。   The low-pass filter r12 performs low-pass filtering of the composite image in the image shift direction shown in FIG. The low-pass filter r12 has an advantage that the calculation amount is smaller than that of the low-pass filter r11. However, the low-pass filter r12 has a strong tendency to become smaller than 1 as the gain of the passband 15 approaches the broken line 16, and as a result, the passband characteristics are not as good as those of the low-pass filter r11. There is a drawback that the composite image is blurred.

本実施の形態においても、簡単な処理により2つの原画像間の光量差を補正することが可能となる。また、ローパスフィルタリングは画素毎に行われるため、画像間の光量差が部分的に生じている場合においてもその光量差補正を的確に実行でき、光量差に基づく画像の劣化を抑制することができる。   Also in the present embodiment, it is possible to correct a light amount difference between two original images by a simple process. Further, since the low-pass filtering is performed for each pixel, even when a light amount difference between images partially occurs, the light amount difference correction can be accurately performed, and deterioration of the image based on the light amount difference can be suppressed. .

(第4実施の形態)上述した第1から第3実施の形態の撮像装置は、モノクロ画像を撮像する撮像装置であるとして説明したけれども、カラー画像を撮像するカラー撮像装置に関しても同様に光量差補正を行うことができる。例えば、カラー撮像装置には、単板方式および3板方式の撮像装置がある。単板方式の撮像装置では、撮像素子の光入射側に各受光領域で受光する光の波長を制限する色フィルタを設け、フィルタを通過した光を撮像させる。3板方式の撮像装置では、撮像光を色分解プリズムで赤青緑の3原色の単色画像光に分解して、各単色画像光を個別的に撮像素子で撮像する。従って、3板方式の撮像装置には、3つの撮像素子を設けている。   (Fourth Embodiment) Although the imaging devices of the first to third embodiments described above have been described as imaging devices that capture monochrome images, the same applies to the color imaging device that captures color images. Correction can be performed. For example, color imaging devices include single-plate and three-plate imaging devices. In a single-plate imaging device, a color filter that restricts the wavelength of light received by each light receiving region is provided on the light incident side of the imaging device, and the light that has passed through the filter is imaged. In a three-plate type imaging device, imaging light is separated into three primary colors of red, blue, and green by a color separation prism, and each monochrome image light is individually imaged by an imaging device. Accordingly, the three-plate type imaging device is provided with three imaging elements.

LPF5では、これらの手法で得られた各単色画像光の画像信号を例えば赤緑青の3原色それぞれの色調を示すベクトル量の信号として取り扱い(この場合、請求項におけるu=3)、各単色画像光画像信号に対して個別的にローパスフィルタ処理を施す。または、カラーの画像信号から輝度信号と2種類の色差信号とを生成し(この場合、請求項におけるu=3)、輝度信号と色差信号とに対して個別的にローパスフィルタ処理を施す。これによって、カラー撮像装置においても、出力画像の光量差を補正することができる。   In the LPF 5, the image signal of each single color image light obtained by these methods is handled as a vector quantity signal indicating the hues of the three primary colors of red, green, and blue (in this case, u = 3 in the claims), and each single color image is processed. The optical image signal is individually subjected to low pass filter processing. Alternatively, a luminance signal and two kinds of color difference signals are generated from the color image signal (in this case, u = 3), and the luminance signal and the color difference signal are individually subjected to low-pass filter processing. Thereby, also in a color imaging device, the light quantity difference of an output image can be corrected.

上記のようにローパスフィルタ処理の施されたデータは信号処理部9により補間がなされた後、記録媒体10に記録される。記録媒体に記録されるデータはLPF5により個別的に処理された個々の信号であっても良いし、また、それらが合成された信号であっても良い。   The data subjected to the low-pass filter processing as described above is recorded on the recording medium 10 after being interpolated by the signal processing unit 9. The data recorded on the recording medium may be individual signals processed individually by the LPF 5 or may be a signal obtained by synthesizing them.

本発明の第4実施の形態の単板方式のカラー撮像装置の具体例を以下に説明する。本実施の形態の撮像装置の構成要素の構造は、第1実施の形態の撮像装置と略等しいため、同一の構成要素には同一の符号を付して説明は省略する。   A specific example of a single plate type color imaging apparatus according to the fourth embodiment of the present invention will be described below. Since the structure of the components of the imaging apparatus of the present embodiment is substantially the same as that of the imaging apparatus of the first embodiment, the same components are denoted by the same reference numerals and description thereof is omitted.

図12は、色フィルタの透過領域の色配列の基本配列パターン17を示す図である。この基本配列パターン17は、2行2列に配列される4つの透光領域Lから成る。このパターン17は、緑の透光領域Lだけを2つ含み、赤および青の透光領域を1つずつ含む。この基本配列パターン17において、透光領域L(1,1)、L(2,2)は、緑の透光領域Lである。透光領域L(1,2)は、赤の透光領域Lである。透光領域L(2,1)は、青の透光領域Lである。   FIG. 12 is a diagram showing a basic arrangement pattern 17 of the color arrangement of the transmissive area of the color filter. The basic array pattern 17 includes four light-transmitting regions L arranged in 2 rows and 2 columns. The pattern 17 includes only two green light-transmitting regions L and one red and blue light-transmitting regions. In the basic arrangement pattern 17, the light-transmitting regions L (1, 1) and L (2, 2) are green light-transmitting regions L. The translucent area L (1, 2) is a red translucent area L. The translucent area L (2, 1) is the blue translucent area L.

撮像素子2は、この色フィルタを介して結像される画像光を撮像して、原画像信号を出力する。原画像信号の画素の配列、および該画素と受光データとの対応関係は、図12の色フィルタの透光領域Lの配列と等価であり、各対応画素は、単一の色彩光の受光データを有する。   The image sensor 2 captures image light imaged through the color filter and outputs an original image signal. The arrangement of the pixels of the original image signal and the correspondence between the pixels and the light reception data are equivalent to the arrangement of the light-transmitting regions L of the color filter in FIG. 12, and each corresponding pixel is a single color light reception data. Have

上述の撮像装置の画像光の撮像動作は、第1実施の形態の画像光の撮像動作と類似し、光学系1、撮像素子2、A/D変換器3、および画像メモリ4の挙動は、第1実施の形態と等しい。このとき、イメージシフトは、画像光の結像位置を、図13に示すように、水平方向Hに間隔PHだけ離れた第1および第2結像位置A4、B4に移動させる。この第4実施の形態では、水平方向にイメージシフトすることにより、水平方向の解像度を向上させている。   The image light imaging operation of the imaging device described above is similar to the image light imaging operation of the first embodiment, and the behavior of the optical system 1, the image sensor 2, the A / D converter 3, and the image memory 4 is as follows. It is equal to the first embodiment. At this time, the image shift moves the imaging position of the image light to the first and second imaging positions A4 and B4 that are separated by a distance PH in the horizontal direction H as shown in FIG. In the fourth embodiment, the horizontal resolution is improved by shifting the image in the horizontal direction.

信号処理部9は、まず第1および第2原画像信号から合成画像信号を生成する。この合成画像は、M行N列に配列されるM×N個の対応画素からなる。合成画像の水平および垂直方向H,Vの画素の配列周期は、それぞれ周期PH,PVである。各対応画素は、それぞれ異なる2種類の色彩光の受光データを有する。   The signal processing unit 9 first generates a composite image signal from the first and second original image signals. This composite image is composed of M × N corresponding pixels arranged in M rows and N columns. The arrangement periods of the horizontal and vertical pixels H and V of the composite image are periods PH and PV, respectively. Each corresponding pixel has light reception data of two different types of color light.

図14は、上述の合成画像信号が表す合成画像の等価的な画素Dの配列の基本配列パターン18を示す図である。この基本配列パターン18は、2行2列に配列される4つの画素からなる。画素D(1,1)、D(1,2)は、緑と赤との対応画素である。画素D(2,1)、D(2,2)は、緑と青との対応画素である。図14では、緑と赤との対応画素には符号「Fa」を記し、緑と青との対応画素には、符号「Fb」を記す。このことから、合成画像では、画素配列が原画像の画素配列と等しく、また全画素が緑の対応画素であることがわかる。また、奇数行の画素が赤の対応画素であり、偶数行には赤の対応画素はひとつもない仮想画素である。偶数行の画素が青の対応画素であり、奇数行には青の対応画素はひとつもない仮想画素である。各赤青緑毎の個別の合成画像の配列を、図15、図16、図17に示す。図15は、赤の配列である。図16は青の配列である。図17は緑の配列である。第1原画像の画素は、右下がりのハッチングをして表し、第2原画像の画素は、右上がりのハッチングをして表す。   FIG. 14 is a diagram illustrating a basic array pattern 18 of an array of equivalent pixels D of the composite image represented by the above-described composite image signal. This basic array pattern 18 is composed of four pixels arranged in 2 rows and 2 columns. Pixels D (1,1) and D (1,2) are corresponding pixels of green and red. Pixels D (2,1) and D (2,2) are corresponding pixels of green and blue. In FIG. 14, the symbol “Fa” is written for the corresponding pixel of green and red, and the symbol “Fb” is marked for the corresponding pixel of green and blue. From this, it can be seen that in the composite image, the pixel arrangement is equal to the pixel arrangement of the original image, and all the pixels are green corresponding pixels. The odd-numbered pixels are red corresponding pixels, and the even-numbered pixels are virtual pixels having no red corresponding pixels. Even-numbered pixels are blue corresponding pixels, and odd-numbered rows are virtual pixels having no blue corresponding pixels. The arrangement of individual composite images for each red, blue, and green is shown in FIGS. FIG. 15 shows a red array. FIG. 16 shows a blue array. FIG. 17 shows a green array. The pixels of the first original image are represented with right-down hatching, and the pixels of the second original image are represented with right-up hatching.

次に本発明の特徴部分であるLPF5について、説明する。LPF5は、各単色画像光画像信号に対して個別的にローパスフィルタ処理を施す。図18は、合成画像の赤または青の画素に関する基底帯域及びLPF5の特性を空間周波数座標上に表した図である。この基底帯域19は、以下の4点を頂点とする矩形領域(図中、ハッチング領域)となる。
(fH/2,fV/4)
(−fH/2,fV/4)
(−fH/2,−fV/4)
(fH/2,−fV/4)
2枚の原画像間に光量差がある場合に発生する水平縞模様の周波数成分は、イメージシフトの方向にイメージシフトのシフト量の2倍の周期のものである。したがって、点(fH/2,fV/4)と点(fH/2,−fV/4)を結ぶ境界線及び点(−fH/2,fV/4)と点(−fH/2,−fV/4)を結ぶ境界線上に存在する。このため、LPF5は、この境界線上においてゲインがゼロであることが望ましく、上記基底帯域15を通過帯域とするものが望ましい。また、ローパス後の画像つまり光量差補正後の合成画像が歪まないために、LPF5は直線位相特性であることが望ましい。このような要求を満たすローパスフィルタは、その次数が非常に大きくなってしまう傾向がある。高次数のローパスフィルタは、処理に時間がかかったり、回路規模が大きくなり、実用的でなくなってしまう。従って、上述のローパスフィルタの満たすべき条件と、処理時間や回路規模を鑑みて、適当な次数を設定する。例えば、以下のようなローパスフィルタr13が上げられる。
Next, the LPF 5 which is a characteristic part of the present invention will be described. The LPF 5 individually performs low-pass filter processing on each monochromatic image light image signal. FIG. 18 is a diagram showing the characteristics of the baseband and LPF 5 regarding the red or blue pixels of the composite image on the spatial frequency coordinates. The base band 19 is a rectangular area (hatching area in the figure) having the following four points as vertices.
(FH / 2, fV / 4)
(-FH / 2, fV / 4)
(-FH / 2, -fV / 4)
(FH / 2, -fV / 4)
The frequency component of the horizontal stripe pattern generated when there is a light amount difference between the two original images has a cycle that is twice the shift amount of the image shift in the image shift direction. Therefore, the boundary line connecting the point (fH / 2, fV / 4) and the point (fH / 2, −fV / 4) and the point (−fH / 2, fV / 4) and the point (−fH / 2, −fV). / 4) exists on the boundary line. For this reason, the LPF 5 desirably has a zero gain on this boundary line, and preferably has the base band 15 as a pass band. Further, it is desirable that the LPF 5 has a linear phase characteristic so that the image after the low pass, that is, the composite image after the light amount difference correction is not distorted. A low-pass filter that satisfies such requirements tends to be very large in order. A high-order low-pass filter is not practical because it takes time to process and the circuit scale increases. Accordingly, an appropriate order is set in consideration of the conditions to be satisfied by the above-described low-pass filter, processing time, and circuit scale. For example, the following low-pass filter r13 is raised.

Figure 2007097203
Figure 2007097203

ローパスフィルタr13は、7行4列の行列として表される2次元ローパスフィルタである。第p行q列の要素は、r13(p,q)として表すとする。このローパスフィルタr13により、合成画像を光量差補正する計算は、以下の式で計算される。   The low-pass filter r13 is a two-dimensional low-pass filter that is represented as a 7 × 4 matrix. The element in the p-th row and the q-th column is expressed as r13 (p, q). The calculation for correcting the light amount difference of the composite image by the low-pass filter r13 is calculated by the following equation.

Figure 2007097203
Figure 2007097203

ここで、s(n,m)は、光量差補正前の合成画像の第n行m列の赤または青の画素を表す。図15および図16に示したように、仮想画素には画素データがない。式(4)の計算においては、仮想画素の画素データは、零として行う。また、t(n,m)は、光量差補正後の合成画像の第n行m列の赤または青の画素を表す。仮想画素であるs(n,m)を式(28)で計算すると、光量差補正後の画素t(n,m)の画素値は、零になる。従って、仮想画素の計算は、式(28)に関して省略できる。   Here, s (n, m) represents a red or blue pixel in the nth row and mth column of the composite image before the light amount difference correction. As shown in FIGS. 15 and 16, the virtual pixel has no pixel data. In the calculation of Expression (4), the pixel data of the virtual pixel is assumed to be zero. Further, t (n, m) represents a red or blue pixel in the nth row and mth column of the composite image after the light amount difference correction. When s (n, m), which is a virtual pixel, is calculated by Expression (28), the pixel value of the pixel t (n, m) after light amount difference correction is zero. Accordingly, the calculation of virtual pixels can be omitted with respect to equation (28).

ローパスフィルタr13よりも簡略化したローパスフィルタr14を、以下に示す。   A low-pass filter r14 that is more simplified than the low-pass filter r13 is shown below.

Figure 2007097203
Figure 2007097203

ローパスフィルタr14は、5行3列の行列として表される2次元ローパスフィルタである。第p行q列の要素は、r14(p,q)として表すとする。このローパスフィルタr14により、合成画像を光量差補正する計算は、以下の式で計算される。   The low-pass filter r14 is a two-dimensional low-pass filter expressed as a 5 × 3 matrix. The element in the p-th row and the q-th column is expressed as r14 (p, q). The calculation for correcting the light amount difference of the composite image by the low-pass filter r14 is calculated by the following equation.

Figure 2007097203
Figure 2007097203

ローパスフィルタr14は、ローパスフィルタr13よりも計算量が少なくてすむ利点がある。しかし、ローパスフィルタr14は、通過帯域19のゲインが境界線に近づくに連れて1よりも小さくなる傾向が強く、結果としてローパスフィルタr13よりも、通過域の特性が良くなく、光量差補正後の合成画像がぼやける欠点がある。   The low-pass filter r14 has an advantage that the calculation amount is smaller than that of the low-pass filter r13. However, the low-pass filter r14 has a strong tendency to become smaller than 1 as the gain of the passband 19 approaches the boundary, and as a result, the passband characteristics are not as good as those of the low-pass filter r13, and after the light amount difference correction. There is a drawback that the composite image is blurred.

また、さらに計算量を減らしたローパスフィルタを、以下に示す。   A low-pass filter with a further reduced calculation amount is shown below.

Figure 2007097203
Figure 2007097203

ローパスフィルタr15は、行ベクトルとして表される1次元ローパスフィルタである。第q要素は、r15(q)として表すとする。このローパスフィルタr15により、合成画像を光量差補正する計算は、以下の式で計算される。   The low-pass filter r15 is a one-dimensional low-pass filter expressed as a row vector. The q-th element is represented as r15 (q). The calculation for correcting the light amount difference of the composite image by the low-pass filter r15 is calculated by the following equation.

Figure 2007097203
Figure 2007097203

このローパスフィルタr15は、図13に示したイメージシフト方向に、合成画像をローパスフィルタリングしている。2枚の原画像間に光量差がある場合に発生する垂直縞模様の周波数成分は、図13に示したイメージシフト量を表す有向線分A4B4の2倍を周期とする空間周波数Fc4と等しい。空間周波数Fc4は、その方向が水平方向Hと等しく、この方向にfHの大きさの空間周波数である。このローパスフィルタr15は、上記した2次元ローパスフィルタと異なり、空間周波数Fc4を含む破線20上をカットオフするように限定されている。このような水平方向Hに対するローパスフィルタr15であっても、十分に光量差補正が行える。   The low-pass filter r15 performs low-pass filtering of the composite image in the image shift direction shown in FIG. The frequency component of the vertical stripe pattern generated when there is a difference in the amount of light between the two original images is equal to the spatial frequency Fc4 whose cycle is twice the directed line segment A4B4 representing the image shift amount shown in FIG. . The direction of the spatial frequency Fc4 is equal to the horizontal direction H, and is a spatial frequency having a magnitude of fH in this direction. Unlike the above-described two-dimensional low-pass filter, the low-pass filter r15 is limited to cut off the broken line 20 including the spatial frequency Fc4. Even such a low-pass filter r15 with respect to the horizontal direction H can sufficiently correct the light amount difference.

さらに、計算量を減らしたローパスフィルタを、以下に示す。   Furthermore, a low-pass filter with a reduced calculation amount is shown below.

Figure 2007097203
Figure 2007097203

ローパスフィルタr16は、行ベクトルとして表される1次元ローパスフィルタである。第qの要素は、r16(q)として表すとする。このローパスフィルタr16により、合成画像を光量差補正する計算は、以下の式で計算される。   The low-pass filter r16 is a one-dimensional low-pass filter expressed as a row vector. The q-th element is represented as r16 (q). The calculation for correcting the light amount difference of the composite image by the low-pass filter r16 is calculated by the following equation.

Figure 2007097203
Figure 2007097203

このローパスフィルタr16は、図13に示したイメージシフト方向に、合成画像をローパスフィルタリングしている。ローパスフィルタr16は、ローパスフィルタr15よりも計算量が少なくてすむ利点がある。しかし、ローパスフィルタr16は、通過帯域19のゲインが破線20に近づくに連れて1よりも小さくなる傾向が強く、結果としてローパスフィルタr15よりも、通過域の特性が良くなく、光量差補正後の合成画像がぼやける欠点がある。   The low-pass filter r16 performs low-pass filtering on the composite image in the image shift direction shown in FIG. The low-pass filter r16 has an advantage that the calculation amount is smaller than that of the low-pass filter r15. However, the low-pass filter r16 tends to be smaller than 1 as the gain of the passband 19 approaches the broken line 20, and as a result, the passband characteristics are not as good as the low-pass filter r15, and after the light amount difference correction. There is a drawback that the composite image is blurred.

次に、合成画像の緑の画素に関して説明する。図19は、緑の画素の基底帯域を示す空間周波数図である。LPF5は、以下の4点を頂点とする矩形領域(図中、ハッチング領域)を通過帯域21とする。
(fH/2,fV/2)
(−fH/2,fV/2)
(−fH/2,−fV/2)
(fH/2,−fV/2)
2枚の原画像間に光量差がある場合に発生する市松模様の周波数成分は、イメージシフトの方向にイメージシフトのシフト量の2倍の周期のものである。したがって、点(fH/2,fV/2)と点(fH/2,−fV/2)を結ぶ境界線及び点(−fH/2,fV/2)と点(−fH/2,−fV/2)を結ぶ境界線上に存在する。このため、LPF5はこの境界線上においてゲインがゼロであることが望ましい。また、ローパス後の画像つまり光量差補正後の合成画像が歪まないために、LPF5は直線位相特性であることが望ましい。このような要求を満たすローパスフィルタは、その次数が非常に大きくなってしまう傾向がある。高次数のローパスフィルタは、処理に時間がかかったり、回路規模が大きくなり、実用的でなくなってしまう。従って、上述のローパスフィルタの満たすべき条件と、処理時間や回路規模を鑑みて、適当な次数を設定する。例えば、以下のようなローパスフィルタr17が上げられる。
Next, the green pixel of the composite image is described. FIG. 19 is a spatial frequency diagram showing the base band of a green pixel. The LPF 5 uses a rectangular area (hatching area in the figure) having the following four points as vertices as a passband 21.
(FH / 2, fV / 2)
(-FH / 2, fV / 2)
(-FH / 2, -fV / 2)
(FH / 2, -fV / 2)
A checkered frequency component generated when there is a light amount difference between two original images has a period twice as large as the image shift amount in the image shift direction. Therefore, the boundary line connecting the point (fH / 2, fV / 2) and the point (fH / 2, −fV / 2) and the point (−fH / 2, fV / 2) and the point (−fH / 2, −fV). / 2) on the boundary line connecting. For this reason, it is desirable for the LPF 5 to have zero gain on this boundary line. Further, it is desirable that the LPF 5 has a linear phase characteristic so that the image after the low pass, that is, the composite image after the light amount difference correction is not distorted. A low-pass filter that satisfies such requirements tends to be very large in order. A high-order low-pass filter is not practical because it takes time to process and the circuit scale increases. Accordingly, an appropriate order is set in consideration of the conditions to be satisfied by the above-described low-pass filter, processing time, and circuit scale. For example, the following low-pass filter r17 is raised.

Figure 2007097203
Figure 2007097203

ローパスフィルタr17は、4行4列の行列として表される2次元ローパスフィルタである。第p行q列の要素は、r17(p,q)として表すとする。このローパスフィルタr17により、合成画像を光量差補正する計算は、以下の式で計算される。   The low-pass filter r17 is a two-dimensional low-pass filter represented as a 4 × 4 matrix. The element in the p-th row and the q-th column is expressed as r17 (p, q). The calculation for correcting the light amount difference of the composite image by the low-pass filter r17 is calculated by the following equation.

Figure 2007097203
Figure 2007097203

ここで、G(n,m)は、光量差補正前の合成画像の緑の第n行m列の画素を表す。また、t(n,m)は、光量差補正後の合成画像の緑の第n行m列の画素を表す。   Here, G (n, m) represents a pixel in the green nth row and mth column of the composite image before the light amount difference correction. Further, t (n, m) represents a green pixel in the nth row and mth column of the composite image after the light amount difference correction.

ローパスフィルタr17よりも簡略化したローパスフィルタr18を、以下に示す。   A low-pass filter r18 that is more simplified than the low-pass filter r17 is shown below.

Figure 2007097203
Figure 2007097203

ローパスフィルタr18は、3行3列の行列として表される2次元ローパスフィルタである。第p行q列の要素は、r18(p,q)として表すとする。このローパスフィルタr18により、合成画像を光量差補正する計算は、以下の式で計算される。   The low-pass filter r18 is a two-dimensional low-pass filter expressed as a 3 × 3 matrix. The element in the p-th row and the q-th column is expressed as r18 (p, q). The calculation for correcting the light amount difference of the composite image by the low-pass filter r18 is calculated by the following equation.

Figure 2007097203
Figure 2007097203

ローパスフィルタr18は、ローパスフィルタr17よりも計算量が少なくてすむ利点がある。しかし、ローパスフィルタr18は、通過帯域21のゲインが境界線に近づくに連れて1よりも小さくなる傾向が強く、結果としてローパスフィルタr17よりも、通過域の特性が良くなく、光量差補正後の合成画像がぼやける欠点がある。   The low-pass filter r18 has the advantage of requiring less calculation amount than the low-pass filter r17. However, the low-pass filter r18 tends to be smaller than 1 as the gain of the passband 21 approaches the boundary, and as a result, the passband characteristics are not as good as those of the low-pass filter r17, and after the light amount difference correction. There is a drawback that the composite image is blurred.

また、さらに計算量を減らしたローパスフィルタを、以下に示す。   A low-pass filter with a further reduced calculation amount is shown below.

Figure 2007097203
Figure 2007097203

ローパスフィルタr19は、行ベクトルとして表される1次元ローパスフィルタである。第q要素は、r19(q)として表すとする。このローパスフィルタr19により、合成画像を光量差補正する計算は、以下の式で計算される。   The low-pass filter r19 is a one-dimensional low-pass filter expressed as a row vector. The q-th element is represented as r19 (q). The calculation for correcting the light amount difference of the composite image by the low-pass filter r19 is calculated by the following equation.

Figure 2007097203
Figure 2007097203

このローパスフィルタr19は、図13に示したイメージシフト方向に、合成画像をローパスフィルタリングしている。2枚の原画像間に光量差がある場合に発生する市松模様の周波数成分は、図13に示したイメージシフト量を表す有向線分A4B4の2倍を周期とする空間周波数Fc4と等しい。空間周波数Fc4は、その方向が水平方向Hと等しく、この方向にfHの大きさの空間周波数である。   The low-pass filter r19 performs low-pass filtering of the composite image in the image shift direction shown in FIG. A checkered frequency component generated when there is a light quantity difference between two original images is equal to a spatial frequency Fc4 having a cycle of twice the directed line segment A4B4 representing the image shift amount shown in FIG. The direction of the spatial frequency Fc4 is equal to the horizontal direction H, and is a spatial frequency having a magnitude of fH in this direction.

このローパスフィルタr19は、上記した2次元ローパスフィルタと異なり、空間周波数Fc4を含む破線22上をカットオフするように限定されている。このような水平方向Hに対するローパスフィルタr19であっても、十分に光量差補正ができる。   Unlike the above-described two-dimensional low-pass filter, the low-pass filter r19 is limited to cut off the broken line 22 including the spatial frequency Fc4. Even such a low-pass filter r19 with respect to the horizontal direction H can sufficiently correct the light amount difference.

さらに計算量を減らしたローパスフィルタを、以下に示す。   A low-pass filter with a further reduced amount of calculation is shown below.

Figure 2007097203
Figure 2007097203

ローパスフィルタr20は、行ベクトルとして表される1次元ローパスフィルタである。第qの要素は、r20(q)として表すとする。このローパスフィルタr8により、合成画像を光量差補正する計算は、以下の式で計算される。   The low-pass filter r20 is a one-dimensional low-pass filter expressed as a row vector. The q-th element is represented as r20 (q). The calculation for correcting the light amount difference of the composite image by the low-pass filter r8 is calculated by the following equation.

Figure 2007097203
Figure 2007097203

このローパスフィルタr20は、図13に示したイメージシフト方向に、合成画像をローパスフィルタリングしている。ローパスフィルタr20は、ローパスフィルタr19よりも計算量が少なくてすむ利点がある。しかし、ローパスフィルタr20は、通過帯域11のゲインが破線22に近づくに連れて1よりも小さくなる傾向が強く、結果としてローパスフィルタr19よりも、通過域の特性が良くなく、光量差補正後の合成画像がぼやける欠点がある。   The low-pass filter r20 performs low-pass filtering of the composite image in the image shift direction shown in FIG. The low-pass filter r20 has an advantage that the calculation amount is smaller than that of the low-pass filter r19. However, the low pass filter r20 has a strong tendency to become smaller than 1 as the gain of the pass band 11 approaches the broken line 22. As a result, the pass band characteristics are not better than the low pass filter r19, and after the light amount difference correction is performed. There is a drawback that the composite image is blurred.

上述したように第4実施の形態の2枚の原画像間に光量差がある場合に発生する空間周波数Fc4は、水平方向の空間周波数である。しかし、図17の緑の画素配列からわかるように光量差がある場合に発生する緑の画素は市松模様である。この市松模様を除去するローパスフィルタは、垂直方向の1次元ローパスフィルタでもよい。第4実施の形態は、水平方向の解像度を向上させる目的でイメージシフトを行うものであったので、水平方向にローパスフィルタを施すことは、この目的に反する。従って、垂直方向の1次元ローパスフィルタは、第4実施の形態にとって、より望ましい。   As described above, the spatial frequency Fc4 generated when there is a light amount difference between the two original images in the fourth embodiment is a horizontal spatial frequency. However, as can be seen from the green pixel array in FIG. 17, the green pixels that occur when there is a difference in the amount of light have a checkered pattern. The low-pass filter that removes the checkerboard pattern may be a vertical one-dimensional low-pass filter. Since the fourth embodiment performs image shift for the purpose of improving the resolution in the horizontal direction, applying a low-pass filter in the horizontal direction is contrary to this purpose. Therefore, the one-dimensional low-pass filter in the vertical direction is more desirable for the fourth embodiment.

また、ローパスフィルタは、画素毎に施すので、画像のどの部分においても、また、部分毎に光量差が異なる場合でも、光量差補正することができる。   Further, since the low-pass filter is applied for each pixel, the light amount difference correction can be performed in any part of the image and even when the light amount difference is different for each part.

なお、第2〜第4実施の形態では第1実施の形態と同様に、(1)2つの原画像信号を合成して合成画像を生成した後、(2)その合成画像に対してローパスフィルタリングを施し、その後、(3)信号処理部9が仮想画素の画像データを補間により求めているが、処理順序はこれに限るものではなく、仮想画素の画像データを求めた後(補間処理後)ローパスフィルタリングを施しても良いし(第5実施の形態参照)、また、ローパスフィルタリングと補間処理を同時に行っても良い。   In the second to fourth embodiments, as in the first embodiment, (1) after two original image signals are combined to generate a combined image, (2) low-pass filtering is performed on the combined image. After that, (3) The signal processing unit 9 obtains the virtual pixel image data by interpolation, but the processing order is not limited to this, and after obtaining the virtual pixel image data (after the interpolation process) Low-pass filtering may be performed (see the fifth embodiment), or low-pass filtering and interpolation processing may be performed simultaneously.

(第5実施の形態)図20は、本実施の形態における撮像装置の構成を示している。本実施の形態における撮像装置は、同図に示すように、光学系51、固体撮像素子52、A/D変換器53、画像メモリ54、補間処理部55、駆動部56、同期信号発生部57、メモリ制御部58、LPF59、記録媒体60を備えている。   (Fifth Embodiment) FIG. 20 shows the arrangement of an image pickup apparatus according to this embodiment. As shown in the figure, the imaging apparatus according to the present embodiment includes an optical system 51, a solid-state imaging device 52, an A / D converter 53, an image memory 54, an interpolation processing unit 55, a driving unit 56, and a synchronization signal generating unit 57. A memory control unit 58, an LPF 59, and a recording medium 60.

被写体からの画像光は、光学系51の集光レンズで集光された後、撮像素子52の結像面上に結像される。撮像素子52の結像面には、複数の受光領域PDが行列状に並べられる。   Image light from the subject is condensed by the condenser lens of the optical system 51 and then imaged on the imaging surface of the image sensor 52. A plurality of light receiving regions PD are arranged in a matrix on the imaging surface of the image sensor 52.

光学系51には、画像光を集光する集光レンズの他に、イメージシフト機構が含まれる。イメージシフト機構は、駆動部56により制御されて、あらかじめ定める時間毎に、結像面上の画像光の結像位置を第1および第2結像位置にそれぞれシフト移動させる。   The optical system 51 includes an image shift mechanism in addition to a condensing lens that condenses image light. The image shift mechanism is controlled by the drive unit 56 and shifts the imaging position of the image light on the imaging surface to the first and second imaging positions, respectively, at predetermined time intervals.

撮像素子52は、あらかじめ定める露光時間だけ、光学系52からの画像光を各受光領域PDに受光させることによって、画像光を撮像する。露光時間が経過すると、撮像素子52は、あらかじめ定める時間毎に、各受光領域PDからの受光データを第1または第2原画像信号として、A/D変換器53に導出する。   The image sensor 52 captures image light by causing each light receiving region PD to receive image light from the optical system 52 for a predetermined exposure time. When the exposure time elapses, the image sensor 52 derives the light reception data from each light reception region PD as the first or second original image signal to the A / D converter 53 at predetermined time intervals.

A/D変換器53は、撮像素子52からのアナログ信号である第1及び第2原画像信号をデジタル信号に変換して、画像メモリ54にストアする。   The A / D converter 53 converts the first and second original image signals, which are analog signals from the image sensor 52, into digital signals and stores them in the image memory 54.

同期信号発生部57は、2つの原画像信号の撮像動作に対応する同期信号を発生させ、駆動部56およびメモリ制御部58に与える。駆動部56は、光学系1内のイメージシフト機構を用いて、イメージシフト動作を行う。これによって、撮像素子52では、各受光領域PDが受光する画像光が、被写体の像の中で移動前の撮像光とずれる。メモリ制御部58は、受光データを結像位置の異なる2つの原画像信号毎に関連させて、画像メモリ54にストアする。   The synchronization signal generation unit 57 generates a synchronization signal corresponding to the imaging operation of the two original image signals, and supplies it to the drive unit 56 and the memory control unit 58. The drive unit 56 performs an image shift operation using an image shift mechanism in the optical system 1. As a result, in the image sensor 52, the image light received by each light receiving area PD is shifted from the image light before movement in the subject image. The memory control unit 58 stores the received light data in the image memory 54 in association with two original image signals having different imaging positions.

補間処理部55は、画像メモリ54からの原画像信号を受信し、2つの原画像信号からは得られない画像データを補間により生成する。つまり、2つの原画像信号を合成したときにデータを有していない画素の画像データを補間により生成する。そして、補間後の画像信号を再び画像メモリ54にストアする。なお、この画像メモリ4に記憶された原画像信号は、後述するLPF59により画質補正され、補正後の信号に上書きされて消去される。   The interpolation processing unit 55 receives the original image signal from the image memory 54 and generates image data that cannot be obtained from the two original image signals by interpolation. That is, image data of pixels that do not have data when the two original image signals are combined is generated by interpolation. Then, the interpolated image signal is stored in the image memory 54 again. Note that the original image signal stored in the image memory 4 is subjected to image quality correction by an LPF 59, which will be described later, and is overwritten and erased by the corrected signal.

LPF59は、2つの原画像信号の間の光量差及び補間処理により生じる画質の劣化を除去するためのローパスフィルタであり、原画像信号画像メモリ54にストアされた補間処理後の原画像信号を受信して、画質補正(光量差補正及び補間補正)を行う。この画質補正後の信号は、出力画像信号として記録媒体60にストアされる。   The LPF 59 is a low-pass filter for removing a light amount difference between two original image signals and image quality degradation caused by interpolation processing, and receives the original image signal after interpolation stored in the original image signal image memory 54. Then, image quality correction (light quantity difference correction and interpolation correction) is performed. The signal after the image quality correction is stored in the recording medium 60 as an output image signal.

次に、本実施の形態の撮像装置の具体的な例について説明する。ここでは、撮像素子52の結像面の画素配列が図2に示す構造が、水平及び垂直方向H,Vに周期的に繰り返されたものとなっており、画像光の第1および第2結像位置の位置関係が図3に示す関係となっているものとする。ここで、第1結像位置A1を基準にすると、第2結像位置B1は、第1結像位置A1から、受光領域PDの水平方向Hの配列周期PHの半分の長さだけ、かつ垂直方向Vの配列周期PVの半分の長さだけ、移動した位置である。   Next, a specific example of the imaging device according to the present embodiment will be described. Here, the structure shown in FIG. 2 in the pixel array on the imaging surface of the image sensor 52 is periodically repeated in the horizontal and vertical directions H and V, and the first and second connections of the image light. Assume that the positional relationship between the image positions is as shown in FIG. Here, with reference to the first image formation position A1, the second image formation position B1 is vertical from the first image formation position A1 by a length that is half the arrangement period PH in the horizontal direction H of the light receiving region PD. This is the position moved by half the length of the arrangement period PV in the direction V.

撮像素子52は、この第1および第2結像位置A1,B1に画像光が結像されたときに、該画像光を撮像して、第1および第2原画像信号を得る。図4はそれらの合成画像を表す図である。第1原画像の画素は、右下がりのハッチングをして表し、第2原画像の画素は、右上がりのハッチングをして表している。ここでの動作は図1に示した第1の実施の形態の撮像装置と同様である。   When image light is imaged at the first and second imaging positions A1 and B1, the image sensor 52 captures the image light and obtains first and second original image signals. FIG. 4 is a diagram showing these synthesized images. The pixels of the first original image are represented by right-down hatching, and the pixels of the second original image are represented by right-up hatching. The operation here is the same as that of the imaging apparatus of the first embodiment shown in FIG.

補間処理部55は、上記合成画像におけるデータのない画素(仮想画素)の画素データを、その周囲の実画素の画素データから補間して、この仮想画素の画素データを代入して生成する。   The interpolation processing unit 55 interpolates pixel data of pixels (virtual pixels) having no data in the synthesized image from pixel data of surrounding real pixels, and substitutes the pixel data of the virtual pixels for generation.

この補間処理では、例えば線形補間法、またはキュービックコンボリューション補間法などが用いられる。線形補間法は、例えば合成画像において仮想画素の周囲の4つの実画素の画素データの平均値として、仮想画素の画素データを補間する補間手法である。キュービックコンボリューション補間法は、仮想画素の周囲16個の実画素の画素データを用いて、仮想画素の画素データを補間する補間法である。   In this interpolation processing, for example, linear interpolation or cubic convolution interpolation is used. The linear interpolation method is an interpolation method that interpolates pixel data of a virtual pixel as an average value of pixel data of four real pixels around the virtual pixel in a synthesized image, for example. The cubic convolution interpolation method is an interpolation method in which pixel data of virtual pixels is interpolated using pixel data of 16 real pixels around the virtual pixels.

補間後の画像の配列周期は、第1および第2原画像の画素配列と比較して、水平、垂直はいずれに関しても半分となる。ゆえに、第1および第2原画像の解像度を標準解像度とすると、出力画像の解像度は、各方向H,Vに関して標準解像度よりも高解像度となる。また、出力画像の斜め方向Uの画素の配列周期は、合成画像の配列周期の半分になる。しかし、出力画像信号は、合成画像信号を補間して得られる。このとき補間処理で増加した画素によって出力画像の画素の配列周期が合成画像よりも小さくなっても、解像度は合成画像と変わらない。ゆえに、出力画像の斜め方向Uの解像度は、画素の配列周期から得られるべき解像度よりも低下する。   The arrangement period of the interpolated image is halved in both horizontal and vertical directions compared to the pixel arrangement of the first and second original images. Therefore, if the resolution of the first and second original images is the standard resolution, the resolution of the output image is higher than the standard resolution in each direction H and V. Further, the arrangement period of the pixels in the oblique direction U of the output image is half of the arrangement period of the composite image. However, the output image signal is obtained by interpolating the composite image signal. At this time, even if the pixel arrangement period of the output image becomes smaller than that of the synthesized image due to the pixels increased by the interpolation processing, the resolution is not different from that of the synthesized image. Therefore, the resolution in the oblique direction U of the output image is lower than the resolution that should be obtained from the pixel arrangement period.

次に、本実施の形態の特徴部分である光量差補正を行うLPF59について、説明する。LPF59は、2枚の原画像間に光量差に起因する市松模様、及び、補間処理により発生する市松模様を除去するために、補間後の出力画像に対してローパスフィルタ処理を施す。   Next, the LPF 59 that performs light amount difference correction, which is a characteristic part of the present embodiment, will be described. The LPF 59 performs low-pass filter processing on the output image after the interpolation in order to remove the checkered pattern caused by the light amount difference between the two original images and the checkered pattern generated by the interpolation process.

図5は、LPF59のローパス特性および合成画像の基底帯域を空間周波数座標上に表した図である。基底帯域11は、以下の4点を頂点とする矩形領域(図中、ハッチング領域)となる。
(fH,0)
(0,fV)
(−fH,0)
(0,−fV)
ここで、例えば(fH,0)は、水平方向の空間周波数fH、かつ垂直方向の空間周波数0である空間周波数を表す。
FIG. 5 is a diagram showing the low-pass characteristics of the LPF 59 and the base band of the composite image on the spatial frequency coordinates. The base band 11 is a rectangular area (hatching area in the figure) having the following four points as vertices.
(FH, 0)
(0, fV)
(-FH, 0)
(0, -fV)
Here, for example, (fH, 0) represents a spatial frequency which is a spatial frequency fH in the horizontal direction and a spatial frequency 0 in the vertical direction.

2枚の原画像間に光量差がある場合に発生する市松模様の周波数成分は、イメージシフトによるシフト量の2倍の周期となり、かつその方向はイメージシフトの方向に一致する。これを、図4を使って説明する。図4において、画素s(1,1)を通るイメージシフト方向を考えると、s(2,2)、s(3,3)、s(4,4)、s(5,5)、s(6,6)を通る斜め方向の画素列になる。このうち、第1原画像の画素に対応する合成画像の画素sは、s(1,1)、s(3,3)、s(5,5)である。また、第2原画像の画素に対応する合成画像の画素sは、s(2,2)、s(4,4)、s(6,6)である。すなわち、第1原画像の画素と第2原画像の画素が交互に配列されている。2枚の原画像間に光量差が生じた場合には、この斜め方向の画素列において2画素周期の空間周波数が発生することになる。この2画素周期の空間周波数は、方向が第1斜め方向U1と等しく、この方向に以下の大きさの空間周波数である。   A checkered frequency component generated when there is a light quantity difference between two original images has a period twice as large as the shift amount by the image shift, and the direction coincides with the image shift direction. This will be described with reference to FIG. In FIG. 4, considering the image shift direction passing through the pixel s (1,1), s (2,2), s (3,3), s (4,4), s (5,5), s ( 6, 6) in a diagonal pixel row. Among these, the pixel s of the composite image corresponding to the pixel of the first original image is s (1,1), s (3,3), s (5,5). Also, the pixel s of the composite image corresponding to the pixel of the second original image is s (2,2), s (4,4), s (6,6). That is, the pixels of the first original image and the pixels of the second original image are alternately arranged. When a light amount difference occurs between two original images, a spatial frequency of a two-pixel cycle is generated in the diagonal pixel row. The spatial frequency of this two-pixel cycle is equal to the first oblique direction U1, and is the spatial frequency of the following magnitude in this direction.

このように、第1斜め方向U1に関して1次元空間的に考えると、この2枚の原画像間に光量差がある場合に発生する空間周波数は、図5においてFdと等しい。Fdは、2次元空間周波数として表せば(fH/2,fV/2)および(−fH/2,−fV/2)となる。この周波数成分Fdは、図5における点(fH,0)、点(0,fV)を結ぶ境界線、および点(−fH,0)、点(0,−fV)を結ぶ境界線上に存在する。   As described above, when considered in a one-dimensional space with respect to the first oblique direction U1, the spatial frequency generated when there is a light amount difference between the two original images is equal to Fd in FIG. Fd is expressed as (fH / 2, fV / 2) and (−fH / 2, −fV / 2) when expressed as a two-dimensional spatial frequency. The frequency component Fd exists on the boundary line connecting the point (fH, 0) and the point (0, fV) and the boundary line connecting the point (−fH, 0) and the point (0, −fV) in FIG. .

また、2枚の原画像間に光量差がある場合に発生する市松模様の周波数成分は、水平方向,垂直方向で考えると、図5においてFcと等しい。つまり、(fH,0)、(0,fV)、(−fH,0)、(0,−fV)の空間周波数となる。これを図21、図22を使って説明する。図21は、(fH,0)または(−fH,0)の空間周波数を示す合成画像を表す図である。(fH,0)または(−fH,0)の空間周波数は、水平方向に周期PHの縦縞である。図21中では、黒い画素の列と、白い画素の列が交互に並んだ縦縞として表している。図22は、(0,fV)または(0,−fV)の空間周波数を示す合成画像を表す図である。(0,fV)または(0,−fV)の空間周波数は、垂直方向に周期PVの横縞である。図22中では、黒い画素の行と、白い画素の行が交互に並んだ横縞として表している。図21もしくは図22のどちらにおいても、黒い画素は第1原画像の全ての画素を含み、白い画素は第2原画像の全ての画素を含んでいる。従って、2枚の原画像間に光量差がある場合に発生する空間周波数は、Fcを含んでいる。また、その周波数成分Fcは、図5における点(fH,0)、点(0,fV)を結ぶ境界線、および点(−fH,0)、点(0,−fV)を結ぶ境界線上に存在する。   Also, the checkered frequency component generated when there is a difference in the amount of light between the two original images is equal to Fc in FIG. 5 when considered in the horizontal and vertical directions. That is, the spatial frequencies are (fH, 0), (0, fV), (−fH, 0), and (0, −fV). This will be described with reference to FIGS. FIG. 21 is a diagram illustrating a composite image showing a spatial frequency of (fH, 0) or (−fH, 0). The spatial frequency of (fH, 0) or (−fH, 0) is a vertical stripe with a period PH in the horizontal direction. In FIG. 21, black pixels and white pixels are alternately displayed as vertical stripes. FIG. 22 is a diagram illustrating a composite image indicating a spatial frequency of (0, fV) or (0, −fV). The spatial frequency of (0, fV) or (0, −fV) is a horizontal stripe with a period PV in the vertical direction. In FIG. 22, it is represented as horizontal stripes in which rows of black pixels and rows of white pixels are alternately arranged. In both FIG. 21 and FIG. 22, black pixels include all pixels of the first original image, and white pixels include all pixels of the second original image. Therefore, the spatial frequency generated when there is a light amount difference between two original images includes Fc. Further, the frequency component Fc is on the boundary line connecting the point (fH, 0) and the point (0, fV) and the boundary line connecting the point (−fH, 0) and the point (0, −fV) in FIG. 5. Exists.

LPF59は、上記のような空間周波数をカットするものであり、1次元フィルタとして構成する場合は、LPF59の1次元フィルタ方向は第1斜め方向U1と等しく、周波数Fd上のゲインが零であることが望ましく、上記基底帯域11を通過帯域とするものが望ましい。この場合のLPF59は、空間周波数Fdを含む破線12上のみをカットオフするようになる。また、原画像が本来保持している周波数成分を減衰させないために(画像がぼやけないために)、境界線を除く矩形領域内の領域では、LPF59のゲインが1であることが望ましい。また、ローパス後の画像つまり光量差補正後の合成画像が歪まないために、LPF59は直線位相特性であることが望ましい。   The LPF 59 cuts the spatial frequency as described above. When configured as a one-dimensional filter, the one-dimensional filter direction of the LPF 59 is equal to the first diagonal direction U1 and the gain on the frequency Fd is zero. It is desirable that the base band 11 be a pass band. In this case, the LPF 59 cuts off only on the broken line 12 including the spatial frequency Fd. Further, in order not to attenuate the frequency component originally held in the original image (in order not to blur the image), it is desirable that the gain of the LPF 59 is 1 in the region within the rectangular region excluding the boundary line. Further, it is desirable that the LPF 59 has a linear phase characteristic so that the image after the low pass, that is, the composite image after the light amount difference correction is not distorted.

LPF59を2次元フィルタとして構成する場合は、境界線12上のゲインが零であることが望ましく、上記基底帯域11を通過帯域とするものが望ましい。また、原画像が本来保持している周波数成分を減衰させないために(画像がぼやけないために)、境界線を除く矩形領域内の領域では、LPF59のゲインが1であることが望ましい。また、ローパス後の画像つまり光量差補正後の合成画像が歪まないために、LPF59は直線位相特性であることが望ましい。   When the LPF 59 is configured as a two-dimensional filter, the gain on the boundary line 12 is preferably zero, and the base band 11 is preferably a pass band. Further, in order not to attenuate the frequency component originally held in the original image (in order not to blur the image), it is desirable that the gain of the LPF 59 is 1 in the region within the rectangular region excluding the boundary line. Further, it is desirable that the LPF 59 has a linear phase characteristic so that the image after the low pass, that is, the composite image after the light amount difference correction is not distorted.

このような1次元フィルタや2次元フィルタとしては、第1の実施の形態で説明したローパスフィルタ(r1〜r4)を使用することができるが、ここでは、以下のようなローパスフィルタについて説明する。   As such a one-dimensional filter or two-dimensional filter, the low-pass filters (r1 to r4) described in the first embodiment can be used. Here, the following low-pass filters will be described.

縞模様の原因となる空間周波数成分の内で最も目立つものは、基底帯域11における水平,垂直方向の最大絶対値周波数成分であるFcである。そこで、2次元フィルタとして構成する場合、その周波数成分Fc上のゲインのみを零にするローパスフィルタを用いれば、縞模様は目立たなくなる。このようなローパスフィルタのローパス特性を、図23を使って説明する。ローパスフィルタは、図23において破線63および64上のゲインが零であることが望ましく、破線63および64で囲まれた領域65(図中、右下がりのハッチング領域、ただし基底帯域11を含む)を通過帯域とするものが望ましい。また、原画像が本来保持している周波数成分を減衰させないために(画像がぼやけないために)、境界線を除く矩形領域内の領域では、LPF59のゲインが1であることが望ましい。また、ローパス後の画像つまり光量差補正後の合成画像が歪まないために、LPF59は直線位相特性であることが望ましい。   The most prominent spatial frequency component causing the stripe pattern is Fc which is the maximum absolute value frequency component in the horizontal and vertical directions in the base band 11. Therefore, when the filter is configured as a two-dimensional filter, the stripe pattern becomes inconspicuous if a low-pass filter that makes only the gain on the frequency component Fc zero is used. The low-pass characteristics of such a low-pass filter will be described with reference to FIG. In the low-pass filter, it is desirable that the gain on the broken lines 63 and 64 in FIG. 23 is zero, and a region 65 (in the drawing, a hatching region that falls to the right, including the baseband 11) is surrounded by the broken lines 63 and 64. A pass band is desirable. Further, in order not to attenuate the frequency component originally held in the original image (in order not to blur the image), it is desirable that the gain of the LPF 59 is 1 in the region within the rectangular region excluding the boundary line. Further, it is desirable that the LPF 59 has a linear phase characteristic so that the image after the low pass, that is, the composite image after the light amount difference correction is not distorted.

上記のような要求を満たすローパスフィルタは、その次数が非常に大きくなってしまう傾向がある。高次数のローパスフィルタは、処理に時間がかかったり、回路規模が大きくなり、実用的でなくなってしまう。従って、上述のローパスフィルタの満たすべき条件と、処理時間や回路規模を鑑みて、適当な次数を設定する。例えば、以下のようなローパスフィルタm1が適当である。   A low-pass filter that satisfies the above requirements tends to have a very large order. A high-order low-pass filter is not practical because it takes time to process and the circuit scale increases. Accordingly, an appropriate order is set in consideration of the conditions to be satisfied by the above-described low-pass filter, processing time, and circuit scale. For example, the following low-pass filter m1 is appropriate.

Figure 2007097203
Figure 2007097203

このローパスフィルタm1は、4行4列の行列として表される2次元ローパスフィルタである。第p行q列の要素をm1(p,q)として表すと、このローパスフィルタm1により、合成画像を光量差補正する計算は、以下の式で計算される。   The low-pass filter m1 is a two-dimensional low-pass filter expressed as a 4 × 4 matrix. When the element in the p-th row and the q-th column is expressed as m1 (p, q), the calculation for correcting the light amount difference of the composite image by the low-pass filter m1 is calculated by the following equation.

Figure 2007097203
Figure 2007097203

ここで、s(n,m)は、光量差補正前の合成画像の第n行m列の画素を表す。また、t(n,m)は、光量差補正後の合成画像の第n行m列の画素を表す。図4に示したように、仮想画素には画素データが無い。従って、ローパスフィルタm1の計算を行う前に、補間処理部55により仮想画素の画素を補間により求めておく。   Here, s (n, m) represents a pixel in the nth row and mth column of the composite image before the light amount difference correction. Further, t (n, m) represents a pixel in the nth row and mth column of the composite image after the light amount difference correction. As shown in FIG. 4, the virtual pixel has no pixel data. Therefore, before the calculation of the low-pass filter m1, the interpolation processing unit 55 obtains the pixel of the virtual pixel by interpolation.

ローパスフィルタm1よりも簡略化したローパスフィルタm2を、以下に示す。   A low-pass filter m2 simplified from the low-pass filter m1 is shown below.

Figure 2007097203
Figure 2007097203

ローパスフィルタm2は、3行3列の行列として表される2次元ローパスフィルタである。第p行q列の要素をm2(p,q)として表すと、このローパスフィルタm2により、合成画像を光量差補正する計算は、以下の式で計算される。   The low-pass filter m2 is a two-dimensional low-pass filter represented as a 3 × 3 matrix. When the element in the p-th row and the q-th column is expressed as m2 (p, q), the calculation for correcting the light amount difference of the composite image by the low-pass filter m2 is calculated by the following equation.

Figure 2007097203
Figure 2007097203

図4に示したように、仮想画素には画素データが無い。従って、ローパスフィルタm2の計算を行う前に、補間処理部55により仮想画素の画素を補間により求めておく。   As shown in FIG. 4, the virtual pixel has no pixel data. Therefore, before calculating the low-pass filter m2, the interpolation processing unit 55 obtains the pixel of the virtual pixel by interpolation.

ローパスフィルタm2は、ローパスフィルタm1よりも計算量が少なくて済む利点がある。しかし、ローパスフィルタm2は、通過帯域15のゲインが境界線に近づくに連れて1よりも小さくなる傾向が強く、結果としてローパスフィルタm1よりも、通過域の特性が良くなく、光量差補正後の合成画像がぼやける欠点がある。   The low-pass filter m2 has an advantage that the calculation amount is smaller than that of the low-pass filter m1. However, the low-pass filter m2 has a strong tendency to become smaller than 1 as the gain of the pass band 15 approaches the boundary line. As a result, the pass band characteristics are not better than the low-pass filter m1, and after the light amount difference correction is performed. There is a drawback that the composite image is blurred.

また、2次元ローパスフィルタm1は、水平方向の1次元ローパスフィルタ(以下、水平ローパスフィルタと云う)mh1と垂直方向の1次元ローパスフィルタ(以下、垂直ローパスフィルタと云う)mv1とに分解できる。mh1は、行ベクトルとして表される1次元ローパスフィルタである。また、mv1は、列ベクトルとして表される1次元ローパスフィルタである。   The two-dimensional low-pass filter m1 can be decomposed into a horizontal one-dimensional low-pass filter (hereinafter referred to as horizontal low-pass filter) mh1 and a vertical one-dimensional low-pass filter (hereinafter referred to as vertical low-pass filter) mv1. mh1 is a one-dimensional low-pass filter represented as a row vector. Mv1 is a one-dimensional low-pass filter expressed as a column vector.

Figure 2007097203
Figure 2007097203

水平ローパスフィルタmh1と垂直ローパスフィルタmv1により、合成画像を光量差補正する計算は、以下の式で計算される。   The calculation for correcting the light amount difference of the composite image by the horizontal low-pass filter mh1 and the vertical low-pass filter mv1 is calculated by the following equation.

Figure 2007097203
Figure 2007097203

このように、水平ローパスフィルタmh1と垂直ローパスフィルタmv1を縦続形接続することにより、2次元ローパスフィルタm1を構成できるため、回路構成を簡略化できる。   Thus, since the two-dimensional low-pass filter m1 can be configured by cascading the horizontal low-pass filter mh1 and the vertical low-pass filter mv1, the circuit configuration can be simplified.

図24は、この構成例を示すブロック図であり、垂直ローパスフィルタmv1と水平LPFmh1が縦続接続している。この縦続接続形回路には、合成画像の画素データを、ノンインターレースにより入力する事により、2次元ローパスフィルタ処理された画素データを出力できる。   FIG. 24 is a block diagram showing this configuration example, in which a vertical low-pass filter mv1 and a horizontal LPF mh1 are connected in cascade. By inputting non-interlaced pixel data of the composite image to the cascade connection circuit, pixel data subjected to two-dimensional low-pass filter processing can be output.

図25は垂直ローパスフィルタmv1の回路構成例を表し、図26は水平ローパスフィルタmh1の回路構成例を表す。どちらの回路も、3個の加算器、1個の5倍乗算器により計算できる。なお、1/8の割り算器は、3ビットシフトにより計算できる。また、5倍乗算器も、ビットシフトと加算器により構成することもできる(図27参照)。   FIG. 25 illustrates a circuit configuration example of the vertical low-pass filter mv1, and FIG. 26 illustrates a circuit configuration example of the horizontal low-pass filter mh1. Both circuits can be calculated with three adders and one 5x multiplier. Note that a 1/8 divider can be calculated by 3-bit shift. The 5-times multiplier can also be constituted by a bit shift and an adder (see FIG. 27).

一方、2次元ローパスフィルタm1をそのまま回路に構成したブロック図を図28に示す。この図で、Dは1画素遅延素子、破線ブロックは、1水平遅延ラインを表す。従って、破線ブロック内の遅延ラインの遅延画素数は、出力画像の水平画素数より3画素少ない数となる。この回路の場合、15個の加算器、2個の5倍乗算器により計算できる。縦続接続形に比べて、かなりの加算器が必要であることがわかる。   On the other hand, FIG. 28 shows a block diagram in which the two-dimensional low-pass filter m1 is configured as a circuit as it is. In this figure, D represents a one-pixel delay element, and a broken-line block represents one horizontal delay line. Therefore, the number of delay pixels in the delay line in the broken line block is 3 pixels less than the number of horizontal pixels in the output image. In the case of this circuit, it can be calculated by 15 adders and 2 5 times multipliers. It can be seen that a considerable number of adders are required compared to the cascade connection type.

また、2次元ローパスフィルタm2は、水平ローパスフィルタmh2と垂直ローパスフィルタmv2とに分解できる。mh2は、行ベクトルとして表される1次元ローパスフィルタである。また、mv2は、列ベクトルとして表される1次元ローパスフィルタである。   The two-dimensional low-pass filter m2 can be decomposed into a horizontal low-pass filter mh2 and a vertical low-pass filter mv2. mh2 is a one-dimensional low-pass filter expressed as a row vector. Mv2 is a one-dimensional low-pass filter represented as a column vector.

Figure 2007097203
Figure 2007097203

水平ローパスフィルタmh2と垂直ローパスフィルタmv2により、合成画像を光量差補正する計算は、以下の式で計算される。   The calculation for correcting the light amount difference of the composite image by the horizontal low-pass filter mh2 and the vertical low-pass filter mv2 is calculated by the following equation.

Figure 2007097203
Figure 2007097203

このように、水平ローパスフィルタmh2と垂直ローパスフィルタmv2を縦続形接続することにより、2次元ローパスフィルタm2を構成できるため、回路構成を簡略化できる。   Thus, since the two-dimensional low-pass filter m2 can be configured by connecting the horizontal low-pass filter mh2 and the vertical low-pass filter mv2 in cascade, the circuit configuration can be simplified.

また、本第5実施の形態によれば、画像に含まれる水平方向のエッジまたは垂直方向のエッジが的確に補正できる。図29は、垂直方向のエッジを撮像した例を示している。画素s(p,q)においてq≦3が黒レベルであり、q≧4が白レベルであるような、q=3と4の間に垂直方向のエッジがある場合である。第1原画像においては、黒レベルは10、白レベルは200であったとする。つまり、s(p,1)=10、s(p,3)=10、s(p,5)=200であったとする。第2原画像においては、2原画像間に光量差が生じたため黒レベルは0、白レベルは190であったとする。つまり、s(p,2)=0、s(p,4)=190、s(p,6)=190であったとする。図30に各画素の画素値、および線形補間法により、仮想画素の画素データを計算した値を示す。本来は、垂直方向の直線上のエッジであったものが、ジグザグ状のエッジになっている。この画像に対して、式(49)に基づく光量差補正処理を施すと、図31のようになる。ジグザグ状のエッジであったものが、垂直方向のエッジに補正できている。また、水平方向のエッジについても同様に的確に補正ができる。   Further, according to the fifth embodiment, the horizontal edge or the vertical edge included in the image can be accurately corrected. FIG. 29 shows an example in which an edge in the vertical direction is imaged. This is the case where there is a vertical edge between q = 3 and 4, where q ≦ 3 is the black level and q ≧ 4 is the white level in the pixel s (p, q). In the first original image, it is assumed that the black level is 10 and the white level is 200. That is, s (p, 1) = 10, s (p, 3) = 10, and s (p, 5) = 200. In the second original image, it is assumed that the black level is 0 and the white level is 190 because a light amount difference is generated between the two original images. That is, it is assumed that s (p, 2) = 0, s (p, 4) = 190, and s (p, 6) = 190. FIG. 30 shows the pixel value of each pixel and the value obtained by calculating the pixel data of the virtual pixel by the linear interpolation method. What was originally an edge on a straight line in the vertical direction is a zigzag edge. When the light amount difference correction process based on the equation (49) is performed on this image, the result is as shown in FIG. A zigzag edge can be corrected to a vertical edge. Similarly, the horizontal edge can be corrected accurately.

また、本実施の形態によれば、補間処理後にローパスフィルタ処理を行っているため、補間処理により発生する画質の劣化、即ち、特定周波数成分の画像ムラの発生をも同時に補正することができる。これは、補間処理により発生する画像ムラの周波数成分が、通常、イメージシフト時の光量差に基づく周波数成分と一致するからである。   In addition, according to the present embodiment, since the low-pass filter process is performed after the interpolation process, it is possible to simultaneously correct the image quality degradation caused by the interpolation process, that is, the occurrence of the image unevenness of the specific frequency component. This is because the frequency component of image unevenness generated by the interpolation processing usually matches the frequency component based on the light amount difference at the time of image shift.

ところで、ローパスフィルタ等のフィルタにおいては、カットしたい周波数成分でのゲインが0であり、その他の周波数成分のゲインが1であるような理想特性のフィルタを作成することは困難である。したがって、通常は、カットしたい周波数成分のゲインを0とすれば上記周波数成分近傍のゲインは1よりも低下してしまう。このため、本発明のように光量差により発生する縞模様に対応する周波数成分をカット(減衰)する場合、基底帯域中の周波数成分の一部を必然的に減衰させなければならなくなるが、本実施の形態ではフィルタによりカットする周波数成分を空間周波数座標に表した基底帯域の水平,垂直方向の頂点(水平軸,垂直軸上における絶対値が最大の周波数成分)としているため、第1〜第4実施の形態のように基底帯域の境界線をカットする場合よりも、減衰させなければならない周波数成分を減少できる。よって画質の劣化を抑制することが可能である。   By the way, in a filter such as a low-pass filter, it is difficult to create a filter having ideal characteristics in which the gain at a frequency component to be cut is 0 and the gain of other frequency components is 1. Therefore, normally, if the gain of the frequency component to be cut is set to 0, the gain in the vicinity of the frequency component will be lower than 1. For this reason, when cutting (attenuating) the frequency component corresponding to the stripe pattern generated due to the light amount difference as in the present invention, it is necessary to attenuate a part of the frequency component in the baseband. In the embodiment, the frequency component to be cut by the filter is set to the horizontal and vertical vertices of the baseband expressed in the spatial frequency coordinates (the frequency component having the maximum absolute value on the horizontal axis and the vertical axis). The frequency components that need to be attenuated can be reduced as compared with the case of cutting the baseband boundary as in the fourth embodiment. Therefore, it is possible to suppress deterioration in image quality.

なお、本第5実施の形態では、(1)2つの原画像信号を合成して合成画像を生成した後、(2)その合成画像に対して補間処理部55が仮想画素の画像データを補間により求めた後、(3)その補間画像に対してLPF59がローパスフィルタリングを施しているが、処理順序はこれに限るものではなく、合成画像に対してローパスフィルタリングを施した後に、補間処理を施しても良い。したがって、第1の実施の形態で説明した図1の構成のLPF5として本実施の形態のLPF59(m1,m2)を用いてもよい、この場合は、LPF59は、仮想画素の画素データは零として、ローパスフィルタリングを施せば良い。また、ローパスフィルタリングと補間処理を同時に行っても良い。   In the fifth embodiment, (1) after synthesizing two original image signals to generate a synthesized image, (2) the interpolation processing unit 55 interpolates the virtual pixel image data for the synthesized image. (3) The LPF 59 performs low-pass filtering on the interpolated image. However, the processing order is not limited to this, and after performing low-pass filtering on the synthesized image, the interpolation processing is performed. May be. Therefore, the LPF 59 (m1, m2) of this embodiment may be used as the LPF 5 having the configuration of FIG. 1 described in the first embodiment. In this case, the LPF 59 sets the pixel data of the virtual pixel to zero. What is necessary is to perform low-pass filtering. Further, low-pass filtering and interpolation processing may be performed simultaneously.

また、上述した第5実施の形態では、モノクロ画像を撮像する撮像装置について説明したが、カラー画像を撮像するカラー撮像装置に関しても同様に光量差補正を行うことができる。   In the above-described fifth embodiment, the imaging apparatus that captures a monochrome image has been described. However, the light amount difference correction can be performed similarly for a color imaging apparatus that captures a color image.

例えば、カラー撮像装置には、単板方式および3板方式の撮像装置がある。単板方式の撮像装置では、撮像素子の光入射側に各受光領域で受光する光の波長を制限する色フィルタを設け、フィルタを通過した光を撮像させる。3板方式の撮像装置では、撮像光を色分解プリズムで赤青緑の3原色の単色画像光に分解して、各単色画像光を個別的に撮像素子で撮像する。従って、3板方式の撮像装置には、3つの撮像素子を設けている。   For example, color imaging devices include single-plate and three-plate imaging devices. In a single-plate imaging device, a color filter that restricts the wavelength of light received by each light receiving region is provided on the light incident side of the imaging device, and the light that has passed through the filter is imaged. In a three-plate type imaging device, imaging light is separated into three primary colors of red, blue, and green by a color separation prism, and each monochrome image light is individually imaged by an imaging device. Accordingly, the three-plate type imaging device is provided with three imaging elements.

LPF59では、これらの手法で得られた各単色画像光の画像信号を例えば赤青緑の3原色それぞれの色調を示すベクトル量の信号として取り扱い(この場合、請求項におけるu=3)、各単色画像光画像信号に対して個別的にローパスフィルタ処理を施す。または、カラーの画像信号から輝度信号と2種類の色差信号とを生成し(この場合、請求項におけるu=3)、輝度信号と色差信号とに対して個別的にローパスフィルタ処理を施す。これによって、カラー撮像装置においても、出力画像の光量差を補正することができる。   In the LPF 59, the image signal of each single color image light obtained by these methods is handled as a vector amount signal indicating the color tone of each of the three primary colors of red, blue, and green (in this case, u = 3 in the claims), and each single color The image light image signal is individually subjected to low pass filter processing. Alternatively, a luminance signal and two kinds of color difference signals are generated from the color image signal (in this case, u = 3), and the luminance signal and the color difference signal are individually subjected to low-pass filter processing. Thereby, also in a color imaging device, the light quantity difference of an output image can be corrected.

上記のようにローパスフィルタ処理の施されたデータは、記録媒体60に記録される。記録媒体に記録されるデータはLPF59により個別的に処理された個々の信号であっても良いし、また、それらが合成された信号であっても良い。   Data subjected to the low-pass filter processing as described above is recorded on the recording medium 60. The data recorded on the recording medium may be individual signals individually processed by the LPF 59, or may be a signal obtained by synthesizing them.

なお、以上説明した第1〜第5実施の形態では、イメージシフトによりシフト量が水平方向あるいは垂直方向に対して1画素を超えないものであったが、シフト量が1画素を超える場合には、光量差によって出現する模様の周波数成分は、そのイメージシフト量の1画素未満の成分の2倍を周期とするものとなる。すなわち、イメージシフト量をXとしたとき、2×(X−INT(X))を周期とするものとなる(但し、INT(y)はyを超えない最大の整数)。このため、使用するローパスフィルタとしては、上記周波数成分をカットすることのできるものを選択する必要がある。   In the first to fifth embodiments described above, the shift amount does not exceed one pixel in the horizontal direction or the vertical direction due to the image shift. However, when the shift amount exceeds one pixel, The frequency component of the pattern that appears due to the difference in the amount of light has a cycle that is twice the component of the image shift amount less than one pixel. That is, when the image shift amount is X, 2 × (X−INT (X)) is used as a cycle (where INT (y) is the maximum integer not exceeding y). For this reason, it is necessary to select a low-pass filter that can cut the frequency component.

また、第1〜第5実施の形態では、2つの原画像により1つの合成画像を生成したが、本発明は更に多くの原画像から1つの合成画像を生成する場合にも適用できる。その場合、各原画像の配列を考慮し、光量差を打ち消すことのできるローパスフィルタを選択する必要がある。   In the first to fifth embodiments, one composite image is generated from two original images. However, the present invention can also be applied to a case where one composite image is generated from more original images. In that case, it is necessary to select a low-pass filter capable of canceling the light amount difference in consideration of the arrangement of the original images.

更に、第1〜第5実施の形態におけるローパスフィルタの代わりにバンドパスフィルタを使用することも可能である。   Furthermore, a band pass filter can be used instead of the low pass filter in the first to fifth embodiments.

本発明は、高解像度画像を得ることのできる光量差補正方法に利用でき、特に、被写体からの画像光を撮像手段に対して相対的に移動させて複数の画像を撮像して、それらを合成して1つの高解像度画像を得る光量差補正方法に利用することができる。   INDUSTRIAL APPLICABILITY The present invention can be used for a light amount difference correction method capable of obtaining a high-resolution image. In particular, a plurality of images are picked up by moving image light from a subject relative to an image pickup means, and the images are combined. Thus, it can be used in a light quantity difference correction method for obtaining one high-resolution image.

第1実施の形態に係る撮像装置の一構成例を示す概略ブロック図である。It is a schematic block diagram which shows the example of 1 structure of the imaging device which concerns on 1st Embodiment. 撮像素子の結像面の具体的な画素配列を示す平面図である。It is a top view which shows the specific pixel arrangement | sequence of the image formation surface of an image pick-up element. 第1実施の形態の画像光の第1および第2結像位置の位置関係を示す図である。It is a figure which shows the positional relationship of the 1st and 2nd image formation position of the image light of 1st Embodiment. 第1実施の形態の第1および第2原画像から構成される合成画像を示す図である。It is a figure which shows the synthesized image comprised from the 1st and 2nd original image of 1st Embodiment. 第1実施の形態の合成画像の基底帯域を示す空間周波数図である。It is a spatial frequency figure which shows the base band of the synthesized image of 1st Embodiment. 第2実施の形態の第1および第2結像位置の位置関係を示す図である。It is a figure which shows the positional relationship of the 1st and 2nd image formation position of 2nd Embodiment. 第2実施の形態の第1および第2原画像から構成される合成画像を示す図である。It is a figure which shows the synthesized image comprised from the 1st and 2nd original image of 2nd Embodiment. 第2実施の形態の合成画像の基底帯域を示す空間周波数図である。It is a spatial frequency diagram which shows the base band of the synthesized image of 2nd Embodiment. 第3実施の形態の第1および第2結像位置の位置関係を示す図である。It is a figure which shows the positional relationship of the 1st and 2nd image formation position of 3rd Embodiment. 第3実施の形態の第1および第2原画像から構成される合成画像を示す図である。It is a figure which shows the synthesized image comprised from the 1st and 2nd original image of 3rd Embodiment. 第3実施の形態の合成画像の基底帯域を示す空間周波数図である。It is a spatial frequency diagram which shows the base band of the synthesized image of 3rd Embodiment. 第4実施の形態の色フィルタの透過領域の色配列の基本配列パターンを示す図である。It is a figure which shows the basic sequence pattern of the color sequence of the permeation | transmission area | region of the color filter of 4th Embodiment. 第4実施の形態の第1および第2結像位置の位置関係を示す図である。It is a figure which shows the positional relationship of the 1st and 2nd image formation position of 4th Embodiment. 第4実施の形態の合成画像信号が表す合成画像の等価的な画素Dの配列の基本配列パターン18を示す図である。It is a figure which shows the basic arrangement pattern 18 of the arrangement | sequence of the equivalent pixel D of the synthesized image which the synthesized image signal of 4th Embodiment represents. 第4実施の形態の合成画像の赤の画素の配列を示す図である。It is a figure which shows the arrangement | sequence of the red pixel of the synthesized image of 4th Embodiment. 第4実施の形態の合成画像の青の画素の配列を示す図である。It is a figure which shows the arrangement | sequence of the blue pixel of the synthesized image of 4th Embodiment. 第4実施の形態の合成画像の緑の画素の配列を示す図である。It is a figure which shows the arrangement | sequence of the green pixel of the synthesized image of 4th Embodiment. 第4実施の形態の赤または青の配列の場合の基底帯域を示す空間周波数図である。It is a spatial frequency diagram which shows the baseband in the case of the arrangement | sequence of red or blue of 4th Embodiment. 第4実施の形態の緑の配列の場合の基底帯域を示す空間周波数図である。It is a spatial frequency figure which shows the baseband in the case of the green arrangement | sequence of 4th Embodiment. 第5実施の形態の一構成例を示す概略ブロック図である。It is a schematic block diagram which shows the example of 1 structure of 5th Embodiment. 光量差によって生じた縦縞を説明する空間周波数図である。It is a spatial frequency diagram explaining the vertical stripe produced by the light quantity difference. 光量差によって生じた横縞を説明する空間周波数図である。It is a spatial frequency diagram explaining the horizontal stripe produced by the light quantity difference. LPF59の通過帯域を示す空間周波数図である。It is a spatial frequency diagram showing the pass band of LPF59. 第5実施の形態の縦続形接続により構成されたLPF59を示す概略ブロック図である。It is a schematic block diagram which shows LPF59 comprised by the cascade connection of 5th Embodiment. 第5実施の形態の垂直ローパスフィルタを示す概略ブロック図である。It is a schematic block diagram which shows the vertical low-pass filter of 5th Embodiment. 第5実施の形態の水平ローパスフィルタを示す概略ブロック図である。It is a schematic block diagram which shows the horizontal low-pass filter of 5th Embodiment. 第5実施の形態のビットシフトと加算器により構成された5倍乗算器を示すブロック図である。It is a block diagram which shows the 5 times multiplier comprised by the bit shift and adder of 5th Embodiment. 第5実施の形態の2次元ローパスフィルタのブロック図である。It is a block diagram of the two-dimensional low-pass filter of 5th Embodiment. 垂直方向のエッジを撮像した場合の合成画像を示す図である。It is a figure which shows the synthesized image at the time of imaging the edge of a perpendicular direction. 垂直方向のエッジを撮像した場合の補間後の画像を示す図である。It is a figure which shows the image after the interpolation at the time of imaging the edge of a perpendicular direction. 垂直方向のエッジを撮像した場合の光量差補正後の画像を示す図である。It is a figure which shows the image after light quantity difference correction | amendment at the time of imaging the edge of a perpendicular direction. イメージシフトの機構を説明する図である。It is a figure explaining the mechanism of an image shift. 光量差の発生を説明する図である。It is a figure explaining generation | occurrence | production of a light quantity difference. 従来の光量差補正方法における第1の原画像のヒストグラムである。It is the histogram of the 1st original image in the conventional light quantity difference correction method. 従来の光量差補正方法における第2の原画像のヒストグラムである。It is the histogram of the 2nd original image in the conventional light quantity difference correction method. 従来の光量差補正方法における画素データの変換を説明する図である。It is a figure explaining conversion of the pixel data in the conventional light quantity difference correction method.

符号の説明Explanation of symbols

1,51 光学系
2,52 撮像素子
3,53 A/C変換器
4,54 画像メモリ
5,59 LPF
6,56 駆動部
7,57 同期信号発生部
8,58 メモリ制御部
9 信号処理部
10,60 記録媒体
55 補間処理部
1,51 Optical system 2,52 Image sensor 3,53 A / C converter 4,54 Image memory 5,59 LPF
6, 56 Drive unit 7, 57 Synchronization signal generation unit 8, 58 Memory control unit 9 Signal processing unit 10, 60 Recording medium 55 Interpolation processing unit

Claims (12)

被写体からの画像光を撮像して、撮像手段によってモノクロの画像データを生成し、
前記画像光に対して前記撮像手段を複数の相対位置に移動させ、
各相対位置において前記撮像手段に画像データを生成し、
前記撮像手段が生成した複数個の画像データを合成し、
前記複数個の画像データ間の光量差に基づいて発生する空間周波数成分を取り除くことを特徴とする光量差補正方法。
Capture image light from the subject, generate monochrome image data by the imaging means,
Moving the imaging means to a plurality of relative positions with respect to the image light;
Generating image data in the imaging means at each relative position;
Combining a plurality of image data generated by the imaging means;
A light amount difference correction method, wherein a spatial frequency component generated based on a light amount difference between the plurality of image data is removed.
被写体からの色付きの画像光を撮像して、撮像手段によって1画像光当たりu種類の画像データを生成し、
前記画像光に対して前記撮像手段をv通り(v≧2)の相対位置に移動させ、各相対位置において前記撮像手段に画像データを生成し、
前記撮像手段が生成したu×v個の画像データを画像データの種類毎に合成し、
前記v通りの相対位置における画像データ間の光量差に基づいて発生する空間周波数成分を取り除くことを特徴とする光量差補正方法。
Imaging colored image light from a subject and generating u types of image data per image light by an imaging means;
The image pickup means is moved to v (v ≧ 2) relative positions with respect to the image light, and image data is generated in the image pickup means at each relative position,
The u × v image data generated by the imaging unit is synthesized for each type of image data,
A light amount difference correction method characterized by removing a spatial frequency component generated based on a light amount difference between image data at the v relative positions.
請求項2に記載の光量差補正方法において、
上記被写体からの色付きの画像光を、色フィルタを介して撮像し、
上記uは3であり、
上記vは2であり、
上記色フィルタの透過領域の基本配列パターンがベイヤー配列からなっていることを特徴とする光量差補正方法。
In the light quantity difference correction method according to claim 2,
The colored image light from the subject is imaged through a color filter,
U is 3,
V is 2;
A light quantity difference correction method, wherein a basic array pattern of a transmission region of the color filter is a Bayer array.
前記画像データの合成によってデータを有することのできない画素のデータを、補間により求め追加し、
前記画像データを生成した後、前記補間により求め追加する前の画像データに対して、上記空間周波数成分を取り除くことを特徴とする請求項1から3の何れか1項に記載の光量差補正方法。
Pixel data that cannot have data by combining the image data is obtained by interpolation and added,
4. The light quantity difference correction method according to claim 1, wherein after the generation of the image data, the spatial frequency component is removed from the image data obtained by the interpolation before being added. 5. .
前記画像データの合成によってデータを有することのできない画素のデータを、補間により求め追加し、
前記画素のデータを、補間により求め追加した後の画像データに対して、上記空間周波数成分を取り除くことを特徴とする請求項1から3の何れか1項に記載の光量差補正方法。
Pixel data that cannot have data by combining the image data is obtained by interpolation and added,
The light quantity difference correction method according to any one of claims 1 to 3, wherein the spatial frequency component is removed from the image data after the pixel data is obtained by interpolation and added.
前記画像光に対して前記撮像手段を、第1位置と、該第1位置から水平方向に水平画素間隔の半分、および垂直方向に垂直画素間隔の半分だけ移動させた第2位置とに、相対的に移動させることを特徴とする請求項1または2の何れか1項に記載の光量差補正方法。   Relative to the first position and the second position moved from the first position by a half of the horizontal pixel interval in the horizontal direction and by a half of the vertical pixel interval in the vertical direction with respect to the image light The light quantity difference correction method according to claim 1, wherein the light quantity difference is corrected. 請求項3に記載の光量差補正方法において、
前記画像光に対して前記撮像手段を、第1位置と、該第1位置から水平方向に水平画素間隔だけ移動させた第2位置とに、相対的に移動させることを特徴とする光量差補正方法。
In the light quantity difference correction method according to claim 3,
The light quantity difference correction characterized by moving the imaging means relative to the image light to a first position and a second position moved horizontally from the first position by a horizontal pixel interval. Method.
請求項3に記載の光量差補正方法において、
前記画像光に対して前記撮像手段を、第1位置と、該第1位置から垂直方向に垂直画素間隔だけ移動させた第2位置とに、相対的に移動させることを特徴とする光量差補正方法。
In the light quantity difference correction method according to claim 3,
The light quantity difference correction characterized in that the image pickup means is moved relative to the image light to a first position and a second position moved vertically from the first position by a vertical pixel interval. Method.
前記複数個または前記u種類の画像データを合成した画像データの画素配列の基底帯域を通過帯域とする2次元フィルタを用いて上記空間周波数成分を取り除くことを特徴とする請求項1から8の何れか1項に記載の光量差補正方法。   9. The spatial frequency component is removed by using a two-dimensional filter whose pass band is a base band of a pixel array of image data obtained by synthesizing the plurality or u types of image data. The light quantity difference correction method according to claim 1. 前記撮像手段を複数の相対位置に移動させる移動量をX画素分(X>0)としたときに、その移動方向に2×(X−INT(X))を周期とする空間周波数をカットオフ周波数とし、それ以下の空間周波数を通過帯域とする1次元フィルタを用いて上記空間周波数成分を取り除くことを特徴とする請求項1から8の何れか1項に記載の光量差補正方法。   When the amount of movement for moving the imaging means to a plurality of relative positions is set to X pixels (X> 0), the spatial frequency having a cycle of 2 × (X−INT (X)) in the moving direction is cut off. 9. The light quantity difference correction method according to claim 1, wherein the spatial frequency component is removed by using a one-dimensional filter having a frequency and a lower spatial frequency as a pass band. 前記複数個または前記u種類の画像データを合成した画像データの画素配列の基底帯域の内の、水平方向の最高空間周波数成分と垂直方向の最高空間周波数成分とを、少なくとも減衰させるフィルタを用いて上記空間周波数成分を取り除くことを特徴とする請求項1から8のいずれか1項に記載の光量差補正方法。   Using a filter that at least attenuates the highest spatial frequency component in the horizontal direction and the highest spatial frequency component in the vertical direction in the base band of the pixel array of the image data obtained by synthesizing the plurality or u types of image data. 9. The light quantity difference correction method according to claim 1, wherein the spatial frequency component is removed. 前記基底帯域の水平方向での最高空間周波数をカットオフ周波数とする水平方向の1次元ローパスフィルタと、前記基底帯域の垂直方向での最高空間周波数をカットオフ周波数とする垂直方向の1次元ローパスフィルタと、が縦続接続されてなるフィルタを用いて上記空間周波数成分を取り除くことを特徴とする請求項11に記載の光量差補正方法。   A horizontal one-dimensional low-pass filter whose cutoff frequency is the highest spatial frequency in the horizontal direction of the baseband, and a vertical one-dimensional low-pass filter whose cutoff frequency is the highest spatial frequency in the vertical direction of the baseband The light quantity difference correction method according to claim 11, wherein the spatial frequency component is removed using a filter formed by cascade connection.
JP2006300944A 1996-12-27 2006-11-06 Light intensity difference correction method Expired - Fee Related JP4566974B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006300944A JP4566974B2 (en) 1996-12-27 2006-11-06 Light intensity difference correction method

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP34915996 1996-12-27
JP2006300944A JP4566974B2 (en) 1996-12-27 2006-11-06 Light intensity difference correction method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP17381797A Division JP4536170B2 (en) 1996-12-27 1997-06-30 Imaging device

Publications (2)

Publication Number Publication Date
JP2007097203A true JP2007097203A (en) 2007-04-12
JP4566974B2 JP4566974B2 (en) 2010-10-20

Family

ID=37982223

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006300944A Expired - Fee Related JP4566974B2 (en) 1996-12-27 2006-11-06 Light intensity difference correction method

Country Status (1)

Country Link
JP (1) JP4566974B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009079987A (en) * 2007-09-26 2009-04-16 Fujifilm Corp Method and device for measuring distance
JP2009079988A (en) * 2007-09-26 2009-04-16 Fujifilm Corp Method and device for measuring distance and imaging element used for same
JP2009085706A (en) * 2007-09-28 2009-04-23 Fujifilm Corp Apparatus and method for distance measurement and program
JP2009085705A (en) * 2007-09-28 2009-04-23 Fujifilm Corp Apparatus and method for distance measurement and program

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63284980A (en) * 1987-05-15 1988-11-22 Fujitsu Ltd Solid-state image pickup device
JPH0837628A (en) * 1994-07-22 1996-02-06 Canon Inc Image pickup device
JPH08275067A (en) * 1995-03-31 1996-10-18 Sony Corp Image pickup device
JPH10243408A (en) * 1996-12-27 1998-09-11 Sharp Corp Image pickup device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63284980A (en) * 1987-05-15 1988-11-22 Fujitsu Ltd Solid-state image pickup device
JPH0837628A (en) * 1994-07-22 1996-02-06 Canon Inc Image pickup device
JPH08275067A (en) * 1995-03-31 1996-10-18 Sony Corp Image pickup device
JPH10243408A (en) * 1996-12-27 1998-09-11 Sharp Corp Image pickup device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009079987A (en) * 2007-09-26 2009-04-16 Fujifilm Corp Method and device for measuring distance
JP2009079988A (en) * 2007-09-26 2009-04-16 Fujifilm Corp Method and device for measuring distance and imaging element used for same
JP2009085706A (en) * 2007-09-28 2009-04-23 Fujifilm Corp Apparatus and method for distance measurement and program
JP2009085705A (en) * 2007-09-28 2009-04-23 Fujifilm Corp Apparatus and method for distance measurement and program

Also Published As

Publication number Publication date
JP4566974B2 (en) 2010-10-20

Similar Documents

Publication Publication Date Title
JP4536170B2 (en) Imaging device
JP4195169B2 (en) Solid-state imaging device and signal processing method
JP3510037B2 (en) Adaptive color interpolation single-sensor color electronic camera
JP5151075B2 (en) Image processing apparatus, image processing method, imaging apparatus, and computer program
JP3871072B2 (en) Adaptive color interpolation single sensor color electronic camera
US7701496B2 (en) Color filter pattern for color filter arrays including a demosaicking algorithm
JP5036482B2 (en) Image processing apparatus, image processing method, and image processing program
JP3735867B2 (en) Luminance signal generator
JP2816095B2 (en) Video camera signal processing circuit
JP4641675B2 (en) Image signal processing device
JP2006060661A (en) Device, method and program for noise reduction
EP0469836A2 (en) Image signal processing apparatus
JP4566974B2 (en) Light intensity difference correction method
JP4934991B2 (en) Imaging signal processing apparatus and method, and imaging apparatus
JP2005026863A (en) Signal correction method
JP4635769B2 (en) Image processing apparatus, image processing method, and imaging apparatus
JP2009047734A (en) Imaging apparatus and image processing program
JP2007049301A (en) Image processing apparatus and method therefor
JP4276817B2 (en) Imaging device
JP2007060717A (en) Image pick-up apparatus
JP6976789B2 (en) Imaging device and imaging method
JP2004056640A (en) Interpolation method of photographed images in complementary color single ccd color digital camera, interpolation unit of the same, and digital camera comprising the same
JP3585710B2 (en) Color imaging device and recording medium
JP4478981B2 (en) Color noise reduction method and color imaging apparatus
JPH0795595A (en) Color image pickup device

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091215

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100127

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100608

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100705

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

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100804

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20130813

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees