[go: up one dir, main page]

JP2019110443A - Image processing apparatus - Google Patents

Image processing apparatus Download PDF

Info

Publication number
JP2019110443A
JP2019110443A JP2017242374A JP2017242374A JP2019110443A JP 2019110443 A JP2019110443 A JP 2019110443A JP 2017242374 A JP2017242374 A JP 2017242374A JP 2017242374 A JP2017242374 A JP 2017242374A JP 2019110443 A JP2019110443 A JP 2019110443A
Authority
JP
Japan
Prior art keywords
value
threshold
pixel
determination unit
overexposure
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.)
Granted
Application number
JP2017242374A
Other languages
Japanese (ja)
Other versions
JP6787303B2 (en
Inventor
山田 邦男
Kunio Yamada
邦男 山田
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.)
JVCKenwood Corp
Original Assignee
JVCKenwood Corp
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 JVCKenwood Corp filed Critical JVCKenwood Corp
Priority to JP2017242374A priority Critical patent/JP6787303B2/en
Priority to US16/158,721 priority patent/US10701328B2/en
Publication of JP2019110443A publication Critical patent/JP2019110443A/en
Application granted granted Critical
Publication of JP6787303B2 publication Critical patent/JP6787303B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Color Television Image Signal Generators (AREA)
  • Processing Of Color Television Signals (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)
  • Studio Devices (AREA)

Abstract

【課題】簡易な構成で偽色を検出でき、偽色を低減するよう色を修正することができる画像処理装置を提供する。【解決手段】白とび画素判定部21は、像データにおける画素ごとに白とびの状態の画素であるか否かを判定する。白とび画素数累計部22は、白とびの状態の画素と判定された画素数を累計する。白とび画素数閾値判定部23は、累計白とび画素数が白とび画素数閾値を超えるか否かを判定する。B閾値判定部24は、B信号がB閾値より大きいか否かを判定する。(B−G)閾値判定部25は、(B−G)値が(B−G)閾値より大きいか否かを判定する。修正要否判定部26は、累計白とび画素数が白とび画素数閾値を超えると判定され、B信号がB閾値より大きい判定され、(B−G)値が(B−G)閾値より大きいと判定されたとき、注目画素の色を修正要と判定する。色修正部は、注目画素の色が修正要と判定されたとき色信号を修正する。【選択図】図3PROBLEM TO BE SOLVED: To provide an image processing device capable of detecting a false color with a simple structure and correcting the color so as to reduce the false color. An overexposed pixel determination unit 21 determines whether each pixel in image data is an overexposed pixel. The overexposure pixel count accumulating unit 22 accumulates the number of pixels determined to be overexposure pixels. The overexposure pixel number threshold determination unit 23 determines whether the cumulative overexposure pixel number exceeds the overexposure pixel number threshold. The B threshold determination unit 24 determines whether or not the B signal is larger than the B threshold. The (BG) threshold determination unit 25 determines whether or not the (BG) value is larger than the (BG) threshold. The correction necessity determination unit 26 determines that the cumulative number of overexposed pixels exceeds the overexposed pixel threshold, determines that the B signal is greater than the B threshold, and the (BG) value is greater than the (BG) threshold. If it is determined that the color of the pixel of interest needs to be corrected. The color correction unit corrects the color signal when it is determined that the color of the pixel of interest needs to be corrected. [Selection diagram] Fig. 3

Description

本発明は、撮像画像に発生する偽色を検出して低減する画像処理装置に関する。   The present invention relates to an image processing apparatus that detects and reduces false colors generated in a captured image.

低コストのレンズを用いた高倍率の光学系を搭載する撮像装置によって、逆光等の白とびを含む被写体を撮像すると、白とび部分に隣接した白とび部分と比較して低輝度の部分に、彩度の高い紫または青の偽色が発生することがある。この種の偽色はパープルフリンジと称されている。特許文献1には、パープルフリンジを検出して低減する画像処理装置が記載されている。   When an object including overexposure such as back light is imaged by an imaging device equipped with a high-magnification optical system using a low-cost lens, the low-intensity part is compared to the overexposure part adjacent to the overexposure part. Saturated purple or blue false colors may occur. This type of false color is called purple fringe. Patent Document 1 describes an image processing apparatus that detects and reduces purple fringes.

特開2015−211325号公報Unexamined-Japanese-Patent No. 2015-211325

簡易な構成で偽色を検出して、色を修正することができる画像処理装置が求められている。本発明は、簡易な構成で偽色を検出でき、偽色を低減するよう色を修正することができる画像処理装置を提供することを目的とする。   There is a need for an image processing apparatus capable of detecting false colors and correcting colors with a simple configuration. An object of the present invention is to provide an image processing apparatus capable of detecting a false color with a simple configuration and capable of correcting the color so as to reduce the false color.

本発明は、入力されたR,G,B信号によって構成された画像データにおける画素ごとに白とびの状態の画素であるか否かを判定する白とび画素判定部と、前記画像データにおけるフレーム内またはフレームの一部の領域内で、前記白とび画素判定部によって白とびの状態の画素と判定された画素数を累計する白とび画素数累計部と、前記白とび画素数累計部で得られた累計白とび画素数が白とび画素数閾値を超えるか否かを判定する白とび画素数閾値判定部と、注目画素におけるB信号がB閾値より大きいか否かを判定するB閾値判定部と、前記注目画素におけるB信号からG信号を減算した(B−G)値が(B−G)閾値より大きいか否かを判定する(B−G)閾値判定部と、前記白とび画素数閾値判定部において累計白とび画素数が白とび画素数閾値を超えると判定され、前記B閾値判定部において前記注目画素におけるB信号がB閾値より大きい判定され、前記(B−G)閾値判定部において前記注目画素における(B−G)値が前記(B−G)閾値より大きいと判定されたとき、前記注目画素に偽色が発生しているとして前記注目画素の色を修正要と判定する修正要否判定部と、前記修正要否判定部において前記注目画素の色が修正要と判定されたとき、前記注目画素に発生している偽色を低減するよう、少なくとも、前記注目画素におけるG信号及びB信号を修正する色修正部とを備えることを特徴とする画像処理装置を提供する。   According to the present invention, an overexposure pixel determination unit that determines whether or not an overexposure pixel is present for each pixel in image data configured by the input R, G, and B signals; Alternatively, the overexposure pixel count accumulation section accumulates the number of pixels determined to be the overexposure pixels by the overexposure pixel determination section in the partial area of the frame, and the overexposure pixel count accumulation section An overexposure pixel number threshold determination unit that determines whether the accumulated overexposure pixel count exceeds the overexposure pixel count threshold, a B threshold determination unit that determines whether the B signal in the pixel of interest is greater than the B threshold, and (B−G) a threshold determination unit that determines whether a (B−G) value obtained by subtracting a G signal from a B signal in the target pixel is greater than a (B−G) threshold, and the white overexposure pixel number threshold Cumulative whiteout pixel count is white in the judgment unit And the B threshold determination unit determines that the B signal at the target pixel is greater than the B threshold, and the (BG) threshold determination unit determines the (BG) value at the target pixel. Is determined to be larger than the (B−G) threshold value, it is determined that the color of the pixel of interest is required to be corrected assuming that false color is generated in the pixel of interest, and a correction necessity determination unit; A color correction unit that corrects at least the G signal and the B signal in the target pixel so as to reduce the false color occurring in the target pixel when the color of the target pixel is determined to be corrected in the determination unit; To provide an image processing apparatus characterized by comprising:

本発明の画像処理装置によれば、簡易な構成でパープルフリンジを検出でき、色を修正することができる。   According to the image processing apparatus of the present invention, purple fringes can be detected with a simple configuration, and colors can be corrected.

