JP2005182232A - Luminance correcting device and method - Google Patents

Luminance correcting device and method Download PDF

Info

Publication number
JP2005182232A
JP2005182232A JP2003418942A JP2003418942A JP2005182232A JP 2005182232 A JP2005182232 A JP 2005182232A JP 2003418942 A JP2003418942 A JP 2003418942A JP 2003418942 A JP2003418942 A JP 2003418942A JP 2005182232 A JP2005182232 A JP 2005182232A
Authority
JP
Japan
Prior art keywords
image
brightness
luminance
smoothing
generating
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
JP2003418942A
Other languages
Japanese (ja)
Inventor
Hidenobu Iida
秀延 飯田
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2003418942A priority Critical patent/JP2005182232A/en
Priority to PCT/JP2004/018641 priority patent/WO2005059833A1/en
Publication of JP2005182232A publication Critical patent/JP2005182232A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/90Dynamic range modification of images or parts thereof
    • G06T5/94Dynamic range modification of images or parts thereof based on local image properties, e.g. for local contrast enhancement

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a luminance correcting device for smoothing the luminance of an original image in a dynamic range, and for suppressing the blur of the image, and for correcting it to an image suitable for even recognition processing or the like. <P>SOLUTION: This luminance correcting device 1 is provided with an image acquiring part 12 for acquiring an original image, a single-scale retinex processing part 13 for applying luminance smoothing processing to an original image acquired by the image acquiring part 12, and for generating a luminance smoothing processing image and an emphasis image generating part 14 for generating an emphasis image for defining an image by using the luminance smoothing processing image. The luminance smoothing processing image and the emphasis image are compounded by an image compounding part 15 so that the luminance correction image can be generated. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、カメラなどで得られた原画像が、極端に暗い画像、極端に明るい画像、または部分的な影をもつ画像である場合に、それらの原画像を見やすい画像に補正するための輝度補正技術に関する。   In the present invention, when an original image obtained by a camera or the like is an extremely dark image, an extremely bright image, or an image having a partial shadow, the luminance for correcting the original image to be easily viewable It relates to correction technology.

カメラで被写体を撮影すると、被写体の明るさによって、極端に暗い画像や極端に明るい画像が生成されることがある。また、部分的に影になっている画像が生成されることもある。これらの画像では、画素値がダイナミックレンジ内で特定のレベルに偏っており、見にくい画像になっている。   When a subject is photographed with a camera, an extremely dark image or an extremely bright image may be generated depending on the brightness of the subject. In addition, an image that is partially shaded may be generated. In these images, pixel values are biased to a specific level within the dynamic range, and the images are difficult to see.

従来より、ダイナミックレンジ内で輝度を平滑化するための輝度平滑化処理を含む輝度補正処理が知られている。輝度平滑化処理としては、例えば、シングルスケールレチネックス法(例えば非特許文献1参照)およびマルチスケールレチネックス法(例えば非特許文献2参照)がある。   Conventionally, luminance correction processing including luminance smoothing processing for smoothing luminance within a dynamic range is known. Examples of the luminance smoothing process include a single scale Retinex method (see, for example, Non-Patent Document 1) and a multiscale Retinex method (see, for example, Non-Patent Document 2).

これらの輝度補正処理では、画像に対して、輝度値が低くて暗い部分の輝度値を高くし、輝度値が高くて明るい部分の輝度値を低くすることにより、画像を見やすくしている。
ダニエル・ジェー・ジョブソン(Daniel J. Jobson)、他2名,「プロパティズ アンド パフォーマンス オブ センタ/サラウンド レチネックス(Properties and Performance of a Center/Surround Retinex)」,(米国),IEEE トランザクションズ オン イメージ プロセッシング(IEEE Transactions On Image Processing),1997年3月,Vol.6,No.3,p.451−462 ダニエル・ジェー・ジョブソン(Daniel J. Jobson)、他2名,「ア マルチスケール レチネックス フォー ブリッジング ザ ギャップ ビトゥウィーン カラー イメージズ アンド ザ ヒューマン オブザべーション オブ シーンズ(A Multiscale Retinex for Bridging the Gap Between Color Images and the Human Observation of Scenes)」,(米国),IEEE トランザクションズ オン イメージ プロセッシング(IEEE Transactions On Image Processing),1997年7月,Vol.6,No.7,p.965−976
In these brightness correction processes, an image is made easy to view by increasing the brightness value of a dark part with a low brightness value and decreasing the brightness value of a bright part with a high brightness value.
Daniel J. Jobson, two others, “Properties and Performance of a Center / Surround Retinex”, (USA), IEEE Transactions on Image Processing ( IEEE Transactions On Image Processing), March 1997, Vol. 6, no. 3, p. 451-462 Daniel J. Jobson and two others, “A Multiscale Retinex for Bridging the Gap Between Color Images and the Human Observation of Scenes), (USA), IEEE Transactions On Image Processing, July 1997, Vol. 6, no. 7, p. 965-976

しかし、レチネックス処理のような輝度平滑化処理を原画像に施した場合、画像における低輝度部分では輝度値が高くされ、高輝度部分では輝度値が低くされる。このため、輝度平滑化処理によって得られる輝度平滑化処理画像では、原画像よりもダイナミックレンジが狭くなる。ダイナミックレンジが狭くなると、画像中の線分やエッジなどの特徴が小さくなってしまう。そのため、輝度平滑化処理画像は、原画像よりも、メリハリがなく、ボケた画像になってしまう。このようなボケた画像では、画像中の特徴を利用した認識処理などが困難になる。   However, when luminance smoothing processing such as Retinex processing is performed on the original image, the luminance value is increased in the low luminance portion and the luminance value is decreased in the high luminance portion. For this reason, the dynamic range of the brightness smoothed image obtained by the brightness smoothing process is narrower than that of the original image. When the dynamic range becomes narrow, features such as line segments and edges in the image become small. For this reason, the luminance smoothing processed image is less sharp than the original image and becomes a blurred image. In such a blurred image, it is difficult to perform recognition processing using features in the image.

