JP2014096752A - Image processor, image processing method and imaging apparatus - Google Patents

Image processor, image processing method and imaging apparatus Download PDF

Info

Publication number
JP2014096752A
JP2014096752A JP2012248289A JP2012248289A JP2014096752A JP 2014096752 A JP2014096752 A JP 2014096752A JP 2012248289 A JP2012248289 A JP 2012248289A JP 2012248289 A JP2012248289 A JP 2012248289A JP 2014096752 A JP2014096752 A JP 2014096752A
Authority
JP
Japan
Prior art keywords
class
histogram
processing unit
frequency
image
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
JP2012248289A
Other languages
Japanese (ja)
Inventor
Chikada Kimizuka
京田 君塚
Shuji Hayashi
修二 林
Tetsuya Katagiri
哲也 片桐
Koichi Kamon
幸一 掃部
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Konica Minolta Inc
Original Assignee
Konica Minolta Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Konica Minolta Inc filed Critical Konica Minolta Inc
Priority to JP2012248289A priority Critical patent/JP2014096752A/en
Publication of JP2014096752A publication Critical patent/JP2014096752A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Facsimile Image Signal Circuits (AREA)
  • Image Processing (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an image processor which can more properly compress a dynamic range by using histogram equalization even if there is deviation of frequency in a histogram and to provide an image processing method and an imaging apparatus.SOLUTION: An image processor: generates a histogram of pixel values of individual pixels in an input image; generates offset values of individual classes, which increase monotonously in accordance with an increase of the classes, for the individual classes from the minimum class having the frequency to the maximum class having the frequency in the generated histogram; adds the generated offset values of the individual classes respectively to the frequencies of the classes from the minimum class to the maximum class; generates a compression characteristic of the input image on the basis of the histogram after the offset values are added; and generates a compression image whose dynamic range is smaller than that of the input image by using the compression characteristic.

Description

本発明は、ヒストグラムイコライゼーション法を用いて画像のダイナミックレンジを圧縮するための画像処理装置および画像処理方法ならびにこれを用いた撮像装置に関する。   The present invention relates to an image processing apparatus and an image processing method for compressing a dynamic range of an image using a histogram equalization method, and an imaging apparatus using the image processing apparatus.

近年、デジタルスチルカメラやデジタルビデオカメラ等のデジタルカメラ等に適用される撮像装置では、その高画質化の要請に伴って被写体の輝度範囲(最低輝度と最高輝度との差、画像では最低濃度と最高濃度との差)、すなわち、ダイナミックレンジ(DR)を拡大させることが1つのテーマとなっている。このダイナミックレンジを拡大する技術として、例えばいわゆるリニアログセンサ等の様々な技術が研究、開発されている。   In recent years, in an imaging apparatus applied to a digital camera such as a digital still camera or a digital video camera, the luminance range of a subject (difference between the lowest luminance and the highest luminance, the lowest density in an image) One of the themes is to expand the dynamic range (DR), that is, the difference from the maximum density. As a technique for expanding the dynamic range, various techniques such as a so-called linear log sensor have been researched and developed.

この撮像装置におけるダイナミックレンジの拡大化が進展する一方で、現状では画像を伝送、蓄積または表示する装置におけるダイナミックレンジ(画素レベルを表現するビット数)は、撮像装置におけるダイナミックレンジに対して相対的に狭い場合がある。このような場合、撮像装置におけるダイナミックレンジが拡大化しても、得られた情報を全て取り扱うことが難しくなる。このため、広ダイナミックレンジの画像をそれよりも狭いダイナミックレンジの画像へ変換するダイナミックレンジ圧縮技術も研究、開発されている。   While the expansion of the dynamic range in this imaging device has progressed, the dynamic range (the number of bits representing the pixel level) in a device that transmits, stores, or displays an image is currently relative to the dynamic range in the imaging device. It may be narrow. In such a case, even if the dynamic range in the imaging apparatus is expanded, it is difficult to handle all the obtained information. For this reason, a dynamic range compression technique for converting a wide dynamic range image into a narrower dynamic range image has been researched and developed.

このダイナミックレンジ圧縮技術として、例えば、特許文献1や特許文献2に開示されているように、周波数処理を行う第1の方法と、ヒストグラムイコライゼーションを行う第2の方法が知られている。この第1の方法では、まず、圧縮対象の画像が高周波数成分と低周波数成分とに分けられ、次に、前記低周波数成分が圧縮され、そして、この圧縮された低周波数成分に前記高周波数成分が加えられる。これによって前記画像のダイナミックレンジが圧縮される。また、第2の方法では、まず、圧縮対象の画像におけるヒストグラム(度数分布)が求められ、次に、前記画像のヒストグラムから累積度数分布が求められ、次に、累積度数分布の縦軸が圧縮後の画素のとり得る値の範囲に正規化され、そして、この正規化された累積度数分布を圧縮変換特性として前記画像の各画素値が変換される。これによって前記画像のダイナミックレンジが圧縮される。   As this dynamic range compression technique, for example, as disclosed in Patent Document 1 and Patent Document 2, a first method for performing frequency processing and a second method for performing histogram equalization are known. In this first method, an image to be compressed is first divided into a high frequency component and a low frequency component, and then the low frequency component is compressed, and the compressed low frequency component is converted into the high frequency component. Ingredients are added. This compresses the dynamic range of the image. In the second method, first, a histogram (frequency distribution) in the image to be compressed is obtained, then a cumulative frequency distribution is obtained from the histogram of the image, and then the vertical axis of the cumulative frequency distribution is compressed. The pixel values of the image are converted by using the normalized cumulative frequency distribution as a compression conversion characteristic. This compresses the dynamic range of the image.

一方、ヒストグラムイコライゼーションは、画像のコントラストを適正化する手法としても知られており、例えば、特許文献3ないし特許文献5に開示されている。この特許文献3に開示の画像のコントラスト処理装置は、対象とする画像のヒストグラムを作成する手段と、該ヒストグラムを画素数方向に圧縮する手段と、圧縮前後のヒストグラムの積分値の差を算出する手段と、この算出されて得た値の平均値を、圧縮後のヒストグラムの各階調に一律にバイアスとして与えた新たなヒストグラムを作成する手段と、この新たなヒストグラムに基づいて、上記対象とするものとの画像についてヒストグラムイコライゼーションのための階調変換を行う手段とを備えている。   On the other hand, histogram equalization is also known as a technique for optimizing the contrast of an image, and is disclosed in, for example, Patent Documents 3 to 5. The image contrast processing apparatus disclosed in Patent Document 3 calculates a difference between integral values of a histogram for a target image, a means for compressing the histogram in the pixel number direction, and a histogram before and after compression. Means, a means for creating a new histogram in which the average value of the calculated values is uniformly applied as a bias to each gradation of the compressed histogram, and the above target based on the new histogram. Means for performing gradation conversion for histogram equalization on an image of the object.

また、特許文献4に開示のX線画像処理装置は、画像データ供給手段から受けた処理対象画像データに対してウィンドウにより階調変換を行うウィンドウ処理手段を備えたX線画像処理装置であって、前記処理対象画像データのヒストグラムからX線絞りおよびハレーションの階調域を抽出し、このX線絞りおよびハレーションの階調域以外の被写体の階調域に対してのみのヒストグラムを作成し、この作成したヒストグラムが所定の形に変形するウィンドウにより前記ウィンドウ処理手段において階調変換を行わせる階調変換制御手段を、具備している。   The X-ray image processing apparatus disclosed in Patent Document 4 is an X-ray image processing apparatus provided with window processing means for performing gradation conversion on the processing target image data received from the image data supply means using a window. The X-ray diaphragm and the halation gradation area are extracted from the histogram of the processing target image data, and a histogram only for the gradation area of the subject other than the X-ray diaphragm and the halation gradation area is created. Gradation conversion control means for performing gradation conversion in the window processing means by a window in which the created histogram is transformed into a predetermined shape is provided.

また、特許文献5に開示の画像処理装置は、入力された画像データを構成する画素値の平均および偏差を求める平均偏差算出手段と、前記画素値の平均を中心とした前記画素値の偏差の所定倍の範囲外の値をもつ画素を切り捨てて前記画素値のヒストグラムを生成するヒストグラム生成手段と、該ヒストグラム生成手段で生成されたヒストグラムを用いて前記画素値を変換する変換手段と、を備えている。   Further, an image processing device disclosed in Patent Document 5 includes an average deviation calculating unit that calculates an average and a deviation of pixel values constituting input image data, and a deviation of the pixel value centered on the average of the pixel values. Histogram generation means for generating a histogram of the pixel values by truncating pixels having values outside the predetermined range, and conversion means for converting the pixel values using the histogram generated by the histogram generation means. ing.

特開平7−306938号公報JP-A-7-306938 特開2003−8898号公報Japanese Patent Laid-Open No. 2003-8898 特開平1−222382号公報JP-A-1-222382 特開平5−84235号公報Japanese Patent Laid-Open No. 5-84235 特開2003−308529号公報JP 2003-308529 A

ところで、上述のヒストグラムイコライゼーション法を用いるダイナミックレンジ圧縮技術は、画像のヒストグラムが略平坦なプロファイルである場合、すなわち、画像の累積度数分布が略リニアに変化するプロファイルである場合には、良好にダイナミックレンジを圧縮した画像を生成することができる。しかしながら、例えば夜景やほぼ暗闇等を撮像した画像等のように、ヒストグラムにおける度数が偏って分布している場合では、圧縮変換特性で変換された画素値が大きくなり過ぎる等によって、不自然な画像になってしまう。   By the way, the dynamic range compression technique using the above-mentioned histogram equalization method is good when the histogram of the image is a substantially flat profile, that is, when the cumulative frequency distribution of the image is a profile that changes substantially linearly. An image with a compressed range can be generated. However, when the frequencies in the histogram are unevenly distributed, such as an image obtained by capturing a night view or almost darkness, an unnatural image is caused by the pixel value converted by the compression conversion characteristic being too large. Become.

本発明は、上述の事情に鑑みて為された発明であり、その目的は、ヒストグラムにおける度数が偏って分布している場合でも、ヒストグラムイコライゼーション法を用いてダイナミックレンジをより適切に圧縮することができる画像処理装置および画像処理方法ならびにこれを用いた撮像装置を提供することである。   The present invention has been made in view of the above circumstances, and its purpose is to compress the dynamic range more appropriately using the histogram equalization method even when the frequencies in the histogram are unevenly distributed. An image processing apparatus, an image processing method, and an imaging apparatus using the same are provided.

本発明者は、種々検討した結果、上記目的は、以下の本発明により達成されることを見出した。すなわち、本発明の一態様にかかる画像処理装置は、入力画像における各画素の画素値のヒストグラムを生成するヒストグラム生成部と、前記ヒストグラム生成部で生成したヒストグラムにおいて度数を持つ最小の階級から度数を持つ最大の階級までの各階級に対して、階級の増大に従って単調に増加する各階級のオフセット値をそれぞれ生成し、前記生成した各階級のオフセット値を前記最小の階級から前記最大の階級までの各階級の度数にそれぞれ加算するオフセット処理部と、前記オフセット処理部で生成したオフセット値加算後のヒストグラムに基づいて、前記入力画像を圧縮するための圧縮特性を生成する圧縮特性生成部と、前記圧縮特性生成部で生成した圧縮特性を用いることによって、前記入力画像よりもダイナミックレンジの小さい圧縮画像を生成する圧縮画像生成部とを備えることを特徴とする。そして、好ましくは、前記圧縮特性生成部は、前記オフセット処理部で生成したオフセット値加算後のヒストグラムから累積ヒストグラムを生成し、前記生成した累積ヒストグラムを圧縮画像の取り得る画素値の範囲に正規化することによって圧縮特性を生成するものである。   As a result of various studies, the present inventor has found that the above object is achieved by the present invention described below. That is, an image processing apparatus according to an aspect of the present invention includes a histogram generation unit that generates a histogram of pixel values of each pixel in an input image, and a frequency from the lowest class having a frequency in the histogram generated by the histogram generation unit. For each class up to the maximum class, an offset value for each class that increases monotonically as the class increases is generated, and the generated offset value for each class is generated from the minimum class to the maximum class. An offset processing unit that adds to the frequency of each class, a compression characteristic generation unit that generates a compression characteristic for compressing the input image based on the histogram after the offset value addition generated by the offset processing unit, By using the compression characteristic generated by the compression characteristic generation unit, the dynamic range is greater than that of the input image. Characterized in that it comprises a compression image generation unit that generates a small compressed images. Preferably, the compression characteristic generation unit generates a cumulative histogram from the histogram after addition of the offset value generated by the offset processing unit, and normalizes the generated cumulative histogram to a range of pixel values that can be taken by the compressed image. By doing so, a compression characteristic is generated.

度数が偏って分布しているヒストグラムをそのまま用いて圧縮特性を生成する場合には、この度数が偏っている部分に優先的に階調が割り当てられてしまうため、不自然な画像になってしまう。上記構成の画像処理装置では、階級の増大に従って単調に増加する各階級のオフセット値がヒストグラムの各階級の度数に加算される。このため、このような画像処理装置では、階調の割り当てが全体に亘って行われ、ヒストグラムイコライゼーション法に特有なぎらぎら感を抑制することができ、ダイナミックレンジをより適切に圧縮することができる。   If the compression characteristics are generated using the histogram with the frequency unevenly distributed as it is, the gradation is preferentially assigned to the portion where the frequency is biased, resulting in an unnatural image. . In the image processing apparatus having the above configuration, the offset value of each class that monotonously increases as the class increases is added to the frequency of each class in the histogram. For this reason, in such an image processing apparatus, gradation assignment is performed throughout, and the glare feeling peculiar to the histogram equalization method can be suppressed, and the dynamic range can be more appropriately compressed.

また、他の一態様では、上述の画像処理装置において、前記ヒストグラム生成部で生成したヒストグラムにおいて度数を持つ最大の階級よりも大きな階級に所定の度数を与えることによって、前記ヒストグラム生成部で生成したヒストグラムを階級方向に拡大する拡大処理部をさらに備え、前記オフセット処理部は、前記拡大処理部で拡大されたヒストグラムにおいて度数を持つ最小の階級から前記所定の度数を与えられた最大の階級までの各階級に対して、階級の増大に従って単調に増加する各階級のオフセット値をそれぞれ生成し、前記生成した各階級のオフセット値を前記最小の階級から前記最大の階級までの各階級の度数にそれぞれ加算することを特徴とする。   In another aspect, in the image processing apparatus described above, the histogram generation unit generates the predetermined frequency by giving a predetermined frequency to a class larger than the maximum class having the frequency in the histogram generated by the histogram generation unit. The image processing apparatus further includes an expansion processing unit that expands a histogram in a class direction, and the offset processing unit is configured to perform processing from the lowest class having a frequency to the maximum class given the predetermined frequency in the histogram expanded by the expansion processing unit. For each class, an offset value for each class that increases monotonically as the class increases is generated, and the generated offset value for each class is set to the frequency of each class from the minimum class to the maximum class, respectively. It is characterized by adding.

このような画像処理装置では、前記ヒストグラム生成部で生成したヒストグラムにおいて度数を持つ最大の階級が拡大処理部によってより大きな階級となり、もともと度数を持たなかった階級にもオフセット処理部によって度数が与えられることになる。このため、このような画像処理装置では、度数が所定範囲の階級に集中して度数が偏って分布しているヒストグラムの場合でも、階調の割り当てがより広い範囲に亘って行われ、ヒストグラムイコライゼーション法に特有なぎらぎら感を抑制することができ、ダイナミックレンジをより適切に圧縮することができる。   In such an image processing apparatus, the maximum class having the frequency in the histogram generated by the histogram generation unit becomes a larger class by the enlargement processing unit, and the frequency is given to the class originally having no frequency by the offset processing unit. It will be. Therefore, in such an image processing apparatus, even in the case of a histogram in which the frequencies are concentrated in a predetermined range of classes and the frequencies are unevenly distributed, gradation allocation is performed over a wider range, and histogram equalization is performed. The glare peculiar to the law can be suppressed, and the dynamic range can be compressed more appropriately.

また、他の一態様では、上述の画像処理装置において、前記ヒストグラム生成部で生成したヒストグラムに対し、度数を所定の制限値に制限するクリップ処理部をさらに備え、前記オフセット処理部は、前記クリップ処理部で処理されたヒストグラムにおいて度数を持つ最小の階級から度数を持つ最大の階級までの各階級に対して、階級の増大に従って単調に増加する各階級のオフセット値をそれぞれ生成し、前記生成した各階級のオフセット値を前記最小の階級から前記最大の階級までの各階級の度数にそれぞれ加算することを特徴とする。また、他の一態様では、上述の画像処理装置において、前記拡大処理部で拡大されたヒストグラムに対し、度数を所定の制限値に制限するクリップ処理部をさらに備え、前記オフセット処理部は、前記クリップ処理部で処理されたヒストグラムにおいて度数を持つ最小の階級から度数を持つ最大の階級までの各階級に対して、階級の増大に従って単調に増加する各階級のオフセット値をそれぞれ生成し、前記生成した各階級のオフセット値を前記最小の階級から前記最大の階級までの各階級の度数にそれぞれ加算することを特徴とする。   In another aspect, the image processing apparatus further includes a clip processing unit that limits a frequency to a predetermined limit value with respect to the histogram generated by the histogram generation unit, wherein the offset processing unit includes the clip processing unit. For each class from the lowest class with frequency to the highest class with frequency in the histogram processed by the processing unit, an offset value of each class that increases monotonically as the class increases is generated, and the generated The offset value of each class is added to the frequency of each class from the minimum class to the maximum class. In another aspect, the image processing apparatus further includes a clip processing unit that limits a frequency to a predetermined limit value with respect to the histogram enlarged by the enlargement processing unit, and the offset processing unit includes: In the histogram processed by the clip processing unit, for each class from the lowest class with frequency to the highest class with frequency, an offset value of each class that increases monotonically as the class increases is generated, and the generation The offset value of each class is added to the frequency of each class from the minimum class to the maximum class.

このような画像処理装置では、度数が偏って分布しているヒストグラムの場合でも、クリップ処理部によって度数が所定の制限値に制限されるので、全体に対する度数の偏りの度合いが低減される。このため、このような画像処理装置では、階調の割り当てが全体により均一化され、ヒストグラムイコライゼーション法に特有なぎらぎら感を抑制することができ、ダイナミックレンジをより適切に圧縮することができる。   In such an image processing apparatus, even in the case of a histogram in which frequencies are unevenly distributed, the frequency is limited to a predetermined limit value by the clip processing unit, so that the degree of frequency deviation with respect to the whole is reduced. For this reason, in such an image processing apparatus, gradation allocation is made uniform as a whole, the glare feeling peculiar to the histogram equalization method can be suppressed, and the dynamic range can be more appropriately compressed.

また、他の一態様では、これら上述の画像処理装置において、前記所定の制限値は、階級ごとに異なることを特徴とする。   According to another aspect, in the above-described image processing apparatuses, the predetermined limit value is different for each class.

このような画像処理装置は、階級ごとに前記所定の制限値を調整することが可能となるので、階調の割り当てを全体により均一化するように調整することができる。したがって、このような画像処理装置では、ヒストグラムイコライゼーション法に特有なぎらぎら感をより抑制することができ、ダイナミックレンジをより適切に圧縮することができる。   In such an image processing apparatus, the predetermined limit value can be adjusted for each class, so that the gradation allocation can be adjusted to be uniformized as a whole. Therefore, in such an image processing apparatus, it is possible to further suppress the glare feeling peculiar to the histogram equalization method, and to more appropriately compress the dynamic range.

また、他の一態様では、これら上述の画像処理装置において、前記オフセット処理部に、前記階級の増大に従って単調に増加する各階級のオフセット値を複数のパターンでそれぞれ生成させる複数パターン生成処理部をさらに備えることを特徴とする。   Further, in another aspect, in the above-described image processing devices, the offset processing unit includes a plurality of pattern generation processing units that respectively generate offset values of each class that monotonously increase as the class increases in a plurality of patterns. It is further provided with the feature.

このような画像処理装置では、複数のパターンでオフセット処理された圧縮画像を生成することが可能となるので、様々な圧縮画像の中から最適な圧縮画像を選択することが可能となる。   In such an image processing apparatus, it is possible to generate a compressed image that is offset-processed with a plurality of patterns, and thus it is possible to select an optimal compressed image from various compressed images.

そして、本発明の他の一態様にかかる画像処理方法は、入力画像における各画素の画素値のヒストグラムを生成するヒストグラム生成工程と、前記ヒストグラム生成工程で生成したヒストグラムにおいて度数を持つ最小の階級から度数を持つ最大の階級までの各階級に対して、階級の増大に従って単調に増加する各階級のオフセット値をそれぞれ生成し、前記生成した各階級のオフセット値を前記最小の階級から前記最大の階級までの各階級の度数にそれぞれ加算するオフセット処理工程と、前記オフセット処理工程で生成したオフセット値加算後のヒストグラムに基づいて、前記入力画像を圧縮するための圧縮特性を生成する圧縮特性生成工程と、前記圧縮特性生成工程で生成した圧縮特性を用いることによって、前記入力画像よりもダイナミックレンジの小さい圧縮画像を生成する圧縮画像生成工程とを備えることを特徴とする。   An image processing method according to another aspect of the present invention includes a histogram generation step of generating a histogram of pixel values of each pixel in an input image, and a minimum class having a frequency in the histogram generated in the histogram generation step. For each class up to the maximum class with frequency, an offset value of each class that monotonously increases as the class increases is generated, and the offset value of each generated class is changed from the minimum class to the maximum class. An offset processing step of adding to the frequency of each class until, and a compression characteristic generation step of generating a compression characteristic for compressing the input image based on the histogram after the offset value addition generated in the offset processing step, By using the compression characteristic generated in the compression characteristic generation step, Characterized in that it comprises a compressed image generation step of generating a small compressed images dynamic range.

このような画像処理方法では、階級の増大に従って単調に増加する各階級のオフセット値がヒストグラムの各階級の度数に加算される。このため、このような画像処理方法では、階調の割り当てが全体に亘って行われ、ヒストグラムイコライゼーション法に特有なぎらぎら感を抑制することができ、ダイナミックレンジをより適切に圧縮することができる。   In such an image processing method, the offset value of each class that monotonously increases as the class increases is added to the frequency of each class in the histogram. For this reason, in such an image processing method, gradation assignment is performed throughout, and the glare feeling peculiar to the histogram equalization method can be suppressed, and the dynamic range can be more appropriately compressed.

そして、本発明の他の一態様にかかる撮像装置は、被写体光像を光電変換して画像信号を生成する撮像部と、前記撮像部で生成された画像信号に所定の画像処理を施して画像を生成する画像処理部とを備え、前記画像処理部は、これら上述のいずれかの画像処理装置を備えることを特徴とする。   An imaging apparatus according to another aspect of the present invention includes: an imaging unit that photoelectrically converts a subject light image to generate an image signal; and an image obtained by performing predetermined image processing on the image signal generated by the imaging unit. And an image processing unit that generates any of the above-described image processing devices.

このような撮像装置は、前記画像処理部がこれら上述のいずれかの画像処理装置を備えるので、ダイナミックレンジをより適切に圧縮することができる。   In such an imaging apparatus, since the image processing unit includes any one of the above-described image processing apparatuses, the dynamic range can be more appropriately compressed.

本発明にかかる画像処理装置および画像処理方法ならびにこれを用いた撮像装置は、ヒストグラムにおける度数が偏って分布している場合でも、ヒストグラムイコライゼーション法を用いてダイナミックレンジをより適切に圧縮することができる。   The image processing apparatus, the image processing method, and the imaging apparatus using the image processing apparatus according to the present invention can compress the dynamic range more appropriately using the histogram equalization method even when the frequencies in the histogram are unevenly distributed. .

実施形態における撮像装置の構成を示すブロック図である。It is a block diagram which shows the structure of the imaging device in embodiment. 図1に示す撮像装置におけるダイナミックレンジ圧縮処理部の構成を示すブロック図である。It is a block diagram which shows the structure of the dynamic range compression process part in the imaging device shown in FIG. 一例として、階級とオフセット係数との対応関係を示すルックアップテーブルを示す図である。As an example, it is a figure which shows the look-up table which shows the correspondence of a class and an offset coefficient. 一例として、最大有効エリア番号とベースバイアス値との対応関係を示すルックアップテーブルを示す図である。As an example, it is a diagram showing a look-up table showing a correspondence relationship between a maximum effective area number and a base bias value. 図2に示すダイナミックレンジ圧縮処理部の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the dynamic range compression process part shown in FIG. 入力画像のヒストグラムが2個のピークを持つ場合に、図5に示す動作の各処理工程で生成される処理結果を説明するための図である。FIG. 6 is a diagram for describing a processing result generated in each processing step of the operation illustrated in FIG. 5 when the histogram of the input image has two peaks. 入力画像が夜景である場合に、図5に示す動作の各処理工程で生成される処理結果を説明するための図である。FIG. 6 is a diagram for describing a processing result generated in each processing step of the operation illustrated in FIG. 5 when an input image is a night view. 入力画像が暗闇である場合に、図5に示す動作の各処理工程で生成される処理結果を説明するための図である。It is a figure for demonstrating the process result produced | generated at each process process of the operation | movement shown in FIG. 5, when an input image is darkness. 入力画像のヒストグラムが偏っていない場合に、比較例として、従来のヒストグラムイコライゼーションを行うダイナミックレンジ圧縮技術の各処理工程で生成される処理結果を説明するための図である。When the histogram of an input image is not biased, it is a figure for demonstrating the process result produced | generated by each process process of the dynamic range compression technique which performs the conventional histogram equalization as a comparative example. 入力画像のヒストグラムが偏っている場合に、比較例として、従来のヒストグラムイコライゼーションを行うダイナミックレンジ圧縮技術の各処理工程で生成される処理結果を説明するための図である。When the histogram of an input image is biased, it is a figure for demonstrating the process result produced | generated in each process process of the dynamic range compression technique which performs the conventional histogram equalization as a comparative example.

以下、本発明にかかる実施の一形態を図面に基づいて説明する。なお、各図において同一の符号を付した構成は、同一の構成であることを示し、適宜、その説明を省略する。   Hereinafter, an embodiment according to the present invention will be described with reference to the drawings. In addition, the structure which attached | subjected the same code | symbol in each figure shows that it is the same structure, The description is abbreviate | omitted suitably.

図1は、実施形態における撮像装置の構成を示すブロック図である。図2は、図1に示す撮像装置におけるダイナミックレンジ圧縮処理部の構成を示すブロック図である。図3は、一例として、階級とオフセット係数との対応関係を示すルックアップテーブルを示す図である。図4は、一例として、最大有効エリア番号とベースバイアス値との対応関係を示すルックアップテーブルを示す図である。   FIG. 1 is a block diagram illustrating a configuration of an imaging apparatus according to the embodiment. FIG. 2 is a block diagram illustrating a configuration of a dynamic range compression processing unit in the imaging apparatus illustrated in FIG. FIG. 3 is a diagram showing a look-up table showing the correspondence between classes and offset coefficients as an example. FIG. 4 is a diagram illustrating a look-up table showing a correspondence relationship between the maximum effective area number and the base bias value as an example.

図1において、実施形態における撮像装置CAは、撮像光学系1と、撮像センサ2と、画像処理部3とを備えている。   In FIG. 1, the imaging apparatus CA in the embodiment includes an imaging optical system 1, an imaging sensor 2, and an image processing unit 3.

撮像光学系1は、1または複数の例えばレンズ等の光学素子を備え、物体(被写体)の光学像を撮像センサ2の受光面上に結像するものである。撮像光学系1は、前記1または複数の光学素子のうちの所定の光学素子を光軸AXに沿って移動することによって、例えばフォーカシング(合焦)やズーミング(変倍)等を行ってもよい。撮像センサ2は、2次元平面の受光面を形成するように配置された複数の光電変換素子を備え、撮像光学系1によって結像された物体の光学像における光量に応じてR(赤)、G(緑)、B(青)の各成分の信号に光電変換して画像処理部3へ出力する素子である。撮像センサ2は、例えば、CCD型のイメージセンサやCMOS型のイメージセンサ等であり、本実施形態では、被写体の広い輝度範囲に対応可能な広いダイナミックレンジを持ついわゆるリニアログセンサである。このリニアログセンサは、所定の閾値(変曲点)以下の入射光量に対して線形的に光電変換した電気信号を出力し、前記所定の閾値より大きな入射光量に対して対数的に光電変換した電気信号を出力するイメージセンサである。物体の光学像は、この撮像光学系1によって光軸AXに沿って撮像センサ2の受光面まで導かれ、撮像センサ2によって前記物体の光学像が撮像される。   The imaging optical system 1 includes one or a plurality of optical elements such as lenses, and forms an optical image of an object (subject) on the light receiving surface of the imaging sensor 2. The imaging optical system 1 may perform, for example, focusing or zooming (magnification) by moving a predetermined optical element of the one or more optical elements along the optical axis AX. . The imaging sensor 2 includes a plurality of photoelectric conversion elements arranged so as to form a two-dimensional planar light-receiving surface, and R (red) according to the amount of light in the optical image of the object imaged by the imaging optical system 1. This is an element that photoelectrically converts signals of G (green) and B (blue) components and outputs the signals to the image processing unit 3. The imaging sensor 2 is, for example, a CCD type image sensor, a CMOS type image sensor, or the like. In this embodiment, the imaging sensor 2 is a so-called linear log sensor having a wide dynamic range that can correspond to a wide luminance range of a subject. This linear log sensor outputs an electric signal linearly photoelectrically converted with respect to an incident light amount equal to or less than a predetermined threshold value (inflection point), and logarithmically photoelectrically converts an incident light amount larger than the predetermined threshold value. An image sensor that outputs an electrical signal. The optical image of the object is guided to the light receiving surface of the imaging sensor 2 along the optical axis AX by the imaging optical system 1, and the optical image of the object is captured by the imaging sensor 2.

画像処理部3は、撮像センサ2から入力された信号に所定の画像処理を行うことによって、撮像センサ2から入力された前記信号から所定の画像信号を生成するものであり、本実施形態では、画像処理部3は、入力画像における各画素の画素値のヒストグラムに基づいてダイナミックレンジを圧縮するための圧縮特性を生成し、この生成した圧縮特性を用いることによって、前記入力画像よりもダイナミックレンジの小さい圧縮画像を生成する。このような画像処理部3は、本実施形態では、例えば、センサ出力処理部31と、ダイナミックレンジ圧縮処理部(以下、「DRC処理部」と略記する。)32と、輝度色度処理部33と、NTSC処理部34と、演算処理部35とを備えている。   The image processing unit 3 generates a predetermined image signal from the signal input from the image sensor 2 by performing predetermined image processing on the signal input from the image sensor 2, and in the present embodiment, The image processing unit 3 generates a compression characteristic for compressing the dynamic range based on a histogram of pixel values of each pixel in the input image, and by using the generated compression characteristic, the dynamic range of the dynamic range is larger than that of the input image. Generate a small compressed image. In the present embodiment, such an image processing unit 3 includes, for example, a sensor output processing unit 31, a dynamic range compression processing unit (hereinafter abbreviated as “DRC processing unit”) 32, and a luminance chromaticity processing unit 33. And an NTSC processing unit 34 and an arithmetic processing unit 35.

センサ出力処理部31は、撮像センサ2から入力された信号に所定の前処理を行うことによって、撮像センサ2から入力された前記信号から、画像処理部3で情報処理し易い信号を生成するものである。本実施形態では、撮像センサ2がリニアログセンサ2であることから、センサ出力処理部31は、光電変換特性を統一するために、前記所定の前処理としていわゆるフルログ処理を行う。このフルログ処理は、リニアログセンサ2で線形変換されて出力された信号の信号値を、対数変換された場合の信号の信号値に変換する処理である。撮像センサ2から入力された前記信号は、このフルログ処理によって入射光量にかかわらず、入射光量全体に亘って対数変換で光電変換された信号の信号値となる。センサ出力処理部31は、前記所定の前処理として、AGC(オートゲインコントロール)によってゲイン(増幅率)を調整しつつ、撮像センサ2から入力された前記信号を増幅する増幅処理をさらに行ってもよく、サンプリングノイズを低減するためにCDS(相関二重サンプリング)処理をさらに行ってもよい。センサ出力処理部31で処理された処理結果は、DRC処理部32および演算処理部35へ出力される。   The sensor output processing unit 31 generates a signal that can be easily processed by the image processing unit 3 from the signal input from the imaging sensor 2 by performing predetermined preprocessing on the signal input from the imaging sensor 2. It is. In the present embodiment, since the imaging sensor 2 is the linear log sensor 2, the sensor output processing unit 31 performs so-called full log processing as the predetermined preprocessing in order to unify photoelectric conversion characteristics. The full log process is a process of converting the signal value of the signal that has been linearly converted by the linear log sensor 2 into the signal value of the signal that has been logarithmically converted. The signal input from the imaging sensor 2 becomes a signal value of a signal photoelectrically converted by logarithmic conversion over the entire incident light amount regardless of the incident light amount by this full log processing. The sensor output processing unit 31 may further perform amplification processing for amplifying the signal input from the image sensor 2 while adjusting the gain (amplification factor) by AGC (auto gain control) as the predetermined preprocessing. Well, CDS (correlated double sampling) processing may be further performed to reduce sampling noise. The processing result processed by the sensor output processing unit 31 is output to the DRC processing unit 32 and the arithmetic processing unit 35.

DRC処理部32は、センサ出力処理部31で処理された処理結果のダイナミックレンジを圧縮する処理を行うものである。DRC処理部32については、後述する。DRC処理部32で処理された処理結果は、輝度色度処理部33へ出力される。   The DRC processing unit 32 performs processing for compressing the dynamic range of the processing result processed by the sensor output processing unit 31. The DRC processing unit 32 will be described later. The processing result processed by the DRC processing unit 32 is output to the luminance / chromaticity processing unit 33.

輝度色度処理部33は、DRC処理部32で処理された処理結果に対し輝度や色度等の各種の調整処理を行うものである。輝度色度処理部33は、前記調整処理として、例えば、黒レベルの補正処理、ホワイトバランスの補正処理、色補間処理、色補正処理およびガンマ補正処理(γ補正処理)等を行う。これら各処理は、公知の処理方法によって処理される。輝度色度処理部33で処理された処理結果は、NTSC処理部34へ出力される。   The luminance chromaticity processing unit 33 performs various adjustment processes such as luminance and chromaticity on the processing result processed by the DRC processing unit 32. The luminance chromaticity processing unit 33 performs, for example, black level correction processing, white balance correction processing, color interpolation processing, color correction processing, and gamma correction processing (γ correction processing) as the adjustment processing. Each of these processes is processed by a known processing method. The processing result processed by the luminance / chromaticity processing unit 33 is output to the NTSC processing unit 34.

NTSC処理部34は、輝度色度処理部33で処理された処理結果をNTSC(National Television System Committee)規格に沿った信号に変換する処理を行うものである。NTSC処理部34は、NTSC規格に沿った画像信号をNTSC出力として図略のディスプレイに出力する。前記図略のディスプレイには、画像が表示される。   The NTSC processing unit 34 performs processing for converting the processing result processed by the luminance chromaticity processing unit 33 into a signal conforming to the NTSC (National Television System Committee) standard. The NTSC processing unit 34 outputs an image signal conforming to the NTSC standard to an unillustrated display as an NTSC output. An image is displayed on the display (not shown).

演算処理部35は、画像処理部3の各部を当該機能に応じて制御することによって画像処理部3全体の動作を制御するものである。本実施形態では、例えば、演算処理部35は、DRC処理部32でダイナミックレンジを圧縮するために必要な各種設定データをDRC処理部32へ出力し、輝度色度処理部33で前記調整処理を行うために必要な各種設定データ(例えばガンマ補正処理のガンマ設定データ)を輝度色度処理部33へ出力する。   The arithmetic processing unit 35 controls the entire operation of the image processing unit 3 by controlling each unit of the image processing unit 3 according to the function. In the present embodiment, for example, the arithmetic processing unit 35 outputs various setting data necessary for compressing the dynamic range by the DRC processing unit 32 to the DRC processing unit 32, and the luminance / chromaticity processing unit 33 performs the adjustment processing. Various setting data (for example, gamma setting data for gamma correction processing) necessary for the execution is output to the luminance / chromaticity processing unit 33.

このような画像処理部3は、例えば、各処理部31〜35ごとに個別部品によって構成されてもよく、また例えば、画像処理部3は、DSP(Digital Signal Processor)、メモリ素子および周辺回路等によって構成され、各処理部31〜35は、所定のプログラムを実行することによってDSP等に機能的に構成されてよい。   Such an image processing unit 3 may be configured by individual components for each of the processing units 31 to 35, for example. For example, the image processing unit 3 includes a DSP (Digital Signal Processor), a memory element, a peripheral circuit, and the like. The processing units 31 to 35 may be functionally configured in a DSP or the like by executing a predetermined program.

次に、DRC処理部32について、説明する。図2において、DRC処理部32は、例えば、ヒストグラム解析部321と、拡大処理部322と、クリップ処理部323と、オフセット処理部324と、累積ヒストグラム生成部325と、正規化処理部326と、圧縮画像生成部327とを備えている。   Next, the DRC processing unit 32 will be described. In FIG. 2, the DRC processing unit 32 includes, for example, a histogram analysis unit 321, an enlargement processing unit 322, a clip processing unit 323, an offset processing unit 324, a cumulative histogram generation unit 325, a normalization processing unit 326, And a compressed image generation unit 327.

ヒストグラム解析部321は、センサ出力処理部31で処理された処理結果を用いて、各画素の画素値のヒストグラムを生成するものである。このヒストグラムは、画素が取り得る画素値の範囲、例えば輝度値の範囲を等間隔に複数の階級に分け、各階級ごとに、その階級の画素値を持つ画素の総和を度数(頻度)として対応付けた統計グラフである。ヒストグラムでは、横軸は、階級であり、縦軸は、度数となる。なお、画素値(例えば輝度値)は、0以上である。このようなヒストグラムを参照することによって、入力画像における各画素の画素値の分布状況を視覚的に認識することが可能となる。そして、ヒストグラム解析部321は、拡大処理部322、クリップ処理部323またはオフセット処理部324で当該各処理部の機能に応じた所定の処理を行う際に必要となるデータを得るために所定の解析処理もこの生成したヒストグラムに対して行うものである。この所定の解析処理として、ヒストグラム解析部321は、例えば、度数を持つ最小の階級(有効エリア最小階級)および度数を持つ最大の階級(有効エリア最大階級)を検出し、さらに、この検出結果から、度数を持つ階級の範囲(有効エリア範囲)を検出する。ヒストグラム解析部321は、この生成したヒストグラムを拡大処理部322へ出力し、前記所定の解析処理によって得られた解析結果を演算処理部35へ出力する。なお、以下の説明において、度数を持つ階級を有効エリアと呼称する場合もある。   The histogram analysis unit 321 generates a histogram of pixel values of each pixel using the processing result processed by the sensor output processing unit 31. This histogram divides the range of pixel values that a pixel can take, for example, the range of luminance values into multiple classes at equal intervals, and for each class, the sum of the pixels with pixel values of that class is handled as the frequency (frequency) It is the attached statistical graph. In the histogram, the horizontal axis is class and the vertical axis is frequency. Note that the pixel value (for example, luminance value) is 0 or more. By referring to such a histogram, it is possible to visually recognize the distribution of pixel values of each pixel in the input image. Then, the histogram analysis unit 321 performs predetermined analysis in order to obtain data necessary for performing predetermined processing according to the function of each processing unit in the enlargement processing unit 322, the clip processing unit 323, or the offset processing unit 324. Processing is also performed on the generated histogram. As this predetermined analysis processing, for example, the histogram analysis unit 321 detects the minimum class having the frequency (effective area minimum class) and the maximum class having the frequency (effective area maximum class), and further, from this detection result. , To detect the class range (effective area range) with frequency. The histogram analysis unit 321 outputs the generated histogram to the enlargement processing unit 322, and outputs the analysis result obtained by the predetermined analysis processing to the arithmetic processing unit 35. In the following description, a class having a frequency may be referred to as an effective area.

演算処理部35は、この解析結果を得ると、これら有効エリア最小階級、有効エリア最大階級および有効エリア範囲を設定データの1つとして拡大処理部322へ出力してもよいが、本実施形態では、演算処理部35は、この解析結果を得ると、少なくとも有効エリア最大階級を設定データの1つとして拡大処理部322へ出力する。そして、演算処理部35は、この解析結果を得ると、この解析結果に基づいて、オフセット処理で用いるベースバイアス値を求め、この求めたベースバイアス値を設定データの1つとしてオフセット処理部324へ出力する。このベースオフセット値は、後述する。   When obtaining the analysis result, the arithmetic processing unit 35 may output the effective area minimum class, the effective area maximum class, and the effective area range to the enlargement processing unit 322 as one of the setting data, but in the present embodiment, When obtaining the analysis result, the arithmetic processing unit 35 outputs at least the effective area maximum class to the enlargement processing unit 322 as one of the setting data. When the arithmetic processing unit 35 obtains the analysis result, the arithmetic processing unit 35 obtains a base bias value used in the offset processing based on the analysis result, and uses the obtained base bias value as one of setting data to the offset processing unit 324. Output. This base offset value will be described later.

拡大処理部322は、ヒストグラム解析部321で生成したヒストグラムにおいて度数を持つ最大の階級(有効エリア最大階級)よりも大きな階級に所定の度数を与えることによって、ヒストグラム解析部321で生成したヒストグラムを階級方向に拡大するものである。より具体的には、拡大処理部322は、ヒストグラム解析部321で生成したヒストグラムにおいて度数を持つ最大の階級(演算処理部35から入力された有効エリア最大階級)が予め設定された所定の閾値より小さい場合に、前記所定の閾値を含む階級に、予め設定された度数(ダミー度数)を与えることによって、ヒストグラム解析部321で生成したヒストグラムを階級方向に拡大する。前記ダミー度数は、前記所定の閾値を含む階級に度数が存在すればよいので例えば1や2等の小さな数である。この拡大処理部322の処理によって、ヒストグラム解析部321で生成したヒストグラムの有効エリア範囲が階級方向に拡がって拡大される。拡大処理部322は、この拡大したヒストグラムをクリップ処理部323へ出力する。   The enlargement processing unit 322 gives the histogram generated by the histogram analysis unit 321 by giving a predetermined frequency to a class larger than the maximum class having the frequency in the histogram generated by the histogram analysis unit 321 (effective area maximum class). It expands in the direction. More specifically, the enlargement processing unit 322 uses a predetermined threshold in which the maximum class having the frequency in the histogram generated by the histogram analysis unit 321 (effective area maximum class input from the arithmetic processing unit 35) is set in advance. When it is small, the histogram generated by the histogram analysis unit 321 is expanded in the class direction by giving a preset frequency (dummy frequency) to the class including the predetermined threshold. The dummy frequency is a small number such as 1 or 2, for example, as long as the frequency exists in the class including the predetermined threshold. By the processing of the enlargement processing unit 322, the effective area range of the histogram generated by the histogram analysis unit 321 is expanded and expanded in the class direction. The enlargement processing unit 322 outputs the enlarged histogram to the clip processing unit 323.

前記所定の閾値は、ヒストグラムの度数が所定範囲の階級に偏っている場合に、オフセット処理部324の処理によってヒストグラムの度数が全体に亘ることによって、階調の割り当てが全体により均一化され、ヒストグラムイコライゼーション法に特有なぎらぎら感を抑制することができるように、設定される。例えば、前記所定の閾値は、画素値が取り得る最大値(最大の階級)の3/5や3/4等に設定される。   When the frequency of the histogram is biased to a class within a predetermined range, the predetermined threshold value is obtained by making the frequency of the histogram cover all over by the processing of the offset processing unit 324, so that the gradation allocation is made uniform throughout. It is set so as to suppress the sensation of glare peculiar to the equalization method. For example, the predetermined threshold is set to 3/5 or 3/4 of the maximum value (maximum class) that the pixel value can take.

なお、上述では、ダミー度数は、前記所定の閾値を含む階級にのみ与えられたが、拡大処理部322は、ヒストグラム解析部321で生成したヒストグラムにおいて度数を持つ最大の階級が予め設定された所定の閾値より小さい場合に、ヒストグラム解析部321で生成したヒストグラムにおいて度数を持つ最大の階級より1つ大きい階級から、前記所定の閾値を含む階級までの各階級に、ダミー度数をそれぞれ与えてもよい。   In the above description, the dummy frequency is given only to the class including the predetermined threshold. However, the enlargement processing unit 322 has a predetermined maximum class having the frequency in the histogram generated by the histogram analysis unit 321. In the case where the threshold value is smaller than the threshold value, a dummy frequency may be given to each class from the class one higher than the maximum class having the frequency in the histogram generated by the histogram analysis unit 321 to the class including the predetermined threshold. .

クリップ処理部323は、拡大処理部322で処理されたヒストグラムに対し、度数を所定の制限値に制限するものである。より具体的には、クリップ処理部323は、階級の増加に従って単調に増加する関数によって各階級ごとに制限値をそれぞれ設定し、各階級について、当該階級の度数が当該階級の制限値を越えている場合には、当該階級の度数を当該階級の制限値に置き換える。前記関数は、例えば、階級の増加に従って指数関数的に単調に増加する関数等であり、階級をxとし、制限値をyとし、定数a>1とし、nを自然数とする場合に、y=aやy=x2nであってよい。クリップ処理部323は、このクリップ処理したヒストグラムをオフセット処理部324へ出力する。 The clip processing unit 323 limits the frequency to a predetermined limit value for the histogram processed by the enlargement processing unit 322. More specifically, the clip processing unit 323 sets a limit value for each class by a function that monotonously increases as the class increases, and for each class, the frequency of the class exceeds the limit value of the class. If so, the frequency of the class is replaced with the limit value of the class. The function is, for example, a function that increases monotonically in an exponential manner as the class increases. When the class is x, the limit value is y, the constant a> 1, and n is a natural number, y = a x and y = x 2n may be satisfied. The clip processing unit 323 outputs the clip processed histogram to the offset processing unit 324.

オフセット処理部324は、クリップ処理部323で処理されたヒストグラムにおいて度数を持つ最小の階級から度数を持つ最大の階級までの各階級に対して、階級の増大に従って単調に増加する各階級のオフセット値をそれぞれ生成し、この生成した各階級のオフセット値を前記最小の階級から前記最大の階級までの各階級の度数にそれぞれ加算するものである。より具体的には、オフセット処理部324は、演算処理部35から入力されたベースバイアス値に、階級の増大に従って単調に増加するように予め階級ごとに設定された係数(オフセット係数)を乗算することによって、各階級のオフセット値をそれぞれ生成し、この生成した各階級のオフセット値を前記最小の階級から前記最大の階級までの各階級の度数にそれぞれ加算する。オフセット処理部324は、このオフセット処理したヒストグラムを累積ヒストグラム生成部325へ出力する。   The offset processing unit 324 has an offset value for each class that increases monotonically as the class increases for each class from the lowest class having the frequency to the highest class having the frequency in the histogram processed by the clip processing unit 323. Are generated, and the generated offset value of each class is added to the frequency of each class from the minimum class to the maximum class. More specifically, the offset processing unit 324 multiplies the base bias value input from the arithmetic processing unit 35 by a coefficient (offset coefficient) set in advance for each class so as to increase monotonously as the class increases. Thus, an offset value of each class is generated, and the generated offset value of each class is added to the frequency of each class from the minimum class to the maximum class. The offset processing unit 324 outputs the offset processed histogram to the cumulative histogram generation unit 325.

ベースバイアス値は、例えば、ヒストグラム解析部321で生成されたヒストグラムにおいて度数を持つ最大の階級(最大有効エリア番号)に基づいて設定される。より具体的には、まず、各階級ごとに、階級とベースバイアス値との対応関係が予め作成され、この対応関係が対応関係式あるいは対応関係テーブルとして画像処理部3に記憶される。そして、ヒストグラム解析部321で生成されたヒストグラムにおいて度数を持つ最大の階級に対応するベースバイアス値がこの対応関係式あるいは対応関係テーブルから検索されることで、入力画像に対するベースバイアス値が決定される。   The base bias value is set based on, for example, the maximum class (maximum effective area number) having the frequency in the histogram generated by the histogram analysis unit 321. More specifically, first, a correspondence between a class and a base bias value is created in advance for each class, and this correspondence is stored in the image processing unit 3 as a correspondence expression or a correspondence table. Then, the base bias value corresponding to the maximum class having the frequency in the histogram generated by the histogram analysis unit 321 is searched from the corresponding relational expression or the correspondence relation table, whereby the base bias value for the input image is determined. .

各階級の前記オフセット係数および最大有効エリア番号とベースバイアス値との対応関係は、予め、複数のサンプル画像に対し試行することによって、階調の割り当てが全体により均一化され、ヒストグラムイコライゼーション法に特有なぎらぎら感を抑制することができるように、設定される。一例として、最大有効エリア番号とベースバイアス値との対応関係は、階級の増加に従って単調に減少するように設定される。   The correspondence between the offset coefficient and the maximum effective area number of each class and the base bias value is preliminarily made uniform by assigning tones throughout the trial image, and is unique to the histogram equalization method. It is set so that a feeling of swaying can be suppressed. As an example, the correspondence relationship between the maximum effective area number and the base bias value is set to monotonously decrease as the class increases.

各階級の各オフセット係数の一例が図3に示され、最大有効エリア番号とベースバイアス値との対応関係の一例が図4に示されている。なお、これら図3および図4に示す各例では、階級は、16個であるが、これに限定されるものではなく、任意でよい。これら図3および図4の例を用いてオフセット処理部324の動作の一例を説明すると、最大有効エリア番号が7であったとすると、オフセット処理部324は、図4に示す最大有効エリア番号とベースバイアス値との対応関係から最大有効エリア番号7に対応するベースバイアス値29649を取り出し、このベースバイアス値29649に、図3示す各階級の各オフセット値にそれぞれ乗じることによって、最大有効エリア番号7に対応する各階級の各オフセット値をそれぞれ生成する。   An example of each offset coefficient of each class is shown in FIG. 3, and an example of a correspondence relationship between the maximum effective area number and the base bias value is shown in FIG. In each example shown in FIGS. 3 and 4, the number of classes is 16, but the number of classes is not limited to this and may be arbitrary. An example of the operation of the offset processing unit 324 will be described with reference to the examples of FIGS. 3 and 4. If the maximum effective area number is 7, the offset processing unit 324 has the maximum effective area number and the base shown in FIG. A base bias value 29649 corresponding to the maximum effective area number 7 is extracted from the correspondence relationship with the bias value, and the base bias value 29649 is multiplied by each offset value of each class shown in FIG. Each offset value of each corresponding class is generated.

各階級のオフセット値は、階級の増大に従って単調に増加するように直接的にそれぞれ設定されてもよいが、本実施形態では、各階級のオフセット値は、上述のようにオフセット係数にベースバイアス値を乗算することによって設定されるので、入力画像のヒストグラムによってベースバイアス値を変更することができるため、デフォルトの各階級のオフセット値が同じでも、例えば夜景や暗闇等の入力画像の種類に応じて適宜にベースバイアス値を設定することによって、各階級のオフセット値を入力画像の種類に応じて適宜に設定することができる。このため、このようにオフセット係数にベースバイアス値を乗算することで各階級のオフセット値を設定することによって、本実施形態の撮像装置CAおよび画像処理部3は、階調の割り当てを全体により適切に均一化することができ、ヒストグラムイコライゼーション法に特有なぎらぎら感をより適切に抑制することができる。   The offset value of each class may be set directly so as to increase monotonously as the class increases, but in this embodiment, the offset value of each class is set to the offset coefficient and the base bias value as described above. Since the base bias value can be changed according to the histogram of the input image, even if the default offset value of each class is the same, depending on the type of the input image such as night view or darkness, etc. By appropriately setting the base bias value, the offset value of each class can be appropriately set according to the type of the input image. For this reason, by setting the offset value of each class by multiplying the offset coefficient by the base bias value in this way, the imaging apparatus CA and the image processing unit 3 of the present embodiment appropriately assign the gradations as a whole. The glare sensation peculiar to the histogram equalization method can be more appropriately suppressed.

累積ヒストグラム生成部325は、オフセット処理部324で生成したオフセット値加算後のヒストグラムから累積ヒストグラムを生成するものである。この累積ヒストグラムは、累積ヒストグラムを作成する対象のヒストグラムに対し、各階級ごとに、当該階級までの全階級に含まれる各度数の総和を累積値として対応付けた統計グラフである。累積ヒストグラムでは、横軸は、階級であり、縦軸は、累積値となる。累積ヒストグラムMjは、ヒストグラムをmkとする場合に、Mj=Σmk(Σは、k=1〜jまでの和)と表すことができる。累積ヒストグラム生成部325は、この生成した累積ヒストグラムを正規化処理部326へ出力する。   The cumulative histogram generation unit 325 generates a cumulative histogram from the histogram after adding the offset value generated by the offset processing unit 324. This cumulative histogram is a statistical graph in which, for each class, the sum of each frequency included in all classes up to the class is associated as a cumulative value with respect to the histogram for which the cumulative histogram is created. In the cumulative histogram, the horizontal axis is the class, and the vertical axis is the cumulative value. The cumulative histogram Mj can be expressed as Mj = Σmk (Σ is the sum of k = 1 to j) when the histogram is mk. The cumulative histogram generation unit 325 outputs the generated cumulative histogram to the normalization processing unit 326.

正規化処理部326は、累積ヒストグラム生成部325で生成した累積ヒストグラムを圧縮画像の取り得る画素値の範囲に正規化することによって圧縮特性を生成するものである。すなわち、正規化した累積ヒストグラムが圧縮特性となる。圧縮画像の取り得る画素値の範囲は、圧縮画像が利用される装置、例えば、ディスプレイ装置、印刷装置および通信装置等に応じて決定される。例えば、圧縮画像の取り得る画素値の範囲は、圧縮画像がディスプレイ装置に表示される場合には、このディスプレイ装置のダイナミックレンジで決定される。正規化処理部326は、この生成した圧縮特性を圧縮画像生成部327へ出力する。   The normalization processing unit 326 generates compression characteristics by normalizing the cumulative histogram generated by the cumulative histogram generation unit 325 to a range of pixel values that can be taken by the compressed image. That is, the normalized cumulative histogram becomes the compression characteristic. The range of pixel values that can be taken by the compressed image is determined according to a device that uses the compressed image, for example, a display device, a printing device, a communication device, and the like. For example, the range of pixel values that can be taken by the compressed image is determined by the dynamic range of the display device when the compressed image is displayed on the display device. The normalization processing unit 326 outputs the generated compression characteristics to the compressed image generation unit 327.

圧縮画像生成部327は、正規化処理部326で生成した圧縮特性を用いることによって、前記入力画像よりもダイナミックレンジの小さい圧縮画像を生成するものである。より具体的には、圧縮特性としての正規化後の累積ヒストグラムの横軸は、入力画像の画素値(例えば入力輝度値、元輝度値)であり、その縦軸は、ダイナミックレンジ圧縮後の画素値(例えば出力輝度値、圧縮輝度値)である。圧縮画像生成部327は、入力画像の各画素の画素値を前記圧縮特性で変換することによって圧縮後の画素値を求め、圧縮画像を生成する。圧縮画像生成部327は、圧縮画像を輝度色度処理部33へ出力する。   The compressed image generation unit 327 generates a compressed image having a dynamic range smaller than that of the input image by using the compression characteristics generated by the normalization processing unit 326. More specifically, the horizontal axis of the cumulative histogram after normalization as the compression characteristic is the pixel value of the input image (for example, input luminance value, original luminance value), and the vertical axis is the pixel after dynamic range compression. Value (for example, output luminance value, compressed luminance value). The compressed image generation unit 327 obtains a compressed pixel value by converting the pixel value of each pixel of the input image with the compression characteristic, and generates a compressed image. The compressed image generation unit 327 outputs the compressed image to the luminance / chromaticity processing unit 33.

次に、本実施形態の動作について説明する。図5は、図2に示すダイナミックレンジ圧縮処理部の動作を示すフローチャートである。図6は、入力画像のヒストグラムが2個のピークを持つ場合に、図5に示す動作の各処理工程で生成される処理結果を説明するための図である。図7は、入力画像が夜景である場合に、図5に示す動作の各処理工程で生成される処理結果を説明するための図である。図8は、入力画像が暗闇である場合に、図5に示す動作の各処理工程で生成される処理結果を説明するための図である。図6ないし図8の各図において、図(A)は、入力画像のヒストグラムを示し、図(B)は、拡大処理後のヒストグラムを示し、図(C)は、クリップ処理後のヒストグラムを示し、図(D)は、オフセット処理後のヒストグラムを示し、そして、図(E)は、オフセット処理後のヒストグラムに対する累積ヒストグラムであって正規化された累積ヒストグラム(すなわち、圧縮特性)を示す。図6ないし図8における図(A)ないし図(D)では、横軸は、階級であり、縦軸は、度数であり、図6(E)ないし図8(E)は、横軸は、階級であり、縦軸は、累積値である。図9は、入力画像のヒストグラムが偏っていない場合に、比較例として、従来のヒストグラムイコライゼーションを行うダイナミックレンジ圧縮技術の各処理工程で生成される処理結果を説明するための図である。図10は、入力画像のヒストグラムが偏っている場合に、比較例として、従来のヒストグラムイコライゼーションを行うダイナミックレンジ圧縮技術の各処理工程で生成される処理結果を説明するための図である。図9および図10の各図において、図(A)は、横軸が階級であって縦軸が度数である入力画像のヒストグラムを示し、図(B)は、横軸が階級であって縦軸が累積値である累積ヒストグラムを示し、そして、図(C)は、正規化された累積ヒストグラム(すなわち、圧縮特性)を示す。図(C)は、圧縮特性として用いられるので、その横軸は、入力画像の画素値(例えば入力輝度値、元輝度値)であり、その縦軸は、ダイナミックレンジ圧縮後の画素値(例えば出力輝度値、圧縮輝度値)である。   Next, the operation of this embodiment will be described. FIG. 5 is a flowchart showing the operation of the dynamic range compression processing unit shown in FIG. FIG. 6 is a diagram for explaining the processing result generated in each processing step of the operation shown in FIG. 5 when the histogram of the input image has two peaks. FIG. 7 is a diagram for explaining the processing result generated in each processing step of the operation shown in FIG. 5 when the input image is a night view. FIG. 8 is a diagram for explaining the processing result generated in each processing step of the operation shown in FIG. 5 when the input image is dark. In each of FIGS. 6 to 8, FIG. (A) shows the histogram of the input image, FIG. (B) shows the histogram after the enlargement process, and FIG. (C) shows the histogram after the clip process. (D) shows a histogram after the offset processing, and (E) shows a cumulative histogram normalized with respect to the histogram after the offset processing (ie, compression characteristics). 6A to 8D, the horizontal axis is the class, the vertical axis is the frequency, and in FIGS. 6E to 8E, the horizontal axis is It is a class, and a vertical axis is a cumulative value. FIG. 9 is a diagram for explaining a processing result generated in each processing step of a dynamic range compression technique that performs conventional histogram equalization when a histogram of an input image is not biased. FIG. 10 is a diagram for explaining a processing result generated in each processing step of a dynamic range compression technique that performs conventional histogram equalization when a histogram of an input image is biased. 9A and 9B, FIG. 9A shows a histogram of an input image in which the horizontal axis is class and the vertical axis is frequency, and FIG. The axis shows the cumulative histogram with cumulative values, and FIG. (C) shows the normalized cumulative histogram (ie, compression characteristics). Since the figure (C) is used as a compression characteristic, the horizontal axis represents the pixel value of the input image (for example, input luminance value, original luminance value), and the vertical axis represents the pixel value after dynamic range compression (for example, Output luminance value, compressed luminance value).

図略の電源スイッチが投入されると、撮像装置CAは、撮像光学系1によって撮像センサ2の受光面に結像された被写体の光学像を撮像センサ2によって光電変換する。この光電変換された信号は、画像処理部3で画像処理され、NTSC規格に沿った画像信号となって前記図略のディスプレイへ出力される。そして、前記図略のディスプレイには、被写体の画像が表示される。   When a power switch (not shown) is turned on, the imaging apparatus CA photoelectrically converts the optical image of the subject formed on the light receiving surface of the imaging sensor 2 by the imaging optical system 1 using the imaging sensor 2. The photoelectrically converted signal is subjected to image processing by the image processing unit 3 and is output to an unillustrated display as an image signal conforming to the NTSC standard. An image of the subject is displayed on the display (not shown).

この画像処理部3の画像処理において、ダイナミックレンジ圧縮処理は、次のように行われる。図5において、センサ出力処理部31から信号が入力されると、ヒストグラム解析部321は、センサ出力処理部31で処理された処理結果を用いて、各画素の画素値のヒストグラムを生成し、さらに、この生成したヒストグラムを解析し、本実施形態では、この生成したヒストグラムにおける、度数を持つ最小の階級(有効エリア最小階級)および度数を持つ最大の階級(有効エリア最大階級)ならびに度数を持つ階級の範囲(有効エリア範囲)を検出する。そして、ヒストグラム解析部321は、この生成したヒストグラムを拡大処理部322へ出力し、解析結果の有効エリア最小階級および有効エリア最大階級ならびに有効エリア範囲を演算処理部35へ出力する(S1)。処理S1では、このようなヒストグラム生成処理およびヒストグラム解析処理が行われ、この生成されたヒストグラムは、拡大処理部322へ通知され、そして、解析結果は、演算処理部35へ通知される。   In the image processing of the image processing unit 3, the dynamic range compression processing is performed as follows. In FIG. 5, when a signal is input from the sensor output processing unit 31, the histogram analysis unit 321 generates a histogram of pixel values of each pixel using the processing result processed by the sensor output processing unit 31, The generated histogram is analyzed, and in the present embodiment, in the generated histogram, the minimum class having the frequency (minimum effective area class), the maximum class having the frequency (maximum effective area class), and the class having the frequency. The range (effective area range) is detected. Then, the histogram analysis unit 321 outputs the generated histogram to the enlargement processing unit 322, and outputs the effective area minimum class, the effective area maximum class, and the effective area range of the analysis result to the arithmetic processing unit 35 (S1). In the processing S1, such histogram generation processing and histogram analysis processing are performed, the generated histogram is notified to the enlargement processing unit 322, and the analysis result is notified to the arithmetic processing unit 35.

次に、処理S2において、ヒストグラム解析部321からヒストグラムが入力されると、拡大処理部322は、本実施形態では、拡大処理部322は、ヒストグラム解析部321で生成したヒストグラムにおいて度数を持つ最大の階級(演算処理部35から入力された有効エリア最大階級)と予め設定された所定の閾値とを比較し、両者の大小を判断する。この比較判断の結果、拡大処理部322は、前記最大階級(前記有効エリア最大階級)が前記所定の閾値より小さい場合には、前記所定の閾値を含む階級に、予め設定された度数(ダミー度数)を与えることによって、ヒストグラム解析部321で生成したヒストグラムを階級方向に拡大する。一方、前記比較判断の結果、拡大処理部322は、前記最大階級(前記有効エリア最大階級)が前記所定の閾値以上である場合には、拡大処理を行うことなく、ヒストグラムをそのまま据え置く。処理S2では、このような拡大処理が行われ、処理済みのヒストグラムは、クリップ処理部323へ通知される。をクリップ処理部323へ通知する。   Next, when a histogram is input from the histogram analysis unit 321 in the process S2, the enlargement processing unit 322, in this embodiment, the enlargement processing unit 322 has the maximum frequency in the histogram generated by the histogram analysis unit 321. The class (effective area maximum class input from the arithmetic processing unit 35) is compared with a predetermined threshold value, and the magnitude of both is determined. As a result of the comparison determination, when the maximum class (the effective area maximum class) is smaller than the predetermined threshold, the enlargement processing unit 322 determines that the frequency including the predetermined threshold (dummy frequency) is set in advance. ), The histogram generated by the histogram analysis unit 321 is expanded in the class direction. On the other hand, as a result of the comparison determination, when the maximum class (the effective area maximum class) is equal to or greater than the predetermined threshold, the expansion processing unit 322 leaves the histogram as it is without performing the expansion process. In the process S2, such an enlargement process is performed, and the processed histogram is notified to the clip processing unit 323. Is notified to the clip processing unit 323.

