JP2022034185A - Color adjustment method - Google Patents

Color adjustment method Download PDF

Info

Publication number
JP2022034185A
JP2022034185A JP2020137858A JP2020137858A JP2022034185A JP 2022034185 A JP2022034185 A JP 2022034185A JP 2020137858 A JP2020137858 A JP 2020137858A JP 2020137858 A JP2020137858 A JP 2020137858A JP 2022034185 A JP2022034185 A JP 2022034185A
Authority
JP
Japan
Prior art keywords
color
image
adjustment
amount
threshold value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2020137858A
Other languages
Japanese (ja)
Inventor
賢五 水野
Kengo Mizuno
弘武 北島
Hirotake Kitajima
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2020137858A priority Critical patent/JP2022034185A/en
Publication of JP2022034185A publication Critical patent/JP2022034185A/en
Pending legal-status Critical Current

Links

Images

Abstract

To perform proper white balance control independently of a subject size and a background color.SOLUTION: Provided is a color adjustment method including first determination processing SA110, first adjustment processing SA120, and second adjustment processing SA130 as follows. At the first determination processing SA110, it is determined whether or not a change amount ΔL in a brightness adjustment amount of a picked-up image captured by an imaging device is larger than a first threshold th1. The first adjustment processing SA120 is executed in a case where the determination result at the first determination processing SA110 is negative. At the first adjustment processing SA120, a color of the picked-up image is adjusted on the basis of an average value of a color temperature in the picked-up image. The second adjustment processing SA130 is executed in a case where the determination result at the first determination processing SA110 is affirmative. At the second adjustment processing SA130, the color of the picked-up image is adjusted on the basis of an average value of a color temperature in a correction image obtained by applying processing of decreasing brightness to the picked-up image.SELECTED DRAWING: Figure 3

Description

本開示は、撮像画像の色調整方法、に関する。 The present disclosure relates to a color adjustment method for captured images.

例えばデジタルカメラでは、撮像時の光源の種類が撮像画像から推定され、撮像画像において白色となるべき領域が正しく白色となるように色調整が行われる。この色調整はホワイトバランス制御と呼ばれる。ホワイトバランス制御とは、赤色灯等の蛍光灯以外の光源の下で見たグレースケールの見た目を、蛍光灯下で見たときと同じようする制御のことをいう。ホワイトバランス制御に関する従来技術としては特許文献1に開示の技術及び特許文献2に開示の技術が挙げられる。 For example, in a digital camera, the type of light source at the time of imaging is estimated from the captured image, and color adjustment is performed so that a region that should be white in the captured image is correctly white. This color adjustment is called white balance control. White balance control refers to control that makes the appearance of gray scale seen under a light source other than a fluorescent lamp such as a red lamp the same as when viewed under a fluorescent lamp. Examples of the prior art relating to white balance control include the technique disclosed in Patent Document 1 and the technique disclosed in Patent Document 2.

特開201672916号公報Japanese Unexamined Patent Publication No. 201672916 特開平2-272892号公報Japanese Unexamined Patent Publication No. 2-272892

従来技術では、被写体の大きさ及び背景の色の関係で光源の種類の誤判定が発生し、ホワイトバランス制御が正しく行われない場合があった。例えば、赤色灯の色に近い赤茶色の机に置かれた白色の小さな紙を蛍光灯の下で撮像し、撮像画像では被写体である紙よりも背景である机が大半を占めていたとする。この場合、光源が赤色灯であると誤判定され、本来白色であるべき紙が撮像画像では青味をおびて表示される。 In the prior art, the type of light source may be erroneously determined due to the relationship between the size of the subject and the color of the background, and the white balance control may not be performed correctly. For example, suppose that a small piece of white paper placed on a reddish-brown desk, which is close to the color of a red light, is imaged under a fluorescent light, and most of the captured image is a desk that is the background rather than the paper that is the subject. In this case, it is erroneously determined that the light source is a red light, and the paper that should be originally white is displayed with a bluish tint in the captured image.

以上の課題を解決するために、本開示の色調整方法は、撮像装置により撮像された撮像画像の明るさの調整量の変化量が第1閾値を上回るか否かを判定し、前記判定の結果が否定である場合には、前記撮像画像における色温度に基づいて前記撮像画像の色を調整し、前記判定の結果が肯定である場合には、前記撮像画像に明るさを減少させる処理を施して得られる補正画像における色温度に基づいて前記撮像画像の色を調整する。 In order to solve the above problems, the color adjustment method of the present disclosure determines whether or not the amount of change in the adjustment amount of the brightness of the captured image captured by the image pickup device exceeds the first threshold value, and the determination is made. If the result is negative, the color of the captured image is adjusted based on the color temperature of the captured image, and if the result of the determination is positive, the captured image is subjected to a process of reducing the brightness. The color of the captured image is adjusted based on the color temperature of the corrected image obtained by the application.

また、上記課題を解決するために、本開示の別の態様に色調整方法は、撮像装置により撮像された撮像画像の明るさの調整量の変化量が第1閾値を上回るか否かを判定し、前記調整量の変化量が前記第1閾値を上回ると判定される場合には、前記撮像画像においてエッジにより区画された領域の大きさに応じた値がゼロより大きく、且つ第2閾値よりも小さいか否かを判定し、前記値がゼロと判定される場合、前記値が前記第2閾値以上と判定される場合、又は前記調整量の変化量が前記第1閾値以下と判定される場合には、前記撮像画像における色温度に基づいて前記撮像画像の色を調整し、前記値がゼロより大きく、且つ前記第2閾値よりも小さいと判定される場合には、前記撮像画像に明るさを減少させる処理を施して得られる補正画像における色温度に基づいて前記撮像画像の色を調整する。 Further, in order to solve the above-mentioned problems, in another aspect of the present disclosure, the color adjustment method determines whether or not the amount of change in the adjustment amount of the brightness of the image captured by the image pickup device exceeds the first threshold value. When it is determined that the amount of change in the adjustment amount exceeds the first threshold value, the value corresponding to the size of the region partitioned by the edges in the captured image is larger than zero and more than the second threshold value. It is determined whether or not the color is small, and if the value is determined to be zero, if the value is determined to be equal to or higher than the second threshold value, or if the change amount of the adjustment amount is determined to be equal to or lower than the first threshold value. In this case, the color of the captured image is adjusted based on the color temperature of the captured image, and when it is determined that the value is larger than zero and smaller than the second threshold value, the captured image is bright. The color of the captured image is adjusted based on the color temperature in the corrected image obtained by performing the process of reducing the color.

また、上記課題を解決するために、本開示の更に別の態様の色調整方法は、撮像装置により撮像された撮像画像の明るさの調整量の変化量が第1閾値を上回るか否かを判定し、前記調整量の変化量が前記第1閾値を上回ると判定される場合には、前記撮像画像においてエッジにより区画された領域の大きさに応じた値がゼロより大きく、且つ第2閾値よりも小さいか否かを判定し、前記値が前記第2閾値以上と判定される場合には、前記値の変化量が第3閾値よりも小さいか否かを判定し、前記調整量の変化量が前記第1閾値以下と判定される場合、前記値がゼロと判定される場合、又は前記値の変化量が前記第3閾値以上と判定される場合には、前記撮像装置における色温度に基づいて前記撮像画像の色を調整し、前記値の変化量が前記第3閾値よりも小さいと判定される場合、又は前記値がゼロより大きく、且つ前記第2閾値よりも小さいと判定される場合には、前記撮像画像に明るさを減少させる処理を施して得られる補正画像における色温度に基づいて前記撮像画像の色を調整する。 Further, in order to solve the above-mentioned problems, the color adjustment method of still another aspect of the present disclosure determines whether or not the amount of change in the amount of adjustment of the brightness of the image captured by the image pickup device exceeds the first threshold value. When it is determined that the amount of change in the adjustment amount exceeds the first threshold value, the value corresponding to the size of the region partitioned by the edges in the captured image is larger than zero and the second threshold value is determined. If it is determined that the value is smaller than or equal to the second threshold value, it is determined whether or not the change amount of the value is smaller than the third threshold value, and the change of the adjustment amount is determined. When the amount is determined to be equal to or less than the first threshold value, the value is determined to be zero, or the amount of change in the value is determined to be equal to or greater than the third threshold value, the color temperature in the image pickup apparatus is determined. Based on this, the color of the captured image is adjusted, and it is determined that the amount of change in the value is smaller than the third threshold value, or the value is larger than zero and smaller than the second threshold value. In the case, the color of the captured image is adjusted based on the color temperature in the corrected image obtained by subjecting the captured image to a process of reducing the brightness.

また、上記課題を解決するために、本開示の更に別の態様の色調整方法は、撮像装置により撮像された撮像画像の色の調整量の変化量が第1閾値を上回るか否かを判定し、前記判定の結果が否定である場合には、前記撮像画像における色温度に基づいて前記撮像画像の色を調整し、前記判定の結果が肯定である場合には、前記撮像画像に明るさを減少させる処理を施して得られる補正画像における色温度に基づいて前記撮像画像の色を調整する。 Further, in order to solve the above-mentioned problems, the color adjustment method of still another aspect of the present disclosure determines whether or not the amount of change in the amount of color adjustment of the image captured by the image pickup device exceeds the first threshold value. If the result of the determination is negative, the color of the captured image is adjusted based on the color temperature of the captured image, and if the result of the determination is positive, the brightness of the captured image is adjusted. The color of the captured image is adjusted based on the color temperature in the corrected image obtained by performing the process of reducing.