第1実施形態の画像処理装置を示すブロック図である。FIG. 1 is a block diagram showing an image processing apparatus according to a first embodiment. 第1実施形態の画像処理装置の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the image processing apparatus of 1st Embodiment. 第2実施形態の画像処理装置を示すブロック図である。It is a block diagram showing the image processing device of a 2nd embodiment. 第2実施形態の画像処理装置の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the image processing apparatus of 2nd Embodiment.

以下、第1及び第2実施形態の画像処理装置について、添付図面を参照して説明する。   Hereinafter, the image processing apparatus according to the first and second embodiments will be described with reference to the attached drawings.

<第1実施形態>
彩度の高い紫または青の偽色であるパープルフリンジとは、R(赤),G(緑),B(青)の色信号のうち、白とびが発生している画素周辺において、G信号が一定未満であって、B信号がG信号より一定以上大きい状態であると言える。第1実施形態の画像処理装置100は、G信号が一定未満であって、B信号がG信号より一定以上大きい状態をパープルフリンジと判定して、パープルフリンジを低減するために色を修正する。
First Embodiment
Purple fringing, which is a false color of purple or blue with high saturation, is a G signal around the pixel where overexposure occurs among the color signals of R (red), G (green), and B (blue). Is less than a certain value, and it can be said that the B signal is larger than the G signal by a certain amount or more. The image processing apparatus 100 according to the first embodiment determines that a state in which the G signal is less than a certain amount and the B signal is larger than the G signal by a certain amount or more is purple fringe, and corrects color to reduce purple fringes.

図1に示す第1実施形態の画像処理装置100には、撮像装置が被写体を撮像することによって生成された撮像画像が入力画像データとして供給される。入力画像データは、R,G,B信号によって構成された静止画像または動画像のデジタル画像信号である。入力画像データは8ビットで量子化されており、各画素値は0〜255のいずれかの値をとるものとする。注目画素のR,G,B信号の画素値をそれぞれ入力R値、入力G値、入力B値と称することとする。   In the image processing apparatus 100 of the first embodiment shown in FIG. 1, a captured image generated by capturing an image of a subject by the imaging device is supplied as input image data. The input image data is a digital image signal of a still image or a moving image constituted by R, G and B signals. The input image data is quantized by 8 bits, and each pixel value takes any value from 0 to 255. The pixel values of the R, G, and B signals of the pixel of interest are referred to as an input R value, an input G value, and an input B value, respectively.

図1において、周辺白とび画素数カウント部11には、R,G,B信号が入力される。周辺白とび画素数カウント部11は、注目画素と注目画素を中心とした周辺画素とを含む(N×N)画素のブロック内で、入力R値、入力G値、入力B値の全てが所定の閾値を超える画素を白とびの状態の画素と判断して、その画素数をカウントする。閾値は例えば220である。Nは計算リソースまたは画像サイズに応じて、3〜100のいずれかの数を選択すればよい。   In FIG. 1, R, G, and B signals are input to the peripheral overexposure pixel count unit 11. In the block of (N × N) pixels including the pixel of interest and the peripheral pixels centered on the pixel of interest, the peripheral white skipping pixel count unit 11 determines all of the input R value, the input G value, and the input B value. The pixel exceeding the threshold value is determined to be a pixel in the overexposure state, and the number of pixels is counted. The threshold is, for example, 220. N may be selected from 3 to 100 depending on the computational resources or the image size.

周辺白とび画素数カウント部11によるカウント値wh_numは、G閾値決定部12及び(B−G)閾値決定部13に供給される。G閾値決定部12は、A×wh_num+Bに基づいて、入力G値と比較される閾値であるG閾値を決定する。   The count value wh_num by the peripheral overexposure pixel count unit 11 is supplied to the G threshold value determination unit 12 and the (B−G) threshold value determination unit 13. The G threshold determination unit 12 determines a G threshold, which is a threshold to be compared with the input G value, based on A × wh_num + B.

一例としてNが51であるとき、Aとして0.03〜0.1のいずれかの数を選択し、Bとして50〜150のいずれかの数を選択すればよい。Aを正の数としているのは、白とび画素数が注目画素の周囲に多いほど入力G値が大きくなる可能性が高いので、カウント値wh_numに応じてG閾値を大きくするためである。   As an example, when N is 51, any number of 0.03 to 0.1 may be selected as A, and any number of 50 to 150 may be selected as B. The reason why A is a positive number is to increase the G threshold value according to the count value wh_num because the possibility that the input G value increases as the number of overexposed pixels increases around the target pixel is high.

(B−G)閾値決定部13は、C×wh_num+Dに基づいて、入力B値から入力G値を減じた(B−G)値と比較される閾値である(B−G)閾値を決定する。   (B−G) The threshold value determination unit 13 determines a (B−G) threshold value that is a threshold value to be compared with a (B−G) value obtained by subtracting the input G value from the input B value based on C × wh_num + D. .

一例としてNが51であるとき、Cは−0.1〜−0.02のいずれかの数を選択し、Dは60〜120のいずれかの数を選択すればよい。Cを負の数としているのは、白とび画素数が注目画素の周囲に多いほど入力G値及び入力B値が飽和に近付いて、(B−G)値が小さくなる可能性が高いので、カウント値wh_numに応じて(B−G)閾値を小さくするためである。   As an example, when N is 51, C may be any number from -0.1 to -0.02, and D may be any number from 60 to 120. The reason why C is a negative number is that as the number of whitening pixels increases around the pixel of interest, it is likely that the input G value and the input B value approach saturation, and the (B−G) value decreases. This is to reduce the (B−G) threshold according to the count value wh_num.

G閾値判定部14には、G信号及びG閾値が供給される。(B−G)閾値判定部15には、G信号、B信号、及び(B−G)閾値が供給される。G閾値判定部14は、入力G値<G閾値であるか否かを判定する。(B−G)閾値判定部15は、(B−G)値>(B−G)閾値であるか否かを判定する。G閾値判定部14及び(B−G)閾値判定部15による判定結果は、修正要否判定部16に供給される。   The G threshold determination unit 14 is supplied with the G signal and the G threshold. The (B−G) threshold determination unit 15 is supplied with the G signal, the B signal, and the (B−G) threshold. The G threshold value determination unit 14 determines whether or not the input G value <G threshold value. (BG) The threshold determination unit 15 determines whether or not (BG) value> (BG) threshold. The determination results by the G threshold determination unit 14 and the (B−G) threshold determination unit 15 are supplied to the correction necessity determination unit 16.

修正要否判定部16は、G閾値判定部14において入力G値<G閾値であると判定され、(B−G)閾値判定部15において(B−G)値>(B−G)閾値であると判定されたとき、注目画素にパープルフリンジが発生していて注目画素を修正要と判定する。修正要否判定部16による修正要否の判定結果は、色修正部であるB修正部17及びG修正部18に供給される。B修正部17及びG修正部18には、G信号及びB信号が供給される。   The correction necessity determination unit 16 determines that the input G value <G threshold in the G threshold determination unit 14, and the (B−G) value> (B−G) threshold in the (B−G) threshold determination unit 15. When it is determined that there is purple fringes in the target pixel, it is determined that the target pixel is required to be corrected. The determination result of necessity of correction by the correction necessity determination unit 16 is supplied to the B correction unit 17 and the G correction unit 18 which are color correction units. A G signal and a B signal are supplied to the B correction unit 17 and the G correction unit 18.

