JP2003223636A - Image processor - Google Patents

Image processor

Info

Publication number
JP2003223636A
JP2003223636A JP2002022362A JP2002022362A JP2003223636A JP 2003223636 A JP2003223636 A JP 2003223636A JP 2002022362 A JP2002022362 A JP 2002022362A JP 2002022362 A JP2002022362 A JP 2002022362A JP 2003223636 A JP2003223636 A JP 2003223636A
Authority
JP
Japan
Prior art keywords
image
correction
histogram
coefficient
value
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
JP2002022362A
Other languages
Japanese (ja)
Inventor
Koji Ichikawa
幸治 市川
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.)
Fujifilm Holdings Corp
Original Assignee
Fuji Photo Film Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Photo Film Co Ltd filed Critical Fuji Photo Film Co Ltd
Priority to JP2002022362A priority Critical patent/JP2003223636A/en
Publication of JP2003223636A publication Critical patent/JP2003223636A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Picture Signal Circuits (AREA)
  • Closed-Circuit Television Systems (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processor capable of improving the tone of an image photographed under restricted exposure conditions according to utilizations and features of an image input device. <P>SOLUTION: A Y/C conversion part 18 converts R, G and B data of the inputted image into a brightness signal Y and chroma signals Cr and Cb. A Y histogram calculation part 20 produces a histogram of the brightness signal Y. A LUT (look-up table) calculation part 22 calculates a correction coefficient for flattening the histogram and calculates the LUT for correcting the brightness signal Y. The correction coefficient is adjusted by an intensity coefficient inputted from an intensity coefficient input part. The intensity coefficient is a coefficient for applying an inclination to the correction of the brightness signal Y and preset by the type, characteristics, an installation place, and the utilizations of the image input device 12. The intensity coefficient is set according to the system to be used so as to correct the tone according to the system. <P>COPYRIGHT: (C)2003,JPO

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は画像処理装置に係
り、特に、監視カメラ等で撮影された画像の階調補正を
行う画像処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus, and more particularly to an image processing apparatus for correcting gradation of an image taken by a surveillance camera or the like.

【0002】[0002]

【従来の技術及び発明が解決しようとする課題】従来よ
り、テレビカメラやモニタなどの画像信号のコントラス
トを変換して階調性を改善する技術が提案されている。
2. Description of the Related Art Conventionally, there has been proposed a technique for improving the gradation by converting the contrast of an image signal of a television camera, a monitor or the like.

【0003】例えば、特開平7−73308号公報に
は、入力データからヒストグラムを作成し、このヒスト
グラムを用いて入力データのコントラストを変換する補
間回路の出力と入力データとを所定の割合で加算平均す
ることにより、ヒストグラム頻度の少ない画像部分にお
いても、最適なコントラスト変換を行うことが可能な技
術が開示されている。
For example, in Japanese Patent Laid-Open No. 7-73308, a histogram is created from input data, and the output of an interpolation circuit for converting the contrast of the input data using this histogram and the input data are added and averaged at a predetermined ratio. By doing so, a technique capable of performing optimum contrast conversion even in an image portion having a low histogram frequency is disclosed.

【0004】ところで、銀行やスーパー等に設置される
監視カメラや、家の玄関先に設置されるドアホンカメラ
等の画像入力装置で撮影した画像をCRTやLCD等の
画像表示装置に表示させるシステムがある。
By the way, there is a system for displaying an image captured by an image input device such as a surveillance camera installed in a bank or a supermarket or an intercom camera installed at the entrance of a house on an image display device such as a CRT or LCD. is there.

【0005】上記のような画像入力装置は、設置位置が
固定されると共に、その機能の性質上、ストロボやライ
ト等による補助光を使用することができないため、絞
り、露光時間、感度等の露出条件に制約が生じ、設置位
置、撮影時間帯等によって被写体の明るさが大きく異な
る。このため、適正な明るさで撮影できない場合があ
る。
The image input device as described above has a fixed installation position and cannot use auxiliary light such as a strobe or a light due to the nature of its function. Therefore, the aperture, exposure time, sensitivity, etc. are exposed. The condition is restricted, and the brightness of the subject varies greatly depending on the installation position, shooting time zone, and the like. Therefore, it may not be possible to take an image with appropriate brightness.

【0006】このような画像入力装置で撮影された画像
を上記のような画像表示装置で表示させた場合、階調性
が悪く、画像が認識しづらい等の問題があった。また、
このような画像入力装置で撮影された画像を特開平7−
3308号公報で記載された技術でコントラスト変換を
行えば、ヒストグラム頻度の少ない画像部分において
も、良好な階調性を維持することが可能となるが、様々
な用途の画像入力装置に応じて画像全体の階調性を最適
に改善することはできない。
When an image photographed by such an image input device is displayed on the above-mentioned image display device, there are problems that the gradation is poor and the image is difficult to recognize. Also,
An image captured by such an image input device is disclosed in Japanese Patent Laid-Open No. 7-
If contrast conversion is performed by the technique described in Japanese Patent No. 3308, it is possible to maintain good gradation even in an image portion with a low histogram frequency. It is not possible to optimally improve the overall gradation.

【0007】本発明は、上記事実を考慮してなされたも
のであり、露出条件に制約がある条件下で撮影された画
像の階調性を画像入力装置の用途や性質等に応じて改善
することができる画像処理装置を提供することを目的と
する。
The present invention has been made in consideration of the above facts, and improves the gradation of an image taken under the condition that the exposure condition is restricted, depending on the use and the nature of the image input device. An object of the present invention is to provide an image processing device capable of performing the above.

【0008】[0008]

【課題を解決するための手段】上記目的を達成するため
に、請求項1記載の発明は、撮影画像の画像データから
前記撮影画像の各画素の輝度データを作成する作成手段
と、前記輝度データのヒストグラムを算出するヒストグ
ラム算出手段と、前記ヒストグラムに基づいて前記ヒス
トグラムが平坦化されるように前記輝度データの各々を
補正するための補正係数を各々算出する補正係数算出手
段と、前記輝度データの補正に傾向を付与するための強
度係数を入力する入力手段と、前記入力手段により入力
された強度係数により前記傾向が付与された補正係数に
基づいて、前記輝度データを変換する変換手段と、を備
えたことを特徴とする。
In order to achieve the above-mentioned object, the invention according to claim 1 is to create a luminance data of each pixel of the photographed image from image data of the photographed image, and the luminance data. Histogram calculating means for calculating the histogram, correction coefficient calculating means for calculating the correction coefficient for correcting each of the luminance data so that the histogram is flattened based on the histogram, Input means for inputting an intensity coefficient for giving a tendency to correction, and conversion means for converting the luminance data based on the correction coefficient to which the tendency is given by the intensity coefficient inputted by the input means. It is characterized by having.

【0009】この発明によれば、作成手段によって、撮
影画像の画像データから撮影画像の各画素の輝度データ
を作成し、ヒストグラム算出手段によって輝度データの
ヒストグラムを算出する。すなわち、輝度データの出現
頻度(累積画素数)が算出される。
According to the present invention, the creating means creates the brightness data of each pixel of the taken image from the image data of the taken image, and the histogram calculating means calculates the histogram of the brightness data. That is, the appearance frequency (cumulative number of pixels) of the brightness data is calculated.

【0010】そして、補正係数算出手段は、ヒストグラ
ム算出手段によって算出されたヒストグラムに基づい
て、ヒストグラムが平坦化されるように輝度データの各
々を補正するための補正係数を各々算出する。すなわ
ち、ヒストグラムの特定領域に極端なピークが存在する
場合には、このピーク付近の輝度データが周囲に分散さ
れるように補正係数が算出される。これにより、明るい
部分が暗くなるように、暗い部分が明るくなるように輝
度データを補正することが可能となる。
Then, the correction coefficient calculating means calculates, based on the histogram calculated by the histogram calculating means, a correction coefficient for correcting each of the luminance data so that the histogram is flattened. That is, when an extreme peak exists in the specific area of the histogram, the correction coefficient is calculated so that the brightness data near this peak is dispersed around. This makes it possible to correct the brightness data so that the bright part becomes dark and the dark part becomes bright.

【0011】変換手段は、入力手段によって入力された
輝度データの補正に傾向を付与するための強度係数によ
り、補正係数を調整し、調整された補正係数に基づい
て、輝度データを変換する。この強度係数は、撮影画像
を撮影した画像入力装置の種類や特性、設置場所、撮影
画像の用途等に応じて予め定められ、入力するようにし
てもよいし、予めメモリに記憶されていてもよい。
The conversion means adjusts the correction coefficient with an intensity coefficient for giving a tendency to the correction of the brightness data input by the input means, and converts the brightness data based on the adjusted correction coefficient. This intensity coefficient may be predetermined and input according to the type and characteristics of the image input device that captured the captured image, the installation location, the application of the captured image, or may be stored in advance in the memory. Good.

【0012】このように、入力される強度係数により輝
度データの補正、すなわち階調補正に傾向を付与するこ
とができるため、システムに応じて強度係数を設定する
ことにより、システムに応じた最適な階調補正を行うこ
とができる。
As described above, since it is possible to give a tendency to the correction of the brightness data, that is, the gradation correction by the input intensity coefficient, by setting the intensity coefficient according to the system, the optimum intensity according to the system can be obtained. Gradation correction can be performed.

【0013】なお、請求項2に記載したように、前記強
度係数は、前記輝度データが高くなるように補正するた
めの補正係数に傾向を付与する第1の強度係数及び前記
輝度データが低くなるように補正するための補正係数に
傾向を付与する第2の強度係数とから成るようにしても
よい。これにより、輝度データを高くするための補正、
すなわち画像を明るくするための補正と、輝度データを
低くするための補正、すなわち、画像を暗くするための
補正とについて、それぞれ独立に傾向を付与することが
できるため、より最適にシステムに応じた階調補正を行
うことができる。
As described in claim 2, the intensity coefficient is low and the first intensity coefficient that gives a tendency to a correction coefficient for correcting the brightness data to be high and the brightness data are low. The correction coefficient for the correction may be composed of a second intensity coefficient that gives a tendency. As a result, correction to increase the brightness data,
That is, the correction for making the image brighter and the correction for making the luminance data lower, that is, the correction for making the image darker can be independently imparted, so that the system can be optimized more optimally. Gradation correction can be performed.

【0014】ところで、撮影画像にある所定以上の面積
を有するベタ背景(例えば青空等)が存在する場合、輝
度データが予め定めた所定頻度以上となり、補正後の画
像にノイズが浮き出てしまう場合がある。そこで、請求
項3に記載したように、前記ヒストグラムについて、予
め定めた所定頻度以上の輝度データの頻度を低減する低
減手段をさらに備え、前記補正係数算出手段は、前記低
減手段による低減後のヒストグラムに基づいて前記補正
係数を各々算出するようにしてもよい。
By the way, when there is a solid background (for example, blue sky) having a predetermined area or more in the photographed image, the luminance data becomes more than a predetermined frequency and noise may appear in the corrected image. is there. Therefore, as described in claim 3, the histogram further includes a reduction unit that reduces the frequency of the luminance data of a predetermined frequency or more, and the correction coefficient calculation unit includes the histogram after the reduction by the reduction unit. The correction coefficients may be calculated based on the above.

【0015】これにより、撮影画像にある所定以上の面
積を有するベタ背景が存在する場合でも、補正後のベタ
背景にノイズが浮き出てしまうのを防ぐことができる。
This makes it possible to prevent noise from appearing in the corrected solid background even when there is a solid background having a predetermined area or more in the captured image.

【0016】また、ヒストグラム算出手段は、撮影画像
を複数のエリアに分割し、分割したエリア毎に予め定め
た重みを対応する輝度データに付与し、重みが付与され
た輝度データに基づいてヒストグラムを算出するように
してもよい。例えば、被写体が撮影画像の中心にいる確
率が高いような場合には、撮影画像の中心部の重みを大
きくし、周辺部の重みを小さくする。これにより、より
適正に階調補正を行うことができる。
The histogram calculating means divides the photographed image into a plurality of areas, assigns a predetermined weight to each of the divided areas to the corresponding brightness data, and creates a histogram based on the weighted brightness data. It may be calculated. For example, when the probability that the subject is at the center of the captured image is high, the weight of the central portion of the captured image is increased and the weight of the peripheral portion is reduced. Thereby, the gradation correction can be performed more appropriately.

【0017】また、前記傾向が付与された補正係数に基
づいて、補正の度合いを示す特徴量を算出する特徴量算
出手段と、特徴量に応じて変換された輝度データについ
てノイズ除去処理を行うノイズ除去手段と、をさらに備
えた構成としてもよい。
Further, a characteristic amount calculating means for calculating a characteristic amount indicating a degree of correction based on the correction coefficient to which the tendency is given, and noise for performing noise removal processing on the luminance data converted according to the characteristic amount. The removing means may be further provided.

【0018】例えば、補正の傾向が明るくする方向に強
い場合には、補正後の画像にノイズが発生していまう場
合がある。そこで、特徴量を、画像を明るくする補正の
度合いと補正後の画像に発生するノイズとの相対関係を
表す物理量として定める。そして、例えば明るくする補
正の度合いと画像を暗くする補正の度合いとの差分を特
徴量として算出し、この特徴量が大きくなるに従って、
ノイズ除去の強度を高くする。これにより、補正による
画像の劣化を防ぐことができる。
For example, if the correction tendency is strong in the direction of making bright, noise may occur in the corrected image. Therefore, the feature amount is defined as a physical amount that represents the relative relationship between the degree of correction that brightens the image and the noise that occurs in the corrected image. Then, for example, the difference between the degree of correction for making the image brighter and the degree of correction for making the image darker is calculated as a feature amount, and as the feature amount becomes larger,
Increase the strength of noise removal. As a result, it is possible to prevent the deterioration of the image due to the correction.

【0019】また、前記画像データから前記撮影画像の
彩度に関するクロマ信号を作成するクロマ信号作成手段
と、作成したクロマ信号からクロマ累積ヒストグラムを
算出する累積ヒストグラム算出手段と、算出した累積ヒ
ストグラムから前記クロマ信号を補正するための補正値
を算出する補正値算出手段と、算出された補正値により
前記クロマ信号を補正する補正手段と、をさらに備えた
構成としてもよい。
Further, a chroma signal generating means for generating a chroma signal relating to the saturation of the photographed image from the image data, a cumulative histogram calculating means for calculating a chroma cumulative histogram from the generated chroma signal, and a cumulative histogram calculating means for calculating the chroma cumulative histogram. The configuration may further include a correction value calculation unit that calculates a correction value for correcting the chroma signal, and a correction unit that corrects the chroma signal based on the calculated correction value.

【0020】例えば、補正値算出手段は、算出した累積
ヒストグラムにより、予め定めた彩度以上であるか否か
を判断し、予め定めた彩度以上の場合に、クロマ信号が
小さくなるように補正値を算出する。そして、算出され
た補正値によりクロマ信号が補正手段により補正され
る。これにより、撮影画像の彩度を補正することができ
る。
For example, the correction value calculating means judges from the calculated cumulative histogram whether or not the saturation is equal to or higher than a predetermined saturation, and when the saturation is equal to or higher than the predetermined saturation, the correction is performed so that the chroma signal becomes small. Calculate the value. Then, the chroma signal is corrected by the correction means based on the calculated correction value. As a result, the saturation of the captured image can be corrected.

【0021】[0021]

【発明の実施の形態】以下、図面を参照して本発明の実
施の形態の一例について詳細に説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, an example of an embodiment of the present invention will be described in detail with reference to the drawings.

【0022】図1には、画像処理システム10の概略ブ
ロック図を示した。画像処理システム10は、画像入力
装置12、画像処理装置14、及び画像出力装置16で
構成されている。
FIG. 1 shows a schematic block diagram of the image processing system 10. The image processing system 10 includes an image input device 12, an image processing device 14, and an image output device 16.

【0023】画像入力装置12は、例えば監視カメラや
ドアホンカメラ等、その機能や用途の性質上、ストロボ
やライト等による補助光を使用することができない装置
が用いられる。
The image input device 12 is, for example, a device such as a surveillance camera or a doorphone camera that cannot use auxiliary light such as a strobe or a light due to the nature of its function and application.

【0024】画像入力装置12は、図示は省略したが、
例えばレンズ、撮像素子としてのCCD、該CCDを駆
動するための駆動回路などを含んで構成される。レンズ
を介してCCDの受光面に結像された被写体像は、各セ
ンサで光の入射光量に応じた量の信号電荷に変換され、
該信号電荷に応じたR、G、Bの各データが画像データ
として画像処理装置14へ出力される。
Although illustration of the image input device 12 is omitted,
For example, it is configured to include a lens, a CCD as an image pickup element, a drive circuit for driving the CCD, and the like. The subject image formed on the light receiving surface of the CCD through the lens is converted by each sensor into a signal charge of an amount corresponding to the incident light amount of light,
The R, G, and B data corresponding to the signal charges are output to the image processing device 14 as image data.

【0025】画像処理装置14では、入力された各画素
のR,G,Bデータに基づいて階調補正やノイズ除去、
色差ゲインの補正などの処理を行い、例えばCRTやL
CD等の画像出力装置16へ出力する。
In the image processing device 14, gradation correction and noise removal based on the input R, G and B data of each pixel,
Perform processing such as color difference gain correction, for example, CRT or L
The image is output to the image output device 16 such as a CD.

【0026】画像処理装置14は、Y/C変換部18、
Yヒストグラム算出部20、LUT算出部22、強度係
数入力部23、LUT変換部24、特徴量算出部26,
ノイズ除去フィルタ28、クロマ変換部30、クロマ累
積ヒストグラム算出部32、クロマ補正値算出部34、
色差ゲイン処理部36、及びRGB変換部38により構
成されている。
The image processing device 14 includes a Y / C converter 18,
Y histogram calculation unit 20, LUT calculation unit 22, intensity coefficient input unit 23, LUT conversion unit 24, feature amount calculation unit 26,
Noise removal filter 28, chroma conversion unit 30, chroma cumulative histogram calculation unit 32, chroma correction value calculation unit 34,
The color difference gain processing unit 36 and the RGB conversion unit 38 are included.

【0027】Y/C変換部18は、画像入力装置12か
ら出力された各画素のR,G,Bデータを各画素の輝度
信号Y、及びクロマ信号Cr、Cbに変換する。変換さ
れた輝度信号Yは、Yヒストグラム算出部20及びLU
T変換部24へ出力され、クロマ信号Cr,Cbは、ク
ロマ変換部30及び色差ゲイン処理部36へ出力され
る。
The Y / C converter 18 converts the R, G, B data of each pixel output from the image input device 12 into a luminance signal Y of each pixel and chroma signals Cr, Cb. The converted luminance signal Y is stored in the Y histogram calculation unit 20 and the LU.
The chroma signals Cr and Cb output to the T conversion unit 24 are output to the chroma conversion unit 30 and the color difference gain processing unit 36.

【0028】まず、輝度信号Yに基づく処理について説
明する。
First, the processing based on the luminance signal Y will be described.

【0029】Yヒストグラム算出部20は、Y/C変換
部18から出力された各画素の輝度信号Yのヒストグラ
ムを作成する。すなわち、Yヒストグラム算出部20
は、各画素の輝度信号(階調値)Yから、各階調値i
(=0,1,2,…,N−1:Nは階調数)の頻度(累
積画素数)を算出する。なお、本実施の形態では、階調
数Nが256とし、階調値iが0〜255までのそれぞ
れについて頻度を算出する。
The Y histogram calculation unit 20 creates a histogram of the luminance signal Y of each pixel output from the Y / C conversion unit 18. That is, the Y histogram calculation unit 20
Is the gradation value i from the luminance signal (gradation value) Y of each pixel.
The frequency (cumulative number of pixels) of (= 0, 1, 2, ..., N-1: N is the number of gradations) is calculated. In this embodiment, the number of gradations N is 256, and the frequency is calculated for each of the gradation values i of 0 to 255.

【0030】LUT算出部22では、Yヒストグラム算
出部20によって算出された各階調値iの頻度に基づい
て、入力階調値Yを出力階調値T(Y)に変換するため
のLUT(ルックアップテーブル)を算出する。具体的
には、まず次式によって階調値iを補正するための補正
係数BAI(i)をi=0〜255までの各々について
算出する。
The LUT calculation unit 22 converts the input gradation value Y into the output gradation value T (Y) based on the frequency of each gradation value i calculated by the Y histogram calculation unit 20. Up table). Specifically, first, a correction coefficient BAI (i) for correcting the gradation value i is calculated by the following equation for each of i = 0 to 255.

