JP2007028088A - Imaging apparatus and image processing method - Google Patents

Imaging apparatus and image processing method Download PDF

Info

Publication number
JP2007028088A
JP2007028088A JP2005205952A JP2005205952A JP2007028088A JP 2007028088 A JP2007028088 A JP 2007028088A JP 2005205952 A JP2005205952 A JP 2005205952A JP 2005205952 A JP2005205952 A JP 2005205952A JP 2007028088 A JP2007028088 A JP 2007028088A
Authority
JP
Japan
Prior art keywords
compression
image
illumination component
luminance
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2005205952A
Other languages
Japanese (ja)
Inventor
Tetsuya Katagiri
哲也 片桐
Kazumutsu Sato
一睦 佐藤
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.)
Konica Minolta Inc
Original Assignee
Konica Minolta Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Konica Minolta Inc filed Critical Konica Minolta Inc
Priority to JP2005205952A priority Critical patent/JP2007028088A/en
Publication of JP2007028088A publication Critical patent/JP2007028088A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To increase lightness difference of an illumination component at a required part of an image, in dodging processing. <P>SOLUTION: An imaging means images an object light; an illumination component extracting means extracts an illumination component from a photographed image by the imaging means; a reflectance component extract means extracts reflectance component from the photographed image; a compression characteristic setting means sets at least two prescribed regions, with respect to the photographed image, sets a compression characteristics for emphasizing the lightness difference between the regions; a compression means compresses the dynamic range of the illumination component, on the basis of the compression characteristics set by the compression characteristics setting means; and an image generating means generates a new image, on the basis of the compressed illumination component whose dynamic range has been compressed and of the reflectance component. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、デジタルカメラ等の撮像装置、特に、ダイナミックレンジ圧縮機能を有する撮像装置及びこれに適用され得る画像処理方法に関するものである。   The present invention relates to an imaging apparatus such as a digital camera, and more particularly to an imaging apparatus having a dynamic range compression function and an image processing method that can be applied to the imaging apparatus.

近年、デジタルカメラ等の撮像装置においては、高画質化の要請に伴い、撮像センサが扱うことのできる被写体の輝度範囲、すなわちダイナミックレンジ(DR)を拡大させることが1つの大きなテーマとなっている。ダイナミックレンジの拡大に関し、例えばMOSFETのサブスレッショルド特性を利用することで、高輝度側の出力特性を入射光量に応じて電気信号が対数的に変換される特性を有する撮像センサ、すなわち線形特性領域及び対数特性領域からなる光電変換特性を有する撮像センサ(リニアログセンサという)が知られている。リニアログセンサは、上述のように入射光量に対して自然対数的に変換された出力が得られることから、線形特性領域だけの光電変換特性を有する撮像センサと比べてより広いダイナミックレンジが確保される。   2. Description of the Related Art In recent years, in an imaging apparatus such as a digital camera, with the demand for higher image quality, it has become a major theme to expand the luminance range of a subject that can be handled by an imaging sensor, that is, the dynamic range (DR). . Regarding the expansion of the dynamic range, for example, by utilizing the sub-threshold characteristic of the MOSFET, an imaging sensor having a characteristic in which an electrical signal is logarithmically converted according to an incident light quantity, that is, an output characteristic on the high luminance side, that is, a linear characteristic region and An imaging sensor (referred to as a linear log sensor) having a photoelectric conversion characteristic composed of a logarithmic characteristic region is known. As described above, the linear log sensor can obtain a natural logarithmically converted output with respect to the amount of incident light, so that a wider dynamic range is ensured compared to an imaging sensor having photoelectric conversion characteristics only in the linear characteristic region. The

上記リニアログセンサのように撮像系の広ダイナミックレンジ化が進む一方、現状ではモニタ等の表示系の広ダイナミックレンジ化は撮像系ほど進んでおらず、たとえ入力画像の広ダイナミックレンジ化が図られたとしても、表示系においてその効果を充分に発揮できないことになる。したがって、広ダイナミックレンジの入力画像が表示系のダイナミックレンジに収まるように該入力画像のダイナミックレンジを圧縮させる必要がある。   While the wide dynamic range of the imaging system is increasing like the above linear log sensor, at present, the wide dynamic range of the display system such as a monitor is not progressing as much as the imaging system, and even if the input image has a wide dynamic range. Even if it is, the effect cannot be sufficiently exhibited in the display system. Therefore, it is necessary to compress the dynamic range of the input image so that the input image with a wide dynamic range falls within the dynamic range of the display system.

ところで、“ダイナミックレンジの圧縮”には、局所的に画像の明暗を調整する、すなわち画像の照明成分を圧縮することでコントラスト(階調)を向上させる意味と、画像全体の明暗の関係をそのまま維持した状態で、文字通り、帯域(ダイナミックレンジ)を圧縮する(局所的な明暗調整とは無関係に画像を一律に圧縮する)意味との2つの意味があるが、これらを区別するべく、前者を「覆い焼き処理」、後者を「DR圧縮」と称するものとする。   By the way, in “dynamic range compression”, the relationship between the meaning of adjusting the contrast of the image locally, that is, improving the contrast (gradation) by compressing the illumination component of the image, and the contrast of the entire image as it is. There are two meanings of literally compressing the band (dynamic range) while maintaining the state (compressing the image uniformly regardless of local contrast adjustment). In order to distinguish these, “Dodge processing” is referred to as “DR compression”.

従来、覆い焼き処理では、例えば画像から照明成分を抽出し(このとき反射率成分も抽出する)、この照明成分をDR圧縮した後、当該DR圧縮された照明成分と反射率成分とから上記局所的に画像の明暗が調整された新たな画像を生成する。これに関し、例えば特許文献1に開示されている技術では、図12に示すように、リニアログセンサにより得られた線形特性及び対数特性の光電変換特性を有する画像(以降、線形/対数画像という)を、ログ画像I1とリニア画像I2とに分割抽出し、それぞれの画像で覆い焼き処理を行った後、これらの画像を合成する。この合成画像を図13に示す画像I’とすると、この画像I’が出力画像(例えば上記表示系)のダイナミックレンジに収まるように入力画像すなわち上記線形/対数画像としての元画像Iに対するDR圧縮が行われる。
特願2004−377875号
Conventionally, in the dodging process, for example, an illumination component is extracted from an image (a reflectance component is also extracted at this time), and after this illumination component is DR-compressed, the local component is extracted from the DR-compressed illumination component and reflectance component. Thus, a new image in which the contrast of the image is adjusted is generated. In this regard, for example, in the technique disclosed in Patent Document 1, as shown in FIG. 12, an image having a photoelectric conversion characteristic of a linear characteristic and a logarithmic characteristic obtained by a linear log sensor (hereinafter referred to as a linear / logarithmic image). Are divided and extracted into a log image I1 and a linear image I2, and dodging is performed on each image, and then these images are combined. When this synthesized image is an image I ′ shown in FIG. 13, DR compression is performed on the input image, that is, the original image I as the linear / logarithmic image so that the image I ′ falls within the dynamic range of the output image (for example, the display system). Is done.
Japanese Patent Application No. 2004-377875

しかしながら、上記特許文献1に示す技術では、照明成分の全輝度レベルを一律に圧縮しているため、照明成分の明暗差が縮まり、すなわち、例えば図14に示すように画像の建物141の部分のコントラストを向上させようとする覆い焼き処理によって、例えば空142と雲143の部分との明度差が小さくなり(空142及び雲143全体が所謂白飛びしたような画像となり)、画像全体でのコントラストが低下した所謂メリハリの少ない薄っぺらい画像(絵)となってしまう。これは、図15に示すように、或る画像について例えば約2倍の輝度差(想定される画素値の差D1)を有する輝度A、B(被写体A、B)で見た場合、照明成分の圧縮により、この輝度A、Bにおける画素値A’、B’の差D2が小さくなってしまうことによる。   However, in the technique shown in Patent Document 1, since the entire luminance level of the illumination component is uniformly compressed, the brightness difference of the illumination component is reduced, that is, for example, as shown in FIG. By the dodging process for improving the contrast, for example, the brightness difference between the sky 142 and the cloud 143 is reduced (the sky 142 and the entire cloud 143 are so-called white-out images), and the contrast of the entire image is increased. This results in a so-called thin image (picture) with less sharpness. As shown in FIG. 15, when an image is viewed with luminance A and B (subjects A and B) having a luminance difference of about twice (an assumed pixel value difference D1), for example, an illumination component This is because the difference D2 between the pixel values A ′ and B ′ at the luminances A and B becomes small due to the compression of.

本発明は、上記事情に鑑みてなされたもので、覆い焼き処理において、画像の所要領域における照明成分の明度差を大きくすることができ、ひいてはメリハリの利いた自然な画像を得ることができる撮像装置及び画像処理方法を提供することを目的とする。   The present invention has been made in view of the above circumstances, and in the dodging process, it is possible to increase the brightness difference of the illumination component in the required area of the image, and thus to obtain a sharp natural image. An object is to provide an apparatus and an image processing method.

本発明の請求項1に係る撮像装置は、被写体光を撮像する撮像手段と、前記撮像手段による撮影画像から照明成分を抽出する照明成分抽出手段と、前記撮影画像から反射率成分を抽出する反射率成分抽出手段と、前記照明成分抽出手段によって抽出された照明成分のダイナミックレンジを所定の圧縮特性に基づいて圧縮する圧縮手段と、前記圧縮手段によって照明成分のダイナミックレンジが圧縮されてなる圧縮照明成分と前記反射率成分抽出手段によって抽出された反射率成分とから新たな画像を生成する画像生成手段と、前記撮影画像又は前記照明成分に対する少なくとも2つの所定の領域を設定するとともに、当該各領域間の明度差を強調する前記圧縮特性を設定する圧縮特性設定手段とを備え、前記圧縮手段は、前記圧縮特性設定手段によって設定された圧縮特性に基づいて前記照明成分のダイナミックレンジを圧縮することを特徴とする。   An imaging apparatus according to claim 1 of the present invention includes an imaging unit that images subject light, an illumination component extraction unit that extracts an illumination component from a captured image by the imaging unit, and a reflection that extracts a reflectance component from the captured image. Rate component extraction means, compression means for compressing the dynamic range of the illumination component extracted by the illumination component extraction means based on a predetermined compression characteristic, and compressed illumination in which the dynamic range of the illumination component is compressed by the compression means An image generation unit that generates a new image from the component and the reflectance component extracted by the reflectance component extraction unit, and at least two predetermined regions for the captured image or the illumination component are set, and each region Compression characteristic setting means for setting the compression characteristic that emphasizes the lightness difference between the compression characteristics, and the compression means Characterized by compressing the dynamic range of the illumination component on the basis of the compression characteristics set by.

上記構成によれば、撮像手段によって被写体光が撮像され、照明成分抽出手段によって撮像手段による撮影画像から照明成分が抽出され、反射率成分抽出手段によって撮影画像から反射率成分が抽出され、圧縮特性設定手段によって、撮影画像又は照明成分に対する少なくとも2つの所定の領域が設定されるとともに、当該各領域間の明度差を強調する圧縮特性が設定される。そして、圧縮手段によって、圧縮特性設定手段により設定された圧縮特性に基づいて上記抽出された照明成分のダイナミックレンジが圧縮され、画像生成手段によって、このダイナミックレンジが圧縮された圧縮照明成分と反射率成分とから新たな画像が生成される。   According to the above configuration, the subject light is imaged by the imaging unit, the illumination component is extracted from the photographed image by the imaging unit by the illumination component extracting unit, the reflectance component is extracted from the photographed image by the reflectance component extracting unit, and the compression characteristics The setting unit sets at least two predetermined areas for the captured image or the illumination component, and sets a compression characteristic that emphasizes the brightness difference between the areas. The dynamic range of the extracted illumination component is compressed by the compression unit based on the compression characteristic set by the compression characteristic setting unit, and the compressed illumination component and the reflectance with the dynamic range compressed by the image generation unit A new image is generated from the components.

請求項2に係る撮像装置は、請求項1において、前記圧縮特性設定手段は、圧縮特性を示す特性ラインの前記各領域に対応する部分を、傾きがゼロであり且つ互いに所定の圧縮量分だけ離間させた状態とする圧縮特性を設定することを特徴とする。この構成によれば、圧縮特性設定手段によって、圧縮特性を示す特性ラインの当該各領域に対応する部分を、傾きがゼロであり且つ互いに所定の圧縮量分だけ離間させた状態とする圧縮特性が設定される。   An imaging apparatus according to a second aspect is the imaging device according to the first aspect, wherein the compression characteristic setting means has a portion corresponding to each of the regions of the characteristic line indicating the compression characteristic with a slope of zero and a predetermined compression amount. It is characterized by setting a compression characteristic to be in a separated state. According to this configuration, the compression characteristic setting means has a compression characteristic in which the portions corresponding to the respective areas of the characteristic line indicating the compression characteristic are in a state in which the inclination is zero and they are separated from each other by a predetermined compression amount. Is set.

請求項3に係る撮像装置は、請求項1又は2において、前記撮影画像又は照明成分の輝度ヒストグラムを作成するヒストグラム作成手段をさらに備え、前記圧縮特性設定手段は、輝度ヒストグラムにおける輝度上の所定範囲を前記各領域として設定することを特徴とする。この構成によれば、ヒストグラム作成手段によって、撮影画像又は照明成分の輝度ヒストグラムが作成され、圧縮特性設定手段によって、輝度ヒストグラムにおける輝度上の所定範囲が各領域として設定される。   An imaging apparatus according to a third aspect of the present invention further includes a histogram creation unit that creates a luminance histogram of the captured image or illumination component according to the first or second aspect, wherein the compression characteristic setting unit is a predetermined range on the luminance in the luminance histogram. Is set as each of the regions. According to this configuration, the histogram creation unit creates a brightness histogram of the captured image or the illumination component, and the compression characteristic setting unit sets a predetermined range on the brightness histogram as each region.

請求項4に係る撮像装置は、請求項1〜3のいずれかにおいて、前記圧縮特性設定手段は、前記撮影画像又は前記照明成分における空間的な所定範囲を設定するとともに、該所定範囲の画像に基づいて前記各領域を設定することを特徴とする。この構成によれば、圧縮特性設定手段によって、撮影画像又は照明成分における空間的な所定範囲が設定されるとともに、該所定範囲の画像に基づいて各領域が設定される。   An imaging apparatus according to a fourth aspect of the present invention is the imaging device according to any one of the first to third aspects, wherein the compression characteristic setting unit sets a predetermined spatial range in the captured image or the illumination component, and the image in the predetermined range. Each area is set based on the above. According to this configuration, the compression characteristic setting unit sets a predetermined spatial range in the captured image or the illumination component, and sets each region based on the image in the predetermined range.

請求項5に係る撮像装置は、請求項3又は4において、前記圧縮特性設定手段は、前記輝度ヒストグラムのピークを算出し、該ピーク又はピーク近傍位置を中心とした所定範囲を前記各領域として設定することを特徴とする。この構成によれば、圧縮特性設定手段によって、輝度ヒストグラムのピークが算出され、該ピーク又はピーク近傍位置を中心とした所定範囲が各領域として設定される。   An imaging apparatus according to a fifth aspect is the imaging device according to the third or fourth aspect, wherein the compression characteristic setting unit calculates a peak of the luminance histogram, and sets a predetermined range centered on the peak or a peak vicinity position as each region. It is characterized by doing. According to this configuration, the peak of the luminance histogram is calculated by the compression characteristic setting means, and a predetermined range centered on the peak or the peak vicinity position is set as each region.

