JP2013070241A - Image processing apparatus, image processing method, and image processing program - Google Patents

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

Info

Publication number
JP2013070241A
JP2013070241A JP2011207378A JP2011207378A JP2013070241A JP 2013070241 A JP2013070241 A JP 2013070241A JP 2011207378 A JP2011207378 A JP 2011207378A JP 2011207378 A JP2011207378 A JP 2011207378A JP 2013070241 A JP2013070241 A JP 2013070241A
Authority
JP
Japan
Prior art keywords
image
statistic
composite image
value
sensitivity
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.)
Withdrawn
Application number
JP2011207378A
Other languages
Japanese (ja)
Inventor
Yukihiro Naito
幸宏 内藤
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.)
Olympus Corp
Original Assignee
Olympus 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 Olympus Corp filed Critical Olympus Corp
Priority to JP2011207378A priority Critical patent/JP2013070241A/en
Publication of JP2013070241A publication Critical patent/JP2013070241A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To correct deterioration in the gradation characteristics or color reproduction characteristics occurring due to short exposure time when compounding a plurality of high sensitivity images.SOLUTION: The image processing apparatus comprises image acquisition units 103, 104 acquiring a plurality of high sensitivity images captured based on a first exposure time, and at least one low sensitivity image captured based on a second exposure time longer than the first exposure time, a compounding unit 103 generating a composite image by compounding a plurality of high sensitivity images, a first statistic calculation unit 104 calculating a statistic based on the pixel value of at least partial area of a composite image, a second statistic calculation unit 104 calculating a statistic based on the pixel value of at least partial area of a low sensitivity image corresponding at least to a partial area of a composite image, and a correction unit 104 correcting the pixel value of a composite image so as to bring the statistic calculated by the first statistic calculation unit 104 close to the statistic calculated by the second statistic calculation unit 104.

Description

本発明は、画像処理技術に関し、特に複数枚の画像を合成して合成画像を生成する画像処理技術に関する。   The present invention relates to an image processing technique, and more particularly to an image processing technique for generating a composite image by combining a plurality of images.

デジタルカメラ等の撮像装置において、静止画を撮影する際にノイズの少ない画像を得るためには、十分な露光時間を確保することが有効である。しかしながら、露光時間を長くすると、手ぶれによるカメラの動きや被写体の動きにより、画像にぶれが生じる。このような画像ぶれに対処する方式として、電子ぶれ補正方式が提案されている。特許文献1や特許文献2では、ぶれの少ない短い露光時間での撮影を連続して複数回行い、得られた複数枚の画像の位置合わせ処理を行ってから合成することにより、ぶれの無い画像を得る技術が開示されている。   In an imaging apparatus such as a digital camera, it is effective to secure a sufficient exposure time in order to obtain an image with little noise when capturing a still image. However, if the exposure time is increased, the image is blurred due to camera movement or subject movement due to camera shake. As a method for dealing with such image blur, an electronic blur correction method has been proposed. In Patent Document 1 and Patent Document 2, an image having no blur is obtained by continuously performing photographing with a short exposure time with little blur and performing composition processing after performing alignment processing of a plurality of obtained images. A technique for obtaining the above is disclosed.

しかし、露光時間を短くすると、撮像素子に十分な電荷が蓄積されないことから、リニアリティ特性(露光時間と画素値との比例関係)の悪い領域での撮影となり、階調特性や色再現特性が悪化するという問題が生じる。特許文献3には、撮像素子が出力するRAW形式の画像データに対して、事前に計測済みのリニアリティ特性に基づいて、撮像素子の出力のリニアリティ特性を補正する技術が開示されている。   However, if the exposure time is shortened, sufficient charge is not accumulated in the image sensor, so shooting is performed in an area with poor linearity characteristics (proportional relationship between exposure time and pixel value), and gradation characteristics and color reproduction characteristics deteriorate. Problem arises. Patent Document 3 discloses a technique for correcting the linearity characteristic of the output of the image sensor based on the linearity characteristics measured in advance for the RAW image data output from the image sensor.

特開2008−5084号公報JP 2008-5084 A 特開2006−157568号公報JP 2006-157568 A 特開2003−23642号公報JP 2003-23642 A

しかしながら、事前にリニアリティ特性をそれぞれのカメラで計測することは煩雑であり、また、事前の計測結果に基づく補正のみでは、十分な効果を得ることができない。   However, it is cumbersome to measure linearity characteristics with each camera in advance, and sufficient effects cannot be obtained only by correction based on the previous measurement results.

本発明は、上記問題に鑑みてなされたもので、複数枚の画像を合成する際に、露光時間が短いことにより生ずる階調特性や色再現特性の悪化を補正し、階調特性や色再現特性が良好な合成画像を得られる技術を提供することを目的とする。   The present invention has been made in view of the above problems, and corrects the deterioration of gradation characteristics and color reproduction characteristics caused by a short exposure time when combining a plurality of images, thereby correcting gradation characteristics and color reproduction. An object is to provide a technique capable of obtaining a composite image with good characteristics.

本発明のある態様に係る画像処理装置は、第1の露光時間に基づいて撮影された複数枚の高感度画像を取得するとともに、前記第1の露光時間よりも長い第2の露光時間に基づいて撮影された少なくとも1枚の低感度画像を取得する画像取得部と、前記複数枚の高感度画像を合成することによって、合成画像を生成する合成部と、前記合成画像の少なくとも一部の領域の画素値に基づく統計量を計算する第1統計量計算部と、前記合成画像の少なくとも一部の領域に対応する、前記低感度画像の少なくとも一部の領域の画素値に基づく統計量を計算する第2統計量計算部と、前記第1統計量計算部によって計算される統計量を、前記第2統計量計算部によって計算される統計量により近づけるように、前記合成画像の画素値を補正する補正部と、を備える。   An image processing apparatus according to an aspect of the present invention acquires a plurality of high-sensitivity images shot based on a first exposure time, and based on a second exposure time longer than the first exposure time. An image acquisition unit that acquires at least one low-sensitivity image captured in the above; a synthesis unit that generates a composite image by combining the plurality of high-sensitivity images; and at least a region of the composite image. A first statistic calculator that calculates a statistic based on a pixel value of the image, and a statistic based on a pixel value of at least a partial area of the low-sensitivity image corresponding to at least a partial area of the composite image And correcting the pixel value of the composite image so that the statistic calculated by the second statistic calculator and the statistic calculated by the second statistic calculator are closer to the statistic calculated by the second statistic calculator. Correction unit , Comprising a.

本発明の別の態様に係る画像処理方法は、第1の露光時間に基づいて撮影された複数枚の高感度画像を取得するとともに、前記第1の露光時間よりも長い第2の露光時間に基づいて撮影された少なくとも1枚の低感度画像を取得するステップと、前記複数枚の高感度画像を合成することによって、合成画像を生成するステップと、前記合成画像の少なくとも一部の領域の画素値に基づく統計量を計算するステップと、前記合成画像の少なくとも一部の領域に対応する、前記低感度画像の少なくとも一部の領域の画素値に基づく統計量を計算するステップと、前記合成画像の少なくとも一部の領域の画素値に基づく統計量を、前記低感度画像の少なくとも一部の領域の画素値に基づく統計量により近づけるように、前記合成画像の画素値を補正するステップと、を有する。   An image processing method according to another aspect of the present invention obtains a plurality of high-sensitivity images taken based on a first exposure time, and has a second exposure time longer than the first exposure time. Acquiring at least one low-sensitivity image captured based on the image, generating a composite image by combining the plurality of high-sensitivity images, and pixels of at least a part of the region of the composite image Calculating a statistic based on a value; calculating a statistic based on a pixel value of at least a part of the low sensitivity image corresponding to at least a part of the composite image; and the composite image The pixel value of the composite image is corrected so that the statistic based on the pixel value of at least a part of the region is closer to the statistic based on the pixel value of the at least a part of the low-sensitivity image. It has a step that, a.

本発明のさらに別の態様に係る画像処理プログラムは、第1の露光時間に基づいて撮影された複数枚の高感度画像を取得するとともに、前記第1の露光時間よりも長い第2の露光時間に基づいて撮影された少なくとも1枚の低感度画像を取得するステップと、前記複数枚の高感度画像を合成することによって、合成画像を生成するステップと、前記合成画像の少なくとも一部の領域の画素値に基づく統計量を計算するステップと、前記合成画像の少なくとも一部の領域に対応する、前記低感度画像の少なくとも一部の領域の画素値に基づく統計量を計算するステップと、前記合成画像の少なくとも一部の領域の画素値に基づく統計量を、前記低感度画像の少なくとも一部の領域の画素値に基づく統計量により近づけるように、前記合成画像の画素値を補正するステップと、をコンピュータに実行させるための画像処理プログラムである。   An image processing program according to still another aspect of the present invention acquires a plurality of high-sensitivity images taken based on a first exposure time, and a second exposure time longer than the first exposure time. Acquiring at least one low-sensitivity image captured based on the image, generating a composite image by combining the plurality of high-sensitivity images, and at least part of a region of the composite image Calculating a statistic based on a pixel value; calculating a statistic based on a pixel value of at least a part of the low-sensitivity image corresponding to at least a part of the composite image; The statistic based on the pixel value of at least a partial area of the image is made closer to the statistic based on the pixel value of at least a partial area of the low-sensitivity image. And correcting the pixel value, which is an image processing program for causing a computer to execute the.

本発明によれば、合成画像の階調特性や色再現特性を、撮像素子のリニアリティ特性の良い領域で撮影された低感度画像の階調特性や色再現特性に応じて補正するので、階調特性や色再現特性が良好な合成画像を得ることができる。   According to the present invention, the gradation characteristics and color reproduction characteristics of the composite image are corrected according to the gradation characteristics and color reproduction characteristics of the low-sensitivity image captured in the region where the linearity characteristics of the image sensor are good. A composite image having good characteristics and color reproduction characteristics can be obtained.

