JP2024052316A - Image processing device, image processing method, and computer program - Google Patents

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

Info

Publication number
JP2024052316A
JP2024052316A JP2022158962A JP2022158962A JP2024052316A JP 2024052316 A JP2024052316 A JP 2024052316A JP 2022158962 A JP2022158962 A JP 2022158962A JP 2022158962 A JP2022158962 A JP 2022158962A JP 2024052316 A JP2024052316 A JP 2024052316A
Authority
JP
Japan
Prior art keywords
image
frequency
synthesis rate
real space
synthesis
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
JP2022158962A
Other languages
Japanese (ja)
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 JP2022158962A priority Critical patent/JP2024052316A/en
Publication of JP2024052316A publication Critical patent/JP2024052316A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

【課題】画質弊害を良好に抑制して複数の画像の合成を行う画像処理装置、方法及びプログラムを提供する。【解決手段】画像処理装置において、合成部202は、第1の実空間画像及び第2の実空間画像を夫々周波数空間に変換し、第1の周波数画像及び第2の周波数画像を生成する周波数空間変換手段として機能するDCT部301a、301b、第1の周波数画像と第2の周波数画像に含まれる複数の周波数成分の合成率を決定するコントラスト算出部303、合成率決定手段として機能する第1合成率算出部302及び第1合成率補正部304と、前記複数の周波数成分の合成率に基づき第1の周波数画像と第2の周波数画像を合成し、第3の周波数画像を得る合成手段として機能する加重加算部305及び第1の実空間画像のコントラスト値を算出するコントラスト算出部303を備える。合成率決定手段は、コントラスト値に応じて、複数の周波数成分の合成率を決定する。【選択図】図3[Problem] To provide an image processing device, method, and program for synthesizing a plurality of images while effectively suppressing image quality problems. [Solution] In the image processing device, a synthesizing unit 202 includes DCT units 301a and 301b functioning as frequency space transforming means for transforming a first real space image and a second real space image into frequency space, respectively, and generating a first frequency image and a second frequency image, a contrast calculation unit 303 functioning as synthesis rate determination means for determining a synthesis rate of a plurality of frequency components included in the first frequency image and the second frequency image, a first synthesis rate calculation unit 302 and a first synthesis rate correction unit 304 functioning as synthesis rate determination means, a weighted addition unit 305 functioning as synthesis means for synthesizing the first frequency image and the second frequency image based on the synthesis rate of the plurality of frequency components to obtain a third frequency image, and a contrast calculation unit 303 calculating a contrast value of the first real space image. The synthesis rate determination means determines the synthesis rate of the plurality of frequency components according to the contrast value. [Selected Figure] FIG.

Description

本発明は、画像の合成のための画像処理装置、画像処理方法及びコンピュータプログラム等に関するものである。 The present invention relates to an image processing device, an image processing method, a computer program, etc. for image synthesis.

デジタルカメラでノイズの少ない画像を得るためには、十分な露光時間を確保することが有効である。しかしながら露光時間を長くすると、手ぶれによるカメラの動きや、被写体の動きにより画像にぶれが生じる問題がある。 Ensuring a sufficient exposure time is an effective way to obtain images with little noise using a digital camera. However, if the exposure time is long, there is a problem that the image will become blurred due to camera movement caused by camera shake or subject movement.

このようなぶれに対処する方式として電子ぶれ補正方式が提案されている。電子ぶれ補正方式では、ぶれの少ない短い露光時間で撮影を複数回連続して行い、得られた複数枚の画像を合成することで低ノイズの画像を得ることができる。またこのとき、特許文献1に示されるように、画像間の差分が大きい領域で合成率を下げることにより、合成結果にて被写体が多重になる状態を抑制できる。 An electronic blur correction method has been proposed as a method for dealing with this type of blur. With electronic blur correction, a low-noise image can be obtained by taking multiple consecutive shots with short exposure times that cause less blur, and then combining the resulting images. In addition, as shown in Patent Document 1, by lowering the composition rate in areas where there is a large difference between the images, it is possible to prevent the subject from appearing multiple times in the composite result.

これにより、ぶれの少ない画像を得ることができる。特に、非特許文献1に示されるように、周波数成分ごとに画像間の差分を計算し、差分の大きい周波数成分で合成率を下げることにより、被写体を良好に維持しながら低ノイズの画像を得る方法が知られている。 This makes it possible to obtain an image with less blur. In particular, as shown in Non-Patent Document 1, a method is known in which the difference between images is calculated for each frequency component, and the synthesis rate is lowered for frequency components with large differences, thereby obtaining a low-noise image while maintaining the subject in good condition.

特開2008-99260号公報JP 2008-99260 A

Samuel W Hasinoff, Dillon Sharlet, Ryan Geiss, Andrew Adams, Jonathan T. Barron, Florian Kainz, Jiawen Chen, Marc Levoy, “Burst photography for high dynamic range and low-light imaging on mobile cameras”, ACM Transactions on Graphics, Volume 35, Issue 6, November 2016, Article No.192, pp1-12Samuel W Hasinoff, Dillon Sharlet, Ryan Geiss, Andrew Adams, Jonathan T. Barron, Florian Kainz, Jiawen Chen, Marc Levoy, "Burst photography for high dynamic range and low-light imaging on mobile cameras", ACM Transactions on Graphics, Volume 35, Issue 6, November 2016, Article No. 192, pp. 1-12

しかし、周波数成分間で異なる合成率により合成を行う場合、合成結果にて特定の周波数成分の影響が相対的に強く又は弱くなりすぎることにより、本来の被写体にない波状の模様やリンギング等の画質弊害が生じることがあった。 However, when combining frequency components with different combining rates, the influence of certain frequency components in the combined result can become relatively strong or weak, resulting in image quality problems such as wavy patterns or ringing that are not present in the original subject.

そこで本発明では、画質弊害を良好に抑制して複数の画像の合成を行うことができる画像処理装置を提供することを目的とする。 The present invention aims to provide an image processing device that can effectively suppress image quality degradation and synthesize multiple images.

本発明の画像処理装置は、
第1の実空間画像及び第2の実空間画像を夫々周波数空間に変換し、第1の周波数画像及び第2の周波数画像を生成する周波数空間変換手段と、
前記第1の周波数画像及び第2の周波数画像に含まれる複数の周波数成分の合成率を決定する合成率決定手段と、
前記複数の周波数成分の合成率に基づき前記第1の周波数画像と前記第2の周波数画像を合成し、第3の周波数画像を得る合成手段と、
前記第1の実空間画像のコントラスト値を算出するコントラスト算出手段を備え、
前記合成率決定手段は、前記コントラスト値に応じて、前記複数の周波数成分の合成率を決定することを特徴とする。
The image processing device of the present invention comprises:
a frequency space transforming means for transforming the first real space image and the second real space image into a frequency space, respectively, to generate a first frequency image and a second frequency image;
a synthesis rate determination means for determining a synthesis rate of a plurality of frequency components included in the first frequency image and the second frequency image;
a synthesis means for synthesizing the first frequency image and the second frequency image based on a synthesis rate of the plurality of frequency components to obtain a third frequency image;
a contrast calculation means for calculating a contrast value of the first real space image,
The synthesis rate determining means determines a synthesis rate of the plurality of frequency components in accordance with the contrast value.

本発明によれば、画質弊害を良好に抑制して複数の画像の合成を行うことができる画像処理装置を実現できる。 The present invention makes it possible to realize an image processing device that can effectively suppress image quality degradation and synthesize multiple images.

本発明の実施例1に係る画像処理装置の構成例を示すブロック図である。1 is a block diagram showing an example of the configuration of an image processing device according to a first embodiment of the present invention; 本発明の実施例1における画像処理部107における、複数フレームの画像信号の合成処理を行うための構成例を示す機能ブロック図である。2 is a functional block diagram showing an example of a configuration for performing synthesis processing of image signals of a plurality of frames in an image processing unit 107 according to the first embodiment of the present invention. FIG. 図2における合成部202の構成例を示す機能ブロック図である。3 is a functional block diagram showing an example of the configuration of a synthesis unit 202 in FIG. 2 . 小領域抽出部201aが抽出する複数の小領域の例を示す図である。2A to 2C are diagrams showing examples of a plurality of small regions extracted by a small region extraction unit 201a; 差分値Dと合成率SIG_RATIOとの対応関係を表すテーブルの例を示す図である。13 is a diagram showing an example of a table indicating the correspondence relationship between a difference value D and a synthesis rate SIG_RATIO. FIG. コントラスト値SIG_Cと補正係数Wとの対応関係を表すテーブルの例を示す図である。13 is a diagram showing an example of a table indicating the correspondence relationship between a contrast value SIG_C and a correction coefficient W; FIG. 合成率SIG_CORRの例を示す図である。FIG. 13 is a diagram illustrating an example of a synthesis rate SIG_CORR. 実施例2における合成部202の構成例を示す機能ブロック図である。FIG. 11 is a functional block diagram illustrating an example of the configuration of a synthesis unit 202 according to a second embodiment. 数式3により得られる合成率SIG_CORRの例を示す図である。FIG. 4 is a diagram illustrating an example of a synthesis rate SIG_CORR obtained by Equation 3. 数式4を用いた場合に得られる合成率SIG_CORRの例を示す図である。FIG. 11 is a diagram showing an example of a synthesis rate SIG_CORR obtained when using Equation 4. 実施例3における合成部202の構成例を示す機能ブロック図である。FIG. 13 is a functional block diagram illustrating an example of the configuration of a synthesis unit 202 according to a third embodiment. 実施例4における合成部202の構成例を示す機能ブロック図である。FIG. 13 is a functional block diagram illustrating an example of the configuration of a synthesis unit 202 according to a fourth embodiment.

以下、図面を参照して本発明の実施の形態を、実施例を用いて説明する。ただし、本発明は以下の実施例に限定されるものではない。なお、各図において、同一の部材または要素については同一の参照番号を付し、重複する説明は省略または簡略化する。 The following describes the embodiment of the present invention using examples with reference to the drawings. However, the present invention is not limited to the following examples. In each drawing, the same members or elements are given the same reference numbers, and duplicate descriptions are omitted or simplified.

<実施例1>
以下、図面を参照しながら本発明の好適な実施の形態について説明する。
Example 1
Hereinafter, preferred embodiments of the present invention will be described with reference to the drawings.

図1は、本発明の実施例1に係る画像処理装置としての撮像装置100の構成例を示すブロック図である。以下、実施例1の構成例について図1を参照して説明する。 FIG. 1 is a block diagram showing an example of the configuration of an imaging device 100 as an image processing device according to a first embodiment of the present invention. The example of the configuration of the first embodiment will be described below with reference to FIG. 1.

尚、実施例1では、画像処理装置として撮像装置100の例を示すが、画像処理装置はこれに限定されるものではない。例えば、パーソナルコンピュータ、アプリケーションサーバーなどの画像処理装置により本発明に係る画像処理を実行しても良い。 In the first embodiment, the imaging device 100 is shown as an example of an image processing device, but the image processing device is not limited to this. For example, the image processing according to the present invention may be performed by an image processing device such as a personal computer or an application server.

制御部101は、例えばCPUであり、撮像装置100が備える各ブロックに対する制御プログラムを後述のROM102より読み出し、後述のRAM103に展開して実行する。これにより、制御部101は、撮像装置100が備える各ブロックの動作を制御する。 The control unit 101 is, for example, a CPU, and reads out a control program for each block of the imaging device 100 from a ROM 102 (described later), and deploys it in a RAM 103 (described later) for execution. In this way, the control unit 101 controls the operation of each block of the imaging device 100.

ROM102は、電気的に消去・記録可能な不揮発性メモリであり、撮像装置100が備える各ブロックの動作プログラムに加え、各ブロックの動作に必要なパラメータ等を記憶する。 The ROM 102 is a non-volatile memory that can be electrically erased and recorded, and stores the operating programs of each block of the imaging device 100 as well as parameters required for the operation of each block.

RAM103は、書き換え可能な揮発性メモリであり、制御部101等が実行するプログラムの展開や、撮像装置100が備える各ブロックの動作で生成等されたデータの一時的な記憶等に用いられる。 RAM 103 is a rewritable volatile memory, and is used for expanding programs executed by the control unit 101, etc., and for temporarily storing data generated by the operation of each block of the imaging device 100, etc.

光学系104は、ズームレンズ、フォーカスレンズを含むレンズ群で構成され、被写体像を後述の撮像部105の撮像面上に結像する。撮像部105は、例えばCCDセンサーやCMOSセンサー等の撮像素子であり、光学系104により撮像部105の撮像面上に結像された光学像を光電変換し、得られたアナログ画像信号をA/D変換部106に出力する。 The optical system 104 is composed of a group of lenses including a zoom lens and a focus lens, and forms an image of a subject on the imaging surface of the imaging unit 105 described below. The imaging unit 105 is an imaging element such as a CCD sensor or a CMOS sensor, and photoelectrically converts the optical image formed on the imaging surface of the imaging unit 105 by the optical system 104, and outputs the obtained analog image signal to the A/D conversion unit 106.

A/D変換部106は、入力されたアナログ画像信号をデジタル画像データに変換する。A/D変換部106から出力されたデジタル画像データは、RAM103に一時的に記憶される。 The A/D conversion unit 106 converts the input analog image signal into digital image data. The digital image data output from the A/D conversion unit 106 is temporarily stored in the RAM 103.

画像処理部107は、RAM103に記憶されている画像データに対して、各種画像処理を行う。具体的には、例えば、デモザイキング処理、ホワイトバランス補正処理、ガンマ処理、トーンマッピング処理など、デジタル画像データを現像し表示・記録するための様々な画像処理を適用する。又、空間フィルタや複数枚の画像データの合成によるノイズ抑制処理など、デジタル画像データを高画質化するための様々な画像処理を適用する。 The image processing unit 107 performs various types of image processing on the image data stored in the RAM 103. Specifically, it applies various types of image processing, such as demosaicing processing, white balance correction processing, gamma processing, and tone mapping processing, to develop, display, and record digital image data. It also applies various types of image processing to improve the image quality of the digital image data, such as noise suppression processing using spatial filters and synthesis of multiple pieces of image data.

記録部108は、内蔵する記録媒体に画像データを含むデータを記録する。通信部109は、無線により外部装置と接続し、画像データ等を通信する。表示部110は、LCD等の表示デバイスを含み、RAM103に記憶されている画像や記録部108に記録されている画像を表示デバイスに表示する。又、表示部110は、ユーザーからの指示を受け付けるための操作ユーザーインターフェイスの表示等も行う。 The recording unit 108 records data including image data on a built-in recording medium. The communication unit 109 wirelessly connects to an external device and communicates image data and the like. The display unit 110 includes a display device such as an LCD, and displays images stored in the RAM 103 and images recorded in the recording unit 108 on the display device. The display unit 110 also displays an operation user interface for receiving instructions from the user.