B修正部17は、修正要否判定部16において修正要と判定されたとき、入力G値にk×(B−G)閾値を加算した加算値を修正B値として出力する。修正B値は、入力G値に、(B−G)閾値に第1の定数であるkを乗算した第1の乗算値を加算した第1の加算値である。修正B値は、画像処理装置100より出力され、また、G修正部18に供給される。定数kは0.3〜0.9程度の値として、修正後の全体的な色味のバランスを考慮して決定すればよい。   When the correction necessity determination unit 16 determines that the correction is necessary, the B correction unit 17 outputs an addition value obtained by adding the k × (B−G) threshold to the input G value as a correction B value. The correction B value is a first addition value obtained by adding a first multiplication value obtained by multiplying the (G) threshold value by k, which is a first constant, to the input G value. The correction B value is output from the image processing apparatus 100 and is also supplied to the G correction unit 18. The constant k may be determined in consideration of the overall color balance after correction as a value of about 0.3 to 0.9.

B修正部17は、修正要否判定部16において修正不要と判定されたとき、入力B値をそのまま出力する。   When the correction necessity determination unit 16 determines that correction is unnecessary, the B correction unit 17 outputs the input B value as it is.

このB修正部17によるB値の修正により、修正B値と入力G値との差が(B−G)閾値を超えないB値とすることができる。係数kが1.0であるとき、修正B値と入力G値との差は(B−G)閾値に一致する。   By the correction of the B value by the B correction unit 17, it is possible to obtain a B value in which the difference between the corrected B value and the input G value does not exceed the (B−G) threshold. When the coefficient k is 1.0, the difference between the modified B value and the input G value matches the (B−G) threshold.

G修正部18は、修正要否判定部16において修正要と判定されたとき、入力G値に、入力B値と修正B値との差分に定数pを乗じた値であるp{入力B値−(入力G値+k×(B−G)閾値)}を加算した加算値を修正G値として出力する。修正G値は、入力G値に、入力B値と修正B値との差分に第2の定数を乗じた第2の乗算値を加算した第2の加算値である。修正G値は、画像処理装置100より出力される。定数pは0.05〜0.3程度の値として、修正後の全体的な色味のバランスを考慮して決定すればよい。   When the correction necessity determination unit 16 determines that correction is necessary, the G correction unit 18 multiplies the input G value by the difference between the input B value and the correction B value by the constant p, p {input B value An addition value obtained by adding − (input G value + k × (B−G) threshold value)} is output as a corrected G value. The correction G value is a second addition value obtained by adding a second multiplication value obtained by multiplying the difference between the input B value and the correction B value by the second constant to the input G value. The corrected G value is output from the image processing apparatus 100. The constant p may be determined in consideration of the overall color balance after correction as a value of about 0.05 to 0.3.

G修正部18は、修正要否判定部16において修正不要と判定されたとき、入力G値をそのまま出力する。   When the correction necessity determination unit 16 determines that the correction is unnecessary, the G correction unit 18 outputs the input G value as it is.

このG修正部18によるG値の修正により、入力B値が飽和に近く、入力G値が小さい注目画素が、赤味が過剰に強く補正されることを防止して、昼白色に近付けることができる。   Due to the correction of the G value by the G correction unit 18, the target pixel with the input B value close to saturation and the small input G value can be prevented from being excessively strongly corrected for redness, and it may be closer to daylight white it can.

図1において、入力R値はそのまま画像処理装置100より出力される。パープルフリンジが発生しているときには、入力G値及び入力B値は修正されて修正G値及び修正B値が出力される。入力R値、修正G値及び修正B値は出力画像データとして、画像処理装置100より出力される。パープルフリンジが発生していなければ、入力R値、入力G値及び入力B値がそのまま出力画像データとして画像処理装置100より出力される。   In FIG. 1, the input R value is output from the image processing apparatus 100 as it is. When purple fringes occur, the input G value and the input B value are corrected to output a corrected G value and a corrected B value. The input R value, the corrected G value, and the corrected B value are output from the image processing apparatus 100 as output image data. If purple fringes do not occur, the input R value, the input G value, and the input B value are output from the image processing apparatus 100 as output image data as they are.

図1では図示を省略しているが、必要に応じて、入力R値、修正G値及び修正B値(または、入力R値、入力G値及び入力B値)は、互いのタイミングが合わされて出力される。入力R値が修正G値及び修正B値を生成するのに必要な時間だけ遅延されるか、入力R値と修正G値及び修正B値とが一旦記憶部に保持されて出力される。   Although not shown in FIG. 1, the input R value, the corrected G value and the corrected B value (or the input R value, the input G value and the input B value) are mutually matched in timing as required. It is output. Either the input R value is delayed by the time required to generate the corrected G value and the corrected B value, or the input R value, the corrected G value, and the corrected B value are temporarily stored in the storage unit and output.

図2に示すフローチャートを用いて、第1実施形態の画像処理装置100の動作(画像処理方法)をさらに説明する。図2において、画像処理装置100が動作を開始すると、ステップS100にて、画像データを取り込む。画像データは、静止画像であっても動画像であってもよい。   The operation (image processing method) of the image processing apparatus 100 according to the first embodiment will be further described using the flowchart shown in FIG. In FIG. 2, when the image processing apparatus 100 starts operation, image data is taken in at step S100. The image data may be a still image or a moving image.

周辺白とび画素数カウント部11は、ステップS101にて、注目画素周辺の白とび画素数をカウントする。G閾値決定部12は、ステップS102にて、白とび画素数に応じてG閾値を決定する。(B−G)閾値決定部13は、ステップS103にて、白とび画素数に応じて(B−G)閾値を決定する。ステップS102とステップS103の順番は逆であってもよいし、同時であってもよい。   In step S101, the peripheral overexposure pixel count unit 11 counts the number of overexposure pixels around the pixel of interest. In step S102, the G threshold value determination unit 12 determines the G threshold value according to the number of overexposed pixels. (B-G) The threshold value determination unit 13 determines the (B-G) threshold value in accordance with the number of overexposure pixels in step S103. The order of step S102 and step S103 may be reversed or may be simultaneous.

G閾値判定部14には、ステップS104にて、入力G値<G閾値であるか否かを判定する。(B−G)閾値判定部15は、ステップS105にて、(B−G)値>(B−G)閾値であるか否かを判定する。ステップS104とステップS105の順番は逆であってもよいし、同時であってもよい。   The G threshold value determination unit 14 determines whether or not the input G value <G threshold value in step S104. (B−G) The threshold value determination unit 15 determines whether or not (B−G) value> (B−G) threshold in step S105. The order of step S104 and step S105 may be reversed or may be simultaneous.

修正要否判定部16は、ステップS106にて、注目画素が修正要であるか否かを判定する。修正要否判定部16は、入力G値<G閾値であり、かつ、(B−G)値>(B−G)閾値であるとき、注目画素を修正要と判定する。この条件を満たさなければ、修正要否判定部16は注目画素を修正不要と判定する。   In step S106, the correction necessity determination unit 16 determines whether or not the pixel of interest needs correction. The correction necessity determination unit 16 determines that the target pixel is required to be corrected when the input G value is less than the G threshold and the (BG) value is greater than the (BG) threshold. If this condition is not satisfied, the correction necessity determination unit 16 determines that the target pixel is not required to be corrected.

注目画素が修正要であれば(YES)、B修正部17は、ステップS107にて、入力G値にk×(B−G)閾値を加算した加算値を修正B値として出力する。G修正部18は、ステップS108にて、入力G値にp{入力B値−(入力G値+k×(B−G)閾値)}を加算した加算値を修正G値として出力して、画像処理装置100は処理をステップS119に移行させる。ステップS107とステップS108との順番は逆であってもよいし、同時であってもよい。   If the pixel of interest is required to be corrected (YES), the B correction unit 17 outputs an addition value obtained by adding the k × (B−G) threshold to the input G value as a correction B value in step S107. In step S108, the G correction unit 18 outputs, as a corrected G value, an added value obtained by adding p {input B value − (input G value + k × (B−G) threshold)} to the input G value. The processing device 100 shifts the processing to step S119. The order of step S107 and step S108 may be reversed or may be simultaneous.

一方、ステップS106にて注目画素が修正要でなければ(NO)、B修正部17は、ステップS117にて、入力B値をそのまま出力し、G修正部18は、ステップS118にて、入力G値をそのまま出力して、画像処理装置100は処理をステップS119に移行させる。ステップS117とステップS118との順番は逆であってもよいし、同時であってもよい。   On the other hand, if the pixel of interest is not required to be corrected at step S106 (NO), the B correction unit 17 outputs the input B value as it is at step S117, and the G correction unit 18 receives the input G at step S118. The value is output as it is, and the image processing apparatus 100 shifts the processing to step S119. The order of step S117 and step S118 may be reversed or may be simultaneous.

画像処理装置100は、ステップS119にて、注目画素が最終画素であったか否かを判定し、最終画素でなければ(NO)、ステップS100以降の処理を繰り返し、最終画素であれば(YES)、処理を終了させる。最終画素とは、静止画像であればフレーム内の最後の画素、動画像であれば入力画像データが停止したときの最後のフレーム内の最後の画素である。   The image processing apparatus 100 determines in step S119 whether or not the pixel of interest is the final pixel, and if it is not the final pixel (NO), repeats the processing after step S100, and if it is the final pixel (YES), End the process. The final pixel is the last pixel in the frame if it is a still image, and the last pixel in the last frame when the input image data is stopped if it is a moving image.

以上説明した第1実施形態の画像処理装置100において、周辺白とび画素数カウント部11〜修正要否判定部16によるパープルフリンジの有無を検出する簡易な構成によって、パープルフリンジを的確に検出することができる。   In the image processing apparatus 100 according to the first embodiment described above, purple fringes can be accurately detected by a simple configuration that detects the presence or absence of purple fringes by the peripheral overexposure pixel count unit 11 to the correction necessity determination unit 16. Can.

B修正部17及びG修正部18が上記のように入力B値及び入力G値を修正する代わりに、穴埋め処理または彩度低減処理等の他の修正方法によって入力B値及び入力G値を修正してもよい。B修正部17及びG修正部18が上記のように入力B値及び入力G値を修正すると画質劣化がほとんどなくパープルフリンジを修正することができるので、B修正部17及びG修正部18が上記のように入力B値及び入力G値を修正することが好ましい。   Instead of the B correction unit 17 and the G correction unit 18 correcting the input B value and the input G value as described above, the input B value and the input G value are corrected by another correction method such as hole filling processing or saturation reduction processing. You may When the B correction unit 17 and the G correction unit 18 correct the input B value and the input G value as described above, the purple fringe can be corrected with almost no deterioration in the image quality. Therefore, the B correction unit 17 and the G correction unit 18 It is preferable to correct the input B value and the input G value as follows.

<第2実施形態>
パープルフリンジとは、B信号の飽和度が高い状態であるから、白とびが発生している画素周辺において、B信号が一定以上であって、B信号がG信号より一定以上大きい状態であると言うこともできる。第2実施形態の画像処理装置200は、B信号が一定以上であって、B信号がG信号より一定以上大きい状態をパープルフリンジと判定して、パープルフリンジを低減するために色を修正する。
Second Embodiment
Purple fringing means that the saturation level of the B signal is high, so if the B signal is above a certain level and the B signal is above the G signal by a certain level or more around the pixel where overexposure occurs. It can also be said. The image processing apparatus 200 according to the second embodiment determines that a state in which the B signal is at least a predetermined level and the B signal is at least a predetermined level larger than the G signal is purple fringe, and corrects color to reduce purple fringe.

第1実施形態においては、注目画素の周辺画素における白とびの状態の画素の画素数をカウントしているが、第2実施形態においては、1フレーム内において一定の画素数を超える画素数が白とびの状態の画素であれば、白とびが発生しているとみなすこととする。   In the first embodiment, the number of white-out pixels in the peripheral pixels of the pixel of interest is counted, but in the second embodiment, the number of pixels exceeding a certain number of pixels in one frame is white. In the case of a pixel in a state of skipping, it is assumed that overexposure has occurred.

図3に示す第2実施形態の画像処理装置200には、撮像装置が被写体を撮像することによって生成された撮像画像が入力画像データとして供給される。第2実施形態の画像処理装置200においては、入力画像データは、R,G,B信号によって構成された動画像のデジタル画像信号である。入力画像データは8ビットで量子化されており、各画素値は0〜255のいずれかの値をとるものとする。注目画素のR,G,B信号の画素値をそれぞれ入力R値、入力G値、入力B値と称することとする。   In the image processing apparatus 200 according to the second embodiment shown in FIG. 3, a captured image generated by the imaging apparatus capturing an image of a subject is supplied as input image data. In the image processing apparatus 200 of the second embodiment, the input image data is a digital image signal of a moving image constituted by R, G and B signals. The input image data is quantized by 8 bits, and each pixel value takes any value from 0 to 255. The pixel values of the R, G, and B signals of the pixel of interest are referred to as an input R value, an input G value, and an input B value, respectively.

図3において、白とび画素判定部21は、画素ごとに、入力R値、入力G値、入力B値の全てが所定の閾値を超えるか否かを判定し、全てが閾値を超える画素を白とびの状態の画素と判定する。閾値は例えば220である。白とび画素判定部21による画素単位の判定結果は、白とび画素数累計部22に供給される。白とび画素数累計部22は、各フレーム内で白とびの状態の画素と判定された画素数を累計する。白とび画素数累計部22による累計白とび画素数は、白とび画素数閾値判定部23に供給される。   In FIG. 3, the overexposure pixel determination unit 21 determines whether all of the input R value, the input G value, and the input B value exceed a predetermined threshold for each pixel, and whites all pixels exceeding the threshold. It is determined that the pixel is in the jump state. The threshold is, for example, 220. The determination result of the pixel unit by the overexposure pixel determination unit 21 is supplied to the overexposure pixel number accumulation unit 22. The overexposure pixel count accumulation unit 22 accumulates the number of pixels determined to be the pixels in the overexposure state in each frame. The accumulated overexposure pixel count by the overexposure pixel count accumulation unit 22 is supplied to the overexposure pixel count threshold determination unit 23.

白とび画素数累計部22は、フレーム全体で白とびの状態の画素と判定された画素数を累計してもよいし、フレームの一部の領域内で白とびの状態の画素と判定された画素数を累計してもよい。   The overexposure pixel number accumulation unit 22 may accumulate the number of pixels determined to be the pixels in the overexposure state in the entire frame, or it is determined to be the pixels in the overexposure state within a partial area of the frame The number of pixels may be accumulated.

白とび画素数閾値判定部23は、累計白とび画素数が白とび画素数閾値を超えるか否かを判定する。白とび画素数閾値は、フレームの全画素数の数パーセント程度(1〜9%)とすればよい。白とび画素数閾値判定部23による判定結果は、修正要否判定部26に供給される。   The overexposure pixel number threshold determination unit 23 determines whether the accumulated overexposure pixel number exceeds the overexposure pixel number threshold. The overexposure pixel number threshold may be set to about several percent (1 to 9%) of the total number of pixels of the frame. The determination result by the overexposure pixel number threshold determination unit 23 is supplied to the correction necessity determination unit 26.