図1は、第1の実施形態における画像処理装置を搭載した撮像装置の概略構成を示す図である。FIG. 1 is a diagram illustrating a schematic configuration of an imaging apparatus equipped with an image processing apparatus according to the first embodiment. 図2は、階調・色補正部の詳細な構成を示すブロック図である。FIG. 2 is a block diagram showing a detailed configuration of the gradation / color correction unit. 図3は、第1累積ヒストグラム計算部および第2累積ヒストグラム計算部の詳細な構成を示すブロック図である。FIG. 3 is a block diagram showing a detailed configuration of the first cumulative histogram calculation unit and the second cumulative histogram calculation unit. 図4は、ヒストグラムの計算結果の一例を示す図である。FIG. 4 is a diagram illustrating an example of a histogram calculation result. 図5は、累積ヒストグラムの一例を示す図である。FIG. 5 is a diagram illustrating an example of a cumulative histogram. 図6は、階調補正特性計算部による階調補正特性の計算方法を説明するための図である。FIG. 6 is a diagram for explaining a method of calculating gradation correction characteristics by the gradation correction characteristic calculation unit. 図7は、画像処理部がRAWデータ形式の画像を、1画素あたりR、G、Bの情報からなる画像データ、もしくは、1画素あたり輝度信号(Y)と2つの色差信号(Cb、Cr)の情報からなる画像データに変換した後、複数枚合成処理部および階調・色補正部が各処理を行う構成の画像処理装置を搭載した撮像装置の概略構成を示す図である。In FIG. 7, the image processing unit converts an image in the RAW data format into image data composed of R, G, and B information per pixel, or a luminance signal (Y) and two color difference signals (Cb, Cr) per pixel. FIG. 2 is a diagram illustrating a schematic configuration of an imaging apparatus including an image processing apparatus configured such that a plurality of image composition processing units and gradation / color correction units perform respective processes after being converted into image data including the above information. 図8は、第2の実施形態における画像処理装置の階調・色補正部の詳細な構成を示すブロック図である。FIG. 8 is a block diagram illustrating a detailed configuration of the gradation / color correction unit of the image processing apparatus according to the second embodiment. 図9は、第2の実施形態における画像処理装置による補正の効果について説明するための図である。FIG. 9 is a diagram for explaining the effect of correction by the image processing apparatus according to the second embodiment. 図10は、第3の実施形態における画像処理装置による補正の効果について説明するための図である。FIG. 10 is a diagram for explaining the effect of correction by the image processing apparatus according to the third embodiment.

<第1の実施形態>
図1は、第1の実施形態における画像処理装置を搭載した撮像装置の概略構成を示す図である。この撮像装置は、光学系100と、撮像素子101と、フレームメモリ102と、複数枚合成処理部103と、階調・色補正部104と、画像処理部105とを備える。このうち、第1の実施形態における画像処理装置は、複数枚合成処理部103と、階調・色補正部104と、画像処理部105とを備える。
<First Embodiment>
FIG. 1 is a diagram illustrating a schematic configuration of an imaging apparatus equipped with an image processing apparatus according to the first embodiment. The image pickup apparatus includes an optical system 100, an image pickup element 101, a frame memory 102, a multiple-sheet composition processing unit 103, a gradation / color correction unit 104, and an image processing unit 105. Among these, the image processing apparatus according to the first embodiment includes a multiple-sheet composition processing unit 103, a gradation / color correction unit 104, and an image processing unit 105.

レンズ等からなる光学系100を通して撮像素子101に入力された被写体光は、光電変換されて、フレームメモリ102に一旦格納される。   Subject light input to the image sensor 101 through the optical system 100 including a lens or the like is photoelectrically converted and temporarily stored in the frame memory 102.

本実施形態では、まず、手ぶれの発生しない露光時間で高感度画像を複数枚撮影し、フレームメモリ102に格納する。次に、高感度画像を撮影した際の露光時間よりも長い露光時間で低感度画像を1枚撮影して、フレームメモリ102に格納する。例えば、手ぶれが発生しない露光時間の限界が1/50秒で、1/50秒の露光時間で適正な明るさの画像を得られるISO感度がISO3200だった場合、この撮影パラメータで複数枚(例えば、4〜8枚)の高感度画像を撮影する。次に、同じ明るさの画像を低感度で撮影する。例えば、ISO感度をISO200とする場合には、露光時間を16/50秒とする。   In this embodiment, first, a plurality of high-sensitivity images are taken with an exposure time that does not cause camera shake, and stored in the frame memory 102. Next, one low-sensitivity image is captured with an exposure time longer than the exposure time when the high-sensitivity image was captured, and stored in the frame memory 102. For example, when the limit of the exposure time at which camera shake does not occur is 1/50 seconds and the ISO sensitivity that can obtain an image with appropriate brightness with an exposure time of 1/50 seconds is ISO 3200, a plurality of images (for example, 4 to 8) high-sensitivity images. Next, an image with the same brightness is taken with low sensitivity. For example, when the ISO sensitivity is ISO200, the exposure time is 16/50 seconds.

複数枚合成処理部103は、フレームメモリ102から、複数枚の高感度画像を読み出し、読み出した複数枚の高感度画像を合成して、合成画像を生成する。合成処理は、例えば、上述した特許文献1や特許文献2に開示されているような公知の方法を用いることができる。この合成処理により、高感度画像のノイズを低減することができる。   The multiple-sheet composition processing unit 103 reads out a plurality of high-sensitivity images from the frame memory 102 and combines the read-out multiple high-sensitivity images to generate a composite image. For the synthesis process, for example, a known method as disclosed in Patent Document 1 or Patent Document 2 described above can be used. By this combining process, noise in the high-sensitivity image can be reduced.

複数枚合成処理部103で生成される合成画像は、ノイズが低減されているものの、撮像素子のリニアリティ特性の悪い領域で撮影された高感度画像を合成することによって生成されているため、階調特性や色再現特性は良好ではない。一方、フレームメモリ102に格納されている低感度画像は、手ぶれの影響を受けているかもしれないが、撮像素子のリニアリティ特性の良い領域で撮影された画像であるため、階調特性や色再現特性は良好である。   The composite image generated by the multiple image combining processing unit 103 is generated by combining high-sensitivity images captured in an area where the linearity characteristics of the image sensor are poor, although noise is reduced. Characteristics and color reproduction characteristics are not good. On the other hand, the low-sensitivity image stored in the frame memory 102 may be affected by camera shake, but is an image shot in an area where the linearity characteristic of the image sensor is good. The characteristics are good.

階調・色補正部104は、フレームメモリ102に格納されている低感度画像を用いて、合成画像の階調特性や色再現特性を補正して、画像処理部105に出力する。   The gradation / color correction unit 104 corrects the gradation characteristics and color reproduction characteristics of the composite image using the low-sensitivity image stored in the frame memory 102 and outputs the corrected image to the image processing unit 105.

画像処理部105は、階調・色補正部104から出力されるRAWデータ形式の合成画像(Bayerデータ形式の画像)を、1画素あたりR、G、Bの情報からなる画像データ、もしくは、1画素あたり輝度信号(Y)と2つの色差信号(Cb、Cr)の情報からなる画像データに変換し、さらに、エッジ強調処理やノイズ低減処理等を行う。   The image processing unit 105 outputs a RAW data format composite image (Bayer data format image) output from the gradation / color correction unit 104 as image data including R, G, and B information per pixel, or 1 The image data is converted into image data including information of a luminance signal (Y) per pixel and two color difference signals (Cb, Cr), and further, edge enhancement processing, noise reduction processing, and the like are performed.

図2は、階調・色補正部104の詳細な構成を示すブロック図である。階調・色補正部104は、第1累積ヒストグラム計算部200と、第2累積ヒストグラム計算部201と、階調補正特性計算部202と、階調補正部203とを備える。   FIG. 2 is a block diagram showing a detailed configuration of the gradation / color correction unit 104. The tone / color correction unit 104 includes a first cumulative histogram calculation unit 200, a second cumulative histogram calculation unit 201, a tone correction characteristic calculation unit 202, and a tone correction unit 203.

第1累積ヒストグラム計算部200は、複数枚合成処理部103で生成された合成画像について、全画素の画素値の累積ヒストグラムを計算する。また、第2累積ヒストグラム計算部201は、フレームメモリ102に格納されている低感度画像について、全画素の画素値の累積ヒストグラムを計算する。   The first cumulative histogram calculation unit 200 calculates a cumulative histogram of the pixel values of all pixels for the composite image generated by the multiple-sheet composite processing unit 103. The second cumulative histogram calculation unit 201 calculates a cumulative histogram of the pixel values of all the pixels for the low sensitivity image stored in the frame memory 102.

図3は、第1累積ヒストグラム計算部200および第2累積ヒストグラム計算部201の詳細な構成を示すブロック図である。第1累積ヒストグラム計算部200および第2累積ヒストグラム計算部201はそれぞれ、色分離部300と、Rヒストグラム計算部301と、GRヒストグラム計算部302と、GBヒストグラム計算部303と、Bヒストグラム計算部304と、R累積ヒストグラム計算部305と、GR累積ヒストグラム計算部306と、GB累積ヒストグラム計算部307と、B累積ヒストグラム計算部308とを備える。   FIG. 3 is a block diagram showing a detailed configuration of the first cumulative histogram calculation unit 200 and the second cumulative histogram calculation unit 201. The first cumulative histogram calculation unit 200 and the second cumulative histogram calculation unit 201 are respectively a color separation unit 300, an R histogram calculation unit 301, a GR histogram calculation unit 302, a GB histogram calculation unit 303, and a B histogram calculation unit 304. An R cumulative histogram calculation unit 305, a GR cumulative histogram calculation unit 306, a GB cumulative histogram calculation unit 307, and a B cumulative histogram calculation unit 308.

色分離部300には、Bayerデータ形式の画像が入力される。具体的には、第1累積ヒストグラム計算部200の色分離部300には、合成画像が入力され、第2累積ヒストグラム計算部201の色分離部300には、低感度画像が入力される。これらのBayerデータ形式の画像の各画素は、R(赤)、GR(緑)、GB(緑)、B(青)のいずれかの色情報を有する。   An image in the Bayer data format is input to the color separation unit 300. Specifically, the composite image is input to the color separation unit 300 of the first cumulative histogram calculation unit 200, and the low sensitivity image is input to the color separation unit 300 of the second cumulative histogram calculation unit 201. Each pixel of these Bayer data format images has color information of any one of R (red), GR (green), GB (green), and B (blue).

