JP3267200B2 - Image processing device - Google Patents

Image processing device

Info

Publication number
JP3267200B2
JP3267200B2 JP18632897A JP18632897A JP3267200B2 JP 3267200 B2 JP3267200 B2 JP 3267200B2 JP 18632897 A JP18632897 A JP 18632897A JP 18632897 A JP18632897 A JP 18632897A JP 3267200 B2 JP3267200 B2 JP 3267200B2
Authority
JP
Japan
Prior art keywords
peak value
histogram
luminance
circuit
image processing
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.)
Expired - Fee Related
Application number
JP18632897A
Other languages
Japanese (ja)
Other versions
JPH1132236A (en
Inventor
文男 藤村
真一 宝田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Corp
Panasonic Holdings Corp
Original Assignee
Panasonic Corp
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Panasonic Corp, Matsushita Electric Industrial Co Ltd filed Critical Panasonic Corp
Priority to JP18632897A priority Critical patent/JP3267200B2/en
Publication of JPH1132236A publication Critical patent/JPH1132236A/en
Application granted granted Critical
Publication of JP3267200B2 publication Critical patent/JP3267200B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Picture Signal Circuits (AREA)
  • Processing Of Color Television Signals (AREA)

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 a gamma correction process for a video signal in a backlight state.

【0002】[0002]

【従来の技術】近年、画像処理装置に関し、多くの逆光
補正手段が開発されており、その補正手段である従来の
ガンマ補正処理としては、例えば特開平2−20628
2号公報のガンマ補正装置がある。以下にこの従来のガ
ンマ補正装置について説明する。
2. Description of the Related Art In recent years, many backlight correcting means have been developed for an image processing apparatus.
There is a gamma correction device disclosed in Japanese Patent Application Laid-Open No. 2 (1994). Hereinafter, the conventional gamma correction device will be described.

【0003】図11は従来例におけるガンマ補正回路の
ブロック図である。図11において、1101は撮像装
置、1102は電圧に応じて利得の変化する利得制御回
路、1103は電圧に応じて所要のレベル範囲の減衰量
の変化する減衰制御回路、1104はレベル範囲区分手
段、1105は平均値検出手段、1106は利得制御デ
ータROMである。以下にその動作につて説明する。
FIG. 11 is a block diagram of a conventional gamma correction circuit. In FIG. 11, reference numeral 1101 denotes an imaging apparatus; 1102, a gain control circuit whose gain changes according to a voltage; 1103, an attenuation control circuit whose attenuation in a required level range changes according to a voltage; Reference numeral 1105 denotes an average value detecting means, and reference numeral 1106 denotes a gain control data ROM. The operation will be described below.

【0004】撮像装置1101にて得られた映像信号を
レベル範囲区分手段1104で所定のレベル範囲に区分
し、平均値検出手段1105にて各レベル範囲毎の平均
値または積分値を検出する。利得制御データROM11
06にはこれらの各レベル範囲の平均値または積分値に
応じた利得もしくは減衰量が設定されており、利得制御
データROMの出力信号に応じて映像信号のガンマ補正
を利得制御回路1102、減衰制御回路1103にて行
う。
[0006] The video signal obtained by the image pickup device 1101 is divided into predetermined level ranges by a level range dividing means 1104, and an average value or integrated value for each level range is detected by an average value detecting means 1105. Gain control data ROM 11
In 06, a gain or an attenuation amount according to an average value or an integral value of each of these level ranges is set, and a gain control circuit 1102 performs gamma correction of a video signal in accordance with an output signal of the gain control data ROM. This is performed in the circuit 1103.

【0005】[0005]

【発明が解決しようとする課題】このように、従来の逆
光状態での画像処理装置におけるガンマ補正処理は、所
定のレベル範囲毎の階調分布により各レベル毎の利得を
制御するため、例えば順光状態で被写体が黒い服等を着
ていた場合、図7に示すように低階調の分布が多くなる
ため、低階調部のゲインが大きくなり、順光状態である
にもかかわらず、逆光状態の補正と同様の処理が施さ
れ、画像が白とびしてしまうという問題を有していた。
また被写体の背景が暗い壁のような場合にも壁の分布特
性により、ガンマ補正が正確に施せないという問題を有
していた。
As described above, in the conventional gamma correction processing in an image processing apparatus in a backlight state, the gain for each level is controlled by a gradation distribution for each predetermined level range. When the subject is wearing black clothes in the light state, the distribution of low gradations increases as shown in FIG. 7, so the gain of the low gradation part increases, and despite the fact that the subject is in the normal light state, The same processing as in the backlight state correction is performed, and there is a problem that an image is overexposed.
Further, even when the background of the subject is a dark wall, there is a problem that the gamma correction cannot be performed accurately due to the distribution characteristics of the wall.

【0006】また逆光状態の画像は順光状態の画像に比
べてノイズ成分を多く含んでいるが、特に低輝度部にノ
イズ成分を多く含んでいるため、逆光状態の補正に伴い
そのノイズが目立ち始め、画像を鮮鋭化させるために施
される輪郭強調処理によってさらにノイズが強調されて
しまい、画質が低下してしまうという問題があった。ま
た逆光状態の補正に伴い、低輝度部の明るさは向上する
が逆に階調がなくなってしまうため、図9の輝度ヒスト
グラムに示すように低輝度部に階調とびが発生し、これ
により画像には偽輪郭が現れてしまうという問題、そし
て輪郭強調処理により偽輪郭が強調されるため画質が低
下してしまうという問題があった。
An image in the backlight state contains more noise components than an image in the normal light state. However, since the low luminance portion contains more noise components, the noise becomes more noticeable with the correction of the backlight state. At first, there is a problem that noise is further emphasized by the outline emphasis processing performed to sharpen an image, and the image quality is reduced. Further, with the correction of the backlight state, the brightness of the low-luminance portion is improved, but the gradation disappears. On the contrary, the gradation skip occurs in the low-luminance portion as shown in the luminance histogram of FIG. There is a problem that a false contour appears in an image, and a problem that image quality is deteriorated because the false contour is enhanced by the contour enhancement processing.

【0007】またCCDからの画像では偽色等の色ノイ
ズ成分が含まれており、ガンマ補正による逆光状態の補
正によって画像の輝度が上がることにより、補正前には
画像が暗くてよくわからなかった色ノイズが、補正によ
り目立ってしまうという問題などがあった。
Further, the image from the CCD contains a color noise component such as a false color, and the luminance of the image is increased by the correction of the backlight state by the gamma correction. There is a problem that the color noise becomes noticeable due to the correction.

【0008】[0008]

【課題を解決するための手段】前記課題を解決するため
に、本発明の画像処理装置は、入力映像信号から階調分
布特性を示すヒストグラムを作成する手段と、作成され
たヒストグラムから予め定められた高輝度部にてピーク
パターンを検出する手段と、前記ピークパターンの大き
さに応じてガンマ補正量を算出する手段を備えるもので
ある。
In order to solve the above-mentioned problems, an image processing apparatus according to the present invention comprises: means for creating a histogram indicating a gradation distribution characteristic from an input video signal; and a predetermined histogram based on the created histogram. And a means for calculating a gamma correction amount according to the size of the peak pattern.

【0009】本発明によれば逆光時に発生する高輝度部
のピークパターンによりガンマ補正量を決定するため、
被写体がどのような服を着ていても、また背景がどのよ
うな場合でも正確にガンマ補正量を決定することができ
る。またピークパターンの大きさにより輪郭強調量の抑
制、色ノイズ成分の除去を行うので、ガンマ補正に伴う
画質の低下を防止することができる。
According to the present invention, the amount of gamma correction is determined based on the peak pattern of a high-luminance portion generated at the time of backlight.
The gamma correction amount can be accurately determined regardless of what kind of clothes the subject wears or the background. In addition, since the amount of edge enhancement is suppressed and the color noise component is removed based on the size of the peak pattern, it is possible to prevent a decrease in image quality due to gamma correction.

【0010】[0010]

【発明の実施の形態】本発明の請求項1に記載の画像処
理装置は、入力映像信号から階調分布特性を示すヒスト
グラムを作成する手段と、作成されたヒストグラムから
予め定められた高輝度部の分布数の最大値とこの高輝度
部の分布の平均値との差にて算出したピーク値を検出す
る手段と、前記検出されたピーク値の大きさに応じてガ
ンマ補正量を算出する手段を備えたものであり、被写体
がどのような服を着ていても、また背景がどのような場
合でも正確にガンマ補正量を決定することができるとい
う作用を有する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An image processing apparatus according to a first aspect of the present invention comprises: means for creating a histogram indicating gradation distribution characteristics from an input video signal;
The maximum value of the distribution number of the predetermined high-luminance part and this high luminance
And means for calculating a gamma correction amount according to the magnitude of the detected peak value. This has the effect that the gamma correction amount can be accurately determined regardless of the kind of clothes and the background.

【0011】次に請求項2に記載の画像処理装置は、入
力映像信号から階調分布特性を示すヒストグラムを作成
する手段と、作成されたヒストグラムから予め定められ
た高輝度部の分布数の最大値とこの高輝度部の分布の平
均値との差にて算出したピーク値を検出する手段と、前
記検出されたピーク値の大きさに応じて輪郭強調量を制
御する輪郭強調手段を備えたことを特徴としたものであ
り、ガンマ補正によって発生するノイズ、偽輪郭を強調
しないという作用を有する。
Next, an image processing apparatus according to a second aspect of the present invention provides a means for creating a histogram indicating gradation distribution characteristics from an input video signal, and a predetermined histogram based on the created histogram.
The maximum number of distributions in the high-luminance area and the
Means for detecting the peak value calculated by the difference from the average value , and comprising a contour emphasis means for controlling the amount of contour emphasis according to the magnitude of the detected peak value , This has the effect of not emphasizing noise and false contours generated by gamma correction.

【0012】次に請求項3に記載の画像処理装置は、入
力映像信号から階調分布特性を示すヒストグラムを作成
する手段と、作成されたヒストグラムから予め定められ
た高輝度部の分布数の最大値とこの高輝度部の分布の平
均値との差にて算出したピーク値を検出する手段と、前
記検出されたピーク値の大きさに応じて色差信号にロー
パスフィルタ処理を制御する色差補正量算出手段を備え
たことを特徴としたものであり、ガンマ補正に伴い輝度
が上がり目立ち始める色ノイズを抑制することができる
という作用を有する。
Next, an image processing apparatus according to a third aspect of the present invention provides a means for creating a histogram showing gradation distribution characteristics from an input video signal, and a predetermined histogram based on the created histogram.
The maximum number of distributions in the high-luminance area and the
Means for detecting a peak value calculated from a difference from the average value, and color difference correction amount calculating means for controlling a low-pass filter process on a color difference signal according to the magnitude of the detected peak value.
This has the effect that it is possible to suppress the color noise that increases in luminance with gamma correction and starts to stand out.

【0013】[0013]

【0014】(実施の形態1)以下に本発明の請求項1
から請求項4に記載された発明の実施の形態について図
を参照しながら説明する。
(Embodiment 1) The first aspect of the present invention will be described below.
An embodiment of the invention described in claim 4 will be described with reference to the drawings.

【0015】図1は本発明の原理的構成を示す画像処理
装置のブロック図である。図1において、101は輝度
信号Yから階調分布を示すヒストグラムを作成するヒス
トグラム作成回路であり、102は作成されたヒストグ
ラムから高輝度部のピークパターンのピーク値の大きさ
を数値化するピーク値検出回路、103はピーク値の大
きさによりガンマ補正量を決定し、階調補正を行う階調
補正回路、104は輪郭強調を行う輪郭強調回路、10
5はピーク値の大きさにより、輪郭強調量を決定する輪
郭強調量算出回路、106はピーク値の大きさにより、
色差信号に施すローパスフィルタの強さを決定する色差
補正量算出回路、107はその補正係数により色差信号
にローパスフィルタリングを施すローパスフィルタであ
る。
FIG. 1 is a block diagram of an image processing apparatus showing the basic configuration of the present invention. In FIG. 1, reference numeral 101 denotes a histogram creating circuit for creating a histogram indicating a gradation distribution from the luminance signal Y, and 102 denotes a peak value for quantifying the magnitude of the peak value of the peak pattern of the high luminance portion from the created histogram. A detection circuit 103 determines a gamma correction amount based on the magnitude of the peak value and performs a gradation correction, and a gradation correction circuit 104 performs a contour enhancement.
5 is a contour emphasis amount calculation circuit that determines the contour emphasis amount according to the magnitude of the peak value, and 106 is
A color difference correction amount calculation circuit 107 that determines the strength of the low pass filter applied to the color difference signal, and a low pass filter 107 that performs low pass filtering on the color difference signal based on the correction coefficient.

【0016】図2は図1中のヒストグラム作成回路10
1が抽出した輝度ヒストグラムの例を示す図であり、こ
の場合、高輝度部にピークパターン部aがあり、逆光状
態のヒストグラムをあらわしている。図3は図1中のピ
ーク値検出回路102のブロック図であり、301は比
較器、302は画素のカウンタ、303は最大分布数検
出回路、304は分布平均値算出回路、305は減算器
である。
FIG. 2 shows a histogram generating circuit 10 in FIG.
FIG. 1 is a diagram illustrating an example of an extracted luminance histogram. In this case, a peak pattern portion a is present in a high luminance portion, and the histogram in a backlight state is shown. FIG. 3 is a block diagram of the peak value detection circuit 102 in FIG. 1, wherein 301 is a comparator, 302 is a pixel counter, 303 is a maximum distribution number detection circuit, 304 is a distribution average value calculation circuit, and 305 is a subtractor. is there.

【0017】図4は図1中の階調補正回路103の階調
補正特性図であり、図5は図1中の輪郭強調回路104
のブロック図であり、501は輪郭成分抽出回路、50
2はノイズ成分をレベル的に除去するノイズコアリング
処理回路、503は加算器、504は遅延回路である。
図6は図1中のローパスフィルタ107の説明図であ
る。
FIG. 4 is a gradation correction characteristic diagram of the gradation correction circuit 103 in FIG. 1, and FIG. 5 is a contour enhancement circuit 104 in FIG.
501 is a block diagram of a contour component extraction circuit;
Reference numeral 2 denotes a noise coring processing circuit for removing noise components in a level, 503 denotes an adder, and 504 denotes a delay circuit.
FIG. 6 is an explanatory diagram of the low-pass filter 107 in FIG.

【0018】以上のように構成された画像処理装置につ
いて、以下にその動作を説明する。まず入力データをそ
れぞれ8ビットデータとする。すなわち輝度信号におい
ては0が黒データとなり、255が白データとなる。図
1において、入力された輝度信号Yよりヒストグラム作
成回路101にてヒストグラムを作成する。
The operation of the image processing apparatus configured as described above will be described below. First, input data is assumed to be 8-bit data. That is, in the luminance signal, 0 is black data and 255 is white data. In FIG. 1, a histogram is created by a histogram creating circuit 101 from an input luminance signal Y.

【0019】図2はヒストグラム作成回路101にて作
成された入力信号Yのヒストグラムをあらわし、特にこ
の場合にはaのように高輝度側にピーク部分があるた
め、逆光状態の輝度分布と判定出来る。逆光時には図2
中のaに示すように高輝度側にピークパターンが現れる
ため、このピークパターンを数値化することによりガン
マ補正量を決める。すなわち、ピーク値が大きければ強
い逆光状態であると判断し、ピーク値の大きさにあわせ
てガンマ補正量を大きくし、ピーク値が小さければ弱い
逆光状態であると判断し、ガンマ補正量を小さくする。
また高輝度側にピーク値がない場合には、逆光状態では
ないと判断して、ガンマ補正を行わない。この方法によ
り例えば順光状態で黒い服等を着た場合は図7に示すよ
うなヒストグラムになるが、ピークパターンがないこと
から逆光状態でないと判断するため、誤動作を防ぐこと
ができる。
FIG. 2 shows a histogram of the input signal Y created by the histogram creating circuit 101. In particular, in this case, since there is a peak portion on the high brightness side as indicated by a, it can be determined that the brightness distribution is in a backlight state. . Figure 2 in backlight
Since a peak pattern appears on the high luminance side as shown by a in the figure, the amount of gamma correction is determined by digitizing this peak pattern. That is, if the peak value is large, it is determined that the backlight state is strong, the gamma correction amount is increased according to the magnitude of the peak value, and if the peak value is small, it is determined that the backlight state is weak, and the gamma correction amount is reduced. I do.
If there is no peak value on the high luminance side, it is determined that the subject is not in a backlight state, and no gamma correction is performed. According to this method, for example, in a case where black clothes or the like are worn in a normal light state, a histogram as shown in FIG. 7 is obtained. However, since there is no peak pattern, it is determined that the object is not in a backlight state, so that a malfunction can be prevented.

【0020】このピークパターンの数値化は、高輝度部
の分布の最大値と平均値の差によって行う。これはピー
ク値検出回路102によって行う。ピーク値検出回路1
02は図3に示すように、まず比較器301によって高
輝度部の輝度分布のみを抽出し、カウンタ302により
各輝度毎の分布数をカウントし、最大分布数検出回路3
03にてピークパターンの最大値における最大分布数を
算出し、分布平均値算出回路304にて所定の高輝度部
の分布の平均値を計測する。例えば信号レベル200以
上となる輝度を高輝度とし、200から255までのヒ
ストグラムにおいて分布数の最大値における最大分布数
と、200から255までの分布の平均値を求める。次
に最大分布数と平均値との差を求めピークパターンの大
きさを示すピーク値を求める。このように算出されたピ
ーク値を逆光状態の強さとすることにより、例えば順光
状態で被写体が黒服を着ている場合や、白服を着ている
場合でも正確に補正を施すことができる。
The digitization of the peak pattern is performed by the difference between the maximum value and the average value of the distribution of the high luminance portion. This is performed by the peak value detection circuit 102. Peak value detection circuit 1
As shown in FIG. 3, first, only the luminance distribution of the high luminance portion is extracted by the comparator 301, the number of distributions for each luminance is counted by the counter 302, and the maximum distribution number detection circuit 3
At 03, the maximum number of distributions at the maximum value of the peak pattern is calculated, and the distribution average value calculation circuit 304 measures the average value of the distribution of a predetermined high luminance portion. For example, the luminance at which the signal level is 200 or higher is defined as high luminance, and the maximum number of distributions at the maximum value of the number of distributions in the histogram from 200 to 255 and the average value of the distribution from 200 to 255 are obtained. Next, the difference between the maximum number of distributions and the average value is determined, and the peak value indicating the size of the peak pattern is determined. By using the peak value calculated in this way as the intensity of the backlight state, for example, even when the subject is wearing black clothes or white clothes in the normal light state, accurate correction can be performed. .

【0021】次に前述の算出されたピーク値の大きさに
より階調補正量すなわちガンマ補正量を図4に示すよう
に決定する。例えば入力データと出力データの関係を
(出力データ)=(入力データ)×γとし、ピーク値が
大きければ補正量を図4中のAの曲線のように補正量を
大きくし、ピーク値が小さければ図4中のBのようにガ
ンマ補正量を小さく設定し、ピーク値が0の時には図4
中のCのようにして補正を行わないようにする。ピーク
値とγの値の対応づけは、例えば図8のようにして行
う。すなわち、ピーク値が零の場合にはγ=1として補
正を行わず、ピーク値が大きくなるに従って輝度補正量
を大きくし、ピーク値がある値より大きい場合には過度
の補正をさけるためリミッタを施すようにする。この場
合にはγの値を0.3で制限している。またガンマ補正
量を図4のDにあるように、指数関数ではなくて、ニー
ポイントであるK点とホワイトクリップポイントである
W点をピーク値に合わせて決めてやり、補正をおこなっ
てもよい。この場合にはピーク値が大きければニーポイ
ントKとホワイトクリップポイントWの値を大きくし、
直線で補間された変換式を用いてガンマ補正を行う。こ
の方法では、ガンマ補正による白とび等を抑えることが
できる。
Next, a gradation correction amount, that is, a gamma correction amount is determined as shown in FIG. 4 based on the magnitude of the peak value calculated as described above. For example, the relationship between input data and output data is (output data) = (input data) × γ, and if the peak value is large, the correction amount is increased as shown by the curve A in FIG. 4 and the peak value is small. For example, when the gamma correction amount is set to a small value as indicated by B in FIG.
Correction is not performed as in C in FIG. The association between the peak value and the value of γ is performed, for example, as shown in FIG. That is, when the peak value is zero, no correction is performed with γ = 1, and the luminance correction amount is increased as the peak value increases, and when the peak value is larger than a certain value, a limiter is used to avoid excessive correction. To be applied. In this case, the value of γ is limited to 0.3. Further, as shown in D of FIG. 4, instead of an exponential function, the gamma correction amount may be determined by determining the knee point K and the white clip point W according to the peak value. . In this case, if the peak value is large, the values of the knee point K and the white clip point W are increased,
Gamma correction is performed using a conversion equation interpolated by a straight line. In this method, overexposure and the like due to gamma correction can be suppressed.

【0022】またピーク値が大きい場合、輝度の輪郭強
調量を抑制する処理を行う。これはガンマ補正により輝
度成分を階調補正した場合、低輝度部の明るさが向上す
るかわりに低輝度部の階調がなくなり、図9に示したよ
うに低輝度に階調とびが発生して偽輪郭が現れたり、ま
た低階調部に元々あったノイズが輝度が上がることによ
り目立ち始めるためである。このまま輪郭強調を施す
と、ノイズを強調してしまう。そこでピーク値が大きい
場合には輝度の輪郭強調量を抑制する信号を輪郭強調量
算出回路105から発生させ、その信号をもとに輪郭強
調回路104にて輪郭強調量を抑えた形で輪郭強調処理
を行う。図5は輪郭強調回路104を示すブロック図で
あり、輪郭成分抽出回路501、ノイズコアリング処理
回路502、加算器503、遅延回路504によって構
成されている。図5において、輪郭成分抽出回路501
では注目画素データとその上下左右画素データとの差を
それぞれ算出する。すなわち、 輪郭成分= (注目画素データ)−(上画素データ) +(注目画素データ)−(下画素データ) +(注目画素データ)−(左画素データ) +(注目画素データ)−(右画素データ) =(注目画素データ)×4−(上画素データ)−(下画素データ) −(左画素データ)−(右画素データ) として、輪郭成分を抽出する。この輪郭成分をそのまま
元データに加算器503にて加算するのではなくて、ノ
イズコアリング処理回路502にて階調補正回路103
で補正されることによって発生した偽輪郭成分等のノイ
ズを加算しないようにする。すなわちノイズコアリング
処理回路502では、レベル−XからレベルXまでの輪
郭成分を元データに加算しないようにしてノイズを強調
しないようにし、画質の低下を防止する。輪郭強調量算
出回路105ではこのレベルX値を、ピーク値が大きい
場合には大きい値、またピーク値が小さい場合には小さ
い値を輪郭強調回路104に出力する。例えば図10に
示すように、ピーク値の大きさとレベルXの値を対応づ
けることにより、ガンマ補正量により生じたノイズ成分
を強調しないようにすることができる。
When the peak value is large, a process for suppressing the contour enhancement of luminance is performed. This is because, when the luminance component is gradation-corrected by gamma correction, the gradation of the low-luminance part disappears instead of improving the brightness of the low-luminance part, and the gradation skip occurs at the low luminance as shown in FIG. This is because false contours appear and noise originally present in the low gradation part starts to be noticeable due to an increase in luminance. If contour enhancement is performed as it is, noise will be enhanced. Therefore, when the peak value is large, a signal for suppressing the contour enhancement amount of the luminance is generated from the contour enhancement amount calculation circuit 105, and the contour enhancement circuit 104 suppresses the contour enhancement amount based on the signal. Perform processing. FIG. 5 is a block diagram showing the contour emphasizing circuit 104, which includes a contour component extracting circuit 501, a noise coring processing circuit 502, an adder 503, and a delay circuit 504. In FIG. 5, a contour component extraction circuit 501
Then, the difference between the target pixel data and the upper, lower, left, and right pixel data is calculated. That is, contour component = (target pixel data) − (upper pixel data) + (target pixel data) − (lower pixel data) + (target pixel data) − (left pixel data) + (target pixel data) − (right pixel Data) = (target pixel data) × 4- (upper pixel data) − (lower pixel data) − (left pixel data) − (right pixel data), and an outline component is extracted. This contour component is not added to the original data as it is by the adder 503, but the tone correction circuit 103 is added by the noise coring processing circuit 502.
The noise such as the false contour component generated by the correction is not added. That is, the noise coring processing circuit 502 does not add the contour components from the level -X to the level X to the original data so as not to emphasize the noise, thereby preventing the image quality from lowering. The contour emphasis amount calculation circuit 105 outputs the level X value to the contour emphasis circuit 104 when the peak value is large, and outputs a large value when the peak value is small. For example, as shown in FIG. 10, by associating the magnitude of the peak value with the value of the level X, it is possible to prevent the noise component generated by the gamma correction amount from being emphasized.

【0023】次にピーク値が大きい場合、色差信号にロ
ーパスフィルタを施し、色ノイズを抑制する。これはC
CDにて逆光状態で撮影した場合、画像には色ノイズ成
分があるが、画像が暗いため色ノイズはあまり目立たな
い。しかしガンマ補正により明るさが向上するため、色
ノイズが目立ち始める。そこでピーク値の大きさにより
色ノイズの抑制を行う。図6のaは入力画素データの配
列、bは処理後データを示しており、ピーク値が大きい
場合には注目画素P5とその周辺画素の9データで平均
化処理を行う。すなわち出力データQ=(P1+P2+
P3+・・・P9)/9とし、ピーク値があまり大きく
ないときは、注目画素と左右画素の3データで平均化処
理Q=(P4+P5+P6)/3をおこなう。またピー
クがないときは平均化処理を行わない。このようにピー
ク値の大きさにより色ノイズを低減することにより画質
の低下を防止することができる。
Next, when the peak value is large, the color difference signal is subjected to a low-pass filter to suppress color noise. This is C
When photographed in a backlight state on a CD, the image has color noise components, but the color noise is not so noticeable because the image is dark. However, since the brightness is improved by the gamma correction, color noise starts to stand out. Therefore, color noise is suppressed by the magnitude of the peak value. FIG. 6A shows an array of input pixel data, and FIG. 6B shows processed data. When the peak value is large, the averaging process is performed with 9 data of the target pixel P5 and its surrounding pixels. That is, output data Q = (P1 + P2 +
If the peak value is not so large, the averaging process Q = (P4 + P5 + P6) / 3 is performed on the three data of the target pixel and the left and right pixels. If there is no peak, the averaging process is not performed. As described above, by reducing the color noise by the magnitude of the peak value, it is possible to prevent the image quality from lowering.

【0024】[0024]

【発明の効果】以上のように本発明の画像処理装置によ
れば、逆光時に発生する高輝度部のピークパターンより
ピーク値を算出し、そのピーク値によりガンマ補正量を
決定するため、被写体がどのような服を着ていても、ま
た背景がどのような場合でも正確にガンマ補正量を決定
することができる。またピーク値の大きさにより輪郭強
調量の抑制、色ノイズ成分の除去を行うので、ガンマ補
正に伴う画質の低下を防止することができる。
As described above, according to the image processing apparatus of the present invention, the peak value is calculated from the peak pattern of the high-luminance portion generated at the time of backlight, and the gamma correction amount is determined based on the peak value. The gamma correction amount can be accurately determined regardless of what clothes are worn and the background. In addition, since the amount of edge enhancement is suppressed and the color noise component is removed based on the magnitude of the peak value, it is possible to prevent a decrease in image quality due to gamma correction.

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

【図1】本発明の実施の形態における画像処理装置の全
体ブロック図
FIG. 1 is an overall block diagram of an image processing apparatus according to an embodiment of the present invention.

【図2】本発明の実施の形態における輝度ヒストグラム
例を示す図
FIG. 2 is a diagram showing an example of a luminance histogram according to the embodiment of the present invention.

【図3】本発明の実施の形態におけるピーク値検出回路
のブロック図
FIG. 3 is a block diagram of a peak value detection circuit according to the embodiment of the present invention.

【図4】本発明の実施の形態における階調補正特性図FIG. 4 is a gradation correction characteristic diagram according to the embodiment of the present invention.

【図5】本発明の実施の形態における輪郭強調回路ブロ
ック図
FIG. 5 is a block diagram of an outline emphasis circuit according to the embodiment of the present invention;

【図6】本発明の実施の形態におけるローパスフィルタ
の説明図
FIG. 6 is an explanatory diagram of a low-pass filter according to the embodiment of the present invention.

【図7】本発明の実施の形態における順光状態の場合の
ヒストグラムを示す図
FIG. 7 is a diagram showing a histogram in the case of a normal light state according to the embodiment of the present invention.

【図8】本発明の実施の形態におけるピーク値とガンマ
補正量との対応図
FIG. 8 is a correspondence diagram between a peak value and a gamma correction amount in the embodiment of the present invention.

【図9】本発明の実施の形態における階調とび状態を示
すヒストグラムを示す図
FIG. 9 is a diagram showing a histogram showing a gradation skip state according to the embodiment of the present invention.

【図10】本発明の実施の形態における輪郭強調量算出
回路の特性図
FIG. 10 is a characteristic diagram of a contour emphasis amount calculation circuit according to the embodiment of the present invention;

【図11】従来の実施の形態における画像処理装置のブ
ロック図
FIG. 11 is a block diagram of an image processing apparatus according to a conventional embodiment.

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

101 ヒストグラム作成回路 102 ピーク値検出回路 103 階調補正回路 104 輪郭強調回路 105 輪郭強調量算出回路 106 色差補正量算出回路 107 ローパスフィルタ 301 比較器 302 カウンタ 303 最大分布数検出回路 304 分布平均値算出回路 305 減算器 501 輪郭成分抽出回路 502 ノイズコアリング処理回路 503 加算器 504 遅延回路 1101 撮像装置 1102 利得制御回路 1103 減衰制御装置 1104 レベル範囲区分手段 1105 平均値検出手段 1106 利得制御データROM Reference Signs List 101 histogram creation circuit 102 peak value detection circuit 103 gradation correction circuit 104 contour enhancement circuit 105 contour enhancement amount calculation circuit 106 color difference correction amount calculation circuit 107 low-pass filter 301 comparator 302 counter 303 maximum distribution number detection circuit 304 distribution average value calculation circuit 305 Subtractor 501 Contour component extraction circuit 502 Noise coring processing circuit 503 Adder 504 Delay circuit 1101 Image pickup device 1102 Gain control circuit 1103 Attenuation control device 1104 Level range division means 1105 Average value detection means 1106 Gain control data ROM

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平7−23287(JP,A) 特開 平9−51472(JP,A) 特開 平7−162717(JP,A) 特開 平8−65543(JP,A) 特開 平6−30330(JP,A) (58)調査した分野(Int.Cl.7,DB名) H04N 5/14 - 5/217 H04N 9/64 ────────────────────────────────────────────────── ─── Continuation of the front page (56) References JP-A-7-23287 (JP, A) JP-A-9-51472 (JP, A) JP-A-7-162717 (JP, A) JP-A 8- 65543 (JP, A) JP-A-6-30330 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) H04N 5/14-5/217 H04N 9/64

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 入力映像信号から階調分布特性を示すヒ
ストグラムを作成する手段と、作成されたヒストグラム
から予め定められた高輝度部の分布数の最大値とこの高
輝度部の分布の平均値との差にて算出したピーク値を検
出する手段と、前記検出されたピーク値の大きさに応じ
てガンマ補正量を算出する手段を備えた画像処理装置。
1. A means for creating a histogram indicating a gradation distribution characteristic from an input video signal, and a predetermined maximum number of distributions of a high-luminance portion from the created histogram,
An image processing apparatus comprising: means for detecting a peak value calculated based on a difference from an average value of a distribution of luminance portions; and means for calculating a gamma correction amount according to the magnitude of the detected peak value .
【請求項2】 入力映像信号から階調分布特性を示すヒ
ストグラムを作成する手段と、作成されたヒストグラム
から予め定められた高輝度部の分布数の最大値とこの高
輝度部の分布の平均値との差にて算出したピーク値を検
出する手段と、前記検出されたピーク値の大きさに応じ
て輪郭強調量を制御する輪郭強調手段を備えたことを
徴とする画像処理装置。
2. A means for creating a histogram indicating a gradation distribution characteristic from an input video signal, and a predetermined maximum value of the number of distributions of a high-luminance portion based on the created histogram.
It is characterized in that it comprises means for detecting a peak value calculated from a difference from the average value of the distribution of the luminance portion, and contour emphasis means for controlling the amount of contour emphasis according to the magnitude of the detected peak value. An image processing apparatus.
【請求項3】 入力映像信号から階調分布特性を示すヒ
ストグラムを作成する手段と、作成されたヒストグラム
から予め定められた高輝度部の分布数の最大値とこの高
輝度部の分布の平均値との差にて算出したピーク値を検
出する手段と、前記検出されたピーク値の大きさに応じ
て色差信号にローパスフィルタ処理を制御する色差補正
量算出手段を備えたことを特徴とする画像処理装置。
3. A means for creating a histogram indicating a gradation distribution characteristic from an input video signal, and a predetermined maximum value of the number of distributions of a high-luminance portion based on the created histogram.
Means for detecting a peak value calculated from the difference from the average value of the distribution of the luminance portion, and color difference correction for controlling a low-pass filter process on the color difference signal according to the magnitude of the detected peak value.
An image processing apparatus comprising an amount calculating unit .
JP18632897A 1997-07-11 1997-07-11 Image processing device Expired - Fee Related JP3267200B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18632897A JP3267200B2 (en) 1997-07-11 1997-07-11 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18632897A JP3267200B2 (en) 1997-07-11 1997-07-11 Image processing device

Publications (2)

Publication Number Publication Date
JPH1132236A JPH1132236A (en) 1999-02-02
JP3267200B2 true JP3267200B2 (en) 2002-03-18

Family

ID=16186431

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18632897A Expired - Fee Related JP3267200B2 (en) 1997-07-11 1997-07-11 Image processing device

Country Status (1)

Country Link
JP (1) JP3267200B2 (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000060566A1 (en) * 1999-03-31 2000-10-12 Fujitsu General Limited Image quality correcting circuit
JP3545979B2 (en) 1999-11-30 2004-07-21 シャープ株式会社 Contour correction device
JP2002006390A (en) * 2000-06-20 2002-01-09 Sakata Corp Method and device for correcting digital picture
JP3543774B2 (en) 2001-03-19 2004-07-21 ミノルタ株式会社 Image processing apparatus, image processing method, and recording medium
JP3928704B2 (en) 2002-02-26 2007-06-13 セイコーエプソン株式会社 Image processing apparatus, image processing method, medium storing image processing program, and image processing program
US6853806B2 (en) 2002-09-13 2005-02-08 Olympus Optical Co., Ltd. Camera with an exposure control function
JP2006333202A (en) * 2005-05-27 2006-12-07 Matsushita Electric Ind Co Ltd Video signal processor and video signal processing method
US7999863B2 (en) 2006-02-01 2011-08-16 Fujifilm Corporation Image correction apparatus and method
JP4895839B2 (en) * 2006-02-01 2012-03-14 富士フイルム株式会社 Image correction apparatus and method
JP4791884B2 (en) * 2006-05-24 2011-10-12 株式会社東芝 Video signal processing apparatus and video signal processing method
US8134646B2 (en) 2006-05-24 2012-03-13 Kabushiki Kaisha Toshiba Video signal processing device and video signal processing method
JP4791887B2 (en) * 2006-05-30 2011-10-12 株式会社東芝 Video signal processing apparatus and video signal processing method
JP5078147B2 (en) * 2008-03-04 2012-11-21 株式会社リコー Image processing apparatus and image pickup apparatus
JP5111310B2 (en) * 2008-09-09 2013-01-09 キヤノン株式会社 Image processing method and image processing apparatus
JP6558935B2 (en) * 2015-04-24 2019-08-14 キヤノン株式会社 Image processing apparatus, control method thereof, control program, and imaging apparatus

Also Published As

Publication number Publication date
JPH1132236A (en) 1999-02-02

Similar Documents

Publication Publication Date Title
JP3267200B2 (en) Image processing device
JP4154847B2 (en) Image processing apparatus, image processing method, and computer-readable recording medium storing image processing program
US8368779B2 (en) Image processing apparatus for performing gradation correction on subject image
JP3221291B2 (en) Image processing device, image processing method, noise elimination device, and noise elimination method
JP4822773B2 (en) Color noise reduction circuit and imaging apparatus using the same
US9153015B2 (en) Image processing device and method
US6915023B2 (en) Contour correction device
KR101031153B1 (en) Apparatus and method for signal processing
JP3184309B2 (en) Gradation correction circuit and imaging device
JP2008072450A (en) Image processor and image processing method
JP4637812B2 (en) Image signal processing apparatus, image signal processing program, and image signal processing method
JP2004007202A (en) Image processor
JP3298330B2 (en) Imaging device
JP3378601B2 (en) Image processing device
JP3092397B2 (en) Imaging device
JP2008305122A (en) Image-processing apparatus, image processing method and program
EP0940034B1 (en) Histogram operating unit for video signals
JP3294089B2 (en) Imaging device
EP2410731B1 (en) Edge correction apparatus, edge correction method, program, and storage medium
JP2003223636A (en) Image processor
JP2872005B2 (en) Automatic image quality adjustment device
JPH11164190A (en) Automatic exposure control method
JP2004201207A (en) Noise-reducing device, imaging device, and noise-reducing program
JP2986625B2 (en) Skin color detection circuit and imaging device
EP1622080B1 (en) Signal processing device and method, recording medium, and program

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080111

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090111

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090111

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100111

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100111

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110111

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110111

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120111

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees