JP7446827B2 - Image processing device, image processing method, and program - Google Patents

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

Info

Publication number
JP7446827B2
JP7446827B2 JP2020010807A JP2020010807A JP7446827B2 JP 7446827 B2 JP7446827 B2 JP 7446827B2 JP 2020010807 A JP2020010807 A JP 2020010807A JP 2020010807 A JP2020010807 A JP 2020010807A JP 7446827 B2 JP7446827 B2 JP 7446827B2
Authority
JP
Japan
Prior art keywords
image
dynamic range
developing
images
sdr
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2020010807A
Other languages
Japanese (ja)
Other versions
JP2021117748A (en
Inventor
直人 木村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2020010807A priority Critical patent/JP7446827B2/en
Publication of JP2021117748A publication Critical patent/JP2021117748A/en
Application granted granted Critical
Publication of JP7446827B2 publication Critical patent/JP7446827B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Studio Devices (AREA)

Description

本発明は、画像処理装置、画像処理方法、及びプログラムに関する。 The present invention relates to an image processing device, an image processing method, and a program.

ディスプレイの表示輝度が高くなることに伴い、これまで圧縮されていた高輝度側の階調を、より見た目に近い階調で再現できる画像を取得するHDR(high dynamic range:ハイダイナミックレンジ)カメラシステムが提案されている。HDRは、SDR(standard dynamic range:スタンダードダイナミックレンジ)に比べてより広いダイナミックレンジを表現することができる。HDRモニタとSDRモニタとが混在する環境を想定し、HDR画像だけでなく、SDR画像を同時に出力し記録するカメラシステムが求められている。 As the brightness of displays increases, an HDR (high dynamic range) camera system that can reproduce images with gradations closer to the visual appearance than the gradations on the high-brightness side, which have been compressed in the past, is now available. is proposed. HDR can express a wider dynamic range than SDR (standard dynamic range). Assuming an environment where HDR monitors and SDR monitors coexist, there is a need for a camera system that simultaneously outputs and records not only HDR images but also SDR images.

特許文献1には、HDR画像を現像するだけでなく、HDRとSDRとのダイナミックレンジの相関情報に基づいて、SDR画像を現像して出力する技術が開示されている。また、特許文献2には、HDR画像を第1の出力信号として出力し、現像したSDR画像と、HDR画像を所定の信号レベルで合成した画像を第2の出力信号として出力する技術が開示されている。 Patent Document 1 discloses a technology that not only develops an HDR image but also develops and outputs an SDR image based on correlation information of dynamic ranges between HDR and SDR. Further, Patent Document 2 discloses a technique for outputting an HDR image as a first output signal, and outputting an image obtained by combining a developed SDR image and an HDR image at a predetermined signal level as a second output signal. ing.

特開2016-195378号公報Japanese Patent Application Publication No. 2016-195378 特開2016-197854号公報Japanese Patent Application Publication No. 2016-197854

しかしながら、特許文献1、2に開示された技術では、複数枚の画像を入力して、それらの画像を現像し合成して出力する複数枚合成の機能を実施する場合、HDR画像の現像処理とSDR画像の現像処理とを入力された画像の枚数分実施しなければならない。そのため、画像処理に係るメモリやCPU、チップ等の処理モジュールに多大な負荷がかかってしまう。本発明は、このような事情に鑑みてなされたものであり、複数枚合成の機能を実施する場合に、効率良くHDR画像とSDR画像とを生成して記録することができる画像処理装置を提供することを目的とする。 However, in the technologies disclosed in Patent Documents 1 and 2, when performing a multi-image compositing function in which multiple images are input, developed, combined, and output, HDR image development processing and Development processing for SDR images must be performed for the number of input images. Therefore, a large load is placed on processing modules such as memory, CPU, and chip related to image processing. The present invention has been made in view of the above circumstances, and provides an image processing device that can efficiently generate and record HDR images and SDR images when implementing a function of compositing multiple images. The purpose is to

本発明に係る画像処理装置は、第1のダイナミックレンジの画像と前記第1のダイナミックレンジより広い第2のダイナミックレンジの画像とを出力する画像処理装置であって、入力画像に対して現像処理を行う現像手段と、前記現像手段により生成された複数の画像を合成する合成手段と、前記第2のダイナミックレンジの画像を前記第1のダイナミックレンジの画像に変換する変換手段とを有し、前記合成手段により複数の画像の合成を行う場合、前記現像手段により前記入力画像を現像処理して生成した前記第2のダイナミックレンジの画像と、前記合成手段により合成した前記第2のダイナミックレンジの画像を前記変換手段により変換した前記第1のダイナミックレンジの画像とを出力し、前記合成手段により複数の画像の合成を行わない場合、前記現像手段により前記入力画像を現像処理してそれぞれ生成した前記第1のダイナミックレンジの画像と前記第2のダイナミックレンジの画像とを出力することを特徴とする。 An image processing apparatus according to the present invention is an image processing apparatus that outputs an image of a first dynamic range and an image of a second dynamic range wider than the first dynamic range, and performs development processing on an input image. a compositing means for composing a plurality of images generated by the developing means; and a converting means for converting the image in the second dynamic range into an image in the first dynamic range, When a plurality of images are synthesized by the synthesizing means, an image of the second dynamic range generated by developing the input image by the developing means and an image of the second dynamic range synthesized by the synthesizing means. and an image of the first dynamic range converted by the converting means , and when the plurality of images are not combined by the combining means, the input images are developed and generated by the developing means, respectively. The present invention is characterized in that an image in the first dynamic range and an image in the second dynamic range are output .

本発明によれば、複数枚合成の機能を実施する場合に、効率良くHDR画像とSDR画像とを生成して記録することが可能となる。 According to the present invention, when performing a multiple-image compositing function, it is possible to efficiently generate and record HDR images and SDR images.

本実施形態における撮像装置の構成例を示す図である。1 is a diagram showing an example of the configuration of an imaging device according to the present embodiment. 本実施形態における画像処理部の構成例を示す図である。FIG. 3 is a diagram illustrating a configuration example of an image processing section in the present embodiment. 本実施形態における現像処理部の構成例を示す図である。FIG. 3 is a diagram illustrating a configuration example of a development processing section in the present embodiment. 複数枚ダイナミックレンジ拡大合成を説明する図である。FIG. 3 is a diagram illustrating dynamic range expansion synthesis of multiple images. スイングパノラマ合成を説明する図である。FIG. 3 is a diagram illustrating swing panoramic composition. 本実施形態におけるSDR変換処理部の構成例を示す図である。It is a figure showing an example of composition of an SDR conversion processing part in this embodiment. 本実施形態における画像処理部の動作例を示すフローチャートである。3 is a flowchart illustrating an example of the operation of the image processing unit in this embodiment. 本実施形態における現像処理の例を示すフローチャートである。It is a flowchart showing an example of development processing in this embodiment. ガンマ特性を説明する図である。FIG. 3 is a diagram illustrating gamma characteristics. 本実施形態におけるSDR変換処理の例を示すフローチャートである。It is a flowchart which shows an example of SDR conversion processing in this embodiment. ガンマ変換処理を説明する図である。FIG. 3 is a diagram illustrating gamma conversion processing. ローカルトーンマッピング処理に係る階調特性を説明する図である。FIG. 3 is a diagram illustrating gradation characteristics related to local tone mapping processing.

以下、本発明の実施形態を図面に基づいて説明する。 Embodiments of the present invention will be described below based on the drawings.

図1は、本発明の一実施形態における画像処理装置を適用した撮像装置の構成例を示すブロック図である。撮像装置は、光学系101、現像部102、A/D変換部103、画像処理部104、露光量制御部105、システム制御部106、操作部107、表示部108、記録部109、及びバス110を有する。 FIG. 1 is a block diagram showing a configuration example of an imaging device to which an image processing device according to an embodiment of the present invention is applied. The imaging device includes an optical system 101, a developing section 102, an A/D converting section 103, an image processing section 104, an exposure control section 105, a system control section 106, an operation section 107, a display section 108, a recording section 109, and a bus 110. has.

本実施形態における撮像装置は、撮像部102により撮影された画像に基づいて、画像処理部104でHDR画像とSDR画像とを生成して両画像を出力する処理を行う。また、撮像装置は、動作モードの1つとして、複数枚ダイナミックレンジ拡大合成やパノラマ合成等の複数枚合成を実施する複数枚合成モードを有する。複数枚合成モードである場合には、画像処理部104は、入力される複数枚の画像をHDR現像処理した後、複数枚のHDR画像を合成して合成HDR画像を生成し、生成した合成HDR画像をSDR変換処理することで合成SDR画像を生成する。また、複数枚合成モードでない場合には、画像処理部104は、入力される画像をHDR現像処理してHDR画像を生成するとともに、入力される画像をSDR現像処理してSDR画像を生成する。 In the imaging device according to the present embodiment, the image processing unit 104 generates an HDR image and an SDR image based on the image captured by the imaging unit 102, and performs a process of outputting both images. Furthermore, the imaging device has a multiple-image compositing mode, which performs multiple-image compositing such as multiple-image dynamic range expansion compositing and panoramic compositing, as one of the operation modes. In the multi-image composition mode, the image processing unit 104 performs HDR development processing on the input plurality of images, then synthesizes the plurality of HDR images to generate a composite HDR image, and generates a composite HDR image. A composite SDR image is generated by subjecting the image to SDR conversion processing. Furthermore, when the mode is not multiple-image composition mode, the image processing unit 104 performs HDR development processing on the input image to generate an HDR image, and also performs SDR development processing on the input image to generate an SDR image.

なお、本実施形態において、HDR画像とは、HDRモニタで取り扱うHDR規格のST2084等に記載されたOETF(optical electro transfer function)特性を適用した画像を指すものとする。また、SDR画像とは、HDR画像よりも出力レンジ(ダイナミックレンジ)が狭い画像を指すものとする。本実施形態では、HDR画像のガンマはST2084のOETF特性(以降、PQガンマと呼称)、色域をRec.2020とし、SDR画像のガンマをsRGBガンマ、色域をsRGBとして説明を行う。 Note that in this embodiment, an HDR image refers to an image to which OETF (optical electro transfer function) characteristics described in ST2084 of the HDR standard handled by an HDR monitor are applied. Furthermore, an SDR image refers to an image whose output range (dynamic range) is narrower than that of an HDR image. In this embodiment, the gamma of the HDR image is ST2084 OETF characteristic (hereinafter referred to as PQ gamma), and the color gamut is Rec. 2020, the gamma of the SDR image is sRGB gamma, and the color gamut is sRGB.

図1において、光学系101は、ズームレンズやフォーカスレンズから構成されるレンズ群、絞り調整装置、及びシャッター装置を備えている。光学系101は、撮像部102に到達する被写体像の倍率やピント位置、あるいは、光量を調整する。撮像部102は、光学系101を通過した被写体像の光束を光電変換し電気信号に変換するCCDセンサーやCMOSセンサー等の撮像素子である。A/D変換部103は、撮像部102より入力される映像信号をアナログ-デジタル変換してデジタルの画像に変換する。 In FIG. 1, an optical system 101 includes a lens group including a zoom lens and a focus lens, an aperture adjustment device, and a shutter device. The optical system 101 adjusts the magnification, focus position, or amount of light of the subject image that reaches the imaging unit 102. The imaging unit 102 is an imaging device such as a CCD sensor or a CMOS sensor that photoelectrically converts the luminous flux of the subject image that has passed through the optical system 101 into an electrical signal. The A/D conversion unit 103 performs analog-to-digital conversion on the video signal input from the imaging unit 102 to convert it into a digital image.

画像処理部104は、通常の信号処理の他に、露光量算出処理を行う。また、画像処理部104は、複数枚の画像を合成する処理やHDR画像(合成HDR画像)をSDR画像(合成SDR画像)に変換する処理等を行う。画像処理部104は、A/D変換部103から出力された画像だけでなく、記録部109から読み出した画像に対しても同様の画像処理を行うことができる。露光量制御部105は、画像処理部104によって算出された露光量に基づいて光学系101及び撮像部102を制御して、絞り、シャッタースピード、センサーのアナログゲイン等を制御する。 The image processing unit 104 performs exposure calculation processing in addition to normal signal processing. The image processing unit 104 also performs processing for compositing a plurality of images, processing for converting an HDR image (synthesized HDR image) into an SDR image (synthesized SDR image), and the like. The image processing unit 104 can perform similar image processing not only on the image output from the A/D conversion unit 103 but also on the image read out from the recording unit 109. The exposure amount control unit 105 controls the optical system 101 and the imaging unit 102 based on the exposure amount calculated by the image processing unit 104, and controls the aperture, shutter speed, analog gain of the sensor, etc.

システム制御部106は、撮像装置全体の動作を制御、統括する。また、システム制御部106は、画像処理部104で処理された画像から得られる輝度値や操作部107から送信された指示等に基づいて、光学系101や撮像部102の駆動制御も行う。表示部108は、画像処理部104で生成された画像や、記録部109から読み出した画像を表示する。表示部108は、例えば、液晶ディスプレイや有機EL(Electro Luminescence)ディスプレイである。 The system control unit 106 controls and supervises the operation of the entire imaging apparatus. Furthermore, the system control unit 106 also controls the driving of the optical system 101 and the imaging unit 102 based on the brightness value obtained from the image processed by the image processing unit 104 and instructions transmitted from the operation unit 107. The display unit 108 displays images generated by the image processing unit 104 and images read from the recording unit 109. The display unit 108 is, for example, a liquid crystal display or an organic EL (Electro Luminescence) display.

記録部109は、画像を記録する機能を有する。記録部109は、例えば、半導体メモリが搭載されたメモリカードや光磁気ディスク等の回転記録体を収容したパッケージなどを用いた情報記録媒体を含んでもよく、この情報記録媒体を着脱可能にしてもよい。バス110は、画像処理部104、システム制御部106、表示部108、及び記録部109の間で画像をやり取りするために用いられる。 The recording unit 109 has a function of recording images. The recording unit 109 may include, for example, an information recording medium using a memory card equipped with a semiconductor memory, a package containing a rotating recording medium such as a magneto-optical disk, or the information recording medium may be made removable. good. The bus 110 is used to exchange images among the image processing section 104, system control section 106, display section 108, and recording section 109.

次に、図2を参照して、本実施形態における画像処理部104について説明する。本実施形態における画像処理部104は、複数枚合成を実施する複数枚合成モードであるか否かによって、HDR現像処理して合成したHDR画像をSDR変換してSDR画像の出力とするか、SDR現像処理した画像をSDR画像の出力とするかを選択する。 Next, with reference to FIG. 2, the image processing unit 104 in this embodiment will be described. The image processing unit 104 in this embodiment performs SDR conversion on an HDR image synthesized by HDR development processing and outputs an SDR image, or outputs an SDR image depending on whether the mode is a multi-image compositing mode that performs multiple image compositing. Select whether to output the developed image as an SDR image.

図2は、本実施形態における画像処理部104の構成例を示すブロック図である。画像処理部104は、HDR現像処理部201、SDR現像処理部202、合成処理部203、SDR変換処理部204、HDR出力画像選択部205、及びSDR出力画像選択部206を有する。本実施形態において、画像処理部104に入力される入力画像は、撮像部102で取得した信号をA/D変換部103でデジタル画像に変換したR(赤)、G(緑)、B(青)の3成分によるベイヤー画像とする。 FIG. 2 is a block diagram showing a configuration example of the image processing unit 104 in this embodiment. The image processing section 104 includes an HDR development processing section 201, an SDR development processing section 202, a composition processing section 203, an SDR conversion processing section 204, an HDR output image selection section 205, and an SDR output image selection section 206. In this embodiment, the input images input to the image processing unit 104 are R (red), G (green), and B (blue) obtained by converting the signal acquired by the imaging unit 102 into digital images by the A/D conversion unit 103. ) is a Bayer image with three components.