本開示の第1実施形態に係る色調整方法を実行するカメラ1Aの構成例を示すブロック図である。It is a block diagram which shows the structural example of the camera 1A which executes the color adjustment method which concerns on 1st Embodiment of this disclosure. ホワイトバランス制御を説明するための図である。It is a figure for demonstrating white balance control. カメラ1Aの処理装置10がプログラムPAに従って実行する色調整方法の流れを示すフローチャートである。It is a flowchart which shows the flow of the color adjustment method which the processing apparatus 10 of a camera 1A executes according to a program PA. 従来のホワイトバランス制御の問題点を説明するための図である。It is a figure for demonstrating the problem of the conventional white balance control. 光源の誤判定を説明するための図である。It is a figure for demonstrating the erroneous determination of a light source. 本実施形態の効果を説明するための図である。It is a figure for demonstrating the effect of this embodiment. 本開示の第2実施形態に係る色調整方法を実行するカメラ1Bの構成例を示すブロック図である。It is a block diagram which shows the structural example of the camera 1B which executes the color adjustment method which concerns on 2nd Embodiment of this disclosure. カメラ1Aの処理装置10がプログラムPBに従って実行する色調整方法の流れを示すフローチャートである。It is a flowchart which shows the flow of the color adjustment method which the processing apparatus 10 of a camera 1A executes according to a program PB. 実際に光源が変化した場合の問題点を説明するための図である。It is a figure for demonstrating the problem when the light source actually changes. 本開示の第3実施形態に係る色調整方法を実行するカメラ1Cの構成例を示すブロック図である。It is a block diagram which shows the structural example of the camera 1C which executes the color adjustment method which concerns on 3rd Embodiment of this disclosure. カメラ1Aの処理装置10がプログラムPCに従って実行する色調整方法の流れを示すフローチャートである。It is a flowchart which shows the flow of the color adjustment method which the processing apparatus 10 of a camera 1A executes according to a program PC. 背景にエッジを有する模様がある場合の問題点を説明するための図である。It is a figure for demonstrating a problem when there is a pattern having an edge in the background. 本実施形態の効果を説明するための図である。It is a figure for demonstrating the effect of this embodiment.

以下、図面を参照して本開示の実施形態を説明する。以下に述べる実施形態には技術的に好ましい種々の限定が付されている。しかし、本開示の実施形態は、以下に述べる形態に限られるものではない。 Hereinafter, embodiments of the present disclosure will be described with reference to the drawings. The embodiments described below are subject to various technically preferred limitations. However, the embodiments of the present disclosure are not limited to the embodiments described below.

1.第1実施形態
図1は、本開示の第1実施形態のカメラ1Aの構成例を示すブロック図である。カメラ1Aは、露出補正及びホワイトバランス制御を自動で実行する機能を有するデジタルカメラである。露出補正とは、例えば撮像画像を構成する輝度の平均値等に応じて撮像画像全体の明るさを調整することをいう。図1に示すように、カメラ1Aは、処理装置10、撮像装置20、画像処理装置30、出力装置40、及び記憶装置50を有する。
1. 1. First Embodiment FIG. 1 is a block diagram showing a configuration example of the camera 1A of the first embodiment of the present disclosure. The camera 1A is a digital camera having a function of automatically executing exposure compensation and white balance control. Exposure compensation refers to adjusting the brightness of the entire captured image according to, for example, the average value of the brightness constituting the captured image. As shown in FIG. 1, the camera 1A includes a processing device 10, an image pickup device 20, an image processing device 30, an output device 40, and a storage device 50.

処理装置10は、例えばCPU(Central Processing Unit)等のプロセッサーを含んで構成される。処理装置10は、単一のプロセッサーで構成されてもよいし、複数のプロセッサーで構成されてもよい。処理装置10は、後述するプログラムPAに従って作動することにより、カメラ1Aの制御中枢として機能する。プログラムPAに従って作動している処理装置10は、露出補正及びホワイトバランス制御を自動で実行する。 The processing device 10 includes a processor such as a CPU (Central Processing Unit). The processing device 10 may be configured by a single processor or may be configured by a plurality of processors. The processing device 10 functions as a control center of the camera 1A by operating according to the program PA described later. The processing device 10 operating according to the program PA automatically executes exposure compensation and white balance control.

撮像装置20は、例えばイメージ―センサーである。撮像装置20は、カメラ1Aのユーザーの操作に応じて被写体を撮像し、撮像画像を表す画像データを記憶装置50に書き込む。以下では、撮像装置20から出力される画像データを元画像データと呼ぶ。画像処理装置30は、例えば画像処理LSI(Large Scale Integration)である。画像処理装置30は、処理装置10による制御の下、記憶装置50から元画像データを読み出し、記憶装置50に記憶されている露出補正値に従って露出補正のための画像処理を、読み出した元画像データに施す。画像処理装置30は、露出補正済みの画像を表す画像データを記憶装置50に書き込む。以下では、露出補正済みの画像を表す画像データを補正済み画像データと呼ぶ場合がある。 The image pickup device 20 is, for example, an image sensor. The image pickup device 20 takes an image of a subject according to the operation of the user of the camera 1A, and writes image data representing the captured image in the storage device 50. Hereinafter, the image data output from the image pickup apparatus 20 will be referred to as the original image data. The image processing device 30 is, for example, an image processing LSI (Large Scale Integration). The image processing device 30 reads the original image data from the storage device 50 under the control of the processing device 10, and performs image processing for exposure compensation according to the exposure compensation value stored in the storage device 50. Apply to. The image processing device 30 writes image data representing the exposure-corrected image in the storage device 50. In the following, image data representing an image with exposure compensation may be referred to as corrected image data.

また、画像処理装置30は、処理装置10による制御の下、補正済み画像データに対してホワイトバランス制御の画像処理を施し、色調整済みの画像を表す画像データを生成する。以下では、色調整済みの画像を表す画像データを調整済み画像データと呼ぶ場合がある。詳細については後述するが、本実施形態では、画像における画素の色温度の平均値に応じて光源の種類が特定される。例えば、露出補正済みの撮像画像における色温度の平均値が2400K付近の値であれば光源の種類は赤色灯と特定される。また、露出補正済みの撮像画像における色温度の平均値が4150K付近の値であれば光源の種類は蛍光灯と特定される。そして、色温度の平均値に基づいて特定された光源の種類に応じた色調整フィルターのフィルター係数が処理装置10によって生成される。色調整フィルターとは、被写体の見た目が蛍光灯下と同じになるように、撮像画像を構成する画素の色を赤色、緑色及び青色の色成分毎に調整するフィルターである。この色調整フィルターによるフィルター処理を補正済み画像データに施すことで調整済み画像データが生成される。 Further, the image processing device 30 performs image processing of white balance control on the corrected image data under the control of the processing device 10 to generate image data representing the color-adjusted image. In the following, image data representing a color-adjusted image may be referred to as adjusted image data. Although the details will be described later, in the present embodiment, the type of the light source is specified according to the average value of the color temperature of the pixels in the image. For example, if the average value of the color temperature in the image captured with exposure compensation is around 2400K, the type of the light source is specified as a red lamp. Further, if the average value of the color temperature in the image captured with exposure compensation is a value in the vicinity of 4150K, the type of the light source is specified as a fluorescent lamp. Then, the processing device 10 generates a filter coefficient of the color adjusting filter according to the type of the light source specified based on the average value of the color temperature. The color adjustment filter is a filter that adjusts the colors of the pixels constituting the captured image for each of the red, green, and blue color components so that the appearance of the subject is the same as that under fluorescent lighting. Adjusted image data is generated by applying the filter processing by this color adjustment filter to the corrected image data.

例えば、図2に示すように、灰色の机TBL1の上に置かれたA4サイズの白色の紙OB1を被写体として赤色灯下で画像G01が撮像されたとする。紙OB1の色は白色であるが、画像G01は赤色灯下で撮像されるため、画像G01における紙OB1の色は赤色になっている。なお、図2において右肩上がりの斜め線のハッチングは赤色を表し、縦線のハッチングは赤味をおびた灰色を表す。画像G01について色温度の平均値として2400K付近の値が算出されると、処理装置10は光源を赤色灯と判定する。その結果、処理装置10は、赤色灯用の色調整フィルターのフィルター係数、即ち赤色を減少させ、且つ青色を増加させる色調整フィルターのフィルター係数、を生成する。画像G01に対して、上記フィルター係数に応じたフィルター処理を画像処理装置30が施すことで、図2に示すように、背景である机TBL1の色は灰色となり、被写体である紙OB1の色は白色となった画像G02が生成される。 For example, as shown in FIG. 2, it is assumed that the image G01 is imaged under a red light with an A4 size white paper OB1 placed on a gray desk TBL1 as a subject. The color of the paper OB1 is white, but since the image G01 is imaged under a red light, the color of the paper OB1 in the image G01 is red. In FIG. 2, the hatching of the diagonal line rising to the right represents red, and the hatching of the vertical line represents reddish gray. When the average value of the color temperature of the image G01 is calculated to be around 2400K, the processing apparatus 10 determines that the light source is a red lamp. As a result, the processing apparatus 10 generates a filter coefficient of a color adjustment filter for a red lamp, that is, a filter coefficient of a color adjustment filter that decreases red and increases blue. When the image processing device 30 performs the filter processing according to the filter coefficient on the image G01, the color of the desk TBL1 as the background becomes gray and the color of the paper OB1 as the subject becomes gray as shown in FIG. The white image G02 is generated.

出力装置40は、例えばUSB(Universal Serial Bus)等の各種規格に準拠した出力インタフェースの集合体である。出力装置40には、例えばパーソナルコンピューター等の各種外部器機が接続される。出力装置40は、処理装置10による制御の下、記憶装置50に記憶されている調整済み画像データを読み出し、読み出した調整済み画像データを外部器機へ出力する。 The output device 40 is a collection of output interfaces conforming to various standards such as USB (Universal Serial Bus). Various external devices such as a personal computer are connected to the output device 40. The output device 40 reads the adjusted image data stored in the storage device 50 under the control of the processing device 10, and outputs the read adjusted image data to the external device.