次に、処理S3において、拡大処理部322から処理済みのヒストグラムが入力されると、クリップ処理部323は、本実施形態では、拡大処理部322で処理されたヒストグラムに対し、各級ごとに、当該階級の度数と当該階級の制限値とを比較し、両者の大小を判断する。この比較判断の結果、クリップ処理部323は、当該階級の度数が当該階級の制限値を越えている場合には、当該階級の度数を当該階級の制限値に置き換える。一方、前記比較判断の結果、クリップ処理部323は、当該階級の度数が当該階級の制限値以下である場合には、当該階級の度数をそのまま据え置く。処理S3では、このようなクリップ処理が行われ、処理済みのヒストグラムは、オフセット処理部324へ通知される。   Next, when the processed histogram is input from the enlargement processing unit 322 in the process S3, the clip processing unit 323, in this embodiment, for each class with respect to the histogram processed by the enlargement processing unit 322, The frequency of the class is compared with the limit value of the class, and the magnitude of both is determined. As a result of the comparison determination, when the frequency of the class exceeds the limit value of the class, the clip processing unit 323 replaces the frequency of the class with the limit value of the class. On the other hand, as a result of the comparison determination, when the frequency of the class is equal to or lower than the limit value of the class, the clip processing unit 323 keeps the frequency of the class as it is. In the process S3, such clip processing is performed, and the processed histogram is notified to the offset processing unit 324.