そこで本発明は、画像をより見やすくするとともに、画像のボケを抑えることができる輝度補正装置を提供することを目的とする。   SUMMARY OF THE INVENTION An object of the present invention is to provide a brightness correction apparatus that makes an image easier to see and can suppress blurring of the image.

本発明の輝度補正装置は、原画像を取得する画像取得手段と、前記画像取得手段にて取得した原画像から輝度平滑化処理画像を生成する輝度平滑化手段と、前記輝度平滑化処理画像の生成過程で生成されたボケ画像を用いて、画像鮮鋭化のための強調画像を生成する強調画像生成手段と、前記輝度平滑化処理画像と前記強調画像とを合成して合成画像を生成する画像合成手段とを備えている。   The luminance correction apparatus of the present invention includes an image acquisition unit that acquires an original image, a luminance smoothing unit that generates a luminance smoothed image from the original image acquired by the image acquisition unit, and the luminance smoothed image. An enhanced image generating means for generating an enhanced image for image sharpening using the blurred image generated in the generation process, and an image for generating a combined image by combining the brightness smoothed image and the enhanced image Synthesizing means.

この構成により、輝度平滑化処理によって原画像からメリハリのない輝度平滑化処理画像が生成されたとしても、その輝度平滑化処理画像と画像鮮鋭化のための強調画像とを合成するので、認識処理等にも適したメリハリのある輝度補正画像が得られる。また、輝度平滑化処理画像の生成過程で生成されたボケ画像を用いて強調画像を生成するので、強調画像の生成のためにわざわざボケ画像を生成する処理をする必要がなく、強調画像生成の処理負担が軽減される。   With this configuration, even if a brightness smoothed image without sharpness is generated from the original image by the brightness smoothing process, the brightness smoothed image and the enhanced image for image sharpening are combined, so that the recognition process A sharp brightness-corrected image suitable for the above is obtained. In addition, since the enhanced image is generated using the blurred image generated in the process of generating the luminance smoothed image, there is no need to perform the process of generating the blurred image for generating the enhanced image. The processing burden is reduced.

また、本発明の輝度補正装置は、前記画像取得手段にて取得した原画像を色画像と輝度画像とに分離する分離手段と、前記合成画像と前記色画像とを合成する色合成手段とを備えている。そして、前記輝度平滑化手段は、前記輝度画像の輝度を平滑化して前記輝度平滑化処理画像を生成する。   In addition, the luminance correction apparatus of the present invention includes a separating unit that separates the original image acquired by the image acquiring unit into a color image and a luminance image, and a color combining unit that combines the combined image and the color image. I have. The luminance smoothing means smoothes the luminance of the luminance image to generate the luminance smoothed image.

この構成により、カラーの原画像についても、認識処理等にも適したメリハリのある輝度補正画像が得られる。   With this configuration, a sharp brightness-corrected image suitable for recognition processing or the like can be obtained for a color original image.

また、本発明の輝度補正装置では、前記輝度平滑化手段が、シングルスケールレチネックス処理またはマルチスケールレチネックス処理によって前記輝度平滑化処理画像を生成する。   In the luminance correction apparatus of the present invention, the luminance smoothing means generates the luminance smoothed image by single scale Retinex processing or multiscale Retinex processing.

この構成により、シングルスケールレチネックス処理またはマルチスケールレチネックス処理に伴うボケの影響を好適に低減できる。   With this configuration, it is possible to suitably reduce the influence of blur associated with single-scale Retinex processing or multi-scale Retinex processing.

また、本発明の輝度補正方法は、原画像を取得する画像取得ステップと、前記画像取得ステップにて取得した原画像から輝度平滑化処理画像を生成する輝度平滑化ステップと、前記輝度平滑化画像の生成過程で生成されたボケ画像を用いて、画像鮮鋭化のための強調画像を生成する強調画像生成ステップと、前記輝度平滑化処理画像と前記強調画像とを合成して合成画像を生成する画像合成ステップとを含んでいる。   The luminance correction method of the present invention includes an image acquisition step for acquiring an original image, a luminance smoothing step for generating a luminance smoothed image from the original image acquired in the image acquisition step, and the luminance smoothed image. Using the blurred image generated in the generation process, an enhanced image generation step for generating an enhanced image for image sharpening, and the brightness smoothed image and the enhanced image are combined to generate a combined image. Image synthesis step.

この構成により、輝度平滑化処理によって原画像からメリハリのない輝度平滑化処理画像が生成されたとしても、その輝度平滑化処理画像と画像鮮鋭化のための強調画像とを合成するので、認識処理等にも適したメリハリのある輝度補正画像が得られる。また、輝度平滑化処理画像の生成過程で生成されたボケ画像を用いて強調画像を生成するので、強調画像の生成のためにわざわざボケ画像を生成する処理をする必要がなく、強調画像生成の処理負担が軽減される。   With this configuration, even if a brightness smoothed image without sharpness is generated from the original image by the brightness smoothing process, the brightness smoothed image and the enhanced image for image sharpening are combined, so that the recognition process A sharp brightness-corrected image suitable for the above is obtained. In addition, since the enhanced image is generated using the blurred image generated in the process of generating the luminance smoothed image, there is no need to perform the process of generating the blurred image for generating the enhanced image. The processing burden is reduced.

また、本発明の輝度補正方法は、前記画像取得ステップにて取得した原画像を色画像と輝度画像とに分離する分離ステップと、前記合成画像と前記色画像とを合成する色合成ステップとを含んでいる。そして、前記輝度平滑化ステップでは、前記輝度画像の輝度を平滑化して前記輝度平滑化処理画像を生成する。   The luminance correction method of the present invention includes a separation step of separating the original image acquired in the image acquisition step into a color image and a luminance image, and a color combination step of combining the combined image and the color image. Contains. In the brightness smoothing step, the brightness of the brightness image is smoothed to generate the brightness smoothed image.