HDR現像処理部201は、入力画像をHDR現像処理してHDR画像を生成する。SDR現像処理部202は、入力画像をSDR現像処理してSDR画像を生成する。現像処理とは、入力されたベイヤー画像から出力装置に最適なYUV画像もしくはRGB画像を生成する処理を指している。図3は、HDR現像処理部201及びSDR現像処理部202の構成例を示すブロック図である。HDR現像処理部201及びSDR現像処理部202の各々は、ホワイトバランス処理部301、ノイズリダクション処理部302、デモザイク処理部303、色マトリクス処理部304、及びガンマ処理部305を有する。HDR現像処理部201及びSDR現像処理部202は、入力画像としてベイヤー画像が入力され、出力画像としてディスプレイ等の出力装置に最適なYUV画像もしくはRGB画像を出力する。 The HDR development processing unit 201 performs HDR development processing on an input image to generate an HDR image. The SDR development processing unit 202 performs SDR development processing on the input image to generate an SDR image. The development process refers to the process of generating a YUV image or RGB image optimal for an output device from an input Bayer image. FIG. 3 is a block diagram showing a configuration example of the HDR development processing section 201 and the SDR development processing section 202. Each of the HDR development processing section 201 and the SDR development processing section 202 includes a white balance processing section 301, a noise reduction processing section 302, a demosaic processing section 303, a color matrix processing section 304, and a gamma processing section 305. The HDR development processing unit 201 and the SDR development processing unit 202 receive a Bayer image as an input image, and output a YUV image or an RGB image that is optimal for an output device such as a display as an output image.