記憶装置50は、フラッシュメモリー等の不揮発性メモリーとRAM(Random Access Memory)等の揮発性メモリーとを含む。不揮発性メモリーは、処理装置10によって実行されるプログラムPAを記憶する。本実施形態では、カメラ1Aの工場出荷時点でプログラムPAが不揮発性メモリーに予め記憶されている。なお、プログラムPAは、不図示のサーバー等からカメラ1Aの工場出荷後に取得され、その後、不揮発性メモリーに記憶されてもよい。また、不揮発性メモリーには、後述する第1閾値及び露出を引き下げて再補正する場合の引き下げ幅を示すデータ等が予め記憶されている。 The storage device 50 includes a non-volatile memory such as a flash memory and a volatile memory such as a RAM (Random Access Memory). The non-volatile memory stores the program PA executed by the processing device 10. In the present embodiment, the program PA is stored in the non-volatile memory in advance at the time of shipment from the factory of the camera 1A. The program PA may be acquired from a server (not shown) or the like after the camera 1A is shipped from the factory, and then stored in the non-volatile memory. Further, in the non-volatile memory, data and the like indicating a first threshold value to be described later and a reduction width when the exposure is reduced and re-corrected are stored in advance.

記憶装置50の揮発性メモリーには、元画像データ、露出補正済み画像データ、及び調整済み画像データが記憶される。また、記憶装置50には、露出補正値が記憶される。この露出補正値は、元画像データの表す画像を構成する画素の輝度の平均値に応じて処理装置10によって更新される。露出補正値を更新する場合、処理装置10は、更新前の露出補正値を記憶装置50に別途保存した後、露出補正値を更新する。また、記憶装置50には、ホワイトバランス制御を規定するパラメーターとして、前述に色調整フィルターのフィルター係数が記憶される。ホワイトバランス制御を規定するパラメーターを更新する際も、処理装置10は、更新前のパラメーターを記憶装置50に別途保存した後、当該パラメーターを更新する。 The volatile memory of the storage device 50 stores the original image data, the exposure-corrected image data, and the adjusted image data. Further, the exposure compensation value is stored in the storage device 50. This exposure compensation value is updated by the processing device 10 according to the average value of the brightness of the pixels constituting the image represented by the original image data. When updating the exposure compensation value, the processing device 10 separately stores the exposure compensation value before the update in the storage device 50, and then updates the exposure compensation value. Further, the storage device 50 stores the filter coefficient of the color adjustment filter as a parameter defining the white balance control. When updating the parameter defining the white balance control, the processing device 10 separately stores the parameter before the update in the storage device 50, and then updates the parameter.

処理装置10は、カメラ1Aの電源投入を契機としてプログラムPAの実行を開始する。プログラムPAに従って作動している処理装置10は、撮像装置20により画像が撮像される毎に本実施形態の特徴を顕著に示す色調整方法を実行する。図3は、カメラ1Aの処理装置10がプログラムPAに従って実行する色調整方法の流れを示すフローチャートである。図3に示すように本実施形態の色調整方法は、第1判定処理SA110、第1調整処理SA120、及び第2調整処理SA130を含む。第1判定処理SA110、第1調整処理SA120、及び第2調整処理SA130の各々の処理内容は次の通りである。 The processing device 10 starts executing the program PA when the power of the camera 1A is turned on. The processing device 10 operating according to the program PA executes a color adjustment method that remarkably exhibits the characteristics of the present embodiment each time an image is captured by the image pickup device 20. FIG. 3 is a flowchart showing a flow of a color adjustment method executed by the processing device 10 of the camera 1A according to the program PA. As shown in FIG. 3, the color adjustment method of the present embodiment includes the first determination process SA110, the first adjustment process SA120, and the second adjustment process SA130. The processing contents of the first determination processing SA110, the first adjustment processing SA120, and the second adjustment processing SA130 are as follows.

第1判定処理SA110では、処理装置10は、露出補正値の変化量ΔLが第1閾値th1を上回るか否かを判定する。露出補正値の変化量ΔLは、本開示における撮像画像の明るさの調整量の変化量の一例である。より詳細に説明すると、処理装置10は、記憶装置50に記憶されている露出補正値の現時点の値と更新前の値との差の絶対値を露出補正値の変化量ΔLとする。露出補正値の変化量ΔLが第1閾値th1を上回る場合には第1判定処理SA110の判定の結果は“Yes”となり、露出補正値の変化量ΔLが第1閾値th1以下の場合には第1判定処理SA110の判定の結果は“No”となる。なお、記憶装置50に更新前の露出補正値が記憶されていない場合、即ち露出補正値が更新されていない場合も第1判定処理SA110の判定の結果は“No”となる。 In the first determination processing SA110, the processing apparatus 10 determines whether or not the change amount ΔL of the exposure compensation value exceeds the first threshold value th1. The change amount ΔL of the exposure compensation value is an example of the change amount of the brightness adjustment amount of the captured image in the present disclosure. More specifically, the processing device 10 sets the absolute value of the difference between the current value of the exposure compensation value stored in the storage device 50 and the value before the update as the change amount ΔL of the exposure compensation value. When the change amount ΔL of the exposure compensation value exceeds the first threshold value th1, the judgment result of the first determination process SA110 is “Yes”, and when the change amount ΔL of the exposure compensation value is equal to or less than the first threshold value th1. 1 The result of the determination of the determination process SA110 is “No”. Even when the exposure compensation value before the update is not stored in the storage device 50, that is, when the exposure compensation value is not updated, the determination result of the first determination process SA110 is “No”.

第1判定処理SA110の判定の結果が“Noである場合、即ち第1判定処理SA110の判定の結果が否定である場合には、処理装置10は第1調整処理SA120を実行する。これに対して、第1判定処理SA110の判定の結果が”Yes“である場合、即ち第1判定処理SA110の判定の結果が肯定である場合には、処理装置10は第2調整処理SA130を実行する。このように、本実施形態では、露出補正値の変化量ΔLが第1閾値th1を上回るか否か、換言すれば露出補正値が急激に変化したか否かに応じて処理の切り替えが行われる。これは、光源の誤判定が発生すると露出補正値が急激に変化することが分かっており、光源の誤判定に対処するためである。なお、第1閾値th1の具体的な値については、適宜実験を行って好適な値を設定すればよい。 When the determination result of the first determination process SA110 is "No", that is, when the determination result of the first determination process SA110 is negative, the processing apparatus 10 executes the first adjustment process SA120. When the determination result of the first determination process SA110 is "Yes", that is, when the determination result of the first determination process SA110 is affirmative, the processing apparatus 10 executes the second adjustment process SA130. As described above, in the present embodiment, the processing is switched according to whether or not the change amount ΔL of the exposure compensation value exceeds the first threshold value th1, in other words, whether or not the exposure compensation value changes abruptly. It is known that the exposure compensation value changes abruptly when an erroneous determination of the light source occurs, and this is to deal with the erroneous determination of the light source. The specific value of the first threshold value th1 is described. An appropriate value may be set by conducting an appropriate experiment.

第1調整処理SA120では、処理装置10は、補正済み画像データの表す画像における色温度の平均値に基づいて撮像画像の色を調整する。つまり、第1調整処理SA120では、処理装置10は、補正済み画像データの表す画像における画素の色温度の平均値から光源の種類を特定し、特定された光源の種類に応じた色調整用フィルターを生成する。この色調整用フィルターを用いて補正済み画像データの表す画像の色調整、即ちホワイトバランス制御が実行される。この第1調整処理SA120は、従来のホワイトバランス制御と同様の処理である。 In the first adjustment processing SA120, the processing apparatus 10 adjusts the color of the captured image based on the average value of the color temperature in the image represented by the corrected image data. That is, in the first adjustment processing SA120, the processing device 10 specifies the type of the light source from the average value of the color temperature of the pixels in the image represented by the corrected image data, and the color adjustment filter according to the specified type of the light source. To generate. Using this color adjustment filter, color adjustment of the image represented by the corrected image data, that is, white balance control is executed. The first adjustment process SA120 is the same process as the conventional white balance control.

第2調整処理SA130では、処理装置10は、まず、明るさを減少させる処理を補正済み画像データに施して補正画像を表す再補正済み画像データを生成する。背景の色の影響が低下するようにモノクロに近い補正画像を生成するためである。次いで、処理装置10は、再補正済み画像データの表す補正画像における色温度の平均値に基づいて撮像画像の色を調整する。つまり、第2調整処理SA130では、処理装置10は、再補正済み画像データの表す画像における画素の色温度の平均値から光源の種類を特定し、特定された光源の種類に応じた色調整用フィルターを生成する。この色調整用フィルターを用いて補正済み画像データの表す画像の色調整、即ちホワイトバランス制御が実行される。 In the second adjustment process SA130, the processing device 10 first applies a process of reducing the brightness to the corrected image data to generate re-corrected image data representing the corrected image. This is to generate a corrected image close to monochrome so that the influence of the background color is reduced. Next, the processing device 10 adjusts the color of the captured image based on the average value of the color temperature in the corrected image represented by the re-corrected image data. That is, in the second adjustment processing SA130, the processing device 10 specifies the type of the light source from the average value of the color temperature of the pixels in the image represented by the recorrected image data, and for color adjustment according to the specified type of the light source. Generate a filter. Using this color adjustment filter, color adjustment of the image represented by the corrected image data, that is, white balance control is executed.