色分離部300は、Bayerデータ形式の入力画像から、各色成分を抜き出し、R成分を有する画素の画像(以下、R画像と呼ぶ)、GR成分を有する画素の画像(以下、GR画像と呼ぶ)、GB成分を有する画素の画像(以下、GB画像と呼ぶ)、B成分を有する画素の画像(以下、B画像と呼ぶ)を生成する。R画像は、Rヒストグラム計算部301に、GR画像は、GRヒストグラム計算部302に、GB画像は、GBヒストグラム計算部303に、B画像は、Bヒストグラム計算部304に出力される。   The color separation unit 300 extracts each color component from an input image in the Bayer data format, and extracts an image of a pixel having an R component (hereinafter referred to as an R image) and an image of a pixel having a GR component (hereinafter referred to as a GR image). , A pixel image having a GB component (hereinafter referred to as a GB image) and a pixel image having a B component (hereinafter referred to as a B image) are generated. The R image is output to the R histogram calculation unit 301, the GR image is output to the GR histogram calculation unit 302, the GB image is output to the GB histogram calculation unit 303, and the B image is output to the B histogram calculation unit 304.

Rヒストグラム計算部301、GRヒストグラム計算部302、GBヒストグラム計算部303、および、Bヒストグラム計算部304はそれぞれ、入力された画像の全画素について、画素値のヒストグラムを計算する。   The R histogram calculation unit 301, the GR histogram calculation unit 302, the GB histogram calculation unit 303, and the B histogram calculation unit 304 each calculate a pixel value histogram for all the pixels of the input image.

図4は、ヒストグラムの計算結果の一例を示す図である。図4において、横軸は画素値、縦軸は画素数を表している。画素値は、最小値を0、最大値を255としている。各ヒストグラム計算部301〜304は、入力された画像の全画素について、ある画素値を示す画素の画素数を計算して、画素値のヒストグラムを作成する。   FIG. 4 is a diagram illustrating an example of a histogram calculation result. In FIG. 4, the horizontal axis represents the pixel value, and the vertical axis represents the number of pixels. The pixel value has a minimum value of 0 and a maximum value of 255. Each histogram calculation unit 301 to 304 calculates the number of pixels indicating a certain pixel value for all pixels of the input image, and creates a histogram of pixel values.

Rヒストグラム計算部301で計算されたヒストグラムは、R累積ヒストグラム計算部305に出力される。同様に、GRヒストグラム計算部302で計算されたヒストグラムは、GR累積ヒストグラム計算部306に、GBヒストグラム計算部303で計算されたヒストグラムは、GB累積ヒストグラム計算部307に、Bヒストグラム計算部304で計算されたヒストグラムは、B累積ヒストグラム計算部308にそれぞれ出力される。   The histogram calculated by the R histogram calculation unit 301 is output to the R cumulative histogram calculation unit 305. Similarly, the histogram calculated by the GR histogram calculation unit 302 is calculated by the GR cumulative histogram calculation unit 306, and the histogram calculated by the GB histogram calculation unit 303 is calculated by the GB cumulative histogram calculation unit 307 and by the B histogram calculation unit 304. The histograms thus output are output to the B cumulative histogram calculation unit 308, respectively.

R累積ヒストグラム計算部305、GR累積ヒストグラム計算部306、GB累積ヒストグラム計算部307、および、B累積ヒストグラム計算部308は、入力された画素値のヒストグラムに基づいて、累積ヒストグラムを作成する。   The R cumulative histogram calculator 305, the GR cumulative histogram calculator 306, the GB cumulative histogram calculator 307, and the B cumulative histogram calculator 308 create a cumulative histogram based on the input pixel value histogram.

図5は、累積ヒストグラムの一例を示す図である。図5において、横軸は画素値、縦軸は頻度を表している。画素値は、最小値を0、最大値を255とし、頻度は、最小値を0%、最大値を100%としている。   FIG. 5 is a diagram illustrating an example of a cumulative histogram. In FIG. 5, the horizontal axis represents the pixel value, and the vertical axis represents the frequency. The pixel value has a minimum value of 0 and a maximum value of 255, and the frequency has a minimum value of 0% and a maximum value of 100%.

累積ヒストグラムは、画素値のヒストグラムの計算結果を画素値0から画素値255まで順に積分し、それが全画素数に占める割合をそれぞれの画素値についてプロットしたものである。例えば、図5において、画素値Xでの頻度が50%となっているのは、画素値0から画素値Xまでの画素数は、全画素数の50%であることを意味している。各累積ヒストグラム計算部305〜308で作成された累積ヒストグラムは、階調補正特性計算部202に出力される。   The cumulative histogram is obtained by integrating the calculation results of the pixel value histogram in order from the pixel value 0 to the pixel value 255, and plotting the ratio of the calculated value to the total number of pixels for each pixel value. For example, in FIG. 5, the frequency at the pixel value X is 50%, which means that the number of pixels from the pixel value 0 to the pixel value X is 50% of the total number of pixels. The cumulative histogram created by each of the cumulative histogram calculators 305 to 308 is output to the gradation correction characteristic calculator 202.

階調補正特性計算部202は、第1累積ヒストグラム計算部200から出力される、合成画像の累積ヒストグラム計算結果と、第2累積ヒストグラム計算部201から出力される、低感度画像の累積ヒストグラム計算結果とを比較して、合成画像の階調・色再現特性を、低感度画像の階調・色再現特性に近づけるような階調補正特性を計算する。   The gradation correction characteristic calculation unit 202 outputs the cumulative histogram calculation result of the composite image output from the first cumulative histogram calculation unit 200 and the cumulative histogram calculation result of the low sensitivity image output from the second cumulative histogram calculation unit 201. And a gradation correction characteristic that makes the gradation and color reproduction characteristics of the composite image close to the gradation and color reproduction characteristics of the low-sensitivity image.

図6は、階調補正特性計算部202による階調補正特性の計算方法を説明するための図である。図6において、横軸は画素値、縦軸は頻度を表している。また、図6中の実線は、合成画像の累積ヒストグラムを表し、点線は、低感度画像の累積ヒストグラムを表している。   FIG. 6 is a diagram for explaining a method of calculating the gradation correction characteristic by the gradation correction characteristic calculation unit 202. In FIG. 6, the horizontal axis represents the pixel value, and the vertical axis represents the frequency. Further, the solid line in FIG. 6 represents the cumulative histogram of the composite image, and the dotted line represents the cumulative histogram of the low-sensitivity image.

ここでは、合成画像に対して階調補正処理を行うことにより、補正された合成画像の累積ヒストグラムが低感度画像の累積ヒストグラムと一致するような階調補正特性を計算する。例えば、合成画像における画素値Xの累積ヒストグラムの頻度が50%であり、低感度画像において累積ヒストグラムの頻度が50%に対応する画素値が画素値Yの場合、画素値Xを画素値Yに補正するような階調補正特性を求める。このような対応付けを全ての画素値について行い、画素値の変換テーブルを作成する。この画素値の変換テーブルが階調補正特性計算結果となる。   Here, gradation correction characteristics are calculated by performing gradation correction processing on the composite image so that the cumulative histogram of the corrected composite image matches the cumulative histogram of the low-sensitivity image. For example, when the frequency of the cumulative histogram of the pixel value X in the composite image is 50% and the pixel value corresponding to the cumulative histogram frequency of 50% in the low-sensitivity image is the pixel value Y, the pixel value X is changed to the pixel value Y. A tone correction characteristic to be corrected is obtained. Such association is performed for all pixel values, and a pixel value conversion table is created. This pixel value conversion table is the gradation correction characteristic calculation result.

上述したような階調補正特性の計算を、R、GR、GB、Bの各色それぞれについて行う。各色それぞれについて階調補正を行うことにより、結果的に、色再現特性の補正も行われることになる。   The calculation of the gradation correction characteristics as described above is performed for each of R, GR, GB, and B colors. By performing gradation correction for each color, the color reproduction characteristics are corrected as a result.

なお、合成画像の累積ヒストグラムを低感度画像の累積ヒストグラムと完全に一致させるような階調補正特性ではなく、略一致させるような階調補正特性であっても、合成画像の階調特性や色再現特性を補正する効果は得られる。または、合成画像の累積ヒストグラムを低感度画像の累積ヒストグラムにより近づけるような補正値を計算するようにしてもよい。具体的には、合成画像の累積ヒストグラムと低感度画像の累積ヒストグラムとの間の各頻度値に対応する画素値の差分を減少させるように合成画像の累積ヒストグラムを変更するような階調補正特性であっても、合成画像の階調特性や色再現特性を補正する効果は得られる。或いは、合成画像の累積ヒストグラムと低感度画像の累積ヒストグラムとの間の各頻度値に対応する画素値の差分が所定の閾値以下になるように合成画像の累積ヒストグラムを変更するような階調補正特性であっても、合成画像の階調特性や色再現特性を補正する効果は得られる。   Note that the tone characteristics and colors of the composite image are not required to match the cumulative histogram of the low-sensitivity image completely with the tone correction characteristics that substantially match the tone correction characteristics. The effect of correcting the reproduction characteristics can be obtained. Alternatively, a correction value may be calculated so that the cumulative histogram of the composite image becomes closer to the cumulative histogram of the low-sensitivity image. Specifically, tone correction characteristics such that the cumulative histogram of the composite image is changed so as to reduce the difference in pixel values corresponding to each frequency value between the cumulative histogram of the composite image and the cumulative histogram of the low-sensitivity image. Even so, the effect of correcting the tone characteristics and color reproduction characteristics of the composite image can be obtained. Alternatively, tone correction such that the cumulative histogram of the composite image is changed so that the difference between the pixel values corresponding to each frequency value between the cumulative histogram of the composite image and the cumulative histogram of the low-sensitivity image is equal to or less than a predetermined threshold. Even with the characteristics, the effect of correcting the gradation characteristics and color reproduction characteristics of the composite image can be obtained.