指示入力部111は、タッチパネルやシャッターボタン等の各種の物理的な操作部材を含む入力インターフェイスであり、ユーザーによる指示の入力を受け付ける。 The instruction input unit 111 is an input interface that includes various physical operating components such as a touch panel and a shutter button, and accepts instructions input by the user.

図2は、本発明の実施例1における画像処理部107における、複数フレームの画像信号の合成処理を行うための構成例を示す機能ブロック図である。又、図3は、図2における合成部202の構成例を示す機能ブロック図である。以下、本発明の実施例1における画像信号処理の構成例について図2、図3を参照して説明する。 Fig. 2 is a functional block diagram showing an example of the configuration for performing synthesis processing of image signals of multiple frames in the image processing unit 107 in the first embodiment of the present invention. Also, Fig. 3 is a functional block diagram showing an example of the configuration of the synthesis unit 202 in Fig. 2. Below, an example of the configuration for image signal processing in the first embodiment of the present invention will be described with reference to Figs. 2 and 3.

尚、図2、図3に示される機能ブロックの一部は、撮像装置100の制御部に含まれるコンピュータとしてのCPUに、記憶媒体としてのROM102に記憶されたコンピュータプログラムを実行させることによって実現されている。しかし、それらの一部又は全部をハードウェアで実現するようにしても構わない。ハードウェアとしては、専用回路(ASIC)やプロセッサ(リコンフィギュラブルプロセッサ、DSP)などを用いることができる。 Some of the functional blocks shown in Figures 2 and 3 are realized by having a CPU, which serves as a computer included in the control unit of the imaging device 100, execute a computer program stored in a ROM 102, which serves as a storage medium. However, some or all of these may be realized by hardware. As the hardware, a dedicated circuit (ASIC) or a processor (reconfigurable processor, DSP), etc., may be used.

又、図2、図3に示される夫々の機能ブロックは、同じ筐体に内蔵されていなくても良く、互いに信号路を介して接続された別々の装置により構成しても良い。尚、図2、図3に関する上記の説明は、図8、図11、図12についても同様に当てはまる。 Furthermore, the functional blocks shown in Figures 2 and 3 do not have to be built into the same housing, and may be configured as separate devices connected to each other via signal paths. The above explanation regarding Figures 2 and 3 also applies to Figures 8, 11, and 12.

図2の画像信号の合成処理を行うブロック200は、画像信号SIG_B、画像信号SIG_R、小領域座標データを入力とし、SIG_BとSIG_Rを合成した出力信号SIG_Oを出力する。尚、実施例1では説明のため、SIG_BとSIG_Rの計2フレームの画像を合成するものとして説明する。又、SIG_B(第1の全体画像)とSIG_R(第2の全体画像)は連続撮影により得られた画像信号であり、被写体が類似しているものとする。 Block 200 in Figure 2 that performs image signal synthesis processing receives image signal SIG_B, image signal SIG_R, and small area coordinate data as inputs, and outputs output signal SIG_O that synthesizes SIG_B and SIG_R. For the sake of explanation, in Example 1, it will be described as synthesizing a total of two frames of images, SIG_B and SIG_R. Also, SIG_B (first overall image) and SIG_R (second overall image) are image signals obtained by continuous shooting, and are assumed to have similar subjects.

小領域抽出部201aは、小領域座標データを参照して画像信号SIG_Bから小領域画像信号SIG_B_P(第1の実空間画像)を抽出する。ここで、小領域座標データ及び小領域抽出部201aの具体的な動作について図4を用いて説明する。図4は、小領域抽出部201aが抽出する複数の小領域の例を示す図である。 The small region extraction unit 201a extracts a small region image signal SIG_B_P (first real space image) from the image signal SIG_B by referring to the small region coordinate data. Here, the small region coordinate data and the specific operation of the small region extraction unit 201a will be described with reference to FIG. 4. FIG. 4 is a diagram showing an example of multiple small regions extracted by the small region extraction unit 201a.

図4において、複数の小領域は水平垂直方向に夫々複数並んだ状態であり、図4では、複数のうち一部を示している。複数の小領域画像信号SIG_B_Pは、図4に示されるように、画像信号SIG_Bを所定のサイズの矩形にブロック分割した状態で抽出される。所定のサイズの矩形とは、例えば、水平方向に16画素かつ垂直方向に16画素のサイズの矩形である。 In FIG. 4, the multiple small regions are arranged in both the horizontal and vertical directions, and FIG. 4 shows only a portion of the multiple small regions. As shown in FIG. 4, the multiple small region image signals SIG_B_P are extracted by dividing the image signal SIG_B into rectangular blocks of a predetermined size. A rectangle of a predetermined size is, for example, a rectangle of 16 pixels horizontally and 16 pixels vertically.

ここで、小領域座標データは、上述の小領域の左上の座標を示すデータである。小領域座標データは、例えば、クロック回路により上述の座標となるように各小領域について順次算出され、小領域抽出部201aに順次入力される。小領域抽出部201aは、小領域座標データに示される座標を小領域の左上として、順次前述の所定のサイズで小領域を抽出する。 The small area coordinate data here is data indicating the coordinates of the upper left corner of the above-mentioned small area. The small area coordinate data is calculated for each small area in sequence, for example, by a clock circuit so as to obtain the above-mentioned coordinates, and is input in sequence to the small area extraction unit 201a. The small area extraction unit 201a takes the coordinates indicated in the small area coordinate data as the upper left corner of the small area, and sequentially extracts small areas of the above-mentioned predetermined size.

これにより、小領域抽出部201aは、図4に示す位置関係で画像信号SIG_B(第1の全体画像)から複数の小領域画像信号SIG_B_P(第1の実空間画像)を順次抽出することができる。以上が小領域座標データ及び小領域抽出部201aの具体的な動作についての説明である。 This allows the small region extraction unit 201a to sequentially extract multiple small region image signals SIG_B_P (first real space image) from the image signal SIG_B (first overall image) in the positional relationship shown in FIG. 4. This concludes the explanation of the small region coordinate data and the specific operation of the small region extraction unit 201a.

図2の説明に戻る。小領域抽出部201bは、小領域抽出部201aと同様の動作により、小領域座標データを参照して画像信号SIG_R(第2の全体画像)から小領域画像信号SIG_R_P(第2の実空間画像)を抽出する。 Returning to the explanation of FIG. 2, the small region extraction unit 201b operates in a similar manner to the small region extraction unit 201a, and extracts a small region image signal SIG_R_P (second real space image) from the image signal SIG_R (second overall image) by referring to the small region coordinate data.

ここで、小領域抽出部201aと小領域抽出部201bは画像から小領域画像を抽出する小領域抽出手段として機能しており、夫々第1の全体画像から第1の実空間画像を抽出し、第1の全体画像とは異なる第2の全体画像から第2の実空間画像を抽出する。 Here, the small area extraction unit 201a and the small area extraction unit 201b function as a small area extraction means for extracting a small area image from an image, and respectively extract a first real space image from a first overall image and extract a second real space image from a second overall image different from the first overall image.

合成部202は、小領域画像信号SIG_B_P(第1の実空間画像)と小領域画像信号SIG_R_P(第2の実空間画像)を合成し、小領域画像信号SIG_M_P(第3の実空間画像)を生成する。尚、合成部202には小領域座標データが示す各座標の小領域画像信号SIG_B_Pに夫々対応する同じ座標の小領域画像信号SIG_R_Pが入力されるものする。例えば、遅延回路による制御により小領域画像信号SIG_B_Pと対応する同じ座標の小領域画像信号SIG_R_Pを入力することができる。 The synthesis unit 202 synthesizes the small area image signal SIG_B_P (first real space image) and the small area image signal SIG_R_P (second real space image) to generate a small area image signal SIG_M_P (third real space image). Note that the synthesis unit 202 receives the small area image signal SIG_R_P of the same coordinates corresponding to the small area image signal SIG_B_P of each coordinate indicated by the small area coordinate data. For example, it is possible to input the small area image signal SIG_R_P of the same coordinates corresponding to the small area image signal SIG_B_P by control using a delay circuit.

小領域配置部203は、小領域座標データを元に小領域画像信号SIG_M_P(第3の実空間画像)を配置し、SIG_O(第3の全体画像)を出力する。ここで、小領域配置部203は、複数の小領域画像を配置して全体画像を生成する小領域配置手段として機能しており、複数の第3の実空間画像を配置して第3の全体画像を生成する。 The small area placement unit 203 places a small area image signal SIG_M_P (third real space image) based on the small area coordinate data, and outputs SIG_O (third overall image). Here, the small area placement unit 203 functions as a small area placement means that places multiple small area images to generate an overall image, and places multiple third real space images to generate the third overall image.

具体的には、小領域配置部203は出力信号SIG_O中の小領域座標データの示す座標を左上とした領域を、小領域画像信号SIG_M_Pで置換し、出力信号SIG_Oを更新して出力する。これを繰り返すことで、図4にて説明した位置関係をなるように小領域画像信号SIG_M_Pを順次配置できる。 Specifically, the small region placement unit 203 replaces the region in the output signal SIG_O whose upper left corner is the coordinate indicated by the small region coordinate data with the small region image signal SIG_M_P, updates the output signal SIG_O, and outputs it. By repeating this process, the small region image signals SIG_M_P can be sequentially placed so as to achieve the positional relationship described in FIG. 4.

尚、小領域配置部203には、小領域座標データが示す各座標の小領域画像信号SIG_B_Pに夫々対応する小領域画像信号SIG_M_Pが入力されるものする。これにより、小領域抽出部201aにて画像信号SIG_Bから小領域画像信号SIG_B_Pを抽出したときの領域と同じ領域に小領域画像信号SIG_M_Pを配置できる。 The small region placement unit 203 receives the small region image signal SIG_M_P corresponding to the small region image signal SIG_B_P at each coordinate indicated by the small region coordinate data. This allows the small region image signal SIG_M_P to be placed in the same region as when the small region extraction unit 201a extracted the small region image signal SIG_B_P from the image signal SIG_B.

図2の画像信号の合成処理を行うブロックは、全ての小領域座標データに対して小領域抽出部201aや小領域抽出部201bから小領域配置部203までの処理を行うことで、最終的な出力信号SIG_Oを生成できる。尚、全ての小領域座標データとは例えば、画像信号SIG_Bや画像信号SIG_Rの全域から小領域を抽出するための全ての座標を示す小領域座標データである。以上が図2の画像信号の合成処理を行うブロックの説明である。 The block that performs the synthesis process of the image signal in FIG. 2 performs processing on all the small area coordinate data from the small area extraction unit 201a and the small area extraction unit 201b to the small area placement unit 203, thereby generating the final output signal SIG_O. Note that all the small area coordinate data is, for example, small area coordinate data that indicates all the coordinates for extracting small areas from the entire area of the image signal SIG_B or the image signal SIG_R. This concludes the explanation of the block that performs the synthesis process of the image signal in FIG. 2.

図3は、合成部202の構成例を示しており、各ブロックの動作について説明する。DCT部301aは、小領域画像信号SIG_B_P(第1の実空間画像)を離散コサイン変換(周波数変換)し、周波数空間信号SIG_B_F(第1の周波数画像)を出力する。離散コサイン変換は、小領域画像信号SIG_B_Pの水平方向と垂直方向に対し夫々行う。 Figure 3 shows an example of the configuration of the synthesis unit 202, and the operation of each block will be described. The DCT unit 301a performs discrete cosine transform (frequency transform) on the small-area image signal SIG_B_P (first real space image) and outputs a frequency space signal SIG_B_F (first frequency image). The discrete cosine transform is performed on both the horizontal and vertical directions of the small-area image signal SIG_B_P.

これにより、小領域画像信号SIG_B_Pが前述のように水平方向に16画素かつ垂直方向に16画素のサイズの矩形の場合、周波数空間信号SIG_B_Fにて例えば水平方向に16成分、垂直方向に16成分の周波数成分が得られる。又、水平方向と垂直方向の成分の組み合わせにより、周波数空間信号SIG_B_Fでは合計で256成分の周波数成分が得られる。 As a result, if the small region image signal SIG_B_P is a rectangle with a size of 16 pixels horizontally and 16 pixels vertically as described above, the frequency space signal SIG_B_F will have, for example, 16 frequency components horizontally and 16 frequency components vertically. Furthermore, by combining the horizontal and vertical components, the frequency space signal SIG_B_F will have a total of 256 frequency components.

DCT部301bは、DCT部301aと同様の動作により、小領域画像信号SIG_R_P(第2の実空間画像)を離散コサイン変換(周波数変換)し、周波数空間信号SIG_R_F(第2の周波数画像)を出力する。 The DCT unit 301b performs a discrete cosine transform (frequency transform) on the small region image signal SIG_R_P (second real space image) by performing an operation similar to that of the DCT unit 301a, and outputs a frequency space signal SIG_R_F (second frequency image).

ここで、DCT部301aとDCT部301bは、第1の実空間画像及び第2の実空間画像を夫々周波数空間に変換し第1の周波数画像及び第2の周波数画像を生成する周波数空間変換ステップを実行する周波数空間変換手段として機能している。 Here, the DCT unit 301a and the DCT unit 301b function as a frequency space transformation means that executes a frequency space transformation step of transforming the first real space image and the second real space image into frequency space, respectively, to generate a first frequency image and a second frequency image.

第1合成率算出部302は、周波数空間信号SIG_B_Fと周波数空間信号SIG_R_Fに基づき、周波数成分ごとの合成率SIG_RATIOを算出して出力する。具体的には、第1合成率算出部302は先ず、周波数空間信号SIG_B_Fと周波数空間信号SIG_R_Fとの差分値Dを周波数成分ごとに算出する。 The first combination ratio calculation unit 302 calculates and outputs a combination ratio SIG_RATIO for each frequency component based on the frequency space signal SIG_B_F and the frequency space signal SIG_R_F. Specifically, the first combination ratio calculation unit 302 first calculates a difference value D between the frequency space signal SIG_B_F and the frequency space signal SIG_R_F for each frequency component.

次に第1合成率算出部302は差分値Dと合成率との対応関係を表すテーブルを参照し、差分値Dが小さい場合に合成率が大きく、差分値Dが大きい場合に合成率が小さくなるように周波数成分ごとに合成率SIG_RATIOを算出する。 Next, the first synthesis rate calculation unit 302 refers to a table showing the correspondence between the difference value D and the synthesis rate, and calculates the synthesis rate SIG_RATIO for each frequency component so that the synthesis rate is large when the difference value D is small and the synthesis rate is small when the difference value D is large.

図5は、差分値Dと合成率SIG_RATIOとの対応関係を表すテーブルの例を示す図である。図5のグラフの横軸は差分値Dであり、縦軸は合成率SIG_RATIOを示す。尚、合成率SIG_RATIOは値域が0~1の値として示している。 Figure 5 is a diagram showing an example of a table showing the correspondence between the difference value D and the synthesis rate SIG_RATIO. The horizontal axis of the graph in Figure 5 shows the difference value D, and the vertical axis shows the synthesis rate SIG_RATIO. Note that the synthesis rate SIG_RATIO is shown as a value range of 0 to 1.