次に、処理S4において、クリップ処理部323から処理済みのヒストグラムが入力されると、オフセット処理部324は、本実施形態では、クリップ処理部323で処理されたヒストグラムにおいて度数を持つ最小の階級から度数を持つ最大の階級までの各階級に対して、演算処理部35からのベースバイアス値に各階級のオフセット係数を乗算することによって各階級のオフセット値をそれぞれ生成し、この生成した各階級のオフセット値を前記最小の階級から前記最大の階級までの各階級の度数にそれぞれ加算する。処理S4では、このようなオフセット処理が行われ、処理済みのヒストグラムは、累積ヒストグラム生成部325へ通知される。   Next, in process S4, when the processed histogram is input from the clip processing unit 323, in the present embodiment, the offset processing unit 324 starts from the lowest class having the frequency in the histogram processed by the clip processing unit 323. For each class up to the maximum class having the frequency, an offset value of each class is generated by multiplying the base bias value from the arithmetic processing unit 35 by the offset coefficient of each class, and each generated class has an offset value. The offset value is added to the frequency of each class from the minimum class to the maximum class. In the process S4, such an offset process is performed, and the processed histogram is notified to the cumulative histogram generation unit 325.

このような処理S2から処理S4の各処理と並行して演算処理部35は、ヒストグラム解析部321から入力された解析結果に基づいて、少なくとも有効エリア最大階級の情報を含む設定データを生成して拡大処理部322へ出力し、前記解析結果に基づいてベースバイアス値を生成して設定データとしてオフセット処理部324へ出力している。   In parallel with each processing from processing S2 to processing S4, the arithmetic processing unit 35 generates setting data including at least information of the effective area maximum class based on the analysis result input from the histogram analysis unit 321. Based on the analysis result, the base bias value is generated and output as setting data to the offset processing unit 324.