請求項6に係る撮像装置は、請求項1〜5のいずれかにおいて、前記照明成分に対する、主被写体の所定輝度値を示す主被写体輝度以上の第1レベル値を設定する第1レベル値設定手段と、前記照明成分に対する、前記反射率成分の高輝度領域における反射率に応じた所定の画像出力最大値以下の第2レベル値を設定する第2レベル値設定手段とをさらに備え、前記圧縮特性設定手段は、前記各領域のうちの低輝度側の所定領域を前記第1レベル値と同レベルとし、高輝度側の所定領域を前記第2レベル値と同レベルとする圧縮特性を設定することを特徴とする。この構成によれば、第1レベル値設定手段によって、照明成分に対する、主被写体の所定輝度値を示す主被写体輝度以上の第1レベル値が設定され、第2レベル値設定手段によって、照明成分に対する、反射率成分の高輝度領域における反射率に応じた所定の画像出力最大値以下の第2レベル値が設定される。そして、圧縮特性設定手段によって、各領域のうちの低輝度側の所定領域を第1レベル値と同レベルとし、高輝度側の所定領域を第2レベル値と同レベルとする圧縮特性が設定される。   According to a sixth aspect of the present invention, there is provided an imaging apparatus according to any one of the first to fifth aspects, wherein the first level value setting means sets a first level value equal to or higher than a main subject luminance indicating a predetermined luminance value of the main subject for the illumination component. And a second level value setting means for setting a second level value that is equal to or less than a predetermined maximum image output value corresponding to the reflectance of the reflectance component in a high luminance region of the illumination component, and the compression characteristic. The setting means sets a compression characteristic in which a predetermined area on the low luminance side of each area is set to the same level as the first level value, and a predetermined area on the high luminance side is set to the same level as the second level value. It is characterized by. According to this configuration, the first level value setting unit sets a first level value equal to or higher than the main subject luminance indicating the predetermined luminance value of the main subject for the illumination component, and the second level value setting unit sets the first level value for the illumination component. A second level value equal to or lower than a predetermined maximum image output value is set according to the reflectance in the high luminance region of the reflectance component. Then, the compression characteristic setting means sets a compression characteristic in which a predetermined area on the low luminance side of each area is set to the same level as the first level value, and a predetermined area on the high luminance side is set to the same level as the second level value. The

請求項7に係る画像処理方法は、被写体光を撮像手段によって撮像する第1の工程と、前記撮像手段による撮影画像から照明成分抽出手段によって照明成分を抽出する第2の工程と、前記撮影画像から反射率成分抽出手段によって反射率成分を抽出する第3の工程と、前記照明成分抽出手段により抽出された照明成分のダイナミックレンジを圧縮手段によって所定の圧縮特性に基づいて圧縮する第4の工程と、前記圧縮手段により照明成分のダイナミックレンジが圧縮されてなる圧縮照明成分と前記反射率成分抽出手段により抽出された反射率成分とから画像生成手段によって新たな画像を生成する第5の工程と、前記撮影画像又は前記照明成分に対する少なくとも2つの所定の領域を設定するとともに、当該各領域間の明度差を強調する前記圧縮特性を圧縮特性設定手段によって設定する第6の工程とを有し、前記第4の工程は、圧縮手段によって、前記圧縮特性設定手段により設定された圧縮特性に基づいて前記照明成分のダイナミックレンジを圧縮する工程であることを特徴とする。   An image processing method according to a seventh aspect includes a first step of imaging subject light by an imaging unit, a second step of extracting an illumination component from an image captured by the imaging unit by an illumination component extraction unit, and the captured image. And a fourth step of compressing the dynamic range of the illumination component extracted by the illumination component extraction unit based on a predetermined compression characteristic by the compression unit. And a fifth step of generating a new image by the image generation means from the compressed illumination component obtained by compressing the dynamic range of the illumination component by the compression means and the reflectance component extracted by the reflectance component extraction means; Before setting at least two predetermined areas for the captured image or the illumination component and emphasizing the brightness difference between the areas. A sixth step of setting a compression characteristic by a compression characteristic setting unit, and the fourth step includes a dynamic range of the illumination component based on the compression characteristic set by the compression characteristic setting unit by the compression unit. It is the process of compressing.

上記構成によれば、第1の工程において、撮像手段によって被写体光が撮像され、第2の工程において、照明成分抽出手段によって撮像手段による撮影画像から照明成分が抽出され、第3の工程において、反射率成分抽出手段によって撮影画像から反射率成分が抽出され、第6の工程において、圧縮特性設定手段によって、撮影画像又は照明成分に対する少なくとも2つの所定の領域(後述の被写体輝度エリア)が設定されるとともに、当該各領域間の明度差を強調する圧縮特性が設定される。そして、第4の工程において、圧縮手段によって、圧縮特性設定手段により設定された圧縮特性に基づいて上記抽出された照明成分のダイナミックレンジが圧縮され、第5の工程において、画像生成手段によって、このダイナミックレンジが圧縮された圧縮照明成分と反射率成分とから新たな画像が生成される。   According to the above configuration, in the first step, the subject light is imaged by the imaging unit, and in the second step, the illumination component is extracted from the photographed image by the imaging unit by the illumination component extraction unit, and in the third step, The reflectance component is extracted from the photographed image by the reflectance component extracting means, and in the sixth step, at least two predetermined areas (subject luminance areas described later) are set by the compression characteristic setting means for the photographed image or the illumination component. In addition, a compression characteristic that emphasizes the difference in brightness between the areas is set. In the fourth step, the dynamic range of the extracted illumination component is compressed by the compression unit based on the compression characteristic set by the compression characteristic setting unit. In the fifth step, the dynamic range of the extracted illumination component is compressed by the image generation unit. A new image is generated from the compressed illumination component and the reflectance component whose dynamic range is compressed.

請求項8に係る画像処理方法は、請求項7において、前記第6の工程は、圧縮特性設定手段によって、圧縮特性を示す特性ラインの前記各領域に対応する部分を、傾きがゼロであり且つ互いに所定の圧縮量分だけ離間させた状態とする圧縮特性を設定する工程であることを特徴とする。この構成によれば、第6の工程において、圧縮特性設定手段によって、圧縮特性を示す特性ラインの前記各領域に対応する部分を、傾きがゼロであり且つ互いに所定の圧縮量分だけ離間させた状態とする圧縮特性が設定される。   An image processing method according to an eighth aspect of the present invention is the image processing method according to the seventh aspect, wherein in the sixth step, the portion corresponding to each area of the characteristic line indicating the compression characteristic is zero-gradient by the compression characteristic setting unit. It is a step of setting compression characteristics that are separated from each other by a predetermined compression amount. According to this configuration, in the sixth step, the compression characteristic setting means causes the portions corresponding to the respective areas of the characteristic line indicating the compression characteristic to be separated from each other by a predetermined compression amount with a zero inclination. The compression characteristic to be set is set.

請求項9に係る画像処理方法は、請求項7又は8において、前記撮影画像又は照明成分の輝度ヒストグラムをヒストグラム作成手段によって作成する第7の工程をさらに有し、前記第6の工程は、圧縮特性設定手段によって、輝度ヒストグラムにおける輝度上の所定範囲を前記各領域として設定する工程であることを特徴とする。この構成によれば、第7の工程において、撮影画像又は照明成分の輝度ヒストグラムがヒストグラム作成手段によって作成され、第6の工程において、圧縮特性設定手段によって、輝度ヒストグラムにおける輝度上の所定範囲が各領域として設定される。   The image processing method according to claim 9 further includes a seventh step of creating a luminance histogram of the photographed image or the illumination component by a histogram creation means according to claim 7 or 8, wherein the sixth step is a compression step. The characteristic setting means is a step of setting a predetermined range on the luminance in the luminance histogram as each region. According to this configuration, in the seventh step, a luminance histogram of the captured image or the illumination component is created by the histogram creating unit, and in the sixth step, the predetermined range on the luminance in the luminance histogram is set by the compression characteristic setting unit. Set as an area.

請求項1に係る撮像装置によれば、撮影画像又は照明成分に対して設定された少なくとも2つの所定領域間の明度差を強調する圧縮特性が設定され、この圧縮特性に基づいて照明成分のダイナミックレンジが圧縮されるので、覆い焼き処理において、画像の所要領域における照明成分の明度差を大きくすることができ、ひいてはメリハリの利いた自然な画像を得ることができる。   According to the imaging apparatus of the first aspect, the compression characteristic that enhances the brightness difference between at least two predetermined areas set for the captured image or the illumination component is set, and the dynamic of the illumination component is based on the compression characteristic. Since the range is compressed, in the dodging process, it is possible to increase the brightness difference of the illumination component in the required area of the image, and thus to obtain a sharp natural image.

請求項2に係る撮像装置によれば、各領域の傾きをゼロとし且つ互いに所定の圧縮量分だけ離間させた状態とする方法で圧縮特性が設定されるので、所定領域間の明度差が強調される圧縮特性を容易に得ることができる。   According to the imaging device of the second aspect, since the compression characteristics are set by a method in which the slopes of the respective regions are set to be zero and are separated from each other by a predetermined compression amount, the brightness difference between the predetermined regions is emphasized. Compression characteristics can be easily obtained.

請求項3に係る撮像装置によれば、輝度ヒストグラムにおける輝度上の所定範囲が各領域として設定されるので、画像を処理する際に一般的に作成される輝度ヒストグラムを用いて、当該各領域の設定を容易に行うことができる。   According to the imaging apparatus of the third aspect, since the predetermined range on the luminance in the luminance histogram is set as each region, the luminance histogram generally created when processing an image is used to Setting can be performed easily.

請求項4に係る撮像装置によれば、撮影画像又は照明成分における空間的な所定範囲が各領域として設定されるので、例えば、モニタ表示された撮影画像(又は照明成分画像)に対してユーザが所定範囲を指定することで各領域の設定を行うといったことが可能となり、画像における明度差を強調させたい箇所(各領域)の選択を、視覚的(直感的)に容易に行えるようになる。   According to the imaging device according to the fourth aspect, since a predetermined spatial range in the captured image or the illumination component is set as each region, for example, the user can perform an operation on the captured image (or illumination component image) displayed on the monitor. By designating a predetermined range, it becomes possible to set each area, and it becomes possible to visually (intuitively) easily select a location (each area) where the brightness difference in the image is to be emphasized.

請求項5に係る撮像装置によれば、輝度ヒストグラムのピーク又はピーク近傍位置を中心とした所定範囲を各領域として設定する方法によって、輝度ヒストグラムを用いた各領域の設定を容易に行うことができる。   According to the imaging device of the fifth aspect, it is possible to easily set each region using the luminance histogram by using a method in which a predetermined range centered on the peak of the luminance histogram or a position near the peak is set as each region. .

請求項6に係る撮像装置によれば、各領域のうちの低輝度側の所定領域を第1レベル値と同レベルとし、高輝度側の所定領域を第2レベル値と同レベルとする圧縮特性を設定する方法によって、各領域間の明度差が強調される圧縮特性の設定を容易に行うことができる。   According to the imaging device of the sixth aspect, the compression characteristic in which the predetermined area on the low luminance side of each area is set to the same level as the first level value, and the predetermined area on the high luminance side is set to the same level as the second level value. By the method of setting the compression characteristic, it is possible to easily set the compression characteristic that emphasizes the brightness difference between the regions.

請求項7に係る画像処理方法によれば、撮影画像又は照明成分に対して設定された少なくとも2つの所定領域間の明度差を強調する圧縮特性が設定され、この圧縮特性に基づいて照明成分のダイナミックレンジが圧縮されるので、覆い焼き処理において、画像の所要領域における照明成分の明度差を大きくすることができ、ひいてはメリハリの利いた自然な画像を得ることができる。   According to the image processing method of the seventh aspect, the compression characteristic that emphasizes the lightness difference between at least two predetermined regions set for the captured image or the illumination component is set, and the illumination component based on the compression characteristic is set. Since the dynamic range is compressed, in the dodging process, it is possible to increase the brightness difference of the illumination components in the required area of the image, and thus to obtain a sharp natural image.

請求項8に係る画像処理方法によれば、各領域の傾きをゼロとし且つ互いに所定の圧縮量分だけ離間させた状態とする方法で圧縮特性が設定されるので、所定領域間の明度差が強調される圧縮特性を容易に得ることができる。   According to the image processing method of the eighth aspect, the compression characteristics are set by a method in which the slopes of the respective regions are set to be zero and are separated from each other by a predetermined compression amount. The emphasized compression characteristic can be easily obtained.

請求項9に係る画像処理方法によれば、輝度ヒストグラムにおける輝度上の所定範囲が各領域として設定されるので、画像を処理する際に一般的に作成される輝度ヒストグラムを用いて、当該各領域の設定を容易に行うことができる。   According to the image processing method of the ninth aspect, since a predetermined range on the luminance histogram is set as each region, each region is used by using a luminance histogram that is generally created when an image is processed. Can be easily set.

図1は、本実施形態に係る撮像装置の一例であるデジタルカメラを示し、このデジタルカメラの主に撮像処理に関する概略的なブロック構成図を示している。図1に示すようにデジタルカメラ1は、レンズ部2、撮像センサ3、アンプ4、A/D変換部5、画像処理部6、画像メモリ7、制御部8、モニタ部9及び操作部10を備えている。   FIG. 1 shows a digital camera which is an example of an imaging apparatus according to the present embodiment, and a schematic block configuration diagram mainly relating to imaging processing of the digital camera. As shown in FIG. 1, the digital camera 1 includes a lens unit 2, an image sensor 3, an amplifier 4, an A / D conversion unit 5, an image processing unit 6, an image memory 7, a control unit 8, a monitor unit 9, and an operation unit 10. I have.

レンズ部2は、被写体光(光像)を取り込むレンズ窓として機能するとともに、この被写体光をカメラ本体の内部に配置されている撮像センサ3へ導くための光学レンズ系(被写体光の光軸Lに沿って直列的に配置される例えばズームレンズやフォーカスレンズ、その他の固定レンズブロック)を構成するものである。レンズ部2は、当該レンズの透過光量を調節するための絞り(図略)やシャッタ(図略)を備えており、制御部8によってこの絞りやシャッタの駆動制御がなされる構成となっている。   The lens unit 2 functions as a lens window for capturing subject light (light image), and an optical lens system (optical axis L of the subject light) for guiding the subject light to the imaging sensor 3 disposed inside the camera body. For example, a zoom lens, a focus lens, and other fixed lens blocks) that are arranged in series. The lens unit 2 includes a diaphragm (not shown) and a shutter (not shown) for adjusting the amount of light transmitted through the lens, and the control unit 8 controls the driving of the diaphragm and the shutter. .

撮像センサ3は、レンズ部2において結像された被写体光像の光量に応じ、R、G、B各成分の画像信号に光電変換して後段のアンプ4へ出力するものである。本実施形態においては、撮像センサ3として、センサ入射輝度が低い場合(暗時)に出力画素信号(光電変換により発生する出力電気信号)が線形的に変換されて出力される線形特性領域と、センサ入射輝度が高い場合(明時)に出力画素信号が対数的に変換されて出力される対数特性領域とからなる光電変換特性、換言すれば低輝度側が線形、高輝度側が対数の光電変換特性を有する対数変換型固体撮像素子が用いられる。なお、この光電変換特性の線形特性領域と対数特性領域との切り替り点(以降、変曲点という)は、撮像センサ3の各画素回路に対する所定の制御信号により任意に制御可能とされている。   The image sensor 3 performs photoelectric conversion into image signals of R, G, and B components according to the amount of light of the subject light image formed by the lens unit 2 and outputs the image signal to the subsequent amplifier 4. In the present embodiment, as the imaging sensor 3, a linear characteristic region in which an output pixel signal (an output electrical signal generated by photoelectric conversion) is linearly converted and output when the sensor incident luminance is low (in the dark), Photoelectric conversion characteristics consisting of a logarithmic characteristic area that is output logarithmically when the output pixel signal is converted logarithmically when the sensor incident luminance is high (during light), in other words, the low luminance side is linear and the high luminance side is logarithmic A logarithmic conversion type solid-state imaging device having the following is used. Note that the switching point (hereinafter referred to as an inflection point) between the linear characteristic region and the logarithmic characteristic region of the photoelectric conversion characteristic can be arbitrarily controlled by a predetermined control signal for each pixel circuit of the image sensor 3. .