白とび画素数累計部22において累計白とび画素数がフレーム単位で得られるので、修正要否判定部26に白とび画素数閾値判定部23による判定結果が供給されるタイミングは、1フレームの全画素が入力された後となる。従って、修正要否判定部26が、白とび画素数閾値判定部23による判定結果を用いて、注目画素修正するか否かを判定するのは次のフレームとなる。即ち、修正要否判定部26は、前フレームにおける判定結果を用いて注目画素修正するか否かを判定する。   Since the overexposure pixel count accumulation unit 22 obtains the accumulated overexposure pixel count in frame units, the timing when the overexposure pixel count threshold determination unit 23 supplies the determination result by the overexposure necessity determination unit 26 is one frame. After the pixel is input. Therefore, it is the next frame that the correction necessity determination unit 26 determines whether to correct the pixel of interest using the determination result by the overexposure pixel number threshold determination unit 23. That is, the correction necessity determination unit 26 determines whether to correct the pixel of interest using the determination result in the previous frame.

B閾値判定部24には、B信号が供給される。B閾値判定部24には、入力B値と比較される閾値であるB閾値が設定されている。B閾値は、例えば120程度とすればよい。B閾値判定部24は、入力B値>B閾値であるか否かを判定する。B閾値判定部24は、上記の次のフレームに相当する現在フレームにおいて、入力B値>B閾値であるか否かを判定する。B閾値判定部24による判定結果は、修正要否判定部26に供給される。   The B threshold value determination unit 24 is supplied with the B signal. In the B threshold determination unit 24, a B threshold which is a threshold to be compared with the input B value is set. The B threshold may be, for example, about 120. The B threshold determination unit 24 determines whether or not input B value> B threshold. The B threshold value determination unit 24 determines whether or not the input B value> B threshold value in the current frame corresponding to the above-mentioned next frame. The determination result by the B threshold determination unit 24 is supplied to the correction necessity determination unit 26.

(B−G)閾値判定部25には、G信号及びB信号が供給される。(B−G)閾値判定部25には、(B−G)値と比較される閾値である(B−G)閾値が設定されている。(B−G)閾値は、例えば80程度とすればよい。(B−G)閾値判定部25は、(B−G)値>(B−G)閾値であるか否かを判定する。(B−G)閾値判定部25は、現在フレームにおいて(B−G)値>(B−G)閾値であるか否かを判定する。(B−G)閾値判定部25による判定結果は、修正要否判定部26に供給される。   (B−G) The threshold value determination unit 25 is supplied with the G signal and the B signal. In the (B−G) threshold value determination unit 25, a (B−G) threshold value is set which is a threshold value to be compared with the (B−G) value. The threshold value (BG) may be, for example, about 80. (B−G) The threshold determination unit 25 determines whether (B−G) value> (B−G) threshold. (B-G) The threshold determination unit 25 determines whether or not (B-G) value> (B-G) threshold in the current frame. (B−G) The determination result by the threshold value determination unit 25 is supplied to the correction necessity determination unit 26.

修正要否判定部26は、白とび画素数閾値判定部23において累計白とび画素数>白とび画素数閾値と判定され、B閾値判定部24において入力B値>B閾値であると判定され、(B−G)閾値判定部25において(B−G)値>(B−G)閾値であると判定されたとき、注目画素にパープルフリンジが発生していて注目画素を修正要と判定する。修正要否判定部26による修正要否の判定結果は、色修正部であるB修正部27、G修正部28、及びR修正部29に供給される。   The correction necessity determination unit 26 determines that the overexposure pixel count threshold determination unit 23 determines that the total overexposure pixel count> overexposure pixel count threshold and the B threshold determination unit 24 determines that the input B value> the B threshold, (B-G) When it is determined by the threshold value determination unit 25 that (B-G) value> (B-G) threshold value, purple fringe is generated in the target pixel and the target pixel is determined to be corrected. The determination result of the necessity of correction by the correction necessity determination unit 26 is supplied to the B correction unit 27, the G correction unit 28, and the R correction unit 29, which are color correction units.

B修正部27及びG修正部28には、G信号及びB信号が供給される。R修正部29にはR信号が供給される。   A G signal and a B signal are supplied to the B correction unit 27 and the G correction unit 28. The R correction unit 29 is supplied with an R signal.

B修正部27は、修正要否判定部26において修正要と判定されたとき、入力G値にk×(B−G)閾値を加算した加算値を修正B値として出力する。修正B値は、入力G値に、(B−G)閾値に第1の定数であるkを乗算した第1の乗算値を加算した第1の加算値である。修正B値は、画像処理装置200より出力され、また、G修正部28及びR修正部29に供給される。定数kは0.3〜0.9程度の値として、修正後の全体的な色味のバランスを考慮して決定すればよい。   When the correction necessity determination unit 26 determines that the correction is necessary, the B correction unit 27 outputs an addition value obtained by adding the k × (B−G) threshold to the input G value as a correction B value. The correction B value is a first addition value obtained by adding a first multiplication value obtained by multiplying the (G) threshold value by k, which is a first constant, to the input G value. The correction B value is output from the image processing apparatus 200 and is also supplied to the G correction unit 28 and the R correction unit 29. The constant k may be determined in consideration of the overall color balance after correction as a value of about 0.3 to 0.9.

B修正部27は、修正要否判定部26において修正不要と判定されたとき、入力B値をそのまま出力する。   When the correction necessity determination unit 26 determines that the correction is unnecessary, the B correction unit 27 outputs the input B value as it is.

このB修正部27によるB値の修正により、修正B値と入力G値との差が(B−G)閾値を超えないB値とすることができる。係数kが1.0であるとき、修正B値と入力G値との差は(B−G)閾値に一致する。   By the correction of the B value by the B correction unit 27, it is possible to obtain a B value in which the difference between the corrected B value and the input G value does not exceed the (B−G) threshold. When the coefficient k is 1.0, the difference between the modified B value and the input G value matches the (B−G) threshold.

G修正部28は、修正要否判定部26において修正要と判定されたとき、入力G値に、入力B値と修正B値との差分に定数pを乗じた値であるp{入力B値−(入力G値+k×(B−G)閾値)}を加算した加算値を修正G値として出力する。修正G値は、入力G値に、入力B値と修正B値との差分に第2の定数を乗じた第2の乗算値を加算した第2の加算値である。修正G値は、画像処理装置200より出力される。定数pは0.05〜0.3程度の値として、修正後の全体的な色味のバランスを考慮して決定すればよい。   When it is determined that correction is necessary in the correction necessity determination unit 26, the G correction unit 28 multiplies the difference between the input B value and the correction B value by the constant p to the input G value, p {input B value An addition value obtained by adding − (input G value + k × (B−G) threshold value)} is output as a corrected G value. The correction G value is a second addition value obtained by adding a second multiplication value obtained by multiplying the difference between the input B value and the correction B value by the second constant to the input G value. The corrected G value is output from the image processing apparatus 200. The constant p may be determined in consideration of the overall color balance after correction as a value of about 0.05 to 0.3.

G修正部28は、修正要否判定部26において修正不要と判定されたとき、入力G値をそのまま出力する。   When the correction necessity determination unit 26 determines that the correction is unnecessary, the G correction unit 28 outputs the input G value as it is.

このG修正部28によるG値の修正により、入力B値が飽和に近く、入力G値が小さい注目画素が、赤味が過剰に強く補正されることを防止して、昼白色に近付けることができる。   Due to the correction of the G value by the G correction unit 28, the target pixel with the input B value close to saturation and the small input G value can be prevented from being excessively strongly corrected for redness, and it may be closer to daylight white it can.