階調補正部203は、階調補正特性計算部202によって計算された階調補正特性、すなわち、画素値の変換テーブルに基づいて、合成画像のR、GR、GB、Bの各色について階調補正処理を行い、階調補正済みの合成画像を画像処理部105に出力する。   The gradation correction unit 203 performs gradation correction for each color of R, GR, GB, and B of the composite image based on the gradation correction characteristic calculated by the gradation correction characteristic calculation unit 202, that is, the pixel value conversion table. Processing is performed, and the composite image after gradation correction is output to the image processing unit 105.

以上、第1の実施形態における画像処理装置は、第1の露光時間に基づいて撮影された複数枚の高感度画像を取得するとともに、第1の露光時間よりも長い第2の露光時間に基づいて撮影された少なくとも1枚の低感度画像を取得し、複数枚の高感度画像を合成することによって、合成画像を生成する。そして、合成画像の少なくとも一部の領域の画素値に基づく統計量と、合成画像の少なくとも一部の領域に対応する、低感度画像の少なくとも一部の領域の画素値に基づく統計量とを計算して、合成画像の統計量を低感度画像の統計量により近づけるように、合成画像の画素値を補正する。合成画像の階調特性や色再現特性を、撮像素子のリニアリティ特性の良い領域で撮影された低感度画像の階調特性や色再現特性に応じて補正するので、露光時間が短いことにより生ずる階調特性や色再現特性の悪化を補正し、階調特性や色再現特性が良好な合成画像を得ることができる。   As described above, the image processing apparatus according to the first embodiment acquires a plurality of high-sensitivity images photographed based on the first exposure time, and based on the second exposure time longer than the first exposure time. At least one low-sensitivity image captured in this way is acquired and a plurality of high-sensitivity images are combined to generate a composite image. Then, a statistic based on a pixel value of at least a part of the composite image and a statistic based on a pixel value of at least a part of the low-sensitivity image corresponding to at least a part of the composite image are calculated. Then, the pixel value of the composite image is corrected so that the statistic of the composite image becomes closer to the statistic of the low-sensitivity image. The gradation characteristics and color reproduction characteristics of the composite image are corrected according to the gradation characteristics and color reproduction characteristics of the low-sensitivity image captured in the area where the linearity characteristic of the image sensor is good, so that the floor caused by the short exposure time. It is possible to correct a deterioration in tone characteristics and color reproduction characteristics and obtain a composite image with favorable gradation characteristics and color reproduction characteristics.

事前にリニアリティ特性を計測する従来の装置では、温度変化等によってリニアリティ特性が変化する場合等の対応に限界がある。しかし、第1の実施形態における画像処理装置によれば、合成画像の少なくとも一部の領域の画素値に基づく統計量を、合成画像の少なくとも一部の領域に対応する、低感度画像の少なくとも一部の領域の画素値に基づく統計量により近づけるように、合成画像の画素値を補正するので、温度変化等によってリニアリティ特性が変化する場合でも、階調特性や色再現特性を確実に補正することができる。   The conventional apparatus that measures the linearity characteristic in advance has a limit to the response when the linearity characteristic changes due to a temperature change or the like. However, according to the image processing apparatus in the first embodiment, the statistical amount based on the pixel values of at least a partial area of the composite image is set to at least one of the low-sensitivity images corresponding to at least a partial area of the composite image. Because the pixel value of the composite image is corrected so that it is closer to the statistic based on the pixel value of the area of the area, even if the linearity characteristics change due to temperature changes, etc., the gradation characteristics and color reproduction characteristics must be corrected reliably Can do.

特に、上記統計量は、各画素値の頻度の累積値を表す累積ヒストグラムであるので、階調特性や色再現特性を効果的に補正することができる。   In particular, since the statistic is a cumulative histogram representing the cumulative value of the frequency of each pixel value, tone characteristics and color reproduction characteristics can be corrected effectively.

なお、上述した説明では、合成画像と低感度画像との間に位置ずれが生じている場合でも、位置ずれを考慮せずに処理を行うものとしたが、合成画像と低感度画像との間の位置ずれを検出して位置合わせ処理を行ってから、合成画像の階調特性や色再現特性を補正するようにしてもよい。合成画像と低感度画像との間の位置合わせ処理を行うことにより、階調補正処理の精度をさらに向上させることができる。   In the above description, even when a positional deviation occurs between the synthesized image and the low-sensitivity image, the processing is performed without considering the positional deviation. It is also possible to correct the tone characteristics and the color reproduction characteristics of the composite image after performing the alignment process by detecting the positional deviation. By performing the alignment process between the synthesized image and the low-sensitivity image, the accuracy of the gradation correction process can be further improved.

また、第1累積ヒストグラム計算部200および第2累積ヒストグラム計算部201の計算量を減らすために、ヒストグラムを計算する領域を画像の一部のみとしてもよいし、合成画像および低感度画像のそれぞれについて、画素数を減らした縮小画像を生成して、ヒストグラムを計算するようにしてもよい。ヒストグラムを計算する領域を画像の一部のみとする場合には、合成画像の一部の領域と低感度画像の一部の領域とを対応した領域とする必要がある。   Further, in order to reduce the calculation amount of the first cumulative histogram calculation unit 200 and the second cumulative histogram calculation unit 201, the area for calculating the histogram may be a part of the image, or each of the composite image and the low-sensitivity image. Alternatively, a reduced image with a reduced number of pixels may be generated to calculate a histogram. When the area for calculating the histogram is only a part of the image, it is necessary to make a part of the composite image and a part of the low-sensitivity image correspond to each other.

複数枚合成処理部103および階調・色補正部104は、Bayerデータ形式の画像に対して処理を行った。これに対して、1画素あたりR、G、Bの情報からなる画像データ、または、1画素あたり輝度信号(Y)と2つの色差信号(Cb、Cr)の情報からなる画像データに対して、処理を行うこともできる。   The multi-sheet composition processing unit 103 and the gradation / color correction unit 104 performed processing on an image in the Bayer data format. On the other hand, for image data consisting of R, G, B information per pixel, or image data consisting of information of luminance signal (Y) and two color difference signals (Cb, Cr) per pixel, Processing can also be performed.

図7は、画像処理部105がRAWデータ形式の画像(Bayerデータ形式の画像)を、1画素あたりR、G、Bの情報からなる画像データ、もしくは、1画素あたり輝度信号(Y)と2つの色差信号(Cb、Cr)の情報からなる画像データに変換した後、複数枚合成処理部103および階調・色補正部104が各処理を行う構成の画像処理装置を搭載した撮像装置の概略構成を示す図である。図1に示す構成と同じ構成については、同じ符号を付して詳しい説明は省略する。   In FIG. 7, the image processing unit 105 converts an image in the RAW data format (an image in the Bayer data format) into image data consisting of R, G, and B information per pixel, or luminance signal (Y) per pixel and 2 Outline of an imaging apparatus equipped with an image processing apparatus having a configuration in which a plurality of image composition processing units 103 and gradation / color correction units 104 perform respective processes after conversion into image data including information of two color difference signals (Cb, Cr). It is a figure which shows a structure. About the same structure as the structure shown in FIG. 1, the same code | symbol is attached | subjected and detailed description is abbreviate | omitted.

画像処理部105は、撮像素子101から出力されるRAWデータ形式の画像(Bayerデータ形式の画像)を、1画素あたりR、G、Bの情報からなる画像データ、もしくは、1画素あたり輝度信号(Y)と2つの色差信号(Cb、Cr)の情報からなる画像データに変換する同時化処理を行い、さらに、エッジ強調処理やノイズ低減処理等を行う。画像処理部105によって上述した処理が行われた画像は、フレームメモリ102に格納される。   The image processing unit 105 converts a RAW data format image (Bayer data format image) output from the image sensor 101 into image data composed of R, G, and B information per pixel, or a luminance signal per pixel ( Y) and a synchronization process for converting the image data into information of two color difference signals (Cb, Cr), and an edge enhancement process and a noise reduction process are performed. The image that has been subjected to the processing described above by the image processing unit 105 is stored in the frame memory 102.

複数枚合成処理部103は、Bayerデータ形式の画像ではなく、同時化処理後の複数枚の高感度画像データを用いて、合成画像を生成する。   The multiple-sheet compositing processing unit 103 generates a composite image using a plurality of high-sensitivity image data after the synchronization processing instead of an image in the Bayer data format.

階調・色補正部104は、内部の構成において、色分離部300が不要となり、R、G、Bのそれぞれ、または、Y、Cb、Crのそれぞれの成分に対して、累積ヒストグラムを計算する処理、階調補正特性を計算する処理、階調補正処理を行う。   The gradation / color correction unit 104 does not require the color separation unit 300 in the internal configuration, and calculates a cumulative histogram for each of R, G, and B, or each of Y, Cb, and Cr. Processing, processing for calculating gradation correction characteristics, and gradation correction processing are performed.

<第2の実施形態>
第1の実施形態における画像処理装置では、階調・色補正部104において、合成画像と低感度画像の画像全体について累積ヒストグラムを計算し、合成画像の累積ヒストグラムを低感度画像の累積ヒストグラムにより近づけるための階調補正処理を合成画像に行うことによって、合成画像の階調特性や色再現特性を改善した。第2の実施形態における画像処理装置では、階調・色補正部が行う処理を簡易化した方式について説明する。なお、第2の実施形態における階調・色補正部と、第1の実施形態における階調・色補正部104とは、内部で行う処理内容が異なるため、第2の実施形態における階調・色補正部の符号を104Aとする。
<Second Embodiment>
In the image processing apparatus according to the first embodiment, the gradation / color correction unit 104 calculates a cumulative histogram for the entire composite image and low-sensitivity image, and brings the cumulative histogram of the composite image closer to the cumulative histogram of the low-sensitivity image. Therefore, the gradation characteristics and color reproduction characteristics of the composite image are improved by performing the gradation correction processing for the composite image. In the image processing apparatus according to the second embodiment, a method in which processing performed by the gradation / color correction unit is simplified will be described. Note that the gradation / color correction unit in the second embodiment and the gradation / color correction unit 104 in the first embodiment differ in the content of processing performed internally, and therefore the gradation / color correction unit in the second embodiment. The code of the color correction unit is 104A.