【0031】[0031]

【数1】 [Equation 1]

【0032】但し、D(i)は、各画素の入力階調値Y
から算出した階調値iの頻度である。Upperは、階
調値iが0から予め定めた所定閾値Uppまでの各頻度
の累積値であり、Lowerは、階調値iが0から予め
定めた所定閾値Lowまでの各頻度の累積値である。な
お、所定閾値Uppは基本的にはN−1(この場合は2
55)、所定閾値Lowは0である。また、BAI
(i)<0の場合には、強制的にBAI(i)=0とす
る。
However, D (i) is the input gradation value Y of each pixel
Is the frequency of the gradation value i calculated from Upper is a cumulative value of each frequency from the gradation value i to 0 and a predetermined threshold value Upp, and Lower is a cumulative value of each frequency from the gradation value i to 0 and a predetermined threshold value Low. is there. The predetermined threshold value Upp is basically N-1 (in this case, 2).
55), the predetermined threshold Low is 0. Also, BAI
When (i) <0, BAI (i) = 0 is forcibly set.

【0033】上記(1)式により算出された補正係数B
AI(i)は、当該補正係数BAI(i)で入力階調値
Yを補正した場合に、入力階調値Yのヒストグラムが平
坦化されるように補正する機能を有する。例えば、図2
の実線で示す補正前のヒストグラムのように、暗い部分
の頻度と明るい部分の頻度とが極端に異なるヒストグラ
ムは、補正係数BAI(i)により補正した場合には、
図2の点線で示す補正後のヒストグラムのように、暗い
部分及び明るい部分がそれぞれ平坦化されたヒストグラ
ムとなる。
Correction coefficient B calculated by the above equation (1)
AI (i) has a function of correcting the input gradation value Y so that the histogram of the input gradation value Y is flattened when the input gradation value Y is corrected by the correction coefficient BAI (i). For example, in FIG.
When a histogram in which the frequency of the dark portion and the frequency of the bright portion are extremely different, such as the histogram before correction shown by the solid line of, is corrected by the correction coefficient BAI (i),
Like the corrected histogram shown by the dotted line in FIG. 2, the dark portion and the bright portion are flattened histograms.