R修正部29は、修正要否判定部26において修正要と判定されたとき、入力R値から、入力B値と修正B値との差分に定数qを乗じた値であるq{入力B値−(入力G値+k×(B−G)閾値)}を減算した減算値を修正R値として出力する。修正R値は、入力R値から、入力B値と修正B値との差分に第3の定数を乗じた第3の乗算値を減算した減算値である。修正R値は、画像処理装置200より出力される。定数qは0.05〜0.1程度の値として、修正後の全体的な色味のバランスを考慮して決定すればよい。   When it is determined that correction is necessary in the correction necessity determination unit 26, the R correction unit 29 multiplies the difference between the input B value and the correction B value from the input R value by the constant q, q {input B value The subtraction value obtained by subtracting − (input G value + k × (B−G) threshold value)} is output as a corrected R value. The correction R value is a subtraction value obtained by subtracting the third multiplication value obtained by multiplying the difference between the input B value and the correction B value by the third constant from the input R value. The corrected R value is output from the image processing apparatus 200. The constant q may be determined in consideration of the overall color balance after correction as a value of about 0.05 to 0.1.

R修正部29は、修正要否判定部26において修正不要と判定されたとき、入力R値をそのまま出力する。   When the correction necessity determination unit 26 determines that the correction is unnecessary, the R correction unit 29 outputs the input R value as it is.

このR修正部29によるR値の修正により、入力B値が飽和に近く、入力G値が小さい注目画素を昼白色に近付けるよう補正してもなお赤味の強さが残る場合にR値を低減させるので、さらに自然な色に修正することが可能となる。   The R value is corrected by the R correction unit 29 such that the input B value is close to saturation, and the reddish intensity still remains even if the target pixel with a small input G value is corrected to be close to daylight white. Since it reduces, it becomes possible to correct to a more natural color.

図3において、パープルフリンジが発生しているときには、修正R値、修正G値及び修正B値が出力画像データとして画像処理装置200より出力され、パープルフリンジが発生していなければ、入力R値、入力G値及び入力B値がそのまま出力画像データとして画像処理装置200より出力される。   In FIG. 3, when purple fringes occur, the corrected R value, corrected G value and corrected B value are output from the image processing apparatus 200 as output image data, and if purple fringes do not occur, the input R value, The input G value and the input B value are output from the image processing apparatus 200 as output image data as they are.

同様に、図3において、必要に応じて、修正R値、修正G値及び修正B値(または、入力R値、入力G値及び入力B値)は、互いのタイミングが合わされて出力される。   Similarly, in FIG. 3, the corrected R value, the corrected G value, and the corrected B value (or the input R value, the input G value and the input B value) are output in timing with each other as needed.

図4に示すフローチャートを用いて、第2実施形態の画像処理装置200の動作(画像処理方法)をさらに説明する。図4において、画像処理装置200が動作を開始すると、ステップS200にて、画像データを取り込む。ここでの画像データは動画像である。   The operation (image processing method) of the image processing apparatus 200 of the second embodiment will be further described using the flowchart shown in FIG. In FIG. 4, when the image processing apparatus 200 starts operation, image data is fetched in step S200. The image data here is a moving image.

白とび画素判定部21は、ステップS201にて、画素ごとに白とび画素であるか否かを判定する。白とび画素数累計部22は、ステップS202にて、フレーム単位で白とび画素数を累計する。白とび画素数閾値判定部23は、ステップS203にて、累計白とび画素数>白とび画素数閾値であるか否かを判定する。   In step S201, the overexposure pixel determination unit 21 determines whether each pixel is an overexposure pixel. In step S202, the overexposure pixel count accumulation unit 22 accumulates the overexposure pixel count in units of frames. In step S203, the overexposure pixel count threshold determination unit 23 determines whether the total overexposure pixel count> overexposure pixel count threshold is satisfied.

B閾値判定部24は、ステップS204にて、入力B値>B閾値であるか否かを判定する。(B−G)閾値判定部25は、ステップS205にて、(B−G)値>(B−G)閾値であるか否かを判定する。   The B threshold value determination unit 24 determines whether or not the input B value> B threshold value in step S204. (B−G) The threshold value determination unit 25 determines whether or not (B−G) value> (B−G) threshold in step S205.

修正要否判定部26は、ステップS206にて、注目画素が修正要であるか否かを判定する。修正要否判定部26は、累計白とび画素数>白とび画素数閾値、かつ、入力B値>B閾値、かつ、(B−G)値>(B−G)閾値であるとき、注目画素を修正要と判定する。   In step S206, the correction necessity determination unit 26 determines whether or not the pixel of interest needs correction. The correction necessity determination unit 26 determines the pixel of interest when the cumulative overexposure pixel number> overexposure pixel number threshold value, and the input B value> B threshold value and the (B−G) value> (B−G) threshold value. Is determined to be necessary.

注目画素が修正要であれば(YES)、B修正部27は、ステップS207にて、入力G値にk×(B−G)閾値を加算した加算値を修正B値として出力する。G修正部28は、ステップS208にて、入力G値にp{入力B値−(入力G値+k×(B−G)閾値)}を加算した加算値を修正G値として出力する。R修正部29は、ステップS209にて、入力R値からq{入力B値−(入力G値+k×(B−G)閾値)}を減算した減算値を修正R値として出力して、画像処理装置200は処理をステップS210に移行させる。   If the pixel of interest is required to be corrected (YES), the B correction unit 27 outputs an addition value obtained by adding the k × (B−G) threshold to the input G value as a correction B value in step S207. In step S208, the G correction unit 28 outputs an added value obtained by adding p {input B value− (input G value + k × (B−G) threshold value)} to the input G value as a corrected G value. In step S209, the R correction unit 29 outputs a subtraction value obtained by subtracting q {input B value − (input G value + k × (BG) threshold)} from the input R value as a corrected R value, The processing device 200 shifts the processing to step S210.

ステップS207〜ステップS209の順番は任意であって、同時であってもよい。   The order of step S207 to step S209 is arbitrary and may be simultaneous.

一方、ステップS206にて注目画素が修正要でなければ(NO)、B修正部27は、ステップS217にて、入力B値をそのまま出力する。G修正部18は、ステップS218にて、入力G値をそのまま出力する。R修正部29は、ステップS219にて、入力Rをそのまま出力して、画像処理装置200は処理をステップS210に移行させる。   On the other hand, if the target pixel is not required to be corrected in step S206 (NO), the B correction unit 27 outputs the input B value as it is in step S217. In step S218, the G correction unit 18 outputs the input G value as it is. In step S219, the R correction unit 29 outputs the input R as it is, and the image processing apparatus 200 shifts the processing to step S210.

ステップS217〜ステップS219の順番は任意であって、同時であってもよい。   The order of step S217 to step S219 is arbitrary and may be simultaneous.

画像処理装置200は、ステップS210にて、注目画素が最終画素であったか否かを判定し、最終画素でなければ(NO)、ステップS200以降の処理を繰り返し、最終画素であれば(YES)、処理を終了させる。最終画素とは、入力画像データが停止したときの最後のフレーム内の最後の画素である。   The image processing apparatus 200 determines in step S210 whether or not the pixel of interest is the final pixel, and if it is not the final pixel (NO), repeats the processing after step S200, and if it is the final pixel (YES), End the process. The last pixel is the last pixel in the last frame when the input image data stops.

以上説明した第2実施形態の画像処理装置200において、白とび画素判定部21〜修正要否判定部26によるパープルフリンジの有無を検出する簡易な構成によって、パープルフリンジを的確に検出することができる。   In the image processing apparatus 200 of the second embodiment described above, purple fringes can be accurately detected by a simple configuration that detects the presence or absence of purple fringes by the overexposure pixel determination unit 21 to the correction necessity determination unit 26. .