具体的には、撮像センサ3は例えばフォトダイオード等の光電変換素子をマトリクス状に配置してなる固体撮像素子に、P型又はN型のMOSFET等を備えた対数変換回路を付加し、MOSFETのサブスレッショルド特性を利用することで、固体撮像素子の出力特性を入射光量に対して電気信号が対数的に変換されるようにした所謂CMOSイメージセンサが採用される。但し、CMOSイメージセンサに限らず、VMISイメージセンサやCCDイメージセンサ等であってもよい。   Specifically, the imaging sensor 3 adds a logarithmic conversion circuit including a P-type or N-type MOSFET to a solid-state imaging device in which photoelectric conversion elements such as photodiodes are arranged in a matrix. A so-called CMOS image sensor in which an electrical signal is logarithmically converted with respect to an incident light amount by using the sub-threshold characteristic is employed. However, it is not limited to a CMOS image sensor, and may be a VMIS image sensor, a CCD image sensor, or the like.

アンプ4は、撮像センサ3から出力された画像信号を増幅するものであり、例えばAGC(オートゲインコントロール)回路を備え、当該出力信号のゲイン(増幅率)調整を行う。アンプ4は、AGC回路の他、アナログ値としての画像信号のサンプリングノイズの低減を行うCDS(相関二重サンプリング)回路を備えていてもよい。   The amplifier 4 amplifies the image signal output from the imaging sensor 3 and includes, for example, an AGC (auto gain control) circuit, and adjusts the gain (amplification factor) of the output signal. The amplifier 4 may include a CDS (correlated double sampling) circuit that reduces sampling noise of an image signal as an analog value in addition to the AGC circuit.

A/D変換部5は、アンプ4にて増幅されたアナログ値の画像信号(アナログ信号)をデジタル値の画像信号(デジタル信号)に変換するものであり、撮像センサ3の各画素で受光して得られる画素信号をそれぞれ例えば12ビットの画素データに変換する。   The A / D converter 5 converts the analog image signal (analog signal) amplified by the amplifier 4 into a digital image signal (digital signal), and receives light at each pixel of the image sensor 3. Each pixel signal obtained in this way is converted into, for example, 12-bit pixel data.

画像処理部6は、A/D変換部5によるA/D変換処理によって得られた画像信号に対する色補間/色補正処理やホワイトバランス補正処理、特に、本実施形態の主な特徴点である覆い焼き処理に基づく階調変換処理といった各種画像処理を行うものである。画像処理部6におけるこの階調変換処理については後に詳述する。なお、画像処理部6は、上記各機能部の他に、例えば信号の固定パターンノイズ(FPN;Fixed Pattern Noise)を除去するFPN補正部やA/D変換部5から入力されるデジタル画像信号の黒レベルを基準の値に補正する黒基準補正部等(いずれも図示略)を備えていてもよい。   The image processing unit 6 performs color interpolation / color correction processing and white balance correction processing on the image signal obtained by the A / D conversion processing by the A / D conversion unit 5, in particular, covering that is a main feature point of the present embodiment. Various image processing such as gradation conversion processing based on printing processing is performed. This gradation conversion processing in the image processing unit 6 will be described in detail later. In addition to the above-described functional units, the image processing unit 6 is a digital image signal input from an APN conversion unit 5 or an FPN correction unit that removes fixed pattern noise (FPN) of the signal, for example. A black reference correction unit or the like (both not shown) for correcting the black level to a reference value may be provided.

画像メモリ7は、ROM(Read Only Memory)やRAM(Random Access Memory)等のメモリからなり、画像処理部6で画像処理が施された画像データ等を保存するものである。画像メモリ7は、例えば撮影よる所定フレーム分の画像データを記憶し得る容量を有したものとなっている。   The image memory 7 includes a memory such as a ROM (Read Only Memory) or a RAM (Random Access Memory), and stores image data subjected to image processing by the image processing unit 6. The image memory 7 has a capacity capable of storing image data for a predetermined frame by, for example, photographing.

制御部8は、各種制御プログラム等を記憶するROM、一時的にデータを格納するRAM及び制御プログラム等をROMから読み出して実行する(中央演算処理装置:CPU)等からなり、デジタルカメラ1全体の動作制御を司るものである。制御部8は、撮像センサ3等の装置各部からの各種信号に基づき装置各部が必要とする制御パラメータ等を算出し、これに基づいて例えばタイミングジェネレータや駆動部(いずれも図示略)を介して装置各部の動作を制御する。制御部8は、本実施形態においては、特に、画像処理部6の階調変換処理における照明成分圧縮処理や特性変換処理等の処理動作を制御する。   The control unit 8 includes a ROM that stores various control programs, a RAM that temporarily stores data, and a control program that is read from the ROM and executed (central processing unit: CPU). It governs motion control. The control unit 8 calculates control parameters and the like required by each unit of the device based on various signals from each unit of the image sensor 3 and the like, and based on this, for example, via a timing generator and a drive unit (both not shown). Controls the operation of each part of the device. In the present embodiment, the control unit 8 particularly controls processing operations such as illumination component compression processing and characteristic conversion processing in the gradation conversion processing of the image processing unit 6.

モニタ部9は、撮像センサ3で撮影された画像或いは画像メモリ7に保存されていた画像等のモニタ表示を行うものである。モニタ部9は、具体的には、例えばカメラ背面に配設されたカラー液晶表示素子からなる液晶表示器(LCD;Liquid Crystal Display)等からなる。   The monitor unit 9 performs monitor display of an image taken by the image sensor 3 or an image stored in the image memory 7. Specifically, the monitor unit 9 includes a liquid crystal display (LCD) including a color liquid crystal display element disposed on the back of the camera, for example.

操作部10は、デジタルカメラ1に対するユーザによる操作指示入力を行うものであり、例えば電源スイッチ、レリーズスイッチ、或いは各種撮影モードを設定するモード設定スイッチ、メニュー選択スイッチ等の各種の操作スイッチ群(操作ボタン群)からなる。例えばレリーズスイッチが押下(オン)されることで、撮像動作、すなわち撮像センサ3により被写体光が撮像され、この撮像により得られた画像データに対して所要の画像処理が施された後、画像メモリ7等に記録されるといった一連の撮影動作が実行される。   The operation unit 10 is used to input operation instructions to the digital camera 1 by a user. For example, a power switch, a release switch, a mode setting switch for setting various shooting modes, a menu selection switch, and various operation switch groups (operations). Button group). For example, when the release switch is pressed (turned on), the subject light is imaged by the imaging operation, that is, the imaging sensor 3, and the image data obtained by this imaging is subjected to the required image processing, and then the image memory A series of shooting operations such as recording at 7 etc. is executed.

ここで、上記階調変換処理の機能に関する画像処理部6の構成及び動作の詳細について説明する。図2は、画像処理部6の各機能を説明するための機能ブロック図である。同図に示すように画像処理部6は、主被写体輝度取得部61、特性変換部62、照明成分抽出部63、圧縮開始点設定部64、反射率成分算出部65、高輝度領域反射率算出部66、最大輝度圧縮点算出部67、ヒストグラム演算部68、被写体輝度エリア設定部69、照明成分圧縮部70及び画像生成部71を備えている。   Here, details of the configuration and operation of the image processing unit 6 relating to the function of the gradation conversion processing will be described. FIG. 2 is a functional block diagram for explaining each function of the image processing unit 6. As shown in the figure, the image processing unit 6 includes a main subject luminance acquisition unit 61, a characteristic conversion unit 62, an illumination component extraction unit 63, a compression start point setting unit 64, a reflectance component calculation unit 65, and a high luminance region reflectance calculation. A unit 66, a maximum luminance compression point calculation unit 67, a histogram calculation unit 68, a subject luminance area setting unit 69, an illumination component compression unit 70, and an image generation unit 71.

主被写体輝度取得部61は、撮像センサ3による撮像によって得られた撮影画像(元画像I)の主被写体輝度を取得(算出)するものである。主被写体輝度取得部61は、図8に示すように例えば分割測光(マルチパターン測光)方式によって、撮像領域600つまり元画像Iを、例えばA〜AJブロックの36個の検出ブロックに分割されてなる中央領域(主被写体領域610という)と、第1〜第16ブロックの16個の検出ブロックに分割されてなる周辺領域(周辺被写体領域620という)とからなる複数の区画に分割し、この各区画の画像から検出した輝度情報から例えば平均輝度として主被写体輝度を算出する。この場合、例えばA〜AJブロック毎の主被写体輝度ヒストグラム(分布)を算出するとともに、このA〜AJブロック毎の主被写体輝度ヒストグラムから主被写体領域610全体における主被写体全体輝度ヒストグラムを算出し、この主被写体全体輝度ヒストグラムから主被写体領域610に対する平均輝度を算出してもよい。この平均輝度算出の際には、例えば或る所定の閾値を用いて輝度データの「足切り」処理を行ってもよいし、周辺被写体領域の輝度情報(周辺被写体輝度ヒストグラムや周辺被写体全体輝度ヒストグラム)を用いてもよい。なお、主被写体輝度の算出方法は、上記したものに限定されず、種々の方法が採用可能である。また、主被写体輝度は平均輝度として算出せずともよく、例えば最大/最小輝度として算出してもよい。   The main subject luminance acquisition unit 61 acquires (calculates) the main subject luminance of the captured image (original image I) obtained by imaging by the imaging sensor 3. As shown in FIG. 8, the main subject luminance acquisition unit 61 divides the imaging region 600, that is, the original image I into, for example, 36 detection blocks of A to AJ blocks by, for example, a division photometry (multi-pattern photometry) method. The area is divided into a plurality of sections including a central area (referred to as a main subject area 610) and a peripheral area (referred to as a peripheral subject area 620) divided into 16 detection blocks of the first to sixteenth blocks. For example, the main subject brightness is calculated as the average brightness from the brightness information detected from the image. In this case, for example, a main subject luminance histogram (distribution) for each of the A to AJ blocks is calculated, and a main subject overall luminance histogram for the entire main subject region 610 is calculated from the main subject luminance histogram for each of the A to AJ blocks. The average luminance for the main subject region 610 may be calculated from the main subject whole luminance histogram. In calculating the average luminance, for example, luminance data “cut off” processing may be performed using a certain predetermined threshold, or luminance information of a peripheral subject area (a peripheral subject luminance histogram or a peripheral subject overall luminance histogram). ) May be used. Note that the method for calculating the main subject luminance is not limited to the above, and various methods can be employed. Further, the main subject luminance does not have to be calculated as the average luminance, and may be calculated as, for example, the maximum / minimum luminance.

ここで、図3は、上記階調変換処理による覆い焼き処理(照明成分の圧縮)について説明するグラフ図である。特性変換部62は、図3に示すように、リニア特性301及びログ特性302からなる光電変換特性を有する元画像Iに対する、特性を統一する処理(特性統一処理)を行うものである。この元画像Iは、撮像センサ3からの入力画像であり、以下の(1)、(2)式に示すような入力輝度xに対する画素値yの関係式(光電変換特性)を有する。但し、同図中の座標点(Xth、Yth)は、変曲点303を示し、(1)式はリニア特性301である画像I2を示し、(2)式はログ特性302である画像I1を示す。なお、式中の記号「*」は乗算を示し、a、b、α、βは所定の係数を示す(以下も同じ)。
y=a*x+b(0≦x≦Xth) ・・・(1)
y=α*log(x)+β(x>Xth) ・・・(2)
Here, FIG. 3 is a graph illustrating the dodging process (the compression of the illumination component) by the gradation conversion process. As shown in FIG. 3, the characteristic conversion unit 62 performs a process for unifying the characteristics (characteristic unification process) for the original image I having the photoelectric conversion characteristics including the linear characteristics 301 and the log characteristics 302. The original image I is an input image from the imaging sensor 3 and has a relational expression (photoelectric conversion characteristic) of the pixel value y with respect to the input luminance x as shown in the following expressions (1) and (2). However, the coordinate point (Xth, Yth) in the figure shows the inflection point 303, the expression (1) shows the image I2 having the linear characteristic 301, and the expression (2) shows the image I1 having the log characteristic 302. Show. The symbol “*” in the formula indicates multiplication, and a, b, α, and β indicate predetermined coefficients (the same applies to the following).
y = a * x + b (0 ≦ x ≦ Xth) (1)
y = α * log (x) + β (x> Xth) (2)

特性変換部62は、ここでは、ログ特性302を、リニア特性301と同じ特性であるリニア特性304に変換する処理を行う。この場合、撮像センサ3の画素値をiとすると、当該特性統一処理により得られる、リニア特性301及びリニア特性304からなる光電変換特性を有する画像(符号310に示す画像It)は、下記の(3)式に基づく変換によって与えられる。但し、式中の記号「/」は除算を示す(以下も同じ)。
if(i>Yth)
It=a*exp((i−β)/α)+b
else
It=i ・・・(3)
Here, the characteristic conversion unit 62 performs a process of converting the log characteristic 302 into a linear characteristic 304 that is the same characteristic as the linear characteristic 301. In this case, assuming that the pixel value of the image sensor 3 is i, an image (image It shown by reference numeral 310) having a photoelectric conversion characteristic made up of the linear characteristic 301 and the linear characteristic 304 obtained by the characteristic unification process is as follows: 3) given by the transformation based on the equation. However, the symbol “/” in the formula indicates division (and so on).
if (i> Yth)
It = a * exp ((i−β) / α) + b
else
It = i (3)

なお、特性変換部62は、上記ログ特性302からリニア特性304への変換を、所定のLUT(変換LUTという)を用いて行う。この変換LUTは例えば特性変換部62に備えたLUT記憶部(図示略)に記憶しておいてもよい。   The characteristic conversion unit 62 performs conversion from the log characteristic 302 to the linear characteristic 304 by using a predetermined LUT (referred to as a conversion LUT). The conversion LUT may be stored in, for example, an LUT storage unit (not shown) provided in the characteristic conversion unit 62.

照明成分抽出部63は、上記特性統一処理により得られた画像It(リニア画像)から照明成分を抽出するものである。この画像Itは、所謂Retinex理論によれば、該画像Itにおける照明成分を照明成分L、反射率成分を反射率成分Rとすると、以下の(4)式で表される。なお、画像Itに示す直線グラフを、該画像Itから抽出した照明成分Lを表すものとして適宜扱うものとする。
It=L*R ・・・(4)
The illumination component extraction unit 63 extracts an illumination component from the image It (linear image) obtained by the characteristic unification process. According to the so-called Retinex theory, this image It is represented by the following equation (4), where the illumination component in the image It is an illumination component L and the reflectance component is a reflectance component R. Note that the straight line graph shown in the image It is appropriately handled as representing the illumination component L extracted from the image It.
It = L * R (4)