次に、処理S5において、オフセット処理部324から処理済みのヒストグラムが入力されると、累積ヒストグラム生成部325は、オフセット処理部324で生成したオフセット値加算後のヒストグラムから累積ヒストグラムを生成する。処理S5では、このような累積ヒストグラム生成処理が行われ、この生成した累積ヒストグラムは、正規化処理部326へ通知される。   Next, in process S5, when a processed histogram is input from the offset processing unit 324, the cumulative histogram generation unit 325 generates a cumulative histogram from the histogram after the offset value addition generated by the offset processing unit 324. In the process S5, such a cumulative histogram generation process is performed, and the generated cumulative histogram is notified to the normalization processing unit 326.

次に、処理S6において、累積ヒストグラム生成部325から累積ヒストグラムが入力されると、正規化処理部326は、累積ヒストグラム生成部325で生成した累積ヒストグラムを圧縮画像の取り得る画素値の範囲に正規化することによって圧縮特性を生成する。処理S6では、このような正規化処理が行われ、圧縮特性が生成され、この正規化された累積ヒストグラムは、圧縮特性として圧縮画像生成部327へ通知される。   Next, when a cumulative histogram is input from the cumulative histogram generation unit 325 in the process S6, the normalization processing unit 326 normalizes the cumulative histogram generated by the cumulative histogram generation unit 325 within a range of pixel values that can be taken by the compressed image. To generate a compression characteristic. In the process S6, such a normalization process is performed, a compression characteristic is generated, and the normalized cumulative histogram is notified to the compressed image generation unit 327 as a compression characteristic.