【0034】次に、上記(1)式により算出された補正
係数BAI(i)を次式により調整する。
Next, the correction coefficient BAI (i) calculated by the above equation (1) is adjusted by the following equation.

【0035】 BAI’(i)=BAI(i)KO (BAI(i)≧1.0) …(2) BAI’(i)=BAI(i)KU (BAI(i)<1.0) …(3) ここで、KOは、BAI(i)が1以上の場合、すなわ
ち、入力階調値Yが高くなるように補正するための補正
係数の場合に、その補正に傾向を付与するための強度係
数、すなわち補正強度を調整するための強度係数であ
り、KUは、BAI(i)が1未満の場合、すなわち、
入力階調値Yが低くなるように補正するための補正係数
の場合に、その補正強度を調整するための強度係数であ
る。
BAI ′ (i) = BAI (i) KO (BAI (i) ≧ 1.0) (2) BAI ′ (i) = BAI (i) KU (BAI (i) <1.0) (3) Here, KO is for giving a tendency to the correction when BAI (i) is 1 or more, that is, in the case of a correction coefficient for correcting the input gradation value Y to be high. Intensity coefficient, that is, an intensity coefficient for adjusting the correction intensity, and KU is when BAI (i) is less than 1, that is,
In the case of a correction coefficient for correcting the input gradation value Y to be low, it is an intensity coefficient for adjusting the correction strength.