B修正部27、G修正部28、及びR修正部29が上記のように入力B値、入力G値及び入力R値を修正する代わりに、穴埋め処理または彩度低減処理等の他の修正方法によって入力B値、入力G値及び入力R値を修正してもよい。B修正部27、G修正部28、及びR修正部29が上記のように入力B値、入力G値及び入力R値を修正すると画質劣化がほとんどなくパープルフリンジを修正することができるので、B修正部27、G修正部28、及びR修正部29は上記のように入力B値、入力G値及び入力R値を修正することが好ましい。   Instead of the B correction unit 27, the G correction unit 28, and the R correction unit 29 correcting the input B value, the input G value, and the input R value as described above, other correction methods such as hole filling processing or saturation reduction processing The input B value, the input G value, and the input R value may be corrected by When the B correction unit 27, the G correction unit 28, and the R correction unit 29 correct the input B value, the input G value, and the input R value as described above, the purple fringe can be corrected with almost no image quality deterioration. It is preferable that the correction unit 27, the G correction unit 28, and the R correction unit 29 correct the input B value, the input G value, and the input R value as described above.

<変形例>
第1実施形態の画像処理装置100においては、注目画素の周辺画素における白とび画素の画素数に基づいて白とびが発生しているか否かを判定している。これを第1の白とび発生判定方法とする。第2実施形態の画像処理装置200においては、前フレームにおける白とび画素の画素数にも基づいて白とびが発生しているか否かを判定している。これを第2の白とび発生判定方法とする。
<Modification>
In the image processing apparatus 100 according to the first embodiment, it is determined whether overexposure occurs or not based on the number of overexposure pixels in the peripheral pixels of the target pixel. This will be referred to as a first overexposure generation determination method. In the image processing apparatus 200 of the second embodiment, it is determined whether overexposure has occurred based on the number of overexposure pixels in the previous frame. This will be referred to as a second whiteout occurrence determination method.

第1実施形態の画像処理装置100においては、G信号が一定未満であって、B信号がG信号より一定以上大きい状態であるとき、パープルフリンジが発生していると判定している。これを第1のパープルフリンジ判定方法とする。第2実施形態の画像処理装置200においては、B信号が一定以上であって、B信号がG信号より一定以上大きい状態であるとき、パープルフリンジが発生していると判定している。これを第2のパープルフリンジ判定方法とする。   In the image processing apparatus 100 according to the first embodiment, when the G signal is less than a certain value and the B signal is larger than the G signal by a certain amount or more, it is determined that purple fringes are generated. This is the first purple fringe determination method. In the image processing apparatus 200 according to the second embodiment, it is determined that purple fringes occur when the B signal is equal to or more than a predetermined level and the B signal is larger than the G signal by a predetermined number or more. This is the second purple fringe determination method.

第1実施形態の画像処理装置100においては、白とび画素数に応じてG閾値及び(B−G)閾値を可変しており、第2実施形態の画像処理装置200においては、白とび画素数にかかわらずB閾値及び(B−G)閾値は一定である。第1実施形態の画像処理装置100においてはG,B信号を補正しており、第2実施形態の画像処理装置200においてはR,G,B信号を補正している。   In the image processing apparatus 100 of the first embodiment, the G threshold and the (B-G) threshold are varied according to the number of overexposed pixels, and in the image processing apparatus 200 according to the second embodiment, the number of overexposed pixels is The B threshold and the (B-G) threshold are constant regardless of. In the image processing apparatus 100 of the first embodiment, the G and B signals are corrected, and in the image processing apparatus 200 of the second embodiment, the R, G and B signals are corrected.

第1実施形態の画像処理装置100は、第1の白とび発生判定方法、第1のパープルフリンジ判定方法、閾値可変、G,B信号の補正の組み合わせを採用した構成である。第2実施形態の画像処理装置200は、第2の白とび発生判定方法、第2のパープルフリンジ判定方法、閾値一定、R,G,B信号の補正の組み合わせを採用した構成である。   The image processing apparatus 100 according to the first embodiment has a configuration in which a combination of a first overexposure determination method, a first purple fringe determination method, threshold variation, and correction of G and B signals is adopted. The image processing apparatus 200 according to the second embodiment has a configuration in which a combination of a second overexposure determination method, a second purple fringe determination method, a constant threshold, and correction of R, G, and B signals is employed.

画像処理装置は、変形例として、第1及び第2実施形態の組み合わせ以外の任意の組み合わせを採用することができる。   The image processing apparatus can adopt any combination other than the combination of the first and second embodiments as a modification.

本発明は以上説明した第1及び第2実施形態または変形例に限定されるものではなく、本発明の要旨を逸脱しない範囲において種々変更可能である。画像処理装置は、ハードウェアで構成されてもよいし、ソフトウェアで構成されてもよく、ハードウェアとソフトウェアとの使い分けは任意である。   The present invention is not limited to the first and second embodiments or modifications described above, and various modifications can be made without departing from the scope of the present invention. The image processing apparatus may be configured by hardware or software, and the use of hardware and software is optional.

画像処理装置は集積回路(LSI)で構成されてもよいし、コンピュータの中央処理装置(CPU)及びメモリで構成されてもよい。メモリに記憶されたコンピュータプログラム(画像処理プログラム)をCPUによって実行させることによって、第1実施形態の画像処理装置100、第2実施形態の画像処理装置200、または、変形例の画像処理装置が構成されてもよい。画像処理プログラムは非一時的な記憶媒体に記憶されて提供されてもよい。   The image processing apparatus may be configured by an integrated circuit (LSI) or may be configured by a central processing unit (CPU) and a memory of a computer. The image processing apparatus 100 of the first embodiment, the image processing apparatus 200 of the second embodiment, or the image processing apparatus of the modification is configured by causing a CPU to execute a computer program (image processing program) stored in a memory. It may be done. The image processing program may be stored and provided on a non-transitory storage medium.

11 周辺白とび画素数カウント部
12 G閾値決定部
13 (B−G)閾値決定部
14 G閾値判定部
15,25 (B−G)閾値判定部
16,26 修正要否判定部
17,27 B修正部(色修正部)
18,28 G修正部(色修正部)
21 白とび画素判定部
22 白とび画素数累計部
23 白とび画素数閾値判定部
24 B閾値判定部
29 R修正部(色修正部)
100,200 画像処理装置
11 peripheral overexposure pixel count unit 12 G threshold determination unit 13 (BG) threshold determination unit 14 G threshold determination unit 15, 25 (BG) threshold determination unit 16, 26 correction necessity determination unit 17, 27 B Correction unit (color correction unit)
18,28 G correction unit (color correction unit)
21 overexposure pixel determination unit 22 overexposure pixel count accumulation unit 23 overexposure pixel count threshold determination unit 24 B threshold determination unit 29 R correction unit (color correction unit)
100, 200 image processing device

G閾値判定部14は、ステップS104にて、入力G値<G閾値であるか否かを判定する。(B−G)閾値判定部15は、ステップS105にて、(B−G)値>(B−G)閾値であるか否かを判定する。ステップS104とステップS105の順番は逆であってもよいし、同時であってもよい。 G threshold determination unit 1 4, at step S104, determines whether the input G value <G threshold. (B−G) The threshold value determination unit 15 determines whether or not (B−G) value> (B−G) threshold in step S105. The order of step S104 and step S105 may be reversed or may be simultaneous.

Claims (4)