ホワイトバランス処理部301は、入力された画像に対して、色バランスを調整するホワイトバランス処理を行う。ノイズリダクション処理部302は、入力された画像に対して、暗電流ノイズや光ショットノイズを低減するためのノイズリダクション処理を行う。ノイズリダクション処理は、例えばローパスフィルタ(LPF)やバイラテラルフィルタを用いた一般的な手法を適用すればよい。 The white balance processing unit 301 performs white balance processing to adjust color balance on the input image. The noise reduction processing unit 302 performs noise reduction processing on the input image to reduce dark current noise and optical shot noise. For the noise reduction process, for example, a general method using a low pass filter (LPF) or a bilateral filter may be applied.

デモザイク処理部303は、入力された画像に対して、ベイヤー画像からR、G、Bの3プレーン画像を生成するデモザイク処理を行う。デモザイク処理は、例えば線形補間や適応補間等の一般的な手法を適用すればよい。色マトリクス処理部304は、入力された画像に対して、センサーの分光特性から出力装置の色域に合わせるための色マトリクス処理を行う。ガンマ処理部305は、入力された信号に対して、出力装置のモニタガンマ(OETF)に合わせた信号を生成するためのガンマ特性(EOTF)で信号値を変換するガンマ処理を行う。 The demosaic processing unit 303 performs demosaic processing on the input image to generate three plane images of R, G, and B from the Bayer image. For the demosaic processing, a general method such as linear interpolation or adaptive interpolation may be applied. The color matrix processing unit 304 performs color matrix processing on the input image to match the spectral characteristics of the sensor to the color gamut of the output device. The gamma processing unit 305 performs gamma processing on the input signal to convert the signal value using gamma characteristics (EOTF) to generate a signal matching the monitor gamma (OETF) of the output device.

図2において、合成処理部203は、HDR現像処理部201で生成された複数枚のHDR画像を合成して合成HDR画像を生成する合成処理を行う。合成処理部203における合成処理については、機能に応じて合成方法が異なる。一例として、ダイナミックレンジ拡大用の複数枚ダイナミックレンジ拡大合成、及びパノラマ画像を生成するスイングパノラマ合成における合成方法について説明する。 In FIG. 2, a combination processing unit 203 performs a combination process of combining a plurality of HDR images generated by the HDR development processing unit 201 to generate a composite HDR image. Regarding the compositing process in the compositing processing unit 203, the compositing method differs depending on the function. As an example, a synthesis method for dynamic range expansion synthesis of multiple images for dynamic range expansion and swing panoramic synthesis for generating a panoramic image will be described.

複数枚ダイナミックレンジ拡大合成では、例えば、合成処理部203は、図4(a)に示すように、アンダー露出画像401、適正露出画像402、及びオーバー露出画像403の露出の異なる画像を現像処理時のガンマ処理で明るさを合わせる。その後、合成処理部203は、アンダー露出画像401、適正露出画像402、及びオーバー露出画像403を図4(b)に示すような合成比率で合成することで、1枚の時よりもダイナミックレンジの高い画像を取得する。図4(b)において、411がオーバー露出画像403に係る合成比率を示し、412が適正露出画像402に係る合成比率を示し、413がアンダー露出画像401に係る合成比率を示している。 In the multi-image dynamic range expansion synthesis, for example, as shown in FIG. 4A, the synthesis processing unit 203 develops images with different exposures: an underexposed image 401, an appropriately exposed image 402, and an overexposed image 403. Adjust brightness using gamma processing. After that, the composition processing unit 203 composes the underexposed image 401, the properly exposed image 402, and the overexposed image 403 at a composition ratio as shown in FIG. Get a high image. In FIG. 4(b), 411 indicates the composition ratio for the overexposed image 403, 412 indicates the composition ratio for the properly exposed image 402, and 413 indicates the composition ratio for the underexposed image 401.

また、スイングパノラマ合成では、例えば、図5(a)に示すような風景を1枚の画像で収めたい場合、図5(b)に示すように撮影画角をずらして撮影が行われ、画像501-1、501-2、501-3、・・・、501-Nが得られる。合成処理部203は、撮影画角をずらして撮影された複数の画像501-1~501-Nを合成することで、図5(c)に示すようなパノラマ画像511を生成する。 In addition, in swing panorama composition, for example, if you want to capture a landscape as shown in Figure 5(a) in one image, the shooting angle is shifted as shown in Figure 5(b), and the image is captured. 501-1, 501-2, 501-3, . . . , 501-N are obtained. The compositing processing unit 203 generates a panoramic image 511 as shown in FIG. 5(c) by composing a plurality of images 501-1 to 501-N taken at different photographic angles of view.

合成処理部203が実行する複数枚合成の処理は、これに限らず、複数枚の画像の画素信号を加算平均や加算することで多重露光画像を生成する合成処理や、複数枚の画像の画素信号のうち、最も明るい信号を選択して出力する比較明合成処理等がある。 The multiple-image compositing process executed by the compositing processing unit 203 is not limited to this, but includes compositing processing that generates a multiple exposure image by averaging or adding pixel signals of multiple images, and There is a comparative brightness synthesis process that selects and outputs the brightest signal among the signals.

SDR変換処理部204は、合成処理部203で複数枚のHDR画像を合成処理して生成された合成HDR画像に対して、SDR変換処理を行って合成SDR画像を生成する。図6は、SDR変換処理部204の構成例を示すブロック図である。SDR変換処理部204は、ガンマ変換部601、ローカルトーンマッピング処理部602、及び色域変換部603を有する。SDR変換処理部204は、入力画像として合成HDR画像が入力され、出力画像としてSDR変換処理した合成SDR画像を出力する。 The SDR conversion processing unit 204 performs SDR conversion processing on the combined HDR image generated by combining a plurality of HDR images in the combination processing unit 203 to generate a combined SDR image. FIG. 6 is a block diagram showing a configuration example of the SDR conversion processing section 204. The SDR conversion processing section 204 includes a gamma conversion section 601, a local tone mapping processing section 602, and a color gamut conversion section 603. The SDR conversion processing unit 204 receives a composite HDR image as an input image, and outputs a composite SDR image subjected to SDR conversion processing as an output image.

ガンマ変換部601は、入力された合成HDR画像に対して、SDR画像に対応するガンマ変換を行う。ローカルトーンマッピング処理部602は、ガンマ変換部601でガンマ変換された画像に対して、暗部や明部の明るさを変化させつつ、階調圧縮等が起きる輝度域に対してコントラストを高めるためのローカルトーンマッピング処理を行う。ガンマ変換部601及びローカルトーンマッピング処理部602は、階調変換手段の一例である。色域変換部603は、入力された合成HDR画像の色域を、出力される合成SDR画像の色域に変換する処理を行う。色域変換処理は、例えば、単純なマトリクス変換による処理でもよいし、ルックアップテーブルを用いた色域マッピング処理でもよい。色域変換部603は、色変換手段の一例である。 The gamma conversion unit 601 performs gamma conversion corresponding to the SDR image on the input composite HDR image. The local tone mapping processing unit 602 processes the image gamma-converted by the gamma conversion unit 601 to increase the contrast in the luminance range where gradation compression occurs while changing the brightness of dark and bright areas. Perform local tone mapping processing. The gamma conversion section 601 and the local tone mapping processing section 602 are examples of tone conversion means. The color gamut conversion unit 603 performs processing to convert the color gamut of the input composite HDR image into the color gamut of the output composite SDR image. The color gamut conversion process may be, for example, a simple matrix conversion process or a color gamut mapping process using a lookup table. The color gamut conversion unit 603 is an example of color conversion means.