図8は、第2の実施形態における画像処理装置の階調・色補正部104Aの詳細な構成を示すブロック図である。階調・色補正部104Aは、第1平均値計算部400と、第2平均値計算部401と、補正値計算部402と、画素値補正部403とを備える。   FIG. 8 is a block diagram illustrating a detailed configuration of the gradation / color correction unit 104A of the image processing apparatus according to the second embodiment. The gradation / color correction unit 104A includes a first average value calculation unit 400, a second average value calculation unit 401, a correction value calculation unit 402, and a pixel value correction unit 403.

第1平均値計算部400は、複数枚合成処理部103で生成された合成画像の全画素の画素値の平均値を計算する。また、第2平均値計算部401は、フレームメモリ102から読み出した低感度画像の全画素の画素値の平均値を計算する。合成画像および低感度画像は、Bayerデータ形式の画像であり、各画素は、R、GR、GB、Bのいずれかに対応しているため、画素値の平均値の計算も各色成分ごとに行う。   The first average value calculation unit 400 calculates the average value of the pixel values of all the pixels of the composite image generated by the multiple-sheet composition processing unit 103. Further, the second average value calculation unit 401 calculates the average value of the pixel values of all the pixels of the low sensitivity image read from the frame memory 102. The composite image and the low-sensitivity image are images in the Bayer data format, and each pixel corresponds to one of R, GR, GB, and B. Therefore, the average value of the pixel values is also calculated for each color component. .

補正値計算部402は、第1平均値計算部400によって算出された合成画像の画素値の平均値を、第2平均値計算部401によって算出された低感度画像の画素値の平均値に一致させるような補正値を計算する。すなわち、低感度画像の画素値の平均値から合成画像の画素値の平均値を減算することによって補正値を算出する。補正値の計算は、R、GR、GB、Bの各色成分に対して行う。   The correction value calculation unit 402 matches the average value of the pixel values of the composite image calculated by the first average value calculation unit 400 with the average value of the pixel values of the low sensitivity image calculated by the second average value calculation unit 401. Calculate the correction value to be corrected. That is, the correction value is calculated by subtracting the average pixel value of the composite image from the average pixel value of the low-sensitivity image. The correction value is calculated for each of the R, GR, GB, and B color components.

なお、合成画像の画素値の平均値を低感度画像の画素値の平均値と完全に一致させるような補正値ではなく、略一致させるような補正値であっても、合成画像の階調特性や色再現特性を補正する効果は得られる。または、合成画像の画素値の平均値を低感度画像の画素値の平均値により近づけるような補正値を計算するようにしてもよい。具体的には、合成画像の画素値の平均値と低感度画像の画素値の平均値との差分を減少させるような補正値であっても、合成画像の階調特性や色再現特性を補正する効果は得られる。或いは、合成画像の画素値の平均値と低感度画像の画素値の平均値との差分が所定の閾値以下になるような補正値であっても、合成画像の階調特性や色再現特性を補正する効果は得られる。   Note that the tone characteristics of the composite image are not the correction value that completely matches the average value of the pixel values of the composite image with the average value of the pixel values of the low-sensitivity image, And the effect of correcting the color reproduction characteristics can be obtained. Or you may make it calculate the correction value which makes the average value of the pixel value of a synthesized image approach the average value of the pixel value of a low sensitivity image. Specifically, even if the correction value reduces the difference between the average pixel value of the composite image and the average pixel value of the low-sensitivity image, the tone characteristics and color reproduction characteristics of the composite image are corrected. The effect to do is obtained. Alternatively, even if the correction value is such that the difference between the average value of the pixel values of the composite image and the average value of the pixel values of the low-sensitivity image is equal to or less than a predetermined threshold, the tone characteristics and color reproduction characteristics of the composite image are reduced. The effect of correcting is obtained.

画素値補正部403は、補正値計算部402で計算された各色の補正値を、合成画像の各色の画素値に加算して、補正済みの合成画像を生成する。   The pixel value correcting unit 403 adds the correction values of the respective colors calculated by the correction value calculating unit 402 to the pixel values of the respective colors of the combined image, thereby generating a corrected combined image.

なお、補正値計算部402は、合成画像の全画素の画素値の平均値から低感度画像の画素値の平均値を減算することによって、補正値を算出することもできる。この場合、画素値補正部403は、合成画像の各色の画素値から、補正値計算部402で計算された各色の補正値を減算することによって、補正済みの合成画像を生成する。   The correction value calculation unit 402 can also calculate a correction value by subtracting the average value of the pixel values of the low-sensitivity image from the average value of the pixel values of all the pixels of the composite image. In this case, the pixel value correction unit 403 generates a corrected composite image by subtracting the correction value of each color calculated by the correction value calculation unit 402 from the pixel value of each color of the composite image.

図9は、第2の実施形態における画像処理装置による補正の効果について説明するための図である。図9において、横軸は被写体の明るさを、縦軸は画素値をそれぞれ示している。図9において、実線は、合成画像における被写体の明るさと画素値との関係の一例を表し、点線は、低感度画像における被写体の明るさと画素値との関係の一例を表している。   FIG. 9 is a diagram for explaining the effect of correction by the image processing apparatus according to the second embodiment. In FIG. 9, the horizontal axis represents the brightness of the subject, and the vertical axis represents the pixel value. In FIG. 9, the solid line represents an example of the relationship between the brightness of the subject and the pixel value in the composite image, and the dotted line represents an example of the relationship between the brightness of the subject and the pixel value in the low-sensitivity image.

例えば、同じ明るさの被写体を撮影した場合に、高感度撮影と低感度撮影で画素値に一定のオフセットが生じる場合には、図9に示すように、合成画像の画素値と低感度画像の画素値との間に一定のオフセットが生じる。従って、合成画像の画素値の平均値と低感度画像の画素値の平均値との差を求めることによって、上述したオフセット値を推定し、推定したオフセット値に基づいて、合成画像の画素値を補正する。このように、被写体の明るさによらない一定の画素値のオフセットが合成画像と低感度画像との間の誤差の支配的要因である場合には、上述したような簡易的な補正処理を行うことにより、合成画像の階調特性や色再現特性を改善することができる。   For example, when a subject having the same brightness is photographed and a certain offset occurs in the pixel value in high-sensitivity photographing and low-sensitivity photographing, as shown in FIG. 9, the pixel value of the composite image and the low-sensitivity image A certain offset occurs between the pixel values. Therefore, by calculating the difference between the average value of the pixel values of the composite image and the average value of the pixel values of the low-sensitivity image, the offset value described above is estimated, and the pixel value of the composite image is calculated based on the estimated offset value. to correct. As described above, when the offset of a certain pixel value that does not depend on the brightness of the subject is the dominant factor of the error between the synthesized image and the low-sensitivity image, the simple correction process as described above is performed. As a result, the tone characteristics and color reproduction characteristics of the composite image can be improved.

なお、被写体の明るさに関係なく一定のオフセットが発生する例としては、高感度撮影と低感度撮影でのノイズの差に起因する場合や、黒レベル推定処理(オプティカルブラック補正処理)の誤差に起因する場合などがある。   Note that examples of the occurrence of a constant offset regardless of the brightness of the subject include cases caused by noise differences between high-sensitivity shooting and low-sensitivity shooting, and errors in black level estimation processing (optical black correction processing). There may be cases.

第1平均値計算部400および第2平均値計算部401は、全画素の画素値の平均値を計算するものとして説明したが、画素値が最小値の0または最大値の255である画素を、平均値の計算から除外するようにしてもよい。画素値が最小値または最大値である画素を平均値の計算から除外することにより、合成画像の画素値と低感度画像の画素値との間のオフセット値をより精度良く求めることができる。ただし、一般的には、全画素のうち、画素値が最小値または最大値である画素の割合は低いので、画素値が最小値または最大値である画素を平均値の計算から除外しなくても、オフセット値の算出精度がそれほど低くなることはない。   The first average value calculation unit 400 and the second average value calculation unit 401 have been described as calculating the average value of the pixel values of all the pixels. However, a pixel whose pixel value is the minimum value 0 or the maximum value 255 is selected. The average value may be excluded from the calculation. By excluding the pixel whose pixel value is the minimum value or the maximum value from the calculation of the average value, the offset value between the pixel value of the synthesized image and the pixel value of the low-sensitivity image can be obtained with higher accuracy. However, in general, since the ratio of the pixels having the minimum or maximum pixel value among all the pixels is low, it is necessary to exclude the pixels having the minimum or maximum pixel value from the calculation of the average value. However, the calculation accuracy of the offset value is not so low.

なお、第1の実施形態における画像処理装置と同様に、合成画像と低感度画像との間の位置ずれを検出して位置合わせ処理を行ってから、合成画像の階調特性や色再現特性を補正するようにしてもよい。また、第1平均値計算部400および第2平均値計算部401の計算量を減らすために、平均値を計算する領域を画像の一部のみとしてもよいし、合成画像および低感度画像のそれぞれについて、画素数を減らした縮小画像を生成して、平均値を計算するようにしてもよい。さらに、複数枚合成処理部103および階調・色補正部104Aは、Bayerデータ形式の画像に対して処理を行ったが、1画素あたりR、G、Bの情報からなる画像データ、または、1画素あたり輝度信号(Y)と2つの色差信号(Cb、Cr)の情報からなる画像データに対して、処理を行うようにしてもよい。   As in the image processing apparatus according to the first embodiment, after detecting the positional deviation between the composite image and the low-sensitivity image and performing the alignment process, the gradation characteristics and color reproduction characteristics of the composite image are changed. You may make it correct | amend. Further, in order to reduce the calculation amount of the first average value calculation unit 400 and the second average value calculation unit 401, the area for calculating the average value may be only a part of the image, or each of the composite image and the low-sensitivity image. A reduced image with a reduced number of pixels may be generated and the average value calculated. Further, the multi-sheet compositing processing unit 103 and the gradation / color correction unit 104A performed processing on an image in the Bayer data format. However, image data including R, G, and B information per pixel, or 1 Processing may be performed on image data including information of a luminance signal (Y) per pixel and two color difference signals (Cb, Cr).