コントラスト算出部303は、小領域画像信号SIG_B_Pからコントラスト値SIG_Cを算出して出力する。ここで、コントラスト算出部303は、複数の周波数成分の合成率を決定するコントラスト算出ステップを実行するコントラスト算出手段として機能している。 The contrast calculation unit 303 calculates and outputs a contrast value SIG_C from the small region image signal SIG_B_P. Here, the contrast calculation unit 303 functions as a contrast calculation means that executes a contrast calculation step that determines the synthesis rate of multiple frequency components.

具体的には、コントラスト算出部303は先ず、小領域画像信号SIG_B_Pに含まれる複数の画素から最大の画素値と最小の画素値を求める。次に、コントラスト算出部303は、最大の画素値から最小の画素値を減算した値をコントラスト値SIG_Cとして出力する。即ち、第1の実空間画像の最大画素値と最小画素値との差分により前記コントラスト値を算出する。 Specifically, the contrast calculation unit 303 first finds the maximum pixel value and the minimum pixel value from the multiple pixels contained in the small region image signal SIG_B_P. Next, the contrast calculation unit 303 outputs a value obtained by subtracting the minimum pixel value from the maximum pixel value as the contrast value SIG_C. In other words, the contrast value is calculated from the difference between the maximum pixel value and the minimum pixel value of the first real space image.

第1合成率補正部304は、コントラスト値SIG_Cを元に周波数成分ごとの合成率SIG_RATIOを補正し、補正後の周波数成分ごとの合成率SIG_CORRを出力する。具体的には、第1合成率補正部304は先ず、コントラスト値と補正係数との対応関係を表すテーブルを参照し、コントラスト値SIG_Cが小さい場合に補正が弱く、コントラスト値SIG_Cが大きい場合に補正が強くなるように補正係数Wを算出する。 The first synthesis rate correction unit 304 corrects the synthesis rate SIG_RATIO for each frequency component based on the contrast value SIG_C, and outputs the synthesis rate SIG_CORR for each frequency component after correction. Specifically, the first synthesis rate correction unit 304 first refers to a table showing the correspondence between contrast values and correction coefficients, and calculates a correction coefficient W so that the correction is weak when the contrast value SIG_C is small and the correction is strong when the contrast value SIG_C is large.

尚、補正係数Wは値域が0~1の値であり、値が0に近いほど補正が強いことを示す。図6は、コントラスト値SIG_Cと補正係数Wとの対応関係を表すテーブルの例を示す図である。図6のグラフの横軸はコントラスト値SIG_Cであり、縦軸は補正係数Wを示す。 The correction coefficient W has a value range of 0 to 1, and the closer the value is to 0, the stronger the correction. FIG. 6 is a diagram showing an example of a table showing the correspondence between the contrast value SIG_C and the correction coefficient W. The horizontal axis of the graph in FIG. 6 represents the contrast value SIG_C, and the vertical axis represents the correction coefficient W.

次に、第1合成率補正部304は、周波数成分ごとの合成率SIG_RATIOを元に、全周波数成分の合成率SIG_RATIOの平均値Mを算出する。次に、第1合成率補正部304は、補正係数Wと平均値Mに基づいて、周波数成分ごとの合成率SIG_RATIOを補正して出力する。 Next, the first synthesis rate correction unit 304 calculates the average value M of the synthesis rates SIG_RATIO of all frequency components based on the synthesis rate SIG_RATIO for each frequency component. Next, the first synthesis rate correction unit 304 corrects the synthesis rate SIG_RATIO for each frequency component based on the correction coefficient W and the average value M, and outputs the corrected synthesis rate SIG_RATIO.

具体的には、第1合成率補正部304は周波数成分ごとの合成率SIG_RATIOに対して例えば以下の数式1に示す演算を行い、補正後の周波数成分ごとの合成率SIG_CORRを得て出力する。
SIG_CORR=W×SIG_RATIO+(1-W)×M・・・(数式1)
Specifically, the first synthesis rate correction unit 304 performs a calculation, for example, as shown in the following Equation 1 on the synthesis rate SIG_RATIO for each frequency component, and obtains and outputs the synthesis rate SIG_CORR for each frequency component after correction.
SIG_CORR=W×SIG_RATIO+(1−W)×M (Formula 1)

図7は、合成率SIG_CORRの例を示す図であり、第1合成率算出部302の処理や、第1合成率補正部304の処理により得られる合成率SIG_CORRの例を示している。図7のグラフの横軸は差分値Dであり、縦軸は合成率SIG_CORRを示す。 Figure 7 is a diagram showing an example of the synthesis rate SIG_CORR, and shows an example of the synthesis rate SIG_CORR obtained by processing of the first synthesis rate calculation unit 302 and processing of the first synthesis rate correction unit 304. The horizontal axis of the graph in Figure 7 represents the difference value D, and the vertical axis represents the synthesis rate SIG_CORR.

又、実線701はコントラスト値SIG_Cが最小のときの合成率SIG_CORRの例を示す。又、破線702はコントラスト値SIG_Cが最大のときの合成率SIG_CORRの例を示す。又、一点鎖線703はコントラスト値SIG_Cが中間状態のときの合成率SIG_CORRの例を示す。 The solid line 701 shows an example of the combination rate SIG_CORR when the contrast value SIG_C is at its minimum. The dashed line 702 shows an example of the combination rate SIG_CORR when the contrast value SIG_C is at its maximum. The dashed line 703 shows an example of the combination rate SIG_CORR when the contrast value SIG_C is in an intermediate state.

このように、合成率SIG_CORRではコントラスト値SIG_Cが大きいほど差分値Dによる値の変動が小さくなり、コントラスト値SIG_Cが小さい場合と比べ周波数成分間でより一律な合成率(合成率M)になる。即ち、コントラスト値が大きいほど複数の周波数成分の合成率が一律に近づくように複数の周波数成分の合成率を決定している。尚、コントラスト値が大きいほど複数の周波数成分のうち少なくとも1つの周波数成分の合成率が小さくなるように複数の周波数成分の合成率を決定しても良い。 In this way, in the synthesis rate SIG_CORR, the greater the contrast value SIG_C, the smaller the fluctuation in value due to the difference value D, resulting in a more uniform synthesis rate (synthesis rate M) between frequency components compared to when the contrast value SIG_C is small. In other words, the synthesis rate of the multiple frequency components is determined so that the synthesis rate of the multiple frequency components approaches uniformity as the contrast value increases. Note that the synthesis rate of the multiple frequency components may be determined so that the synthesis rate of at least one of the multiple frequency components decreases as the contrast value increases.

ここで、第1合成率算出部302と第1合成率補正部304は、第1の周波数画像及び第2の周波数画像に含まれる複数の周波数成分の合成率を決定する合成率決定ステップを実行する合成率決定手段として機能している。又、本実施例では、合成率決定手段は、前記コントラスト値に応じて、コントラスト値が大きいほど複数の周波数成分間で合成率が一律に近づくように複数の周波数成分の合成率を決定する。 Here, the first synthesis rate calculation unit 302 and the first synthesis rate correction unit 304 function as synthesis rate determination means for executing a synthesis rate determination step for determining the synthesis rate of the multiple frequency components included in the first frequency image and the second frequency image. In addition, in this embodiment, the synthesis rate determination means determines the synthesis rate of the multiple frequency components according to the contrast value such that the synthesis rate between the multiple frequency components approaches a uniform value as the contrast value increases.

加重加算部305は、周波数成分ごとの合成率SIG_CORRに基づき、周波数空間信号SIG_B_Fと周波数空間信号SIG_R_Fを合成して周波数空間信号SIG_M_F(第3の周波数画像)を生成し、出力する。ここで、加重加算部305は、複数の周波数成分の合成率に基づき第1の周波数画像と第2の周波数画像を合成し、第3の周波数画像を得る合成ステップを実行する合成手段として機能している。 The weighted addition unit 305 synthesizes the frequency space signal SIG_B_F and the frequency space signal SIG_R_F based on the synthesis rate SIG_CORR for each frequency component to generate and output the frequency space signal SIG_M_F (third frequency image). Here, the weighted addition unit 305 functions as a synthesis means that executes a synthesis step of synthesizing the first frequency image and the second frequency image based on the synthesis rate of multiple frequency components to obtain a third frequency image.

具体的には、加重加算部305は周波数成分ごとに例えば以下の数式2に示す演算を行い、周波数空間信号SIG_M_Fを生成する。
SIG_M_F={(2-SIG_CORR)×SIG_B_F+SIG_CORR×SIG_R_F}÷2・・・(数式2)
Specifically, the weighted addition unit 305 performs the calculation shown in the following Equation 2 for each frequency component, for example, to generate a frequency space signal SIG_M_F.
SIG_M_F={(2-SIG_CORR)×SIG_B_F+SIG_CORR×SIG_R_F}÷2 (Formula 2)

逆DCT部306は、周波数空間信号SIG_M_F(第3の周波数画像)に対し逆離散コサイン変換を行い、実空間の小領域画像信号SIG_M_P(第3の実空間画像)を出力する。逆離散コサイン変換は、周波数空間信号SIG_M_Fの成分の水平方向と垂直方向に対し夫々行う。ここで、逆DCT部306は、第3の周波数画像を実空間に変換し第3の実空間画像を生成する実空間変換手段として機能している。 The inverse DCT unit 306 performs an inverse discrete cosine transform on the frequency space signal SIG_M_F (third frequency image) and outputs a small region image signal SIG_M_P (third real space image) in real space. The inverse discrete cosine transform is performed on the horizontal and vertical components of the frequency space signal SIG_M_F. Here, the inverse DCT unit 306 functions as a real space transforming means that transforms the third frequency image into real space and generates a third real space image.

以上が図3の合成部202の説明である。これにより、画像処理部107は画像信号SIG_Bのコントラストが高い部分にて、合成率を周波数成分間で一律の状態(合成率M)に近づけることができる。 The above is an explanation of the synthesis unit 202 in FIG. 3. As a result, the image processing unit 107 can bring the synthesis rate closer to a uniform state (synthesis rate M) between frequency components in parts of the image signal SIG_B where the contrast is high.

画像のコントラストが高い部分では、周波数空間信号SIG_B_Fや周波数空間信号SIG_R_Fにて周波数成分の振幅が大きくなりやすく、これに伴い画質弊害であるリンギングの振幅が大きくなり目立ちやすい。しかし本実施例によれば、画像のコントラストが高い部分にて合成率を周波数成分間で一律の状態(合成率M)に近づけることができる。 In high-contrast areas of an image, the amplitude of the frequency components tends to be large in the frequency space signal SIG_B_F and the frequency space signal SIG_R_F, and as a result, the amplitude of ringing, which is an image quality hazard, tends to be large and noticeable. However, according to this embodiment, the synthesis rate can be made closer to a uniform state (synthesis rate M) between frequency components in high-contrast areas of an image.

それにより、合成結果にて特定の周波数成分の影響が相対的に強く又は弱くなりすぎる状態を抑制し、リンギングの発生を抑制できる。又、コントラストが低い部分では、被写体を良好に維持しながら合成を行いやすくできる。 This prevents the influence of certain frequency components from becoming relatively too strong or too weak in the composite result, and suppresses the occurrence of ringing. Also, in areas with low contrast, it makes it easier to composite while maintaining the subject in good condition.

尚、実施例1では数式1に示す方法にて周波数成分ごとの合成率を調整したが、本実施例はこれに限られず、画像のコントラストが高い場合に合成率を周波数成分間で一律の状態に近づけることが可能であれば、どのような方法で合成率を調整しても良い。 In the first embodiment, the synthesis rate for each frequency component is adjusted using the method shown in Equation 1. However, this embodiment is not limited to this, and the synthesis rate may be adjusted by any method as long as it is possible to make the synthesis rate approach a uniform state between frequency components when the contrast of the image is high.

例えば、第1合成率補正部304は数式1にて説明した方法の代わりに、周波数成分ごとの合成率SIG_RATIOに対して空間方向にローパスフィルタを施すことにより、補正後の周波数成分ごとの合成率SIG_CORRを得ても良い。 For example, instead of the method described in Equation 1, the first synthesis rate correction unit 304 may apply a low-pass filter in the spatial direction to the synthesis rate SIG_RATIO for each frequency component to obtain the corrected synthesis rate SIG_CORR for each frequency component.

又、実施例1ではコントラスト値を小領域画像信号SIG_B_Pに基づき算出する例を示したが、本実施例はこれに限られない。例えば、小領域画像信号SIG_R_Pに基づき算出してもよいし、小領域画像信号SIG_B_Pと小領域画像信号SIG_R_Pの両方に基づきコントラスト値を算出しても良い。 In addition, in the first embodiment, an example was shown in which the contrast value was calculated based on the small-area image signal SIG_B_P, but this embodiment is not limited to this. For example, the contrast value may be calculated based on the small-area image signal SIG_R_P, or may be calculated based on both the small-area image signal SIG_B_P and the small-area image signal SIG_R_P.

又、実施例1では離散コサイン変換により周波数空間に変換した信号を合成する例を示したが、周波数成分の合成を行う方法であれば、どのような方法であっても良い。例えば、フーリエ変換により周波数空間に変換した信号を合成する場合であっても良い。 In addition, in the first embodiment, an example is shown in which signals transformed into frequency space by discrete cosine transform are synthesized, but any method for synthesizing frequency components may be used. For example, signals transformed into frequency space by Fourier transform may be synthesized.

又、実施例1では画像信号SIG_Bと画像信号SIG_Rの2フレームを合成する例を示したが、本実施例は合成するフレーム数によらず適応できる。例えば、3フレーム以上合成する場合、複数の画像信号SIG_Rから複数の小領域画像信号SIG_R_Pを抽出し、合成部202にて小領域画像信号SIG_B_Pと複数の小領域画像信号SIG_R_Pを合成するよう変形しても良い。 In addition, in the first embodiment, an example of synthesizing two frames of image signal SIG_B and image signal SIG_R is shown, but this embodiment can be applied regardless of the number of frames to be synthesized. For example, when synthesizing three or more frames, multiple small area image signals SIG_R_P may be extracted from multiple image signals SIG_R, and the synthesis unit 202 may synthesize the small area image signal SIG_B_P and the multiple small area image signals SIG_R_P.

この場合、合成部202は各フレームの周波数空間信号SIG_R_Fの夫々に対して合成率SIG_CORRを求める。又、加重加算部305は各フレームの合成率SIG_CORRに応じて、周波数空間信号SIG_B_Fと、各フレームの周波数空間信号SIG_R_Fを加重加算する。 In this case, the synthesis unit 202 calculates the synthesis rate SIG_CORR for each of the frequency space signals SIG_R_F of each frame. In addition, the weighted addition unit 305 performs weighted addition of the frequency space signal SIG_B_F and the frequency space signal SIG_R_F of each frame according to the synthesis rate SIG_CORR of each frame.