HDR出力画像選択部205は、HDR現像処理部201で生成されたHDR画像又は合成処理部203で生成された合成HDR画像を、HDR出力画像として出力する。HDR出力画像選択部205は、複数枚合成モードである場合には合成処理部203で生成された合成HDR画像を出力し、複数枚合成モードでない場合にはHDR現像処理部201で生成されたHDR画像を出力する。 The HDR output image selection unit 205 outputs the HDR image generated by the HDR development processing unit 201 or the composite HDR image generated by the composition processing unit 203 as an HDR output image. The HDR output image selection unit 205 outputs the combined HDR image generated by the combination processing unit 203 when in the multi-image combination mode, and outputs the HDR image generated by the HDR development processing unit 201 when not in the multi-image combination mode. Output the image.

SDR出力画像選択部206は、SDR現像処理部202で生成されたSDR画像又は合成処理部203及びSDR変換処理部204により生成された合成SDR画像を、SDR出力画像として出力する。SDR出力画像選択部206は、複数枚合成モードである場合には合成処理部203及びSDR変換処理部204により生成された合成SDR画像を出力し、複数枚合成モードでない場合にはSDR現像処理部202で生成されたSDR画像を出力する。 The SDR output image selection unit 206 outputs the SDR image generated by the SDR development processing unit 202 or the composite SDR image generated by the composition processing unit 203 and the SDR conversion processing unit 204 as an SDR output image. The SDR output image selection section 206 outputs the composite SDR image generated by the composition processing section 203 and the SDR conversion processing section 204 when the mode is multi-sheet composition mode, and outputs the composite SDR image generated by the composition processing section 203 and the SDR conversion processing section 204 when the mode is not multi-sheet composition mode, and outputs the composite SDR image generated by the SDR development processing section when the mode is not multi-sheet composition mode. The SDR image generated in step 202 is output.

図7は、本実施形態における画像処理部104の動作例を示すフローチャートである。
ステップS701では、画像処理部104は、ユーザーからの入力受付の結果に応じて複数枚の画像を合成する複数枚合成モードであるか否かを判定して、HDR画像とSDR画像との出力画像の生成方法を切り替える処理を行う。複数枚合成モードであると判定した場合(YES)には、処理はステップS702へ進み、複数枚合成モードでないと判定した場合(NO)には、処理はステップS705へ進む。本実施形態では、画像処理部104は、複数枚合成モードであるか否かを、ユーザーからの入力受付の結果に応じて判定するようにしているが、入力された画像を解析することで複数枚合成モードにするか否かを判定するようにしても良い。
FIG. 7 is a flowchart showing an example of the operation of the image processing unit 104 in this embodiment.
In step S701, the image processing unit 104 determines whether the mode is a multi-image compositing mode in which multiple images are composited according to the result of receiving input from the user, and outputs an output image of an HDR image and an SDR image. Performs processing to switch the generation method. If it is determined that the mode is multi-sheet compositing mode (YES), the process proceeds to step S702, and if it is determined that it is not the multi-sheet compositing mode (NO), the process proceeds to step S705. In this embodiment, the image processing unit 104 determines whether or not the multi-image compositing mode is selected according to the result of receiving input from the user. It may be determined whether or not to set the sheet composition mode.

複数枚合成モードであると判定した場合に進むステップS702では、画像処理部104のHDR現像処理部201が、入力された複数の入力画像に対してHDR現像処理を行い、複数枚のHDR画像を生成する。 In step S702, which is proceeded when it is determined that the multi-image composition mode is selected, the HDR development processing unit 201 of the image processing unit 104 performs HDR development processing on the plurality of input images, and converts the plurality of HDR images. generate.

ステップS703では、画像処理部104の合成処理部203が、ステップS702において生成された複数枚のHDR画像に対して合成処理を行う。 In step S703, the composition processing unit 203 of the image processing unit 104 performs composition processing on the plurality of HDR images generated in step S702.

ステップS704では、画像処理部104のSDR変換処理部204が、ステップS703において複数枚のHDR画像を合成して得られた合成HDR画像に対して、SDR変換処理を行って合成SDR画像を生成する。 In step S704, the SDR conversion processing unit 204 of the image processing unit 104 performs SDR conversion processing on the combined HDR image obtained by combining the plurality of HDR images in step S703 to generate a combined SDR image. .

このステップS702からステップS704までの処理により、複数枚合成モードであると判定された場合、画像処理部104は、HDR現像処理した画像を複数枚合成した画像を出力用のHDR画像として出力する。また、画像処理部104は、複数枚合成して生成されたHDR画像をSDR変換処理したSDR画像を出力用のSDR画像として出力する。このように、複数枚合成モードでは、複数枚の現像処理をHDR画像の生成時のみ実施することで、システム負荷を低減してHDR画像とSDR画像とをともに出力することが可能となる。 If it is determined that the mode is multi-image compositing mode through the processing from step S702 to step S704, the image processing unit 104 outputs an image obtained by composing a plurality of images subjected to HDR development processing as an HDR image for output. Further, the image processing unit 104 outputs an SDR image obtained by performing SDR conversion processing on an HDR image generated by combining a plurality of images as an SDR image for output. In this manner, in the multi-image composition mode, by performing development processing on a plurality of images only when generating an HDR image, it is possible to reduce the system load and output both an HDR image and an SDR image.

次に、ステップS701において複数枚合成モードでないと判定された場合のHDR画像及びSDR画像の生成について説明する。複数枚合成モードでないと判定した場合に進むステップS705では、画像処理部104のHDR現像処理部201が、入力画像に対してHDR現像処理を行い、HDR画像を生成する。 Next, generation of an HDR image and an SDR image when it is determined in step S701 that the mode is not the multi-image composition mode will be described. In step S705, which is proceeded when it is determined that the mode is not the multi-image composition mode, the HDR development processing unit 201 of the image processing unit 104 performs HDR development processing on the input image to generate an HDR image.

ステップS706では、画像処理部104のSDR現像処理部202が、入力画像に対してSDR現像処理を行い、SDR画像を生成する。なお、HDR現像処理とSDR現像処理との実行順序は、これに限定されるものではなく、SDR現像処理を行った後にHDR現像処理を行ってもよいし、HDR現像処理とSDR現像処理とを並列して行ってもよい。 In step S706, the SDR development processing unit 202 of the image processing unit 104 performs SDR development processing on the input image to generate an SDR image. Note that the execution order of the HDR development process and the SDR development process is not limited to this, and the HDR development process may be performed after the SDR development process, or the HDR development process and the SDR development process may be performed. They may be performed in parallel.

このステップS705からステップS706までの処理により、複数枚合成モードでないと判定された場合、現像処理等のシステム負荷も少ないため、画像処理部104は、HDR現像処理した画像を出力用のHDR画像として出力する。また、画像処理部104は、SDR現像処理した画像を出力用のSDR画像として出力する。 If it is determined through the processing from step S705 to step S706 that the mode is not multi-image compositing mode, the image processing unit 104 uses the image that has undergone HDR development processing as an HDR image for output, since the system load such as development processing is also small. Output. Further, the image processing unit 104 outputs the image subjected to SDR development processing as an SDR image for output.

以上が本実施形態における画像処理部104の処理例であり、前述のような処理を実施することで、HDR画像とSDR画像との両画像の出力を効率良く行うことが可能となる。また、HDR画像とSDR画像とをともに出力するだけでなく、HDR画像のサムネイル画像や撮像装置の表示用画像としてSDR画像を採用することも可能となる。 The above is an example of processing performed by the image processing unit 104 in this embodiment, and by performing the processing described above, it is possible to efficiently output both an HDR image and an SDR image. Furthermore, in addition to outputting both the HDR image and the SDR image, it is also possible to use the SDR image as a thumbnail image of the HDR image or as a display image of the imaging device.

次に、図8を参照して、図7に示したステップS702、S705、S706でHDR現像処理部201、SDR現像処理部202が実施している現像処理について説明する。図8は、本実施形態における現像処理の例を示すフローチャートである。 Next, with reference to FIG. 8, the development processing performed by the HDR development processing section 201 and the SDR development processing section 202 in steps S702, S705, and S706 shown in FIG. 7 will be described. FIG. 8 is a flowchart showing an example of development processing in this embodiment.