【0036】従って、KOの値が大きくなるに従って、
入力階調値Yが高くなるように補正される度合いが大き
くなり、KUの値が大きくなるに従って、入力階調値Y
が低くなるように補正される度合いが大きくなる。すな
わち、KO>KUとなるように設定することにより、暗
めの画像が明るめの画像になるように補正され、KO<
KUとなるように設定することにより、明るめの画像が
暗めの画像になるように補正される。なお、KO=KU
=0の場合は、無補正となり、KO=KU=1の場合
は、補正強度が調整されず、BAI(i)による補正と
なる。
Therefore, as the value of KO increases,
As the input gradation value Y is corrected to a higher degree and the value of KU increases, the input gradation value Y increases.
The degree to which the correction is made to be low becomes large. That is, by setting so that KO> KU, the dark image is corrected to become a bright image, and KO <
By setting KU, a bright image is corrected to a dark image. In addition, KO = KU
In the case of = 0, no correction is made, and in the case of KO = KU = 1, the correction intensity is not adjusted and the correction is made by BAI (i).

【0037】また、強度係数KO,KUは、強度係数入
力部23から入力することができ、画像処理システム1
0が使用されるシステムの用途等に応じて設定される。
すなわち、暗めの画像が明るめの画像になるように補正
することに重点をおく場合には、KO>KUとなるよう
に設定し、明るめの画像が暗めの画像になるように補正
することに重点をおく場合には、KO<KUとなるよう
に設定する。なお、強度係数KO,KUは、手動で入力
してもよいし、強度係数KO,KUを予めメモリに記憶
しておき、読み出してもよい。また、強度係数KO,K
Uを書き換え可能なメモリに記憶しておき、適用するシ
ステムに応じて書き換えられるようにしてもよい。
The intensity coefficients KO and KU can be input from the intensity coefficient input section 23, and the image processing system 1
0 is set according to the application of the system in which it is used.
That is, when the emphasis is placed on the correction so that the dark image becomes a bright image, the setting is made such that KO> KU, and the correction is made so that the bright image becomes a dark image. If it is set, KO <KU is set. The strength coefficients KO and KU may be manually input, or the strength coefficients KO and KU may be stored in a memory in advance and read. In addition, strength coefficient KO, K
U may be stored in a rewritable memory so that it can be rewritten according to the applied system.

【0038】このように、入力階調値Yが高くなるよう
に(明るくなるように)補正される度合いと、入力階調
値Yが低くなるように(暗くなるように)補正される度
合いとの両方を独立して調整することができるため、使
用されるシステムに応じて最適な階調補正を行うことが
できる。
As described above, the degree to which the input gradation value Y is corrected to be higher (brighter) and the degree to which the input gradation value Y is corrected to be lower (darker) are set. Since both can be adjusted independently, it is possible to perform optimum gradation correction according to the system used.

【0039】次に、上記(2)式又は(3)式により算
出された調整後の補正係数BAI’を用いて、階調値i
に対応する階調値T(i)を算出する。
Next, using the corrected correction coefficient BAI 'calculated by the above equation (2) or equation (3), the gradation value i
The gradation value T (i) corresponding to is calculated.

【0040】 T(i)=i×BAI’(i) …(4) 上記(4)式の計算を全ての階調値iについて行うこと
により、階調値iと階調値T(i)との対応関係を表す
LUTを求めることができる。なお、T(i)>N−1
の場合は、強制的にT(i)=N−1とする。
T (i) = i × BAI ′ (i) (4) The gradation value i and the gradation value T (i) are calculated by performing the calculation of the equation (4) for all gradation values i. It is possible to obtain an LUT that represents the correspondence relationship with. Note that T (i)> N-1
In the case of, T (i) = N-1 is forcibly set.

【0041】LUT変換部24では、Y/C変換部18
から出力された各画素の入力階調値Yを、LUT算出部
22で算出されたLUTにより、出力階調値T(Y)に
変換する。LUT変換部24で変換された出力階調値T
(Y)は、特徴量算出部26及びノイズ除去フィルタ2
8へ出力される。
In the LUT conversion unit 24, the Y / C conversion unit 18
The input grayscale value Y of each pixel output from is converted into the output grayscale value T (Y) by the LUT calculated by the LUT calculation unit 22. Output gradation value T converted by the LUT conversion unit 24
(Y) is the feature amount calculation unit 26 and the noise removal filter 2
8 is output.