<実施例2>
実施例1では、画像のコントラストが高い場合に、周波数成分間で合成率を一律の状態に近づける例を示したが、実施例2では実施例1を変形し、画像のコントラストが高い場合に、少なくとも一部の周波数成分の合成率を小さくする。
Example 2
In the first embodiment, an example was shown in which the synthesis rates between frequency components are made closer to a uniform state when the contrast of an image is high. In the second embodiment, the first embodiment is modified so that the synthesis rates of at least some of the frequency components are made smaller when the contrast of an image is high.

尚、特に説明が無い場合、第1の実施例と同じ符号のものは第1の実施例と同様の動作、処理を行うものとする。尚、実施例2の基本的な構成例は実施例1と同様であり、説明を省略する。 Unless otherwise specified, the same reference numerals as in the first embodiment will operate and process in the same manner as in the first embodiment. The basic configuration of the second embodiment is the same as that of the first embodiment, and so a description of the configuration will be omitted.

実施例2では、実施例1にて図3で示した合成部202の構成を、図8に示すように変形する。図8は、実施例2における合成部202の構成例を示す機能ブロック図である。 In the second embodiment, the configuration of the synthesis unit 202 shown in FIG. 3 in the first embodiment is modified as shown in FIG. 8. FIG. 8 is a functional block diagram showing an example of the configuration of the synthesis unit 202 in the second embodiment.

第2合成率算出部801は、周波数空間信号SIG_B_Fと周波数空間信号SIG_R_F及びコントラスト値SIG_Cに基づき、周波数成分ごとの合成率SIG_CORRを算出して出力する。 The second synthesis rate calculation unit 801 calculates and outputs the synthesis rate SIG_CORR for each frequency component based on the frequency space signal SIG_B_F, the frequency space signal SIG_R_F, and the contrast value SIG_C.

具体的には、第2合成率算出部801は先ず、周波数空間信号SIG_B_Fと周波数空間信号SIG_R_Fとの差分値Dを周波数成分ごとに算出する。次に第2合成率算出部801は、例えば以下の数式3に示す演算により、周波数成分ごとの合成率SIG_CORRを得て出力する。
SIG_CORR=1-D÷{D+F×(G-SIG_C)+H}・・・(数式3)
Specifically, the second combining rate calculation unit 801 first calculates a difference value D between the frequency space signal SIG_B_F and the frequency space signal SIG_R_F for each frequency component. Next, the second combining rate calculation unit 801 obtains and outputs a combining rate SIG_CORR for each frequency component, for example, by the calculation shown in the following Equation 3.
SIG_CORR=1−D÷{D+F×(G−SIG_C)+H} (Formula 3)

ここで、数式3中のF(F>0)はコントラスト値SIG_Cによる合成率SIG_CORRへの影響度合いを調整する定数である。又、GはSIG_Cの取り得る最大値である。又、H(H>0)は0で除算されることを防ぐための微小な値である。 Here, F (F>0) in Equation 3 is a constant that adjusts the degree of influence of the contrast value SIG_C on the blending rate SIG_CORR. Also, G is the maximum value that SIG_C can take. Also, H (H>0) is a tiny value that prevents division by 0.

図9は、数式3により得られる合成率SIG_CORRの例を示す図である。図9のグラフの横軸は差分値Dであり、縦軸は合成率SIG_CORRを示す。又、実線901はコントラスト値SIG_Cが最小のときの合成率SIG_CORRの例を示す。 Figure 9 is a diagram showing an example of the combination rate SIG_CORR obtained by Equation 3. The horizontal axis of the graph in Figure 9 represents the difference value D, and the vertical axis represents the combination rate SIG_CORR. In addition, the solid line 901 shows an example of the combination rate SIG_CORR when the contrast value SIG_C is at a minimum.

又、破線902はコントラスト値SIG_Cが最大のときの合成率SIG_CORRの例を示す。又、一点鎖線903はコントラスト値SIG_Cが中間状態のときの合成率SIG_CORRの例を示す。 The dashed line 902 shows an example of the combination rate SIG_CORR when the contrast value SIG_C is at its maximum. The dashed line 903 shows an example of the combination rate SIG_CORR when the contrast value SIG_C is in an intermediate state.

数式3は差分値Dとコントラスト値SIG_Cとの複合条件により合成率SIG_CORRを決定する例であり、差分値Dが大きいほど、合成率SIG_CORRは小さくなる。又、コントラスト値SIG_Cが大きいほど、合成率SIG_CORRは小さくなる。 Equation 3 is an example of determining the combination rate SIG_CORR based on the combined condition of the difference value D and the contrast value SIG_C. The larger the difference value D, the smaller the combination rate SIG_CORR. Also, the larger the contrast value SIG_C, the smaller the combination rate SIG_CORR.

画像のコントラストが高い部分では、周波数空間信号SIG_B_Fや周波数空間信号SIG_R_Fにて周波数成分の振幅が大きくなりやすく、これに伴い画質弊害であるリンギングの振幅が大きくなり目立ちやすい。 In high-contrast areas of an image, the amplitude of the frequency components in the frequency space signal SIG_B_F and the frequency space signal SIG_R_F tends to be large, and as a result, the amplitude of ringing, which is an adverse effect on image quality, becomes large and becomes more noticeable.

しかし本実施例によれば、画像のコントラストが高い部分にて合成を抑制し、合成結果の小領域画像信号SIG_M_Pを、リンギングの発生していない状態である合成前の小領域画像信号SIG_B_Pに近づけることができる。これにより、リンギングの発生を抑制できる。 However, according to this embodiment, synthesis is suppressed in parts of the image with high contrast, and the small-area image signal SIG_M_P resulting from synthesis can be made closer to the small-area image signal SIG_B_P before synthesis, which is in a state where no ringing occurs. This makes it possible to suppress the occurrence of ringing.

又、差分値Dが大きい成分で合成を行った場合、リンギングが生じる原因になりやすい。しかし、本実施例では、例えば数式3を用いることで、コントラスト値SIG_Cが大きくかつ差分値Dが大きい場合に合成率SIG_CORRをより小さくしている。 Furthermore, when synthesis is performed using components with a large difference value D, ringing is likely to occur. However, in this embodiment, by using, for example, Equation 3, the synthesis rate SIG_CORR is made smaller when the contrast value SIG_C is large and the difference value D is large.

従って、リンギングの原因になりやすい周波数成分で特に合成を抑制することができる。又、差分値Dが小さいくリンギングの原因になりにくい周波数成分では、ノイズ低減のために合成率を大きくすることができる。 Therefore, it is possible to suppress synthesis, especially for frequency components that are likely to cause ringing. Also, for frequency components with small difference values D that are unlikely to cause ringing, the synthesis rate can be increased to reduce noise.

尚、実施例2では数式3に示す方法にて周波数成分ごとの合成率を調整したが、画像のコントラストが高い場合に合成率を小さくすることが可能であればどのような方法で合成率を調整しても良い。例えば、コントラストが高い場合に合成率を小さくし、更に実施例1にて説明したように合成率を周波数成分間で一律の状態に近づけても良い。 In the second embodiment, the synthesis rate for each frequency component is adjusted by the method shown in Equation 3. However, the synthesis rate may be adjusted by any method as long as it is possible to reduce the synthesis rate when the contrast of the image is high. For example, the synthesis rate may be reduced when the contrast is high, and the synthesis rate may be made closer to a uniform state between frequency components as described in the first embodiment.

その場合、第2合成率算出部801は先ず、実施例1の第1合成率算出部302と同様の動作により合成率SIG_RATIOを算出する。次に、第2合成率算出部801は実施例1の第1合成率補正部304同様の動作により補正係数Wを算出する。 In this case, the second synthesis rate calculation unit 801 first calculates the synthesis rate SIG_RATIO by the same operation as the first synthesis rate calculation unit 302 in the first embodiment. Next, the second synthesis rate calculation unit 801 calculates the correction coefficient W by the same operation as the first synthesis rate correction unit 304 in the first embodiment.

その後で、第2合成率算出部801により例えば以下の数式4に示す演算により補正後の周波数成分ごとの合成率SIG_CORRを得ても良い。
SIG_CORR=W×SIG_RATIO・・・(数式4)
Thereafter, the second synthesis rate calculation unit 801 may obtain the synthesis rate SIG_CORR for each corrected frequency component by, for example, the calculation shown in Equation 4 below.
SIG_CORR=W×SIG_RATIO (Formula 4)

図10は、数式4を用いた場合に得られる合成率SIG_CORRの例を示す図である。図10のグラフの横軸は差分値Dであり、縦軸は合成率SIG_CORRを示す。又、実線1001はコントラスト値SIG_Cが最小のときの合成率SIG_CORRの例を示す。 Figure 10 is a diagram showing an example of the combination rate SIG_CORR obtained when using Equation 4. The horizontal axis of the graph in Figure 10 represents the difference value D, and the vertical axis represents the combination rate SIG_CORR. In addition, the solid line 1001 shows an example of the combination rate SIG_CORR when the contrast value SIG_C is at a minimum.

又、破線1002はコントラスト値SIG_Cが最大のときの合成率SIG_CORRの例を示す。又、一点鎖線1003はコントラスト値SIG_Cが中間状態のときの合成率SIG_CORRの例を示す。 The dashed line 1002 shows an example of the combination rate SIG_CORR when the contrast value SIG_C is at its maximum. The dashed line 1003 shows an example of the combination rate SIG_CORR when the contrast value SIG_C is in an intermediate state.

このように、合成率SIG_CORRではコントラスト値SIG_Cが大きい場合に、コントラスト値SIG_Cが小さい場合と比べ、同じ差分値Dにおいて合成率を、より小さくできる。又、合成率SIG_CORRでは、コントラスト値SIG_Cが大きいほど差分値Dによる値の変動が小さくなり、コントラスト値SIG_Cが小さい場合と比べ周波数成分間でより一律な合成率にしやすくできる。 In this way, when the contrast value SIG_C is large, the synthesis rate can be made smaller for the same difference value D at the synthesis rate SIG_CORR compared to when the contrast value SIG_C is small. Also, when the synthesis rate SIG_CORR is large, the fluctuation in value due to the difference value D becomes smaller as the contrast value SIG_C is larger, making it easier to achieve a more uniform synthesis rate between frequency components compared to when the contrast value SIG_C is small.

これにより、第2合成率算出部801はコントラストが高いほど合成率が小さく、かつコントラストが高いほど合成率が周波数成分間で一律の状態に近づくよう合成率を算出できる。この方法によっても、リンギングの発生を効果的に抑制できる。 This allows the second synthesis rate calculation unit 801 to calculate a synthesis rate such that the higher the contrast, the smaller the synthesis rate, and the higher the contrast, the closer the synthesis rate is to a uniform state between frequency components. This method can also effectively suppress the occurrence of ringing.

<実施例3>
実施例3では実施例1を変形し、画像に暗部が含まれる場合に、周波数成分間で合成率を一律の状態に近づける。尚、特に説明が無い場合、第1の実施例と同じ符号のものは第1の実施例と同様の動作、処理を行うものとする。又、実施例3の基本的な構成例は実施例1と同様であり、説明を省略する。
Example 3
In the third embodiment, the first embodiment is modified to make the synthesis rate between frequency components closer to a uniform state when an image contains a dark area. Unless otherwise specified, the same reference numerals as in the first embodiment perform the same operations and processes as in the first embodiment. Also, the basic configuration of the third embodiment is the same as that of the first embodiment, and therefore the description thereof will be omitted.

実施例3では、実施例1にて図3で示した合成部202の構成を、図11に示すように変形する。図11は、実施例3における合成部202の構成例を示す機能ブロック図である。 In the third embodiment, the configuration of the synthesis unit 202 shown in FIG. 3 in the first embodiment is modified as shown in FIG. 11. FIG. 11 is a functional block diagram showing an example of the configuration of the synthesis unit 202 in the third embodiment.

暗部評価値算出部1101は、小領域画像信号SIG_B_Pから暗部評価値SIG_L(輝度評価値)を算出して出力する。具体的には、暗部評価値算出部1101は先ず、小領域画像信号SIG_B_Pに含まれる画素の夫々に対し、画素が所定の閾値以下であるかを判定する。所定の閾値とは、画素が暗部の画素であるか否かを判定するための基準となるように予め定められた画素値である。 The dark area evaluation value calculation unit 1101 calculates and outputs a dark area evaluation value SIG_L (brightness evaluation value) from the small area image signal SIG_B_P. Specifically, the dark area evaluation value calculation unit 1101 first determines whether each pixel included in the small area image signal SIG_B_P is equal to or less than a predetermined threshold value. The predetermined threshold value is a pixel value that is determined in advance as a criterion for determining whether a pixel is a pixel in a dark area.

ここで、暗部評価値算出部1101は、第1の実空間画像の画素値が閾値以下である画素を判定する処理により、画像の輝度レベルを示す輝度評価値を算出する輝度評価値算出ステップを実行する輝度評価値算出手段として機能している。 Here, the dark area evaluation value calculation unit 1101 functions as a brightness evaluation value calculation means that executes a brightness evaluation value calculation step that calculates a brightness evaluation value indicating the brightness level of an image by a process of determining pixels whose pixel values of the first real space image are equal to or less than a threshold value.

次に、暗部評価値算出部1101は、所定の閾値以下と判定された画素の数をカウントし、暗部評価値SIG_Lとして出力する。即ち、暗部評価値算出部1101は、第1の実空間画像の画素値が所定の閾値以下である画素の数を輝度評価値として算出する。 Next, the dark area evaluation value calculation unit 1101 counts the number of pixels that are determined to be equal to or less than a predetermined threshold value, and outputs the count as a dark area evaluation value SIG_L. That is, the dark area evaluation value calculation unit 1101 calculates the number of pixels whose pixel values in the first real space image are equal to or less than a predetermined threshold value as a luminance evaluation value.

第2合成率補正部1102は、暗部評価値SIG_Lを元に、周波数成分ごとの合成率SIG_RATIOを補正し、補正後の周波数成分ごとの合成率SIG_CORRを出力する。ここで、第2合成率補正部1102は、輝度評価値としての暗部評価値SIG_Lに応じて、複数の周波数成分の合成率を決定する合成率決定ステップを実行する合成率決定手段として機能している。 The second combination rate correction unit 1102 corrects the combination rate SIG_RATIO for each frequency component based on the dark area evaluation value SIG_L, and outputs the combination rate SIG_CORR for each frequency component after correction. Here, the second combination rate correction unit 1102 functions as a combination rate determination means that executes a combination rate determination step that determines the combination rates of multiple frequency components according to the dark area evaluation value SIG_L as a luminance evaluation value.

具体的には、第2合成率補正部1102は先ず、暗部評価値と補正係数との対応関係を表すテーブルを参照し、暗部評価値SIG_Lが小さい場合に補正が弱く、暗部評価値SIG_Lが大きい場合に補正が強くなるように補正係数Wを算出する。 Specifically, the second synthesis rate correction unit 1102 first refers to a table showing the correspondence between the dark area evaluation value and the correction coefficient, and calculates the correction coefficient W so that the correction is weak when the dark area evaluation value SIG_L is small, and the correction is strong when the dark area evaluation value SIG_L is large.