ステップS801では、現像処理部のホワイトバランス処理部301が、入力された画像に対し、撮影時の光源の色温度に合わせて、色バランスを調整するホワイトバランス処理を行う。ホワイトバランス処理とは、(式1)に示すように、R、G、Bの各成分毎に異なるゲインを乗算することで画像における色バランスを調整する処理である。(式1)において、Rin、Gin、Binはホワイトバランス処理前のR、G、B信号を表し、Rout、Gout、Boutはホワイトバランス処理後のR、G、B信号を表し、GainR、GainG、GainBはR、G、Bごとのゲインを表している。 In step S801, the white balance processing unit 301 of the development processing unit performs white balance processing on the input image to adjust the color balance in accordance with the color temperature of the light source at the time of photography. White balance processing is a process of adjusting the color balance in an image by multiplying each R, G, and B component by a different gain, as shown in (Equation 1). In (Equation 1), R in , G in , and B in represent R, G, and B signals before white balance processing, and R out , G out , and B out represent R, G, and B signals after white balance processing. In the expression, Gain R , Gain G , and Gain B represent gains for each of R, G, and B.

Figure 0007446827000001
Figure 0007446827000001

ステップS802では、現像処理部のノイズリダクション処理部302が、入力された画像に対し、暗電流ノイズや光ショットノイズを低減するためのノイズリダクション処理を行う。ノイズリダクション処理は、ローパスフィルタやバイラテラルフィルタを用いた一般的な手法を用いる。 In step S802, the noise reduction processing unit 302 of the development processing unit performs noise reduction processing on the input image to reduce dark current noise and light shot noise. The noise reduction process uses a general method using a low-pass filter or bilateral filter.

ステップS803では、現像処理部のデモザイク処理部303が、入力された画像に対し、ベイヤー画像からR、G、Bの3プレーン画像を生成するデモザイク処理を行う。デモザイク処理は、線形補間や適応補間等の一般的な手法を用いる。 In step S803, the demosaic processing unit 303 of the development processing unit performs demosaic processing on the input image to generate three plane images of R, G, and B from the Bayer image. Demosaic processing uses general techniques such as linear interpolation and adaptive interpolation.

ステップS804では、現像処理部の色マトリクス処理部304が、入力された画像に対し、センサーの分光特性から出力装置の色域に合わせるための色マトリクス処理を行う。色マトリクス処理とは、例えば(式2)に示すように、3×3の係数k11~k33により構成されたマトリクスを用いて、入力信号Rin、Gin、Binに対し行列演算を行って出力の色域に合わせた信号Rout、Gout、Boutを生成する処理である。 In step S804, the color matrix processing unit 304 of the development processing unit performs color matrix processing on the input image to match the spectral characteristics of the sensor to the color gamut of the output device. Color matrix processing is, for example, as shown in (Equation 2), using a matrix composed of 3×3 coefficients k 11 to k 33 to perform matrix operations on input signals R in , G in , and B in . This process generates signals R out , G out , and B out that match the output color gamut.

Figure 0007446827000002
Figure 0007446827000002

なお、係数k11~k33は、HDR現像時とSDR現像時とで異なり、本実施形態ではHDR現像時はHDR出力の色域Rec.2020に合わせるための係数を設定し、SDR現像時はSDR出力の色域sRGBに合わせるための係数を設定する。 Note that the coefficients k 11 to k 33 differ between HDR development and SDR development, and in this embodiment, the HDR output color gamut Rec. 2020, and during SDR development, set coefficients to match the SDR output color gamut sRGB.

ステップS805では、現像処理部のガンマ処理部305が、入力された信号に対し、出力装置のモニタガンマ(OETF)に合わせた信号を生成するためのガンマ特性(EOTF)で信号値を変換するガンマ処理を行う。ガンマ特性とは、横軸を入力信号とし、縦軸を出力信号とすると、図8に例示するような曲線901を描く特性を表す。 In step S805, the gamma processing unit 305 of the development processing unit converts the signal value of the input signal using gamma characteristics (EOTF) to generate a signal matching the monitor gamma (OETF) of the output device. Perform processing. The gamma characteristic represents a characteristic that draws a curve 901 as illustrated in FIG. 8, where the horizontal axis is an input signal and the vertical axis is an output signal.

ここで、ガンマ特性は、出力装置のモニタガンマ(OETF)に合わせるために、HDR現像時とSDR現像時で異なる。本実施形態では、HDR現像時のガンマ特性は、ST2084記載のOETF特性を使用するため、(式3)に示すようなガンマ特性になる。(式3)において、p_inは、リニアである入力信号を0.0~1.0に正規化したR、G、Bの信号であり、0.0が0[cd/m2]の輝度値を示し、1.0が10000[cd/m2]の輝度値を示す。p_outは、出力信号を0.0~1.0に正規化したR、G、Bの信号であり、1.0が出力ビット数に応じた上限値に対応し、0.0が出力ビット数に応じた下限値に対応する。例えば、出力ビット数が10ビットである場合、上限値は1023であり、下限値は0である。 Here, the gamma characteristics differ between HDR development and SDR development in order to match the monitor gamma (OETF) of the output device. In this embodiment, the gamma characteristic during HDR development uses the OETF characteristic described in ST2084, so the gamma characteristic is as shown in (Equation 3). In (Equation 3), p_in is the R, G, and B signals obtained by normalizing the linear input signal to 0.0 to 1.0, and 0.0 is the luminance value of 0 [cd/m 2 ]. 1.0 indicates a luminance value of 10000 [cd/m 2 ]. p_out is an R, G, and B signal obtained by normalizing the output signal to 0.0 to 1.0, where 1.0 corresponds to the upper limit value according to the number of output bits, and 0.0 corresponds to the number of output bits. Corresponds to the lower limit value according to. For example, when the number of output bits is 10 bits, the upper limit is 1023 and the lower limit is 0.

Figure 0007446827000003
Figure 0007446827000003

また、本実施形態では、SDR現像時のガンマ特性は、sRGB規格のOETF特性を使用するため、(式4)に示すようなガンマ特性になる。(式4)において、p_inは、リニアである入力信号を0.0~1.0に正規化したR、G、Bの信号であり、0.0が0[cd/m2]の輝度値を示し、1.0が100[cd/m2]の輝度値を示す。p_outは、出力信号を0.0~1.0に正規化したR、G、Bの信号であり、1.0が出力ビット数に応じた上限値に対応し、0.0が出力ビット数に応じた下限値に対応する。例えば、出力ビット数が10ビットである場合、上限値は1023であり、下限値は0である。 Further, in this embodiment, since the OETF characteristic of the sRGB standard is used as the gamma characteristic during SDR development, the gamma characteristic is as shown in (Equation 4). In (Equation 4), p_in is the R, G, and B signals obtained by normalizing the linear input signal to 0.0 to 1.0, and 0.0 is the luminance value of 0 [cd/m 2 ]. and 1.0 indicates a luminance value of 100 [cd/m 2 ]. p_out is an R, G, and B signal obtained by normalizing the output signal to 0.0 to 1.0, where 1.0 corresponds to the upper limit value according to the number of output bits, and 0.0 corresponds to the number of output bits. Corresponds to the lower limit value according to. For example, when the number of output bits is 10 bits, the upper limit is 1023 and the lower limit is 0.

Figure 0007446827000004
Figure 0007446827000004

なお、基本ガンマ特性は前述した通りであるが、画作りに応じてカーブを変更させてもよい。また、前述した複数枚ダイナミックレンジ拡大合成を実施する際には、適正露出の画像にアンダー露出画像とオーバー露出画像の明るさを合わせるために、露出に応じてガンマを変更させる必要がある。以上が本実施形態における現像処理の処理例である。 Although the basic gamma characteristics are as described above, the curve may be changed depending on image creation. Furthermore, when performing the above-mentioned dynamic range expansion synthesis of multiple images, it is necessary to change gamma according to the exposure in order to match the brightness of the underexposed image and the overexposed image to the properly exposed image. The above is an example of the development process in this embodiment.

次に、図10を参照して、図7に示したステップS704でSDR変換処理部204が実施しているSDR変換処理について説明する。図10は、本実施形態におけるSDR変換処理の例を示すフローチャートである。 Next, with reference to FIG. 10, the SDR conversion processing performed by the SDR conversion processing unit 204 in step S704 shown in FIG. 7 will be described. FIG. 10 is a flowchart showing an example of SDR conversion processing in this embodiment.