この構成により、カラーの原画像についても、認識処理等にも適したメリハリのある輝度補正画像が得られる。   With this configuration, a sharp brightness-corrected image suitable for recognition processing or the like can be obtained for a color original image.

また、本発明は、輝度補正装置および輝度補正方法の態様には限定されない。本発明の別の態様は、例えば、上記の輝度補正方法をコンピュータに実行させるためのプログラムであり、また例えば、そのプログラムを記録した記録媒体である。   Further, the present invention is not limited to the aspect of the luminance correction apparatus and the luminance correction method. Another aspect of the present invention is, for example, a program for causing a computer to execute the above luminance correction method, and for example, a recording medium on which the program is recorded.

本発明は、原画像から輝度平滑化処理画像を生成する輝度平滑化手段と、輝度平滑化処理画像の生成過程で生成されたボケ画像を用いて、画像鮮鋭化のための強調画像を生成する強調画像生成手段とを含み、輝度平滑化処理画像と強調画像とを合成する構成としたので、カメラでの撮像等によって得られた原画像に対して、その輝度をダイナミックレンジ内で平滑化するとともに、画像のボケを抑えて、認識処理などにも適した画像に補正できるという効果を有する輝度補正装置を提供することができる。   The present invention generates an enhanced image for image sharpening using luminance smoothing means for generating a luminance smoothed image from an original image and a blurred image generated in the process of generating the luminance smoothed image. Since the brightness smoothed image and the enhanced image are combined with the enhanced image generating means, the brightness is smoothed within the dynamic range for the original image obtained by imaging with the camera. At the same time, it is possible to provide a luminance correction apparatus having an effect of suppressing blurring of an image and correcting the image to an image suitable for recognition processing.

(第1の実施の形態)
以下、本発明の第1の実施の形態について、図面を用いて説明する。
図1において、本発明の第1の実施の形態における輝度補正装置1は、画像取得部12、シングルスケールレチネックス処理部13、強調画像生成部14および画像合成部15を備えている。輝度補正装置1には、カメラ11および画像出力装置16が接続されている。
(First embodiment)
Hereinafter, a first embodiment of the present invention will be described with reference to the drawings.
In FIG. 1, the luminance correction apparatus 1 according to the first embodiment of the present invention includes an image acquisition unit 12, a single scale Retinex processing unit 13, an enhanced image generation unit 14, and an image synthesis unit 15. A camera 11 and an image output device 16 are connected to the brightness correction device 1.

輝度補正装置1は、コンピュータで構成されている。輝度補正装置1が輝度補正用のプログラムを実行することにより、画像取得部12、シングルスケールレチネックス処理部13、強調画像生成部14および画像合成部15が構成され、以下に説明する輝度補正処理が実行される。なお、輝度補正装置1において、画像取得部12、シングルスケールレチネックス処理部13、強調画像生成部14および画像合成部15はハードウェアによって構成されてもよい。   The brightness correction apparatus 1 is configured by a computer. When the brightness correction apparatus 1 executes a brightness correction program, an image acquisition unit 12, a single scale Retinex processing unit 13, an enhanced image generation unit 14, and an image composition unit 15 are configured, and brightness correction processing described below is performed. Is executed. In the luminance correction apparatus 1, the image acquisition unit 12, the single scale Retinex processing unit 13, the enhanced image generation unit 14, and the image synthesis unit 15 may be configured by hardware.

カメラ11は、CCD(Charge Coupled Device)やCMOS(Complementary Metal-Oxide-Silicon)等の固定撮像素子を備えている。そして、カメラ11は、固定撮像素子を用いて被写体像を撮像することにより画像信号を生成し、画像取得部12に出力する。カメラ11には、図示しないパン機構、チルト機構およびズーム機構が備えられている。カメラ11は、例えば、屋外に監視用カメラとして設置され、または、自動車に設置される。   The camera 11 includes a fixed image sensor such as a charge coupled device (CCD) or a complementary metal-oxide-silicon (CMOS). The camera 11 captures a subject image using a fixed image sensor, generates an image signal, and outputs the image signal to the image acquisition unit 12. The camera 11 includes a pan mechanism, a tilt mechanism, and a zoom mechanism (not shown). For example, the camera 11 is installed outdoors as a monitoring camera or installed in an automobile.

カメラ11がモノクロ画像を撮影するカメラであるときは、輝度補正装置1の画像取得部12は、カメラ11から入力された原画像の画像信号をモノクロ画像の画像信号としてシングルスケールレチネックス処理部13及び強調画像生成部14へ出力する。カメラ11がRGBのフィルタを備えており、カラー画像を撮影するカメラであるときは、画像取得部12は、カメラ11から入力された原画像の画像信号をRGBのフルカラー画像の画像信号として出力する。   When the camera 11 is a camera that captures a monochrome image, the image acquisition unit 12 of the brightness correction apparatus 1 uses the original image signal input from the camera 11 as a monochrome image signal as a single-scale Retinex processing unit 13. And output to the enhanced image generation unit 14. When the camera 11 includes an RGB filter and captures a color image, the image acquisition unit 12 outputs an image signal of the original image input from the camera 11 as an image signal of an RGB full-color image. .

シングルスケールレチネックス処理部13は、画像取得部12から入力された原画像に対してシングルスケールレチネックス処理を施す。原画像における注目画素(x,y)の画素値をIi(x,y)とすると、レチネックス処理画像の画素値Ri(x,y)は、式(1)で表される。なお、iは画像の輝度成分を表している。