この画像Itからの照明成分Lの抽出処理は、メディアンフィルタやイプシロン(ε)フィルタ等の所謂エッジ維持フィルタ(非線形フィルタ)を用いて行われる。これは以下の(5)式で表される。
L=F(It) ・・・(5)
但し、(5)式中の“F”は、上記エッジ維持フィルタを示している。なお、狭義での単に低周波成分を通過させる通常のLPF(ローパスフィルタ;線形フィルタ)では、画像の照明境界(エッジ)においてその変化を正確に抽出することができないため、すなわち、線形フィルタを用いて抽出した信号に基づいてDR圧縮を行うと例えばアーティファクト(画像の暗く沈んだ部分)が出現してしまうため、このような問題を回避してエッジを正確に抽出することが可能なエッジ維持フィルタを用いている。
The extraction process of the illumination component L from the image It is performed using a so-called edge maintaining filter (nonlinear filter) such as a median filter or an epsilon (ε) filter. This is expressed by the following equation (5).
L = F (It) (5)
However, “F” in the equation (5) indicates the edge maintaining filter. Note that a normal LPF (low-pass filter; linear filter) that simply passes a low-frequency component in a narrow sense cannot accurately extract the change at the illumination boundary (edge) of the image, that is, a linear filter is used. If the DR compression is performed on the basis of the extracted signal, for example, an artifact (a darkly sunk portion of the image) appears. Therefore, an edge maintaining filter that can accurately extract an edge while avoiding such a problem Is used.

圧縮開始点設定部64は、上記画像Ttから抽出した照明成分Lに対する圧縮処理を行うに際しての、符号305に示す圧縮開始点S、具体的には圧縮開始レベルYsを設定する(入力輝度で見た場合の圧縮開始レベルXsを設定してもよい)ものである。この場合、圧縮開始レベルYsは、上記の平均輝度等で与えられる主被写体輝度以上の値となるように設定する。この主被写体輝度以上の値となる圧縮開始レベルYsを設定する方法としては、例えば、主被写体輝度の値を所定数倍した値を圧縮開始レベルYsとしてもよい。この所定数倍の具体的な値(倍率)は、例えば主被写体が人の顔となるような場合には、ガンマ補正を行うと適正な明るさが得られるレベルとなる2〜3倍程度、或いは主被写体が風景となるような場合には2倍程度としてもよい。但し、倍率はこれらに限定されず、任意な値が採用可能である。また、この倍率は、予め想定した被写体に応じて算出された1つの固定値として設定してもよいし、被写体に応じてその都度、異なるものを設定してもよい。この場合、例えば、ユーザによる操作部10からの指示入力に基づいて複数の固定値から選択されたものを設定してもよいし、上記主被写体輝度取得部61において測光結果から求めた主被写体輝度の値に応じて複数の固定値から自動的に選択されたものを設定してもよいし、また、当該測光結果や撮影倍率(焦点距離)から求められる撮影モード(例えば「ポートレート(人物)」モードや「風景」モード)により同定された主被写体の種類に応じて設定してもよい。いずれにしても、圧縮開始レベルYsは、主被写体(被写体)の種別や輝度情報に応じて適宜設定し、且つ主被写体輝度レベル(又はこの直近レベル)ではなく、主被写体輝度から所定値高いレベルに設定することが好ましく、これにより、各種被写体の違いに拘わらず、DR圧縮による主被写体への影響をより確実に防ぐことが可能となる。   The compression start point setting unit 64 sets the compression start point S indicated by reference numeral 305, specifically, the compression start level Ys when performing the compression process on the illumination component L extracted from the image Tt (see the input luminance). The compression start level Xs may be set). In this case, the compression start level Ys is set to be a value equal to or higher than the main subject luminance given by the above average luminance or the like. As a method for setting the compression start level Ys that is equal to or higher than the main subject luminance, for example, a value obtained by multiplying the main subject luminance value by a predetermined number may be used as the compression start level Ys. For example, when the main subject is a human face, the specific value (magnification) of the predetermined number of times is about 2 to 3 times at which appropriate brightness can be obtained by performing gamma correction. Alternatively, when the main subject is a landscape, it may be about double. However, the magnification is not limited to these, and any value can be adopted. Further, this magnification may be set as one fixed value calculated according to the subject assumed in advance, or may be set differently depending on the subject. In this case, for example, one selected from a plurality of fixed values based on an instruction input from the operation unit 10 by the user may be set, or the main subject luminance obtained from the photometric result in the main subject luminance acquisition unit 61 Depending on the value, a value automatically selected from a plurality of fixed values may be set, or a photographing mode (for example, “portrait (person)) obtained from the photometric result and photographing magnification (focal length) “Mode” or “landscape” mode) may be set according to the type of the main subject identified. In any case, the compression start level Ys is appropriately set according to the type and luminance information of the main subject (subject), and is not the main subject luminance level (or the latest level) but a level higher than the main subject luminance by a predetermined value. Therefore, regardless of the difference between the various subjects, it is possible to more reliably prevent the main subject from being affected by the DR compression.

また、主被写体輝度以上の値となる圧縮開始レベルYsを設定する方法としては、上述したものに限定されず、例えば、主被写体及び/又は周辺被写体の輝度情報に基づく所定の輝度ヒストグラム(以降、単に「ヒストグラム」という)を算出し、主被写体輝度以上の領域における所定レベル、例えば度数の少ない輝度値(輝度レベル)を圧縮開始レベルYsとして設定してもよい。具体的には、ヒストグラムが例えば所謂「山」の形状をしており、この山の頂点付近が主被写体輝度であるとすると、このヒストグラムにおける主被写体輝度以上の度数が小さくなっている山裾の位置辺りを圧縮開始レベルとするように設定する。このように度数の少ない輝度値を圧縮開始レベルYsとして圧縮を行うことにより(ヒストグラムにおける度数の大きな部分に対する圧縮を回避できるため)、階調特性の変化を目立たなくすることができる。なお、このヒストグラムに基づく圧縮開始レベルYsの設定は、撮像センサ3によって撮影画像が得られる都度行われてもよい。   In addition, the method for setting the compression start level Ys that is a value equal to or higher than the main subject luminance is not limited to the above-described method. For example, a predetermined luminance histogram (hereinafter, based on luminance information of the main subject and / or surrounding subjects) is used. It is also possible to calculate a predetermined level in an area equal to or higher than the main subject luminance, for example, a luminance value (luminance level) with a low frequency as the compression start level Ys. Specifically, if the histogram has a so-called “mountain” shape and the vicinity of the peak is the main subject brightness, the position of the foot of the mountain where the frequency of the main subject brightness or less in this histogram is smaller Set the neighborhood to be the compression start level. In this way, by performing the compression with the luminance value having a low frequency as the compression start level Ys (because it is possible to avoid the compression of the high frequency portion in the histogram), the change in the gradation characteristics can be made inconspicuous. The setting of the compression start level Ys based on this histogram may be performed every time a captured image is obtained by the imaging sensor 3.

また、撮像センサが本実施形態に示すようにリニアログセンサである場合、圧縮開始レベルYsを、例えばYs=Yth*P(P;1より小さい所定の倍数値)として求めるなどして、変曲点レベルYthと連動させた値を設定してもよい。これは、変曲点レベルYthが、デジタルカメラ1による自動露出制御(AE制御)が行われる段階で、つまりここでの覆い焼き処理が行われる前段階で、主被写体輝度レベルよりも大きな値に設定されていることによる。なお、上記AE制御は、画像処理部6において撮影画像から求めたAE制御用の評価値(AE評価値)を用いて行われる。上記いずれにしても、要は、主被写体輝度がDR圧縮されて主被写体の階調がつぶれてしまわないようなレベルに圧縮開始レベルYsが設定されればよい。   Further, when the imaging sensor is a linear log sensor as shown in the present embodiment, the inflection is obtained by obtaining the compression start level Ys as, for example, Ys = Yth * P (P: a predetermined multiple value smaller than 1). A value linked to the point level Yth may be set. This is because the inflection point level Yth is larger than the main subject luminance level at the stage where automatic exposure control (AE control) is performed by the digital camera 1, that is, before the dodging process is performed. It depends on what is set. The AE control is performed using an evaluation value (AE evaluation value) for AE control obtained from the captured image in the image processing unit 6. In any case, the compression start level Ys may be set to a level at which the main subject luminance is DR-compressed and the gradation of the main subject is not destroyed.

反射率成分算出部65は、画像Itから反射率成分Rを算出(抽出)するものである。この反射率成分Rは、上記照明成分Lを用いて以下の(6)式によって算出される。
R=It/L ・・・(6)(上記(4)式から導出)
The reflectance component calculation unit 65 calculates (extracts) the reflectance component R from the image It. The reflectance component R is calculated by the following equation (6) using the illumination component L.
R = It / L (6) (derived from the above equation (4))

高輝度領域反射率算出部66は、反射率成分算出部65により算出した反射率成分Rから高輝度領域(高輝度部分)の反射率Rhiを算出するものである。具体的には、高輝度領域反射率算出部66は、反射率成分Rのうち、照明成分Lの値が所定の閾値th(図3参照)以上である高輝度領域における反射率の最大値又は平均値を反射率Rhiとして算出する。この最大値や平均値は、例えば反射率成分のヒストグラムを作成して該ヒストグラムに基づいて算出する(このヒストグラムでの計算の際、或る閾値で所謂「足切り」を行ってもよい)など、任意な算出方法が採用可能である。また、この平均値も、上記閾値th以上の領域の反射率成分全体を単純平均して求めたものでもよいし、これ以外の平均方法によって求めた平均値であってもよい。また、上記閾値thは、上記従来技術(図9参照)で説明したように、画素値が出力最大値Omaxを上回る反射率成分が、該閾値th以上の輝度領域における反射率成分に内包され得る値が設定される。この閾値thは或る固定値として設定してもよいし、撮影画像が得られる都度、所定の設定基準情報に応じて設定してもよい。   The high luminance area reflectance calculation unit 66 calculates the reflectance Rhi of the high luminance area (high luminance part) from the reflectance component R calculated by the reflectance component calculation unit 65. Specifically, the high-luminance region reflectance calculation unit 66 includes, in the reflectance component R, the maximum reflectance value in a high-luminance region where the value of the illumination component L is equal to or greater than a predetermined threshold th (see FIG. 3) or The average value is calculated as the reflectance Rhi. The maximum value and the average value are calculated based on, for example, a reflectance component histogram (when calculating with this histogram, so-called “cutting off” may be performed with a certain threshold value). Any calculation method can be employed. Also, this average value may be obtained by simply averaging the entire reflectance components in the region equal to or greater than the threshold th, or may be an average value obtained by another averaging method. Further, as described in the prior art (see FIG. 9), the threshold value th can include a reflectance component having a pixel value exceeding the maximum output value Omax in a reflectance component in a luminance region equal to or greater than the threshold value th. Value is set. The threshold th may be set as a certain fixed value, or may be set according to predetermined setting reference information every time a captured image is obtained.

最大輝度圧縮点算出部67は、高輝度領域反射率算出部66により算出した反射率Rhiに基づいて、符号306に示す最大輝度圧縮点M’を算出(設定)するものである。この最大輝度圧縮点M’は、後述の照明成分圧縮部68によるDR圧縮後、高輝度領域の反射率成分Rが出力最大値Omaxより大きな値とならないように設定される、すなわち、0(ゼロ)〜Ymax(リニア特性最大値)のダイナミックレンジをもつ照明成分Lが、DR圧縮によって0(ゼロ)〜L’maxのダイナミックレンジに収まるように設定される最大輝度Xmaxの照明圧縮レベルL’maxを示す点(Xmax、L’max)である。具体的には、最大輝度圧縮点算出部67は、L’maxの値を、反射率Rhi及び出力最大値Omaxから以下の(7.3)式によって算出する。但し、(7.3)式は、後述する画像I’がOmax以下の値であることに基づく(7.1)式、及びこの(7.1)式における画像I’が照明成分L’maxと反射率Rhiとの乗算値であることに基づく(7.2)式から導かれる。
I’≦Omax ・・・(7.1)
L’max*Rhi≦Omax ・・・(7.2)
L’max≦Omax/Rhi ・・・(7.3)
The maximum luminance compression point calculation unit 67 calculates (sets) a maximum luminance compression point M ′ indicated by reference numeral 306 based on the reflectance Rhi calculated by the high luminance region reflectance calculation unit 66. This maximum luminance compression point M ′ is set so that the reflectance component R in the high luminance region does not become larger than the output maximum value Omax after DR compression by the illumination component compression unit 68 described later, that is, 0 (zero). ) To Ymax (maximum linear characteristic value) The illumination compression level L′ max with the maximum luminance Xmax set so that the illumination component L having the dynamic range falls within the dynamic range of 0 (zero) to L′ max by DR compression. Are points (Xmax, L′ max). Specifically, the maximum luminance compression point calculation unit 67 calculates the value of L′ max from the reflectance Rhi and the output maximum value Omax by the following equation (7.3). However, the expression (7.3) is based on the fact that an image I ′ described later has a value equal to or less than Omax, and the image I ′ in the expression (7.1) is an illumination component L′ max. And the reflectance Rhi is derived from the equation (7.2).
I ′ ≦ Omax (7.1)
L′ max * Rhi ≦ Omax (7.2)
L′ max ≦ Omax / Rhi (7.3)

ヒストグラム演算部68は、撮影画像の輝度情報を基にヒストグラムを作成するとともに、このヒストグラム情報に基づく各種演算を行うものである。具体的には、ヒストグラム演算部68は、図4の符号410に示すグラフのように、撮影画像から抽出された照明成分(照明成分画像)のヒストグラムを作成する(後述のピークヒストグラムに対して、このヒストグラムを全体ヒストグラムという)。そして、この作成した全体ヒストグラムに対して所定の閾値すなわち足切りレベルで足切り(足切り演算)を行うことで、足切りレベル以上のヒストグラム(以降、ピークヒストグラムという)を算出し、さらにこのピークヒストグラムにおけるピーク(ピーク値)を算出する。ここでは、図4の符号420に示すグラフのように、符号410に示す全体ヒストグラムにおけるピークヒストグラムが、輝度Aを有する被写体Aに対応するピークヒストグラム411及び輝度Bを有する被写体Bに対応するピークヒストグラム412の2つ得られており、これらピークヒストグラム411、412のピークがそれぞれピークP1、P2となっている。   The histogram calculation unit 68 creates a histogram based on the luminance information of the captured image and performs various calculations based on the histogram information. Specifically, the histogram calculation unit 68 creates a histogram of the illumination component (illumination component image) extracted from the captured image, as in the graph indicated by reference numeral 410 in FIG. This histogram is called the whole histogram). Then, by performing a cut-off (cut-off calculation) with a predetermined threshold, that is, a cut-off level, on the created overall histogram, a histogram higher than the cut-off level (hereinafter referred to as a peak histogram) is calculated. A peak (peak value) in the histogram is calculated. Here, like the graph indicated by reference numeral 420 in FIG. 4, the peak histogram in the overall histogram indicated by reference numeral 410 is a peak histogram 411 corresponding to the subject A having the luminance A and a peak histogram corresponding to the subject B having the luminance B. 412 are obtained, and the peaks of these peak histograms 411 and 412 are the peaks P1 and P2, respectively.