以上、第2の実施形態における画像処理装置によれば、第1の露光時間に基づいて撮影された複数枚の高感度画像を取得するとともに、第1の露光時間よりも長い第2の露光時間に基づいて撮影された少なくとも1枚の低感度画像を取得し、複数枚の高感度画像を合成することによって、合成画像を生成する。そして、合成画像の少なくとも一部の領域の画素値の平均値(画素値に基づく統計量)を、合成画像の少なくとも一部の領域に対応する、低感度画像の少なくとも一部の領域の画素値の平均値(画素値に基づく統計量)により近づけるように、合成画像の画素値を補正する。合成画像の階調特性や色再現特性を、撮像素子のリニアリティ特性の良い領域で撮影された低感度画像の階調特性や色再現特性に応じて補正するので、露光時間が短いことにより生ずる階調特性や色再現特性の悪化を補正し、階調特性や色再現特性が良好な合成画像を得ることができる。特に、統計量として画素値の平均値を用いるので、統計量として累積ヒストグラムを用いる場合に比べて、少ない演算量で階調特性や色再現特性が良好な合成画像を得ることができる。   As described above, according to the image processing apparatus of the second embodiment, a plurality of high-sensitivity images photographed based on the first exposure time are acquired, and the second exposure time longer than the first exposure time. At least one low-sensitivity image photographed based on the above is acquired, and a composite image is generated by combining a plurality of high-sensitivity images. Then, an average value of pixel values (statistics based on the pixel value) of at least a part of the composite image is set to a pixel value of at least a part of the low-sensitivity image corresponding to the part of the composite image. The pixel value of the synthesized image is corrected so as to be closer to the average value (statistics based on the pixel value). The gradation characteristics and color reproduction characteristics of the composite image are corrected according to the gradation characteristics and color reproduction characteristics of the low-sensitivity image captured in the area where the linearity characteristic of the image sensor is good, so that the floor caused by the short exposure time. It is possible to correct a deterioration in tone characteristics and color reproduction characteristics and obtain a composite image with favorable gradation characteristics and color reproduction characteristics. In particular, since the average value of the pixel values is used as the statistic, it is possible to obtain a composite image with favorable gradation characteristics and color reproduction characteristics with a small amount of calculation compared to the case where the cumulative histogram is used as the statistic.

また、合成画像の各画素に対して補正値を加算(補正値によっては減算)することによって、合成画像の画素値を補正するので、高感度撮影と低感度撮影で一定のオフセットによる誤差が発生する場合において、効果的に階調特性や色再現特性が良好な合成画像を得ることができる。   In addition, the correction value is added to each pixel of the composite image (or subtraction depending on the correction value) to correct the pixel value of the composite image, so an error due to a fixed offset occurs in high-sensitivity shooting and low-sensitivity shooting. In this case, it is possible to effectively obtain a composite image having good gradation characteristics and color reproduction characteristics.

<第3の実施形態>
第2の実施形態では、高感度撮影と低感度撮影で画素値に一定のオフセットが発生する場合を想定し、簡易的に合成画像の補正を行う方法について説明した。第3の実施形態では、高感度撮影と低感度撮影で一定のゲインによる誤差が発生する場合を想定し、簡易的に合成画像の補正を行う方法について説明する。
<Third Embodiment>
In the second embodiment, the method of simply correcting the composite image has been described assuming a case where a certain offset occurs in the pixel value in high-sensitivity shooting and low-sensitivity shooting. In the third embodiment, a method of simply correcting a composite image will be described assuming a case where an error due to a certain gain occurs in high-sensitivity shooting and low-sensitivity shooting.

第3の実施形態における画像処理装置の構成は、第2の実施形態における画像処理装置の構成と同じである。ただし、第3の実施形態における画像処理装置では、階調・色補正部104Aの補正値計算部および画素値補正部の動作が第2の実施形態と異なる。以下の説明では、第3の実施形態における補正値計算部、画素値補正部の符号をそれぞれ、402A、403Aとする。   The configuration of the image processing apparatus in the third embodiment is the same as the configuration of the image processing apparatus in the second embodiment. However, in the image processing apparatus according to the third embodiment, the operations of the correction value calculation unit and the pixel value correction unit of the gradation / color correction unit 104A are different from those of the second embodiment. In the following description, the reference numerals of the correction value calculation unit and the pixel value correction unit in the third embodiment are 402A and 403A, respectively.

補正値計算部402Aは、合成画像の画素値の平均値を低感度画像の画素値の平均値に一致させるような補正値を計算する。補正値の計算は、R、GR、GB、Bの各色成分に対して行う。なお、第2の実施形態と同様に、合成画像の画素値の平均値を低感度画像の画素値の平均値に略一致させるような補正値を計算するようにしてもよい。または、合成画像の画素値の平均値を低感度画像の画素値の平均値により近づけるような補正値を計算するようにしてもよい。具体的には、合成画像の画素値の平均値と低感度画像の画素値の平均値との比をより1に近づけるような補正値であっても、合成画像の階調特性や色再現特性を補正する効果は得られる。或いは、合成画像の画素値の平均値と低感度画像の画素値の平均値との比と比1(合成画像の画素値の平均値と低感度画像の画素値の平均値が完全に同一の場合)との差分絶対値が所定の閾値以下になるような補正値であっても、合成画像の階調特性や色再現特性を補正する効果は得られる。   The correction value calculation unit 402A calculates a correction value that matches the average value of the pixel values of the composite image with the average value of the pixel values of the low-sensitivity image. The correction value is calculated for each of the R, GR, GB, and B color components. As in the second embodiment, a correction value may be calculated so that the average value of the pixel values of the composite image substantially matches the average value of the pixel values of the low-sensitivity image. Or you may make it calculate the correction value which makes the average value of the pixel value of a synthesized image approach the average value of the pixel value of a low sensitivity image. Specifically, even if the correction value is such that the ratio between the average value of the pixel values of the composite image and the average value of the pixel values of the low-sensitivity image is closer to 1, the tone characteristics and color reproduction characteristics of the composite image The effect of correcting is obtained. Alternatively, the ratio 1 between the average value of the pixel values of the composite image and the average value of the pixel values of the low-sensitivity image (the average value of the pixel values of the composite image and the average value of the pixel values of the low-sensitivity image are completely the same) Even if the correction value is such that the absolute value of the difference from the case is equal to or less than a predetermined threshold value, the effect of correcting the tone characteristics and color reproduction characteristics of the composite image can be obtained.

画素値補正部403Aは、補正値計算部402Aで計算された各色の補正値を、合成画像の各色の画素値に乗算して、補正済みの合成画像を生成する。   The pixel value correction unit 403A multiplies the correction value of each color calculated by the correction value calculation unit 402A by the pixel value of each color of the composite image to generate a corrected composite image.

図10は、第3の実施形態における画像処理装置による補正の効果について説明するための図である。図10において、横軸は被写体の明るさを、縦軸は画素値をそれぞれ示している。図10において、実線は、合成画像における被写体の明るさと画素値との関係の一例を表し、点線は、低感度画像における被写体の明るさと画素値との関係の一例を表している。   FIG. 10 is a diagram for explaining the effect of correction by the image processing apparatus according to the third embodiment. In FIG. 10, the horizontal axis represents the brightness of the subject, and the vertical axis represents the pixel value. In FIG. 10, a solid line represents an example of the relationship between the brightness of the subject and the pixel value in the composite image, and a dotted line represents an example of the relationship between the brightness of the subject and the pixel value in the low-sensitivity image.

例えば、同じ明るさの被写体を撮影した場合に、高感度撮影と低感度撮影で画素値に一定のゲインによる誤差が生じる場合には、図10に示すように、合成画像の画素値と低感度画像の画素値との間に一定のゲインによる誤差が生じる。   For example, when an object having the same brightness is photographed and an error due to a certain gain occurs in the pixel value in high-sensitivity photographing and low-sensitivity photographing, as shown in FIG. An error due to a certain gain occurs between the pixel value of the image.

補正値計算部402Aは、R、GR、GB、Bの各色成分について、低感度画像の画素値の平均値を合成画像の画素値の平均値で除算することにより、上記ゲインの推定値である補正値を算出する。画素値補正部403Aは、合成画像の各色の画素値に、補正値計算部402Aで計算された各色の補正値を乗算することによって、合成画像の画素値を補正する。このように、被写体の明るさによらない一定のゲインによる誤差が支配的要因の場合には、上述したような簡易的な補正処理を行うことにより、合成画像の階調特性や色再現特性を改善することができる。   The correction value calculation unit 402A obtains the estimated value of the gain by dividing the average value of the pixel values of the low-sensitivity image by the average value of the pixel values of the composite image for each of the R, GR, GB, and B color components. A correction value is calculated. The pixel value correction unit 403A corrects the pixel value of the composite image by multiplying the pixel value of each color of the composite image by the correction value of each color calculated by the correction value calculation unit 402A. In this way, when the error due to a constant gain that does not depend on the brightness of the subject is the dominant factor, the tone characteristics and color reproduction characteristics of the composite image can be reduced by performing the simple correction processing as described above. Can be improved.

ここで、補正値計算部402Aは、R、GR、GB、Bの各色成分について、合成画像の画素値の平均値を低感度画像の画素値の平均値で除算することによって、補正値を算出し、画素値補正部403Aは、合成画像の各色の画素値を、補正値計算部402Aで計算された各色の補正値で除算することによっても、同じ結果を得ることができる。   Here, the correction value calculation unit 402A calculates the correction value for each of the R, GR, GB, and B color components by dividing the average value of the pixel values of the composite image by the average value of the pixel values of the low-sensitivity image. The pixel value correction unit 403A can obtain the same result by dividing the pixel value of each color of the composite image by the correction value of each color calculated by the correction value calculation unit 402A.