前述したように、光源の誤判定が発生すると露出補正値の急激な変化が発生することが分かっている。例えば、図4に示すように、赤茶色の机TBL2の上に置かれた名刺サイズの白色の紙OB2を被写体として蛍光灯下で撮像が行われ、画像G03が撮像されたとする。図4における横線のハッチングは赤茶色を表す。この画像G03に基づいて露出補正が行われると、画像G03では背景色である赤茶色が大半を占めるため、図5に示すように光源が赤色灯であると誤判定され、蛍光灯下に近づくように露出補正値が引き上げられる。この更新後の露出補正値に従って露出補正が行われた画像におけるR,G及びBの各値は、露出が低い場合に比較して大きくなる。この例では、Rの値が大きくなる。この状態で従来のホワイトバランス制御が実行されると、赤色灯用の色調整フィルターが生成され、色調整済み画像として全体に青味をおびた画像G04が生成される。なお、図4において格子線のハッチングは青味を帯びた赤茶色を表し、右肩下がりの斜め線のハッチングは青色を表す。 As described above, it is known that when an erroneous determination of a light source occurs, a sudden change in the exposure compensation value occurs. For example, as shown in FIG. 4, it is assumed that an image is taken under a fluorescent lamp with a business card-sized white paper OB2 placed on a reddish brown desk TBL2 as a subject, and an image G03 is imaged. The hatching of the horizontal line in FIG. 4 represents reddish brown. When exposure compensation is performed based on this image G03, the background color of reddish brown occupies most of the image G03, so that it is erroneously determined that the light source is a red lamp as shown in FIG. The exposure compensation value is raised as described above. Each value of R, G, and B in the image to which the exposure compensation is performed according to the exposure compensation value after this update becomes larger than that when the exposure is low. In this example, the value of R becomes large. When the conventional white balance control is executed in this state, a color adjustment filter for a red light is generated, and a bluish image G04 is generated as a color-adjusted image. In FIG. 4, the hatching of the grid lines represents bluish reddish brown, and the hatching of the diagonal lines descending to the right shoulder represents blue.

これに対して、本実施形態では、露出補正値の変化量ΔLが第1閾値th1を上回るような露出補正値の急激な変化があった場合には、第1判定処理SA110の判定の結果は肯定となり、第2調整処理SA130が実行される。前述したように第2調整処理SA130では、補正済みが画像データに対して明るさを減少させる処理を施して再補正済み画像データが生成され、再補正済み画像データの表す補正画像における色温度の平均値基づいて色調整フィルターが生成される。補正画像では、調整済み画像に比較してR、G及びBの各値は減少しており、色調整フィルターとして蛍光灯用の色調整フィルター、即ち赤色、緑色、及び青色の何れの色も減少させず、また増加もさせない色調整フィルターが生成される。この色調整フィルターを用いてホワイトバランス制御が実行されるので、図6に示すように、画像G03に対しては、本来白色であるべき紙OB2が白色となっており、本来赤茶色であるべき机TBL2が赤茶色となっている画像、即ち画像G03からの変更がない画像G05が色調整済み画像として生成される。なお、図6における横線のハッチングは赤茶色を表す。 On the other hand, in the present embodiment, when there is a sudden change in the exposure compensation value such that the change amount ΔL of the exposure compensation value exceeds the first threshold value th1, the determination result of the first determination process SA110 is The result is affirmative, and the second adjustment process SA130 is executed. As described above, in the second adjustment process SA130, the corrected image data is generated by performing a process of reducing the brightness of the corrected image data, and the color temperature in the corrected image represented by the re-corrected image data is measured. A color adjustment filter is generated based on the average value. In the corrected image, the values of R, G, and B are reduced as compared with the adjusted image, and the color adjustment filter for fluorescent lamps as the color adjustment filter, that is, any of the colors of red, green, and blue is also reduced. A color adjustment filter is generated that does not cause or increase. Since the white balance control is executed using this color adjustment filter, as shown in FIG. 6, the paper OB2 which should be originally white is white for the image G03, and should be originally reddish brown. An image in which the desk TBL2 is reddish brown, that is, an image G05 unchanged from the image G03 is generated as a color-adjusted image. The hatching of the horizontal line in FIG. 6 represents reddish brown.

以上説明したように本実施形態のカメラ1Aによれば、被写体が背景に対して小さく、また、背景の色が赤色灯の色に近い場合であっても、ホワイトバランス制御を正しく行える。なお、本実施形態では、背景の色が赤色灯の色に近い場合について説明したが、第2調整処理SA130にて補正画像を生成するのは、背景の色の影響を低下させるためであるから、背景の色が青系統の色であっても同様の効果が得られる。このように、本実施形態のカメラ1Aによれば、被写体の大きさ及び背景の色によらずにホワイトバランス制御を正しく行うことが可能になる。 As described above, according to the camera 1A of the present embodiment, the white balance control can be correctly performed even when the subject is small with respect to the background and the background color is close to the color of the red light. In the present embodiment, the case where the background color is close to the color of the red lamp has been described, but the reason why the corrected image is generated by the second adjustment process SA130 is to reduce the influence of the background color. , The same effect can be obtained even if the background color is a bluish color. As described above, according to the camera 1A of the present embodiment, it is possible to correctly perform the white balance control regardless of the size of the subject and the color of the background.

2.第2実施形態
次いで、本開示の第2実施形態のカメラ1Bについて説明する。本実施形態のカメラ1Bは、カメラ1Aと同様に露出補正及びホワイトバランス制御を自動で行うデジタルカメラである。図7は、カメラ1Bの構成例を示すブロック図である。図7では、図1におけるものと同一の構成要素には同一の符号が付されている。図7と図1とを対比すれば明らかなように、カメラ1Bとカメラ1Aの構成の相違点は、プログラムPAに代えてプログラムPBが記憶装置50に記憶されている点である。
2. 2. Second Embodiment Next, the camera 1B of the second embodiment of the present disclosure will be described. The camera 1B of the present embodiment is a digital camera that automatically performs exposure compensation and white balance control in the same manner as the camera 1A. FIG. 7 is a block diagram showing a configuration example of the camera 1B. In FIG. 7, the same components as those in FIG. 1 are designated by the same reference numerals. As is clear from the comparison between FIGS. 7 and 1, the difference in the configurations of the camera 1B and the camera 1A is that the program PB is stored in the storage device 50 instead of the program PA.

カメラ1Bの処理装置10は、カメラ1Bの電源投入を契機としてプログラムPBの実行を開始する。プログラムPBに従って作動している処理装置10は、撮像装置20により画像が撮像される毎に本実施形態の特徴を顕著に示す色調整方法を実行する。図8は、カメラ1Bの処理装置10がプログラムPBに従って実行する色調整方法の流れを示すフローチャートである。図8では図3におけるものと同一の構成要素には同一の符号が付されている。つまり、図8における第1判定処理SA110、第1調整処理SA120、及び第2調整処理SA130の各処理の処理内容は第1実施形態の色調整方法におけるこれら各処理の処理内容と同一である。図8と図3とを対比すれば明らかなように、本実施形態における色調整方法は、第2判定処理SA112を含む点が第1実施形態の色調整方法と異なる。 The processing device 10 of the camera 1B starts executing the program PB when the power of the camera 1B is turned on. The processing device 10 operating according to the program PB executes a color adjustment method that remarkably exhibits the characteristics of the present embodiment each time an image is captured by the image pickup device 20. FIG. 8 is a flowchart showing a flow of a color adjustment method executed by the processing device 10 of the camera 1B according to the program PB. In FIG. 8, the same components as those in FIG. 3 are designated by the same reference numerals. That is, the processing contents of the first determination processing SA110, the first adjustment processing SA120, and the second adjustment processing SA130 in FIG. 8 are the same as the processing contents of each of these processes in the color adjustment method of the first embodiment. As is clear from the comparison between FIGS. 8 and 3, the color adjustment method in the present embodiment is different from the color adjustment method in the first embodiment in that the second determination process SA112 is included.

図8に示すように、第2判定処理SA112は、露出補正値の変化量ΔLが第1閾値th1を上回ると第1判定処理SA110にて判定される場合に実行される。なお、露出補正値の変化量ΔLが第1閾値th1以下であると第1判定処理SA110にて判定される場合には、第1実施形態と同様に第1調整処理SA120が実行される。 As shown in FIG. 8, the second determination process SA112 is executed when the first determination process SA110 determines that the change amount ΔL of the exposure compensation value exceeds the first threshold value th1. When the first determination process SA110 determines that the change amount ΔL of the exposure compensation value is equal to or less than the first threshold value th1, the first adjustment process SA120 is executed as in the first embodiment.

第2判定処理SA112では、カメラ1Bの処理装置10は、補正済み画像データの表す画像においてエッジにより区画される領域の大きさに応じた値Sがゼロより大きく、且つ当該値Sが第2閾値th2よりも小さいか否かを判定する。値Sがゼロより大きく、且つ第2閾値th2よりも小さいと判定される場合には、処理装置10は、第2調整処理SA130を実行する。これに対して、値Sがゼロである場合、又は値Sが第2閾値th2以上である場合には、処理装置10は第1調整処理SA120を実行する。 In the second determination process SA112, in the processing device 10 of the camera 1B, the value S corresponding to the size of the region partitioned by the edges in the image represented by the corrected image data is larger than zero, and the value S is the second threshold value. It is determined whether or not it is smaller than th2. When it is determined that the value S is larger than zero and smaller than the second threshold value th2, the processing device 10 executes the second adjustment processing SA130. On the other hand, when the value S is zero, or when the value S is the second threshold value th2 or more, the processing apparatus 10 executes the first adjustment processing SA120.

エッジの一例としては、画像における被写体と背景の境界点、具体的には輝度が明から暗又は暗から明に大きく変化する変化点が挙げられる。この境界点を連ねることで被写体の輪郭線が形成される。以下では、エッジにより区画される領域の大きさに応じた値のことをエッジサイズと呼ぶ。エッジサイズの具体例としては、エッジにより区画された領域の面積、当該領域の輪郭線の長さ、又は当該領域に含まれる画素数が挙げられる。エッジの検出及びエッジサイズの算出については既存技術を適宜用いるようにすればよい。また、第2閾値th2については適宜実験を行って好適な値を設定すればよい。
以上が本実施形態における色調整方法の流れである。
An example of an edge is a boundary point between a subject and a background in an image, specifically, a change point in which the brightness changes significantly from bright to dark or from dark to bright. By connecting these boundary points, the contour line of the subject is formed. In the following, the value corresponding to the size of the area partitioned by the edge is referred to as an edge size. Specific examples of the edge size include the area of the area partitioned by the edges, the length of the contour line of the area, or the number of pixels included in the area. Existing techniques may be appropriately used for edge detection and edge size calculation. Further, the second threshold value th2 may be appropriately set by conducting an experiment as appropriate.
The above is the flow of the color adjustment method in this embodiment.