被写体輝度エリア設定部69は、上記ヒストグラム演算部68によって算出したピークヒストグラム情報又はピーク情報に基づいて、所定輝度範囲(所定領域)を被写体輝度エリアとして設定するものである。ここでは、符号420のグラフに示すように、ピークP1、P2を中心とした(ピークP1、P2近傍位置を中心としてもよい)被写体輝度エリアA1、A2を設定している。当該被写体輝度エリアの設定は、このピークP1、P2のようなピーク位置又はピーク近傍位置の輝度について標準偏差σを求め、±Nσ(N>0の値、例えば3)の幅を被写体輝度エリアとする方法で設定してもよいし、また、ピーク位置又はピーク近傍位置からプラス及びマイナス方向に所定輝度値分だけ大きな輝度範囲を被写体輝度エリアとする方法で設定してもよい。この所定輝度値分の大きさは、例えばピーク輝度やピークヒストグラムの総度数から算出したものであってもよい。いずれにしても、ピークヒストグラム情報又はピーク情報に対応した所要の被写体輝度エリアが得られるのであれば、任意の設定方法が採用可能である。なお、各被写体輝度エリアは、互いに隣接したものとなってもよく(被写体輝度エリア同士の間隔が狭くてもよく)、換言すれば、上記各ピークヒストグラムは、互いに隣接したものであってもよく、この場合、圧縮特性の設定に際して、例えば被写体輝度エリア感の例えば後述の符号312に示す圧縮特性部が急傾斜となってもよい。   The subject luminance area setting unit 69 sets a predetermined luminance range (predetermined region) as a subject luminance area based on peak histogram information or peak information calculated by the histogram calculation unit 68. Here, as shown in the graph of reference numeral 420, subject luminance areas A1 and A2 are set centered on peaks P1 and P2 (may be centered on positions near peaks P1 and P2). For the setting of the subject luminance area, the standard deviation σ is obtained for the luminance at the peak position such as the peaks P1 and P2, or the position near the peak, and a width of ± Nσ (value of N> 0, for example, 3) is set as the subject luminance area. Alternatively, it may be set by a method in which a luminance range that is larger by a predetermined luminance value in the plus and minus directions from the peak position or near the peak is used as the subject luminance area. The magnitude of the predetermined luminance value may be calculated from, for example, the peak luminance or the total frequency of the peak histogram. In any case, any setting method can be adopted as long as peak histogram information or a required subject luminance area corresponding to the peak information can be obtained. The subject luminance areas may be adjacent to each other (the interval between the subject luminance areas may be narrow), in other words, the peak histograms may be adjacent to each other. In this case, when setting the compression characteristics, for example, the compression characteristic portion indicated by reference numeral 312 (described later) of the subject luminance area feeling may be steeply inclined.

但し、上記足切りレベル以上のピークヒストグラムが無い又は1つの場合(2つ以上でない場合)、或いは、ヒストグラムが一様に分布している(度数に偏りが生じていない)ことなどから明確なピークが得られない場合には、当該被写体輝度エリアを設定して行うDR圧縮でなく、符号320に示す圧縮特性に基づくDR圧縮を行う。これは、ピークの存在しない画像は、元来メリハリの無い画像であるため、当該被写体輝度エリアを設定して行うDR圧縮は不要とされることによる。なお、上記明確なピークであるか否かの判別は、例えば所定のピークヒストグラムパターン情報(ピークヒストグラムの山形状の情報)を記憶しておき、この情報と比較することで行ってもよい。また、例えば1つのピークヒストグラムに複数のピークが存在する場合、これらピーク値の例えば平均値を算出し、この平均ピーク値を、このピークヒストグラムを代表する1つのピークとして算出する構成としてもよい。   However, there is no peak histogram above the cut-off level or one peak (if not two or more), or the histogram is uniformly distributed (no frequency deviation), etc. Cannot be obtained, DR compression based on the compression characteristic indicated by reference numeral 320 is performed instead of DR compression performed by setting the subject luminance area. This is because an image having no peak is originally an image having no sharpness, and thus DR compression performed by setting the subject luminance area is not necessary. Whether or not the peak is clear may be determined by storing, for example, predetermined peak histogram pattern information (information on the peak shape of the peak histogram) and comparing it with this information. For example, when a plurality of peaks exist in one peak histogram, for example, an average value of these peak values may be calculated, and this average peak value may be calculated as one peak that represents this peak histogram.

照明成分圧縮部70は、照明成分抽出部63により画像Itから抽出された照明成分Lに対するDR圧縮を行うものである。照明成分圧縮部70は、このDR圧縮において、上記圧縮開始点S及び最大輝度圧縮点M’並びに被写体輝度エリアの情報の情報を基に所定の圧縮特性を設定し、この圧縮特性に基づいて該DR圧縮を行う。ここで、この圧縮特性の設定方法の一例について以下に説明する。   The illumination component compression unit 70 performs DR compression on the illumination component L extracted from the image It by the illumination component extraction unit 63. In this DR compression, the illumination component compression unit 70 sets predetermined compression characteristics based on information on the compression start point S, the maximum luminance compression point M ′, and the subject luminance area information, and based on the compression characteristics, Perform DR compression. Here, an example of the compression characteristic setting method will be described below.

照明成分圧縮部70は、被写体輝度エリア設定部69によって設定した被写体輝度エリア(ここでは被写体輝度エリアA1、A2とする)の情報を基に、圧縮開始レベルYs以上の領域における圧縮特性を決定する。この場合、図3に示すように、まず各被写体輝度エリアA1、A2の圧縮特性の傾きをゼロとし、低輝度側の被写体輝度エリアA1、換言すれば圧縮開始点Sの輝度値Xsに近い被写体輝度エリアA1を、例えば圧縮開始レベルYsと同じレベル位置に設定し、一方、高輝度側の被写体輝度エリアA2、換言すれば最大輝度圧縮点M’に近い被写体輝度エリアA2を、例えば照明圧縮レベルL’maxと同じレベル位置に設定することで被写体輝度エリアA1、A2を所定の圧縮量分だけ離間させた状態とするとともに、圧縮開始点S及び最大輝度圧縮点M’間における被写体輝度エリアA1、A2以外の残りの符号311〜313に示す特性部分は、直線で繋いだ状態、すなわち一定の傾きを有した状態となるように圧縮特性を決定する。圧縮特性の設定に際して、このように被写体輝度エリアA1、A2を配置することで、少なくとも上記符号312の圧縮特性に示す部分の出力分(Ys及びL’max間の出力分)だけ、被写体輝度エリアA1、A2間の明度差(輝度差)を生じさせることができる。   The illumination component compression unit 70 determines compression characteristics in an area that is equal to or higher than the compression start level Ys based on information on the subject luminance area (here, subject luminance areas A1 and A2) set by the subject luminance area setting unit 69. . In this case, as shown in FIG. 3, first, the slope of the compression characteristics of the subject brightness areas A1 and A2 is set to zero, and the subject brightness area A1 on the low brightness side, in other words, a subject close to the brightness value Xs at the compression start point S. The luminance area A1 is set at the same level position as the compression start level Ys, for example, while the high-luminance subject luminance area A2, in other words, the subject luminance area A2 close to the maximum luminance compression point M ′ is set at, for example, the illumination compression level. By setting the same level position as L′ max, the subject luminance areas A1 and A2 are separated by a predetermined compression amount, and the subject luminance area A1 between the compression start point S and the maximum luminance compression point M ′ is set. The remaining characteristic portions 311 to 313 other than A2 determine the compression characteristics so that they are connected by a straight line, that is, have a certain inclination. When setting the compression characteristics, the subject brightness areas A1 and A2 are arranged in this way, so that the subject brightness area is at least output corresponding to the compression characteristics indicated by the reference numeral 312 (the output between Ys and L′ max). A brightness difference (luminance difference) between A1 and A2 can be generated.

このように各被写体輝度エリアのレベル位置は、要は、互いの明度差が得られるようなものであればよく、必ずしも上述したような圧縮開始点S及び最大輝度圧縮点M’のレベル位置に限定されず、例えば図9に示す出力レベルゼロからの高さ(以降、レベル高さという)701、702に示すように、被写体輝度エリアA1、A2に応じた任意のレベルに設定してもよい。この場合も、残りの部分は上記と同様、一定の傾きを有するように設定する。なお、このレベル高さの設定は、例えば各被写体輝度エリアのピークP1、P2の輝度値が、それぞれ圧縮開始点S及び最大輝度圧縮点M’の輝度値Xs、Xmaxからどれくらい離れているかに応じて(例えば離間距離に比例させて)決定してもよい。   As described above, the level position of each subject luminance area may be any level as long as a brightness difference between them can be obtained, and is not necessarily at the level position of the compression start point S and the maximum luminance compression point M ′ as described above. For example, as shown in heights 701 and 702 from the output level zero (hereinafter referred to as level heights) 701 and 702 shown in FIG. 9, the level may be set to an arbitrary level according to the subject luminance areas A1 and A2. . In this case as well, the remaining portion is set to have a constant inclination as described above. The level height is set according to, for example, how far the luminance values of the peaks P1 and P2 in each subject luminance area are from the luminance values Xs and Xmax of the compression start point S and the maximum luminance compression point M ′, respectively. (For example, in proportion to the separation distance).

また、図10に示すように、被写体輝度エリアが3つ以上存在する場合には(ここでは被写体輝度エリアA11、A12、A13の3つとする)、例えば、圧縮開始点Sの輝度値Xsに近い被写体輝度エリアA11を圧縮開始レベルYsと同レベルに設定し、最大輝度圧縮点M’に近い被写体輝度エリアA13を照明圧縮レベルL’maxと同レベルに設定し、その間の被写体輝度エリアA12は、圧縮開始点S又は最大輝度圧縮点M’と該被写体輝度エリアA12のピーク値との距離に応じたレベル高さに設定するというように所謂階段状の圧縮特性としてもよい。但し、各被写体輝度エリア間の明度差が好適に得られるのであれば、この設定方法に限定されず、例えば被写体輝度エリアA12を、圧縮開始レベルYs又は照明圧縮レベルL’maxと同レベルに設定してもよいし、被写体輝度エリアA11、A13を図9の場合と同様、圧縮開始レベルYs、照明圧縮レベルL’maxと同じレベル位置とせずに任意なレベル高さに設定してもよい。なお、この場合も、残りの特性部分は上記と同様、一定の傾きを有するように設定される。   Also, as shown in FIG. 10, when there are three or more subject luminance areas (here, the subject luminance areas A11, A12, and A13 are three), for example, close to the luminance value Xs of the compression start point S The subject brightness area A11 is set to the same level as the compression start level Ys, the subject brightness area A13 close to the maximum brightness compression point M ′ is set to the same level as the illumination compression level L′ max, and the subject brightness area A12 in the meantime is A so-called step-like compression characteristic may be used such that the level height is set according to the distance between the compression start point S or the maximum luminance compression point M ′ and the peak value of the subject luminance area A12. However, as long as the brightness difference between the subject luminance areas can be suitably obtained, the setting is not limited to this setting method. For example, the subject luminance area A12 is set to the same level as the compression start level Ys or the illumination compression level L′ max. Alternatively, the subject luminance areas A11 and A13 may be set to arbitrary level heights without setting the same level positions as the compression start level Ys and the illumination compression level L′ max, as in the case of FIG. In this case as well, the remaining characteristic portions are set to have a constant slope, as described above.

次に、圧縮開始レベルYs未満の領域における圧縮特性を決定する。この圧縮開始レベルYs未満における照明成分Lの圧縮特性は、以下の(8)式に示す特性関数で与えられる。
L’=exp(log(L)*c)*n ・・・(8)
但し、「c」はDR圧縮率、「n」は正規化項である。
この(8)式に示す圧縮特性は、図3における特性グラフ320であり、上記符号310に示す照明成分LをDR圧縮率cでDR圧縮した場合に得られるものである。但し、特性グラフ320における、圧縮開始レベルYs未満の符号321に示す領域が、ここでの圧縮開始レベルYs未満で設定される圧縮特性(圧縮特性321)となる。
Next, the compression characteristic in the region below the compression start level Ys is determined. The compression characteristic of the illumination component L below this compression start level Ys is given by the characteristic function shown in the following equation (8).
L ′ = exp (log (L) * c) * n (8)
However, “c” is a DR compression rate, and “n” is a normalization term.
The compression characteristic shown in the equation (8) is a characteristic graph 320 in FIG. 3, and is obtained when the illumination component L indicated by the reference numeral 310 is DR compressed at the DR compression rate c. However, in the characteristic graph 320, the area indicated by the reference numeral 321 below the compression start level Ys is the compression characteristic (compression characteristic 321) set below the compression start level Ys here.

このDR圧縮によって、上記0〜Ymaxのダイナミックレンジを有する照明成分Lは、Omax以下の0(ゼロ)〜L’maxのダイナミックレンジに収まるような照明成分L’にDR圧縮される。このOmaxは所定の画像出力系の出力最大値(撮像センサ3の出力最大値又は最大画素値であってもよい)であり、例えば8ビット画像において「255」の階調値をとる。上記(8)式に示すDR圧縮後の照明成分を示す関数L’は、圧縮開始点S(Xs、Ys)と最大輝度圧縮点M’(Xmax、L’max)との2点を通過するため、これら点S及びM’の座標値をそれぞれ代入して得られる連立方程式から、(8)式における当該2つの未知数c、nを算出することができる。   By this DR compression, the illumination component L having a dynamic range of 0 to Ymax is DR compressed to an illumination component L ′ that falls within a dynamic range of 0 (zero) to L′ max that is equal to or less than Omax. This Omax is the maximum output value of the predetermined image output system (may be the maximum output value or maximum pixel value of the image sensor 3), and takes a gradation value of “255” in an 8-bit image, for example. The function L ′ indicating the illumination component after DR compression shown in the above equation (8) passes through two points of the compression start point S (Xs, Ys) and the maximum luminance compression point M ′ (Xmax, L′ max). Therefore, the two unknowns c and n in the equation (8) can be calculated from simultaneous equations obtained by substituting the coordinate values of these points S and M ′.

但し、上記(8)式において、圧縮パラメータ“c”に加え、パラメータ“n”を導入するのは、例えば撮像センサ3の出力画像(撮影画像)が0〜255階調のダイナミックレンジ(8ビット画像)を有しており、DR圧縮後の照明成分L’が例えば0〜100の階調となる場合には、これを0〜255の階調に合わせるべく「n」の値を例えば2.5とすることで階調値全体を2.5倍するといった調整(照明成分L’の正規化)を可能にするためである。また、上記(8)式の圧縮特性は、Omax以下の最大輝度圧縮点M’(Xmax、L’max)を通るものであることから、照明成分圧縮部70は、反射率Rhiが高いほど圧縮後のレベルL’maxが小さくなる即ち圧縮率が大きくなるようにDR圧縮率を決定し、該決定したDR圧縮率に基づいて照明成分LをDR圧縮するものであるとも言える。   However, in the above equation (8), in addition to the compression parameter “c”, the parameter “n” is introduced because, for example, the output image (captured image) of the image sensor 3 has a dynamic range of 0 to 255 gradations (8 bits). Image) and the illumination component L ′ after DR compression has a gradation of 0 to 100, for example, the value of “n” is set to, for example, 2. to match this with a gradation of 0 to 255. This is to enable adjustment (normalization of the illumination component L ′) to increase the entire gradation value by 2.5 by setting 5. Further, since the compression characteristic of the above equation (8) passes through the maximum luminance compression point M ′ (Xmax, L′ max) equal to or less than Omax, the illumination component compression unit 70 compresses as the reflectance Rhi increases. It can also be said that the DR compression rate is determined so that the later level L′ max is reduced, that is, the compression rate is increased, and the illumination component L is DR-compressed based on the determined DR compression rate.

照明成分圧縮部70は、上述のようにして求めた圧縮開始レベルYs以上の符号331に示す圧縮特性(圧縮特性331)と、圧縮開始レベルYs未満の圧縮特性321とからなる圧縮特性330を設定し、この圧縮特性330に基づいてDR圧縮を行う。   The illumination component compression unit 70 sets a compression characteristic 330 including a compression characteristic (compression characteristic 331) indicated by reference numeral 331 equal to or higher than the compression start level Ys obtained as described above and a compression characteristic 321 less than the compression start level Ys. Then, DR compression is performed based on the compression characteristic 330.