次に、処理S7において、正規化処理部326から圧縮特性が入力されると、圧縮画像生成部327は、正規化処理部326で生成した圧縮特性を用いることによって、前記入力画像よりもダイナミックレンジの小さい圧縮画像を生成する。処理S7では、このような圧縮画像生成処理が行われ、圧縮画像が生成され、この生成された圧縮画像は、DRC処理部32の出力として、輝度色度処理部33へ出力される。   Next, when the compression characteristic is input from the normalization processing unit 326 in the process S7, the compressed image generation unit 327 uses the compression characteristic generated by the normalization processing unit 326, thereby increasing the dynamic range than the input image. A small compressed image is generated. In the process S 7, such a compressed image generation process is performed to generate a compressed image, and the generated compressed image is output to the luminance chromaticity processing unit 33 as an output of the DRC processing unit 32.

このように本実施形態における撮像装置CAおよび画像処理部3は、オフセット処理部324を備え、入力画像に基づいたヒストグラムに、階級の増大に従って単調に増加するオフセット値を加算するオフセット処理を行って圧縮特性を生成する。このため、本実施形態における撮像装置CAおよび画像処理部3は、階調の割り当てが全体に亘って行われ、ヒストグラムイコライゼーション法に特有なぎらぎら感を抑制することができ、ダイナミックレンジをより適切に圧縮することができる。   As described above, the imaging apparatus CA and the image processing unit 3 in the present embodiment include the offset processing unit 324, and performs offset processing that adds an offset value that monotonously increases as the class increases to the histogram based on the input image. Generate compression characteristics. For this reason, the imaging apparatus CA and the image processing unit 3 according to the present embodiment perform gradation allocation throughout, can suppress the glare characteristic peculiar to the histogram equalization method, and more appropriately the dynamic range. Can be compressed.