【0042】このようなLUTの一例を図3に示す。図
3に示すLUTは、例えば図2の実線で示すような暗い
部分の頻度と明るい部分の頻度とが極端に異なるヒスト
グラムについて算出したLUTである。このようなLU
Tによって入力階調値Yを補正することにより、図2の
点線で示す補正後のヒストグラムのように、暗い部分及
び明るい部分がそれぞれ平坦化されたヒストグラムとな
る。
An example of such an LUT is shown in FIG. The LUT shown in FIG. 3 is an LUT calculated for a histogram in which the frequency of dark portions and the frequency of bright portions are extremely different as shown by the solid line in FIG. LU like this
By correcting the input gradation value Y with T, a dark part and a bright part are each flattened like the corrected histogram shown by the dotted line in FIG.

【0043】また、KO=KU=0の場合は、上記
(2)、(3)式より、BAI’(i)=1となるため
無補正であり、KO又はKUの値が大きくなるに従っ
て、補正の度合いが大きくなっているのが判る。このた
め、暗めの画像が明るめの画像になるように補正するこ
とに重点をおく場合には、KO>KUとなるように設定
し、明るめの画像が暗めの画像になるように補正するこ
とに重点をおく場合には、KO<KUとなるように設定
することにより、システムに応じて最適な階調補正を行
うことができる。
When KO = KU = 0, BAI '(i) = 1 from the above equations (2) and (3), so there is no correction, and as the value of KO or KU increases, It can be seen that the degree of correction is large. Therefore, if it is important to correct the dark image to be a bright image, it is necessary to set KO> KU so that the bright image is a dark image. When giving priority, by setting so that KO <KU, optimum gradation correction can be performed according to the system.

【0044】また、前述したように、所定閾値Uppは
基本的にはN−1(この場合は255)、所定閾値Lo
wは0であり、この場合は、図4の2点鎖線で示すよう
に、0〜255の全ての入力階調値Yが補正されるが、
システムによっては、所定閾値以上の階調値又は所定閾
値以下の階調値については、略同一の値に変換されるよ
うにしたい場合がある。この場合は、所定閾値Uppを
(N−1)以下の値にし、所定閾値Lowを0よりも大
きい値にすればよい。これにより、図4の実線で示すよ
うに、所定閾値Upp以上の入力階調値又は所定閾値L
ow以下の入力階調値を略同一の値に補正することがで
きる。
Further, as described above, the predetermined threshold value Upp is basically N-1 (255 in this case), and the predetermined threshold value Lo.
w is 0. In this case, as shown by the chain double-dashed line in FIG. 4, all input gradation values Y of 0 to 255 are corrected,
Depending on the system, there are cases where it is desired to convert gradation values above a predetermined threshold value or gradation values below a predetermined threshold value into substantially the same value. In this case, the predetermined threshold value Upp may be set to a value of (N-1) or less and the predetermined threshold value Low may be set to a value larger than 0. As a result, as shown by the solid line in FIG. 4, the input gradation value equal to or greater than the predetermined threshold Upp or the predetermined threshold L
It is possible to correct input grayscale values equal to or less than ow to substantially the same value.

【0045】なお、Yヒストグラム算出部20において
ヒストグラムを算出する際に、撮影された画像を複数の
エリアに分割し、分割した各エリア毎に使用されるシス
テムに応じて予め定められた重みを入力階調値Yに乗算
し、重みが乗算された入力階調値Yについてヒストグラ
ムを算出するようにしてもよい。
When the Y histogram calculation unit 20 calculates a histogram, the photographed image is divided into a plurality of areas, and a weight predetermined according to the system used for each divided area is input. The gradation value Y may be multiplied and a histogram may be calculated for the input gradation value Y multiplied by the weight.

【0046】例えば、画像入力装置12がドアホンカメ
ラや携帯電話に内蔵されたデジタルカメラ等のように、
主要被写体が画面の中心にある確率が高い。このような
場合には、画像の中心部の重みを大きくし、画面の周辺
部の重みを小さくする。これにより、システムに応じて
階調補正を適正に行うことができる。
For example, when the image input device 12 is a doorphone camera or a digital camera built in a mobile phone,
There is a high probability that the main subject is in the center of the screen. In such a case, the weight of the central portion of the image is increased and the weight of the peripheral portion of the screen is reduced. As a result, gradation correction can be properly performed according to the system.

【0047】また、撮影された画像に、所定以上の面積
を有するベタ背景(例えば青空等)が存在する場合、図
5に示すように、ベタ背景付近の階調値の頻度が極端に
高くなる。このような特性の画像に対してLUTを算出
すると、図6に示すように、ベタ背景付近の傾きが急峻
になり、ベタ背景付近の階調値iに対する出力階調値T
(i)の変動が大きくなり、補正後の画像のベタ背景付
近にノイズが浮き出てしまう場合がある。
Further, when the photographed image has a solid background (for example, blue sky) having an area equal to or larger than a predetermined area, the frequency of gradation values near the solid background becomes extremely high as shown in FIG. . When the LUT is calculated for an image having such characteristics, the inclination near the solid background becomes steep as shown in FIG. 6, and the output gradation value T with respect to the gradation value i near the solid background.
The variation in (i) may be large, and noise may appear near the solid background of the corrected image.

【0048】そこで、Yヒストグラム算出部20におい
てヒストグラムを算出する際に、予め定めた所定閾値以
上の頻度を有する階調値iの頻度を低減するようにして
もよい。例えば、所定閾値以上の頻度を有する階調値i
の頻度から予め定めた所定値を減算したり、0にしたり
する。これにより、補正後の画像のベタ背景付近にノイ
ズが浮き出てしまうのを防ぐことができる。
Therefore, when calculating the histogram in the Y-histogram calculating section 20, the frequency of the gradation value i having a frequency equal to or higher than a predetermined threshold value may be reduced. For example, a gradation value i having a frequency equal to or higher than a predetermined threshold value
A predetermined value is subtracted from the frequency of, or set to 0. As a result, it is possible to prevent noise from appearing near the solid background of the corrected image.

【0049】特徴量算出部26では、LUT算出部22
で算出したLUTに基づいて、入力画像を明るくする補
正の度合いと補正後の画像に発生するノイズとの相対関
係を表す物理量である特徴量を算出する。具体的には、
例えば図7の点線で示すように、階調値iと階調値T
(i)とが同一の値となる線と、実線(曲線)で示す階
調値iと階調値T(i)との関係を示す線とにより閉じ
られた領域で、かつ前記点線よりも上側に形成される領
域Aの面積、すなわち階調値iを上げる(明るくする)
補正の度合いと、前記点線よりも下側に形成される領域
Bの面積、すなわち階調値iを下げる(暗くする)補正
の度合いとの差分(A−B)を算出し、これを特徴量F
とする。
In the feature quantity calculation unit 26, the LUT calculation unit 22
On the basis of the LUT calculated in step 1, the characteristic amount, which is a physical amount indicating the relative relationship between the degree of correction for brightening the input image and the noise generated in the corrected image, is calculated. In particular,
For example, as indicated by the dotted line in FIG. 7, the gradation value i and the gradation value T
An area closed by a line having the same value as (i) and a line showing the relationship between the gradation value i and the gradation value T (i) shown by a solid line (curve), and more than the dotted line. The area of the region A formed on the upper side, that is, the gradation value i is increased (brightened)
The difference (AB) between the degree of correction and the area of the region B formed below the dotted line, that is, the degree of correction that lowers (darkens) the gradation value i, is calculated, and this is used as the feature amount. F
And