ステップS1001では、SDR変換処理部204のガンマ変換部601が、入力されたHDR画像に対し、SDR画像に対応するガンマ変換処理を行う。ガンマ変換処理とは、前述した(式3)、(式4)に示したようにHDR画像で適用されているガンマをリニア空間に戻して、SDR画像に適用するガンマに変換する処理を指す。ガンマ変換処理では、HDR画像に適用されているガンマの逆特性であるモニタガンマ(EOTF)を適用する。 In step S1001, the gamma conversion unit 601 of the SDR conversion processing unit 204 performs gamma conversion processing corresponding to the SDR image on the input HDR image. The gamma conversion process refers to the process of returning the gamma applied to the HDR image to linear space and converting it to the gamma applied to the SDR image, as shown in (Equation 3) and (Equation 4) described above. In the gamma conversion process, monitor gamma (EOTF), which is the inverse characteristic of the gamma applied to the HDR image, is applied.

本実施形態では、(式5)に示すようなST2084記載のモニタガンマ(EOTF)を適用する。(式5)において、p_outは、HDR画像の出力信号を0.0~1.0に正規化したR、G、Bの信号であり、1.0が出力ビット数に応じた上限値に対応し、0.0が出力ビット数に応じた下限値に対応する。例えば、出力ビット数が10ビットである場合、上限値は1023であり、下限値は0である。p_inは、HDR画像をリニア空間に戻した入力信号を0.0~1.0に正規化したR、G、Bの信号であり、0.0が0[cd/m2]の輝度値を示し、1.0が10000[cd/m2]の輝度値を示す。 In this embodiment, the monitor gamma (EOTF) described in ST2084 as shown in (Formula 5) is applied. In (Equation 5), p_out is the R, G, and B signal obtained by normalizing the output signal of the HDR image to 0.0 to 1.0, and 1.0 corresponds to the upper limit according to the number of output bits. However, 0.0 corresponds to the lower limit value depending on the number of output bits. For example, when the number of output bits is 10 bits, the upper limit is 1023 and the lower limit is 0. p_in is the R, G, and B signals obtained by normalizing the input signal of the HDR image back to linear space to 0.0 to 1.0, and 0.0 corresponds to the luminance value of 0 [cd/m 2 ]. 1.0 indicates a luminance value of 10000 [cd/m 2 ].

Figure 0007446827000005
Figure 0007446827000005

(式5)により算出されるp_inは、0.0が0[cd/m2]の輝度値を示し、1.0が10000[cd/m2]の輝度値を示す。前述した(式4)に示すSDRのガンマに適用するためには、(式6)に示すように、p_inを0.0が0[cd/m2]の輝度値を示し、1.0が100[cd/m2]の輝度値を示すように正規化し直す必要がある。(式6)において、p_in’は正規化し直した信号値を指す。 For p_in calculated by (Equation 5), 0.0 indicates a luminance value of 0 [cd/m 2 ], and 1.0 indicates a luminance value of 10000 [cd/m 2 ]. In order to apply it to the SDR gamma shown in (Equation 4) mentioned above, p_in should be set as follows: 0.0 indicates a luminance value of 0 [cd/m 2 ], and 1.0 indicates a luminance value of 0 [cd/m 2 ], as shown in (Equation 6). It is necessary to normalize again to show a luminance value of 100 [cd/m 2 ]. In (Equation 6), p_in' refers to the renormalized signal value.

Figure 0007446827000006
Figure 0007446827000006

(式6)によって正規化し直した信号値p_in’を、前述した(式4)におけるp_inとして適用することでガンマ変換を実現できる。図11は、ガンマ変換をリニア空間で表現した図である。横軸は入力のリニア信号、縦軸は出力のリニア信号で表しており、点線で示した特性1101はHDR画像の入出力特性を示し、実線で示した特性1102はガンマ変換後のSDR画像の入出力特性を示す。図11に示すように、ガンマ変換後のSDR画像の入出力特性は、HDR画像の入出力特性を線形に収めたようになる。 Gamma conversion can be realized by applying the signal value p_in' renormalized by (Equation 6) as p_in in (Equation 4) described above. FIG. 11 is a diagram expressing gamma conversion in linear space. The horizontal axis represents the input linear signal, and the vertical axis represents the output linear signal. Characteristics 1101 shown by the dotted line represent the input/output characteristics of the HDR image, and characteristics 1102 shown by the solid line represent the input/output characteristics of the SDR image after gamma conversion. Indicates input/output characteristics. As shown in FIG. 11, the input/output characteristics of the SDR image after gamma conversion are the same as the input/output characteristics of the HDR image.

ステップS1002では、SDR変換処理部204のローカルトーンマッピング処理部602が、ステップS1001においてガンマ変換を行った画像に対し、ローカルトーンマッピング処理を行う。ローカルトーンマッピング処理によって、暗部や明部の明るさを変化させつつ、階調圧縮等が起きる輝度域に対し、コントラストを高める処理を実施する。ローカルトーンマッピング処理は、異なる周波数帯域の画像や領域の判別結果を用いて、局所的に階調特性が変化するようなゲインマップMAPを生成し、生成したゲインマップを参照しながら階調処理を実施するような一般的な手法を用いる。 In step S1002, the local tone mapping processing unit 602 of the SDR conversion processing unit 204 performs local tone mapping processing on the image subjected to gamma conversion in step S1001. Local tone mapping processing is used to change the brightness of dark and bright areas while increasing the contrast in the luminance range where gradation compression occurs. Local tone mapping processing uses the discrimination results of images and regions of different frequency bands to generate a gain map MAP whose gradation characteristics change locally, and performs gradation processing while referring to the generated gain map. Use common techniques such as:

図12を参照して、ステップS1002でのローカルトーンマッピング処理の一例について説明する。図12(a)には、ローカルトーンマッピングで使用する階調特性の一例を示している。入力信号は、ステップS1001においてSDRガンマに変換された信号であり、出力信号は、ローカルトーンマッピングで処理した時に目標となる出力信号である。入力されたHDR画像に対しSDR画像に対応するガンマ変換を行った信号は、図11を用いて説明したように、広いHDRのダイナミックレンジの信号をSDRのダイナミックレンジに収めているため、HDR画像で表現されていた明るさに比べて一律暗くなる。そのため、図12(a)に示す階調特性1201や階調特性1202のように、何も変化させない階調特性1203に対し、低輝度から中輝度を明るく補正する特性を作成する。階調特性1201は補正量が大きく、階調特性1202は補正量が小さい。本実施形態では、階調特性1201と階調特性1202とを合わせることで、目標とする階調特性を算出する。 An example of the local tone mapping process in step S1002 will be described with reference to FIG. 12. FIG. 12A shows an example of tone characteristics used in local tone mapping. The input signal is the signal converted to SDR gamma in step S1001, and the output signal is the target output signal when processed by local tone mapping. As explained using FIG. 11, the signal obtained by performing gamma conversion corresponding to the SDR image on the input HDR image contains the wide HDR dynamic range signal within the SDR dynamic range. It becomes uniformly darker than the brightness expressed in . Therefore, like the gradation characteristic 1201 and the gradation characteristic 1202 shown in FIG. 12(a), a characteristic that brightens low to medium luminance is created in contrast to the gradation characteristic 1203 that does not change anything. The gradation characteristic 1201 has a large correction amount, and the gradation characteristic 1202 has a small correction amount. In this embodiment, the target gradation characteristic is calculated by combining the gradation characteristic 1201 and the gradation characteristic 1202.

具体的には、ローカルトーンマッピング処理部602は、まず、図12(b)に示すようにガンマ変換後の入力画像のヒストグラムを取得し、閾値TH以下の度数を合計することで、画像に占める低輝度から中輝度の割合RATIOを算出する。次に、ローカルトーンマッピング処理部602は、割合RATIOを用いて図12(c)に示すように予め設定されたテーブルからMIX係数αを算出し、階調特性1201と階調特性1202とをαでMIXして目標とする階調特性を算出する。入力信号をx、出力信号をyとして、階調特性1201の階調特性をy=tm_a(x)、階調特性1202をy=tm_b(x)とすると、目標とする階調特性tm(x)は(式7)に示すように生成される。 Specifically, the local tone mapping processing unit 602 first obtains a histogram of the input image after gamma conversion as shown in FIG. Calculate the ratio RATIO from low brightness to medium brightness. Next, the local tone mapping processing unit 602 uses the ratio RATIO to calculate the MIX coefficient α from a preset table as shown in FIG. to calculate the target gradation characteristics. Assuming that the input signal is x and the output signal is y, the tone characteristic of tone characteristic 1201 is y=tm_a(x), and the tone characteristic 1202 is y=tm_b(x), the target tone characteristic tm(x ) is generated as shown in (Equation 7).