尚、補正係数Wは値域が0~1の値であり、値が0に近いほど補正が強いことを示す。テーブルの例は、実施例1にて説明した図6のテーブルの横軸を、暗部評価値SIG_Lと置き換えた場合と同様である。 The correction coefficient W has a value range of 0 to 1, and the closer the value is to 0, the stronger the correction. The example table is the same as that in the case where the horizontal axis of the table in FIG. 6 described in the first embodiment is replaced with the dark area evaluation value SIG_L.

次に、第2合成率補正部1102は、周波数成分ごとの合成率SIG_RATIOを元に、全周波数成分の合成率SIG_RATIOの平均値Mを算出する。そして、第2合成率補正部1102は、実施例1の数式1と同様の演算により補正後の周波数成分ごとの合成率SIG_CORRを得て出力する。これにより、合成率SIG_CORRでは暗部評価値SIG_Lが大きい場合に、暗部評価値SIG_Lが小さい場合と比べ周波数成分間でより一律な合成率とすることができる。 Next, the second synthesis rate correction unit 1102 calculates the average value M of the synthesis rates SIG_RATIO of all frequency components based on the synthesis rate SIG_RATIO for each frequency component. The second synthesis rate correction unit 1102 then obtains and outputs the synthesis rate SIG_CORR for each frequency component after correction by a calculation similar to that of Equation 1 in the first embodiment. As a result, when the synthesis rate SIG_CORR is large, a more uniform synthesis rate can be achieved between frequency components compared to when the dark area evaluation value SIG_L is small.

以上が図11の実施例3における合成部202の説明である。このような構成により、画像処理部107は小領域画像信号SIG_B_Pの暗部にて、合成率を周波数成分間で一律の状態に近づけることができる。 The above is an explanation of the synthesis unit 202 in the third embodiment of FIG. 11. With this configuration, the image processing unit 107 can make the synthesis rate closer to a uniform state between frequency components in the dark parts of the small region image signal SIG_B_P.

画像の暗部では、リンギングの発生により変化した画素値の最大値÷最小値により表される比が大きくなりやすく、これによりリンギングが目立ちやすい。又、画像の暗部は後段のトーンマッピング処理によりゲインアップされる場合があり、この場合更にリンギングが強調されやすい。 In dark areas of an image, the ratio of the maximum pixel value to the minimum pixel value that has changed due to ringing tends to be large, which makes ringing more noticeable. In addition, dark areas of an image may be gain-uped by tone mapping processing in the subsequent stage, which tends to emphasize ringing even more.

しかし本実施例によれば、画像の暗部にて合成率を周波数成分間で一律の状態に近づけることにより、合成結果にて特定の周波数成分の影響が相対的に強く又は弱くなりすぎる状態を抑制し、リンギングの発生を抑制できる。又、暗部以外では、被写体を良好に維持しながら合成を行いやすくできる。 However, according to this embodiment, by making the synthesis rate closer to uniform between frequency components in the dark areas of the image, it is possible to suppress the state in which the influence of a specific frequency component becomes relatively too strong or too weak in the synthesis result, and to suppress the occurrence of ringing. Also, in areas other than the dark areas, it is possible to easily perform synthesis while maintaining the subject in good condition.

尚、実施例3では閾値以下の画素の数を元に暗部評価値を算出したが、これに限られず、暗部の度合いを表す値となるのであれば、どのような方法で暗部評価値を算出しても良い。例えば、閾値以下の画素の重みの平均値を暗部評価値としても良い。その場合、暗部評価値算出部1101は先ず、小領域画像信号SIG_B_Pに含まれる画素の夫々に対し、画素が所定の閾値以下であるかを判定する。 In the third embodiment, the dark area evaluation value is calculated based on the number of pixels below the threshold, but this is not limited thereto, and any method may be used to calculate the dark area evaluation value as long as the value represents the degree of darkness. For example, the average value of the weights of the pixels below the threshold may be used as the dark area evaluation value. In this case, the dark area evaluation value calculation unit 1101 first determines whether each pixel included in the small area image signal SIG_B_P is below a predetermined threshold.

次に、暗部評価値算出部1101は画素値がより暗いことを示す画素ほどより大きな重み値となるように、前述の所定の閾値以下と判定された夫々の画素に対する重み値を決定する。更に、暗部評価値算出部1101は前述の所定の閾値以下と判定された全ての画素の重み値の平均値を算出し、暗部評価値SIG_Lとする。 Next, the dark area evaluation value calculation unit 1101 determines a weighting value for each pixel determined to be equal to or less than the above-mentioned predetermined threshold value so that the weighting value is larger for pixels that indicate a darker pixel value. Furthermore, the dark area evaluation value calculation unit 1101 calculates the average value of the weighting values for all pixels determined to be equal to or less than the above-mentioned predetermined threshold value, and sets this as the dark area evaluation value SIG_L.

即ち、第1の実空間画像の画素値が閾値以下である1以上の画素に対して画素値に応じた重みを算出し、1以上の画素の重みを合計することにより輝度評価値を算出する。 That is, for one or more pixels in the first real space image whose pixel value is equal to or less than a threshold value, weights are calculated according to the pixel values, and the luminance evaluation value is calculated by summing the weights of the one or more pixels.

この方法によっても、暗部評価値算出部1101は暗部の度合いを表す暗部評価値を算出できる。その他にも例えば、画素値の最小値を暗部評価値としても良い。その場合、暗部評価値算出部1101は小領域画像信号SIG_B_Pに含まれる全画素のうち最小の画素値を抽出し、暗部評価値SIG_Lとする。即ち、第1の実空間画像の最小の画素値を輝度評価値として算出する。 This method also allows the dark area evaluation value calculation unit 1101 to calculate a dark area evaluation value that indicates the degree of darkness. Alternatively, for example, the minimum pixel value may be used as the dark area evaluation value. In this case, the dark area evaluation value calculation unit 1101 extracts the minimum pixel value from among all pixels contained in the small area image signal SIG_B_P, and sets this as the dark area evaluation value SIG_L. In other words, the minimum pixel value of the first real space image is calculated as the luminance evaluation value.

それによって、暗部評価値算出部1101は暗部の度合いを表す暗部評価値を算出しても良い。このように、輝度評価値算出手段としての暗部評価値算出部1101は、第1の実空間画像の最小の画素値を算出する処理により、画像の輝度レベルを示す輝度評価値を算出しても良い。 Thereby, the dark area evaluation value calculation unit 1101 may calculate a dark area evaluation value that indicates the degree of the dark area. In this way, the dark area evaluation value calculation unit 1101 as a brightness evaluation value calculation means may calculate a brightness evaluation value that indicates the brightness level of the image by a process of calculating the minimum pixel value of the first real space image.

このように、実施例3では画像に暗部が含まれる場合に周波数成分間で合成率を一律の状態に近づけるようにしているが、別の方法として、画像に暗部が含まれる場合に合成率を小さくすることでもリンギングを抑制できる。その場合、合成部202は実施例2に示す方法と同様の手順により、コントラスト値SIG_Cの代わりに暗部評価値SIG_Lがより大きい場合に少なくとも一部の周波数成分の合成率が小さくなるように合成率を算出する。 In this way, in the third embodiment, the synthesis rate is made closer to a uniform state between frequency components when the image contains dark areas, but as an alternative method, ringing can also be suppressed by reducing the synthesis rate when the image contains dark areas. In this case, the synthesis unit 202 calculates the synthesis rate by a procedure similar to that shown in the second embodiment, so that the synthesis rate of at least some frequency components is reduced when the dark area evaluation value SIG_L is larger instead of the contrast value SIG_C.

このように、実施例3では、輝度評価値がより暗い輝度レベルであることを示す値であるほど、複数の周波数成分間で合成率が一律に近づくように複数の周波数成分の合成率を決定すれば良く、その方法は限定されない。その際、輝度評価値がより暗い輝度レベルであることを示す値であるほど、複数の周波数成分のうち少なくとも1つの周波数成分の合成率が0に近くなるように複数の周波数成分の合成率を決定することが望ましい。 In this way, in the third embodiment, the synthesis rate of the multiple frequency components may be determined so that the synthesis rate approaches uniformity between the multiple frequency components as the luminance evaluation value indicates a darker luminance level, and the method for doing so is not limited. In this case, it is desirable to determine the synthesis rate of the multiple frequency components so that the synthesis rate of at least one of the multiple frequency components approaches 0 as the luminance evaluation value indicates a darker luminance level.

又、実施例3では画像の暗部に基づいて周波数成分ごとの合成率を算出する例を示したが、実施例1や実施例2で示した画像のコントラストとの複合条件により合成率を算出しても良い。例えば、画像に暗部が含まれ、かつコントラストが高い場合に合成率が一律に近づくよう調整しても良い。 In addition, in the third embodiment, an example was shown in which the synthesis rate for each frequency component was calculated based on the dark areas of the image, but the synthesis rate may be calculated based on a combined condition with the image contrast shown in the first and second embodiments. For example, when an image includes dark areas and has high contrast, the synthesis rate may be adjusted so that it approaches a uniform value.

<実施例4>
実施例4では、実施例1を変形し、合成する画像間で実空間における差分の最大値が大きい場合に、周波数成分間で合成率を一律の状態に近づける。尚、特に説明が無い場合、第1の実施例と同じ符号のものは第1の実施例と同様の動作、処理を行うものとする。又、実施例4の基本的な構成例は実施例1と同様であり、説明を省略する。
Example 4
In the fourth embodiment, the first embodiment is modified to make the synthesis rate between frequency components closer to a uniform state when the maximum value of the difference in real space between images to be synthesized is large. Unless otherwise specified, the same reference numerals as those in the first embodiment perform the same operations and processes as those in the first embodiment. Also, the basic configuration example of the fourth embodiment is the same as that of the first embodiment, and the description thereof will be omitted.

実施例4では、実施例1にて図3で示した合成部202の構成を、図12に示すように変形する。図12は、実施例4における合成部202の構成例を示す機能ブロック図である。 In the fourth embodiment, the configuration of the synthesis unit 202 shown in FIG. 3 in the first embodiment is modified as shown in FIG. 12. FIG. 12 is a functional block diagram showing an example of the configuration of the synthesis unit 202 in the fourth embodiment.

差分最大値算出部1201は、小領域画像信号SIG_B_Pと小領域画像信号SIG_R_Pを元に差分最大値SIG_Dを算出して出力する。ここで、差分最大値算出部1201は、第1の実空間画像と前記第2の実空間画像との対応する画素間の差分の最大値を算出する差分算出ステップを実行する差分算出手段として機能している。 The maximum difference calculation unit 1201 calculates and outputs the maximum difference SIG_D based on the small area image signal SIG_B_P and the small area image signal SIG_R_P. Here, the maximum difference calculation unit 1201 functions as a difference calculation means that executes a difference calculation step that calculates the maximum value of the difference between corresponding pixels in the first real space image and the second real space image.

具体的には、差分最大値算出部1201は先ず、小領域画像信号SIG_B_Pと小領域画像信号SIG_R_Pの全ての座標に対して、同じ座標の画素間における差分の絶対値を算出する。次に、差分最大値算出部1201は前述の全ての座標に対して算出した差分の絶対値のうち最大値を抽出し、差分最大値SIG_Dとして出力する。 Specifically, the maximum difference calculation unit 1201 first calculates the absolute value of the difference between pixels at the same coordinates for all coordinates of the small area image signal SIG_B_P and the small area image signal SIG_R_P. Next, the maximum difference calculation unit 1201 extracts the maximum value from the absolute values of the differences calculated for all the aforementioned coordinates, and outputs it as the maximum difference value SIG_D.

第3合成率補正部1202は、差分最大値SIG_Dを元に周波数成分ごとの合成率SIG_RATIOを補正し、補正後の周波数成分ごとの合成率SIG_CORRを出力する。ここで、第3合成率補正部1202は、差分の最大値に応じて、複数の周波数成分の合成率を決定する合成率決定ステップを実行する合成率決定手段として機能している。 The third synthesis rate correction unit 1202 corrects the synthesis rate SIG_RATIO for each frequency component based on the maximum difference value SIG_D, and outputs the synthesis rate SIG_CORR for each frequency component after correction. Here, the third synthesis rate correction unit 1202 functions as a synthesis rate determination means that executes a synthesis rate determination step that determines the synthesis rate of multiple frequency components according to the maximum difference value.

具体的には、第3合成率補正部1202は先ず、差分最大値と補正係数との対応関係を表すテーブルを参照し、差分最大値SIG_Dが小さい場合に補正が弱く、差分最大値SIG_Dが大きい場合に補正が強くなるように補正係数Wを算出する。 Specifically, the third synthesis rate correction unit 1202 first refers to a table showing the correspondence between the maximum difference value and the correction coefficient, and calculates the correction coefficient W so that the correction is weak when the maximum difference value SIG_D is small, and the correction is strong when the maximum difference value SIG_D is large.

尚、補正係数Wは値域が0~1の値であり、値が0に近いほど補正が強いことを示す。テーブルの例は、実施例1にて説明した図6のテーブルの横軸を、差分最大値SIG_Dと置き換えた場合と同様である。次に、第3合成率補正部1202は、周波数成分ごとの合成率SIG_RATIOを元に、全周波数成分の合成率SIG_RATIOの平均値Mを算出する。 The correction coefficient W has a value range of 0 to 1, and the closer the value is to 0, the stronger the correction. An example of the table is the same as that in the case where the horizontal axis of the table in FIG. 6 described in the first embodiment is replaced with the maximum difference value SIG_D. Next, the third synthesis rate correction unit 1202 calculates the average value M of the synthesis rates SIG_RATIO of all frequency components based on the synthesis rate SIG_RATIO for each frequency component.

第3合成率補正部1202は、実施例1の数式1と同様の演算により補正後の周波数成分ごとの合成率SIG_CORRを得て出力する。これにより、合成率SIG_CORRでは差分最大値SIG_Dが大きい場合に、差分最大値SIG_Dが小さい場合と比べ周波数成分間でより一律な合成率とすることができる。 The third synthesis rate correction unit 1202 obtains and outputs the synthesis rate SIG_CORR for each frequency component after correction by performing a calculation similar to that of Equation 1 in the first embodiment. As a result, when the synthesis rate SIG_CORR is a large maximum difference value SIG_D, it is possible to obtain a more uniform synthesis rate between frequency components compared to when the maximum difference value SIG_D is small.

即ち、差分の最大値が大きいほど複数の周波数成分間で合成率が一律に近づくように複数の周波数成分の合成率を決定することができる。尚、差分の最大値が大きいほど、複数の周波数成分のうち少なくとも1つの周波数成分の合成率が0に近くなるように複数の周波数成分の合成率を決定することが望ましい。 In other words, the larger the maximum value of the difference, the closer the synthesis rate of the multiple frequency components is to a uniform value. It is desirable to determine the synthesis rate of the multiple frequency components so that the larger the maximum value of the difference, the closer the synthesis rate of at least one of the multiple frequency components is to 0.