【0050】この特徴量Fは、ノイズ除去フィルタ28
へ出力される。ノイズ除去フィルタ28は、例えばロー
パスフィルタ等を含んで構成され、特徴量算出部26か
ら出力された特徴量Fに応じてLUT変換部24から出
力された階調値T(Y)に対してノイズ除去処理を行
い、階調値T’(Y)としてRGB変換部38へ出力す
る。 具体的には、例えば、特徴量Fが大きい場合、す
なわち、領域Aの面積が領域Bの面積よりも大きい場合
には、明るく補正される度合いが強くなり、ノイズが発
生する度合いが強くなるため、ノイズ除去処理の強度を
大きくする。一方、特徴量Fが小さい場合、すなわち、
領域Aの面積が領域Bの面積と同じような場合には、ノ
イズ除去処理の強度を低くしたり、ノイズ除去処理をせ
ずにRGB変換部38へ出力する。このように、補正の
度合い(傾向)に応じてノイズ除去の強度を変えること
ができるため、補正の度合いに応じて最適にノイズ除去
を行うことができる。
This feature amount F is the noise removal filter 28.
Is output to. The noise removal filter 28 is configured to include, for example, a low-pass filter and the like, and noise is generated with respect to the gradation value T (Y) output from the LUT conversion unit 24 according to the feature amount F output from the feature amount calculation unit 26. The removal processing is performed and the gradation value T ′ (Y) is output to the RGB conversion unit 38. Specifically, for example, when the feature amount F is large, that is, when the area of the region A is larger than the area of the region B, the degree of bright correction is increased and the degree of noise is increased. , Increase the intensity of noise removal processing. On the other hand, when the feature amount F is small, that is,
When the area of the area A is the same as the area of the area B, the intensity of the noise removal processing is reduced, or the noise removal processing is not performed and output to the RGB conversion unit 38. In this way, since the intensity of noise removal can be changed according to the degree (trend) of correction, it is possible to optimally remove noise according to the degree of correction.

【0051】次に、クロマ信号Cr,Cbに基づく処理
について説明する。
Next, the processing based on the chroma signals Cr and Cb will be described.

【0052】クロマ変換部30では、各画素のクロマ信
号Cr,Cbに基づいて、各画素の彩度に関するクロマ
値Cをそれぞれ算出してクロマ累積ヒストグラム算出部
32へ出力する。クロマ値Cは、次式により求めること
ができる。
The chroma conversion section 30 calculates the chroma value C relating to the saturation of each pixel based on the chroma signals Cr and Cb of each pixel and outputs it to the chroma cumulative histogram calculation section 32. The chroma value C can be obtained by the following equation.

【0053】[0053]

【数2】 [Equation 2]

【0054】クロマ累積ヒストグラム算出部32では、
各画素のクロマ値Cからクロマ値の累積ヒストグラムを
算出してクロマ補正値算出部34へ出力する。図8に
は、累積ヒストグラムの一例を示した。図8において実
線で示す累積ヒストグラムは、図9の実線で示すような
高彩度の画像の累積ヒストグラムであり、図8において
点線で示すヒストグラムは、図9の点線で示すような低
彩度の画像の累積ヒストグラムである。
In the chroma cumulative histogram calculation section 32,
A cumulative histogram of the chroma values is calculated from the chroma value C of each pixel and output to the chroma correction value calculation unit 34. FIG. 8 shows an example of the cumulative histogram. The cumulative histogram shown by the solid line in FIG. 8 is a cumulative histogram of an image with high saturation as shown by the solid line in FIG. 9, and the histogram shown by the dotted line in FIG. 8 is that of the image with low saturation as shown by the dotted line in FIG. It is a cumulative histogram.

【0055】クロマ補正値算出部34では、クロマ累積
ヒストグラム算出部32で算出されたクロマ累積ヒスト
グラムに基づいて、クロマ信号Cr,Cbを補正するた
めの補正値Gを算出して色差ゲイン処理部36へ出力す
る。具体的には、例えばクロマ値Cの累積頻度が予め定
めた所定閾値THr(例えば95%)以上となるクロマ
値Ctを求める。図8の点線で示す累積ヒストグラムの
場合は、Ct=C1であり、図8の実線で示す累積ヒス
トグラムの場合は、Ct=C2である。そして、このク
ロマ値Ctが、画像が所定以上の高彩度であるか否かを
判断するための予め定めた所定閾値THc以上の場合に
は、画像が高彩度の傾向が強いと判断し、色差ゲインを
抑えるための補正値Gを算出して、色差ゲイン処理部3
6へ出力する。
The chroma correction value calculation unit 34 calculates a correction value G for correcting the chroma signals Cr and Cb based on the chroma cumulative histogram calculated by the chroma cumulative histogram calculation unit 32, and the color difference gain processing unit 36. Output to. Specifically, for example, the chroma value Ct at which the cumulative frequency of the chroma value C becomes equal to or higher than a predetermined threshold THr (95%, for example) is determined. In the case of the cumulative histogram shown by the dotted line in FIG. 8, Ct = C1, and in the case of the cumulative histogram shown by the solid line in FIG. 8, Ct = C2. When the chroma value Ct is equal to or higher than a predetermined threshold THc for determining whether or not the image has high saturation of a predetermined value or more, it is determined that the image has a strong tendency of high saturation, and the color difference gain is set. A correction value G for suppressing is calculated, and the color difference gain processing unit 3
Output to 6.

【0056】なお、クロマ値Ctが、画像が所定以下の
低彩度であるか否かを判断するための所定閾値Ct2
設定し、CtがCt2以下か否かを判断し、該所定閾値
以下の場合に、画像が低彩度の傾向が強いと判断し、色
差ゲインを上げるための補正値Gを算出して、色差ゲイ
ン処理部36へ出力するようにしてもよい。また、彩度
を調整するための予め定めた所定式によりクロマ値Ct
に応じた補正値Gが算出されるようにしてもよい。
A predetermined threshold value Ct 2 for determining whether or not the chroma value Ct has a low saturation of a predetermined value or less is set, and it is determined whether or not Ct is Ct 2 or less, and the predetermined value is determined. When it is equal to or less than the threshold value, it may be determined that the image has a strong tendency of low saturation, and a correction value G for increasing the color difference gain may be calculated and output to the color difference gain processing unit 36. In addition, the chroma value Ct is calculated according to a predetermined formula for adjusting the saturation.
The correction value G according to the above may be calculated.

【0057】色差ゲイン処理部36では、次式によりク
ロマ信号Cr,Cbを補正し、補正されたクロマ信号C
r’,Cb’をRGB変換部38へ出力する。
The color difference gain processing unit 36 corrects the chroma signals Cr and Cb according to the following equation, and the corrected chroma signal C
The r ′ and Cb ′ are output to the RGB conversion unit 38.