Figure 2005182232
ここで、「*」は畳み込み積分を表している。また、Gは、式(2)で表されるガウシアン関数である。
Figure 2005182232
式(2)に含まれるKは正規化のための定数である。また、δはガウス周辺関数の標準偏差であり、平滑化処理を行う際に用いる周辺領域の面積の大きさの度合いを表す。式(1)で示されるレチネックス処理画像は、本発明の輝度平滑化画像に相当する。 The single scale retinex processing unit 13 performs single scale retinex processing on the original image input from the image acquisition unit 12. Assuming that the pixel value of the target pixel (x, y) in the original image is Ii (x, y), the pixel value Ri (x, y) of the Retinex processed image is expressed by Expression (1). Note that i represents the luminance component of the image.
Figure 2005182232
Here, “*” represents a convolution integral. G is a Gaussian function expressed by Equation (2).
Figure 2005182232
K included in Equation (2) is a constant for normalization. Further, δ is a standard deviation of the Gaussian peripheral function, and represents the degree of the size of the peripheral region used when performing the smoothing process. The Retinex processed image represented by Expression (1) corresponds to the luminance smoothed image of the present invention.

強調画像生成部14は、画像鮮鋭化のための強調画像を生成する。強調画像は、画像取得部12にて取得した原画像のエッジ部分が強調された画像である。原画像における注目画素(x,y)の画素値をIi(x,y)とすると、強調画像生成部14にて生成される強調画像の画素値I’i(x,y)は式(3)で表される。

Figure 2005182232
式(3)に示されるように、強調画像はG(x,y)*Ii(x,y)(以下、ボケ画像という)と原画像Ii(x,y)の差分の絶対値を定数倍したものである。 The enhanced image generation unit 14 generates an enhanced image for image sharpening. The emphasized image is an image in which the edge portion of the original image acquired by the image acquisition unit 12 is emphasized. Assuming that the pixel value of the target pixel (x, y) in the original image is Ii (x, y), the pixel value I′i (x, y) of the emphasized image generated by the emphasized image generation unit 14 is expressed by Equation (3). ).
Figure 2005182232
As shown in Expression (3), the emphasized image is obtained by multiplying the absolute value of the difference between G (x, y) * Ii (x, y) (hereinafter referred to as a blurred image) and the original image Ii (x, y) by a constant. It is a thing.

ここで、式(3)にて強調画像の生成に用いるボケ画像G(x,y)*Ii(x,y)は、式(1)で表されるシングルスケールレチネックス処理の過程で既に生成されている。そこで、強調画像生成部14は、図1に示すように、式(3)によって強調画像を生成する際に、シングルスケールレチネックス処理部13にて式(1)によって既に生成されたボケ画像G(x,y)*Ii(x,y)を用いる。なお、式(3)の定数Bは、実験により得られた値であり、0.1〜0.5程度に設定するのが望ましい。   Here, the blurred image G (x, y) * Ii (x, y) used to generate the enhanced image in Expression (3) has already been generated in the course of the single-scale Retinex process represented by Expression (1). Has been. Therefore, as illustrated in FIG. 1, the enhanced image generation unit 14 generates the blurred image G that has already been generated by the single scale Retinex processing unit 13 according to the equation (1) when generating the enhanced image according to the equation (3). (X, y) * Ii (x, y) is used. In addition, the constant B of Formula (3) is a value obtained by experiment and it is desirable to set to about 0.1-0.5.

画像合成部15は、シングルスケールレチネックス処理部13の出力と強調画像生成部14の出力、すなわち、レチネックス処理画像と強調画像とを合成する。この合成処理は、式(4)で表される。

Figure 2005182232
ここで、Oi(x,y)は、合成画像の画素値であり、本実施の形態の輝度補正装置1における輝度補正の結果である。なお、式(4)の計算結果が値の上限を超えた場合には、クリッピング処理が施される。例えば、Oi(x,y)の取り得る範囲が、0〜255である場合に、ある画素についての式(4)の計算結果が255を超えたときは、その画素値は255とされる。 The image synthesis unit 15 synthesizes the output of the single scale Retinex processing unit 13 and the output of the enhanced image generation unit 14, that is, the Retinex processed image and the enhanced image. This synthesis process is expressed by equation (4).
Figure 2005182232
Here, Oi (x, y) is a pixel value of the composite image, and is a result of the brightness correction in the brightness correction apparatus 1 of the present embodiment. When the calculation result of Expression (4) exceeds the upper limit of the value, clipping processing is performed. For example, when the range that Oi (x, y) can take is 0 to 255 and the calculation result of Expression (4) for a certain pixel exceeds 255, the pixel value is set to 255.

画像出力装置16は、画像合成部15で生成された合成画像を、モニタや後段の処理装置へ出力する。   The image output device 16 outputs the composite image generated by the image composition unit 15 to a monitor or a subsequent processing device.

以上のように構成された輝度補正装置1について、図2を用いてその動作を説明する。
まず、シングルスケールレチネックス処理部13が、画像取得部12にて取得された原画像に、シングルスケールレチネックス処理を施す(ステップS31)。次に、強調画像生成部14が、シングルスケールレチネックス処理の過程で生成されたボケ画像と画像取得部12にて取得された原画像を用いて、エッジの強調された強調画像を生成する(ステップS32)。そして、画像合成部15が、強調画像とレチネックス処理画像を合成して、合成画像を生成する(ステップS33)。
The operation of the brightness correction apparatus 1 configured as described above will be described with reference to FIG.
First, the single scale Retinex processing unit 13 performs a single scale Retinex process on the original image acquired by the image acquisition unit 12 (Step S31). Next, the enhanced image generation unit 14 generates an enhanced image with enhanced edges using the blurred image generated in the course of the single scale Retinex process and the original image acquired by the image acquisition unit 12 ( Step S32). Then, the image synthesizing unit 15 synthesizes the enhanced image and the Retinex processed image to generate a synthesized image (step S33).