また、本実施形態における撮像装置CAおよび画像処理部3は、拡大処理部322を備え、入力画像に基づいたヒストグラムが偏っている場合に拡大処理部322によってこのヒストグラムを階級方向に拡大する。したがって、入力画像に基づいたヒストグラムにおいて度数を持つ最大の階級が拡大処理部322によってより大きな階級となり、もともと度数を持たなかった階級にもオフセット処理部324によって度数が与えられることになる。このため、本実施形態における撮像装置CAおよび画像処理部3は、度数が所定範囲の階級に集中して度数が偏って分布しているヒストグラムの場合でも、階調の割り当てがより広い範囲に亘って行われ、ヒストグラムイコライゼーション法に特有なぎらぎら感を抑制することができ、ダイナミックレンジをより適切に圧縮することができる。   In addition, the imaging apparatus CA and the image processing unit 3 in the present embodiment include an enlargement processing unit 322, and when the histogram based on the input image is biased, the enlargement processing unit 322 enlarges the histogram in the class direction. Accordingly, the maximum class having the frequency in the histogram based on the input image becomes a larger class by the enlargement processing unit 322, and the frequency is given by the offset processing unit 324 to the class that originally did not have the frequency. For this reason, the imaging apparatus CA and the image processing unit 3 according to the present embodiment have a wider range of gradation assignments even in the case of a histogram in which the frequencies are concentrated in a predetermined range of classes and the frequencies are unevenly distributed. The glare feeling peculiar to the histogram equalization method can be suppressed, and the dynamic range can be compressed more appropriately.

また、本実施形態における撮像装置CAおよび画像処理部3は、クリップ処理部323を備え、クリップ処理部323によって、入力画像に基づいたヒストグラムに対し、度数を所定の制限値に制限する。したがって、度数が偏って分布しているヒストグラムの場合でも、クリップ処理部323によって度数が所定の制限値に制限されるので、全体に対する度数の偏りの度合いが低減される。このため、本実施形態における撮像装置CAおよび画像処理部3は、階調の割り当てが全体により均一化され、ヒストグラムイコライゼーション法に特有なぎらぎら感を抑制することができ、ダイナミックレンジをより適切に圧縮することができる。   In addition, the imaging apparatus CA and the image processing unit 3 in this embodiment include a clip processing unit 323, and the clip processing unit 323 limits the frequency to a predetermined limit value with respect to the histogram based on the input image. Therefore, even in the case of a histogram in which the frequencies are unevenly distributed, the frequency is limited to the predetermined limit value by the clip processing unit 323, so that the degree of the frequency bias with respect to the whole is reduced. For this reason, the imaging apparatus CA and the image processing unit 3 according to the present embodiment are uniform in tone allocation as a whole, can suppress the glare characteristic peculiar to the histogram equalization method, and more appropriately compress the dynamic range. can do.

また、本実施形態における撮像装置CAおよび画像処理部3では、クリップ処理の制限値が階級ごとに異なっている。このため、本実施形態における撮像装置CAおよび画像処理部3は、階級ごとに制限値を調整することが可能となるので、階調の割り当てを全体により均一化するように調整することができる。したがって、本実施形態における撮像装置CAおよび画像処理部3では、ヒストグラムイコライゼーション法に特有なぎらぎら感をより抑制することができ、ダイナミックレンジをより適切に圧縮することができる。   Further, in the imaging device CA and the image processing unit 3 in the present embodiment, the limit value of the clip processing is different for each class. For this reason, the imaging apparatus CA and the image processing unit 3 according to the present embodiment can adjust the limit value for each class, and therefore can adjust the gradation allocation to be uniformized as a whole. Therefore, in the imaging device CA and the image processing unit 3 in the present embodiment, it is possible to further suppress the glare feeling peculiar to the histogram equalization method, and to more appropriately compress the dynamic range.

ここで、より具体的に本実施形態における撮像装置CAおよび画像処理部3の作用効果を説明するために、3種類の入力画像について、その圧縮特性の生成について以下に説明する。   Here, in order to describe the operation and effect of the imaging device CA and the image processing unit 3 in the present embodiment more specifically, the generation of compression characteristics for three types of input images will be described below.

まず、第1に、図6(A)に示すように、入力画像のヒストグラムが比較的暗い階級(小さい階級)の一部の範囲および比較的明るい階級(大きな階級)の一部の範囲に、それぞれ、度数のピークを持つふた山のヒストグラムである場合には、処理S2では、このふた山のヒストグラムにおける度数を持つ最大の階級(有効エリア最大階級)は、図6(B)に示すように、所定の閾値(図6(B)中に▲で示す)を越えているので、階級方向の拡大は、行われない。次に、処理S3では、このふた山のヒストグラムにおける各階級の各度数は、図6(C)に示すように、各階級の制限値(図6(C)中に破線で示す)をいずれも越えていないので、クリップ処理は、行われない。次に、処理S4では、オフセット処理が行われ、図6(D)に示すように、このふた山のヒストグラムにおける各階級の度数に、各階級ごとのオフセット値が加算される。このため、もともとのふた山のヒストグラムは、階級の増大に従って度数が引き上げられ、比較的明るい階級(大きな階級)の一部の範囲における度数のピークがより高くなる。そして、処理S5では、このオフセット処理されたふた山のヒストグラムから累積ヒストグラムが生成され、処理S6では、これが正規化される。このように生成された正規化された累積ヒストグラム、すなわち、圧縮特性は、図6(E)に示すように、階級の増大に従って比較的急峻に立ち上がる部分が少なく、階級の増大に従って略略リニアに増加するプロファイルとなる。   First, as shown in FIG. 6 (A), the histogram of the input image has a partial range of a relatively dark class (small class) and a partial range of a relatively bright class (large class). In the case where each is a histogram of a lid mountain having a frequency peak, in process S2, the maximum class having the frequency (maximum effective area class) in the histogram of the lid mountain is as shown in FIG. 6B. Since the predetermined threshold value (indicated by ▲ in FIG. 6B) is exceeded, no expansion in the class direction is performed. Next, in process S3, as shown in FIG. 6 (C), the frequency of each class in the lid mountain histogram is the limit value of each class (indicated by a broken line in FIG. 6 (C)). Since it does not exceed, clip processing is not performed. Next, in process S4, an offset process is performed, and as shown in FIG. 6D, an offset value for each class is added to the frequency of each class in the histogram of the top mountain. For this reason, in the original histogram of the top mountain, the frequency is increased as the class increases, and the frequency peak in a part of a relatively bright class (large class) becomes higher. In process S5, a cumulative histogram is generated from the offset-processed peak mountain histogram, and in process S6, this is normalized. As shown in FIG. 6E, the normalized cumulative histogram generated in this way, that is, the compression characteristic, has a portion that rises relatively steeply as the class increases, and increases substantially linearly as the class increases. Profile.

第2に、入力画像が夜景である場合には、図7(A)に示すように、入力画像のヒストグラムは、比較的広い範囲に度数を持つ階級を有するけれども比較的暗い階級(小さい階級)の一部の範囲に度数のピークを持っており、度数分布が偏っている。このような夜景のヒストグラムでは、処理S2では、この夜景のヒストグラムにおける度数を持つ最大の階級(有効エリア最大階級)は、図7(B)に示すように、所定の閾値(図7(B)中に▲で示す)を越えているので、階級方向の拡大は、行われない。次に、処理S3では、この夜景のヒストグラムにおける各階級の各度数は、図7(C)に示すように、暗い階級の範囲におけるピークの度数が各階級の制限値(図7(C)中に破線で示す)を越えているので、この部分で、クリップ処理が行われる(階級の度数が当該階級の制限値を越えていない他の部分では、クリップ処理が行われない)。このようにピークカットされる結果、全体に対する度数の偏り度合いが低減される。次に、処理S4では、オフセット処理が行われ、図7(D)に示すように、このクリップ処理された夜景のヒストグラムにおける各階級の度数に、各階級ごとのオフセット値が加算される。このため、クリップ処理によって暗い部分の度数が制限値でカットされたヒストグラムは、階級の増大に従って度数が引き上げられ、比較的明るい階級の度数がより高くなり、強調される。そして、処理S5では、このオフセット処理された夜景のヒストグラムから累積ヒストグラムが生成され、処理S6では、これが正規化される。このように生成された正規化された累積ヒストグラム、すなわち、圧縮特性は、図7(E)に示すように、階級の増大に従って比較的急峻に立ち上がる部分がより少なく、階級の増大に従って略略リニアに増加するプロファイルとなる。   Second, when the input image is a night view, as shown in FIG. 7A, the histogram of the input image has a class having a frequency in a relatively wide range, but a relatively dark class (small class). There is a frequency peak in a part of the range, the frequency distribution is biased. In such a night scene histogram, in processing S2, the maximum class (effective area maximum class) having the frequency in the night scene histogram is a predetermined threshold (FIG. 7B) as shown in FIG. No expansion in the class direction is performed. Next, in the process S3, as shown in FIG. 7C, the frequency of each class in the histogram of the night scene is the limit value of each class (in FIG. 7C). Therefore, the clip processing is performed in this portion (the clip processing is not performed in other portions where the frequency of the class does not exceed the limit value of the class). As a result of the peak cut in this way, the degree of frequency deviation relative to the whole is reduced. Next, in the process S4, an offset process is performed, and as shown in FIG. 7D, an offset value for each class is added to the frequency of each class in the clipped night scene histogram. For this reason, in the histogram in which the frequency of the dark portion is cut by the limit value by the clipping process, the frequency is increased as the class increases, and the frequency of the relatively bright class becomes higher and emphasized. In step S5, a cumulative histogram is generated from the histogram of the night scene subjected to the offset processing. In step S6, this is normalized. As shown in FIG. 7E, the normalized cumulative histogram generated in this way, that is, the compression characteristic, has fewer parts that rise relatively steeply as the class increases, and is substantially linear as the class increases. Increased profile.