入力されたR,G,B信号によって構成された画像データにおける画素ごとに白とびの状態の画素であるか否かを判定する白とび画素判定部と、
前記画像データにおけるフレーム内またはフレームの一部の領域内で、前記白とび画素判定部によって白とびの状態の画素と判定された画素数を累計する白とび画素数累計部と、
前記白とび画素数累計部で得られた累計白とび画素数が白とび画素数閾値を超えるか否かを判定する白とび画素数閾値判定部と、
注目画素におけるB信号がB閾値より大きいか否かを判定するB閾値判定部と、
前記注目画素におけるB信号からG信号を減算した(B−G)値が(B−G)閾値より大きいか否かを判定する(B−G)閾値判定部と、
前記白とび画素数閾値判定部において累計白とび画素数が白とび画素数閾値を超えると判定され、前記B閾値判定部において前記注目画素におけるB信号がB閾値より大きい判定され、前記(B−G)閾値判定部において前記注目画素における(B−G)値が前記(B−G)閾値より大きいと判定されたとき、前記注目画素に偽色が発生しているとして前記注目画素の色を修正要と判定する修正要否判定部と、
前記修正要否判定部において前記注目画素の色が修正要と判定されたとき、前記注目画素に発生している偽色を低減するよう、少なくとも、前記注目画素におけるG信号及びB信号を修正する色修正部と、
を備えることを特徴とする画像処理装置。
An overexposure pixel determination unit that determines whether each pixel in the image data configured by the input R, G, and B signals is an overexposure pixel;
An overexposure pixel number accumulation unit which accumulates the number of pixels determined as the pixels in the overexposure state by the overexposure pixel determination unit within the frame or a partial region of the frame in the image data;
An overexposure pixel number threshold determination unit that determines whether the cumulative overexposure pixel number obtained in the overexposure pixel number accumulation unit exceeds the overexposure pixel number threshold;
A B threshold determination unit that determines whether or not the B signal at the pixel of interest is greater than the B threshold;
(B−G) threshold determination unit that determines whether (B−G) value obtained by subtracting G signal from B signal in the target pixel is larger than (B−G) threshold;
The overexposure pixel number threshold determination unit determines that the total overexposure pixel number exceeds the overexposure pixel number threshold, and the B threshold determination unit determines that the B signal in the target pixel is greater than the B threshold, G) When it is determined that the (BG) value in the target pixel is larger than the (BG) threshold in the threshold determination unit, the color of the target pixel is determined as false color being generated in the target pixel A correction necessity determination unit that determines that correction is necessary,
When the correction necessity determination unit determines that the color of the target pixel is required to be corrected, at least the G signal and the B signal in the target pixel are corrected so as to reduce the false color occurring in the target pixel. A color correction unit,
An image processing apparatus comprising:
前記色修正部は、前記注目画素におけるG信号に、前記(B−G)閾値に第1の定数を乗算した第1の乗算値を加算した第1の加算値を修正B値とすることを特徴とする請求項1に記載の画像処理装置。   The color correction unit sets a first addition value obtained by adding a first multiplication value obtained by multiplying the (B−G) threshold value by the first constant to the G signal in the target pixel as a corrected B value. The image processing apparatus according to claim 1, characterized in that 前記色修正部は、前記注目画素におけるG信号に、前記注目画素におけるB信号と前記修正B値との差分に第2の定数を乗じた第2の乗算値を加算した第2の加算値を修正G値とすることを特徴とする請求項1または2に記載の画像処理装置。   The color correction unit adds a second addition value obtained by adding a second multiplication value obtained by multiplying a difference between the B signal in the pixel of interest and the corrected B value to a G signal in the pixel of interest and a second constant. The image processing apparatus according to claim 1, wherein the correction G value is used. 前記色修正部は、前記注目画素におけるG信号及びB信号に加えてR信号を修正し、
前記色修正部は、前記注目画素におけるR信号から、前記注目画素におけるB信号と前記修正B値との差分に第3の定数を乗じた第3の乗算値を減算した減算値を修正R値とすることを特徴とする請求項1〜3のいずれか1項に記載の画像処理装置。
The color correction unit corrects an R signal in addition to the G signal and the B signal in the target pixel,
The color correction unit corrects a subtraction value obtained by subtracting a third multiplication value obtained by multiplying a difference between the B signal at the target pixel and the corrected B value from the R signal at the target pixel by a third constant. The image processing apparatus according to any one of claims 1 to 3, characterized in that:
JP2017242374A 2017-12-19 2017-12-19 Image processing device Active JP6787303B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2017242374A JP6787303B2 (en) 2017-12-19 2017-12-19 Image processing device
US16/158,721 US10701328B2 (en) 2017-12-19 2018-10-12 Image processing device, image processing method, and image processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017242374A JP6787303B2 (en) 2017-12-19 2017-12-19 Image processing device

Publications (2)

Publication Number Publication Date
JP2019110443A true JP2019110443A (en) 2019-07-04
JP6787303B2 JP6787303B2 (en) 2020-11-18

Family

ID=67180279

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017242374A Active JP6787303B2 (en) 2017-12-19 2017-12-19 Image processing device

Country Status (1)

Country Link
JP (1) JP6787303B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011507437A (en) * 2008-01-28 2011-03-03 テセラ テクノロジーズ アイルランド リミテッド Method and apparatus for coping with chromatic aberration and purple fringing
WO2011118071A1 (en) * 2010-03-25 2011-09-29 富士フイルム株式会社 Image processing method and device, image processing program, and medium having said program recorded thereon
JP2015228582A (en) * 2014-05-30 2015-12-17 株式会社ソシオネクスト Image processing device, image processing method and image processing program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011507437A (en) * 2008-01-28 2011-03-03 テセラ テクノロジーズ アイルランド リミテッド Method and apparatus for coping with chromatic aberration and purple fringing
WO2011118071A1 (en) * 2010-03-25 2011-09-29 富士フイルム株式会社 Image processing method and device, image processing program, and medium having said program recorded thereon
JP2015228582A (en) * 2014-05-30 2015-12-17 株式会社ソシオネクスト Image processing device, image processing method and image processing program

Also Published As

Publication number Publication date
JP6787303B2 (en) 2020-11-18

Similar Documents

Publication Publication Date Title
US11838649B2 (en) Image capturing device and control method thereof and medium
CN102053453B (en) Imaging device, method for controlling imaging device
TWI573464B (en) An image processing apparatus, an image processing method, an image processing program, and a recording medium
US11941791B2 (en) High-dynamic-range image generation with pre-combination denoising
US9582868B2 (en) Image processing apparatus that appropriately performs tone correction in low-illuminance environment, image processing method therefor, and storage medium
CN102970488A (en) Image processing apparatus, image processing method, and program
JP6312487B2 (en) Image processing apparatus, control method therefor, and program
US9491381B2 (en) Image processing apparatus and control method for image processing apparatus
US9558395B2 (en) Image correction device, image correction method, and imaging device
US9892497B2 (en) Image processing apparatus, imaging apparatus, and image processing method
JP5541205B2 (en) Image processing apparatus, imaging apparatus, image processing program, and image processing method
US20190238804A1 (en) Image processing apparatus, image processing method, and storage medium
US11153467B2 (en) Image processing
US20220394224A1 (en) Apparatus, control method, and storage medium
US8102444B2 (en) Method and apparatus for post noise reduction black level correction
JP6822391B2 (en) Image processing device
US11445158B2 (en) Image processing apparatus, image capturing apparatus, image processing method, and storage medium
JP6652303B2 (en) Flash band determination device, control method thereof, control program, and imaging device
KR101005769B1 (en) Auto exposure control and auto white balance for high dynamic range situations
JP6787303B2 (en) Image processing device
CN119383433A (en) Camera device, control method, storage medium and program product
US10701328B2 (en) Image processing device, image processing method, and image processing program
US9007491B2 (en) Image processing apparatus and control method thereof
JP2002112108A (en) Image processing device
JP4322258B2 (en) Noise processing apparatus and imaging apparatus

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180914

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200330

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200827

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20200929

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20201012

R150 Certificate of patent or registration of utility model

Ref document number: 6787303

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150