【0058】Cr’=Cr×G …(6) Cb’=Cb×G …(7) すなわち、クロマ補正値算出部34では、低彩度の画像
を高彩度側へ補正したい場合、すなわち色差ゲインを上
げたい場合には、G>1となるように補正値Gを算出
し、高彩度の画像を低彩度側へ補正したい場合、すなわ
ち色差ゲインを抑制したい場合には、G<1となるよう
に補正値Gを算出する。また、彩度の補正が必要ない場
合には、G=1となる。
Cr ′ = Cr × G (6) Cb ′ = Cb × G (7) That is, in the chroma correction value calculation unit 34, when it is desired to correct an image having low saturation to the high saturation side, that is, the color difference gain is set. When it is desired to increase the value, a correction value G is calculated so that G> 1, and when it is desired to correct a high saturation image to the low saturation side, that is, to suppress the color difference gain, G <1 is set. The correction value G is calculated. Further, when the saturation correction is not necessary, G = 1.

【0059】RGB変換部38では、ノイズ除去フィル
タ28から出力された出力階調値T’(Y)と、色差ゲ
イン処理部36から出力されたクロマ信号Cr’、C
b’とから、R,G,Bの各信号を作成して画像出力装
置16へ出力する。
In the RGB conversion section 38, the output gradation value T ′ (Y) output from the noise removal filter 28 and the chroma signals Cr ′ and C output from the color difference gain processing section 36.
b, and R, G, and B signals are created and output to the image output device 16.

【0060】画像出力装置16は、画像処理装置14か
ら出力されたR,G,Bの各信号に基づく画像を出力す
る。
The image output device 16 outputs an image based on the R, G and B signals output from the image processing device 14.

【0061】このように、本実施の形態では、画像入力
装置12によって入力された画像の輝度信号のヒストグ
ラムに基づいて、該ヒストグラムが平坦化されるように
輝度信号が補正されるため、明るめの画像を暗めの画像
に、暗めの画像を明るめの画像に補正することができ
る。また、画像を明るくするための補正の強度と、暗め
にする補正の強度とを各々独立して調整することができ
るため、画像入力装置12の種類や特性、設定場所、用
途等に応じてそれぞれの強度を調整することにより、そ
れぞれのシステムに応じた最適な階調補正を行うことが
できる。
As described above, in the present embodiment, the luminance signal is corrected so that the histogram is flattened based on the histogram of the luminance signal of the image input by the image input device 12. It is possible to correct an image into a dark image and a dark image into a bright image. In addition, since the correction intensity for making the image brighter and the correction intensity for making the image darker can be adjusted independently, they can be adjusted according to the type and characteristics of the image input device 12, the setting place, the use, etc. By adjusting the intensity of, it is possible to perform optimum gradation correction according to each system.

【0062】なお、本実施の形態では、RGB信号から
輝度信号Yを作成してヒストグラムを算出し、この算出
したヒストグラムに基づいてLUTを算出する場合につ
いて説明したが、これに限らず、G信号のヒストグラム
を算出し、この算出したヒストグラムに基づいてLUT
を算出してもよく、RGB信号からL***信号に変
換し、明度を表すL*信号のヒストグラムを算出し、こ
の算出したヒストグラムに基づいてLUTを作成するよ
うにしてもよい。
In the present embodiment, the case where the luminance signal Y is created from the RGB signals and the histogram is calculated and the LUT is calculated based on the calculated histogram has been described, but the present invention is not limited to this. Is calculated, and the LUT is calculated based on the calculated histogram.
Alternatively, the RGB signal may be converted into an L * a * b * signal, a histogram of the L * signal representing the brightness may be calculated, and an LUT may be created based on the calculated histogram.

【0063】[0063]

【発明の効果】以上説明したように本発明によれば、撮
影画像の画像データから算出された各画素の輝度データ
のヒストグラムが平坦化されるように輝度データの各々
を補正するための補正係数を各々算出し、強度係数によ
り算出された補正係数に傾向を付与することができるた
め、露出条件に制約がある条件下で撮影された画像の階
調性を画像入力装置の用途や性質等に応じて最適に補正
することができる、という効果を有する。
As described above, according to the present invention, the correction coefficient for correcting each of the brightness data so that the histogram of the brightness data of each pixel calculated from the image data of the captured image is flattened. Can be added to each correction coefficient, and the correction coefficient calculated from the intensity coefficient can be given a tendency. Accordingly, it has an effect that it can be optimally corrected.

【図面の簡単な説明】[Brief description of drawings]

【図1】画像処理システムの概略ブロック図である。FIG. 1 is a schematic block diagram of an image processing system.

【図2】階調値と頻度との関係を示す線図である。FIG. 2 is a diagram showing a relationship between gradation value and frequency.

【図3】入力階調値と出力階調値との関係を示す線図で
ある。
FIG. 3 is a diagram showing a relationship between an input gradation value and an output gradation value.

【図4】ベタ背景が存在する画像における階調値と頻度
との関係を示す線図である。
FIG. 4 is a diagram showing a relationship between a gradation value and a frequency in an image with a solid background.

【図5】ベタ背景が存在する画像における入力階調値と
出力階調値との関係を示す線図である。
FIG. 5 is a diagram showing a relationship between an input gradation value and an output gradation value in an image having a solid background.

【図6】入力階調値と出力階調値との関係を示す線図で
ある。
FIG. 6 is a diagram showing a relationship between an input gradation value and an output gradation value.

【図7】特徴量について説明するための線図である。FIG. 7 is a diagram for explaining a feature amount.

【図8】クロマ値と累積頻度との関係を示す線図であ
る。
FIG. 8 is a diagram showing a relationship between chroma value and cumulative frequency.

【図9】クロマ値と頻度との関係を示す線図である。FIG. 9 is a diagram showing a relationship between chroma value and frequency.

【符号の説明】[Explanation of symbols]