第1実施形態の色調整方法では、実際に光源が蛍光灯から赤色灯に変化し、光源の変化に起因して露出補正値が更新された場合であっても第2調整処理SA130が実行され、実際の光源とはそぐわない色調整済み画像が生成される場合がある。例えば、灰色の机TBL1の上に置かれた白色のA4サイズの紙OB1を被写体として撮像を行う際に光源を蛍光灯から赤色灯に変化させ、図9の画像G06が得られたとする。なお、図9における右肩上がりの斜め線のハッチングは赤色を表し、縦線のハッチングは赤味を帯びた灰色を表す。この場合、第1実施形態の色調整方法では、光源の変化に応じて露出補正値が引き上げられても、第2調整処理SA130が実行される。その結果、蛍光灯用の色調整フィルターを用いてホワイトバランス制御が実行され、図9の画像G06のように被写体の色が赤味をおびた色調整済み画像が生成される。 In the color adjustment method of the first embodiment, the second adjustment process SA130 is executed even when the light source actually changes from the fluorescent lamp to the red lamp and the exposure compensation value is updated due to the change of the light source. , Color-adjusted images that do not match the actual light source may be generated. For example, it is assumed that the light source is changed from a fluorescent lamp to a red lamp when an image is taken with a white A4 size paper OB1 placed on a gray desk TBL1 as a subject, and the image G06 of FIG. 9 is obtained. In FIG. 9, the hatching of the diagonal line rising to the right represents red, and the hatching of the vertical line represents reddish gray. In this case, in the color adjustment method of the first embodiment, the second adjustment process SA130 is executed even if the exposure compensation value is increased according to the change of the light source. As a result, the white balance control is executed using the color adjustment filter for the fluorescent lamp, and a color-adjusted image in which the color of the subject is reddish as shown in the image G06 of FIG. 9 is generated.

これに対して、本実施形態の色調整方法では、露出補正値の変化量ΔLが第1閾値th1を上回ると第1判定処理SA110にて判定される場合には、第2判定処理SA112が実行される。前述したように、第2判定処理SA112は、エッジサイズの大きさ、即ち撮像画像における被写体の大きさが、ゼロより大きく、且つ第2閾値よりも小さいか否かを判定する処理である。第2閾値をA4サイズに応じた値に定めておけば、図9の画像G06が撮像された場合には、第1調整処理SA120、即ち従来のホワイトバランス制御が実行される。その結果、図2の画像G02のように、背景である机TBL1の色は灰色となり、被写体である紙OB1の色は白色となっている色調整済み画像が生成される。 On the other hand, in the color adjustment method of the present embodiment, when the first determination process SA110 determines that the change amount ΔL of the exposure compensation value exceeds the first threshold value th1, the second determination process SA112 is executed. Will be done. As described above, the second determination process SA112 is a process for determining whether or not the size of the edge size, that is, the size of the subject in the captured image is larger than zero and smaller than the second threshold value. If the second threshold value is set to a value corresponding to the A4 size, the first adjustment process SA120, that is, the conventional white balance control is executed when the image G06 of FIG. 9 is captured. As a result, as in the image G02 of FIG. 2, a color-adjusted image is generated in which the color of the desk TBL1 as the background is gray and the color of the paper OB1 as the subject is white.

本実施形態のカメラ1Bによっても、第1実施形態のカメラ1Aと同様に、被写体の大きさ及び背景の色によらずにホワイトバランス制御を正しく行うことが可能になる。加えて、本実施形態のカメラ1Bによれば、実際に光源が実際に変化した場合の誤判定を回避することが可能になる。 Similarly to the camera 1A of the first embodiment, the camera 1B of the present embodiment can correctly perform white balance control regardless of the size of the subject and the color of the background. In addition, according to the camera 1B of the present embodiment, it is possible to avoid erroneous determination when the light source actually changes.

3.第3実施形態
次いで、本開示の第3実施形態のカメラ1Cについて説明する。本実施形態のカメラ1Cは、カメラ1Bと同様に露出補正及びホワイトバランス制御を自動で行うデジタルカメラである。図10は、カメラ1Cの構成例を示すブロック図である。図10では、図7におけるものと同一の構成要素には同一の符号が付されている。図10と図7とを対比すれば明らかなように、カメラ1Cとカメラ1Bの構成の相違点は、プログラムPBに代えてプログラムPCが記憶装置50に記憶されている点である。
3. 3. Third Embodiment Next, the camera 1C of the third embodiment of the present disclosure will be described. The camera 1C of the present embodiment is a digital camera that automatically performs exposure compensation and white balance control in the same manner as the camera 1B. FIG. 10 is a block diagram showing a configuration example of the camera 1C. In FIG. 10, the same components as those in FIG. 7 are designated by the same reference numerals. As is clear from the comparison between FIGS. 10 and 7, the difference in the configurations of the camera 1C and the camera 1B is that the program PC is stored in the storage device 50 instead of the program PB.

カメラ1Cの処理装置10は、カメラ1Cの電源投入を契機としてプログラムPCの実行を開始する。プログラムPCに従って作動している処理装置10は、撮像装置20により画像が撮像される毎に本実施形態の特徴を顕著に示す色調整方法を実行する。図11は、カメラ1Cの処理装置10がプログラムPCに従って実行する色調整方法の流れを示すフローチャートである。図11では図8におけるものと同一の構成要素には同一の符号が付されている。つまり、図11における第1判定処理SA110、第2判定処理SA112、第1調整処理SA120、及び第2調整処理SA130の各処理の処理内容は第2実施形態の色調整方法におけるこれら各処理の処理内容と同一である。図11と図8とを対比すれば明らかなように、本実施形態における色調整方法は、第3判定処理SA114を含む点が第2実施形態の色調整方法と異なる。 The processing device 10 of the camera 1C starts executing the program PC when the power of the camera 1C is turned on. The processing device 10 operating according to the program PC executes a color adjustment method that remarkably exhibits the characteristics of the present embodiment each time an image is captured by the image pickup device 20. FIG. 11 is a flowchart showing a flow of a color adjustment method executed by the processing device 10 of the camera 1C according to the program PC. In FIG. 11, the same components as those in FIG. 8 are designated by the same reference numerals. That is, the processing contents of the first determination processing SA110, the second determination processing SA112, the first adjustment processing SA120, and the second adjustment processing SA130 in FIG. 11 are the processing of each of these processes in the color adjustment method of the second embodiment. It is the same as the content. As is clear from comparing FIGS. 11 and 8, the color adjustment method in the present embodiment is different from the color adjustment method in the second embodiment in that the third determination process SA114 is included.

図11に示すように、第3判定処理SA114は、撮像画像においてエッジにより区画される閉じた領域の大きさに応じた値Sが第2閾値th2以上であると第2判定処理SA112にて判定される場合に実行される。なお、値Sがゼロより大きく、且つ第2閾値th2よりも小さいと第2判定処理SA112にて判定される場合には、第2実施形態と同様に第2調整処理SA130が実行される。また、値Sがゼロと第2判定処理SA112にて判定される場合も、第2実施形態と同様に第1調整処理SA120が実行される。 As shown in FIG. 11, the third determination process SA114 determines in the second determination process SA112 that the value S corresponding to the size of the closed region partitioned by the edges in the captured image is equal to or greater than the second threshold value th2. Will be executed if it is done. When the second determination process SA112 determines that the value S is larger than zero and smaller than the second threshold value th2, the second adjustment process SA130 is executed as in the second embodiment. Further, when the value S is determined to be zero by the second determination process SA112, the first adjustment process SA120 is executed as in the second embodiment.

第3判定処理SA114では、カメラ1Cの処理装置10は、撮像画像におけるエッジサイズの変化量ΔSが第3閾値th3よりも小さいか否かを判定する。エッジサイズの変化量ΔSが第3閾値th3以上と第3判定処理SA114にて判定される場合には、処理装置10は、第1調整処理SA120を実行する。これに対して、エッジサイズの変化量ΔSが第3閾値th3よりも小さいと第3判定処理SA114にて判定される場合には、処理装置10は第2調整処理SA130を実行する。なお、エッジサイズの変化量ΔSが第3閾値th3よりも小さいと第3判定処理SA114にて判定される場合と値Sがゼロより大きく、且つ第2閾値th2よりも小さいと第2判定処理SA112にて判定される場合とで、補正画像を生成する際の明るさの引き下げ量を異ならせてもよい。例えば、前者の場合の引き下げ量を後者の場合の引き下げ量よりも小さくしてもよい。
以上が本実施形態における色調整方法の流れである。
In the third determination process SA114, the processing device 10 of the camera 1C determines whether or not the change amount ΔS of the edge size in the captured image is smaller than the third threshold value th3. When the change amount ΔS of the edge size is determined by the third determination process SA114 as the third threshold value th3 or more, the processing apparatus 10 executes the first adjustment process SA120. On the other hand, when the third determination process SA114 determines that the change amount ΔS of the edge size is smaller than the third threshold value th3, the processing device 10 executes the second adjustment process SA130. In addition, when it is determined by the third determination process SA114 that the change amount ΔS of the edge size is smaller than the third threshold value th3, and when the value S is larger than zero and smaller than the second threshold value th2, the second determination process SA112 The amount of reduction in brightness when generating a corrected image may be different depending on the case determined by. For example, the reduction amount in the former case may be smaller than the reduction amount in the latter case.
The above is the flow of the color adjustment method in this embodiment.