なお、被写体の明るさに関係なく一定のゲインによる誤差が発生する例としては、高感度撮影と低感度撮影でのシャッター速度の誤差に起因する場合や、感度に応じたゲイン処理の誤差に起因する場合などがある。   Note that examples of errors that occur due to a constant gain regardless of the brightness of the subject are due to errors in shutter speed between high-sensitivity shooting and low-sensitivity shooting, or due to errors in gain processing according to sensitivity. There are some cases.

また、第2の実施形態で説明したように、第1平均値計算部400および第2平均値計算部401は、画素値が最小値の0または最大値の255である画素を、平均値の計算から除外するようにしてもよい。   In addition, as described in the second embodiment, the first average value calculation unit 400 and the second average value calculation unit 401 change the average value of pixels whose pixel value is 0 of the minimum value or 255 of the maximum value. You may make it exclude from calculation.

なお、第1の実施形態における画像処理装置と同様に、合成画像と低感度画像との間の位置ずれを検出して位置合わせ処理を行ってから、合成画像の階調特性や色再現特性を補正するようにしてもよい。また、第1平均値計算部400および第2平均値計算部401の計算量を減らすために、平均値を計算する領域を画像の一部のみとしてもよいし、合成画像および低感度画像のそれぞれについて、画素数を減らした縮小画像を生成して、平均値を計算するようにしてもよい。さらに、複数枚合成処理部103および階調・色補正部104Aは、Bayerデータ形式の画像に対して処理を行ったが、1画素あたりR、G、Bの情報からなる画像データ、または、1画素あたり輝度信号(Y)と2つの色差信号(Cb、Cr)の情報からなる画像データに対して、処理を行うようにしてもよい。   As in the image processing apparatus according to the first embodiment, after detecting the positional deviation between the composite image and the low-sensitivity image and performing the alignment process, the gradation characteristics and color reproduction characteristics of the composite image are changed. You may make it correct | amend. Further, in order to reduce the calculation amount of the first average value calculation unit 400 and the second average value calculation unit 401, the area for calculating the average value may be only a part of the image, or each of the composite image and the low-sensitivity image. A reduced image with a reduced number of pixels may be generated and the average value calculated. Further, the multi-sheet compositing processing unit 103 and the gradation / color correction unit 104A performed processing on an image in the Bayer data format. However, image data including R, G, and B information per pixel, or 1 Processing may be performed on image data including information of a luminance signal (Y) per pixel and two color difference signals (Cb, Cr).

以上、第3の実施形態における画像処理装置によれば、第1の露光時間に基づいて撮影された複数枚の高感度画像を取得するとともに、第1の露光時間よりも長い第2の露光時間に基づいて撮影された少なくとも1枚の低感度画像を取得し、複数枚の高感度画像を合成することによって、合成画像を生成する。そして、合成画像の少なくとも一部の領域の画素値の平均値(画素値に基づく統計量)と、合成画像の少なくとも一部の領域に対応する、低感度画像の少なくとも一部の領域の画素値の平均値(画素値に基づく統計量)とを略一致させるように、合成画像の画素値を補正する。合成画像の階調特性や色再現特性を、撮像素子のリニアリティ特性の良い領域で撮影された低感度画像の階調特性や色再現特性に応じて補正するので、露光時間が短いことにより生ずる階調特性や色再現特性の悪化を補正し、階調特性や色再現特性が良好な合成画像を得ることができる。特に、統計量として画素値の平均値を用いるので、統計量として累積ヒストグラムを用いる場合に比べて、少ない演算量で階調特性や色再現特性が良好な合成画像を得ることができる。   As described above, according to the image processing apparatus in the third embodiment, the plurality of high-sensitivity images captured based on the first exposure time are acquired, and the second exposure time longer than the first exposure time. At least one low-sensitivity image photographed based on the above is acquired, and a composite image is generated by combining a plurality of high-sensitivity images. Then, an average value (a statistic based on the pixel values) of at least a part of the composite image and a pixel value of at least a part of the low-sensitivity image corresponding to the at least part of the composite image The pixel value of the composite image is corrected so that the average value (statistics based on the pixel value) of the image is substantially the same. The gradation characteristics and color reproduction characteristics of the composite image are corrected according to the gradation characteristics and color reproduction characteristics of the low-sensitivity image captured in the area where the linearity characteristic of the image sensor is good, so that the floor caused by the short exposure time. It is possible to correct a deterioration in tone characteristics and color reproduction characteristics and obtain a composite image with favorable gradation characteristics and color reproduction characteristics. In particular, since the average value of the pixel values is used as the statistic, it is possible to obtain a composite image with favorable gradation characteristics and color reproduction characteristics with a small amount of calculation compared to the case where the cumulative histogram is used as the statistic.

また、合成画像の各画素に対して補正値を乗算することによって、合成画像の画素値を補正するので、高感度撮影と低感度撮影で一定のゲインによる誤差が発生する場合において、効果的に階調特性や色再現特性が良好な合成画像を得ることができる。   In addition, since the pixel value of the composite image is corrected by multiplying each pixel of the composite image by the correction value, it is effective when an error due to a certain gain occurs in high-sensitivity shooting and low-sensitivity shooting. A composite image having good gradation characteristics and color reproduction characteristics can be obtained.

なお、上述した第1〜第3の実施形態の説明では、画像処理装置が行う処理としてハードウェアによる処理を前提としていたが、このような構成に限定される必要はない。例えば、コンピュータにてソフトウェア処理を行う構成も可能である。この場合、コンピュータは、CPU、RAM等の主記憶装置、上記処理の全て或いは一部を実現させるためのプログラムが記憶されたコンピュータ読み取り可能な記憶媒体を備えている。ここでは、このプログラムを画像処理プログラムと呼ぶ。そして、CPUが上記記憶媒体に記憶されている画像処理プログラムを読み出して、情報の加工・演算処理を実行することにより、上述の画像処理装置と同様の処理を実現させる。   In the above description of the first to third embodiments, hardware processing is assumed as processing performed by the image processing apparatus, but the present invention is not limited to such a configuration. For example, a configuration in which software processing is performed by a computer is also possible. In this case, the computer includes a main storage device such as a CPU and a RAM, and a computer-readable storage medium storing a program for realizing all or part of the above processing. Here, this program is called an image processing program. The CPU reads out the image processing program stored in the storage medium and executes information processing / calculation processing, thereby realizing the same processing as that of the above-described image processing apparatus.

ここで、コンピュータ読み取り可能な記録媒体とは、磁気ディスク、光磁気ディスク、CD−ROM、DVD−ROM、半導体メモリ等をいう。また、この画像処理プログラムを通信回線によってコンピュータに配信し、この配信を受けたコンピュータが当該画像処理プログラムを実行するようにしても良い。   Here, the computer-readable recording medium refers to a magnetic disk, a magneto-optical disk, a CD-ROM, a DVD-ROM, a semiconductor memory, and the like. Alternatively, the image processing program may be distributed to a computer via a communication line, and the computer that has received the distribution may execute the image processing program.

本発明は、上記実施形態にそのまま限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で構成要素を変形して具体化できる。また、上記実施形態に開示されている複数の構成要素の適宜な組み合わせにより、種々の発明を形成できる。例えば、実施形態に示される全構成要素の幾つかの構成要素を削除してもよい。   The present invention is not limited to the above-described embodiments as they are, and can be embodied by modifying the constituent elements without departing from the scope of the invention in the implementation stage. In addition, various inventions can be formed by appropriately combining a plurality of components disclosed in the embodiment. For example, you may delete some components of all the components shown by embodiment.

101…撮像素子
103…複数枚合成処理部(画像取得部、合成部)
104、104A…階調・色補正部(画像取得部)
105…画像処理部
200…第1累積ヒストグラム計算部(第1統計量計算部)
201…第2累積ヒストグラム計算部(第2統計量計算部)
202…階調補正特性計算部(補正値計算部)
203…階調補正部(補正部)
400…第1平均値計算部(第1統計量計算部)
401…第2平均値計算部(第2統計量計算部)
402…補正値計算部(補正値計算部)
403…画素値補正部(補正部)
101 ... Image sensor 103 ... Multiple sheet composition processing unit (image acquisition unit, composition unit)
104, 104A: gradation / color correction unit (image acquisition unit)
105 Image processing unit 200 First cumulative histogram calculation unit (first statistic calculation unit)
201 ... 2nd cumulative histogram calculation part (2nd statistic calculation part)
202 ... gradation correction characteristic calculation unit (correction value calculation unit)
203 ... gradation correction unit (correction unit)
400 ... 1st average value calculation part (1st statistic calculation part)
401 ... 2nd average value calculation part (2nd statistic calculation part)
402: Correction value calculation unit (correction value calculation unit)
403 ... Pixel value correction unit (correction unit)

Claims (8)