なお、照明成分Lに対するDR圧縮において圧縮開始点Sを設定するのは、上述したように主被写体輝度がDR圧縮されないようにするためであり、したがって、照明成分圧縮部70は、照明成分Lに対するDR圧縮において上記圧縮特性321を有する圧縮特性330を用いるものの、照明成分Lが圧縮開始レベルYs未満の領域では、当該圧縮特性330により得られる照明成分L’を出力値として用いずに、元画像Iを出力値とする処理を行う。   The reason why the compression start point S is set in the DR compression for the illumination component L is to prevent the main subject luminance from being DR-compressed as described above. Although the compression characteristic 330 having the compression characteristic 321 is used in the DR compression, in the region where the illumination component L is less than the compression start level Ys, the illumination component L ′ obtained by the compression characteristic 330 is not used as an output value, and the original image Processing is performed using I as an output value.

画像生成部71は、照明成分圧縮部70によって求めた照明成分L’と、反射率成分算出部65によって求めた反射率成分Rとから、以下の(9)式によって、元画像Iに対する新たな画像I’(覆い焼き処理後の画像I’)を生成するものである。
I’=L’*R ・・・(9)
From the illumination component L ′ obtained by the illumination component compression unit 70 and the reflectance component R obtained by the reflectance component calculation unit 65, the image generation unit 71 creates a new image for the original image I by the following equation (9). An image I ′ (image I ′ after dodging processing) is generated.
I ′ = L ′ * R (9)

上述のような圧縮特性330を基にしたDR圧縮による覆い焼き処理によって、例えば図5に示すように、画像の建物501の部分のコントラストを向上させつつ、例えば上記被写体輝度エリアA1に対応する空502と、被写体輝度エリアA2に対応する雲503の部分との明度差が小さくなって白飛びなどが生じていない(又は元画像における当該空502と雲503との明度差が維持されている)、メリハリの利いた自然な(好適な)画像を得ることができるようになる。   By the dodging process by DR compression based on the compression characteristic 330 as described above, for example, as shown in FIG. 5, the contrast of the building 501 portion of the image is improved, and for example, the sky corresponding to the subject luminance area A1. The brightness difference between 502 and the portion of the cloud 503 corresponding to the subject brightness area A2 is small, and no whiteout occurs (or the brightness difference between the sky 502 and the cloud 503 in the original image is maintained). Therefore, a sharp and natural (preferred) image can be obtained.

図6は、本実施形態におけるデジタルカメラ1による覆い焼き処理に関する動作の一例を示すフローチャートである。先ず特性変換部62によってリニア特性への特性統一処理が行われて画像Itが得られる(ステップS1)。次に、照明成分抽出部63によって、エッジ維持フィルタ(非線形フィルタ)処理に基づいて画像Itから照明成分Lが抽出される。但し、この照明成分の抽出処理は画像Itの全画素に対し同時に行われる(ステップS2)。そして、圧縮開始点設定部64に圧縮開始レベルYsが設定されるとともに、照明成分圧縮部68によって、照明成分Lが設定された圧縮開始レベルYs以上であると判別された場合には(ステップS3のYES)、反射率成分算出部65によって反射率成分Rが算出され(ステップS4)、圧縮開始点S(圧縮開始レベルYs)及び最大輝度圧縮点M’(照明圧縮レベルL’max)、並びに被写体輝度エリア(ここでは2つの被写体輝度エリアA1、A2)の情報に基づき設定された圧縮特性に基づいて、上記照明成分LがDR圧縮されて照明成分L’が得られる(ステップS5)。このステップS5の動作フローについては以下図7にて詳述する。このステップS4、5で得られた反射率成分R及び照明成分L’とから画像I’が生成されて出力される(ステップS6)。上記ステップS3において、照明成分Lが圧縮開始レベルYs未満であると判別された場合には(ステップS3のNO)、元画像Iが選択されて出力される(ステップS7)。但し、ステップS3〜S7の動作は、照明成分Lの画素毎に(1つの画素に対して)順次実行される。このようにしてステップS3〜S7の処理が全画素に対して完了すれば(ステップS8のYES)、フロー終了となる。全画素に対して完了していなければ(ステップS8のNO)、ステップS3に戻って、全画素が完了するまで当該ステップS3〜S7の各処理が繰り返される。   FIG. 6 is a flowchart showing an example of the operation related to the dodging process by the digital camera 1 in the present embodiment. First, the characteristic conversion unit 62 performs characteristic unification processing to linear characteristics to obtain an image It (step S1). Next, the illumination component extraction unit 63 extracts the illumination component L from the image It based on the edge maintenance filter (nonlinear filter) processing. However, this illumination component extraction processing is performed simultaneously on all the pixels of the image It (step S2). When the compression start level Ys is set in the compression start point setting unit 64 and the illumination component compression unit 68 determines that the illumination component L is equal to or higher than the set compression start level Ys (step S3). YES), the reflectance component calculation unit 65 calculates the reflectance component R (step S4), the compression start point S (compression start level Ys), the maximum luminance compression point M ′ (illumination compression level L′ max), and Based on the compression characteristics set based on the information of the subject luminance area (here, the two subject luminance areas A1 and A2), the illumination component L is DR-compressed to obtain the illumination component L ′ (step S5). The operation flow of step S5 will be described in detail with reference to FIG. An image I ′ is generated and output from the reflectance component R and the illumination component L ′ obtained in steps S4 and S5 (step S6). If it is determined in step S3 that the illumination component L is less than the compression start level Ys (NO in step S3), the original image I is selected and output (step S7). However, the operations in steps S3 to S7 are sequentially executed for each pixel of the illumination component L (for one pixel). If the processing in steps S3 to S7 is completed for all pixels in this way (YES in step S8), the flow ends. If not completed for all the pixels (NO in step S8), the process returns to step S3, and the processes in steps S3 to S7 are repeated until all the pixels are completed.

図7は、上記ステップS5におけるDR圧縮処理のより詳細な動作の一例を示すフローチャートである。ステップS5では先ず、高輝度領域反射率算出部66によって、反射率成分算出部65により算出された反射率成分Rから高輝度部の反射率Rhi(最大値又は平均値)が算出される(ステップS21)。次に、最大輝度圧縮点算出部67によって、高輝度領域反射率算出部66により算出された反射率Rhiに基づいて、最大輝度圧縮点M’が算出される。具体的には上記(7.3)式を用いて、反射率Rhi及び出力最大値Omaxから照明圧縮レベルL’maxが算出される(ステップS22)。次に、ヒストグラム演算部68によって照明成分画像のヒストグラムが作成されて、このヒストグラムからピークヒストグラム411、412が算出され、被写体輝度エリア設定部69によって、このピークヒストグラム411、412のピーク情報等に基づいて被写体輝度エリアA1、A2が算出される。そして、照明成分圧縮部70によって、圧縮開始レベルYs以上の領域においては、各被写体輝度エリアA1、A2をそれぞれ圧縮開始レベルYs及び照明圧縮レベルL’maxと同レベルにするなどして所定圧縮量分だけ離間させた状態とし、一方、圧縮開始レベルYs未満の領域は、圧縮開始点S及び最大輝度圧縮点M’の2点を通る特性グラフ320の一部とした圧縮特性330が設定される(ステップS23)。そして、照明成分圧縮部70によって、この圧縮特性330に基づいて照明成分LがDR圧縮される(ステップS24)。   FIG. 7 is a flowchart showing an example of a more detailed operation of the DR compression process in step S5. In step S5, first, the high luminance area reflectance calculation unit 66 calculates the reflectance Rhi (maximum value or average value) of the high luminance part from the reflectance component R calculated by the reflectance component calculation unit 65 (step S5). S21). Next, the maximum luminance compression point M ′ is calculated by the maximum luminance compression point calculation unit 67 based on the reflectance Rhi calculated by the high luminance region reflectance calculation unit 66. Specifically, the illumination compression level L′ max is calculated from the reflectance Rhi and the output maximum value Omax using the above equation (7.3) (step S22). Next, a histogram of the illumination component image is created by the histogram calculation unit 68, and peak histograms 411 and 412 are calculated from the histogram. Thus, the subject luminance areas A1 and A2 are calculated. Then, by the illumination component compression unit 70, in a region equal to or higher than the compression start level Ys, the subject luminance areas A1 and A2 are set to the same level as the compression start level Ys and the illumination compression level L′ max, respectively. On the other hand, the compression characteristic 330 is set as a part of the characteristic graph 320 that passes through the two points of the compression start point S and the maximum luminance compression point M ′ in the region less than the compression start level Ys. (Step S23). Then, the illumination component compression unit 70 performs DR compression on the illumination component L based on the compression characteristic 330 (step S24).

以上のように、本実施形態の撮像装置(デジタルカメラ1)によれば、撮像センサ3によって被写体光が撮像され、照明成分抽出部63によって撮像センサ3にによる撮影画像(元画像I又は画像It)から照明成分Lが抽出され、反射率成分算出部65によって撮影画像から反射率成分Rが抽出(算出)され、圧縮特性設定手段(被写体輝度エリア設定部69、照明成分圧縮部70)によって、撮影画像又は照明成分Lに対する少なくとも2つの所定の領域(例えば被写体輝度エリアA1、A2)が設定されるとともに、当該各領域間の明度差を強調する圧縮特性330が設定される。そして、照明成分圧縮部70によって、上記圧縮特性設定手段により設定された圧縮特性330に基づいて上記照明成分抽出部63により抽出された照明成分Lのダイナミックレンジが圧縮され(DR圧縮され)、画像生成部71によって、このダイナミックレンジが圧縮された照明成分L’(圧縮照明成分)と反射率成分Rとから新たな画像(画像I’)が生成される。これにより、撮影画像又は照明成分Lに対して設定された少なくとも2つの所定領域間(被写体輝度エリアA1、A2間)の明度差を強調する圧縮特性が設定され、この圧縮特性に基づいて照明成分Lのダイナミックレンジが圧縮されるので、覆い焼き処理において、画像の所要領域における照明成分の明度差を大きくすることができ、ひいてはメリハリの利いた自然な画像を得ることができる。   As described above, according to the imaging apparatus (digital camera 1) of the present embodiment, subject light is imaged by the imaging sensor 3, and a captured image (original image I or image It by the imaging sensor 3 is captured by the illumination component extraction unit 63. ), The reflectance component R is extracted (calculated) from the photographed image by the reflectance component calculation unit 65, and the compression characteristic setting means (the subject luminance area setting unit 69, the illumination component compression unit 70) At least two predetermined areas (for example, subject luminance areas A1 and A2) for the photographed image or the illumination component L are set, and a compression characteristic 330 that emphasizes the brightness difference between the areas is set. The dynamic range of the illumination component L extracted by the illumination component extraction unit 63 is compressed (DR compressed) by the illumination component compression unit 70 based on the compression characteristic 330 set by the compression characteristic setting unit, and the image The generation unit 71 generates a new image (image I ′) from the illumination component L ′ (compressed illumination component) and the reflectance component R in which the dynamic range is compressed. Thereby, a compression characteristic that emphasizes the brightness difference between at least two predetermined regions (between the subject luminance areas A1 and A2) set for the captured image or the illumination component L is set, and the illumination component is based on the compression characteristic. Since the dynamic range of L is compressed, in the dodging process, it is possible to increase the brightness difference of the illumination components in the required area of the image, and thus to obtain a sharp natural image.

また、上記圧縮特性設定手段によって、圧縮特性を示す特性ラインの各領域(被写体輝度エリアA1、A2)に対応する部分を、傾きがゼロであり且つ互いに所定の圧縮量分(レベルYs及びL’max間の出力分)だけ離間させた状態とする圧縮特性が設定される。このように、各領域の傾きをゼロとし且つ互いに所定の圧縮量分だけ離間させた状態とする方法で圧縮特性が設定されるので、所定領域間の明度差が強調される圧縮特性を容易に得ることができる。   Further, the compression characteristic setting means causes the portions corresponding to the respective areas (subject luminance areas A1 and A2) of the characteristic line indicating the compression characteristics to have a predetermined zero compression amount (levels Ys and L ′). The compression characteristic is set so as to be separated by an output between max). In this way, the compression characteristics are set by a method in which the slopes of the respective areas are set to zero and are separated from each other by a predetermined compression amount, so that the compression characteristics that emphasize the brightness difference between the predetermined areas can be easily achieved. Obtainable.

また、ヒストグラム演算部68によって、撮影画像(元画像I又は画像It)又は照明成分Lのヒストグラムが作成され、上記圧縮特性設定手段によって、ヒストグラムにおける輝度上の所定範囲が各領域(被写体輝度エリアA1、A2)として設定される。このように、ヒストグラムにおける輝度上の所定範囲が各領域として設定されるので、画像を処理する際に一般的に作成されるヒストグラムを用いて、当該各領域の設定を容易に行うことができる。   Further, a histogram of the captured image (original image I or image It) or the illumination component L is created by the histogram calculation unit 68, and a predetermined range of luminance in the histogram is set to each region (subject luminance area A1) by the compression characteristic setting means. , A2). Thus, since the predetermined range on the brightness in the histogram is set as each area, it is possible to easily set each area by using a histogram generally created when processing an image.

また、上記圧縮特性設定手段によって、ヒストグラムのピークが算出され、該ピーク又はピーク近傍位置を中心とした所定範囲が各領域(被写体輝度エリアA1、A2)として設定される。このように、ヒストグラムのピーク又はピーク近傍位置を中心とした所定範囲を各領域として設定する方法によって、ヒストグラムを用いた各領域の設定を容易に行うことができる。   In addition, the peak of the histogram is calculated by the compression characteristic setting means, and a predetermined range centered on the peak or a position near the peak is set as each region (subject luminance area A1, A2). As described above, each region using the histogram can be easily set by a method in which a predetermined range centered on the peak of the histogram or the position near the peak is set as each region.

また、圧縮開始点設定部64(第1レベル値設定手段)によって、照明成分Lに対する、主被写体の所定輝度値を示す主被写体輝度以上の圧縮開始レベルYs(第1レベル値)が設定され、最大輝度圧縮点算出部67(第2レベル値設定手段)によって、照明成分Lに対する、反射率成分Rの高輝度領域における反射率Rhiに応じた所定の画像出力最大値(出力最大値Omax)以下の照明圧縮レベルL’max(第2レベル値)が設定される。そして、上記圧縮特性設定手段によって、各領域(被写体輝度エリアA1、A2)のうちの低輝度側の所定領域(ここでは被写体輝度エリアA1)を圧縮開始レベルYsと同レベルとし、高輝度側の所定領域(ここでは被写体輝度エリアA2)を照明圧縮レベルL’maxと同レベルとする圧縮特性330が設定される。このように、各領域のうちの低輝度側の所定領域を圧縮開始レベルYsと同レベルとし、高輝度側の所定領域を照明圧縮レベルL’maxと同レベルとする圧縮特性を設定する方法によって、各領域間の明度差が強調される圧縮特性の設定を容易に行うことができるようになる。   Also, the compression start point setting unit 64 (first level value setting means) sets a compression start level Ys (first level value) for the illumination component L that is equal to or higher than the main subject luminance indicating the predetermined luminance value of the main subject, Below the predetermined maximum image output value (output maximum value Omax) corresponding to the reflectance Rhi in the high brightness region of the reflectance component R with respect to the illumination component L by the maximum brightness compression point calculation unit 67 (second level value setting means). The illumination compression level L′ max (second level value) is set. Then, by the compression characteristic setting means, the predetermined area on the low luminance side (subject luminance area A1 in this case) of each region (subject luminance area A1, A2) is set to the same level as the compression start level Ys, and the high luminance side is set. A compression characteristic 330 that sets a predetermined area (here, the subject luminance area A2) to the same level as the illumination compression level L′ max is set. In this way, by a method of setting a compression characteristic in which a predetermined area on the low luminance side of each area is set to the same level as the compression start level Ys and a predetermined area on the high luminance side is set to the same level as the illumination compression level L′ max. Thus, it is possible to easily set the compression characteristic in which the brightness difference between the regions is emphasized.