Figure 0007446827000007
Figure 0007446827000007

(式7)で生成した階調特性を用いて、ガンマ変換後の画像信号をpとし、ガンマ変換後の画像信号に対しローパスフィルタ処理などで生成した低周波画像をp_lpfとすると、ローカルトーンマッピングによる出力信号p_outは(式8)で表される。 Using the gradation characteristics generated by (Equation 7), let p be the image signal after gamma conversion, and let p_lpf be the low frequency image generated by low-pass filter processing etc. for the image signal after gamma conversion, then local tone mapping The output signal p_out is expressed by (Equation 8).

Figure 0007446827000008
Figure 0007446827000008

前述のようにローカルトーンマッピング処理部602がローカルトーンマッピング処理を行うことで、低輝度から中輝度の領域にかけて被写体が多い画像とそうでない場合とで、適応的に最適な明るさでSDR画像を生成することができる。 As described above, the local tone mapping processing unit 602 performs local tone mapping processing to adaptively generate SDR images with optimal brightness depending on whether there are many subjects in the low to medium brightness area or not. can be generated.

ステップS1003では、SDR変換処理部204の色域変換部603が、ステップS1001において入力されたHDR画像の色域を、出力されるSDR画像の色域に変換する色域変換処理を行う。色域変換処理は、例えば単純なマトリクス変換による処理でもよいし、ルックアップテーブルを用いた色域マッピング処理でもよい。以上が本実施形態におけるSDR変換処理の処理例である。 In step S1003, the color gamut conversion unit 603 of the SDR conversion processing unit 204 performs color gamut conversion processing to convert the color gamut of the HDR image input in step S1001 to the color gamut of the SDR image to be output. The color gamut conversion process may be, for example, a simple matrix conversion process or a color gamut mapping process using a lookup table. The above is an example of the SDR conversion process in this embodiment.

本実施形態によれば、多重露光やパノラマ合成等の複数枚合成機能を実施する複数枚合成モードでは、画像処理部104が、入力される複数枚の画像をHDR現像処理した後、複数枚のHDR画像を合成してHDR画像を生成する。また、画像処理部104が、複数枚のHDR画像を合成して生成されたHDR画像をSDR変換処理することでSDR画像を生成する。このようにすることで、複数枚合成の機能を実施する場合に、効率良くHDR画像とSDR画像とを生成して記録することが可能となる。 According to the present embodiment, in the multiple image compositing mode that implements multiple image compositing functions such as multiple exposure and panoramic compositing, the image processing unit 104 performs HDR development processing on multiple input images, and then performs HDR development processing on multiple input images. HDR images are combined to generate an HDR image. Further, the image processing unit 104 generates an SDR image by performing SDR conversion processing on an HDR image generated by combining a plurality of HDR images. By doing so, when implementing the function of combining multiple images, it becomes possible to efficiently generate and record HDR images and SDR images.

(本発明の他の実施形態)
本発明は、前述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサがプログラムを読み出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
(Other embodiments of the present invention)
The present invention provides a system or device with a program that implements one or more functions of the embodiments described above via a network or a storage medium, and one or more processors in a computer of the system or device reads and executes the program. This can also be achieved by processing. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.

なお、前記実施形態は、何れも本発明を実施するにあたっての具体化のほんの一例を示したものに過ぎず、これらによって本発明の技術的範囲が限定的に解釈されてはならないものである。すなわち、本発明はその技術思想、又はその主要な特徴から逸脱することなく、様々な形で実施することができる。 Note that the above-mentioned embodiments are merely examples of embodiments of the present invention, and the technical scope of the present invention should not be construed as limited by these embodiments. That is, the present invention can be implemented in various forms without departing from its technical idea or main features.

104:画像処理部 201:HDR現像処理部 202:SDR現像処理部 203:合成処理部 204:SDR変換処理部 205:HDR出力画像選択部 206:SDR出力画像選択部 104: Image processing section 201: HDR development processing section 202: SDR development processing section 203: Composition processing section 204: SDR conversion processing section 205: HDR output image selection section 206: SDR output image selection section

Claims (12)

第1のダイナミックレンジの画像と前記第1のダイナミックレンジより広い第2のダイナミックレンジの画像とを出力する画像処理装置であって、
入力画像に対して現像処理を行う現像手段と、
前記現像手段により生成された複数の画像を合成する合成手段と、
前記第2のダイナミックレンジの画像を前記第1のダイナミックレンジの画像に変換する変換手段とを有し、
前記合成手段により複数の画像の合成を行う場合、前記現像手段により前記入力画像を現像処理して生成した前記第2のダイナミックレンジの画像と、前記合成手段により合成した前記第2のダイナミックレンジの画像を前記変換手段により変換した前記第1のダイナミックレンジの画像とを出力し、
前記合成手段により複数の画像の合成を行わない場合、前記現像手段により前記入力画像を現像処理してそれぞれ生成した前記第1のダイナミックレンジの画像と前記第2のダイナミックレンジの画像とを出力することを特徴とする画像処理装置。
An image processing device that outputs an image of a first dynamic range and an image of a second dynamic range wider than the first dynamic range,
a developing means that performs a developing process on the input image;
compositing means for compositing a plurality of images generated by the developing means;
converting means for converting the image in the second dynamic range into an image in the first dynamic range,
When a plurality of images are synthesized by the synthesizing means, an image of the second dynamic range generated by developing the input image by the developing means and an image of the second dynamic range synthesized by the synthesizing means. outputting an image of the first dynamic range obtained by converting the image by the converting means;
When the combining means does not combine a plurality of images, the developing means develops the input image and outputs an image in the first dynamic range and an image in the second dynamic range that are generated respectively. An image processing device characterized by:
前記合成手段は、前記現像手段により複数の前記入力画像を現像処理して生成した複数の前記第2のダイナミックレンジの画像を合成することを特徴とする請求項に記載の画像処理装置。 2. The image processing apparatus according to claim 1 , wherein the synthesizing means synthesizes a plurality of images of the second dynamic range generated by developing the plurality of input images by the developing means. 前記現像手段は、
前記入力画像を現像処理して前記第1のダイナミックレンジの画像を生成する第1の現像手段と、
前記入力画像を現像処理して前記第2のダイナミックレンジの画像を生成する第2の現像手段とを有することを特徴とする請求項1又は2に記載の画像処理装置。
The developing means includes:
a first developing unit that develops the input image to generate an image of the first dynamic range;
3. The image processing apparatus according to claim 1 , further comprising a second developing unit that develops the input image to generate an image of the second dynamic range.
前記合成手段により複数の画像の合成を行うか否かに応じて、前記合成手段により合成した前記第2のダイナミックレンジの画像を前記変換手段により変換した前記第1のダイナミックレンジの画像、又は前記現像手段により前記入力画像を現像処理して生成した前記第1のダイナミックレンジの画像を出力する出力手段を有することを特徴とする請求項1~の何れか1項に記載の画像処理装置。 Depending on whether a plurality of images are synthesized by the synthesizing means, the second dynamic range image synthesized by the synthesizing means is converted by the converting means, or the first dynamic range image is converted by the converting means, or 4. The image processing apparatus according to claim 1, further comprising an output means for outputting an image of the first dynamic range generated by developing the input image using a developing means. 前記第1のダイナミックレンジの画像はSDR(standard dynamic range)画像であり、前記第2のダイナミックレンジの画像はHDR(high dynamic range)画像であることを特徴とする請求項1~の何れか1項に記載の画像処理装置。 Any one of claims 1 to 4 , wherein the first dynamic range image is an SDR (standard dynamic range) image, and the second dynamic range image is an HDR (high dynamic range) image. The image processing device according to item 1. 前記変換手段は、画像における階調を変換する階調変換手段を有することを特徴とする請求項1~の何れか1項に記載の画像処理装置。 The image processing apparatus according to any one of claims 1 to 5 , wherein the converting means includes a tone converting means for converting a tone in an image. 前記階調変換手段は、前記第2のダイナミックレンジに係るガンマを前記第1のダイナミックレンジに係るガンマに変換するガンマ変換処理を行うことを特徴とする請求項に記載の画像処理装置。 7. The image processing apparatus according to claim 6 , wherein the gradation conversion means performs gamma conversion processing to convert gamma related to the second dynamic range to gamma related to the first dynamic range. 前記階調変換手段は、ローカルトーンマッピング処理を行うことを特徴とする請求項に記載の画像処理装置。 7. The image processing apparatus according to claim 6 , wherein the tone conversion means performs local tone mapping processing. 前記階調変換手段は、入力される画像から算出したヒストグラムの結果に応じて、階調変換を行うことを特徴とする請求項に記載の画像処理装置。 9. The image processing apparatus according to claim 8 , wherein the tone conversion means performs tone conversion according to a result of a histogram calculated from an input image. 前記変換手段は、前記第2のダイナミックレンジに係る色域を前記第1のダイナミックレンジに係る色域に変換する色変換手段を有することを特徴とする請求項に記載の画像処理装置。 7. The image processing apparatus according to claim 6 , wherein the conversion means includes a color conversion means for converting a color gamut related to the second dynamic range to a color gamut related to the first dynamic range. 第1のダイナミックレンジの画像と前記第1のダイナミックレンジより広い第2のダイナミックレンジの画像とを出力する画像処理装置の画像処理方法であって、
入力画像に対して現像処理を行う現像工程と、
前記現像工程にて生成された複数の画像を合成する合成工程と、
前記第2のダイナミックレンジの画像を前記第1のダイナミックレンジの画像に変換する変換工程とを有し、
前記複数の画像の合成を行う場合、前記現像工程にて前記入力画像を現像処理して生成した前記第2のダイナミックレンジの画像と、前記合成工程にて合成した前記第2のダイナミックレンジの画像を前記変換工程にて変換した前記第1のダイナミックレンジの画像とを出力し、
前記複数の画像の合成を行わない場合、前記現像工程にて前記入力画像を現像処理してそれぞれ生成した前記第1のダイナミックレンジの画像と前記第2のダイナミックレンジの画像とを出力することを特徴とする画像処理方法。
An image processing method of an image processing device that outputs an image of a first dynamic range and an image of a second dynamic range wider than the first dynamic range,
a development step of performing development processing on the input image;
a compositing step of composing the plurality of images generated in the developing step;
a conversion step of converting the second dynamic range image into the first dynamic range image,
When synthesizing the plurality of images, an image of the second dynamic range generated by developing the input image in the developing step, and an image of the second dynamic range synthesized in the synthesizing step. and an image of the first dynamic range converted in the conversion step ,
When the plurality of images are not combined, the input image is developed in the development step and an image in the first dynamic range and an image in the second dynamic range are respectively generated. Featured image processing method.
第1のダイナミックレンジの画像と前記第1のダイナミックレンジより広い第2のダイナミックレンジの画像とを出力する画像処理装置のコンピュータに、
入力画像に対して現像処理を行う現像ステップと、
前記現像ステップにて生成された複数の画像を合成する合成ステップと、
前記第2のダイナミックレンジの画像を前記第1のダイナミックレンジの画像に変換する変換ステップとを実行させ、
前記複数の画像の合成を行う場合、前記現像ステップにて前記入力画像を現像処理して生成した前記第2のダイナミックレンジの画像と、前記合成ステップにて合成した前記第2のダイナミックレンジの画像を前記変換ステップにて変換した前記第1のダイナミックレンジの画像とを出力し、
前記複数の画像の合成を行わない場合、前記現像ステップにて前記入力画像を現像処理してそれぞれ生成した前記第1のダイナミックレンジの画像と前記第2のダイナミックレンジの画像とを出力する制御を実行させるためのプログラム。
to a computer of an image processing device that outputs an image of a first dynamic range and an image of a second dynamic range wider than the first dynamic range;
a development step of performing development processing on the input image;
a compositing step of composing the plurality of images generated in the developing step;
performing a conversion step of converting the second dynamic range image into the first dynamic range image;
When synthesizing the plurality of images, an image of the second dynamic range generated by developing the input image in the developing step, and an image of the second dynamic range synthesized in the synthesizing step. and an image of the first dynamic range converted in the conversion step ,
When the plurality of images are not synthesized, control is performed to output an image in the first dynamic range and an image in the second dynamic range, which are respectively generated by developing the input image in the developing step. A program to run.
JP2020010807A 2020-01-27 2020-01-27 Image processing device, image processing method, and program Active JP7446827B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020010807A JP7446827B2 (en) 2020-01-27 2020-01-27 Image processing device, image processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020010807A JP7446827B2 (en) 2020-01-27 2020-01-27 Image processing device, image processing method, and program