第2実施形態の色調整方法では、模様を有する背景に急に差し込まれる被写体を撮像する場合に、模様の分だけエッジサイズが大きくなって第1調整処理SA120が実行され、問題が発生する場合がある。例えば、図12に示すように赤茶色の地色に矩形状の模様を有する机TBL3上に白色の名刺サイズの紙OB2が差し込まれる様子を蛍光灯下で撮像し、画像G07が得られたとする。なお、図12において横線のハッチングは赤茶色を表す。この場合、第2実施形態の色調整方法では、模様の分だけエッジサイズが大きくなり、エッジサイズが第2閾値以上であると第1調整処理SA120が実行される。その結果、図12の画像G08のように、全体に青味をおびた色調整済み画像が生成される。なお、図12において格子線のハッチングは青味を帯びた赤茶色を表し、右肩下がりの斜め線のハッチングは青色を表す。 In the color adjustment method of the second embodiment, when a subject suddenly inserted into a background having a pattern is imaged, the edge size is increased by the amount of the pattern and the first adjustment process SA120 is executed, which causes a problem. There is. For example, it is assumed that an image G07 is obtained by photographing a state in which a white business card-sized paper OB2 is inserted on a desk TBL3 having a rectangular pattern on a reddish brown background as shown in FIG. 12 under a fluorescent lamp. .. In FIG. 12, the hatching of the horizontal line represents reddish brown. In this case, in the color adjustment method of the second embodiment, the edge size is increased by the amount of the pattern, and when the edge size is equal to or larger than the second threshold value, the first adjustment process SA120 is executed. As a result, as shown in the image G08 of FIG. 12, a color-adjusted image having a bluish tint as a whole is generated. In FIG. 12, the hatching of the grid line represents a bluish reddish brown color, and the hatching of the diagonal line downward to the right shoulder represents blue color.

本実施形態における第3閾値th3を名刺サイズよりも大きな値、例えばA4サイズに定めておけば、模様を有する背景に急に差し込まれる被写体が名刺サイズの紙である場合には、当該被写体の差し込みに起因するエッジサイズの変化量ΔSは第3閾値th3より小さく、第2調整処理SA130が実行される。その結果、図12の画像G08のような青味をおびた色調整済み画像が生成されることを回避できる。 If the third threshold value th3 in the present embodiment is set to a value larger than the business card size, for example, A4 size, if the subject suddenly inserted into the background having a pattern is business card size paper, the subject is inserted. The amount of change ΔS in the edge size due to the above is smaller than the third threshold value th3, and the second adjustment process SA130 is executed. As a result, it is possible to avoid generating a bluish color-adjusted image as in the image G08 of FIG. 12.

また、図13に示すように灰色の地色に矩形状の模様を有する机TBL4上にA4サイズの白色の紙OB1が差し込まれる様子を赤色灯下で撮像し、画像G09が得られたとする。なお、図13において縦線のハッチングは赤味を帯びた灰色を表し、右肩上がりの斜め線のハッチングは赤色を表す。この場合、被写体の差し込みに起因するエッジサイズの変化量ΔSは第3閾値th3以上となり、第1調整処理SA120が実行される。その結果、図13の画像G10のように、机TBL4の地色部分は灰色となり、被写体である紙OB1の色は白色となっている色調整済み画像が生成される。 Further, it is assumed that an image G09 is obtained by photographing a state in which A4 size white paper OB1 is inserted on a desk TBL4 having a rectangular pattern on a gray ground color as shown in FIG. 13 under a red light. In FIG. 13, the hatching of the vertical line represents reddish gray, and the hatching of the diagonal line rising to the right represents red. In this case, the amount of change ΔS in the edge size due to the insertion of the subject becomes the third threshold value th3 or more, and the first adjustment process SA120 is executed. As a result, as in the image G10 of FIG. 13, a color-adjusted image is generated in which the ground color portion of the desk TBL4 is gray and the color of the paper OB1 as the subject is white.

本実施形態のカメラ1Cによっても、第1実施形態のカメラ1A及び第2実施形態のカメラ1Bと同様に、被写体の大きさ及び背景の色によらずにホワイトバランス制御を正しく行うことが可能になる。加えて、本実施形態のカメラ1Cによれば、第2実施形態のカメラ1Bと同様に、実際に光源が変化した場合の誤判定を回避することが可能になる。更に、本実施形態のカメラ1Cによれば、被写体の背景に模様があることに起因する誤判定を回避することが可能になる。 Similarly to the camera 1A of the first embodiment and the camera 1B of the second embodiment, the camera 1C of the present embodiment can correctly perform white balance control regardless of the size of the subject and the color of the background. Become. In addition, according to the camera 1C of the present embodiment, it is possible to avoid erroneous determination when the light source actually changes, as in the case of the camera 1B of the second embodiment. Further, according to the camera 1C of the present embodiment, it is possible to avoid erroneous determination due to a pattern on the background of the subject.

4.変形例
上記各実施形態は、以下のように変更されてもよい。
(1)上記各実施形態における撮像画像の明るさの調整量は、撮像画像の露出を画像処理により補正する際の補正量を示す露出補正値であったが、撮像装置20の絞り又はシャッタースピードを示す値であってもよい。また、上記各実施形態の第1調整処理SA120では処理装置10は、補正済み画像データの表す画像における色温度の平均値に基づいて光源の種類を特定した。しかし、補正済み画像データの表す画像における色温度の中央値又は最頻出値等の他の統計量に基づいて光源の種類を特定してもよい。要は、補正済み画像データの表す画像における色温度に基づいて光源の種類を特定する態様であればよい。第2調整処理SA130における光源の種類の特定についても同様である。
4. Modifications Each of the above embodiments may be modified as follows.
(1) The adjustment amount of the brightness of the captured image in each of the above embodiments is an exposure compensation value indicating the correction amount when the exposure of the captured image is corrected by image processing, but the aperture or shutter speed of the image pickup device 20 It may be a value indicating. Further, in the first adjustment processing SA120 of each of the above embodiments, the processing apparatus 10 specifies the type of the light source based on the average value of the color temperature in the image represented by the corrected image data. However, the type of light source may be specified based on other statistics such as the median or most frequent color temperature in the image represented by the corrected image data. In short, any aspect may be used as long as the type of the light source is specified based on the color temperature in the image represented by the corrected image data. The same applies to the specification of the type of the light source in the second adjustment process SA130.

(2)上記各実施形態における第1判定処理SA110では、処理装置10は、撮像装置20により撮像された撮像画像の明るさの調整量の変化量ΔLが第1閾値th1を上回るか否かを判定したが、撮像装置20により撮像された撮像画像の色の調整量の変化量が第1閾値を上回るか否かを判定してもよい。なお、撮像装置20により撮像された撮像画像の色の調整量の具体例としては、色調整フィルターを規定するフィルター係数が挙げられる。 (2) In the first determination processing SA110 in each of the above embodiments, the processing device 10 determines whether or not the change amount ΔL of the adjustment amount of the brightness of the captured image captured by the imaging device 20 exceeds the first threshold value th1. Although the determination has been made, it may be determined whether or not the amount of change in the color adjustment amount of the captured image captured by the image pickup apparatus 20 exceeds the first threshold value. As a specific example of the color adjustment amount of the captured image captured by the image pickup apparatus 20, a filter coefficient defining a color adjustment filter can be mentioned.

(3)上記第1実施形態では、本開示の色調整方法を処理装置10に実行させるプログラムPAが記憶装置50に予め記憶済であった。しかし、プログラムPAを単体で提供してもよい。プログラムPAの具体的な提供態様としては、フラッシュROM(Read Only Memory)等のコンピューター読み取り可能な記録媒体にプログラムPAを書き込み、プログラムPAを書き込み済の記録媒体を配布する態様、又はインターネット等の電気通信回線経由のダウンロードによりプログラムPAを配布する態様が挙げられる。これらの態様により提供されるプログラムPAに従って、既存のデジタルカメラのプロセッサーを作動させることで、当該デジタルカメラに本開示の色調整方法を実行させることが可能になる。第2実施形態におけるプログラムPB及び第3実施形態におけるプログラムPCについても、プログラムPAと同様に、フラッシュROM等のコンピューター読み取り可能な記録媒体に書き込で配布してもよく、インターネット等の電気通信回線経由のダウンロードにより配布してもよい。 (3) In the first embodiment, the program PA for causing the processing device 10 to execute the color adjustment method of the present disclosure is stored in the storage device 50 in advance. However, the program PA may be provided alone. As a specific mode of providing the program PA, the program PA is written on a computer-readable recording medium such as a flash ROM (Read Only Memory), and the recording medium on which the program PA is written is distributed, or electricity such as the Internet. An embodiment in which the program PA is distributed by downloading via a communication line can be mentioned. By operating the processor of an existing digital camera according to the program PA provided by these aspects, it becomes possible to cause the digital camera to perform the color adjustment method of the present disclosure. Similar to the program PA, the program PB in the second embodiment and the program PC in the third embodiment may be written and distributed on a computer-readable recording medium such as a flash ROM, and may be distributed by writing to a telecommunication line such as the Internet. It may be distributed by downloading via.

(4)上記第1実施形態における処理装置10は、プログラムPAに従って第1判定処理SA110、第1調整処理SA120、及び第2調整処理SA130を実行するプロセッサー、即ちコンピューターであった。しかし、以下の第1判定回路、第1調整回路、及び第2調整回路の各回路をASIC(Application Specific Integrated Circuit)等で構成し、これら各回路を組み合わせて処理装置10を構成してもよい。第1判定回路は、第1判定処理SA110を実行する。第1調整回路は、第1調整処理SA120を実行する。第2調整回路は、第2調整処理SA130を実行する。第2実施形態における処理装置10についても同様に、各々ASIC等で構成される第1判定回路、第2判定処理SA112を実行する第2判定回路、第1調整回路、及び第2調整回路を、組み合わせて構成されてもよい。第3実施形態における処理装置10についても同様に、各々ASIC等で構成される第1判定回路、第2判定回路、第3判定処理SA114を実行する第3判定回路、第1調整回路、及び第2調整回路を、組み合わせて構成されてもよい。 (4) The processing device 10 in the first embodiment is a processor, that is, a computer that executes the first determination processing SA110, the first adjustment processing SA120, and the second adjustment processing SA130 according to the program PA. However, each of the following first determination circuit, first adjustment circuit, and second adjustment circuit may be configured by an ASIC (Application Specific Integrated Circuit) or the like, and these circuits may be combined to form the processing device 10. .. The first determination circuit executes the first determination process SA110. The first adjustment circuit executes the first adjustment process SA120. The second adjustment circuit executes the second adjustment process SA130. Similarly, for the processing device 10 in the second embodiment, a first determination circuit composed of an ASIC or the like, a second determination circuit for executing the second determination process SA112, a first adjustment circuit, and a second adjustment circuit are provided. It may be configured in combination. Similarly, for the processing device 10 in the third embodiment, the first determination circuit, the second determination circuit, the third determination circuit for executing the third determination process SA114, the first adjustment circuit, and the first adjustment circuit, respectively, which are composed of ASICs and the like. The two adjustment circuits may be combined and configured.