以上が図12の実施例4における合成部202の説明である。このような構成により、画像処理部107は小領域画像信号SIG_B_Pと小領域画像信号SIG_R_Pの差分の最大値が大きい部分にて、合成率を周波数成分間で一律の状態に近づけることができる。 The above is an explanation of the synthesis unit 202 in the fourth embodiment of FIG. 12. With this configuration, the image processing unit 107 can make the synthesis rate closer to a uniform state between frequency components in the area where the maximum value of the difference between the small region image signal SIG_B_P and the small region image signal SIG_R_P is large.

実空間における画像間の差分が大きい部分では、第1合成率算出部302のような周波数成分ごとの合成率の算出にて、周波数成分間で合成率のばらつきが大きくなりやすく、これに伴い画質弊害であるリンギングが生じやすい。 In areas where the difference between images in real space is large, the calculation of the synthesis rate for each frequency component by the first synthesis rate calculation unit 302 tends to result in large variations in the synthesis rate between frequency components, which tends to result in ringing, which is an adverse effect on image quality.

しかし本実施例によれば、実空間における画像間の差分の最大値が大きい部分にて合成率を周波数成分間で一律の状態に近づけている。従って、合成結果にて特定の周波数成分の影響が相対的に強く又は弱くなりすぎる状態を抑制し、リンギングの発生を抑制できる。又、実空間における画像間の差分の最大値が小さい部分では、被写体を良好に維持しながら合成を行いやすくできる。 However, according to this embodiment, in areas where the maximum value of the difference between images in real space is large, the synthesis rate is made closer to a uniform state between frequency components. This makes it possible to prevent the influence of a specific frequency component in the synthesis result from becoming relatively strong or weak, and to suppress the occurrence of ringing. Furthermore, in areas where the maximum value of the difference between images in real space is small, synthesis can be performed more easily while maintaining the subject in good condition.

尚、画像間の差分を求める方法として画素間の差分の絶対値の合計値(SAD)を算出する方法がある。SADによると、テクスチャ等の低コントラストのディティール部であっても、画像間の被写体の僅かなずれにより差分が大きいと判定されやすい。 One method for finding the difference between images is to calculate the sum of absolute differences (SAD) between pixels. With SAD, even in low-contrast detail areas such as textures, slight shifts in the subject between the images can easily result in a large difference being determined.

そのため、SADを元に実施例4と同様の方法で周波数成分ごとの合成率SIG_RATIOを補正する場合、低コントラストのディティール部にて合成率が一律に近づきやすく、被写体を維持する効果が弱まりやすい。 Therefore, when the synthesis rate SIG_RATIO for each frequency component is corrected based on the SAD in a manner similar to that of Example 4, the synthesis rate tends to approach a uniform value in low-contrast detail areas, which weakens the effect of preserving the subject.

一方で、本実施例では画素間の差分の絶対値の最大値を元に合成率SIG_RATIOを補正している。従って、低コントラストのディティール部では差分が大きいと判定されにくく、合成率が一律に近づきにくいため被写体を良好に維持しやすい。又、それ以外の差分が大きい部分ではリンギングの発生を抑制しやすい。 On the other hand, in this embodiment, the blending rate SIG_RATIO is corrected based on the maximum absolute value of the difference between pixels. Therefore, in low-contrast detail areas, the difference is less likely to be determined to be large, and the blending rate is less likely to approach a uniform value, making it easier to maintain the subject in good condition. Also, in other areas where the difference is large, it is easier to suppress the occurrence of ringing.

尚、実施例4では合成する画像間で実空間における差分の最大値が大きい場合に周波数成分間で合成率を一律の状態に近づける例を示した。しかし、別の方法として、合成する画像間で実空間における差分の最大値が大きい場合に合成率を小さくすることでもリンギングを抑制できる。 In addition, in the fourth embodiment, an example was shown in which the synthesis rate between frequency components is made closer to a uniform state when the maximum value of the difference in real space between the images to be synthesized is large. However, as an alternative method, ringing can also be suppressed by decreasing the synthesis rate when the maximum value of the difference in real space between the images to be synthesized is large.

その場合、合成部202は実施例2に示す方法と同様の手順により、コントラスト値SIG_Cの代わりに、差分最大値SIG_Dがより大きい場合に、少なくとも一部の周波数成分の合成率が小さくなるように合成率を算出する。 In this case, the synthesis unit 202 calculates the synthesis rate by a procedure similar to that shown in the second embodiment so that the synthesis rate of at least some frequency components is reduced when the maximum difference value SIG_D is larger instead of the contrast value SIG_C.

又、実施例4では合成する画像間の実空間における差分の最大値に基づいて周波数成分ごとの合成率を算出する例を示したが、実施例1や実施例2で示した画像のコントラストや、実施例3で示した画像の暗部との複合条件により合成率を算出しても良い。例えば、画像間の実空間における差分の最大値が大きいか、又は画像に暗部が含まれる場合に合成率が一律に近づくよう調整しても良い。 In addition, in the fourth embodiment, an example was shown in which the synthesis rate for each frequency component was calculated based on the maximum value of the difference in real space between the images to be synthesized, but the synthesis rate may be calculated based on the contrast of the images shown in the first and second embodiments, or on a combination condition with the dark areas of the images shown in the third embodiment. For example, when the maximum value of the difference in real space between the images is large or when the images contain dark areas, the synthesis rate may be adjusted to approach a uniform value.

以上、本発明をその好適な実施例に基づいて詳述してきたが、本発明は上記実施例に限定されるものではなく、本発明の趣旨に基づき種々の変形が可能であり、それらを本発明の範囲から除外するものではない。尚、本発明は、以下の組み合わせを含む。 The present invention has been described in detail above based on preferred embodiments thereof, but the present invention is not limited to the above embodiments, and various modifications are possible based on the spirit of the present invention, and are not excluded from the scope of the present invention. The present invention includes the following combinations.

(構成1)第1の実空間画像及び第2の実空間画像を夫々周波数空間に変換し、第1の周波数画像及び第2の周波数画像を生成する周波数空間変換手段と、前記第1の周波数画像及び前記第2の周波数画像に含まれる複数の周波数成分の合成率を決定する合成率決定手段と、前記複数の周波数成分の合成率に基づき前記第1の周波数画像と前記第2の周波数画像を合成し、第3の周波数画像を得る合成手段と、前記第1の実空間画像のコントラスト値を算出するコントラスト算出手段を備え、前記合成率決定手段は、前記コントラスト値に応じて、前記複数の周波数成分の合成率を決定することを特徴とする画像処理装置。 (Configuration 1) An image processing device comprising: a frequency space conversion means for converting a first real space image and a second real space image into a frequency space, respectively, to generate a first frequency image and a second frequency image; a synthesis rate determination means for determining a synthesis rate of a plurality of frequency components contained in the first frequency image and the second frequency image; a synthesis means for synthesizing the first frequency image and the second frequency image based on the synthesis rate of the plurality of frequency components to obtain a third frequency image; and a contrast calculation means for calculating a contrast value of the first real space image, wherein the synthesis rate determination means determines the synthesis rate of the plurality of frequency components according to the contrast value.

(構成2)前記合成率決定手段は、前記コントラスト値が大きいほど前記複数の周波数成分間で合成率が一律に近づくように前記複数の周波数成分の合成率を決定することを特徴とする構成1に記載の画像処理装置。 (Configuration 2) The image processing device described in Configuration 1, characterized in that the synthesis rate determination means determines the synthesis rate of the multiple frequency components so that the synthesis rate between the multiple frequency components approaches a uniform value as the contrast value increases.

(構成3)前記合成率決定手段は、前記コントラスト値が大きいほど前記複数の周波数成分のうち少なくとも1つの周波数成分の合成率が小さくなるように前記複数の周波数成分の合成率を決定することを特徴とする構成1又は2に記載の画像処理装置。 (Configuration 3) The image processing device according to configuration 1 or 2, characterized in that the synthesis rate determination means determines the synthesis rate of the multiple frequency components such that the synthesis rate of at least one of the multiple frequency components decreases as the contrast value increases.

(構成4)前記コントラスト算出手段は、前記第1の実空間画像の最大画素値と最小画素値との差分により前記コントラスト値を算出することを特徴とする構成1~3のいずれか1項に記載の画像処理装置。 (Configuration 4) The image processing device according to any one of configurations 1 to 3, characterized in that the contrast calculation means calculates the contrast value from the difference between the maximum pixel value and the minimum pixel value of the first real space image.

(構成5)画像から小領域画像を抽出する小領域抽出手段を更に備え、前記小領域抽出手段は、第1の全体画像から前記第1の実空間画像を抽出し、前記第1の全体画像とは異なる第2の全体画像から前記第2の実空間画像を抽出することを特徴とする構成1~4のいずれか1項に記載の画像処理装置。 (Configuration 5) The image processing device according to any one of configurations 1 to 4, further comprising a small area extraction means for extracting a small area image from an image, the small area extraction means extracting the first real space image from a first overall image, and extracting the second real space image from a second overall image different from the first overall image.

(構成6)前記第3の周波数画像を実空間に変換し第3の実空間画像を生成する実空間変換手段を更に備えることを特徴とする構成1~5のいずれか1項に記載の画像処理装置。 (Configuration 6) The image processing device according to any one of configurations 1 to 5, further comprising a real space conversion means for converting the third frequency image into real space and generating a third real space image.

(構成7)複数の小領域画像を配置して全体画像を生成する小領域配置手段を更に備え、
前記小領域配置手段は、複数の前記第3の実空間画像を配置して第3の全体画像を生成することを特徴とする構成6に記載の画像処理装置。
(Configuration 7) The image processing device further includes a small area arrangement means for arranging a plurality of small area images to generate an entire image,
7. The image processing apparatus according to configuration 6, wherein the small region arrangement means arranges a plurality of the third real space images to generate a third whole image.

(構成8)第1の実空間画像及び第2の実空間画像を夫々周波数空間に変換し、第1の周波数画像及び第2の周波数画像を生成する周波数空間変換手段と、前記第1の周波数画像及び前記第2の周波数画像に含まれる複数の周波数成分の合成率を決定する合成率決定手段と、前記複数の周波数成分の合成率に基づき前記第1の周波数画像と前記第2の周波数画像を合成し、第3の周波数画像を得る合成手段と、前記第1の実空間画像の最小の画素値を算出する処理又は、前記第1の実空間画像の画素値が閾値以下である画素を判定する処理の少なくともいずれか一方により、画像の輝度レベルを示す輝度評価値を算出する輝度評価値算出手段を備え、前記合成率決定手段は、前記輝度評価値に応じて、前記複数の周波数成分の合成率を決定することを特徴とする画像処理装置。 (Configuration 8) An image processing device comprising: a frequency space conversion means for converting a first real space image and a second real space image into a frequency space, respectively, to generate a first frequency image and a second frequency image; a synthesis rate determination means for determining a synthesis rate of a plurality of frequency components contained in the first frequency image and the second frequency image; a synthesis means for synthesizing the first frequency image and the second frequency image based on the synthesis rate of the plurality of frequency components to obtain a third frequency image; and a luminance evaluation value calculation means for calculating a luminance evaluation value indicating a luminance level of an image by at least one of a process for calculating the minimum pixel value of the first real space image and a process for determining pixels whose pixel values of the first real space image are equal to or less than a threshold value, wherein the synthesis rate determination means determines the synthesis rate of the plurality of frequency components according to the luminance evaluation value.

(構成9)前記合成率決定手段は、前記輝度評価値がより暗い輝度レベルであることを示す値であるほど、前記複数の周波数成分間で合成率が一律に近づくように前記複数の周波数成分の合成率を決定することを特徴とする構成8に記載の画像処理装置。 (Configuration 9) The image processing device described in Configuration 8, characterized in that the synthesis rate determination means determines the synthesis rate of the multiple frequency components so that the synthesis rate between the multiple frequency components approaches uniformity as the luminance evaluation value indicates a darker luminance level.

(構成10)前記合成率決定手段は、前記輝度評価値がより暗い輝度レベルであることを示す値であるほど、前記複数の周波数成分のうち少なくとも1つの周波数成分の合成率が0に近くなるように前記複数の周波数成分の合成率を決定することを特徴とする構成8又は9に記載の画像処理装置。 (Configuration 10) The image processing device according to configuration 8 or 9, characterized in that the synthesis rate determination means determines the synthesis rate of the plurality of frequency components such that the synthesis rate of at least one of the plurality of frequency components approaches 0 as the luminance evaluation value indicates a darker luminance level.

(構成11)輝度評価値算出手段は、前記第1の実空間画像の画素値が前記閾値以下である画素の数を前記輝度評価値として算出することを特徴とする構成8~10のいずれか1項に記載の画像処理装置。 (Configuration 11) The image processing device according to any one of configurations 8 to 10, wherein the luminance evaluation value calculation means calculates the number of pixels in the first real space image whose pixel values are equal to or less than the threshold value as the luminance evaluation value.

(構成12)輝度評価値算出手段は、前記第1の実空間画像の画素値が前記閾値以下である1以上の画素に対して画素値に応じた重みを算出し、前記1以上の画素の前記重みを合計することにより前記輝度評価値を算出することを特徴とする構成8~11のいずれか1項に記載の画像処理装置。 (Configuration 12) The image processing device according to any one of configurations 8 to 11, characterized in that the luminance evaluation value calculation means calculates weights according to pixel values for one or more pixels in the first real space image whose pixel values are equal to or less than the threshold value, and calculates the luminance evaluation value by summing up the weights for the one or more pixels.

(構成13)輝度評価値算出手段は、前記第1の実空間画像の最小の画素値を前記輝度評価値として算出することを特徴とする構成8~12のいずれか1項に記載の画像処理装置。 (Configuration 13) The image processing device according to any one of configurations 8 to 12, characterized in that the luminance evaluation value calculation means calculates the minimum pixel value of the first real space image as the luminance evaluation value.

(構成14)画像から小領域画像を抽出する小領域抽出手段を更に備え、
前記小領域抽出手段は、第1の全体画像から前記第1の実空間画像を抽出し、前記第1の全体画像とは異なる第2の全体画像から前記第2の実空間画像を抽出することを特徴とする構成8~13のいずれか1項に記載の画像処理装置。
(Configuration 14) The image processing method further includes a small area extraction means for extracting a small area image from the image,
The image processing device according to any one of configurations 8 to 13, wherein the small region extraction means extracts the first real-space image from a first overall image, and extracts the second real-space image from a second overall image different from the first overall image.

(構成15)前記第3の周波数画像を実空間に変換し第3の実空間画像を生成する実空間変換手段を更に備えることを特徴とする構成8~14のいずれか1項に記載の画像処理装置。 (Configuration 15) The image processing device according to any one of configurations 8 to 14, further comprising a real space conversion means for converting the third frequency image into real space and generating a third real space image.