Publications (2)

Publication Number Publication Date
JP2021117748A JP2021117748A (en) 2021-08-10
JP7446827B2 true JP7446827B2 (en) 2024-03-11

Family

ID=77175674

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020010807A Active JP7446827B2 (en) 2020-01-27 2020-01-27 Image processing device, image processing method, and program

Country Status (1)

Country Link
JP (1) JP7446827B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11961206B2 (en) 2021-09-09 2024-04-16 Samsung Electronics Co., Ltd. Image generation using non-linear scaling and tone-mapping based on cubic spline curves

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010033302A (en) 2008-07-28 2010-02-12 Namco Bandai Games Inc Image generation system, program and information storage medium
JP2011010108A (en) 2009-06-26 2011-01-13 Seiko Epson Corp Imaging control apparatus, imaging apparatus, and imaging control method
JP2019096049A (en) 2017-11-22 2019-06-20 富士通株式会社 Image generation device and method
JP2019101686A (en) 2017-11-30 2019-06-24 キヤノン株式会社 Image processor, method for processing image, and program
JP2019193147A (en) 2018-04-26 2019-10-31 キヤノン株式会社 Imaging device, imaging method, and program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010033302A (en) 2008-07-28 2010-02-12 Namco Bandai Games Inc Image generation system, program and information storage medium
JP2011010108A (en) 2009-06-26 2011-01-13 Seiko Epson Corp Imaging control apparatus, imaging apparatus, and imaging control method
JP2019096049A (en) 2017-11-22 2019-06-20 富士通株式会社 Image generation device and method
JP2019101686A (en) 2017-11-30 2019-06-24 キヤノン株式会社 Image processor, method for processing image, and program
JP2019193147A (en) 2018-04-26 2019-10-31 キヤノン株式会社 Imaging device, imaging method, and program

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
木下 裕磨,HDR画像のためのパラメータを用いない逆トーンマッピング法とその応用,電子情報通信学会技術研究報告 Vol.115 No.348 IEICE Technical Report,日本,一般社団法人電子情報通信学会,2016年01月14日,第115巻 第348号,p.23~28

Also Published As

Publication number Publication date
JP2021117748A (en) 2021-08-10

Similar Documents

Publication Publication Date Title
JP5408053B2 (en) Image processing apparatus and image processing method
JP5761946B2 (en) Image processing apparatus, image processing method, and storage medium
JP4004943B2 (en) Image composition method and imaging apparatus
JP5665436B2 (en) Image processing apparatus, image processing method, and program
JP5672796B2 (en) Image processing apparatus and image processing method
JP2003046859A (en) Image pickup device and method
JP2011018141A (en) Image processing apparatus and program
JP2013058859A (en) Image processor, image processing method, and program
US11798143B2 (en) Image processing apparatus and control method thereof
JP7227719B2 (en) IMAGE PROCESSING DEVICE, IMAGING DEVICE, IMAGE PROCESSING METHOD, AND PROGRAM
JP7446827B2 (en) Image processing device, image processing method, and program
JP2008294524A (en) Image processor and image processing method
JP2001268345A (en) Image synthesizing device
JP2000307921A (en) Picture processor
JP5822606B2 (en) Image processing apparatus and image processing apparatus control method
JPH11155108A (en) Video signal processor and processing method and video camera using the same
JP2000050160A (en) Picture compositing device and its method, and storage medium storing picture composition method
JP7332325B2 (en) IMAGE PROCESSING DEVICE, IMAGING DEVICE, IMAGE PROCESSING METHOD, AND PROGRAM
US7411619B2 (en) Signal processing method, a signal processor circuit, and imaging apparatus
JP6025555B2 (en) Image processing apparatus, image processing method, and program
JP2013090094A (en) Image processing device and control method for image processing device
JP5145876B2 (en) Imaging apparatus and imaging method
JP2023154575A (en) Imaging apparatus and control method for the same, and image processing device
JP6072191B2 (en) Image processing apparatus and image processing apparatus control method
JP6021885B2 (en) Image processing apparatus, image processing method, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20230118

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20231012

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20231024

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20231211

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20240130

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20240228

R151 Written notification of patent or utility model registration

Ref document number: 7446827

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151