また、本実施形態の画像処理方法によれば、第1の工程において、撮像センサ3によって被写体光が撮像され、第2の工程において、照明成分抽出部63によって撮像センサ3による撮影画像(元画像I又は画像It)から照明成分Lが抽出され、第3の工程において、反射率成分算出部65によって撮影画像から反射率成分Rが抽出(算出)され、第6の工程において、圧縮特性設定手段によって、撮影画像又は照明成分Lに対する少なくとも2つの所定の領域(例えば被写体輝度エリアA1、A2)が設定されるとともに、当該各領域間の明度差を強調する圧縮特性が設定される。そして、第4の工程において、圧縮手段によって、圧縮特性設定手段により設定された圧縮特性に基づいて上記抽出された照明成分のダイナミックレンジが圧縮され、第5の工程において、画像生成部71によって、このダイナミックレンジが圧縮された照明成分L’(圧縮照明成分)と反射率成分Rとから新たな画像(画像I’)が生成される。これにより、撮影画像又は照明成分Lに対して設定された少なくとも2つの所定領域間(被写体輝度エリアA1、A2間)の明度差を強調する圧縮特性が設定され、この圧縮特性に基づいて照明成分Lのダイナミックレンジが圧縮されるので、覆い焼き処理において、画像の所要領域における照明成分の明度差を大きくすることができ、ひいてはメリハリの利いた自然な画像を得ることができる。   Further, according to the image processing method of the present embodiment, subject light is imaged by the imaging sensor 3 in the first step, and an image (original image) captured by the imaging sensor 3 by the illumination component extraction unit 63 in the second step. Illumination component L is extracted from I or image It), and in the third step, the reflectance component calculation unit 65 extracts (calculates) the reflectance component R from the captured image, and in the sixth step, compression characteristic setting means Thus, at least two predetermined areas (for example, subject luminance areas A1 and A2) for the captured image or the illumination component L are set, and a compression characteristic that emphasizes the brightness difference between the areas is set. In the fourth step, the dynamic range of the extracted illumination component is compressed by the compression unit based on the compression characteristic set by the compression characteristic setting unit. In the fifth step, the image generation unit 71 A new image (image I ′) is generated from the illumination component L ′ (compressed illumination component) and the reflectance component R in which the dynamic range is compressed. Thereby, a compression characteristic that emphasizes the brightness difference between at least two predetermined regions (between the subject luminance areas A1 and A2) set for the captured image or the illumination component L is set, and the illumination component is based on the compression characteristic. Since the dynamic range of L is compressed, in the dodging process, it is possible to increase the brightness difference of the illumination components in the required area of the image, and thus to obtain a sharp natural image.

また、上記第6の工程において、圧縮特性設定手段によって、圧縮特性を示す特性ラインの各領域(被写体輝度エリアA1、A2)に対応する部分を、傾きがゼロであり且つ互いに所定の圧縮量分(レベルYs及びL’max間の出力分)だけ離間させた状態とする圧縮特性が設定される。このように、各領域の傾きをゼロとし且つ互いに所定の圧縮量分だけ離間させた状態とする方法で圧縮特性が設定されるので、所定領域間の明度差が強調される圧縮特性を容易に得ることができる。   Further, in the sixth step, the compression characteristic setting means causes the portions corresponding to the respective areas (subject luminance areas A1 and A2) of the characteristic line indicating the compression characteristics to have a slope of zero and a predetermined compression amount. The compression characteristic is set so as to be separated by (the output between the levels Ys and L′ max). In this way, the compression characteristics are set by a method in which the slopes of the respective areas are set to zero and are separated from each other by a predetermined compression amount, so that the compression characteristics that emphasize the brightness difference between the predetermined areas can be easily achieved. Obtainable.

さらに、上記第7の工程において、撮影画像(元画像I又は画像It)又は照明成分Lのヒストグラムがヒストグラム演算部68によって作成され、第6の工程において、圧縮特性設定手段によって、ヒストグラムにおける輝度上の所定範囲が各領域として設定される。このように、ヒストグラムにおける輝度上の所定範囲が各領域として設定されるので、画像を処理する際に一般的に作成されるヒストグラムを用いて、各領域の設定を容易に行うことができる。   Further, in the seventh step, a histogram of the captured image (original image I or image It) or the illumination component L is created by the histogram calculation unit 68. In the sixth step, the compression characteristic setting means increases the luminance in the histogram. The predetermined range is set as each region. As described above, since a predetermined range on the luminance in the histogram is set as each region, each region can be easily set using a histogram generally created when processing an image.

なお、本発明は、以下の態様をとることができる。
(A)上記実施形態においては、被写体輝度エリアが設定される照明成分の圧縮特性の形状は、図3の圧縮特性330に示すように階段状、すなわち被写体輝度エリアで傾きゼロ、その他の特性部分は直線で繋いだような形状となっているが、このような形状の圧縮特性に限定されず、例えば図11に示すように、被写体輝度エリアに相当する部分の傾きが略ゼロ(平坦なグラフとなり)を保った情報で且つ各部が滑らかに接続された曲線状の圧縮特性が設定される構成であってもよい。
In addition, this invention can take the following aspects.
(A) In the above embodiment, the shape of the compression characteristic of the illumination component in which the subject luminance area is set is stepped as shown by the compression characteristic 330 in FIG. 3, that is, the inclination is zero in the subject luminance area, and other characteristic portions However, the shape is not limited to the compression characteristics of such a shape. For example, as shown in FIG. 11, the slope of the portion corresponding to the subject luminance area is substantially zero (a flat graph). It is also possible to adopt a configuration in which a curved compression characteristic is set in which information is maintained and each part is smoothly connected.

(B)反射率Rhiは、上記最大値又は平均値に限定されず、高輝度領域の反射率成分が出力最大値Omaxを上回らないようにDR圧縮率cを設定するのに好適な値であれば、いずれの値であってもよい。   (B) The reflectance Rhi is not limited to the maximum value or the average value, and may be a value suitable for setting the DR compression ratio c so that the reflectance component in the high luminance region does not exceed the output maximum value Omax. Any value may be used.

(C)上記覆い焼き処理において扱われる撮影画像(元画像)は、上記線形/対数画像でなくともよく、例えば、一般的なリニアセンサによる、異なるシャッタスピードや絞り値で撮影して得られた複数枚の画像から作成した広ダイナミックレンジ画像であってもよいし、ニー処理された画像(明るい画像分部(高輝度領域)にだけ所定のゲインをかけて圧縮した画像)であってもよい。   (C) The captured image (original image) handled in the dodging process does not have to be the linear / logarithmic image. For example, the captured image is obtained by capturing images with different shutter speeds or aperture values using a general linear sensor. It may be a wide dynamic range image created from a plurality of images, or a knee-processed image (an image compressed by applying a predetermined gain only to a bright image portion (high luminance region)). .

(D)上記実施形態において、照明成分L全体をDR圧縮した後、圧縮開始レベルYs未満は元画像Iを用いるという方法でなくともよく、例えば当該照明成分Lに対するDR圧縮を、圧縮開始レベルYs以上の照明成分Lに対してのみ行い(圧縮開始レベルYs未満の照明成分Lに対してはDR圧縮を行わず)、圧縮開始レベルYs未満においては、元画像Iをそのまま出力値とする方法であってもよい。   (D) In the above embodiment, after the entire illumination component L is DR-compressed, the original image I may not be used below the compression start level Ys. For example, DR compression for the illumination component L is performed at the compression start level Ys. Only the above illumination component L is performed (DR compression is not performed for the illumination component L below the compression start level Ys), and the original image I is used as an output value as it is below the compression start level Ys. There may be.