10 画像処理システム 12 画像入力装置 14 画像処理装置 16 画像出力装置 18 Y/C変換部(作成手段) 20 Yヒストグラム算出部(ヒストグラム算出手段、
低減手段) 22 LUT算出部(補正係数算出手段) 23 強度係数入力部 24 LUT変換部(変換手段) 26 特徴量算出部 28 ノイズ除去フィルタ 30 クロマ変換部 32 クロマ累積ヒストグラム算出部 34 クロマ補正値算出部 36 色差ゲイン処理部
Reference Signs List 10 image processing system 12 image input device 14 image processing device 16 image output device 18 Y / C conversion unit (creating means) 20 Y histogram calculation unit (histogram calculation means,
Reduction unit 22 LUT calculation unit (correction coefficient calculation unit) 23 Strength coefficient input unit 24 LUT conversion unit (conversion unit) 26 Feature amount calculation unit 28 Noise removal filter 30 Chroma conversion unit 32 Chroma cumulative histogram calculation unit 34 Chroma correction value calculation Part 36 Color difference gain processing unit

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5B057 AA19 BA02 CA01 CA08 CA12 CA16 CB01 CB08 CB12 CB16 CE11 DA17 DB02 DB06 DB09 DC23 DC36 5C021 PA17 PA72 PA77 PA80 XA35 5C054 AA01 CC02 CH01 DA08 EA05 ED11 EJ01 EJ02 FB03 FC03 HA18 5C077 LL04 LL19 MP01 NN02 PP02 PP15 PP44 PQ12 PQ19 PQ23 TT09    ─────────────────────────────────────────────────── ─── Continued front page    F term (reference) 5B057 AA19 BA02 CA01 CA08 CA12                       CA16 CB01 CB08 CB12 CB16                       CE11 DA17 DB02 DB06 DB09                       DC23 DC36                 5C021 PA17 PA72 PA77 PA80 XA35                 5C054 AA01 CC02 CH01 DA08 EA05                       ED11 EJ01 EJ02 FB03 FC03                       HA18                 5C077 LL04 LL19 MP01 NN02 PP02                       PP15 PP44 PQ12 PQ19 PQ23                       TT09

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 撮影画像の画像データから前記撮影画像
の各画素の輝度データを作成する作成手段と、 前記輝度データのヒストグラムを算出するヒストグラム
算出手段と、 前記ヒストグラムに基づいて前記ヒストグラムが平坦化
されるように前記輝度データの各々を補正するための補
正係数を各々算出する補正係数算出手段と、 前記輝度データの補正に傾向を付与するための強度係数
を入力する入力手段と、前記入力手段により入力された
強度係数により前記傾向が付与された補正係数に基づい
て、前記輝度データを変換する変換手段と、 を備えた画像処理装置。
1. A creating means for creating brightness data of each pixel of the taken image from image data of the taken image; a histogram calculating means for calculating a histogram of the brightness data; and a flattening of the histogram based on the histogram. Correction coefficient calculation means for calculating correction coefficients for correcting each of the brightness data, input means for inputting an intensity coefficient for giving a tendency to correction of the brightness data, and the input means An image processing apparatus, comprising: a conversion unit that converts the luminance data based on a correction coefficient to which the tendency is given by the intensity coefficient input by the above.
【請求項2】 前記強度係数は、前記輝度データが高く
なるように補正するための補正係数に傾向を付与する第
1の強度係数及び前記輝度データが低くなるように補正
するための補正係数に傾向を付与する第2の強度係数と
から成ることを特徴とする請求項1記載の画像処理装
置。
2. The intensity coefficient is a first intensity coefficient that gives a tendency to a correction coefficient for correcting the luminance data to be high and a correction coefficient for correcting the luminance data to be low. The image processing apparatus according to claim 1, wherein the image processing apparatus comprises a second intensity coefficient for imparting a tendency.
【請求項3】 前記ヒストグラムについて、予め定めた
所定頻度以上の輝度データの頻度を低減する低減手段を
さらに備え、 前記補正係数算出手段は、前記低減手段による低減後の
ヒストグラムに基づいて前記補正係数を各々算出するこ
とを特徴とする請求項1又は請求項2に記載の画像処理
装置。
3. The histogram further includes a reduction unit that reduces the frequency of luminance data that is equal to or greater than a predetermined frequency, and the correction coefficient calculation unit includes the correction coefficient based on the histogram reduced by the reduction unit. The image processing apparatus according to claim 1 or 2, wherein the image processing apparatus calculates each of the following.
JP2002022362A 2002-01-30 2002-01-30 Image processor Pending JP2003223636A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002022362A JP2003223636A (en) 2002-01-30 2002-01-30 Image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002022362A JP2003223636A (en) 2002-01-30 2002-01-30 Image processor

Publications (1)

Publication Number Publication Date
JP2003223636A true JP2003223636A (en) 2003-08-08

Family

ID=27745376

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002022362A Pending JP2003223636A (en) 2002-01-30 2002-01-30 Image processor

Country Status (1)

Country Link
JP (1) JP2003223636A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006101421A (en) * 2004-09-30 2006-04-13 Toshiba Corp Video signal processing circuit
JP2009145991A (en) * 2007-12-11 2009-07-02 Ricoh Co Ltd Image processor, image processing method, program, and storage medium
JP2009147771A (en) * 2007-12-17 2009-07-02 Pioneer Electronic Corp Intercom system
US7613338B2 (en) 2004-06-03 2009-11-03 Canon Kabushiki Kaisha Image processing method and apparatus, program, and storage medium
JP2010213008A (en) * 2009-03-10 2010-09-24 Sharp Corp Signal processing apparatus, video display device and signal processing method
JP2013085070A (en) * 2011-10-07 2013-05-09 Saxa Inc Image processing method and image processing apparatus
JP2017184152A (en) * 2016-03-31 2017-10-05 パナソニックIpマネジメント株式会社 On-vehicle display device
CN117078913A (en) * 2023-10-16 2023-11-17 第六镜科技(成都)有限公司 Object inclination correction method, device, electronic equipment and storage medium

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7613338B2 (en) 2004-06-03 2009-11-03 Canon Kabushiki Kaisha Image processing method and apparatus, program, and storage medium
JP2006101421A (en) * 2004-09-30 2006-04-13 Toshiba Corp Video signal processing circuit
JP2009145991A (en) * 2007-12-11 2009-07-02 Ricoh Co Ltd Image processor, image processing method, program, and storage medium
JP2009147771A (en) * 2007-12-17 2009-07-02 Pioneer Electronic Corp Intercom system
JP2010213008A (en) * 2009-03-10 2010-09-24 Sharp Corp Signal processing apparatus, video display device and signal processing method
JP2013085070A (en) * 2011-10-07 2013-05-09 Saxa Inc Image processing method and image processing apparatus
JP2017184152A (en) * 2016-03-31 2017-10-05 パナソニックIpマネジメント株式会社 On-vehicle display device
WO2017169024A1 (en) * 2016-03-31 2017-10-05 パナソニックIpマネジメント株式会社 Vehicle-mounted display device
CN117078913A (en) * 2023-10-16 2023-11-17 第六镜科技(成都)有限公司 Object inclination correction method, device, electronic equipment and storage medium
CN117078913B (en) * 2023-10-16 2024-02-02 第六镜科技(成都)有限公司 Object inclination correction method, device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
JP4934326B2 (en) Image processing apparatus and processing method thereof
US8208039B2 (en) Image processing apparatus and computer-readable medium
US7409083B2 (en) Image processing method and apparatus
CN100366052C (en) Image processing device and method
WO1996010886A1 (en) Image pickup device
US20180061029A1 (en) Image processing apparatus, imaging apparatus, image processing method, and storage medium storing image processing program of image processing apparatus
KR20120025415A (en) Image processing apparatus and image processing method
JP5901667B2 (en) Image processing apparatus and method, image processing program, and imaging apparatus
JP2001054013A (en) Image pickup signal processor and its processing method
JP2004007202A (en) Image processor
JP3184309B2 (en) Gradation correction circuit and imaging device
JP2006115444A (en) Method, device, program for image processing, and electronic camera
JP4544308B2 (en) Image processing apparatus, imaging apparatus, method, and program
JP3267200B2 (en) Image processing device
JP2002359754A (en) Grey level correction device and method
JP2004326082A5 (en)
JP4637812B2 (en) Image signal processing apparatus, image signal processing program, and image signal processing method
JP2004326082A (en) Display controller and display device
JP3298330B2 (en) Imaging device
JP2003223636A (en) Image processor
JP3092397B2 (en) Imaging device
JP3201049B2 (en) Gradation correction circuit and imaging device
JP3294089B2 (en) Imaging device
JPH10322592A (en) Method and device for controlling electronic camera
JP2002223355A (en) Image processor and recording medium with image processing program recorded thereon