第1の露光時間に基づいて撮影された複数枚の高感度画像を取得するとともに、前記第1の露光時間よりも長い第2の露光時間に基づいて撮影された少なくとも1枚の低感度画像を取得する画像取得部と、
前記複数枚の高感度画像を合成することによって、合成画像を生成する合成部と、
前記合成画像の少なくとも一部の領域の画素値に基づく統計量を計算する第1統計量計算部と、
前記合成画像の少なくとも一部の領域に対応する、前記低感度画像の少なくとも一部の領域の画素値に基づく統計量を計算する第2統計量計算部と、
前記第1統計量計算部によって計算される統計量を、前記第2統計量計算部によって計算される統計量により近づけるように、前記合成画像の画素値を補正する補正部と、
を備えることを特徴とする画像処理装置。
A plurality of high-sensitivity images photographed based on the first exposure time are acquired, and at least one low-sensitivity image photographed based on the second exposure time longer than the first exposure time is obtained. An image acquisition unit to acquire;
Combining a plurality of high-sensitivity images to generate a combined image; and
A first statistic calculator that calculates a statistic based on pixel values of at least a partial region of the composite image;
A second statistic calculator that calculates a statistic based on a pixel value of at least a partial area of the low-sensitivity image corresponding to at least a partial area of the composite image;
A correction unit that corrects the pixel value of the composite image so that the statistic calculated by the first statistic calculation unit is closer to the statistic calculated by the second statistic calculation unit;
An image processing apparatus comprising:
前記第1統計量計算部は、前記統計量として、前記合成画像の各画素値の頻度の累積値を表す累積ヒストグラムを計算し、
前記第2統計量計算部は、前記統計量として、前記低感度画像の各画素値の頻度の累積値を表す累積ヒストグラムを計算する、
ことを特徴とする請求項1に記載の画像処理装置。
The first statistic calculator calculates a cumulative histogram representing a cumulative value of the frequency of each pixel value of the composite image as the statistic,
The second statistic calculation unit calculates a cumulative histogram representing a cumulative value of the frequency of each pixel value of the low sensitivity image as the statistic.
The image processing apparatus according to claim 1.
前記補正部は、前記第1統計量計算部によって計算される累積ヒストグラムと前記第2統計量計算部によって計算される累積ヒストグラムとに基づいて決定される階調変換特性に基づいて、合成画像の画素に対して階調変換処理を行うことによって、前記合成画像の画素値を補正する、
ことを特徴とする請求項2に記載の画像処理装置。
The correction unit is configured to generate a composite image based on a gradation conversion characteristic determined based on a cumulative histogram calculated by the first statistic calculator and a cumulative histogram calculated by the second statistic calculator. Correcting the pixel value of the composite image by performing gradation conversion processing on the pixel;
The image processing apparatus according to claim 2.
前記第1統計量計算部は、前記統計量として、前記合成画像の画素値の平均値を計算し、
前記第2統計量計算部は、前記統計量として、前記低感度画像の画素値の平均値を計算する、
ことを特徴とする請求項1に記載の画像処理装置。
The first statistic calculator calculates an average value of pixel values of the composite image as the statistic,
The second statistic calculator calculates an average value of pixel values of the low-sensitivity image as the statistic.
The image processing apparatus according to claim 1.
前記第1統計量計算部によって計算される画素値の平均値を、前記第2統計量計算部によって計算される画素値の平均値により近づけるための補正値を計算する補正値計算部をさらに備え、
前記補正部は、前記合成画像の画素の画素値に対して前記補正値を加算または減算することによって、前記合成画像の画素値を補正する、
ことを特徴とする請求項4に記載の画像処理装置。
A correction value calculation unit that calculates a correction value for bringing the average value of the pixel values calculated by the first statistic calculation unit closer to the average value of the pixel values calculated by the second statistic calculation unit; ,
The correction unit corrects the pixel value of the composite image by adding or subtracting the correction value to the pixel value of the pixel of the composite image.
The image processing apparatus according to claim 4.
前記第1統計量計算部によって計算される画素値の平均値を、前記第2統計量計算部によって計算される画素値の平均値により近づけるための補正値を計算する補正値計算部をさらに備え、
前記補正部は、前記合成画像の画素の画素値に対して前記補正値を乗算または除算することによって、前記合成画像の画素値を補正する、
ことを特徴とする請求項4に記載の画像処理装置。
A correction value calculation unit that calculates a correction value for bringing the average value of the pixel values calculated by the first statistic calculation unit closer to the average value of the pixel values calculated by the second statistic calculation unit; ,
The correction unit corrects the pixel value of the composite image by multiplying or dividing the pixel value of the pixel of the composite image by the correction value;
The image processing apparatus according to claim 4.
第1の露光時間に基づいて撮影された複数枚の高感度画像を取得するとともに、前記第1の露光時間よりも長い第2の露光時間に基づいて撮影された少なくとも1枚の低感度画像を取得するステップと、
前記複数枚の高感度画像を合成することによって、合成画像を生成するステップと、
前記合成画像の少なくとも一部の領域の画素値に基づく統計量を計算するステップと、
前記合成画像の少なくとも一部の領域に対応する、前記低感度画像の少なくとも一部の領域の画素値に基づく統計量を計算するステップと、
前記合成画像の少なくとも一部の領域の画素値に基づく統計量を、前記低感度画像の少なくとも一部の領域の画素値に基づく統計量により近づけるように、前記合成画像の画素値を補正するステップと、
を有することを特徴とする画像処理方法。
A plurality of high-sensitivity images photographed based on the first exposure time are acquired, and at least one low-sensitivity image photographed based on the second exposure time longer than the first exposure time is obtained. A step to obtain,
Generating a composite image by combining the plurality of high-sensitivity images; and
Calculating a statistic based on pixel values of at least a portion of the composite image;
Calculating a statistic based on pixel values of at least a portion of the low sensitivity image corresponding to at least a portion of the composite image;
Correcting a pixel value of the composite image so that a statistic based on a pixel value of at least a partial region of the composite image is closer to a statistic based on a pixel value of at least a partial region of the low-sensitivity image. When,
An image processing method comprising:
第1の露光時間に基づいて撮影された複数枚の高感度画像を取得するとともに、前記第1の露光時間よりも長い第2の露光時間に基づいて撮影された少なくとも1枚の低感度画像を取得するステップと、
前記複数枚の高感度画像を合成することによって、合成画像を生成するステップと、
前記合成画像の少なくとも一部の領域の画素値に基づく統計量を計算するステップと、
前記合成画像の少なくとも一部の領域に対応する、前記低感度画像の少なくとも一部の領域の画素値に基づく統計量を計算するステップと、
前記合成画像の少なくとも一部の領域の画素値に基づく統計量を、前記低感度画像の少なくとも一部の領域の画素値に基づく統計量により近づけるように、前記合成画像の画素値を補正するステップと、
をコンピュータに実行させるための画像処理プログラム。
A plurality of high-sensitivity images photographed based on the first exposure time are acquired, and at least one low-sensitivity image photographed based on the second exposure time longer than the first exposure time is obtained. A step to obtain,
Generating a composite image by combining the plurality of high-sensitivity images; and
Calculating a statistic based on pixel values of at least a portion of the composite image;
Calculating a statistic based on pixel values of at least a portion of the low sensitivity image corresponding to at least a portion of the composite image;
Correcting a pixel value of the composite image so that a statistic based on a pixel value of at least a partial region of the composite image is closer to a statistic based on a pixel value of at least a partial region of the low-sensitivity image. When,
An image processing program for causing a computer to execute.
JP2011207378A 2011-09-22 2011-09-22 Image processing apparatus, image processing method, and image processing program Withdrawn JP2013070241A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011207378A JP2013070241A (en) 2011-09-22 2011-09-22 Image processing apparatus, image processing method, and image processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011207378A JP2013070241A (en) 2011-09-22 2011-09-22 Image processing apparatus, image processing method, and image processing program

Publications (1)

Publication Number Publication Date
JP2013070241A true JP2013070241A (en) 2013-04-18

Family

ID=48475425

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011207378A Withdrawn JP2013070241A (en) 2011-09-22 2011-09-22 Image processing apparatus, image processing method, and image processing program

Country Status (1)

Country Link
JP (1) JP2013070241A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016095720A (en) * 2014-11-14 2016-05-26 キヤノン株式会社 Image processor and image processing method
JP2016167681A (en) * 2015-03-09 2016-09-15 オムロン株式会社 Image generation apparatus and image generation method
JP2019012400A (en) * 2017-06-30 2019-01-24 三菱スペース・ソフトウエア株式会社 Image comparison device image comparison program, and image comparison method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016095720A (en) * 2014-11-14 2016-05-26 キヤノン株式会社 Image processor and image processing method
JP2016167681A (en) * 2015-03-09 2016-09-15 オムロン株式会社 Image generation apparatus and image generation method
JP2019012400A (en) * 2017-06-30 2019-01-24 三菱スペース・ソフトウエア株式会社 Image comparison device image comparison program, and image comparison method
JP2022000829A (en) * 2017-06-30 2022-01-04 三菱スペース・ソフトウエア株式会社 Image comparing apparatus, image comparing program, and image comparing method
JP7198896B2 (en) 2017-06-30 2023-01-04 三菱電機ソフトウエア株式会社 Image comparison device, image comparison program and image comparison method

Similar Documents

Publication Publication Date Title
US8175378B2 (en) Method and system for noise management for spatial processing in digital image/video capture systems
JP6020199B2 (en) Image processing apparatus, method, program, and imaging apparatus
US8319843B2 (en) Image processing apparatus and method for blur correction
US8982232B2 (en) Image processing apparatus and image processing method
US8872937B2 (en) Image capture apparatus and image capturing method
JP5744614B2 (en) Image processing apparatus, image processing method, and image processing program
JP6312487B2 (en) Image processing apparatus, control method therefor, and program
JP5060447B2 (en) Noise cancellation processing circuit and solid-state imaging device
JP5561112B2 (en) Image processing apparatus, imaging apparatus, and program
US9185265B2 (en) Image processing method and image processing apparatus for performing a tone correction to acquire a combined image
US11838649B2 (en) Image capturing device and control method thereof and medium
JP5782311B2 (en) Imaging apparatus and control method thereof
JP2013135343A (en) Imaging device
JP2013070241A (en) Image processing apparatus, image processing method, and image processing program
KR101306780B1 (en) Apparatus for estimating global motion between images in hdr image system and method thereof
US20230096541A1 (en) Image processing apparatus and image processing method
JP2009049575A (en) Image processing device, image processing method, and program
JP2009302960A (en) Video signal processing apparatus, program and method
JP2014158165A (en) Image processing device, image processing method, and program
JP2002112108A (en) Image processing unit
JP2012160852A (en) Image composition device, imaging device, image composition method, and image composition program
JP5147912B2 (en) Image processing method, image processing apparatus, program, and recording medium
JP2012065069A (en) Defect detection and compensation apparatus, program and storage medium
JP2018026743A (en) Image processor, control method, and program
JP2023064501A (en) Image processing device and image processing method

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20141202