JP2014096752A - Image processor, image processing method and imaging apparatus - Google Patents
Image processor, image processing method and imaging apparatus Download PDFInfo
- 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
Links
- 238000003384 imaging method Methods 0.000 title claims abstract description 59
- 238000003672 processing method Methods 0.000 title claims abstract description 10
- 238000007906 compression Methods 0.000 claims abstract description 72
- 230000006835 compression Effects 0.000 claims abstract description 70
- 238000012545 processing Methods 0.000 claims description 336
- 238000000034 method Methods 0.000 description 84
- 230000001186 cumulative effect Effects 0.000 description 57
- 230000008569 process Effects 0.000 description 51
- 238000004458 analytical method Methods 0.000 description 40
- 230000003287 optical effect Effects 0.000 description 17
- 238000010606 normalization Methods 0.000 description 16
- 238000010586 diagram Methods 0.000 description 14
- 230000004313 glare Effects 0.000 description 14
- 238000006243 chemical reaction Methods 0.000 description 10
- 230000000052 comparative effect Effects 0.000 description 7
- 238000012937 correction Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 230000000875 corresponding effect Effects 0.000 description 4
- 238000007781 pre-processing Methods 0.000 description 3
- 230000003321 amplification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000003199 nucleic acid amplification method Methods 0.000 description 2
- 238000005070 sampling Methods 0.000 description 2
- 230000035807 sensation Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000001276 controlling effect Effects 0.000 description 1
- 230000002596 correlated effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000004615 ingredient Substances 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
Images
Landscapes
- Facsimile Image Signal Circuits (AREA)
- Image Processing (AREA)
Abstract
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
一方、ヒストグラムイコライゼーションは、画像のコントラストを適正化する手法としても知られており、例えば、特許文献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,
また、特許文献4に開示のX線画像処理装置は、画像データ供給手段から受けた処理対象画像データに対してウィンドウにより階調変換を行うウィンドウ処理手段を備えたX線画像処理装置であって、前記処理対象画像データのヒストグラムからX線絞りおよびハレーションの階調域を抽出し、このX線絞りおよびハレーションの階調域以外の被写体の階調域に対してのみのヒストグラムを作成し、この作成したヒストグラムが所定の形に変形するウィンドウにより前記ウィンドウ処理手段において階調変換を行わせる階調変換制御手段を、具備している。
The X-ray image processing apparatus disclosed in
また、特許文献5に開示の画像処理装置は、入力された画像データを構成する画素値の平均および偏差を求める平均偏差算出手段と、前記画素値の平均を中心とした前記画素値の偏差の所定倍の範囲外の値をもつ画素を切り捨てて前記画素値のヒストグラムを生成するヒストグラム生成手段と、該ヒストグラム生成手段で生成されたヒストグラムを用いて前記画素値を変換する変換手段と、を備えている。
Further, an image processing device disclosed in
ところで、上述のヒストグラムイコライゼーション法を用いるダイナミックレンジ圧縮技術は、画像のヒストグラムが略平坦なプロファイルである場合、すなわち、画像の累積度数分布が略リニアに変化するプロファイルである場合には、良好にダイナミックレンジを圧縮した画像を生成することができる。しかしながら、例えば夜景やほぼ暗闇等を撮像した画像等のように、ヒストグラムにおける度数が偏って分布している場合では、圧縮変換特性で変換された画素値が大きくなり過ぎる等によって、不自然な画像になってしまう。 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. .
以下、本発明にかかる実施の一形態を図面に基づいて説明する。なお、各図において同一の符号を付した構成は、同一の構成であることを示し、適宜、その説明を省略する。 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
撮像光学系1は、1または複数の例えばレンズ等の光学素子を備え、物体(被写体)の光学像を撮像センサ2の受光面上に結像するものである。撮像光学系1は、前記1または複数の光学素子のうちの所定の光学素子を光軸AXに沿って移動することによって、例えばフォーカシング(合焦)やズーミング(変倍)等を行ってもよい。撮像センサ2は、2次元平面の受光面を形成するように配置された複数の光電変換素子を備え、撮像光学系1によって結像された物体の光学像における光量に応じてR(赤)、G(緑)、B(青)の各成分の信号に光電変換して画像処理部3へ出力する素子である。撮像センサ2は、例えば、CCD型のイメージセンサやCMOS型のイメージセンサ等であり、本実施形態では、被写体の広い輝度範囲に対応可能な広いダイナミックレンジを持ついわゆるリニアログセンサである。このリニアログセンサは、所定の閾値(変曲点)以下の入射光量に対して線形的に光電変換した電気信号を出力し、前記所定の閾値より大きな入射光量に対して対数的に光電変換した電気信号を出力するイメージセンサである。物体の光学像は、この撮像光学系1によって光軸AXに沿って撮像センサ2の受光面まで導かれ、撮像センサ2によって前記物体の光学像が撮像される。
The imaging
画像処理部3は、撮像センサ2から入力された信号に所定の画像処理を行うことによって、撮像センサ2から入力された前記信号から所定の画像信号を生成するものであり、本実施形態では、画像処理部3は、入力画像における各画素の画素値のヒストグラムに基づいてダイナミックレンジを圧縮するための圧縮特性を生成し、この生成した圧縮特性を用いることによって、前記入力画像よりもダイナミックレンジの小さい圧縮画像を生成する。このような画像処理部3は、本実施形態では、例えば、センサ出力処理部31と、ダイナミックレンジ圧縮処理部(以下、「DRC処理部」と略記する。)32と、輝度色度処理部33と、NTSC処理部34と、演算処理部35とを備えている。
The
センサ出力処理部31は、撮像センサ2から入力された信号に所定の前処理を行うことによって、撮像センサ2から入力された前記信号から、画像処理部3で情報処理し易い信号を生成するものである。本実施形態では、撮像センサ2がリニアログセンサ2であることから、センサ出力処理部31は、光電変換特性を統一するために、前記所定の前処理としていわゆるフルログ処理を行う。このフルログ処理は、リニアログセンサ2で線形変換されて出力された信号の信号値を、対数変換された場合の信号の信号値に変換する処理である。撮像センサ2から入力された前記信号は、このフルログ処理によって入射光量にかかわらず、入射光量全体に亘って対数変換で光電変換された信号の信号値となる。センサ出力処理部31は、前記所定の前処理として、AGC(オートゲインコントロール)によってゲイン(増幅率)を調整しつつ、撮像センサ2から入力された前記信号を増幅する増幅処理をさらに行ってもよく、サンプリングノイズを低減するためにCDS(相関二重サンプリング)処理をさらに行ってもよい。センサ出力処理部31で処理された処理結果は、DRC処理部32および演算処理部35へ出力される。
The sensor
DRC処理部32は、センサ出力処理部31で処理された処理結果のダイナミックレンジを圧縮する処理を行うものである。DRC処理部32については、後述する。DRC処理部32で処理された処理結果は、輝度色度処理部33へ出力される。
The
輝度色度処理部33は、DRC処理部32で処理された処理結果に対し輝度や色度等の各種の調整処理を行うものである。輝度色度処理部33は、前記調整処理として、例えば、黒レベルの補正処理、ホワイトバランスの補正処理、色補間処理、色補正処理およびガンマ補正処理(γ補正処理)等を行う。これら各処理は、公知の処理方法によって処理される。輝度色度処理部33で処理された処理結果は、NTSC処理部34へ出力される。
The luminance
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
演算処理部35は、画像処理部3の各部を当該機能に応じて制御することによって画像処理部3全体の動作を制御するものである。本実施形態では、例えば、演算処理部35は、DRC処理部32でダイナミックレンジを圧縮するために必要な各種設定データをDRC処理部32へ出力し、輝度色度処理部33で前記調整処理を行うために必要な各種設定データ(例えばガンマ補正処理のガンマ設定データ)を輝度色度処理部33へ出力する。
The
このような画像処理部3は、例えば、各処理部31〜35ごとに個別部品によって構成されてもよく、また例えば、画像処理部3は、DSP(Digital Signal Processor)、メモリ素子および周辺回路等によって構成され、各処理部31〜35は、所定のプログラムを実行することによってDSP等に機能的に構成されてよい。
Such an
次に、DRC処理部32について、説明する。図2において、DRC処理部32は、例えば、ヒストグラム解析部321と、拡大処理部322と、クリップ処理部323と、オフセット処理部324と、累積ヒストグラム生成部325と、正規化処理部326と、圧縮画像生成部327とを備えている。
Next, the
ヒストグラム解析部321は、センサ出力処理部31で処理された処理結果を用いて、各画素の画素値のヒストグラムを生成するものである。このヒストグラムは、画素が取り得る画素値の範囲、例えば輝度値の範囲を等間隔に複数の階級に分け、各階級ごとに、その階級の画素値を持つ画素の総和を度数(頻度)として対応付けた統計グラフである。ヒストグラムでは、横軸は、階級であり、縦軸は、度数となる。なお、画素値(例えば輝度値)は、0以上である。このようなヒストグラムを参照することによって、入力画像における各画素の画素値の分布状況を視覚的に認識することが可能となる。そして、ヒストグラム解析部321は、拡大処理部322、クリップ処理部323またはオフセット処理部324で当該各処理部の機能に応じた所定の処理を行う際に必要となるデータを得るために所定の解析処理もこの生成したヒストグラムに対して行うものである。この所定の解析処理として、ヒストグラム解析部321は、例えば、度数を持つ最小の階級(有効エリア最小階級)および度数を持つ最大の階級(有効エリア最大階級)を検出し、さらに、この検出結果から、度数を持つ階級の範囲(有効エリア範囲)を検出する。ヒストグラム解析部321は、この生成したヒストグラムを拡大処理部322へ出力し、前記所定の解析処理によって得られた解析結果を演算処理部35へ出力する。なお、以下の説明において、度数を持つ階級を有効エリアと呼称する場合もある。
The
演算処理部35は、この解析結果を得ると、これら有効エリア最小階級、有効エリア最大階級および有効エリア範囲を設定データの1つとして拡大処理部322へ出力してもよいが、本実施形態では、演算処理部35は、この解析結果を得ると、少なくとも有効エリア最大階級を設定データの1つとして拡大処理部322へ出力する。そして、演算処理部35は、この解析結果を得ると、この解析結果に基づいて、オフセット処理で用いるベースバイアス値を求め、この求めたベースバイアス値を設定データの1つとしてオフセット処理部324へ出力する。このベースオフセット値は、後述する。
When obtaining the analysis result, the
拡大処理部322は、ヒストグラム解析部321で生成したヒストグラムにおいて度数を持つ最大の階級(有効エリア最大階級)よりも大きな階級に所定の度数を与えることによって、ヒストグラム解析部321で生成したヒストグラムを階級方向に拡大するものである。より具体的には、拡大処理部322は、ヒストグラム解析部321で生成したヒストグラムにおいて度数を持つ最大の階級(演算処理部35から入力された有効エリア最大階級)が予め設定された所定の閾値より小さい場合に、前記所定の閾値を含む階級に、予め設定された度数(ダミー度数)を与えることによって、ヒストグラム解析部321で生成したヒストグラムを階級方向に拡大する。前記ダミー度数は、前記所定の閾値を含む階級に度数が存在すればよいので例えば1や2等の小さな数である。この拡大処理部322の処理によって、ヒストグラム解析部321で生成したヒストグラムの有効エリア範囲が階級方向に拡がって拡大される。拡大処理部322は、この拡大したヒストグラムをクリップ処理部323へ出力する。
The
前記所定の閾値は、ヒストグラムの度数が所定範囲の階級に偏っている場合に、オフセット処理部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
なお、上述では、ダミー度数は、前記所定の閾値を含む階級にのみ与えられたが、拡大処理部322は、ヒストグラム解析部321で生成したヒストグラムにおいて度数を持つ最大の階級が予め設定された所定の閾値より小さい場合に、ヒストグラム解析部321で生成したヒストグラムにおいて度数を持つ最大の階級より1つ大きい階級から、前記所定の閾値を含む階級までの各階級に、ダミー度数をそれぞれ与えてもよい。
In the above description, the dummy frequency is given only to the class including the predetermined threshold. However, the
クリップ処理部323は、拡大処理部322で処理されたヒストグラムに対し、度数を所定の制限値に制限するものである。より具体的には、クリップ処理部323は、階級の増加に従って単調に増加する関数によって各階級ごとに制限値をそれぞれ設定し、各階級について、当該階級の度数が当該階級の制限値を越えている場合には、当該階級の度数を当該階級の制限値に置き換える。前記関数は、例えば、階級の増加に従って指数関数的に単調に増加する関数等であり、階級をxとし、制限値をyとし、定数a>1とし、nを自然数とする場合に、y=axやy=x2nであってよい。クリップ処理部323は、このクリップ処理したヒストグラムをオフセット処理部324へ出力する。
The
オフセット処理部324は、クリップ処理部323で処理されたヒストグラムにおいて度数を持つ最小の階級から度数を持つ最大の階級までの各階級に対して、階級の増大に従って単調に増加する各階級のオフセット値をそれぞれ生成し、この生成した各階級のオフセット値を前記最小の階級から前記最大の階級までの各階級の度数にそれぞれ加算するものである。より具体的には、オフセット処理部324は、演算処理部35から入力されたベースバイアス値に、階級の増大に従って単調に増加するように予め階級ごとに設定された係数(オフセット係数)を乗算することによって、各階級のオフセット値をそれぞれ生成し、この生成した各階級のオフセット値を前記最小の階級から前記最大の階級までの各階級の度数にそれぞれ加算する。オフセット処理部324は、このオフセット処理したヒストグラムを累積ヒストグラム生成部325へ出力する。
The offset
ベースバイアス値は、例えば、ヒストグラム解析部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
各階級の前記オフセット係数および最大有効エリア番号とベースバイアス値との対応関係は、予め、複数のサンプル画像に対し試行することによって、階調の割り当てが全体により均一化され、ヒストグラムイコライゼーション法に特有なぎらぎら感を抑制することができるように、設定される。一例として、最大有効エリア番号とベースバイアス値との対応関係は、階級の増加に従って単調に減少するように設定される。 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
各階級のオフセット値は、階級の増大に従って単調に増加するように直接的にそれぞれ設定されてもよいが、本実施形態では、各階級のオフセット値は、上述のようにオフセット係数にベースバイアス値を乗算することによって設定されるので、入力画像のヒストグラムによってベースバイアス値を変更することができるため、デフォルトの各階級のオフセット値が同じでも、例えば夜景や暗闇等の入力画像の種類に応じて適宜にベースバイアス値を設定することによって、各階級のオフセット値を入力画像の種類に応じて適宜に設定することができる。このため、このようにオフセット係数にベースバイアス値を乗算することで各階級のオフセット値を設定することによって、本実施形態の撮像装置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
累積ヒストグラム生成部325は、オフセット処理部324で生成したオフセット値加算後のヒストグラムから累積ヒストグラムを生成するものである。この累積ヒストグラムは、累積ヒストグラムを作成する対象のヒストグラムに対し、各階級ごとに、当該階級までの全階級に含まれる各度数の総和を累積値として対応付けた統計グラフである。累積ヒストグラムでは、横軸は、階級であり、縦軸は、累積値となる。累積ヒストグラムMjは、ヒストグラムをmkとする場合に、Mj=Σmk(Σは、k=1〜jまでの和)と表すことができる。累積ヒストグラム生成部325は、この生成した累積ヒストグラムを正規化処理部326へ出力する。
The cumulative
正規化処理部326は、累積ヒストグラム生成部325で生成した累積ヒストグラムを圧縮画像の取り得る画素値の範囲に正規化することによって圧縮特性を生成するものである。すなわち、正規化した累積ヒストグラムが圧縮特性となる。圧縮画像の取り得る画素値の範囲は、圧縮画像が利用される装置、例えば、ディスプレイ装置、印刷装置および通信装置等に応じて決定される。例えば、圧縮画像の取り得る画素値の範囲は、圧縮画像がディスプレイ装置に表示される場合には、このディスプレイ装置のダイナミックレンジで決定される。正規化処理部326は、この生成した圧縮特性を圧縮画像生成部327へ出力する。
The
圧縮画像生成部327は、正規化処理部326で生成した圧縮特性を用いることによって、前記入力画像よりもダイナミックレンジの小さい圧縮画像を生成するものである。より具体的には、圧縮特性としての正規化後の累積ヒストグラムの横軸は、入力画像の画素値(例えば入力輝度値、元輝度値)であり、その縦軸は、ダイナミックレンジ圧縮後の画素値(例えば出力輝度値、圧縮輝度値)である。圧縮画像生成部327は、入力画像の各画素の画素値を前記圧縮特性で変換することによって圧縮後の画素値を求め、圧縮画像を生成する。圧縮画像生成部327は、圧縮画像を輝度色度処理部33へ出力する。
The compressed
次に、本実施形態の動作について説明する。図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
この画像処理部3の画像処理において、ダイナミックレンジ圧縮処理は、次のように行われる。図5において、センサ出力処理部31から信号が入力されると、ヒストグラム解析部321は、センサ出力処理部31で処理された処理結果を用いて、各画素の画素値のヒストグラムを生成し、さらに、この生成したヒストグラムを解析し、本実施形態では、この生成したヒストグラムにおける、度数を持つ最小の階級(有効エリア最小階級)および度数を持つ最大の階級(有効エリア最大階級)ならびに度数を持つ階級の範囲(有効エリア範囲)を検出する。そして、ヒストグラム解析部321は、この生成したヒストグラムを拡大処理部322へ出力し、解析結果の有効エリア最小階級および有効エリア最大階級ならびに有効エリア範囲を演算処理部35へ出力する(S1)。処理S1では、このようなヒストグラム生成処理およびヒストグラム解析処理が行われ、この生成されたヒストグラムは、拡大処理部322へ通知され、そして、解析結果は、演算処理部35へ通知される。
In the image processing of the
次に、処理S2において、ヒストグラム解析部321からヒストグラムが入力されると、拡大処理部322は、本実施形態では、拡大処理部322は、ヒストグラム解析部321で生成したヒストグラムにおいて度数を持つ最大の階級(演算処理部35から入力された有効エリア最大階級)と予め設定された所定の閾値とを比較し、両者の大小を判断する。この比較判断の結果、拡大処理部322は、前記最大階級(前記有効エリア最大階級)が前記所定の閾値より小さい場合には、前記所定の閾値を含む階級に、予め設定された度数(ダミー度数)を与えることによって、ヒストグラム解析部321で生成したヒストグラムを階級方向に拡大する。一方、前記比較判断の結果、拡大処理部322は、前記最大階級(前記有効エリア最大階級)が前記所定の閾値以上である場合には、拡大処理を行うことなく、ヒストグラムをそのまま据え置く。処理S2では、このような拡大処理が行われ、処理済みのヒストグラムは、クリップ処理部323へ通知される。をクリップ処理部323へ通知する。
Next, when a histogram is input from the
次に、処理S3において、拡大処理部322から処理済みのヒストグラムが入力されると、クリップ処理部323は、本実施形態では、拡大処理部322で処理されたヒストグラムに対し、各級ごとに、当該階級の度数と当該階級の制限値とを比較し、両者の大小を判断する。この比較判断の結果、クリップ処理部323は、当該階級の度数が当該階級の制限値を越えている場合には、当該階級の度数を当該階級の制限値に置き換える。一方、前記比較判断の結果、クリップ処理部323は、当該階級の度数が当該階級の制限値以下である場合には、当該階級の度数をそのまま据え置く。処理S3では、このようなクリップ処理が行われ、処理済みのヒストグラムは、オフセット処理部324へ通知される。
Next, when the processed histogram is input from the
次に、処理S4において、クリップ処理部323から処理済みのヒストグラムが入力されると、オフセット処理部324は、本実施形態では、クリップ処理部323で処理されたヒストグラムにおいて度数を持つ最小の階級から度数を持つ最大の階級までの各階級に対して、演算処理部35からのベースバイアス値に各階級のオフセット係数を乗算することによって各階級のオフセット値をそれぞれ生成し、この生成した各階級のオフセット値を前記最小の階級から前記最大の階級までの各階級の度数にそれぞれ加算する。処理S4では、このようなオフセット処理が行われ、処理済みのヒストグラムは、累積ヒストグラム生成部325へ通知される。
Next, in process S4, when the processed histogram is input from the
このような処理S2から処理S4の各処理と並行して演算処理部35は、ヒストグラム解析部321から入力された解析結果に基づいて、少なくとも有効エリア最大階級の情報を含む設定データを生成して拡大処理部322へ出力し、前記解析結果に基づいてベースバイアス値を生成して設定データとしてオフセット処理部324へ出力している。
In parallel with each processing from processing S2 to processing S4, the
次に、処理S5において、オフセット処理部324から処理済みのヒストグラムが入力されると、累積ヒストグラム生成部325は、オフセット処理部324で生成したオフセット値加算後のヒストグラムから累積ヒストグラムを生成する。処理S5では、このような累積ヒストグラム生成処理が行われ、この生成した累積ヒストグラムは、正規化処理部326へ通知される。
Next, in process S5, when a processed histogram is input from the offset
次に、処理S6において、累積ヒストグラム生成部325から累積ヒストグラムが入力されると、正規化処理部326は、累積ヒストグラム生成部325で生成した累積ヒストグラムを圧縮画像の取り得る画素値の範囲に正規化することによって圧縮特性を生成する。処理S6では、このような正規化処理が行われ、圧縮特性が生成され、この正規化された累積ヒストグラムは、圧縮特性として圧縮画像生成部327へ通知される。
Next, when a cumulative histogram is input from the cumulative
次に、処理S7において、正規化処理部326から圧縮特性が入力されると、圧縮画像生成部327は、正規化処理部326で生成した圧縮特性を用いることによって、前記入力画像よりもダイナミックレンジの小さい圧縮画像を生成する。処理S7では、このような圧縮画像生成処理が行われ、圧縮画像が生成され、この生成された圧縮画像は、DRC処理部32の出力として、輝度色度処理部33へ出力される。
Next, when the compression characteristic is input from the
このように本実施形態における撮像装置CAおよび画像処理部3は、オフセット処理部324を備え、入力画像に基づいたヒストグラムに、階級の増大に従って単調に増加するオフセット値を加算するオフセット処理を行って圧縮特性を生成する。このため、本実施形態における撮像装置CAおよび画像処理部3は、階調の割り当てが全体に亘って行われ、ヒストグラムイコライゼーション法に特有なぎらぎら感を抑制することができ、ダイナミックレンジをより適切に圧縮することができる。
As described above, the imaging apparatus CA and the
また、本実施形態における撮像装置CAおよび画像処理部3は、拡大処理部322を備え、入力画像に基づいたヒストグラムが偏っている場合に拡大処理部322によってこのヒストグラムを階級方向に拡大する。したがって、入力画像に基づいたヒストグラムにおいて度数を持つ最大の階級が拡大処理部322によってより大きな階級となり、もともと度数を持たなかった階級にもオフセット処理部324によって度数が与えられることになる。このため、本実施形態における撮像装置CAおよび画像処理部3は、度数が所定範囲の階級に集中して度数が偏って分布しているヒストグラムの場合でも、階調の割り当てがより広い範囲に亘って行われ、ヒストグラムイコライゼーション法に特有なぎらぎら感を抑制することができ、ダイナミックレンジをより適切に圧縮することができる。
In addition, the imaging apparatus CA and the
また、本実施形態における撮像装置CAおよび画像処理部3は、クリップ処理部323を備え、クリップ処理部323によって、入力画像に基づいたヒストグラムに対し、度数を所定の制限値に制限する。したがって、度数が偏って分布しているヒストグラムの場合でも、クリップ処理部323によって度数が所定の制限値に制限されるので、全体に対する度数の偏りの度合いが低減される。このため、本実施形態における撮像装置CAおよび画像処理部3は、階調の割り当てが全体により均一化され、ヒストグラムイコライゼーション法に特有なぎらぎら感を抑制することができ、ダイナミックレンジをより適切に圧縮することができる。
In addition, the imaging apparatus CA and the
また、本実施形態における撮像装置CAおよび画像処理部3では、クリップ処理の制限値が階級ごとに異なっている。このため、本実施形態における撮像装置CAおよび画像処理部3は、階級ごとに制限値を調整することが可能となるので、階調の割り当てを全体により均一化するように調整することができる。したがって、本実施形態における撮像装置CAおよび画像処理部3では、ヒストグラムイコライゼーション法に特有なぎらぎら感をより抑制することができ、ダイナミックレンジをより適切に圧縮することができる。
Further, in the imaging device CA and the
ここで、より具体的に本実施形態における撮像装置CAおよび画像処理部3の作用効果を説明するために、3種類の入力画像について、その圧縮特性の生成について以下に説明する。
Here, in order to describe the operation and effect of the imaging device CA and the
まず、第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
上記本実施形態の圧縮特性の比較例として、比較例の圧縮特性を説明する。この比較例の圧縮特性は、次のように、生成される。まず、入力画像のヒストグラムが生成され、次に、このヒストグラムに対し累積ヒストグラムが生成され、次に、この累積ヒストグラムが圧縮画像の取り得る画素値の範囲に正規化される。これによって、比較例の圧縮特性が生成される。 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
なお、上述では、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
また、上述の実施形態において、撮像装置CAおよび画像処理部3は、図2に破線で示すように、オフセット処理部324に、前記階級の増大に従って単調に増加する各階級のオフセット値を複数のパターンでそれぞれ生成させる複数パターン生成処理部3241をさらに備えてもよい。このように構成することによって、複数のパターンでオフセット処理された圧縮画像を生成することが可能となるので、1個の入力画像に対し各パターンのオフセット値による各圧縮特性で様々な圧縮画像を生成し、これら様々な圧縮画像の中から最適な圧縮画像を選択することが可能となる。
Further, in the above-described embodiment, the imaging device CA and the
本発明を表現するために、上述において図面を参照しながら実施形態を通して本発明を適切且つ十分に説明したが、当業者であれば上述の実施形態を変更および/または改良することは容易に為し得ることであると認識すべきである。したがって、当業者が実施する変更形態または改良形態が、請求の範囲に記載された請求項の権利範囲を離脱するレベルのものでない限り、当該変更形態または当該改良形態は、当該請求項の権利範囲に包括されると解釈される。 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 圧縮画像生成部
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.
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)
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)
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 |
-
2012
- 2012-11-12 JP JP2012248289A patent/JP2014096752A/en active Pending
Patent Citations (5)
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)
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 |