第3に、入力画像が暗闇である場合には、図8(A)に示すように、入力画像のヒストグラムは、比較的暗い階級(小さい階級)の一部の範囲のみに度数を持ち、この範囲で度数のピークを持っている。このような度数分布の偏った暗闇のヒストグラムでは、処理S2では、この暗闇のヒストグラムにおける度数を持つ最大の階級(有効エリア最大階級)は、図8(B)に示すように、所定の閾値(図8(B)中に▲で示す)を越えていないので、拡大処理が行われ、この暗闇のヒストグラムは、階級方向に拡大される。これによって有効エリア範囲が拡大されるため、全体の範囲が広がる結果、全体に対する度数の偏り度合いが低減される。次に、処理S3では、この拡大処理された暗闇のヒストグラムにおける各階級の各度数は、図8(C)に示すように、暗い階級の範囲におけるピークの度数が各階級の制限値(図8(C)中に破線で示す)を越えているので、この部分で、クリップ処理が行われる(階級の度数が当該階級の制限値を越えていない他の部分では、クリップ処理が行われない)。このようにピークカットされる結果、全体に対する度数の偏り度合いがさらに低減される。次に、処理S4では、オフセット処理が行われ、図8(D)に示すように、このクリップ処理された暗闇のヒストグラムにおける各階級の度数に、各階級ごとのオフセット値が加算される。このため、クリップ処理によって暗い部分の度数が制限値でカットされたヒストグラムは、階級の増大に従って度数が引き上げられ、比較的明るい階級の度数がより高くなり、強調される。そして、処理S5では、このオフセット処理された暗闇のヒストグラムから累積ヒストグラムが生成され、処理S6では、これが正規化される。このように生成された正規化された累積ヒストグラム、すなわち、圧縮特性は、図8(E)に示すように、階級の増大に従って比較的急峻に立ち上がる部分がより少なく、階級の増大に従って略略リニアに増加するプロファイルとなる。   Third, when the input image is dark, as shown in FIG. 8 (A), the histogram of the input image has frequencies only in a part of a relatively dark class (small class). Has a frequency peak in the range. In such a dark histogram with a biased frequency distribution, in process S2, the maximum class having the frequencies in this dark histogram (effective area maximum class) is a predetermined threshold value (as shown in FIG. 8B). Since it does not exceed (indicated by ▲ in FIG. 8B), enlargement processing is performed, and this dark histogram is enlarged in the class direction. As a result, the effective area range is expanded, and as a result, the entire range is expanded, so that the degree of frequency bias relative to the entire range is reduced. Next, in the process S3, as shown in FIG. 8C, the frequency of each class in the darkness histogram that has been subjected to the enlargement processing is such that the peak frequency in the dark class range is the limit value (FIG. 8). (C) (indicated by a broken line), the clip processing is performed in this portion (the clip processing is not performed in other portions where the class frequency does not exceed the limit value of the class). . As a result of the peak cut in this way, the degree of frequency deviation relative to the whole is further reduced. Next, in process S4, offset processing is performed, and as shown in FIG. 8D, the offset value for each class is added to the frequency of each class in the clipped darkness histogram. For this reason, in the histogram in which the frequency of the dark portion is cut by the limit value by the clipping process, the frequency is increased as the class increases, and the frequency of the relatively bright class becomes higher and emphasized. In process S5, a cumulative histogram is generated from the dark histogram subjected to the offset process, and in process S6, this is normalized. As shown in FIG. 8 (E), the normalized cumulative histogram generated in this way, that is, the compression characteristic, has fewer portions that rise relatively steeply as the class increases, and is substantially linear as the class increases. Increased profile.

このように本実施形態における撮像装置CAおよび画像処理部3は、ふた山のヒストグラムを持つ入力画像、夜景の入力画像および暗闇の入力画像であっても、階級の増大に従って略略リニアに増加するプロファイルを持つ圧縮特性が得られるため、階調の割り当てが全体に亘って行われ、ヒストグラムイコライゼーション法に特有なぎらぎら感を抑制することができ、ダイナミックレンジをより適切に圧縮することができる。   As described above, the imaging apparatus CA and the image processing unit 3 according to the present embodiment have a profile that increases substantially linearly as the class increases even for an input image having a mountain histogram, a night scene input image, and a dark input image. Therefore, gradation assignment is performed over the whole, and the glare feeling peculiar to the histogram equalization method can be suppressed, and the dynamic range can be compressed more appropriately.

上記本実施形態の圧縮特性の比較例として、比較例の圧縮特性を説明する。この比較例の圧縮特性は、次のように、生成される。まず、入力画像のヒストグラムが生成され、次に、このヒストグラムに対し累積ヒストグラムが生成され、次に、この累積ヒストグラムが圧縮画像の取り得る画素値の範囲に正規化される。これによって、比較例の圧縮特性が生成される。   As a comparative example of the compression characteristics of the present embodiment, the compression characteristics of the comparative example will be described. The compression characteristic of this comparative example is generated as follows. First, a histogram of the input image is generated, then a cumulative histogram is generated for this histogram, and then this cumulative histogram is normalized to a range of pixel values that can be taken by the compressed image. Thereby, the compression characteristic of the comparative example is generated.

このような比較例の圧縮特性の生成方法では、図9(A)に示すように、入力画像のヒストグラムが比較的暗い階級(小さい階級)から明るい階級(大きな階級)まで、一様に分布している場合には、図9(B)に示すように、図9(A)に示すヒストグラムから生成された累積ヒストグラムは、略リニアに増加するプロファイルとなる。したがって、これを正規化した累積ヒストグラム、すなわち、圧縮特性は、図9(C)および図9(D)にそれぞれ示すように、略リニアに増加するプロファイルを持つ特性曲線となる。このため、階調が全体に略均一的に割り振られ、見やすい圧縮画像を得ることができる。   In such a compression characteristic generation method of the comparative example, as shown in FIG. 9A, the histogram of the input image is uniformly distributed from a relatively dark class (small class) to a bright class (large class). 9B, as shown in FIG. 9B, the cumulative histogram generated from the histogram shown in FIG. 9A has a profile that increases substantially linearly. Therefore, the cumulative histogram obtained by normalizing this, that is, the compression characteristic, is a characteristic curve having a profile that increases substantially linearly as shown in FIGS. 9C and 9D, respectively. For this reason, gradations are assigned substantially uniformly throughout, and a compressed image that is easy to view can be obtained.

ところが、入力画像が暗闇や夜景等の場合では、このような入力画像のヒストグラムは、図10(A)に示すように、度数を持つ階級が一部の範囲(暗い階級の範囲)に偏っていたり(暗闇の場合)、比較的広い範囲に度数を持つ階級を有するけれども大きな度数を持つ階級が一部の範囲(暗い階級の範囲)に偏っていたりする(夜景の場合)。このような比較的暗い階級に度数が偏ったプロファイルを持つヒストグラムから生成された累積ヒストグラムは、図10(B)に示すように、階級の増加に従って比較的急峻に立ち上がり、その後、緩やかに増加するプロファイルとなる。したがって、これを正規化した累積ヒストグラム、すなわち、圧縮特性は、図10(C)および図10(D)にそれぞれ示すように、累積ヒストグラムと同様に、階級の増加に従って比較的急峻に立ち上がり、その後、緩やかに増加するプロファイルを持つ特性曲線となって、略リニアに増加するプロファイルを持つ特性曲線にならない。このため、上記階級の増加に従って比較的急峻に立ち上がる部分(図10(D)に破線で丸く囲っている部分)に、階調が優先的に割り振られてしまい、階調の割り当てが局所的になる。その結果、圧縮画像は、ヒストグラムイコライゼーション法に特有なぎらぎら感を持つ画像となってします。   However, in the case where the input image is dark or night scene, the histogram of such an input image has a frequency class biased to a partial range (dark class range) as shown in FIG. (In the case of darkness), or a class having a frequency in a relatively wide range, but a class having a large frequency is biased to a certain range (in the dark class range) (in the case of a night view). As shown in FIG. 10B, the cumulative histogram generated from such a histogram having a frequency-biased profile in a relatively dark class rises relatively steeply as the class increases, and then gradually increases. Profile. Therefore, as shown in FIGS. 10C and 10D, the cumulative histogram obtained by normalizing this, that is, the compression characteristic, rises relatively steeply as the class increases, and thereafter, as in the cumulative histogram. The characteristic curve has a gradually increasing profile, and does not become a characteristic curve having a substantially linearly increasing profile. For this reason, gradation is preferentially assigned to the portion that rises relatively steeply as the class increases (the portion circled with a broken line in FIG. 10D), and gradation assignment is locally performed. Become. As a result, the compressed image has a glare that is characteristic of the histogram equalization method.

一方、本実施形態における撮像装置CAおよび画像処理部3では、図6(E)、図7(E)および図8(E)に示すように、累積ヒストグラムは、図10(B)に較べて、階級の増加に従ってよりリニアに増加するプロファイルである。したがって、この累積ヒストグラムを正規化することによって得られる圧縮特性も、本実施形態における撮像装置CAおよび画像処理部3では、図10(D)に倉ばて、階級の増加に従ってよりリニアに増加するプロファイルを持つ特性曲線となる。この結果、本実施形態における撮像装置CAおよび画像処理部3では、度数が所定範囲の階級に集中して度数が偏って分布しているヒストグラムの場合でも、階調の割り当てがより広い範囲に亘って行われ、ヒストグラムイコライゼーション法に特有なぎらぎら感を抑制することができ、ダイナミックレンジをより適切に圧縮することができる。   On the other hand, in the imaging apparatus CA and the image processing unit 3 according to the present embodiment, as shown in FIGS. 6E, 7E, and 8E, the cumulative histogram is compared with FIG. 10B. The profile increases more linearly as the class increases. Therefore, the compression characteristics obtained by normalizing this cumulative histogram also increase more linearly as the class increases in the imaging apparatus CA and the image processing unit 3 in this embodiment, as shown in FIG. It becomes a characteristic curve with a profile. As a result, in the imaging apparatus CA and the image processing unit 3 according to the present embodiment, even in the case of a histogram in which the frequencies are concentrated in a predetermined range of classes and the frequencies are unevenly distributed, the gradation allocation is over a wider range. The glare feeling peculiar to the histogram equalization method can be suppressed, and the dynamic range can be compressed more appropriately.

なお、上述では、DRC処理部32は、ヒストグラム解析部321、拡大処理部322、クリップ処理部323、オフセット処理部324、累積ヒストグラム生成部325、正規化処理部326および圧縮画像生成部327を備えたが、例えば、拡大処理部322が省略され、DRC処理部32は、ヒストグラム解析部321、クリップ処理部323、オフセット処理部324、累積ヒストグラム生成部325、正規化処理部326および圧縮画像生成部327を備えて構成されてもよい。このような場合では、クリップ処理部323は、ヒストグラム解析部321で生成したヒストグラムに対し、度数を所定の制限値に制限するクリップ処理を行う。また例えば、クリップ処理部323が省略され、DRC処理部32は、ヒストグラム解析部321、拡大処理部322、オフセット処理部324、累積ヒストグラム生成部325、正規化処理部326および圧縮画像生成部327を備えて構成されてもよい。このような場合では、オフセット処理部324は、拡大処理部322で拡大されたヒストグラムにおいて度数を持つ最小の階級から前記所定の度数を与えられた最大の階級までの各階級に対して、階級の増大に従って単調に増加する各階級のオフセット値をそれぞれ生成し、この生成した各階級のオフセット値を前記最小の階級から前記最大の階級までの各階級の度数にそれぞれ加算するオフセット処理を行う。また例えば、拡大処理部322およびクリップ処理部323が省略され、DRC処理部32は、ヒストグラム解析部321、オフセット処理部324、累積ヒストグラム生成部325、正規化処理部326および圧縮画像生成部327を備えて構成されてもよい。このような場合では、オフセット処理部324は、ヒストグラム解析部321で生成されたヒストグラムにおいて度数を持つ最小の階級から前記所定の度数を与えられた最大の階級までの各階級に対して、階級の増大に従って単調に増加する各階級のオフセット値をそれぞれ生成し、この生成した各階級のオフセット値を前記最小の階級から前記最大の階級までの各階級の度数にそれぞれ加算するオフセット処理を行う。   In the above description, the DRC processing unit 32 includes a histogram analysis unit 321, an enlargement processing unit 322, a clip processing unit 323, an offset processing unit 324, a cumulative histogram generation unit 325, a normalization processing unit 326, and a compressed image generation unit 327. However, for example, the enlargement processing unit 322 is omitted, and the DRC processing unit 32 includes a histogram analysis unit 321, a clip processing unit 323, an offset processing unit 324, a cumulative histogram generation unit 325, a normalization processing unit 326, and a compressed image generation unit. 327 may be provided. In such a case, the clip processing unit 323 performs clip processing for limiting the frequency to a predetermined limit value for the histogram generated by the histogram analysis unit 321. For example, the clip processing unit 323 is omitted, and the DRC processing unit 32 includes a histogram analysis unit 321, an enlargement processing unit 322, an offset processing unit 324, a cumulative histogram generation unit 325, a normalization processing unit 326, and a compressed image generation unit 327. It may be provided. In such a case, the offset processing unit 324 applies the class of each class from the lowest class having the frequency to the maximum class given the predetermined frequency in the histogram enlarged by the enlargement processing unit 322. The offset value of each class that increases monotonously with the increase is generated, and the generated offset value is added to the frequency of each class from the minimum class to the maximum class. Further, for example, the enlargement processing unit 322 and the clip processing unit 323 are omitted, and the DRC processing unit 32 includes a histogram analysis unit 321, an offset processing unit 324, a cumulative histogram generation unit 325, a normalization processing unit 326, and a compressed image generation unit 327. It may be provided. In such a case, the offset processing unit 324 applies a class for each class from the lowest class having the frequency to the maximum class given the predetermined frequency in the histogram generated by the histogram analysis unit 321. The offset value of each class that increases monotonously with the increase is generated, and the generated offset value is added to the frequency of each class from the minimum class to the maximum class.