(構成16)複数の小領域画像を配置して全体画像を生成する小領域配置手段を更に備え、
前記小領域配置手段は、複数の前記第3の実空間画像を配置して第3の全体画像を生成することを特徴とする構成15に記載の画像処理装置。
(Configuration 16) The image processing apparatus further includes a small area arrangement means for arranging a plurality of small area images to generate an entire image,
16. The image processing apparatus according to configuration 15, wherein the small region arrangement means arranges a plurality of the third real space images to generate a third whole image.

(構成17)第1の実空間画像及び第2の実空間画像を夫々周波数空間に変換し、第1の周波数画像及び第2の周波数画像を生成する周波数空間変換手段と、前記第1の周波数画像及び前記第2の周波数画像に含まれる複数の周波数成分の合成率を決定する合成率決定手段と、前記複数の周波数成分の合成率に基づき前記第1の周波数画像と前記第2の周波数画像を合成し、第3の周波数画像を得る合成手段と、前記第1の実空間画像と前記第2の実空間画像との対応する画素間の差分の最大値を算出する差分算出手段を備え、前記合成率決定手段は、前記差分の最大値に応じて、前記複数の周波数成分の合成率を決定することを特徴とする画像処理装置。 (Configuration 17) An image processing device comprising: a frequency space conversion means for converting a first real space image and a second real space image into a frequency space, respectively, to generate a first frequency image and a second frequency image; a synthesis rate determination means for determining a synthesis rate of a plurality of frequency components contained in the first frequency image and the second frequency image; a synthesis means for synthesizing the first frequency image and the second frequency image based on the synthesis rate of the plurality of frequency components to obtain a third frequency image; and a difference calculation means for calculating a maximum value of the difference between corresponding pixels of the first real space image and the second real space image, wherein the synthesis rate determination means determines the synthesis rate of the plurality of frequency components according to the maximum value of the difference.

(構成18)前記合成率決定手段は、前記差分の最大値が大きいほど前記複数の周波数成分間で合成率が一律に近づくように前記複数の周波数成分の合成率を決定することを特徴とする構成17に記載の画像処理装置。 (Configuration 18) The image processing device described in Configuration 17, characterized in that the synthesis rate determination means determines the synthesis rate of the multiple frequency components so that the synthesis rate between the multiple frequency components approaches a uniform value as the maximum value of the difference increases.

(構成19)前記合成率決定手段は、前記差分の最大値が大きいほど、前記複数の周波数成分のうち少なくとも1つの周波数成分の合成率が0に近くなるように前記複数の周波数成分の合成率を決定することを特徴とする構成17又は18に記載の画像処理装置。 (Configuration 19) The image processing device according to configuration 17 or 18, characterized in that the synthesis rate determination means determines the synthesis rate of the plurality of frequency components such that the synthesis rate of at least one of the plurality of frequency components approaches 0 as the maximum value of the difference increases.

(構成20)画像から小領域画像を抽出する小領域抽出手段を更に備え、
前記小領域抽出手段は、第1の全体画像から前記第1の実空間画像を抽出し、前記第1の全体画像とは異なる第2の全体画像から前記第2の実空間画像を抽出することを特徴とする構成17~19のいずれか1項に記載の画像処理装置。
(Configuration 20) The method further comprises: extracting a small area image from the image;
The image processing device according to any one of configurations 17 to 19, wherein the small region extraction means extracts the first real-space image from a first overall image, and extracts the second real-space image from a second overall image different from the first overall image.

(構成21)前記第3の周波数画像を実空間に変換し第3の実空間画像を生成する実空間変換手段を更に備えることを特徴とする構成17~20のいずれか1項に記載の画像処理装置。 (Configuration 21) The image processing device according to any one of configurations 17 to 20, further comprising a real space conversion means for converting the third frequency image into real space and generating a third real space image.

(構成22)複数の小領域画像を配置して全体画像を生成する小領域配置手段を更に備え、
前記小領域配置手段は、複数の前記第3の実空間画像を配置して第3の全体画像を生成することを特徴とする構成21に記載の画像処理装置。
(Configuration 22) A small area arrangement means for arranging a plurality of small area images to generate an entire image is further provided,
22. The image processing apparatus according to configuration 21, wherein the small region arrangement means arranges a plurality of the third real space images to generate a third whole image.

(方法1)第1の実空間画像及び第2の実空間画像を夫々周波数空間に変換し、第1の周波数画像及び第2の周波数画像を生成する周波数空間変換ステップと、前記第1の周波数画像及び前記第2の周波数画像に含まれる複数の周波数成分の合成率を決定する合成率決定ステップと、前記複数の周波数成分の合成率に基づき前記第1の周波数画像と前記第2の周波数画像を合成し、第3の周波数画像を得る合成ステップと、前記第1の実空間画像のコントラスト値を算出するコントラスト算出ステップを含み、前記合成率決定ステップは、前記コントラスト値に応じて、前記複数の周波数成分の合成率を決定することを特徴とする画像処理方法。 (Method 1) An image processing method including a frequency space transformation step of transforming a first real space image and a second real space image into a frequency space, respectively, to generate a first frequency image and a second frequency image, a synthesis rate determination step of determining a synthesis rate of a plurality of frequency components contained in the first frequency image and the second frequency image, a synthesis step of synthesizing the first frequency image and the second frequency image based on the synthesis rate of the plurality of frequency components to obtain a third frequency image, and a contrast calculation step of calculating a contrast value of the first real space image, wherein the synthesis rate determination step determines the synthesis rate of the plurality of frequency components according to the contrast value.

(方法2)第1の実空間画像及び第2の実空間画像を夫々周波数空間に変換し、第1の周波数画像及び第2の周波数画像を生成する周波数空間変換ステップと、前記第1の周波数画像及び前記第2の周波数画像に含まれる複数の周波数成分の合成率を決定する合成率決定ステップと、前記複数の周波数成分の合成率に基づき前記第1の周波数画像と前記第2の周波数画像を合成し、第3の周波数画像を得る合成ステップと、前記第1の実空間画像の最小画素値を算出する処理又は、前記第1の実空間画像の画素値が閾値以下である画素を判定する処理の少なくともいずれか一方を含む演算により、画像の輝度レベルを示す輝度評価値を算出する輝度評価値算出ステップを含み、前記合成率決定ステップは、前記輝度評価値に応じて、前記複数の周波数成分の合成率を決定することを特徴とする画像処理方法。 (Method 2) An image processing method including a frequency space transformation step of transforming a first real space image and a second real space image into a frequency space, respectively, to generate a first frequency image and a second frequency image; a synthesis rate determination step of determining a synthesis rate of a plurality of frequency components contained in the first frequency image and the second frequency image; a synthesis step of synthesizing the first frequency image and the second frequency image based on the synthesis rate of the plurality of frequency components to obtain a third frequency image; and a luminance evaluation value calculation step of calculating a luminance evaluation value indicating a luminance level of an image by a calculation including at least one of a process of calculating a minimum pixel value of the first real space image or a process of determining pixels whose pixel values of the first real space image are equal to or less than a threshold value, wherein the synthesis rate determination step determines the synthesis rate of the plurality of frequency components according to the luminance evaluation value.

(方法3)第1の実空間画像及び第2の実空間画像を夫々周波数空間に変換し、第1の周波数画像及び第2の周波数画像を生成する周波数空間変換ステップと、前記第1の周波数画像及び前記第2の周波数画像に含まれる複数の周波数成分の合成率を決定する合成率決定ステップと、前記複数の周波数成分の合成率に基づき前記第1の周波数画像と前記第2の周波数画像を合成し、第3の周波数画像を得る合成ステップと、前記第1の実空間画像と前記第2の実空間画像との対応する画素間の差分の最大値を算出する差分算出ステップを含み、前記合成率決定ステップは、前記差分の最大値に応じて、前記複数の周波数成分の合成率を決定することを特徴とする画像処理方法。 (Method 3) An image processing method including a frequency space transformation step of transforming a first real space image and a second real space image into a frequency space, respectively, to generate a first frequency image and a second frequency image, a synthesis rate determination step of determining a synthesis rate of a plurality of frequency components contained in the first frequency image and the second frequency image, a synthesis step of synthesizing the first frequency image and the second frequency image based on the synthesis rate of the plurality of frequency components to obtain a third frequency image, and a difference calculation step of calculating a maximum value of the difference between corresponding pixels of the first real space image and the second real space image, wherein the synthesis rate determination step determines the synthesis rate of the plurality of frequency components according to the maximum value of the difference.

(プログラム)構成1~22いずれか1つに記載の画像処理装置の各手段をコンピュータにより制御するためのプログラム。 (Program) A program for controlling each means of the image processing device described in any one of configurations 1 to 22 by a computer.

尚、本実施例における制御の一部又は全部を実現するために、上述した実施例の機能を実現するコンピュータプログラムをネットワーク又は各種記憶媒体を介して画像処理装置等に供給するようにしてもよい。そしてその画像処理装置等におけるコンピュータ(又はCPUやMPU等)がそのプログラムを読み出して実行するようにしてもよい。その場合、そのプログラム、及び該プログラムを記憶した記憶媒体は本発明を構成することとなる。 In order to realize part or all of the control in this embodiment, a computer program that realizes the functions of the above-mentioned embodiment may be supplied to an image processing device or the like via a network or various storage media. Then, a computer (or a CPU, MPU, etc.) in the image processing device or the like may read and execute the program. In this case, the program and the storage medium on which the program is stored constitute the present invention.

100:撮像装置
101:制御部
102:ROM
103:RAM
104:光学系
105:撮像部
106:A/D変換部
107:画像処理部
108:記録部
109:通信部
110:表示部
111:指示入力部
201a:小領域抽出部
201b:小領域抽出部
202:合成部
203:小領域配置部
301a:DCT部
301b:DCT部
302:第1合成率算出部
303:コントラスト算出部
304:第1合成率補正部
305:加重加算部
306:逆DCT部
801:第2合成率算出部
1101:暗部評価値算出部
1102:第2合成率補正部
1201:差分最大値算出部
1202:第3合成率補正部

100: Imaging device 101: Control unit 102: ROM
103: RAM
104: Optical system 105: Imaging unit 106: A/D conversion unit 107: Image processing unit 108: Recording unit 109: Communication unit 110: Display unit 111: Instruction input unit 201a: Small region extraction unit 201b: Small region extraction unit 202: Combining unit 203: Small region arrangement unit 301a: DCT unit 301b: DCT unit 302: First combination rate calculation unit 303: Contrast calculation unit 304: First combination rate correction unit 305: Weighted addition unit 306: Inverse DCT unit 801: Second combination rate calculation unit 1101: Dark area evaluation value calculation unit 1102: Second combination rate correction unit 1201: Maximum difference calculation unit 1202: Third combination rate correction unit

Claims (26)