(E)上記実施形態においては、撮影画像に対する覆い焼き処理(DR圧縮処理)をデジタルカメラ1内(画像処理部6)で行う構成としているが、これに限らず、デジタルカメラ1外の所定の処理部において実行する構成としてもよい。具体的には、例えばUSB等を用いてデジタルカメラ1と直接接続(有線)又は無線LAN等によるネットワーク接続がなされた、或いはメモリカードといったストレージメディア等を用いて情報伝達可能に構成されたユーザーインターフェイスを備える所定のホスト(例えばPC(Personal Computer)やPDA(Personal Digital Assistant)において当該覆い焼き処理を行う構成としてもよい。   (E) In the above-described embodiment, the dodging process (DR compression process) for the captured image is performed in the digital camera 1 (image processing unit 6). It is good also as a structure performed in a process part. Specifically, for example, a user interface configured to be directly connected (wired) to the digital camera 1 using a USB or the like, or connected to a network by a wireless LAN or the like, or to be able to transmit information using a storage medium such as a memory card. It is good also as a structure which performs the said dodging process in predetermined hosts (for example, PC (Personal Computer) and PDA (Personal Digital Assistant) provided with these.

(F)上記実施形態においては、図4に示すように、先ず撮影画像(全体)又は照明成分(全体)のヒストグラムを算出しておき、各被写体輝度エリアをこのヒストグラムにおける輝度上の所定範囲として設定する構成としているが、例えば図5に示すように、デジタルカメラ1のモニタ部9或いは上記変形態様(E)に示すホストのモニタ等に撮影画像(又は照明成分画像)を表示し、このモニタ表示された画像における互いに明度差を強調したい箇所の範囲(少なくとも2つの範囲)を、すなわち例えば符号511、512に示す空画像や雲画像の所定範囲(指定範囲511、512)を、ユーザがマウスやペン等による所定の入力操作によって画像の空間的な範囲として指定し、この指定範囲の画像情報に基づいて被写体輝度エリアを設定する構成としてもよい。このように、上記圧縮特性設定手段(デジタルカメラ1の被写体輝度エリア設定部69及び照明成分圧縮部70、或いは上記PC等のホスト)によって、撮影画像又は照明成分(照明成分画像)における空間的な範囲が設定されるとともに、この範囲の画像に基づいて被写体輝度エリアが設定されるので、画像における明度差を強調させたい箇所の選択を、ユーザが視覚的(直感的)に容易に行えるようになる。   (F) In the above embodiment, as shown in FIG. 4, first, a histogram of the captured image (entire) or illumination component (entire) is calculated, and each subject luminance area is set as a predetermined range on the luminance in this histogram. For example, as shown in FIG. 5, a photographed image (or illumination component image) is displayed on the monitor 9 of the digital camera 1 or the host monitor shown in the modification (E). The user selects a range (at least two ranges) where the brightness difference is to be emphasized in the displayed image, that is, a predetermined range (designated range 511, 512) of a sky image or a cloud image indicated by reference numerals 511, 512, for example. Specified as a spatial range of the image by a predetermined input operation using a pen or the like, and the subject luminance area is determined based on the image information in the specified range. It may be configured to be constant. As described above, the compression characteristic setting means (the subject luminance area setting unit 69 and the illumination component compression unit 70 of the digital camera 1 or the host such as the PC) spatially captures a captured image or an illumination component (illumination component image). A range is set and the subject brightness area is set based on the image in this range, so that the user can easily (visually) intuitively select a location where the brightness difference in the image is to be emphasized. Become.

なお、上記指定範囲の画像に基づく被写体輝度エリアの設定方法は、上記実施形態で述べた撮影画像全体(照明成分全体)の情報を基に被写体輝度エリアを設定する方法と同様、すなわち指定範囲毎に該指定範囲の画像情報を基にヒストグラムを作成し、このヒストグラムから足切り演算によりピークヒストグラムを算出し、さらにこのピークヒストグラムからピークを算出し、該ピーク又はピーク近傍位置を中心とした所定範囲を被写体輝度エリアとして設定する方法であってもよい。この方法の場合、各指定範囲における画像の輝度ヒストグラムの輝度範囲やピークが同じ、或いは輝度範囲に重なり部を生じることがあるが、輝度範囲やピークが同じ(近似している)ものとなる場合は、被写体輝度エリアを設定しない(これら輝度範囲間の明度差を強調しない)通常の圧縮特性を用いたDR圧縮を行い、また、輝度範囲に重なり部を生じるような場合には、この重なり部の影響が無くなるように、例えばピークヒストグラム算出時の足切りレベル(閾値)を調整したり、被写体輝度エリア設定時の範囲を調整することが好ましい。   Note that the method of setting the subject luminance area based on the image of the specified range is the same as the method of setting the subject luminance area based on the information of the entire captured image (entire illumination component) described in the above embodiment, that is, for each specified range. A histogram is created based on the image information of the specified range, a peak histogram is calculated from the histogram by a round-off operation, a peak is further calculated from the peak histogram, and a predetermined range centered on the peak or near peak position May be set as the subject luminance area. In the case of this method, the brightness range and peak of the brightness histogram of the image in each specified range may be the same, or there may be an overlap in the brightness range, but the brightness range and peak are the same (approximate) Does not set the subject luminance area (does not emphasize the brightness difference between these luminance ranges), and performs DR compression using normal compression characteristics, and if there is an overlapping portion in the luminance range, this overlapping portion For example, it is preferable to adjust the cut-off level (threshold value) at the time of calculating the peak histogram, or to adjust the range at the time of setting the subject luminance area.

本実施形態に係る撮像装置の一例であるデジタルカメラであり、このデジタルカメラの主に撮像処理に関する概略的なブロック構成図である。It is a digital camera which is an example of the imaging device which concerns on this embodiment, and is a schematic block block diagram mainly regarding an imaging process of this digital camera. 上記デジタルカメラの画像処理部の各機能を説明するための機能ブロック図である。It is a functional block diagram for demonstrating each function of the image process part of the said digital camera. 上記画像処理部の階調変換処理による覆い焼き処理(照明成分の圧縮の様子)について説明するためのグラフ図である。It is a graph for demonstrating the dodging process (state of compression of an illumination component) by the gradation conversion process of the said image processing part. 撮影画像からのヒストグラムの作成及びヒストグラムに基づく被写体輝度エリアの設定について説明するためのグラフ図である。It is a graph for demonstrating preparation of the histogram from a picked-up image, and the setting of the object brightness | luminance area based on a histogram. 上記デジタルカメラによる覆い焼き処理による、撮影画像各部の明度差の変化の様子を説明するための模式図である。It is a schematic diagram for demonstrating the change of the brightness difference of each part of a picked-up image by the dodging process by the said digital camera. 本実施形態におけるデジタルカメラによる覆い焼き処理に関する動作の一例を示すフローチャートである。It is a flowchart which shows an example of the operation | movement regarding the dodging process by the digital camera in this embodiment. 図6に示すステップS5におけるDR圧縮処理のより詳細な動作の一例を示すフローチャートである。7 is a flowchart showing an example of a more detailed operation of the DR compression process in step S5 shown in FIG. 6. 分割測光に際しての撮像領域(測光範囲)の分割の状態を示す模式図である。It is a schematic diagram which shows the division | segmentation state of the imaging area (photometry range) at the time of division | segmentation photometry. 被写体輝度エリアの設定に関する変形態様を説明するためのグラフ図である。It is a graph for demonstrating the deformation | transformation aspect regarding the setting of a to-be-photographed object brightness | luminance area. 被写体輝度エリアの設定に関する変形態様を説明するためのグラフ図である。It is a graph for demonstrating the deformation | transformation aspect regarding the setting of a to-be-photographed object brightness | luminance area. 被写体輝度エリアの設定に関する変形態様を説明するためのグラフ図である。It is a graph for demonstrating the deformation | transformation aspect regarding the setting of a to-be-photographed object brightness | luminance area. 従来の覆い焼き処理について説明するためのグラフ図である。It is a graph for demonstrating the conventional dodging process. 従来の覆い焼き処理について説明するためのグラフ図である。It is a graph for demonstrating the conventional dodging process. 従来の覆い焼き処理における撮影画像各部の明度差の変化の様子を示す模式図である。It is a schematic diagram which shows the mode of the change of the brightness difference of each part of the picked-up image in the conventional dodging process. 従来の覆い焼き処理における照明成分の圧縮の様子を示すグラフ図である。It is a graph which shows the mode of compression of the illumination component in the conventional dodging process.

符号の説明Explanation of symbols

1 デジタルカメラ(撮像装置)
3 撮像センサ(撮像手段)
6 画像処理部
63 照明成分抽出部(照明成分抽出手段)
64 圧縮開始点設定部(第1レベル値設定手段)
65 反射率成分算出部(反射率成分抽出手段)
66 高輝度領域反射率算出部
67 最大輝度圧縮点算出部(第2レベル値設定手段)
68 ヒストグラム演算部(ヒストグラム作成手段)
69 被写体輝度エリア設定部(圧縮特性設定手段)
70 照明成分圧縮部(圧縮手段、圧縮特性設定手段)
71 画像生成部(画像生成手段)
330 圧縮特性
511、512 指定範囲(請求項4記載の空間的な所定範囲)
A1、A2 被写体輝度エリア(請求項1記載の2つの所定の領域、各領域)
Ys 圧縮開始レベル(第1レベル値)
L’max 照明圧縮レベル(第2レベル値)
1 Digital camera (imaging device)
3 Imaging sensor (imaging means)
6 Image processing unit 63 Illumination component extraction unit (illumination component extraction means)
64 Compression start point setting unit (first level value setting means)
65 Reflectivity component calculation unit (reflectance component extraction means)
66 High-intensity area reflectance calculation unit 67 Maximum luminance compression point calculation unit (second level value setting means)
68 Histogram calculation section (histogram creation means)
69 Subject luminance area setting section (compression characteristic setting means)
70 Illumination component compression unit (compression means, compression characteristic setting means)
71 Image generation unit (image generation means)
330 Compression characteristics 511, 512 Specified range (spatial predetermined range according to claim 4)
A1, A2 Subject luminance area (two predetermined areas according to claim 1, each area)
Ys Compression start level (first level value)
L'max Lighting compression level (second level value)

Claims (9)

被写体光を撮像する撮像手段と、
前記撮像手段による撮影画像から照明成分を抽出する照明成分抽出手段と、
前記撮影画像から反射率成分を抽出する反射率成分抽出手段と、
前記照明成分抽出手段によって抽出された照明成分のダイナミックレンジを所定の圧縮特性に基づいて圧縮する圧縮手段と、
前記圧縮手段によって照明成分のダイナミックレンジが圧縮されてなる圧縮照明成分と前記反射率成分抽出手段によって抽出された反射率成分とから新たな画像を生成する画像生成手段と、
前記撮影画像又は前記照明成分に対する少なくとも2つの所定の領域を設定するとともに、当該各領域間の明度差を強調する前記圧縮特性を設定する圧縮特性設定手段とを備え、
前記圧縮手段は、前記圧縮特性設定手段によって設定された圧縮特性に基づいて前記照明成分のダイナミックレンジを圧縮することを特徴とする撮像装置。
Imaging means for imaging subject light;
Illumination component extraction means for extracting an illumination component from an image captured by the imaging means;
A reflectance component extracting means for extracting a reflectance component from the captured image;
Compression means for compressing the dynamic range of the illumination component extracted by the illumination component extraction means based on a predetermined compression characteristic;
Image generation means for generating a new image from the compressed illumination component obtained by compressing the dynamic range of the illumination component by the compression means and the reflectance component extracted by the reflectance component extraction means;
A compression characteristic setting unit that sets at least two predetermined areas for the captured image or the illumination component, and sets the compression characteristic that emphasizes the brightness difference between the areas;
The image pickup apparatus, wherein the compression unit compresses a dynamic range of the illumination component based on the compression characteristic set by the compression characteristic setting unit.
前記圧縮特性設定手段は、圧縮特性を示す特性ラインの前記各領域に対応する部分を、傾きがゼロであり且つ互いに所定の圧縮量分だけ離間させた状態とする圧縮特性を設定することを特徴とする請求項1記載の撮像装置。   The compression characteristic setting means sets a compression characteristic in which a portion corresponding to each region of the characteristic line indicating the compression characteristic has a slope of zero and is separated from each other by a predetermined compression amount. The imaging apparatus according to claim 1. 前記撮影画像又は照明成分の輝度ヒストグラムを作成するヒストグラム作成手段をさらに備え、
前記圧縮特性設定手段は、輝度ヒストグラムにおける輝度上の所定範囲を前記各領域として設定することを特徴とする請求項1又は2記載の撮像装置。
A histogram creation means for creating a brightness histogram of the captured image or illumination component;
The imaging apparatus according to claim 1, wherein the compression characteristic setting unit sets a predetermined range on the luminance in the luminance histogram as each region.
前記圧縮特性設定手段は、前記撮影画像又は前記照明成分における空間的な所定範囲を設定するとともに、該所定範囲の画像に基づいて前記各領域を設定することを特徴とする請求項1〜3のいずれかに記載の撮像装置。   The compression characteristic setting unit sets a predetermined spatial range in the captured image or the illumination component, and sets each area based on the image in the predetermined range. The imaging device according to any one of the above. 前記圧縮特性設定手段は、前記輝度ヒストグラムのピークを算出し、該ピーク又はピーク近傍位置を中心とした所定範囲を前記各領域として設定することを特徴とする請求項3又は4記載の撮像装置。   5. The imaging apparatus according to claim 3, wherein the compression characteristic setting unit calculates a peak of the luminance histogram, and sets a predetermined range centered on the peak or a position near the peak as each region. 前記照明成分に対する、主被写体の所定輝度値を示す主被写体輝度以上の第1レベル値を設定する第1レベル値設定手段と、
前記照明成分に対する、前記反射率成分の高輝度領域における反射率に応じた所定の画像出力最大値以下の第2レベル値を設定する第2レベル値設定手段とをさらに備え、
前記圧縮特性設定手段は、前記各領域のうちの低輝度側の所定領域を前記第1レベル値と同レベルとし、高輝度側の所定領域を前記第2レベル値と同レベルとする圧縮特性を設定することを特徴とする請求項1〜5のいずれかに記載の撮像装置。
First level value setting means for setting a first level value equal to or higher than a main subject luminance indicating a predetermined luminance value of the main subject for the illumination component;
A second level value setting unit configured to set a second level value equal to or lower than a predetermined maximum image output value corresponding to the reflectance of the reflectance component in a high-luminance region of the reflectance component;
The compression characteristic setting means has a compression characteristic in which a predetermined area on the low luminance side of each area is set to the same level as the first level value, and a predetermined area on the high luminance side is set to the same level as the second level value. The imaging device according to claim 1, wherein the imaging device is set.
被写体光を撮像手段によって撮像する第1の工程と、
前記撮像手段による撮影画像から照明成分抽出手段によって照明成分を抽出する第2の工程と、
前記撮影画像から反射率成分抽出手段によって反射率成分を抽出する第3の工程と、
前記照明成分抽出手段により抽出された照明成分のダイナミックレンジを圧縮手段によって所定の圧縮特性に基づいて圧縮する第4の工程と、
前記圧縮手段により照明成分のダイナミックレンジが圧縮されてなる圧縮照明成分と前記反射率成分抽出手段により抽出された反射率成分とから画像生成手段によって新たな画像を生成する第5の工程と、
前記撮影画像又は前記照明成分に対する少なくとも2つの所定の領域を設定するとともに、当該各領域間の明度差を強調する前記圧縮特性を圧縮特性設定手段によって設定する第6の工程とを有し、
前記第4の工程は、圧縮手段によって、前記圧縮特性設定手段により設定された圧縮特性に基づいて前記照明成分のダイナミックレンジを圧縮する工程であることを特徴とする画像処理方法。
A first step of imaging subject light by imaging means;
A second step of extracting an illumination component by an illumination component extraction unit from an image captured by the imaging unit;
A third step of extracting a reflectance component from the photographed image by a reflectance component extracting means;
A fourth step of compressing the dynamic range of the illumination component extracted by the illumination component extraction unit based on a predetermined compression characteristic by the compression unit;
A fifth step of generating a new image by the image generation unit from the compressed illumination component obtained by compressing the dynamic range of the illumination component by the compression unit and the reflectance component extracted by the reflectance component extraction unit;
And setting at least two predetermined areas for the captured image or the illumination component, and setting the compression characteristic for enhancing the brightness difference between the areas by a compression characteristic setting means,
The image processing method according to claim 4, wherein the fourth step is a step of compressing a dynamic range of the illumination component based on a compression characteristic set by the compression characteristic setting unit by a compression unit.
前記第6の工程は、圧縮特性設定手段によって、圧縮特性を示す特性ラインの前記各領域に対応する部分を、傾きがゼロであり且つ互いに所定の圧縮量分だけ離間させた状態とする圧縮特性を設定する工程であることを特徴とする請求項7記載の画像処理方法。   The sixth step is a compression characteristic in which the compression characteristic setting means causes the portions corresponding to the respective areas of the characteristic line indicating the compression characteristic to be in a state in which the inclination is zero and they are separated from each other by a predetermined compression amount. The image processing method according to claim 7, wherein the image processing method is a step of setting. 前記撮影画像又は照明成分の輝度ヒストグラムをヒストグラム作成手段によって作成する第7の工程をさらに有し、
前記第6の工程は、圧縮特性設定手段によって、輝度ヒストグラムにおける輝度上の所定範囲を前記各領域として設定する工程であることを特徴とする請求項7又は8記載の画像処理方法。
A seventh step of creating a brightness histogram of the photographed image or illumination component by a histogram creation means;
The image processing method according to claim 7 or 8, wherein the sixth step is a step of setting a predetermined range on the luminance histogram in the luminance histogram as each region by a compression characteristic setting unit.
JP2005205952A 2005-07-14 2005-07-14 Imaging apparatus and image processing method Pending JP2007028088A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005205952A JP2007028088A (en) 2005-07-14 2005-07-14 Imaging apparatus and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005205952A JP2007028088A (en) 2005-07-14 2005-07-14 Imaging apparatus and image processing method

Publications (1)

Publication Number Publication Date
JP2007028088A true JP2007028088A (en) 2007-02-01

Family

ID=37788276

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005205952A Pending JP2007028088A (en) 2005-07-14 2005-07-14 Imaging apparatus and image processing method

Country Status (1)

Country Link
JP (1) JP2007028088A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012513172A (en) * 2008-12-19 2012-06-07 クゥアルコム・インコーポレイテッド High dynamic range image composition
US8797421B2 (en) 2008-12-19 2014-08-05 Qualcomm Incorporated System and method to selectively combine images
US9070031B2 (en) 2003-10-24 2015-06-30 Cognex Technology And Investment Llc Integrated illumination assembly for symbology reader
US9292724B1 (en) 2004-12-16 2016-03-22 Cognex Corporation Hand held symbology reader illumination diffuser with aimer optics
US9298960B2 (en) 2003-10-24 2016-03-29 Cognex Corporation Method and apparatus for providing omnidirectional lighting in a scanning device
US9329332B2 (en) 2003-10-24 2016-05-03 Cognex Corporation Light pipe illumination system and method
US9361495B2 (en) 2004-12-16 2016-06-07 Cognex Technology And Investment Llc Hand held symbology reader illumination diffuser
US9405951B2 (en) 2005-10-24 2016-08-02 Cognex Technology And Investment Llc Integrated illumination assembly for symbology reader
US9495573B2 (en) 2004-12-21 2016-11-15 Cognex Technology And Investment Corporation Low profile illumination for direct part mark readers
US9536124B1 (en) 2003-10-24 2017-01-03 Cognex Corporation Integrated illumination assembly for symbology reader
WO2021059430A1 (en) * 2019-09-26 2021-04-01 オリンパス株式会社 Image processing device, imaging device, image processing method, program, and recording medium

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9070031B2 (en) 2003-10-24 2015-06-30 Cognex Technology And Investment Llc Integrated illumination assembly for symbology reader
US9298960B2 (en) 2003-10-24 2016-03-29 Cognex Corporation Method and apparatus for providing omnidirectional lighting in a scanning device
US9329332B2 (en) 2003-10-24 2016-05-03 Cognex Corporation Light pipe illumination system and method
US9536124B1 (en) 2003-10-24 2017-01-03 Cognex Corporation Integrated illumination assembly for symbology reader
US9292724B1 (en) 2004-12-16 2016-03-22 Cognex Corporation Hand held symbology reader illumination diffuser with aimer optics
US9361495B2 (en) 2004-12-16 2016-06-07 Cognex Technology And Investment Llc Hand held symbology reader illumination diffuser
US9495573B2 (en) 2004-12-21 2016-11-15 Cognex Technology And Investment Corporation Low profile illumination for direct part mark readers
US9405951B2 (en) 2005-10-24 2016-08-02 Cognex Technology And Investment Llc Integrated illumination assembly for symbology reader
JP2012513172A (en) * 2008-12-19 2012-06-07 クゥアルコム・インコーポレイテッド High dynamic range image composition
US8797421B2 (en) 2008-12-19 2014-08-05 Qualcomm Incorporated System and method to selectively combine images
WO2021059430A1 (en) * 2019-09-26 2021-04-01 オリンパス株式会社 Image processing device, imaging device, image processing method, program, and recording medium

Similar Documents

Publication Publication Date Title
US7990443B2 (en) Image sensing apparatus and image processing method
US8363131B2 (en) Apparatus and method for local contrast enhanced tone mapping
JP4736939B2 (en) Imaging apparatus and image processing method
JP2007028088A (en) Imaging apparatus and image processing method
JP4218723B2 (en) Image processing apparatus, imaging apparatus, image processing method, and program
JP4163353B2 (en) Image processing device
US8488029B2 (en) Imaging apparatus, imaging method, integrated circuit, and storage medium
JP4720537B2 (en) Imaging device
JP2007082181A (en) Imaging apparatus and image processing method
EP2216987B1 (en) Image capturing apparatus and control method thereof
US20100201843A1 (en) Image capturing apparatus and control method thereof
JP2008104009A (en) Imaging apparatus and method
US20220124237A1 (en) Apparatus for generating high-dynamic-range image, method, and storage medium
JP2008085634A (en) Imaging apparatus and image processing method
JP5932392B2 (en) Image processing apparatus and image processing method
JP2002288650A (en) Image processing device, digital camera, image processing method and recording medium
JP2010011153A (en) Imaging apparatus, imaging method and program
JP2007174482A (en) Imaging apparatus, image processing method, and image processing program
JP4024284B1 (en) Imaging apparatus and imaging method
JP2006333113A (en) Imaging device
JP6786273B2 (en) Image processing equipment, image processing methods, and programs
JP2008219230A (en) Imaging apparatus, and image processing method
JP2008306326A (en) Image processing device and image processing method
JP5351663B2 (en) Imaging apparatus and control method thereof
JP2007142978A (en) Image processing method and imaging apparatus