また、上述の実施形態において、撮像装置CAおよび画像処理部3は、図2に破線で示すように、オフセット処理部324に、前記階級の増大に従って単調に増加する各階級のオフセット値を複数のパターンでそれぞれ生成させる複数パターン生成処理部3241をさらに備えてもよい。このように構成することによって、複数のパターンでオフセット処理された圧縮画像を生成することが可能となるので、1個の入力画像に対し各パターンのオフセット値による各圧縮特性で様々な圧縮画像を生成し、これら様々な圧縮画像の中から最適な圧縮画像を選択することが可能となる。   Further, in the above-described embodiment, the imaging device CA and the image processing unit 3 have a plurality of offset values monotonously increasing as the class increases in the offset processing unit 324, as indicated by broken lines in FIG. You may further provide the multiple pattern production | generation process part 3241 produced | generated by a pattern, respectively. With this configuration, it is possible to generate a compressed image that has been offset with a plurality of patterns, so various compressed images can be generated with each compression characteristic according to the offset value of each pattern for one input image. It is possible to generate and select an optimal compressed image from these various compressed images.

本発明を表現するために、上述において図面を参照しながら実施形態を通して本発明を適切且つ十分に説明したが、当業者であれば上述の実施形態を変更および/または改良することは容易に為し得ることであると認識すべきである。したがって、当業者が実施する変更形態または改良形態が、請求の範囲に記載された請求項の権利範囲を離脱するレベルのものでない限り、当該変更形態または当該改良形態は、当該請求項の権利範囲に包括されると解釈される。   In order to express the present invention, the present invention has been properly and fully described through the embodiments with reference to the drawings. However, those skilled in the art can easily change and / or improve the above-described embodiments. It should be recognized that this is possible. Therefore, unless the modifications or improvements implemented by those skilled in the art are at a level that departs from the scope of the claims recited in the claims, the modifications or improvements are not covered by the claims. To be construed as inclusive.

CA 撮像装置
1 撮像光学系
2 撮像センサ
3 画像処理部
31 センサ出力処理部
32 ダイナミックレンジ圧縮処理部
321 ヒストグラム解析部
322 拡大処理部
323 クリップ処理部
324 オフセット処理部
325 累積ヒストグラム生成部
326 正規化処理部
327 圧縮画像生成部
CA imaging device 1 imaging optical system 2 imaging sensor 3 image processing unit 31 sensor output processing unit 32 dynamic range compression processing unit 321 histogram analysis unit 322 enlargement processing unit 323 clip processing unit 324 offset processing unit 325 cumulative histogram generation unit 326 normalization processing 327 Compressed image generation unit

Claims (8)

入力画像における各画素の画素値のヒストグラムを生成するヒストグラム生成部と、
前記ヒストグラム生成部で生成したヒストグラムにおいて度数を持つ最小の階級から度数を持つ最大の階級までの各階級に対して、階級の増大に従って単調に増加する各階級のオフセット値をそれぞれ生成し、前記生成した各階級のオフセット値を前記最小の階級から前記最大の階級までの各階級の度数にそれぞれ加算するオフセット処理部と、
前記オフセット処理部で生成したオフセット値加算後のヒストグラムに基づいて、前記入力画像を圧縮するための圧縮特性を生成する圧縮特性生成部と、
前記圧縮特性生成部で生成した圧縮特性を用いることによって、前記入力画像よりもダイナミックレンジの小さい圧縮画像を生成する圧縮画像生成部とを備えること
を特徴とする画像処理装置。
A histogram generator that generates a histogram of pixel values of each pixel in the input image;
For each class from the lowest class with frequency to the highest class with frequency in the histogram generated by the histogram generation unit, an offset value for each class that increases monotonically as the class increases is generated, and the generation An offset processing unit that adds the offset value of each class to the frequency of each class from the minimum class to the maximum class,
A compression characteristic generation unit that generates a compression characteristic for compressing the input image based on the histogram after the offset value addition generated by the offset processing unit;
An image processing apparatus comprising: a compressed image generation unit that generates a compressed image having a smaller dynamic range than the input image by using the compression characteristic generated by the compression characteristic generation unit.
前記ヒストグラム生成部で生成したヒストグラムにおいて度数を持つ最大の階級よりも大きな階級に所定の度数を与えることによって、前記ヒストグラム生成部で生成したヒストグラムを階級方向に拡大する拡大処理部をさらに備え、
前記オフセット処理部は、前記拡大処理部で拡大されたヒストグラムにおいて度数を持つ最小の階級から前記所定の度数を与えられた最大の階級までの各階級に対して、階級の増大に従って単調に増加する各階級のオフセット値をそれぞれ生成し、前記生成した各階級のオフセット値を前記最小の階級から前記最大の階級までの各階級の度数にそれぞれ加算すること
を特徴とする請求項1に記載の画像処理装置。
An enlargement processing unit for enlarging the histogram generated by the histogram generation unit in the class direction by giving a predetermined frequency to a class larger than the maximum class having the frequency in the histogram generated by the histogram generation unit;
The offset processing unit monotonously increases as the class increases for each class from the lowest class having the frequency to the highest class given the predetermined frequency in the histogram enlarged by the enlargement processing unit. The image according to claim 1, wherein an offset value for each class is generated, and the generated offset value for each class is added to the frequency of each class from the minimum class to the maximum class. Processing equipment.
前記ヒストグラム生成部で生成したヒストグラムに対し、度数を所定の制限値に制限するクリップ処理部をさらに備え、
前記オフセット処理部は、前記クリップ処理部で処理されたヒストグラムにおいて度数を持つ最小の階級から度数を持つ最大の階級までの各階級に対して、階級の増大に従って単調に増加する各階級のオフセット値をそれぞれ生成し、前記生成した各階級のオフセット値を前記最小の階級から前記最大の階級までの各階級の度数にそれぞれ加算すること
を特徴とする請求項1に記載の画像処理装置。
A clip processing unit that limits the frequency to a predetermined limit value with respect to the histogram generated by the histogram generation unit,
The offset processing unit, for each class from the lowest class having the frequency to the highest class having the frequency in the histogram processed by the clip processing unit, the offset value of each class monotonously increasing as the class increases The image processing apparatus according to claim 1, further comprising: generating an offset value of each class and adding the generated offset value of each class to the frequency of each class from the minimum class to the maximum class.
前記拡大処理部で拡大されたヒストグラムに対し、度数を所定の制限値に制限するクリップ処理部をさらに備え、
前記オフセット処理部は、前記クリップ処理部で処理されたヒストグラムにおいて度数を持つ最小の階級から度数を持つ最大の階級までの各階級に対して、階級の増大に従って単調に増加する各階級のオフセット値をそれぞれ生成し、前記生成した各階級のオフセット値を前記最小の階級から前記最大の階級までの各階級の度数にそれぞれ加算すること
を特徴とする請求項2に記載の画像処理装置。
A clip processing unit that limits the frequency to a predetermined limit value for the histogram expanded by the expansion processing unit,
The offset processing unit, for each class from the lowest class having the frequency to the highest class having the frequency in the histogram processed by the clip processing unit, the offset value of each class monotonously increasing as the class increases The image processing apparatus according to claim 2, further comprising: generating an offset value of each class, and adding the generated offset value of each class to the frequency of each class from the minimum class to the maximum class.
前記所定の制限値は、階級ごとに異なること
を特徴とする請求項3または請求項4に記載の画像処理装置。
The image processing apparatus according to claim 3, wherein the predetermined limit value is different for each class.
前記オフセット処理部に、前記階級の増大に従って単調に増加する各階級のオフセット値を複数のパターンでそれぞれ生成させる複数パターン生成処理部をさらに備えること
を特徴とする請求項1ないし請求項5のいずれか1項に記載の画像処理装置。
6. The multi-pattern generation processing unit that causes the offset processing unit to generate offset values of each class that monotonously increase as the class increases in a plurality of patterns, respectively. The image processing apparatus according to claim 1.
入力画像における各画素の画素値のヒストグラムを生成するヒストグラム生成工程と、
前記ヒストグラム生成工程で生成したヒストグラムにおいて度数を持つ最小の階級から度数を持つ最大の階級までの各階級に対して、階級の増大に従って単調に増加する各階級のオフセット値をそれぞれ生成し、前記生成した各階級のオフセット値を前記最小の階級から前記最大の階級までの各階級の度数にそれぞれ加算するオフセット処理工程と、
前記オフセット処理工程で生成したオフセット値加算後のヒストグラムに基づいて、前記入力画像を圧縮するための圧縮特性を生成する圧縮特性生成工程と、
前記圧縮特性生成工程で生成した圧縮特性を用いることによって、前記入力画像よりもダイナミックレンジの小さい圧縮画像を生成する圧縮画像生成工程とを備えること
を特徴とする画像処理方法。
A histogram generation step of generating a histogram of pixel values of each pixel in the input image;
In the histogram generated in the histogram generation step, for each class from the lowest class having the frequency to the highest class having the frequency, an offset value of each class monotonically increasing as the class increases is generated, and the generation Offset processing step of adding the offset value of each class to the frequency of each class from the minimum class to the maximum class,
A compression characteristic generation step for generating a compression characteristic for compressing the input image based on the histogram after the offset value addition generated in the offset processing step;
An image processing method comprising: a compressed image generation step of generating a compressed image having a smaller dynamic range than the input image by using the compression characteristic generated in the compression characteristic generation step.
被写体光像を光電変換して画像信号を生成する撮像部と、
前記撮像部で生成された画像信号に所定の画像処理を施して画像を生成する画像処理部とを備え、
前記画像処理部は、請求項1ないし請求項6のいずれか1項に記載の画像処理装置を備えること
を特徴とする撮像装置。
An imaging unit that photoelectrically converts a subject light image to generate an image signal;
An image processing unit that performs predetermined image processing on the image signal generated by the imaging unit and generates an image;
The image processing unit includes the image processing apparatus according to any one of claims 1 to 6.
JP2012248289A 2012-11-12 2012-11-12 Image processor, image processing method and imaging apparatus Pending JP2014096752A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012248289A JP2014096752A (en) 2012-11-12 2012-11-12 Image processor, image processing method and imaging apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012248289A JP2014096752A (en) 2012-11-12 2012-11-12 Image processor, image processing method and imaging apparatus

Publications (1)

Publication Number Publication Date
JP2014096752A true JP2014096752A (en) 2014-05-22

Family

ID=50939486

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012248289A Pending JP2014096752A (en) 2012-11-12 2012-11-12 Image processor, image processing method and imaging apparatus

Country Status (1)

Country Link
JP (1) JP2014096752A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016126592A (en) * 2015-01-06 2016-07-11 オリンパス株式会社 Image processing device, imaging device, image processing method, and recording medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0363884A (en) * 1989-08-02 1991-03-19 Hitachi Ltd Image processing method
JP2002232728A (en) * 2001-01-30 2002-08-16 Minolta Co Ltd Image processing program, computer readable recording medium with image processing program recorded thereon, image processing apparatus, and image processing method
JP2003046859A (en) * 2001-08-01 2003-02-14 Sony Corp Image pickup device and method
JP2004342030A (en) * 2003-05-19 2004-12-02 Matsushita Electric Ind Co Ltd Gradation correction device and gradation correction method
WO2012050203A1 (en) * 2010-10-15 2012-04-19 シャープ株式会社 Image processing device, image processing method, image processing program, and recording medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0363884A (en) * 1989-08-02 1991-03-19 Hitachi Ltd Image processing method
JP2002232728A (en) * 2001-01-30 2002-08-16 Minolta Co Ltd Image processing program, computer readable recording medium with image processing program recorded thereon, image processing apparatus, and image processing method
JP2003046859A (en) * 2001-08-01 2003-02-14 Sony Corp Image pickup device and method
JP2004342030A (en) * 2003-05-19 2004-12-02 Matsushita Electric Ind Co Ltd Gradation correction device and gradation correction method
WO2012050203A1 (en) * 2010-10-15 2012-04-19 シャープ株式会社 Image processing device, image processing method, image processing program, and recording medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016126592A (en) * 2015-01-06 2016-07-11 オリンパス株式会社 Image processing device, imaging device, image processing method, and recording medium

Similar Documents

Publication Publication Date Title
JP4894595B2 (en) Image processing apparatus and method, and program
JP5012333B2 (en) Image processing apparatus, image processing method, and imaging apparatus
JP5003196B2 (en) Image processing apparatus and method, and program
KR100200363B1 (en) Apparatus to enlarge the dynamic range
EP1761040A2 (en) Apparatus, method and computer program for taking an image and apparatus, method and computer program for processing an image
JP4720537B2 (en) Imaging device
US20160117806A1 (en) Image processing device, image capture device, image processing method, and program
JP2007049540A (en) Image processing apparatus and method, recording medium, and program
JP6074254B2 (en) Image processing apparatus and control method thereof
JP2010056774A (en) Apparatus, method and program for processing image
JP2010004302A (en) Signal processing device, signal processing method, control program, readable recording medium, solid-state imaging device and electronic information appliance
EP3131281B1 (en) Image processing apparatus and method, recording medium on which temporarily computer-readable image processing program has been stored, and image pickup apparatus
US10075649B2 (en) Image capturing apparatus and image capturing method for exposure compensation in high dynamic range synthesized images
JP2014027403A (en) Image processor
JP6243629B2 (en) Image processing apparatus and method, and imaging apparatus
KR20120122574A (en) Apparatus and mdthod for processing image in a digital camera
JP2016081149A (en) Image processing device, imaging device, image processing method, and program
JP2010183460A (en) Image capturing apparatus and method of controlling the same
JP5295854B2 (en) Image processing apparatus and image processing program
JP2002288650A (en) Image processing device, digital camera, image processing method and recording medium
JP2014096752A (en) Image processor, image processing method and imaging apparatus
KR101750986B1 (en) An apparatus and a method for processing image, and a computer-readable storage medium
JP2012134745A (en) Image signal processing device
JP6786273B2 (en) Image processing equipment, image processing methods, and programs
JP2015211320A (en) Image processing apparatus, control method thereof and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150313

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160205

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160209

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20160802