第1の実空間画像及び第2の実空間画像を夫々周波数空間に変換し、第1の周波数画像及び第2の周波数画像を生成する周波数空間変換手段と、
前記第1の周波数画像及び前記第2の周波数画像に含まれる複数の周波数成分の合成率を決定する合成率決定手段と、
前記複数の周波数成分の合成率に基づき前記第1の周波数画像と前記第2の周波数画像を合成し、第3の周波数画像を得る合成手段と、
前記第1の実空間画像のコントラスト値を算出するコントラスト算出手段を備え、
前記合成率決定手段は、前記コントラスト値に応じて、前記複数の周波数成分の合成率を決定することを特徴とする画像処理装置。
a frequency space transforming means for transforming the first real space image and the second real space image into a frequency space, respectively, to generate a first frequency image and a second frequency image;
a synthesis rate determination means for determining a synthesis rate of a plurality of frequency components included in the first frequency image and the second frequency image;
a synthesis means for synthesizing the first frequency image and the second frequency image based on a synthesis rate of the plurality of frequency components to obtain a third frequency image;
a contrast calculation means for calculating a contrast value of the first real space image,
The image processing apparatus according to claim 1, wherein the synthesis rate determining means determines a synthesis rate of the plurality of frequency components in accordance with the contrast value.
前記合成率決定手段は、前記コントラスト値が大きいほど前記複数の周波数成分間で合成率が一律に近づくように前記複数の周波数成分の合成率を決定することを特徴とする請求項1に記載の画像処理装置。 The image processing device according to claim 1, characterized in that the synthesis rate determination means determines the synthesis rate of the multiple frequency components so that the synthesis rate between the multiple frequency components approaches a uniform value as the contrast value increases. 前記合成率決定手段は、前記コントラスト値が大きいほど前記複数の周波数成分のうち少なくとも1つの周波数成分の合成率が小さくなるように前記複数の周波数成分の合成率を決定することを特徴とする請求項1に記載の画像処理装置。 The image processing device according to claim 1, characterized in that the synthesis rate determination means determines the synthesis rate of the multiple frequency components such that the synthesis rate of at least one of the multiple frequency components decreases as the contrast value increases. 前記コントラスト算出手段は、前記第1の実空間画像の最大画素値と最小画素値との差分により前記コントラスト値を算出することを特徴とする請求項1に記載の画像処理装置。 The image processing device according to claim 1, characterized in that the contrast calculation means calculates the contrast value by the difference between the maximum pixel value and the minimum pixel value of the first real space image. 画像から小領域画像を抽出する小領域抽出手段を更に備え、
前記小領域抽出手段は、第1の全体画像から前記第1の実空間画像を抽出し、前記第1の全体画像とは異なる第2の全体画像から前記第2の実空間画像を抽出することを特徴とする請求項1に記載の画像処理装置。
The method further comprises: extracting a small region image from the image;
2. The image processing device according to claim 1, wherein the small region extraction means extracts the first real-space image from a first overall image, and extracts the second real-space image from a second overall image different from the first overall image.
前記第3の周波数画像を実空間に変換し第3の実空間画像を生成する実空間変換手段を更に備えることを特徴とする請求項1に記載の画像処理装置。 The image processing device according to claim 1, further comprising a real space conversion means for converting the third frequency image into real space and generating a third real space image. 複数の小領域画像を配置して全体画像を生成する小領域配置手段を更に備え、
前記小領域配置手段は、複数の前記第3の実空間画像を配置して第3の全体画像を生成することを特徴とする請求項6に記載の画像処理装置。
A small area arrangement means for arranging the plurality of small area images to generate an entire image,
7. The image processing apparatus according to claim 6, wherein said small region arrangement means arranges a plurality of said third real space images to generate a third whole image.
第1の実空間画像及び第2の実空間画像を夫々周波数空間に変換し、第1の周波数画像及び第2の周波数画像を生成する周波数空間変換手段と、
前記第1の周波数画像及び前記第2の周波数画像に含まれる複数の周波数成分の合成率を決定する合成率決定手段と、
前記複数の周波数成分の合成率に基づき前記第1の周波数画像と前記第2の周波数画像を合成し、第3の周波数画像を得る合成手段と、
前記第1の実空間画像の最小の画素値を算出する処理又は、前記第1の実空間画像の画素値が閾値以下である画素を判定する処理の少なくともいずれか一方により、画像の輝度レベルを示す輝度評価値を算出する輝度評価値算出手段を備え、
前記合成率決定手段は、前記輝度評価値に応じて、前記複数の周波数成分の合成率を決定することを特徴とする画像処理装置。
a frequency space transforming means for transforming the first real space image and the second real space image into a frequency space, respectively, to generate a first frequency image and a second frequency image;
a synthesis rate determination means for determining a synthesis rate of a plurality of frequency components included in the first frequency image and the second frequency image;
a synthesis means for synthesizing the first frequency image and the second frequency image based on a synthesis rate of the plurality of frequency components to obtain a third frequency image;
a luminance evaluation value calculation means for calculating a luminance evaluation value indicating a luminance level of an image by at least one of a process of calculating a minimum pixel value of the first real space image and a process of determining a pixel whose pixel value of the first real space image is equal to or less than a threshold value;
The image processing device according to claim 1, wherein the synthesis rate determination means determines a synthesis rate of the plurality of frequency components in accordance with the luminance evaluation value.
前記合成率決定手段は、前記輝度評価値がより暗い輝度レベルであることを示す値であるほど、前記複数の周波数成分間で合成率が一律に近づくように前記複数の周波数成分の合成率を決定することを特徴とする請求項8に記載の画像処理装置。 The image processing device according to claim 8, characterized in that the synthesis rate determination means determines the synthesis rate of the plurality of frequency components so that the synthesis rate between the plurality of frequency components approaches uniformity as the luminance evaluation value indicates a darker luminance level. 前記合成率決定手段は、前記輝度評価値がより暗い輝度レベルであることを示す値であるほど、前記複数の周波数成分のうち少なくとも1つの周波数成分の合成率が0に近くなるように前記複数の周波数成分の合成率を決定することを特徴とする請求項8に記載の画像処理装置。 The image processing device according to claim 8, characterized in that the synthesis rate determination means determines the synthesis rate of the plurality of frequency components such that the synthesis rate of at least one of the plurality of frequency components approaches 0 as the luminance evaluation value indicates a darker luminance level. 輝度評価値算出手段は、前記第1の実空間画像の画素値が前記閾値以下である画素の数を前記輝度評価値として算出することを特徴とする請求項8に記載の画像処理装置。 The image processing device according to claim 8, characterized in that the luminance evaluation value calculation means calculates the number of pixels in the first real space image whose pixel values are equal to or less than the threshold value as the luminance evaluation value. 輝度評価値算出手段は、前記第1の実空間画像の画素値が前記閾値以下である1以上の画素に対して画素値に応じた重みを算出し、前記1以上の画素の前記重みを合計することにより前記輝度評価値を算出することを特徴とする請求項8に記載の画像処理装置。 The image processing device according to claim 8, characterized in that the luminance evaluation value calculation means calculates weights according to pixel values for one or more pixels of the first real space image whose pixel values are equal to or less than the threshold value, and calculates the luminance evaluation value by summing up the weights for the one or more pixels. 輝度評価値算出手段は、前記第1の実空間画像の最小の画素値を前記輝度評価値として算出することを特徴とする請求項8に記載の画像処理装置。 The image processing device according to claim 8, characterized in that the luminance evaluation value calculation means calculates the minimum pixel value of the first real space image as the luminance evaluation value. 画像から小領域画像を抽出する小領域抽出手段を更に備え、
前記小領域抽出手段は、第1の全体画像から前記第1の実空間画像を抽出し、前記第1の全体画像とは異なる第2の全体画像から前記第2の実空間画像を抽出することを特徴とする請求項8に記載の画像処理装置。
The method further comprises: extracting a small region image from the image;
9. The image processing device according to claim 8, wherein the small region extraction means extracts the first real-space image from a first overall image, and extracts the second real-space image from a second overall image different from the first overall image.
前記第3の周波数画像を実空間に変換し第3の実空間画像を生成する実空間変換手段を更に備えることを特徴とする請求項8に記載の画像処理装置。 The image processing device according to claim 8, further comprising a real space conversion means for converting the third frequency image into real space and generating a third real space image. 複数の小領域画像を配置して全体画像を生成する小領域配置手段を更に備え、
前記小領域配置手段は、複数の前記第3の実空間画像を配置して第3の全体画像を生成することを特徴とする請求項15に記載の画像処理装置。
A small area arrangement means for arranging the plurality of small area images to generate an entire image,
16. The image processing apparatus according to claim 15, wherein said small region arrangement means arranges a plurality of said third real space images to generate a third whole image.
第1の実空間画像及び第2の実空間画像を夫々周波数空間に変換し、第1の周波数画像及び第2の周波数画像を生成する周波数空間変換手段と、
前記第1の周波数画像及び前記第2の周波数画像に含まれる複数の周波数成分の合成率を決定する合成率決定手段と、
前記複数の周波数成分の合成率に基づき前記第1の周波数画像と前記第2の周波数画像を合成し、第3の周波数画像を得る合成手段と、
前記第1の実空間画像と前記第2の実空間画像との対応する画素間の差分の最大値を算出する差分算出手段を備え、
前記合成率決定手段は、前記差分の最大値に応じて、前記複数の周波数成分の合成率を決定することを特徴とする画像処理装置。
a frequency space transforming means for transforming the first real space image and the second real space image into a frequency space, respectively, to generate a first frequency image and a second frequency image;
a synthesis rate determination means for determining a synthesis rate of a plurality of frequency components included in the first frequency image and the second frequency image;
a synthesis means for synthesizing the first frequency image and the second frequency image based on a synthesis rate of the plurality of frequency components to obtain a third frequency image;
a difference calculation means for calculating a maximum value of differences between corresponding pixels of the first real space image and the second real space image,
The image processing device according to claim 1, wherein the synthesis rate determination means determines a synthesis rate of the plurality of frequency components in accordance with a maximum value of the differences.
前記合成率決定手段は、前記差分の最大値が大きいほど前記複数の周波数成分間で合成率が一律に近づくように前記複数の周波数成分の合成率を決定することを特徴とする請求項17に記載の画像処理装置。 The image processing device according to claim 17, characterized in that the synthesis rate determination means determines the synthesis rate of the multiple frequency components so that the synthesis rate between the multiple frequency components approaches a uniform value as the maximum value of the difference increases. 前記合成率決定手段は、前記差分の最大値が大きいほど、前記複数の周波数成分のうち少なくとも1つの周波数成分の合成率が0に近くなるように前記複数の周波数成分の合成率を決定することを特徴とする請求項17に記載の画像処理装置。 The image processing device according to claim 17, characterized in that the synthesis rate determination means determines the synthesis rate of the plurality of frequency components such that the synthesis rate of at least one of the plurality of frequency components approaches 0 as the maximum value of the difference increases. 画像から小領域画像を抽出する小領域抽出手段を更に備え、
前記小領域抽出手段は、第1の全体画像から前記第1の実空間画像を抽出し、前記第1の全体画像とは異なる第2の全体画像から前記第2の実空間画像を抽出することを特徴とする請求項17に記載の画像処理装置。
The method further comprises: extracting a small region image from the image;
18. The image processing device according to claim 17, wherein the small region extraction means extracts the first real-space image from a first overall image, and extracts the second real-space image from a second overall image different from the first overall image.
前記第3の周波数画像を実空間に変換し第3の実空間画像を生成する実空間変換手段を更に備えることを特徴とする請求項17に記載の画像処理装置。 The image processing device according to claim 17, further comprising a real space conversion means for converting the third frequency image into real space and generating a third real space image. 複数の小領域画像を配置して全体画像を生成する小領域配置手段を更に備え、
前記小領域配置手段は、複数の前記第3の実空間画像を配置して第3の全体画像を生成することを特徴とする請求項21に記載の画像処理装置。
A small area arrangement means for arranging the plurality of small area images to generate an entire image,
22. The image processing apparatus according to claim 21, wherein said small region arrangement means arranges a plurality of said third real space images to generate a third whole image.
第1の実空間画像及び第2の実空間画像を夫々周波数空間に変換し、第1の周波数画像及び第2の周波数画像を生成する周波数空間変換ステップと、
前記第1の周波数画像及び前記第2の周波数画像に含まれる複数の周波数成分の合成率を決定する合成率決定ステップと、
前記複数の周波数成分の合成率に基づき前記第1の周波数画像と前記第2の周波数画像を合成し、第3の周波数画像を得る合成ステップと、
前記第1の実空間画像のコントラスト値を算出するコントラスト算出ステップを含み、
前記合成率決定ステップは、前記コントラスト値に応じて、前記複数の周波数成分の合成率を決定することを特徴とする画像処理方法。
a frequency space transformation step of transforming the first real space image and the second real space image into a frequency space to generate a first frequency image and a second frequency image, respectively;
a synthesis rate determination step of determining a synthesis rate of a plurality of frequency components included in the first frequency image and the second frequency image;
a synthesis step of synthesizing the first frequency image and the second frequency image based on a synthesis rate of the plurality of frequency components to obtain a third frequency image;
a contrast calculation step of calculating a contrast value of the first real space image,
The image processing method according to claim 1, wherein the synthesis rate determination step determines a synthesis rate of the plurality of frequency components in accordance with the contrast value.
第1の実空間画像及び第2の実空間画像を夫々周波数空間に変換し、第1の周波数画像及び第2の周波数画像を生成する周波数空間変換ステップと、
前記第1の周波数画像及び前記第2の周波数画像に含まれる複数の周波数成分の合成率を決定する合成率決定ステップと、
前記複数の周波数成分の合成率に基づき前記第1の周波数画像と前記第2の周波数画像を合成し、第3の周波数画像を得る合成ステップと、
前記第1の実空間画像の最小画素値を算出する処理又は、前記第1の実空間画像の画素値が閾値以下である画素を判定する処理の少なくともいずれか一方を含む演算により、画像の輝度レベルを示す輝度評価値を算出する輝度評価値算出ステップを含み、
前記合成率決定ステップは、前記輝度評価値に応じて、前記複数の周波数成分の合成率を決定することを特徴とする画像処理方法。
a frequency space transformation step of transforming the first real space image and the second real space image into a frequency space to generate a first frequency image and a second frequency image, respectively;
a synthesis rate determination step of determining a synthesis rate of a plurality of frequency components included in the first frequency image and the second frequency image;
a synthesis step of synthesizing the first frequency image and the second frequency image based on a synthesis rate of the plurality of frequency components to obtain a third frequency image;
a luminance evaluation value calculation step of calculating a luminance evaluation value indicating a luminance level of an image by a calculation including at least one of a process of calculating a minimum pixel value of the first real space image and a process of determining a pixel whose pixel value of the first real space image is equal to or less than a threshold value;
The image processing method according to claim 1, wherein the synthesis rate determination step determines a synthesis rate of the plurality of frequency components in accordance with the luminance evaluation value.
第1の実空間画像及び第2の実空間画像を夫々周波数空間に変換し、第1の周波数画像及び第2の周波数画像を生成する周波数空間変換ステップと、
前記第1の周波数画像及び前記第2の周波数画像に含まれる複数の周波数成分の合成率を決定する合成率決定ステップと、
前記複数の周波数成分の合成率に基づき前記第1の周波数画像と前記第2の周波数画像を合成し、第3の周波数画像を得る合成ステップと、
前記第1の実空間画像と前記第2の実空間画像との対応する画素間の差分の最大値を算出する差分算出ステップを含み、
前記合成率決定ステップは、前記差分の最大値に応じて、前記複数の周波数成分の合成率を決定することを特徴とする画像処理方法。
a frequency space transformation step of transforming the first real space image and the second real space image into a frequency space to generate a first frequency image and a second frequency image, respectively;
a synthesis rate determination step of determining a synthesis rate of a plurality of frequency components included in the first frequency image and the second frequency image;
a synthesis step of synthesizing the first frequency image and the second frequency image based on a synthesis rate of the plurality of frequency components to obtain a third frequency image;
a difference calculation step of calculating a maximum value of differences between corresponding pixels of the first real space image and the second real space image,
The image processing method according to claim 1, wherein the synthesis rate determination step determines a synthesis rate of the plurality of frequency components in accordance with a maximum value of the differences.
請求項1~22いずれか1項に記載の画像処理装置の各手段をコンピュータにより制御するためのプログラム。 A program for controlling each means of the image processing device according to any one of claims 1 to 22 by a computer.
JP2022158962A 2022-09-30 2022-09-30 Image processing device, image processing method, and computer program Pending JP2024052316A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2022158962A JP2024052316A (en) 2022-09-30 2022-09-30 Image processing device, image processing method, and computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2022158962A JP2024052316A (en) 2022-09-30 2022-09-30 Image processing device, image processing method, and computer program

Publications (1)

Publication Number Publication Date
JP2024052316A true JP2024052316A (en) 2024-04-11

Family

ID=90623282

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2022158962A Pending JP2024052316A (en) 2022-09-30 2022-09-30 Image processing device, image processing method, and computer program

Country Status (1)

Country Link
JP (1) JP2024052316A (en)

Similar Documents

Publication Publication Date Title
EP2302903B1 (en) Image processing method, image processing apparatus, computer readable medium, and imaging apparatus
JP4705664B2 (en) Buffer management for adaptive buffer values using accumulation and averaging
JP5408053B2 (en) Image processing apparatus and image processing method
JP2009194700A (en) Image processor and image processing program
KR100793284B1 (en) Apparatus for digital image stabilizing, method using the same and computer readable medium stored thereon computer executable instruction for performing the method
JP2004221644A (en) Image processing apparatus and method therefor, recording medium, and program
JP2007228451A (en) Imaging apparatus
JP5177284B2 (en) Subject motion detection apparatus and method
WO2019124289A1 (en) Device, control method, and storage medium
JP2012199774A (en) Image processing apparatus, imaging apparatus, image processing program, and image processing method
CN110740266B (en) Image frame selection method and device, storage medium and electronic equipment
US8345121B2 (en) Image processing apparatus, method, and program
JP2004363853A (en) Method and device for reducing noise of image signal
JP5291788B2 (en) Imaging device
KR20100057558A (en) Pixel interpolation circuit, pixel interpolation method, and recording medium
JP2004246644A (en) Apparatus, method, and program for image processing
JP2011100204A (en) Image processor, image processing method, image processing program, imaging apparatus, and electronic device
JP2008288947A (en) Image processing apparatus and program thereof
JP2005150903A (en) Image processing apparatus, noise elimination method, and noise elimination program
JP2024052316A (en) Image processing device, image processing method, and computer program
JP5213604B2 (en) Imaging device
JP2015095890A (en) Image processing apparatus and control method for the same
JP2019016893A (en) Image processing apparatus, control method therefor, and program
JP7183015B2 (en) Image processing device, image processing method, and program
JP2020149589A (en) Image processing device, imaging apparatus, image processing method, and program