以上に説明した第1の実施の形態では、強調画像生成部14にて生成される強調画像は、上記の通り、原画像におけるエッジ部分が強調された画像であるので、レチネックス処理画像がボケてしまっている場合にも、そのレチネックス処理画像に強調画像を合成することにより、エッジ部分が強調されて鮮鋭化された画像になる。したがって、第1の実施の形態の輝度補正装置1によれば、入力された原画像の輝度をダイナミックレンジ内で平滑化するとともに、認識処理等にも適したメリハリのある画像に補正できる。   In the first embodiment described above, since the enhanced image generated by the enhanced image generation unit 14 is an image in which the edge portion in the original image is enhanced as described above, the Retinex processed image is blurred. Even in the case where the image is closed, the edge image is emphasized and sharpened by combining the enhanced image with the retinex processed image. Therefore, according to the luminance correction apparatus 1 of the first embodiment, the luminance of the input original image can be smoothed within the dynamic range, and can be corrected to a sharp image suitable for recognition processing and the like.

また、第1の実施の形態の輝度補正装置1では、強調画像生成部14にて画像鮮鋭化のための強調画像を生成するために用いるボケ画像として、既にレチネックス処理の過程で生成されたボケ画像を用いる。これにより、強調画像生成のためにわざわざボケ画像を生成する必要がなく、強調画像生成のための処理負担を軽減できる。   Further, in the luminance correction apparatus 1 of the first embodiment, the blurred image already generated in the course of the Retinex process as a blurred image used for generating an enhanced image for image sharpening in the enhanced image generation unit 14. Use images. Accordingly, it is not necessary to generate a blurred image for generating an emphasized image, and the processing load for generating the emphasized image can be reduced.

(第2の実施の形態)
次に、本発明の第2の実施の形態の画像補正装置2を図3に示す。
本実施の形態の輝度補正装置2は、第1の実施の形態の輝度補正装置1の構成に加えて、色情報分離部23および色情報合成部27を備えている。
(Second Embodiment)
Next, an image correction apparatus 2 according to a second embodiment of the present invention is shown in FIG.
In addition to the configuration of the luminance correction apparatus 1 of the first embodiment, the luminance correction apparatus 2 of the present embodiment includes a color information separation unit 23 and a color information synthesis unit 27.

カメラ21は、RGBのフィルタを備えている。画像取得部22は、カメラ11の撮影によって生成された原画像の画像信号を取得して、RGBのフルカラー画像の画像信号として色情報分離部へ出力する。   The camera 21 includes RGB filters. The image acquisition unit 22 acquires an image signal of an original image generated by photographing with the camera 11 and outputs the image signal as an RGB full-color image signal to the color information separation unit.

色情報分離部23は、入力された原画像から、色情報を抽出して色画像を生成し、また、原画像から輝度情報を抽出して輝度画像を生成する。色情報分離部23において、フルカラー画像である原画像を色画像および輝度画像に分離する手法としては、公知の種々の手法を採用できる。本実施の形態では、色情報分離部23は、HSV空間を用いて、原画像をHSVデータに変換する。そして、色情報分離部23は、色情報として(H,S)を用い、輝度情報としてVを用い、色画像および輝度画像を生成する。RGBデータからHSVデータへの変換は以下の変換式を用いて行う。   The color information separation unit 23 extracts color information from the input original image to generate a color image, and extracts luminance information from the original image to generate a luminance image. As the technique for separating the original image, which is a full-color image, into the color image and the luminance image in the color information separation unit 23, various known techniques can be employed. In the present embodiment, the color information separation unit 23 converts the original image into HSV data using the HSV space. Then, the color information separation unit 23 generates a color image and a luminance image using (H, S) as the color information and V as the luminance information. Conversion from RGB data to HSV data is performed using the following conversion formula.

H = tan-1{(G−B)/(2R−G−B)}
S ={(B−R)2+(R−G)2+(G−B)2}/3
V = R+G+B
ただし、R、G、Bは、それぞれ0から1に規格化されており、Vは0から3に、Hは0から2πに、Sは0から2/3に、それぞれ規格化されている。RGBデータからHSVデータへの変換は、例えば、高木幹雄ら著,「画像解析ハンドブック」,東京大学出版会,p.485−491(1991)にも記載されている。
H = tan −1 {(GB) / (2R−GB)}
S = {(BR) 2 + (RG) 2 + (GB) 2 } / 3
V = R + G + B
However, R, G, and B are normalized from 0 to 1, respectively, V is normalized from 0 to 3, H is normalized from 0 to 2π, and S is normalized from 0 to 2/3. The conversion from RGB data to HSV data is described, for example, by Mikio Takagi et al., “Image Analysis Handbook”, University of Tokyo Press, p. 485-491 (1991).

画像分離の他の手法としては、HSV空間の他にも、色情報と輝度情報が分離可能である別の色空間を用いることができる。例えば、式(5)で表されるYIQ空間、または式(6)で表されるYCrCv空間を用いてもよい。

Figure 2005182232
Figure 2005182232
色画像は、色情報合成部27に出力され、輝度画像は、シングルスケールレチネックス処理部24および強調画像生成部25に出力される。 As another method of image separation, in addition to the HSV space, another color space in which color information and luminance information can be separated can be used. For example, a YIQ space represented by Formula (5) or a YCrCv space represented by Formula (6) may be used.
Figure 2005182232
Figure 2005182232
The color image is output to the color information synthesis unit 27, and the luminance image is output to the single scale Retinex processing unit 24 and the enhanced image generation unit 25.

シングルスケールレチネックス処理部24は、色情報分離部23から入力された輝度画像に対して、第1の実施の形態と同様にして、シングルスケールレチネックス処理を施す。強調画像生成部25は、色情報分離部23にて生成された輝度画像とシングルスケールレチネックス処理部24にて生成されたボケ画像を用いて、第1の実施の形態と同様にして、エッジ部分が強調された強調画像を生成する。また、画像合成部26も第1の実施の形態と同様にして、レチネックス処理画像と強調画像とを合成し、合成画像を生成する。   The single scale retinex processing unit 24 performs the single scale retinex processing on the luminance image input from the color information separation unit 23 in the same manner as in the first embodiment. The enhanced image generation unit 25 uses the luminance image generated by the color information separation unit 23 and the blurred image generated by the single-scale retinex processing unit 24 to perform edge processing in the same manner as in the first embodiment. An enhanced image in which a portion is enhanced is generated. The image composition unit 26 also composes the retinex processed image and the enhanced image in the same manner as in the first embodiment to generate a composite image.