(5)上記各実施形態では、デジタルカメラへの本開示の適用例を説明したが、撮像装置を備えたスマートフォン、撮像装置を備えたタブレット端末、撮像装置を備えたプロジェクター等の撮像装置を備えた電子機器における撮像画像の色調整に本開示を適用してもよい。 (5) In each of the above embodiments, an example of application of the present disclosure to a digital camera has been described, but the present invention includes an image pickup device such as a smartphone equipped with an image pickup device, a tablet terminal equipped with an image pickup device, and a projector equipped with an image pickup device. The present disclosure may be applied to the color adjustment of the captured image in the electronic device.

5.実施形態及び各変形例の少なくとも1つから把握される態様
本開示は、上述した実施形態及び変形例に限られるものではなく、その趣旨を逸脱しない範囲において種々の態様で実現することができる。例えば、本開示は、以下の態様によっても実現可能である。以下に記載した各態様中の技術的特徴に対応する上記実施形態中の技術的特徴は、本開示の課題の一部又は全部を解決するために、或いは本開示の効果の一部又は全部を達成するために、適宜、差し替えや、組み合わせを行うことが可能である。また、その技術的特徴が本明細書中に必須なものとして説明されていなければ、適宜、削除することが可能である。
5. Aspects Ascertained from At least One of the Embodiments and Each Modification The present disclosure is not limited to the above-described embodiments and modifications, and can be realized in various embodiments without departing from the spirit thereof. For example, the present disclosure can also be realized by the following aspects. The technical features in the above embodiments that correspond to the technical features in each of the embodiments described below are for solving some or all of the problems of the present disclosure, or some or all of the effects of the present disclosure. It is possible to replace or combine as appropriate to achieve this. Further, if the technical feature is not described as essential in the present specification, it can be appropriately deleted.

本開示の色調整方法の一態様は、第1判定処理と、第1調整処理と、第2調整処理とを含む。第1判定処理では、撮像装置により撮像された撮像画像の明るさの調整量の変化量が第1閾値を上回るか否かが判定される。第1調整処理は前記判定の結果が否定である場合に実行され、第2調整処理は前記判定の結果が肯定である場合に実行される。第1調整処理では、前記撮像画像における色温度に基づいて前記撮像画像の色が調整される。第2調整処理では、前記撮像画像に明るさを減少させる処理を施して得られる補正画像における色温度に基づいて前記撮像画像の色が調整される。本態様によれば、被写体の大きさ及び背景の色によらずにホワイトバランス制御を正しく行うことが可能になる。なお、前記撮像画像の明るさの調整量の具体例としては、前記撮像画像の明るさの補正量を示す露出補正値が挙げられる。 One aspect of the color adjustment method of the present disclosure includes a first determination process, a first adjustment process, and a second adjustment process. In the first determination process, it is determined whether or not the amount of change in the amount of adjustment of the brightness of the image captured by the image pickup device exceeds the first threshold value. The first adjustment process is executed when the result of the determination is negative, and the second adjustment process is executed when the result of the determination is affirmative. In the first adjustment process, the color of the captured image is adjusted based on the color temperature of the captured image. In the second adjustment process, the color of the captured image is adjusted based on the color temperature in the corrected image obtained by subjecting the captured image to a process of reducing the brightness. According to this aspect, it is possible to correctly perform white balance control regardless of the size of the subject and the color of the background. As a specific example of the adjustment amount of the brightness of the captured image, an exposure compensation value indicating the correction amount of the brightness of the captured image can be mentioned.

また、本開示の色調整方法の別の態様は、第1判定処理と、第2判定処理と、第1調整処理と、第2調整処理と、を含む。第1調整処理では、撮像装置により撮像された撮像画像の明るさの調整量の変化量が第1閾値を上回るか否かが判定される。第2判定処理は、前記調整量の変化量が前記第1閾値を上回ると判定される場合に実行される。第2判定処理では、前記撮像画像においてエッジにより区画される領域の大きさに応じた値がゼロより大きく、且つ第2閾値よりも小さいか否かが更に判定される。第1調整処理は、前記値がゼロと前記第2判定処理にて判定される場合、前記値が前記第2閾値よりも大きいと前記第2判定処理にて判定される場合、又は前記調整量の変化量が前記第1閾値以下と前記第1判定処理にて判定される場合に実行される。第1調整処理では、前記撮像画像における色温度に基づいて前記撮像画像の色が調整される。第2調整処理は、前記撮像画像においてエッジにより区画される領域の大きさに応じた値がゼロより大きく、且つ第2閾値よりも小さいと前記第2判定処理にて判定される場合に実行される。第2調整処理では、明るさを減少させる処理を前記撮像画像に施して得られる補正画像における色温度に基づいて前記撮像画像の色が調整される。本態様によっても、被写体の大きさ及び背景の色によらずにホワイトバランス制御を正しく行うことが可能になる。加えて、本態様によれば、実際に光源が変化した場合の誤判定を回避することが可能になる。 Further, another aspect of the color adjustment method of the present disclosure includes a first determination process, a second determination process, a first adjustment process, and a second adjustment process. In the first adjustment process, it is determined whether or not the amount of change in the adjustment amount of the brightness of the captured image captured by the image pickup device exceeds the first threshold value. The second determination process is executed when it is determined that the amount of change in the adjustment amount exceeds the first threshold value. In the second determination process, it is further determined whether or not the value corresponding to the size of the region partitioned by the edges in the captured image is larger than zero and smaller than the second threshold value. In the first adjustment process, when the value is determined to be zero by the second determination process, when it is determined by the second determination process that the value is larger than the second threshold value, or the adjustment amount is determined. Is executed when the change amount of is determined by the first determination process to be equal to or less than the first threshold value. In the first adjustment process, the color of the captured image is adjusted based on the color temperature of the captured image. The second adjustment process is executed when it is determined by the second determination process that the value corresponding to the size of the region partitioned by the edges in the captured image is larger than zero and smaller than the second threshold value. To. In the second adjustment process, the color of the captured image is adjusted based on the color temperature in the corrected image obtained by applying the process of reducing the brightness to the captured image. Also in this embodiment, it is possible to correctly perform white balance control regardless of the size of the subject and the color of the background. In addition, according to this aspect, it is possible to avoid erroneous determination when the light source actually changes.

また、本開示の色調整方法の別の態様は、第1判定処理と、第2判定処理と、第3判定処理と、第1調整処理と、第2調整処理と、を含む。第1判定処理では、撮像装置により撮像された撮像画像の明るさの調整量の変化量が第1閾値を上回るか否かが判定される。第2判定処理は、前記調整量の変化量が前記第1閾値を上回ると前記第1判定処理にて判定される場合に実行される。第2判定処理では、前記撮像画像においてエッジにより区画された領域の大きさに応じた値がゼロより大きく、且つ第2閾値よりも小さいか否かが判定される。第3判定処理は、前記値が前記第2閾値よりも大きいと前記第2判定処理にて判定される場合に実行される。第3判定処理では、前記値の変化量が第3閾値よりも小さいか否かが判定される。第1調整処理は、前記調整量の変化量が前記第1閾値以下と前記第1判定処理にて判定される場合、前記値がゼロと前記第2判定処理にて判定される場合、又は前記値の変化量が前記第3閾値以上と前記第3判定処理にて判定される場合に実行される。第1調整処理では、前記撮像装置における色温度に基づいて前記撮像画像の色が調整される。第2調整処理は、前記値の変化量が前記第3閾値よりも小さいと前記第3判定処理にて判定される場合、又は前記値がゼロより大きく、且つ前記第2閾値よりも小さいと前記第2判定処理にて判定される場合に実行される。第2調整処理では、前記撮像画像に明るさを減少させる処理を施して得られる補正画像における色温度に基づいて前記撮像画像の色が調整される。本態様によっても、被写体の大きさ及び背景の色によらずにホワイトバランス制御を正しく行うことが可能になる。加えて、本態様によれば、実際に光源が変化した場合の誤判定を回避することが可能になり、更に、被写体の背景に模様があることに起因する誤判定を回避することが可能になる。 Further, another aspect of the color adjustment method of the present disclosure includes a first determination process, a second determination process, a third determination process, a first adjustment process, and a second adjustment process. In the first determination process, it is determined whether or not the amount of change in the amount of adjustment of the brightness of the image captured by the image pickup device exceeds the first threshold value. The second determination process is executed when it is determined by the first determination process that the amount of change in the adjustment amount exceeds the first threshold value. In the second determination process, it is determined whether or not the value corresponding to the size of the region partitioned by the edges in the captured image is larger than zero and smaller than the second threshold value. The third determination process is executed when it is determined by the second determination process that the value is larger than the second threshold value. In the third determination process, it is determined whether or not the amount of change in the value is smaller than the third threshold value. In the first adjustment process, the change amount of the adjustment amount is determined to be equal to or less than the first threshold value by the first determination process, the value is determined to be zero by the second determination process, or the first adjustment process is performed. This is executed when it is determined by the third determination process that the amount of change in the value is equal to or greater than the third threshold value. In the first adjustment process, the color of the captured image is adjusted based on the color temperature in the image pickup device. In the second adjustment process, the third determination process determines that the amount of change in the value is smaller than the third threshold value, or the value is larger than zero and smaller than the second threshold value. It is executed when it is determined by the second determination process. In the second adjustment process, the color of the captured image is adjusted based on the color temperature in the corrected image obtained by subjecting the captured image to a process of reducing the brightness. Also in this embodiment, it is possible to correctly perform white balance control regardless of the size of the subject and the color of the background. In addition, according to this aspect, it is possible to avoid erroneous determination when the light source actually changes, and further, it is possible to avoid erroneous determination due to a pattern in the background of the subject. Become.