色情報合成部27は、色情報分離部23にて生成された色画像を取り込んで、この色画像と画像合成部26にて生成された合成画像とを合成し、色合成画像を生成する。ここで、画像合成部26にて生成された合成画像は、輝度情報のみを表す画像であって、一方、色情報分離部23から出力された色画像は、画像取得部22から出力された原画像の色情報のみを表す画像である。したがって、両画像を合成することにより生成される色合成画像は、輝度成分が補正されたカラーの画像である。   The color information synthesizing unit 27 takes in the color image generated by the color information separating unit 23 and synthesizes the color image and the synthesized image generated by the image synthesizing unit 26 to generate a color synthesized image. Here, the synthesized image generated by the image synthesizing unit 26 is an image representing only luminance information, while the color image output from the color information separating unit 23 is the original image output from the image acquiring unit 22. It is an image representing only the color information of the image. Therefore, the color composite image generated by combining both images is a color image with the luminance component corrected.

画像出力装置28は、色情報合成部27にて生成された色合成画像を取り込み、モニタや後段の処理装置へ出力する。   The image output device 28 captures the color composite image generated by the color information composition unit 27 and outputs it to a monitor or a subsequent processing device.

以上のように構成された輝度補正装置2について、図4を用いてその動作を説明する。
まず、色情報分離部23が、画像取得部22にて取得された原画像を色画像と輝度画像に分離する(ステップS41)。そして、シングルスケールレチネックス処理部24が、色情報分離部23にて分離された輝度画像に、シングルスケールレチネックス処理を施す(ステップS42)。次に、強調画像生成部25が、そのシングルスケールレチネックス処理の過程で生成されたボケ画像と色情報分離部23にて分離された輝度画像を用いて、エッジの強調された強調画像を生成する(ステップS43)。次に、画像合成部26が、強調画像とレチネックス処理画像を合成して、合成画像を生成する(ステップS44)。最後に、色情報合成部27が、色情報分離部23にて分離された色画像と画像合成部26にて生成された合成画像とを合成して、色合成画像を生成する(ステップS45)。
The operation of the brightness correction apparatus 2 configured as described above will be described with reference to FIG.
First, the color information separation unit 23 separates the original image acquired by the image acquisition unit 22 into a color image and a luminance image (step S41). Then, the single scale retinex processing unit 24 performs single scale retinex processing on the luminance image separated by the color information separation unit 23 (step S42). Next, the enhanced image generation unit 25 generates an enhanced image with an edge enhanced using the blurred image generated in the course of the single scale Retinex process and the luminance image separated by the color information separation unit 23. (Step S43). Next, the image synthesizing unit 26 synthesizes the enhanced image and the retinex processed image to generate a synthesized image (step S44). Finally, the color information combining unit 27 combines the color image separated by the color information separating unit 23 and the combined image generated by the image combining unit 26 to generate a color combined image (step S45). .

このような第2の実施の形態の輝度補正装置2によれば、入力されたカラーの原画像の輝度成分のみを用いて、シングルスケールレチネックス処理、強調画像生成処理および合成処理を行うので、カラー画像についても、好適にダイナミックレンジ内で画素値が平滑化された見やすい画像に補正するとともに、認識処理等にも適したメリハリのある輝度補正画像が得られる。   According to the brightness correction apparatus 2 of the second embodiment as described above, the single scale Retinex process, the enhanced image generation process, and the synthesis process are performed using only the brightness component of the input color original image. The color image is also corrected to an easy-to-view image in which pixel values are preferably smoothed within the dynamic range, and a sharp brightness-corrected image suitable for recognition processing and the like is obtained.

なお、上記の第1および第2の実施の形態では、シングルスケールレチネックス処理部13を設けて、原画像または原画像から分離された輝度画像にシングルスケールレチネックス処理を施したが、画像の輝度を平滑化する処理は、マルチスケールレチネックス処理でもよいし、他の輝度平滑化処理でもよい。   In the first and second embodiments described above, the single scale Retinex processing unit 13 is provided to perform the single scale Retinex processing on the original image or the luminance image separated from the original image. The process for smoothing the brightness may be a multi-scale Retinex process or another brightness smoothing process.

以上のように、本発明にかかる輝度補正装置は、原画像から輝度平滑化処理画像を生成する輝度平滑化手段と、輝度平滑化処理画像の生成過程で生成されたボケ画像を用いて、画像鮮鋭化のための強調画像を生成する強調画像生成手段とを含み、輝度平滑化処理画像と強調画像とを合成する構成としたので、カメラで撮像すること等によって得られた原画像に対して、その輝度をダイナミックレンジ内で平滑化するとともに、画像のボケを抑えて、認識処理などにも適した画像に補正できるという効果を有し、カメラなどで得られた原画像が、極端に暗い画像、極端に明るい画像、または部分的に影がある画像である場合に、それらの原画像を見やすい画像に補正するための輝度補正装置として有用である。   As described above, the brightness correction apparatus according to the present invention uses the brightness smoothing unit that generates the brightness smoothed image from the original image and the blurred image generated in the process of generating the brightness smoothed image. It includes an enhanced image generating means for generating an enhanced image for sharpening, and is configured to synthesize the brightness smoothed image and the enhanced image, so that the original image obtained by taking a picture with a camera, etc. , Smoothing the brightness within the dynamic range, reducing blurring of the image, and correcting it to an image suitable for recognition processing. The original image obtained with a camera is extremely dark. In the case of an image, an extremely bright image, or an image with a partial shadow, it is useful as a luminance correction device for correcting the original image into an easily viewable image.

本発明の第1の実施の形態における輝度補正装置のブロック図The block diagram of the brightness correction apparatus in the 1st Embodiment of this invention 本発明の第1の実施の形態における輝度補正装置の動作説明のためのフロー図The flowchart for operation | movement description of the brightness correction apparatus in the 1st Embodiment of this invention 本発明の第2の実施の形態における輝度補正装置のブロック図The block diagram of the brightness correction apparatus in the 2nd Embodiment of this invention 本発明の第2の実施の形態における輝度補正装置の動作説明のためのフロー図Flow chart for explaining the operation of the brightness correction apparatus in the second embodiment of the present invention

符号の説明Explanation of symbols

1、2 輝度補正装置
12、22 画像取得部
13、24 シングルスケールレチネックス処理部
14、25 強調画像生成部
15、26 画像合成部
23 色情報分離部
27 色情報合成部

DESCRIPTION OF SYMBOLS 1, 2 Brightness correction apparatus 12, 22 Image acquisition part 13, 24 Single scale Retinex processing part 14, 25 Enhanced image generation part 15, 26 Image composition part 23 Color information separation part 27 Color information composition part

Claims (8)

原画像を取得する画像取得手段と、
前記画像取得手段にて取得した原画像から輝度平滑化処理画像を生成する輝度平滑化手段と、
前記輝度平滑化処理画像の生成過程で生成されたボケ画像を用いて、画像鮮鋭化のための強調画像を生成する強調画像生成手段と、
前記輝度平滑化処理画像と前記強調画像とを合成して合成画像を生成する画像合成手段と
を備えたことを特徴とする輝度補正装置。
Image acquisition means for acquiring an original image;
Brightness smoothing means for generating a brightness smoothed image from the original image acquired by the image acquisition means;
Emphasized image generating means for generating an emphasized image for image sharpening using the blurred image generated in the generation process of the luminance smoothing processed image;
A luminance correction apparatus comprising: an image synthesis unit that synthesizes the luminance smoothed image and the enhanced image to generate a synthesized image.
前記画像取得手段にて取得した原画像を色画像と輝度画像とに分離する分離手段と、
前記合成画像と前記色画像とを合成する色合成手段とを備え、
前記輝度平滑化手段は、前記輝度画像の輝度を平滑化して前記輝度平滑化処理画像を生成することを特徴とする請求項1に記載の輝度補正装置。
Separating means for separating the original image obtained by the image obtaining means into a color image and a luminance image;
Color synthesis means for synthesizing the synthesized image and the color image;
The brightness correction apparatus according to claim 1, wherein the brightness smoothing unit generates the brightness smoothed image by smoothing brightness of the brightness image.
前記輝度平滑化手段は、シングルスケールレチネックス処理またはマルチスケールレチネックス処理によって前記輝度平滑化処理画像を生成すること特徴とする請求項1または2に記載の輝度補正装置。 The brightness correction apparatus according to claim 1, wherein the brightness smoothing unit generates the brightness smoothed image by single scale Retinex processing or multiscale Retinex processing. 原画像を取得する画像取得ステップと、
前記画像取得ステップにて取得した原画像から輝度平滑化処理画像を生成する輝度平滑化ステップと、
前記輝度平滑化画像の生成過程で生成されたボケ画像を用いて、画像鮮鋭化のための強調画像を生成する強調画像生成ステップと、
前記輝度平滑化処理画像と前記強調画像とを合成して合成画像を生成する画像合成ステップと
を含むことを特徴とする輝度補正方法。
An image acquisition step of acquiring an original image;
A luminance smoothing step for generating a luminance smoothing processed image from the original image acquired in the image acquisition step;
Using the blurred image generated in the process of generating the luminance smoothed image, an enhanced image generating step for generating an enhanced image for image sharpening,
A luminance correction method comprising: an image synthesis step of generating a synthesized image by synthesizing the luminance smoothed image and the enhanced image.
前記画像取得ステップにて取得した原画像を色画像と輝度画像とに分離する分離ステップと、
前記合成画像と前記色画像とを合成する色合成ステップとを含み、
前記輝度平滑化ステップでは、前記輝度画像の輝度を平滑化して前記輝度平滑化処理画像を生成することを特徴とする請求項4に記載の輝度補正方法。
A separation step of separating the original image acquired in the image acquisition step into a color image and a luminance image;
A color synthesis step of synthesizing the synthesized image and the color image;
The brightness correction method according to claim 4, wherein, in the brightness smoothing step, the brightness smoothed image is generated by smoothing brightness of the brightness image.
原画像を取得する画像取得ステップと、
前記画像取得ステップにて取得した原画像から輝度平滑化処理画像を生成する輝度平滑化ステップと、
前記輝度平滑化画像の生成過程で生成されたボケ画像を用いて、画像鮮鋭化のための強調画像を生成する強調画像生成ステップと、
前記輝度平滑化処理画像と前記強調画像とを合成して合成画像を生成する画像合成ステップと
を含むことを特徴とする輝度補正方法をコンピュータに実行させるためのプログラム。
An image acquisition step of acquiring an original image;
A luminance smoothing step for generating a luminance smoothing processed image from the original image acquired in the image acquisition step;
Using the blurred image generated in the process of generating the luminance smoothed image, an enhanced image generating step for generating an enhanced image for image sharpening,
The program for making a computer perform the brightness correction method characterized by including the image synthetic | combination step which synthesize | combines the said brightness | luminance smoothing process image and the said emphasis image, and produces | generates a synthesized image.
前記画像取得ステップにて取得した原画像を色画像と輝度画像とに分離する分離ステップと、
前記合成画像と前記色画像とを合成する色合成ステップとを含み、
前記輝度平滑化ステップでは、前記輝度画像の輝度を平滑化して前記輝度平滑化処理画像を生成することを特徴とする請求項6に記載の輝度補正方法をコンピュータに実行させるためのプログラム。
A separation step of separating the original image acquired in the image acquisition step into a color image and a luminance image;
A color synthesis step of synthesizing the synthesized image and the color image;
The program for causing a computer to execute the brightness correction method according to claim 6, wherein, in the brightness smoothing step, the brightness smoothed image is generated by smoothing brightness of the brightness image.
請求項6または7に記載のプログラムを記録した、コンピュータにて読み取り可能な記録媒体。