また、本開示の色調整方法の別の態様は、第1判定処理、第1調整処理、及び第2調整処理を含む。第1判定処理では、撮像装置により撮像された撮像画像の色の調整量の変化量が第1閾値を上回るか否かが判定される。前記判定の結果が否定である場合には第1調整処理が実行され、前記判定の結果が肯定である場合には第2調整処理が実行される。第1調整処理では、前記撮像画像における色温度に基づいて前記撮像画像の色が調整される。第2調整処理では、前記撮像画像に明るさを減少させる処理を施して得られる補正画像における色温度に基づいて前記撮像画像の色が調整される。本態様によっても、被写体の大きさ及び背景の色によらずにホワイトバランス制御を正しく行うことが可能になる。 In addition, another aspect of the color adjustment method of the present disclosure includes a first determination process, a first adjustment process, and a second adjustment process. In the first determination process, it is determined whether or not the amount of change in the color adjustment amount of the image captured by the image pickup device exceeds the first threshold value. If the result of the determination is negative, the first adjustment process is executed, and if the result of the determination is affirmative, the second adjustment process is executed. In the first adjustment process, the color of the captured image is adjusted based on the color temperature of the captured image. In the second adjustment process, the color of the captured image is adjusted based on the color temperature in the corrected image obtained by subjecting the captured image to a process of reducing the brightness. Also in this embodiment, it is possible to correctly perform white balance control regardless of the size of the subject and the color of the background.

1A、1B、1C…カメラ、10…処理装置、20…撮像装置、30…画像処理装置、40…出力装置、50…記憶装置、PA,PB,PC…プログラム。 1A, 1B, 1C ... camera, 10 ... processing device, 20 ... image pickup device, 30 ... image processing device, 40 ... output device, 50 ... storage device, PA, PB, PC ... program.

Claims (5)

撮像装置により撮像された撮像画像の明るさの調整量の変化量が第1閾値を上回るか否かを判定し、
前記判定の結果が否定である場合には、前記撮像画像における色温度に基づいて前記撮像画像の色を調整し、
前記判定の結果が肯定である場合には、前記撮像画像に明るさを減少させる処理を施して得られる補正画像における色温度に基づいて前記撮像画像の色を調整する、
色調整方法。
It is determined whether or not the amount of change in the amount of adjustment of the brightness of the captured image captured by the image pickup device exceeds the first threshold value.
If the result of the determination is negative, the color of the captured image is adjusted based on the color temperature of the captured image.
If the result of the determination is affirmative, the color of the captured image is adjusted based on the color temperature in the corrected image obtained by subjecting the captured image to a process of reducing the brightness.
Color adjustment method.
前記調整量は、前記撮像画像の露出の補正量を示す露出補正値である、
請求項1に記載の色調整方法。
The adjustment amount is an exposure compensation value indicating an exposure correction amount of the captured image.
The color adjustment method according to claim 1.
撮像装置により撮像された撮像画像の明るさの調整量の変化量が第1閾値を上回るか否かを判定し、
前記調整量の変化量が前記第1閾値を上回ると判定される場合には、前記撮像画像においてエッジにより区画された領域の大きさに応じた値がゼロより大きく、且つ第2閾値よりも小さいか否かを判定し、
前記値がゼロと判定される場合、前記値が前記第2閾値以上と判定される場合、又は前記調整量の変化量が前記第1閾値以下と判定される場合には、前記撮像画像における色温度に基づいて前記撮像画像の色を調整し、
前記値がゼロより大きく、且つ前記第2閾値よりも小さいと判定される場合には、前記撮像画像に明るさを減少させる処理を施して得られる補正画像における色温度に基づいて前記撮像画像の色を調整する、
色調整方法。
It is determined whether or not the amount of change in the amount of adjustment of the brightness of the captured image captured by the image pickup device exceeds the first threshold value.
When it is determined that the amount of change in the adjustment amount exceeds the first threshold value, the value corresponding to the size of the region partitioned by the edges in the captured image is larger than zero and smaller than the second threshold value. Judge whether or not
When the value is determined to be zero, the value is determined to be equal to or higher than the second threshold value, or the amount of change in the adjustment amount is determined to be equal to or lower than the first threshold value, the color in the captured image is determined. Adjust the color of the captured image based on the temperature,
When it is determined that the value is larger than zero and smaller than the second threshold value, the captured image is based on the color temperature in the corrected image obtained by subjecting the captured image to a process of reducing the brightness. Adjust the color,
Color adjustment method.
撮像装置により撮像された撮像画像の明るさの調整量の変化量が第1閾値を上回るか否かを判定し、
前記調整量の変化量が前記第1閾値を上回ると判定される場合には、前記撮像画像においてエッジにより区画された領域の大きさに応じた値がゼロより大きく、且つ第2閾値よりも小さいか否かを判定し、
前記値が前記第2閾値よりも大きいと判定される場合には、前記値の変化量が第3閾値よりも小さいか否かを判定し、
前記調整量の変化量が前記第1閾値以下と判定される場合、前記値がゼロと判定される場合、又は前記値の変化量が前記第3閾値以上と判定される場合には、前記撮像装置における色温度に基づいて前記撮像画像の色を調整し、
前記値の変化量が前記第3閾値よりも小さいと判定される場合、又は前記値がゼロより大きく、且つ前記第2閾値よりも小さいと判定される場合には、前記撮像画像に明るさを減少させる処理を施して得られる補正画像における色温度に基づいて前記撮像画像の色を調整する、
色調整方法。
It is determined whether or not the amount of change in the amount of adjustment of the brightness of the captured image captured by the image pickup device exceeds the first threshold value.
When it is determined that the amount of change in the adjustment amount exceeds the first threshold value, the value corresponding to the size of the region partitioned by the edges in the captured image is larger than zero and smaller than the second threshold value. Judge whether or not
When it is determined that the value is larger than the second threshold value, it is determined whether or not the amount of change in the value is smaller than the third threshold value.
When the change amount of the adjustment amount is determined to be equal to or less than the first threshold value, the value is determined to be zero, or the change amount of the value is determined to be equal to or higher than the third threshold value, the image pickup is performed. The color of the captured image is adjusted based on the color temperature in the device.
When it is determined that the amount of change in the value is smaller than the third threshold value, or when it is determined that the value is larger than zero and smaller than the second threshold value, the captured image is given brightness. The color of the captured image is adjusted based on the color temperature in the corrected image obtained by performing the reducing process.
Color adjustment method.
撮像装置により撮像された撮像画像の色の調整量の変化量が第1閾値を上回るか否かを判定し、
前記判定の結果が否定である場合には、前記撮像画像における色温度に基づいて前記撮像画像の色を調整し、
前記判定の結果が肯定である場合には、前記撮像画像に明るさを減少させる処理を施して得られる補正画像における色温度に基づいて前記撮像画像の色を調整する、
色調整方法。
It is determined whether or not the amount of change in the color adjustment amount of the captured image captured by the image pickup device exceeds the first threshold value.
If the result of the determination is negative, the color of the captured image is adjusted based on the color temperature of the captured image.
If the result of the determination is affirmative, the color of the captured image is adjusted based on the color temperature in the corrected image obtained by subjecting the captured image to a process of reducing the brightness.
Color adjustment method.
JP2020137858A 2020-08-18 2020-08-18 Color adjustment method Pending JP2022034185A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020137858A JP2022034185A (en) 2020-08-18 2020-08-18 Color adjustment method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020137858A JP2022034185A (en) 2020-08-18 2020-08-18 Color adjustment method

Publications (1)

Publication Number Publication Date
JP2022034185A true JP2022034185A (en) 2022-03-03

Family

ID=80441970

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020137858A Pending JP2022034185A (en) 2020-08-18 2020-08-18 Color adjustment method

Country Status (1)

Country Link
JP (1) JP2022034185A (en)

Similar Documents

Publication Publication Date Title
CN108335279B (en) Image fusion and HDR imaging
US8368779B2 (en) Image processing apparatus for performing gradation correction on subject image
US6493468B1 (en) Image processing apparatus and method
US8965120B2 (en) Image processing apparatus and method of controlling the same
CN108668093B (en) HDR image generation method and device
CN104954771B (en) Carry out the image processing equipment and image processing method of color range correction
US20060204124A1 (en) Image processing apparatus for correcting contrast of image
JP2005353069A (en) Chroma-adaptive image improvement device and method
US20100303351A1 (en) Image processing apparatus, image processing method, and computer program
JP2015156615A (en) Image processing system, image processing method, control program, and recording medium
CN108876742B (en) Image color enhancement method and device
JP2009290661A (en) Image processing apparatus, image processing method, image processing program and printer
JP2009290660A (en) Image processing apparatus, image processing method, image processing program and printer
KR102401582B1 (en) Lens shading correction circuit and apparatus having the same
JP4595569B2 (en) Imaging device
US7613338B2 (en) Image processing method and apparatus, program, and storage medium
US11010880B2 (en) Image processing apparatus, image processing method, and storage medium that generate compression curves of respective divided regions so that respective slopes of the compression curves match in a particular luminance range
JP4997846B2 (en) Image processing program and image processing apparatus
US20240127403A1 (en) Multi-frame image fusion method and system, electronic device, and storage medium
CN112911366B (en) Saturation adjustment method and device and display equipment
JP6415063B2 (en) Image processing apparatus, image processing method, control program, and recording medium
JP2022034185A (en) Color adjustment method
JP6548403B2 (en) IMAGE PROCESSING APPARATUS, IMAGE PROCESSING METHOD, AND PROGRAM
WO2023000868A1 (en) Image processing method and apparatus, device, and storage medium
JP2010087769A (en) Method, program and apparatus for processing photographic image

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20210915

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20211102