A computer-readable recording medium on which the program according to claim 6 or 7 is recorded.

JP2003418942A 2003-12-17 2003-12-17 Luminance correcting device and method Pending JP2005182232A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2003418942A JP2005182232A (en) 2003-12-17 2003-12-17 Luminance correcting device and method
PCT/JP2004/018641 WO2005059833A1 (en) 2003-12-17 2004-12-14 Brightness correction apparatus and brightness correction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003418942A JP2005182232A (en) 2003-12-17 2003-12-17 Luminance correcting device and method

Publications (1)

Publication Number Publication Date
JP2005182232A true JP2005182232A (en) 2005-07-07

Family

ID=34697154

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003418942A Pending JP2005182232A (en) 2003-12-17 2003-12-17 Luminance correcting device and method

Country Status (2)

Country Link
JP (1) JP2005182232A (en)
WO (1) WO2005059833A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100782845B1 (en) 2005-09-29 2007-12-06 삼성전자주식회사 A digital image enhancement method and system using non-log domain illumination correction
JP2009076980A (en) * 2007-09-18 2009-04-09 Toshiba Corp Image correcting device
US8269898B2 (en) 2007-05-09 2012-09-18 Kabushiki Kaisha Toshiba Image processing apparatus
CN102693708A (en) * 2011-03-23 2012-09-26 富士通天株式会社 Display control apparatus, image display system and display control method
JP2015192203A (en) * 2014-03-27 2015-11-02 日立マクセル株式会社 Video processing apparatus and projector using the same
WO2016169244A1 (en) * 2015-04-20 2016-10-27 中国矿业大学 Method of denoising and enhancing video image based on random spray retinex and device utilizing same
JP2018025508A (en) * 2016-08-12 2018-02-15 日本電子株式会社 Image processor, image processing method, and analyzer
JP2021033502A (en) * 2019-08-21 2021-03-01 富士通株式会社 Image processing device, method, and program

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3485454B2 (en) * 1996-12-18 2004-01-13 富士通株式会社 Image gradation conversion device, image gradation changing method, medium recording program for executing the method, and infrared camera
JP3581270B2 (en) * 1999-03-26 2004-10-27 ノーリツ鋼機株式会社 Image processing apparatus, image processing method, and recording medium recording image processing program
US6813041B1 (en) * 2000-03-31 2004-11-02 Hewlett-Packard Development Company, L.P. Method and apparatus for performing local color correction

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100782845B1 (en) 2005-09-29 2007-12-06 삼성전자주식회사 A digital image enhancement method and system using non-log domain illumination correction
US8269898B2 (en) 2007-05-09 2012-09-18 Kabushiki Kaisha Toshiba Image processing apparatus
JP2009076980A (en) * 2007-09-18 2009-04-09 Toshiba Corp Image correcting device
CN102693708A (en) * 2011-03-23 2012-09-26 富士通天株式会社 Display control apparatus, image display system and display control method
CN102693708B (en) * 2011-03-23 2014-12-03 富士通天株式会社 Display control apparatus, image display system and display control method
US9041747B2 (en) 2011-03-23 2015-05-26 Fujitsu Ten Limited Display control apparatus
JP2015192203A (en) * 2014-03-27 2015-11-02 日立マクセル株式会社 Video processing apparatus and projector using the same
WO2016169244A1 (en) * 2015-04-20 2016-10-27 中国矿业大学 Method of denoising and enhancing video image based on random spray retinex and device utilizing same
US9978131B2 (en) 2015-04-20 2018-05-22 China University Of Mining And Technology Video image denoising and enhancing method and device based on random spray retinex
JP2018025508A (en) * 2016-08-12 2018-02-15 日本電子株式会社 Image processor, image processing method, and analyzer
JP2021033502A (en) * 2019-08-21 2021-03-01 富士通株式会社 Image processing device, method, and program
JP7342517B2 (en) 2019-08-21 2023-09-12 富士通株式会社 Image processing device, method, and program

Also Published As

Publication number Publication date
WO2005059833A1 (en) 2005-06-30

Similar Documents

Publication Publication Date Title
KR101633893B1 (en) Apparatus and Method for Image Fusion
JP2010141653A (en) Image processing device and imaging apparatus
JP6818463B2 (en) Image processing equipment, image processing methods and programs
JP4818393B2 (en) Image processing method and image processing apparatus
KR101821285B1 (en) Apparatus and method for thermal image enhancement
WO2017169039A1 (en) Image processing device, imaging device, image processing method, and program
EP3438923B1 (en) Image processing apparatus and image processing method
TW200841703A (en) Image processing method and related partial PSF estimation method thereof
JP6757407B2 (en) Image processing equipment, image processing method and image processing program
JP2005182232A (en) Luminance correcting device and method
JP7057079B2 (en) Image processing device, image pickup device, image processing method, and program
KR20090117617A (en) Image processing apparatus, method, and program
JP7296745B2 (en) Image processing device, image processing method, and program
JPH10232927A (en) Image gradation transforming device, image gradation varying method, medium where program for implementing the same method is recorded, and infrared-ray camera
JP2006114006A (en) Gradation conversion apparatus, program, electronic camera, and method therefor
JP5682443B2 (en) Image processing apparatus, image processing method, and image processing program
JP5115297B2 (en) Image processing apparatus, imaging apparatus, image processing method, and program
JP7437921B2 (en) Image processing device, image processing method, and program
JP2010258885A (en) Image capturing apparatus and image processing method
JP5561389B2 (en) Image processing program, image processing apparatus, electronic camera, and image processing method
JP7134766B2 (en) Image processing device, image processing method and program
JP2021082212A (en) Image processing system, image processing method, and program
JP5863236B2 (en) Image processing apparatus and image processing method
JP4087807B2 (en) Image processing method, apparatus, and program
JP2006053859A (en) Image processor, method and program