JPH09200796A - White balance controller - Google Patents

White balance controller

Info

Publication number
JPH09200796A
JPH09200796A JP8007059A JP705996A JPH09200796A JP H09200796 A JPH09200796 A JP H09200796A JP 8007059 A JP8007059 A JP 8007059A JP 705996 A JP705996 A JP 705996A JP H09200796 A JPH09200796 A JP H09200796A
Authority
JP
Japan
Prior art keywords
white
mapping
black
color
recording
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
JP8007059A
Other languages
Japanese (ja)
Inventor
Tadanori Tezuka
忠則 手塚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP8007059A priority Critical patent/JPH09200796A/en
Publication of JPH09200796A publication Critical patent/JPH09200796A/en
Pending legal-status Critical Current

Links

Landscapes

  • Color Television Image Signal Generators (AREA)
  • Processing Of Color Television Signals (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide exact white balance control by performing the white balance control while utilizing mapping operation on a color space and to simplify the operation of white balance control by inputting a white balance control point while utilizing a cursor superimposed on an input image. SOLUTION: A user operates the cursor while utilizing a cursor control interface 502 so that the color to be controlled as white or black can be decided and written in a B/W recording memory 506. At a mapping means 509, the mapping operation is performed to the input image while utilizing a mapping parameter generated from the information written in the B/W recording memory so that the white balance control can be performed while including move, deformation and rotation on the color space.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、カラー画像のホワ
イトバランスを調整するホワイトバランス調整装置に関
するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a white balance adjusting device for adjusting the white balance of a color image.

【0002】[0002]

【従来の技術】従来から、ビデオカメラ、テレビおよび
カラー編集装置などの分野においては、ホワイトバラン
スの調整は必要不可欠な処理として組み込まれているこ
とが多い。
2. Description of the Related Art Conventionally, white balance adjustment is often incorporated as an indispensable process in the fields of video cameras, televisions, color editing devices and the like.

【0003】このホワイトバランスを調整する方法とし
ては、原信号であるRGBにそれぞれのゲインを変更し
て調整を行う方法が一般的に用いられている。しかし、
RGB空間は人間の知覚感覚と大きく異なっており、調
整結果が人間の感覚とずれてしまうため精度のよいホワ
イトバランス調整が望めなかった。
As a method of adjusting the white balance, a method of adjusting the gains by changing the gains of RGB, which are the original signals, is generally used. But,
Since the RGB space is significantly different from the human sense of perception, and the adjustment result deviates from the human sense, accurate white balance adjustment cannot be expected.

【0004】RGBのゲイン調整によるホワイトバラン
スに比べてさらに細かいホワイトバランス調整を可能と
するものとして、色差信号R−Y、B−Yに対し±Δ
R、±ΔBを加算して調整する(平行移動する)方法、
画像信号をディジタル信号に変換し、さらに色相、濃
度、明度で表現されるHCL空間に空間変換してからH
CL空間上で平行移動させる方法などが新たに提案され
ている。
As a means for enabling a finer white balance adjustment than the white balance by RGB gain adjustment, ± Δ for the color difference signals RY and BY.
A method of adding R and ± ΔB for adjustment (translating),
The image signal is converted into a digital signal, and further spatially converted into an HCL space expressed by hue, density and lightness, and then H
A method for parallel translation in the CL space has been newly proposed.

【0005】また、ホワイトバランス調整に必要な基準
となる白色の設定についても、ビデオカメラであれば白
い物体を撮像して調整する手動による方法や、一定以上
の輝度のものを白と判定し調整したり、あらかじめ記録
された情報をもとに調整するなどの自動的な調整方法な
ど、様々な方法が提案されている。
As for the white setting, which is the reference necessary for the white balance adjustment, a video camera is a manual method of picking up and adjusting a white object, or a white object having a brightness of a certain level or more is judged to be white. Various methods have been proposed, such as automatic adjustment method such as adjustment based on previously recorded information.

【0006】以下に従来のホワイトバランス調整装置と
して、オートホワイトバランス調整機能を持つ代表的な
ホワイトバランス調整装置について説明する。
A typical white balance adjusting device having an automatic white balance adjusting function will be described below as a conventional white balance adjusting device.

【0007】図7は従来のホワイトバランス調整装置の
構成を示すものである。図7において、601は比較
部、602はR用ホワイトバランス演算部、603はB
用ホワイトバランス演算部、604はメモリ部、605
および606は加算回路、607、608および609
はホワイトバランス調整装置に入力されるY、B−Y、
R−Y信号である。
FIG. 7 shows the structure of a conventional white balance adjusting device. In FIG. 7, 601 is a comparison unit, 602 is an R white balance calculation unit, and 603 is B.
White balance calculation unit, 604 is a memory unit, 605
And 606 are adder circuits, 607, 608 and 609.
Is input to the white balance adjustment device Y, BY,
RY signal.

【0008】比較部601では入力されたY,B−Y,
R−Y信号および内部の状態変数から、入力信号がホワ
イトバランスの調整範囲かどうか判定を行う。そして、
判定結果が調整範囲である場合にはホワイトバランスの
調整が必要であるとしてホワイトバランス設定信号をR
用ホワイトバランス演算部602およびB用ホワイトバ
ランス演算部603に送出し、さらに比較部601内部
の状態変数の値を現在のY,B−Y,R−Y信号を用い
て演算し、変更する。
In the comparison unit 601, the input Y, BY,
It is determined from the RY signal and the internal state variable whether the input signal is within the white balance adjustment range. And
If the determination result is within the adjustment range, it is determined that the white balance needs to be adjusted, and the white balance setting signal is set to R.
It is sent to the white balance calculation unit 602 for B and the white balance calculation unit 603 for B, and the value of the state variable inside the comparison unit 601 is calculated using the current Y, BY and RY signals and changed.

【0009】ホワイトバランス設定信号を受け取ったR
用ホワイトバランス演算部602およびB用ホワイトバ
ランス演算部603では、メモリ部604に格納された
調整用データおよび入力信号を利用して加算値±ΔRお
よび±ΔBを決定し、加算回路605および606に出
力する。R用ホワイトバランス演算部602から±ΔR
を受け取った加算回路606では、入力したR−Y信号
に±ΔRを加算して結果を出力する。B用ホワイトバラ
ンス演算部603から±ΔBを受け取った加算回路60
5でも同様に、入力したB−Y信号に±ΔBを加算して
結果を出力する。結果として、色差信号R−Y,B−Y
がそれぞれ±ΔR、±ΔBだけ調整された信号Y,(B
−Y)±ΔB,(R−Y)±ΔRがホワイトバランス調
整装置から出力される。
R receiving the white balance setting signal
The white balance calculation unit 602 for B and the white balance calculation unit 603 for B determine addition values ± ΔR and ± ΔB using the adjustment data and the input signal stored in the memory unit 604, and add them to the addition circuits 605 and 606. Output. ± ΔR from the white balance calculation unit 602 for R
The adding circuit 606 which has received the signal adds ± ΔR to the input RY signal and outputs the result. Adder circuit 60 that receives ± ΔB from the B white balance calculation unit 603
Similarly in 5, the input BY signal is added with ± ΔB and the result is output. As a result, the color difference signals R-Y and B-Y
Are signals Y, (B which are adjusted by ± ΔR and ± ΔB, respectively.
-Y) ± ΔB and (RY) ± ΔR are output from the white balance adjusting device.

【0010】なお、R用ホワイトバランス演算部602
およびB用ホワイトバランス演算部603は、次のホワ
イトバランス設定信号が比較部601から送出されるま
で、同一の±ΔR、±ΔBの値を出力するため、比較部
601において再調整が必要と判断されるまでは、同一
のホワイトバランス調整が続けて行われる。
The white balance calculation unit 602 for R
Since the white balance calculation unit 603 for B and B outputs the same value of ± ΔR and ± ΔB until the next white balance setting signal is sent from the comparison unit 601, the comparison unit 601 determines that readjustment is necessary. Until then, the same white balance adjustment is continuously performed.

【0011】[0011]

【発明が解決しようとする課題】しかしながら上記の従
来の構成では、色差信号B−Y,R−Yに対して±ΔR
および±ΔBの調整しか行われないため、輝度(明度)
成分であるYに対しては調整が行われないという問題を
有していた。これに対して、RGB信号に対してR,
G,B各々ににゲイン調整を施す方法では、明るさ方向
に対しても調整が行われるが、RGBという色空間は、
輝度と色差で表されるYCbCr空間や色相、濃度、明
度で表されるHCL空間と比べて人間の知覚空間と異な
っているため、調整結果が人間の感覚と多少異なってし
まうという問題を有していた。また、HCL空間で平行
移動する方法では、上記の問題は解決しているが、入力
画像の輝度軸が傾いている場合などには平行移動では対
応できないという問題を有していた。
However, in the above-mentioned conventional configuration, the color difference signals BY and RY are ± ΔR.
And only adjustment of ± ΔB is performed, so brightness (brightness)
There was a problem that adjustment was not performed for the component Y. On the other hand, R,
In the method of performing the gain adjustment on each of G and B, the adjustment is also performed in the brightness direction, but the RGB color space is
Compared to the YCbCr space represented by luminance and color difference and the HCL space represented by hue, density, and lightness, it is different from the human perception space, so there is a problem that the adjustment result will be slightly different from the human sense. Was there. Further, the method of translating in the HCL space solves the above problem, but has a problem that parallel translation cannot deal with the case where the luminance axis of the input image is tilted.

【0012】さらに、上記の従来の構成では、ホワイト
バランスの調整範囲が比較部の判定領域内に限定される
ため、極端にホワイトバランスがずれている信号に対し
ては処理ができないという問題を有していた。
Further, in the above-mentioned conventional configuration, since the adjustment range of the white balance is limited to the judgment area of the comparison section, there is a problem that a signal having extremely deviated white balance cannot be processed. Was.

【0013】また、白い物体を撮像してホワイトバラン
スを調整するという手動による調整方法は、ビデオカメ
ラのように撮像時に白い物体を撮像する必要があり、撮
像されたものを表示または編集するテレビやカラー編集
装置などには不向きであるという問題を有していた。
Further, the manual adjustment method of picking up an image of a white object and adjusting the white balance requires picking up an image of a white object at the time of image pickup like a video camera. It has a problem that it is not suitable for a color editing device.

【0014】この他のホワイトバランスを手動で調整す
る方法として、カラー編集装置などでは色空間の各軸に
対するゲインを、スライドバーなどを利用して利用者が
直接調整するという方法が取られているが、この調整方
法では調整は利用者の経験による部分が大きく調整が難
しいという問題を有していた。
As another method of manually adjusting the white balance, in a color editing apparatus or the like, a user directly adjusts the gain for each axis of the color space by using a slide bar or the like. However, this adjustment method has a problem that the adjustment is difficult due to a large part of the experience of the user.

【0015】本発明は上記従来の問題点を解決するもの
で、空の青、葉の緑、人の肌色といった人間の記憶色に
基づいた正確なホワイトバランス調整を実現するととも
に、手動によるホワイトバランス調整においても簡単に
ホワイトバランス調整可能なインターフェースを提供す
るホワイトバランス調整装置を提供することを目的とす
る。
The present invention solves the above-mentioned conventional problems, and realizes accurate white balance adjustment based on human memory colors such as sky blue, leaf green, and human skin color, and manual white balance adjustment. It is an object of the present invention to provide a white balance adjustment device that provides an interface that can easily adjust white balance during adjustment.

【0016】[0016]

【課題を解決するための手段】上記目的を達成するため
に本発明のホワイトバランス調整装置は、白黒設定色を
記録するB/W記録メモリと、B/W記録メモリに記録
された白黒設定色からホワイトバランス調整のための写
像演算に必要なパラメータをあらかじめ演算するための
写像パラメータ演算手段と、写像パラメータ演算手段で
演算された写像パラメータを記録する写像パラメータ記
録手段と、写像パラメータ記録手段に記録された内容を
用いて入力された入力画像の画素を色空間上で写像し、
結果を出力画像の画素値として出力する写像手段を有し
ている。
In order to achieve the above object, a white balance adjusting apparatus of the present invention comprises a B / W recording memory for recording black and white set colors and a black and white set color recorded in the B / W recording memory. To a mapping parameter computing means for computing in advance parameters necessary for mapping computation for white balance adjustment, a mapping parameter recording means for recording the mapping parameter computed by the mapping parameter computing means, and a mapping parameter recording means. The pixels of the input image, which are input using the contents described above, are mapped in the color space,
It has a mapping means for outputting the result as a pixel value of the output image.

【0017】また、白黒設定色を記録するB/W記録メ
モリと、B/W記録メモリに記録された白黒設定色を利
用した補間および補外によって入力された入力画像の画
素を色空間上で写像し、結果を出力画像の画素値として
出力する写像手段を有している。
Further, a B / W recording memory for recording the black-and-white set color, and a pixel of the input image input by interpolation and extrapolation using the black-and-white set color recorded in the B / W recording memory in the color space. It has mapping means for mapping and outputting the result as pixel values of the output image.

【0018】また、画像を表示する表示手段と、表示手
段に表示された画像に白点および黒点の位置を示すカー
ソルをインポーズして表示するカーソルインポーズ手段
と、表示しているカーソルの位置情報を管理し、カーソ
ルを制御するカーソル制御手段と、利用者が表示された
カーソルを画像中の任意の位置に移動させるためのカー
ソルコントロールインタフェースと、カーソル制御手段
に記録されたカーソルの位置情報から、対応する画像上
の色情報を取り出し白点および黒点をB/W記録メモリ
に記録する色情報抽出手段を有している。
Further, display means for displaying an image, cursor imposing means for imposing and displaying cursors indicating white and black dot positions on the image displayed on the display means, and the position of the displayed cursor From the cursor control means for managing information and controlling the cursor, the cursor control interface for the user to move the displayed cursor to any position in the image, and the cursor position information recorded in the cursor control means. , And has color information extracting means for extracting color information on the corresponding image and recording white and black dots in the B / W recording memory.

【0019】上記の構成により、B/W記録メモリに記
録された白黒設定色から写像パラメータ演算手段では写
像に必要となる写像パラメータを演算し写像パラメータ
記録手段に記録し、写像手段では写像パラメータ記録手
段に記録された写像パラメータを用いて入力画像の各画
素に対して写像演算を行い結果を出力することにより、
色空間上の軸の回転や変形を伴ったホワイトバランス調
整を行うことができる。
With the above arrangement, the mapping parameter calculation means calculates mapping parameters required for mapping from the black and white set colors recorded in the B / W recording memory, and records the mapping parameters in the mapping parameter recording means. By performing a mapping operation on each pixel of the input image using the mapping parameter recorded in the means, and outputting the result,
It is possible to perform white balance adjustment accompanied by rotation and deformation of the axis in the color space.

【0020】また、写像手段でB/W記録メモリに記録
された白黒設定色を用いた補間および補外を行い入力画
像の画素値を写像し、結果を出力することにより、比較
的簡単な演算のみで色空間上の軸の回転や変形を伴った
ホワイトバランス調整を行うことができる。
Further, the mapping means performs interpolation and extrapolation using the black-and-white set color recorded in the B / W recording memory, maps the pixel value of the input image, and outputs the result, thereby performing a relatively simple calculation. It is possible to adjust the white balance with rotation and deformation of the axis in the color space.

【0021】また、カーソル制御手段で白点および黒点
に対応するカーソル位置を管理し、カーソルインポーズ
手段でカーソル制御手段に記録されたカーソル位置情報
に基づいてカーソルを入力画像にインポーズし表示手段
に表示し、カーソルコントロールインタフェースにより
表示されたカーソルを利用者が画像中の自由な位置に設
定することができ、色情報抽出手段でカーソル位置から
B/W記録メモリに記録する白黒設定色を決定すること
により、手動によるホワイトバランスの設定を簡単に行
うことができる。
Further, the cursor control means manages the cursor positions corresponding to the white and black dots, and the cursor imposing means imposes the cursor on the input image based on the cursor position information recorded in the cursor control means, and the displaying means. The cursor displayed by the cursor control interface can be set by the user at any position in the image, and the color information extraction means determines the monochrome setting color to be recorded in the B / W recording memory from the cursor position. By doing so, the white balance can be easily set manually.

【0022】[0022]

【発明の実施の形態】BEST MODE FOR CARRYING OUT THE INVENTION

(実施の形態1)以下本発明の第1の実施の形態につい
て、図面を参照しながら説明する。
(First Embodiment) A first embodiment of the present invention will be described below with reference to the drawings.

【0023】図1において、101は自動白黒抽出手
段、102はB/W記録メモリ、103は写像パラメー
タ演算手段、104は写像パラメータ記録手段、105
は写像手段である。なお、本実施の形態において、入力
画像の色空間、出力画像の色空間およびホワイトバラン
ス調整装置内で取り扱われる色空間は明度と色差で表現
されるLuv空間であるすとるが、CIE−LUV空
間、RGB空間、YUV空間、HCL空間などの他の色
空間を用いた場合であっても同様の効果が期待できる。
In FIG. 1, 101 is automatic black-and-white extracting means, 102 is B / W recording memory, 103 is mapping parameter calculating means, 104 is mapping parameter recording means, and 105.
Is a mapping means. In the present embodiment, the color space of the input image, the color space of the output image, and the color space handled in the white balance adjusting apparatus are the Luv space represented by the lightness and the color difference, which is the CIE-LUV space. The same effect can be expected even when other color spaces such as RGB space, YUV space, and HCL space are used.

【0024】自動白黒抽出装置101では、入力画像を
入力し白色または黒色として設定する色(以下、それぞ
れ白点、黒点と記す)を自動的に検出しB/W記録メモ
リ102に記録する。白点および黒点の自動的な抽出方
法としては、一定以上の輝度のものを白点、一定以下の
輝度のものを黒点として設定する方法や、入力画像中で
最も輝度が大きいものを白点、最も輝度が小さいものを
黒点として設定する方法などが考えられる。
In the automatic black-and-white extracting device 101, a color which is input as an input image and is set as white or black (hereinafter referred to as a white dot and a black dot, respectively) is automatically detected and recorded in the B / W recording memory 102. As an automatic extraction method of white and black dots, a method of setting a brightness of a certain level or more as a white point, a method of setting a brightness of a certain level or less as a black point, or a white point having the highest brightness in the input image, A method of setting the one having the smallest brightness as a black dot can be considered.

【0025】写像パラメータ演算手段103では、B/
W記録メモリ102に記録された白黒設定色を利用して
写像手段105で利用する写像パラメータの演算を行い
結果を写像パラメータ記録手段104に記録する。写像
手段105では、写像パラメータ記録手段104に記録
された写像パラメータを用いて入力した入力画像を画素
毎に色空間上で写像し、写像結果をホワイトバランス調
整後の画像として出力する。
In the mapping parameter calculation means 103, B /
The black-and-white setting color recorded in the W recording memory 102 is used to calculate the mapping parameter used by the mapping means 105, and the result is recorded in the mapping parameter recording means 104. The mapping means 105 maps the input image input using the mapping parameters recorded in the mapping parameter recording means 104 on a color space for each pixel, and outputs the mapping result as an image after white balance adjustment.

【0026】以上の結果、入力画像から白点および黒点
と自動抽出し、それに合わせたホワイトバランス調整を
行うことができる。
As a result of the above, it is possible to automatically extract the white spots and the black spots from the input image and adjust the white balance according to them.

【0027】次に、写像パラメータ演算手段103およ
び写像手段105で行われる写像パラメータの算出およ
び写像演算について図面を参照しながら説明をおこな
う。図2は、本実施の形態における写像演算の概念を示
したものである。図2(a)における白点および黒点
は、B/W記録メモリに記録された白黒設定色を、Lu
v空間の点として示したもである。このとき、Luv空
間の白色および黒色として定義される点をそれぞれ白色
および黒色と表すと、写像手段105により行われる写
像により白点は白色に、黒点は黒色にそれぞれ写像され
る。これは、白点と黒点を結んだ色空間上の線分を「白
黒軸」とすると、この白黒軸をLuv空間上の輝度軸L
に写像することになり、色空間上の全ての点を白点およ
び黒点を白色および黒色とする新たな空間L’u’v’
に写像関数fを用いて写像することを意味している。
Next, the calculation of the mapping parameters and the mapping calculation performed by the mapping parameter calculation means 103 and the mapping means 105 will be described with reference to the drawings. FIG. 2 shows the concept of the mapping calculation in this embodiment. The white and black dots in FIG. 2A represent the black and white set colors recorded in the B / W recording memory by Lu.
It is also shown as a point in v-space. At this time, if the points defined as white and black in the Luv space are represented as white and black, respectively, the white point is mapped to white and the black point is mapped to black by the mapping performed by the mapping means 105. If the line segment in the color space connecting the white points and the black points is the “black and white axis”, this black and white axis is the luminance axis L in the Luv space.
To a new space L'u'v 'in which all points on the color space are white points and black points are white and black.
It means that the mapping is performed using the mapping function f.

【0028】なお、本実施の形態においては、B/W記
録メモリに記録された白黒設定色を白色および黒色へと
写像したが、B/W記録メモリに記録された白黒設定色
の輝度成分(L)は動かさずにu=v=0の点に写像し
たり、u=v=0とし、輝度成分(L)については一定
の比率だけ動かした位置に写像するなど、B/W記録メ
モリに記録された白黒設定色を、白色と黒色を結んだ
「色空間の白黒軸」上の任意の位置に写像する場合で
も、本実施の形態と同様の効果が期待できる。この様に
色空間全体を写像する関数fを利用してホワイトバラン
ス調整を行うことで、色空間上での平行移動によるホワ
イトバランス調整よりも正確なホワイトバランス調整を
行うことができる。
In the present embodiment, the black-and-white setting color recorded in the B / W recording memory is mapped to white and black. However, the brightness component ( L) is mapped to a point of u = v = 0 without moving, or u = v = 0 and the luminance component (L) is mapped to a position moved by a fixed ratio. Even when the recorded black and white set color is mapped to an arbitrary position on the “black and white axis of the color space” connecting white and black, the same effect as in the present embodiment can be expected. By performing the white balance adjustment using the function f that maps the entire color space in this manner, it is possible to perform more accurate white balance adjustment than the white balance adjustment by the parallel movement in the color space.

【0029】ここで、白点を(数1)、Luv空間の白
色を(数2)、黒点を(数3)、Luv空間の黒色を
(数4)で表し、入力画像の画素値をSx、写像手段1
05から出力される出力画像の画素値をDxとする。
Here, the white point is represented by (Equation 1), the white color of Luv space is represented by (Equation 2), the black point is represented by (Equation 3), and the black color of Luv space is represented by (Equation 4), and the pixel value of the input image is represented by Sx. , Mapping means 1
The pixel value of the output image output from 05 is Dx.

【0030】[0030]

【数1】 [Equation 1]

【0031】[0031]

【数2】 [Equation 2]

【0032】[0032]

【数3】 (Equation 3)

【0033】[0033]

【数4】 (Equation 4)

【0034】また、写像パラメータ記録手段104に記
録されている写像パラメータをPw,Pbと表すとする
と、写像手段105で演算される写像関数の式は(数
5)で表すことができる。
If the mapping parameters recorded in the mapping parameter recording means 104 are represented by Pw and Pb, the formula of the mapping function calculated by the mapping means 105 can be expressed by (Equation 5).

【0035】[0035]

【数5】 (Equation 5)

【0036】(数5)は、白点および黒点からの影響量
Pw、Pbと、入力画像の画素値Sxと白点Swまたは
黒点Sbとの距離関数lを掛け合わせた値を入力画像の
画素値Sxに加えるもので、入力画像Sxが白点および
黒点との距離に応じた影響量を受け移動することを意味
している。(数5)で示される写像関数により、白点お
よび黒点がそれぞれ白色および黒色に写像するために
は、適当な写像パラメータPw,Pbを決定する必要が
あり、写像パラメータ演算手段103では(数6)の演
算によりこれを決定している。
(Equation 5) is a value obtained by multiplying the influence amounts Pw and Pb from the white and black points by the distance function l between the pixel value Sx of the input image and the white point Sw or the black point Sb. In addition to the value Sx, it means that the input image Sx moves with an influence amount corresponding to the distance between the white point and the black point. In order for the white point and the black point to be mapped to white and black by the mapping function shown in (Equation 5), it is necessary to determine appropriate mapping parameters Pw and Pb. ) Is determined by the calculation.

【0037】[0037]

【数6】 (Equation 6)

【0038】なお、(数5)と(数6)の距離関数l、
および(数6)のQw、Qbは(数7)で定義されたも
のである。
The distance function l of (Equation 5) and (Equation 6),
And Qw and Qb in (Equation 6) are defined in (Equation 7).

【0039】[0039]

【数7】 (Equation 7)

【0040】ここで、距離関数Lは、距離が0において
1.0となる単調減少関数であり、この条件下であれば
どのような関数であっても同様の効果が期待できる。
Here, the distance function L is a monotonically decreasing function which becomes 1.0 when the distance is 0, and the same effect can be expected with any function under this condition.

【0041】以上のように本実施の形態によれば、白黒
設定色を自動抽出しB/W記録メモリに記録する自動白
黒抽出手段、B/W記録メモリに記録された内容から写
像パラメータを演算し写像パラメータ記録手段に記録す
る写像パラメータ演算手段、写像パラメータ記録手段に
記録された写像パラメータを用いて入力画像の画素を色
空間上で写像し結果を出力する写像手段を設けることに
より、色空間上で平行移動することだけでは対応できな
い、入力画像のホワイトバランスが色空間上で変形(入
力画像の白黒軸と色空間上の白黒軸の長さが異なる)や
回転(入力画像の白黒軸と色空間上の白黒軸の傾きが異
なる)などを伴うような複雑なずれを生じている場合で
あっても正確にホワイトバランス調整を行うことができ
る。
As described above, according to the present embodiment, automatic black-and-white extracting means for automatically extracting the black-and-white set color and recording it in the B / W recording memory, the mapping parameter is calculated from the contents recorded in the B / W recording memory. By providing mapping parameter calculating means for recording in the mapping parameter recording means and mapping means for mapping the pixels of the input image in the color space using the mapping parameters recorded in the mapping parameter recording means and outputting the result. The white balance of the input image is transformed in the color space (the black-and-white axis of the input image and the black-and-white axis of the color space have different lengths) and rotated (the black and white axis of the input image is It is possible to accurately perform white balance adjustment even in the case where a complicated shift such as that in which the inclination of the black and white axis in the color space is different) occurs.

【0042】(実施の形態2)以下本発明の第2の実施
の形態について、図面を参照しながら説明する。
(Second Embodiment) A second embodiment of the present invention will be described below with reference to the drawings.

【0043】図3において、301はカーソルインポー
ズ手段、302はカーソル制御手段、303は表示手
段、304はカーソルコントロールインタフェース、3
05は色情報抽出手段、306はB/W記録メモリ、3
07は写像手段、308はLUT生成手段、309はL
UT記録手段、310はLUT参照手段、311は入力
色空間変換手段、312は出力色空間変換手段である。
In FIG. 3, 301 is cursor imposing means, 302 is cursor control means, 303 is display means, 304 is cursor control interface, 3
Reference numeral 05 is color information extracting means, 306 is a B / W recording memory, 3
07 is mapping means, 308 is LUT generation means, and 309 is L.
UT recording means, 310 is LUT reference means, 311 is input color space conversion means, and 312 is output color space conversion means.

【0044】なお、本実施の形態では、入力画像および
出力画像の色空間はRGB空間であり、ホワイトバラン
ス調整装置が処理を行う色空間はL*u*v*空間を円
筒座標系にした色空間であるL*C*uvHuvである
とするが、入力画像および出力画像の色空間およびホワ
イトバランス調整装置が処理を行う色空間がそれぞれY
CbCr空間、YUV空間,La*b*空間、HCL空
間などである場合でも、本実施の形態と同様の効果が期
待できる。
In this embodiment, the color space of the input image and the output image is the RGB space, and the color space processed by the white balance adjusting device is a color in which the L * u * v * space is a cylindrical coordinate system. It is assumed that the space is L * C * uvHuv, but the color space of the input image and the output image and the color space processed by the white balance adjusting apparatus are Y, respectively.
Even in the case of CbCr space, YUV space, La * b * space, HCL space, etc., the same effect as this embodiment can be expected.

【0045】カーソルインポーズ手段301では、カー
ソル制御手段302で管理されている白点および黒点の
カーソル位置情報に基づき白点カーソルと黒点カーソル
を入力画像にインポーズし、表示手段303に表示す
る。利用者は、表示手段303に表示された白点カーソ
ルおよび黒点カーソルを、カーソルコントロールインタ
ーフェース304を用いて、表示された入力画像の任意
の画素に移動させることができる。これは、カーソルコ
ントロールインタフェース304は、利用者からの入力
を、カーソル制御手段302に伝送し、カーソル制御手
段302ではカーソルコントロールインタフェースから
入力された利用者の操作情報に従ってカーソルの位置情
報を更新することで実現される。また、利用者は、表示
手段303に表示されたカーソルを移動し、白点および
黒点として設定したい色の選択が完了した場合には、選
択決定操作を行い白黒設定色が決定したことをカーソル
制御手段に伝える。カーソル制御手段302では、カー
ソルコントロールインタフェース304からの白黒設定
色の決定を表す設定信号を受け取ると、色情報抽出手段
305に、設定信号、および白点カーソルと黒点カーソ
ルの位置情報を送出する。
The cursor imposing means 301 imposes the white dot cursor and the black dot cursor on the input image based on the cursor position information of the white dot and the black dot managed by the cursor control means 302, and displays them on the display means 303. The user can move the white dot cursor and the black dot cursor displayed on the display unit 303 to an arbitrary pixel of the displayed input image by using the cursor control interface 304. This is because the cursor control interface 304 transmits the input from the user to the cursor control means 302, and the cursor control means 302 updates the position information of the cursor according to the operation information of the user input from the cursor control interface. Will be realized in. Further, the user moves the cursor displayed on the display means 303, and when the selection of the color to be set as the white dot and the black dot is completed, the user performs a selection determination operation to control that the monochrome setting color is determined. Tell the means. When the cursor control means 302 receives the setting signal indicating the determination of the monochrome setting color from the cursor control interface 304, it sends the setting signal and the position information of the white point cursor and the black point cursor to the color information extracting means 305.

【0046】なお、本実施の形態においては、利用者の
選択決定操作により白黒設定色の決定を行っているが、
カーソル制御手段302において、利用者がカーソルを
移動する毎に、または、一定時間の経過毎に白黒設定色
を決定し、色情報抽出手段305に、設定信号、および
白点カーソルと黒点カーソルの位置情報を送出しても本
実施の形態と同様の効果が期待できる。カーソル制御手
段302から設定信号および白点カーソルと黒点カーソ
ルの位置情報を受け取った色情報抽出手段305では、
入力画像の白点カーソルと黒点カーソルの位置に対応す
る画素の色を抽出し、B/W記録手段306へ白黒設定
色として記録する。B/W記録手段306に記録された
白黒設定色は写像手段307に入力される。
In the present embodiment, the black and white set color is determined by the user's selection and determination operation.
In the cursor control means 302, a black-and-white setting color is determined every time the user moves the cursor or every time a fixed time elapses, and the color information extraction means 305 sets the setting signal and the positions of the white dot cursor and the black dot cursor. Even if the information is transmitted, the same effect as this embodiment can be expected. The color information extraction unit 305 which receives the setting signal and the position information of the white dot cursor and the black dot cursor from the cursor control unit 302,
The color of the pixel corresponding to the positions of the white dot cursor and the black dot cursor of the input image is extracted and recorded in the B / W recording unit 306 as a black and white set color. The monochrome setting color recorded in the B / W recording unit 306 is input to the mapping unit 307.

【0047】写像手段307では、LUT生成手段から
出力されるLUT生成用データに対し、B/W記録手段
306に記録された白黒設定色を利用した補間および補
外による写像演算を行い、結果をLUT生成手段308
に出力する。LUT生成手段308では、LUTの元に
なるデータであるLUT生成用データを写像手段307
に入力し、結果をLUTのエントリとしてLUT記録手
段309に格納する。
In the mapping means 307, the LUT generating data output from the LUT generating means is subjected to a mapping operation by interpolation and extrapolation using the black and white set color recorded in the B / W recording means 306, and the result is obtained. LUT generation means 308
Output to The LUT generation means 308 maps the LUT generation data, which is the data that is the source of the LUT, to the mapping means 307.
And stores the result in the LUT recording means 309 as an LUT entry.

【0048】この処理の流れを図4(a)に示す。LU
T生成用データとしては、図4(b)に示すような色空
間の各軸を等間隔でN個に区切った場合にできる格子点
の座標値を用いる。これを写像手段に入力することで、
その位置が写像された後に移動する座標値を求め、格子
点の部分の情報としてLUT記録手段に記録する。
The flow of this processing is shown in FIG. LU
As the T generation data, the coordinate values of the grid points obtained when the respective axes of the color space as shown in FIG. 4B are divided into N pieces at equal intervals are used. By inputting this into the mapping means,
The coordinate value that moves after the position is mapped is obtained and recorded in the LUT recording means as information of the portion of the grid point.

【0049】なお、以上の操作は、カーソル制御手段に
おいて白黒設定色の設定信号が色情報抽出手段305に
入力される毎に行われ、LUT記録手段309に記録さ
れたLUTの内容が更新される。LUT参照手段310
では、入力色空間変換手段311でRGB空間からLC
*uvHuv空間に変換された入力画像の画素値を受け
取り、LUT記録手段309に記録されたLUTの参照
により写像され、ホワイトバランス調整後の画素値を出
力する。
The above operation is performed every time the setting signal of the monochrome setting color is input to the color information extracting means 305 by the cursor control means, and the contents of the LUT recorded in the LUT recording means 309 are updated. . LUT reference means 310
Then, the input color space conversion unit 311 converts the RGB space to LC.
The pixel value of the input image converted into the * uvHuv space is received, mapped by referring to the LUT recorded in the LUT recording means 309, and the pixel value after white balance adjustment is output.

【0050】なお、LUT参照手段310におけるLU
Tの参照方法としては、LUT記録手段309に入力画
像の画素値として入力される全ての値に対する出力が記
録されており、LUTの該当箇所を取り出し出力する方
法や、LUTから入力画像の画素を囲む複数点の情報を
取り出し、補間演算を行って値を決定する方法などが考
えられる。出力色空間変換手段312では、出力された
画素値の空間をLC*uvHuv空間から出力画像の色
空間であるRGB空間に空間変換し出力画像を出力す
る。
The LU in the LUT reference means 310
As a reference method of T, outputs for all values input as pixel values of the input image are recorded in the LUT recording unit 309, and a method of extracting the corresponding portion of the LUT and outputting the pixel of the input image from the LUT. A method of taking out information of a plurality of surrounding points and performing interpolation calculation to determine a value can be considered. The output color space conversion unit 312 spatially converts the space of the output pixel values from the LC * uvHuv space to the RGB space which is the color space of the output image and outputs the output image.

【0051】以上の結果、利用者はホワイトバランスを
調整するために必要な白黒設定色の設定を、白点カーソ
ルおよび黒点カーソルを入力画像上で移動させることに
より行うことができる。また、設定された白黒設定色に
基づいた入力画像に対するホワイトバランス調整を、L
UTの参照のみで行うことができる。
As a result, the user can set the black-and-white setting color necessary for adjusting the white balance by moving the white dot cursor and the black dot cursor on the input image. In addition, the white balance adjustment for the input image based on the set monochrome setting color is
It can be done only by referring to the UT.

【0052】次に、写像手段307における補間および
補外について図面を参照しながら説明を行う。
Next, interpolation and extrapolation in the mapping means 307 will be described with reference to the drawings.

【0053】図5は、写像手段307における補間、補
外の概念を示したものである。LC*uvHuv空間は
L*u*v*空間を円筒座標系に変換したものであり、
図5のようなL*u*v*空間上の円筒空間で表すこと
ができる。この時、B/Wに記録された白点および黒点
をLC*uvHuv空間上の点として表現すると図5
(a)となる。写像手段307では、図5(a)に示す
ように白点を白色に、黒点を黒色に移動する写像演算を
行うが、これは白点および黒点というLC*uvHuv
空間上の座標点から各軸に対して補間を拡張していく方
法で実現される。これを示す概念図が図5(b)〜図5
(d)である。
FIG. 5 shows the concept of interpolation and extrapolation in the mapping means 307. The LC * uvHuv space is a transformation of the L * u * v * space into a cylindrical coordinate system,
It can be represented by a cylindrical space on the L * u * v * space as shown in FIG. At this time, if the white and black points recorded on the B / W are expressed as points on the LC * uvHuv space, FIG.
(A). In the mapping means 307, as shown in FIG. 5A, the white point is moved to white, and the black point is moved to black. The mapping operation is performed by LC * uvHuv which is a white point and a black point.
It is realized by the method of expanding the interpolation for each axis from the coordinate points in space. A conceptual diagram showing this is shown in FIGS.
(D).

【0054】本実施の形態における方式では、まず、白
点および黒点から輝度方向(L方向)への補間を行う
(図5(b))。次に、輝度方向へ補間した結果を濃度
方向(C方向)へと拡張する(図5(c))。この操作
により、白点または黒点を含んだLC*uvHuv空間
上の2つの平面について補間が終了しているので、次に
これを色相方向(H方向)へ回転させて補間を行い色空
間全体の補間を行う。以上の操作により、B/W記録手
段306に記録された白黒設定色にもとづいた色空間全
体の補間、補外が完了し、写像関数が決定される。
In the method of this embodiment, first, interpolation is performed from the white and black points in the luminance direction (L direction) (FIG. 5B). Next, the result of interpolation in the luminance direction is expanded in the density direction (C direction) (FIG. 5C). By this operation, the interpolation has been completed for the two planes in the LC * uvHuv space including the white point or the black point, so this is rotated in the hue direction (H direction) to perform the interpolation, and the entire color space Interpolate. By the above operation, interpolation and extrapolation of the entire color space based on the black and white set color recorded in the B / W recording unit 306 are completed, and the mapping function is determined.

【0055】以上のように、本実施の形態によれば、表
示手段に入力画像にカーソルをインポーズして表示する
カーソルインポーズ手段、カーソルの位置を管理し制御
を行うカーソル制御手段、利用者から操作を受けつけ操
作情報をカーソル制御手段に渡すカーソルコントロール
インタフェース、カーソル制御手段に記録されたカーソ
ルの位置情報と入力画像からB/W記録メモリに白黒設
定色を書き込む色情報抽出手段を設けることに、利用者
が入力画像上に表示されたカーソルを操作して任意の色
をホワイトバランス調整に用いる白点および黒点として
B/W記録メモリに設定することができる。
As described above, according to the present embodiment, the cursor impose means for imposing and displaying the cursor on the input image on the display means, the cursor control means for managing and controlling the position of the cursor, and the user. A cursor control interface for receiving an operation from the controller and passing operation information to the cursor control means, and color information extraction means for writing a monochrome setting color to the B / W recording memory from the position information of the cursor recorded in the cursor control means and the input image. The user can operate the cursor displayed on the input image to set an arbitrary color in the B / W recording memory as a white dot and a black dot used for white balance adjustment.

【0056】また、B/W記録メモリに記録された白黒
設定色を用いた補間、補外演算により、入力されたLC
*uvHuv空間上の値を写像し出力する写像手段、写
像手段を利用してLUTを生成し、LUT記録手段に記
録するLUT生成手段、LUT記録手段に記録されたL
UTを用いて、入力された入力画像の画素を写像演算を
行うよりも少ない演算コストで写像し、出力するLUT
参照手段を設けることにより、色空間上での平行移動に
よるホワイトバランス調整に比べて正確なホワイトバラ
ンス調整を、高速に行うことができる。
In addition, the input LC is obtained by interpolation and extrapolation using the black and white set color recorded in the B / W recording memory.
* Mapping means for mapping and outputting values in the uvHuv space, LUT generation means for generating an LUT using the mapping means, and recording in the LUT recording means, L recorded in the LUT recording means
An LUT for mapping and outputting the pixels of the input image that has been input using the UT at a calculation cost lower than that for performing the mapping calculation.
By providing the reference means, accurate white balance adjustment can be performed at high speed as compared with white balance adjustment by parallel movement in the color space.

【0057】さらに、利用者のカーソルによる入力と組
み合わせたことで、利用者の記憶色に基づいて調整が行
われるため、自動ホワイトバランスに比べて広い範囲に
おいて正確なホワイトバランス調整を行うことができ
る。
Further, since the adjustment is performed based on the memory color of the user in combination with the input by the user's cursor, accurate white balance adjustment can be performed in a wider range than automatic white balance. .

【0058】(実施の形態3)以下本発明の第3の実施
の形態について、図面を参照しながら説明する。
(Embodiment 3) Hereinafter, a third embodiment of the present invention will be described with reference to the drawings.

【0059】図6において、501は表示手段、502
はカーソルコントロールインタフェースおよびメモリ切
替手段、503はカーソルインポーズ手段、504はカ
ーソル制御手段、505は色情報抽出手段、506はB
/W記録メモリ、507は写像パラメータ演算手段、5
08は写像パラメータ記録手段、509は写像手段、5
10は入力色空間変換手段、511は出力色空間変換手
段、512はA/D変換手段、513はD/A変換手段
である。
In FIG. 6, reference numeral 501 denotes display means, 502
Is a cursor control interface and memory switching means, 503 is cursor imposing means, 504 is cursor controlling means, 505 is color information extracting means, and 506 is B.
/ W recording memory, 507 is a mapping parameter calculation means, 5
08 is a mapping parameter recording means, 509 is a mapping means, 5
Reference numeral 10 is an input color space conversion means, 511 is an output color space conversion means, 512 is an A / D conversion means, and 513 is a D / A conversion means.

【0060】なお、本実施の形態においては、入力画像
および出力画像はアナログ信号であるとし、A/D変換
手段512およびD/A変換手段513により処理され
るディジタル画像データの色空間はRGB空間であり、
写像手段509で写像を行う色空間はYUV空間である
とするが、A/D変換手段512とD/A変換手段51
3、および写像手段509で写像を行う色空間がどのよ
うな色空間の組み合わせであっても本実施の形態と同様
の効果が期待できる。また、図6において、写像パラメ
ータ演算手段507および写像パラメータ記録手段50
8は、処理する色空間がLuv空間がYUV空間と異な
る以外は実施の形態1のものと同様のものであるので、
本実施の形態においての説明は省略する。
In this embodiment, the input image and the output image are assumed to be analog signals, and the color space of the digital image data processed by the A / D conversion means 512 and D / A conversion means 513 is the RGB space. And
It is assumed that the color space used for mapping by the mapping means 509 is the YUV space, but the A / D conversion means 512 and the D / A conversion means 51.
3 and any combination of color spaces to be mapped by the mapping means 509, the same effect as this embodiment can be expected. Further, in FIG. 6, the mapping parameter calculation means 507 and the mapping parameter recording means 50.
8 is the same as that of the first embodiment except that the color space to be processed is different from the Luv space and the YUV space.
The description in this embodiment will be omitted.

【0061】カーソルインポーズ手段503では、カー
ソル制御手段504に記録されたカーソルの位置情報に
基づいてカーソルを入力画像に重ね合わせて表示手段5
01に表示する。なお、本実施の形態においては、黒点
カーソルは、利用者がカーソルコントロールインタフェ
ース502を用いて表示/非表示を切替えることができ
るとし、黒点カーソルが非表示の場合は色情報抽出手段
505では黒点としてあらかじめ決められた値をB/W
記録メモリ506に記録するものとする。
The cursor imposing means 503 superimposes the cursor on the input image based on the position information of the cursor recorded in the cursor control means 504 and displays it on the display means 5.
01 is displayed. In the present embodiment, it is assumed that the user can switch the display / non-display of the black dot cursor by using the cursor control interface 502. If the black dot cursor is not displayed, the color information extraction unit 505 displays it as a black dot. The predetermined value is B / W
The data is recorded in the recording memory 506.

【0062】利用者は表示手段501に表示されたカー
ソルをカーソルコントロールインタフェース502を操
作して動かし、入力画像の白または黒にしたい点にカー
ソルを移動させ、位置が決定した時点で設定操作を行
う。カーソルコントロールインタフェース502で設定
操作が行われるとカーソル制御手段504ではカーソル
の位置情報および設定信号を色情報抽出手段505に送
る。設定信号を受け取った色情報抽出手段505では、
カーソル制御手段504から受け取ったカーソルの位置
情報から入力画像上の該当箇所の画素の色情報を取り出
し、B/W記録メモリに受け渡す。B/W記録メモリ5
06ではメモリ切替手段502で設定されたメモリ位置
へ色情報抽出手段505がから渡された白黒設定色を書
き込む。メモリ切替手段502は、利用者が複数個の記
録位置から任意の場所を選択できるもので、利用者はB
/W記録メモリ506において記録するメモリ位置を、
切替えスイッチなどの入力装置により選択する。なお、
写像パラメータ演算手段507には、B/W記録メモリ
506に記録された白黒設定色のうち、メモリ切替手段
において選択されたものが受け渡される。
The user operates the cursor control interface 502 to move the cursor displayed on the display means 501, moves the cursor to the point of the input image to be white or black, and performs the setting operation when the position is determined. . When a setting operation is performed by the cursor control interface 502, the cursor control unit 504 sends cursor position information and a setting signal to the color information extraction unit 505. Upon receiving the setting signal, the color information extraction means 505
From the position information of the cursor received from the cursor control means 504, the color information of the pixel at the corresponding position on the input image is extracted and passed to the B / W recording memory. B / W recording memory 5
At 06, the monochrome information set by the color information extracting means 505 is written in the memory position set by the memory switching means 502. The memory switching means 502 allows the user to select an arbitrary location from a plurality of recording positions.
The memory position to be recorded in the / W recording memory 506 is
Select with input device such as changeover switch. In addition,
The black-and-white setting color recorded in the B / W recording memory 506 selected by the memory switching means is transferred to the mapping parameter calculating means 507.

【0063】写像手段509では、写像パラメータ記録
手段508に記録された写像パラメータを利用した写像
関数によって入力色空間変換手段510から出力された
入力画像(YUV空間)を写像し、写像結果を出力す
る。この時、写像を行った結果を写像手段509内部の
メモリに記録しておく。同一の入力画像の画素値が入力
された場合には、写像演算を行わず、メモリに記録され
た写像結果を取り出して、出力する。なお、写像手段5
09内部の写像結果を記録するためのメモリがいっぱい
になった(以下、メモリフルと示す。)場合は、最近も
っとも参照されなかったものを削除する。なお、メモリ
フルの場合の対処の方法としては、従来からメモリキャ
ッシュに利用されているLRU、FIFOなどのどのよ
うな置換アルゴリズムを利用しても本実施の形態と同様
の効果が期待できる。
The mapping means 509 maps the input image (YUV space) output from the input color space conversion means 510 by a mapping function using the mapping parameter recorded in the mapping parameter recording means 508, and outputs the mapping result. . At this time, the result of mapping is recorded in the memory inside the mapping means 509. When the pixel values of the same input image are input, the mapping calculation is not performed and the mapping result recorded in the memory is extracted and output. The mapping means 5
When the memory for recording the mapping result in 09 is full (hereinafter referred to as "memory full"), the most recently unreferenced one is deleted. As a method of coping with the case where the memory is full, the same effect as that of the present embodiment can be expected by using any replacement algorithm such as LRU and FIFO conventionally used for the memory cache.

【0064】A/D変換手段512は、入力されたアナ
ログ信号をディジタルデータ(RGB)に変換し、D/
A変換手段513はホワイトバランス調整後のディジタ
ルデータ(RGB)を再びアナログ信号に変換して出力
する。また、入力色空間変換手段510では、RGB空
間から処理を行う空間であるYUV空間への空間変換を
行い、出力色空間変換手段511では、ホワイトバラン
ス調整後のデータをYUV空間からRGB空間へと再び
変換を行う。なお、A/D変換手段512およびD/A
変換手段513が取り扱うディジタルデータの色空間と
写像手段509が写像処理を行う色空間がどのような組
み合わせであっても、入力色空間変換手段510および
出力色空間変換手段511として適切な色空間変換が行
えるものを用意すれば、本実施の形態と同様の効果が期
待できる。
The A / D conversion means 512 converts the input analog signal into digital data (RGB), and D / D
The A conversion means 513 converts the digital data (RGB) after white balance adjustment into an analog signal again and outputs it. Further, the input color space conversion means 510 performs space conversion from the RGB space to the YUV space which is a processing space, and the output color space conversion means 511 converts the data after white balance adjustment from the YUV space to the RGB space. Convert again. The A / D conversion means 512 and the D / A
Regardless of the combination of the color space of the digital data handled by the conversion unit 513 and the color space on which the mapping unit 509 performs the mapping processing, the color space conversion suitable as the input color space conversion unit 510 and the output color space conversion unit 511 is performed. The same effect as that of the present embodiment can be expected by preparing a device capable of performing the above.

【0065】以上のように、本実施の形態によれば、ア
ナログ信号とディジタル信号の変換を行うA/D変換手
段およびD/A変換手段、色空間の間の変換を行う入力
色空間変換手段および出力色空間変換手段を設けること
により、アナログ信号で入力される画像に対してもホワ
イトバランス調整を行うことができる。
As described above, according to this embodiment, the A / D conversion means and D / A conversion means for converting an analog signal and a digital signal, and the input color space conversion means for converting between color spaces. By providing the output color space conversion means, it is possible to perform white balance adjustment even for an image input as an analog signal.

【0066】また、写像手段に過去に行った写像結果を
記録するメモリを設けることにより、入力画像の画素量
に対して写像演算の回数を減らすことができ、写像によ
るホワイトバランス調整を高速に行うことができる。
By providing the mapping means with a memory for recording the past mapping results, the number of mapping operations can be reduced for the pixel amount of the input image, and white balance adjustment by mapping is performed at high speed. be able to.

【0067】さらに、黒点に対する調整はモニタ上での
変化が小さく白点に比べて視覚的重要度が低いため、黒
点の値が設定されない場合に黒点の値をあらかじめ決め
られた値として設定する色情報抽出手段およびカーソル
制御手段を設けることにより、利用者の黒点の設定を省
略することができ、ホワイトバランス操作を簡略化する
ことができる。
Further, since the adjustment on the black point has a small change on the monitor and is less visually important than the white point, the color which sets the value of the black point as a predetermined value when the value of the black point is not set. By providing the information extraction means and the cursor control means, it is possible to omit the setting of the black dot by the user and to simplify the white balance operation.

【0068】また、複数の白黒設定色を記録するB/W
記録メモリと、利用する白黒設定色を切替えるメモリ切
替え手段を設けることにより、いくつものホワイトバラ
ンス設定を記録し、任意に呼び出して用いることができ
る。具体的には、ビデオカメラ等でシーン(室内、室
外、晴れ、曇り、夜、昼)に応じて予め基本パターンを
記録しておけば、利用者はこれを選択するだけで簡単に
設定が可能となる。また、一度撮影した時のホワイトバ
ランスの条件を記録しておけば、同じ状況で撮影する場
合には記録しておいた設定を呼び出すだけでよく、操作
の負担が大幅に削減される。
Also, B / W for recording a plurality of black and white set colors
By providing the recording memory and the memory switching means for switching the monochrome setting color to be used, it is possible to record a number of white balance settings and call them arbitrarily. Specifically, if you record a basic pattern in advance according to the scene (indoor, outdoor, sunny, cloudy, night, day) with a video camera etc., the user can easily set it by selecting it. Becomes Further, if the white balance condition at the time of shooting is recorded, it is only necessary to call the recorded setting when shooting under the same condition, and the operation load is significantly reduced.

【0069】[0069]

【発明の効果】以上のように本発明は、色空間での写像
を利用したホワイトバランス調整を可能するB/W記録
メモリ、写像パラメータ演算手段、写像パラメータ記録
手段および写像手段を設けることにより、色空間上で平
行移動をすることによりホワイトバランスを調整するも
のに比べて、正確にホワイトバランスを調整することが
できる。
As described above, according to the present invention, by providing the B / W recording memory, the mapping parameter calculating means, the mapping parameter recording means and the mapping means capable of adjusting the white balance utilizing the mapping in the color space, It is possible to adjust the white balance more accurately than the one that adjusts the white balance by performing parallel movement in the color space.

【0070】また、LUT生成手段、LUT記録手段、
LUT参照手段または写像手段に写像演算の結果を記録
するメモリを設けることにより、入力画像のホワイトバ
ランス調整を行う際の写像演算量を削減し、高速にホワ
イトバランス調整を行うことができる。
Further, LUT generating means, LUT recording means,
By providing the LUT reference means or the mapping means with a memory for recording the result of the mapping calculation, it is possible to reduce the amount of mapping calculation when adjusting the white balance of the input image, and to perform the white balance adjustment at high speed.

【0071】さらに、利用者自身が入力画像上にインポ
ーズされたカーソルを動かしてホワイトバランス調整を
行うための表示手段、カーソルインポーズ手段、カーソ
ルコントロールインタフェース、カーソル制御手段およ
び色情報抽出手段を設けることにより、簡単な操作で、
利用者の好みまたは記憶色に合ったホワイトバランス調
整を行うことができる。
Further, a display means, a cursor impose means, a cursor control interface, a cursor control means and a color information extraction means for allowing the user himself to move the cursor which is imposed on the input image to adjust the white balance are provided. This makes it easy to operate
It is possible to adjust the white balance according to the user's preference or memory color.

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

【図1】本発明の第1の実施の形態におけるホワイトバ
ランス調整装置の構成図
FIG. 1 is a configuration diagram of a white balance adjustment device according to a first embodiment of the present invention.

【図2】本発明の第1の実施の形態における空間写像の
概念図
FIG. 2 is a conceptual diagram of space mapping in the first embodiment of the present invention.

【図3】本発明の第2の実施の形態におけるホワイトバ
ランス調整装置の構成図
FIG. 3 is a configuration diagram of a white balance adjusting device according to a second embodiment of the present invention.

【図4】本発明の第2の実施の形態におけるLUTを説
明する図
FIG. 4 is a diagram illustrating an LUT according to the second embodiment of the present invention.

【図5】本発明の第1の実施の形態における補間/補外
操作の概念図
FIG. 5 is a conceptual diagram of interpolation / extrapolation operation according to the first embodiment of the present invention.

【図6】本発明の第3の実施の形態におけるホワイトバ
ランス調整装置の構成図
FIG. 6 is a configuration diagram of a white balance adjusting device according to a third embodiment of the present invention.

【図7】従来のホワイトバランス調整装置の一例を示す
構成図
FIG. 7 is a configuration diagram showing an example of a conventional white balance adjustment device.

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

101 自動白黒抽出手段 102,306,506 B/W記録目盛 103,507 写像パラメータ演算手段 104,508 写像パラメータ記録手段 105,307,509 写像手段 301,503 カーソルインポーズ手段 302,504 カーソル制御手段 303,501 表示手段 304 カーソルコントロールインタフェース 305,505 色情報抽出手段 308 LUT生成手段 309 LUT記録手段 310 LUT参照手段 311,510 入力色空間変換手段 312,511 出力色空間変換手段 502 カーソルコントロールインタフェース/メモリ
切替手段 512 A/D変換手段 513 D/A変換手段 601 比較部 602 R用ホワイトバランス演算部 603 B用ホワイトバランス演算部 604 メモリ部 605,606 加算回路 607 Y信号 608 B−Y信号 609 R−Y信号
101 automatic black-and-white extracting means 102, 306, 506 B / W recording scale 103, 507 mapping parameter computing means 104, 508 mapping parameter recording means 105, 307, 509 mapping means 301, 503 cursor impose means 302, 504 cursor control means 303 , 501 display means 304 cursor control interface 305, 505 color information extraction means 308 LUT generation means 309 LUT recording means 310 LUT reference means 311, 510 input color space conversion means 312, 511 output color space conversion means 502 cursor control interface / memory switching Means 512 A / D conversion means 513 D / A conversion means 601 Comparison section 602 White balance calculation section for R 603 White balance calculation section for B 604 Memory section 605, 6 6 adder circuit 607 Y signal 608 B-Y signal 609 R-Y signal

Claims (13)

【特許請求の範囲】[Claims] 【請求項1】白または黒にしたい任意の色の組(以下、
白黒設定色と記す)を記録するB/W記録メモリと、 前記B/W記録メモリに記録された白黒設定色を色空間
上の白または黒の点に写像する様な写像関数の演算に必
要となる写像パラメータを演算し、生成する写像パラメ
ータ演算手段と、 前記写像パラメータ演算手段の演算結果である写像パラ
メータを記録する写像パラメータ記録手段と、 入力された入力画像を前記写像パラメータ記録手段に記
録されたパラメータを用いて写像し、結果を出力画像と
して出力する写像手段とを備えたことを特徴とするホワ
イトバランス調整装置。
1. A set of arbitrary colors desired to be white or black (hereinafter,
B / W recording memory for recording the black-and-white setting color), and necessary for calculating a mapping function for mapping the black-and-white setting color recorded in the B / W recording memory to a white or black point on the color space. A mapping parameter calculating means for calculating and generating a mapping parameter, a mapping parameter recording means for recording a mapping parameter which is a calculation result of the mapping parameter calculating means, and an input image inputted to the mapping parameter recording means. A white balance adjusting device, comprising: a mapping means for mapping using the created parameter and outputting the result as an output image.
【請求項2】白黒設定色を記録するB/W記録メモリ
と、 前記B/W記録メモリに記録された白黒設定色を色空間
上の白または黒の点に写像される様に前記B/W記録メ
モリに記録された情報を条件とした補間または補外を行
い、その結果として得られた写像関数により、入力され
た入力画像を写像し、結果を出力画像として出力する写
像手段とを備えたことを特徴とするホワイトバランス調
整装置。
2. A B / W recording memory for recording a monochrome setting color, and the B / W recording memory so that the monochrome setting color recorded in the B / W recording memory is mapped to a white or black point on a color space. And a mapping means for performing interpolation or extrapolation on the condition that the information recorded in the W recording memory is used, mapping the input image input by the mapping function obtained as a result, and outputting the result as an output image. A white balance adjustment device characterized by
【請求項3】写像手段の入力としてルックアップテーブ
ル(以下、LUTと記す)を生成するための色空間上の
格子点のデータを入力し、前記写像手段の出力結果から
LUTを生成するLUT生成手段と、 前記LUT生成手段で生成されたLUTを記録するLU
T記録手段と、 前記LUT記録手段に記録されたLUTを参照し、入力
された入力画像に対する出力を決定し、出力画像を出力
するLUT参照手段とを備えたことを特徴とする請求項
1または2記載のホワイトバランス調整装置。
3. LUT generation for inputting data of grid points on a color space for generating a look-up table (hereinafter referred to as LUT) as an input of the mapping means and generating an LUT from the output result of the mapping means. Means for recording the LUT generated by the LUT generating means
2. A T recording means and an LUT reference means for referring to the LUT recorded in the LUT recording means to determine an output for an input image that has been input, and outputting an output image. 2. The white balance adjusting device described in 2.
【請求項4】LUT参照手段が、LUT記録に記録され
た色空間上の複数点の情報を参照し、補間演算により、
入力された入力画像に対する出力値を決定し、出力画像
を出力するよう構成されたことを特徴とする請求項3記
載のホワイトバランス調整装置。
4. The LUT reference means refers to information of a plurality of points on the color space recorded in the LUT recording, and by interpolation calculation,
4. The white balance adjusting apparatus according to claim 3, wherein the white balance adjusting device is configured to determine an output value for the input image that has been input and output the output image.
【請求項5】写像手段は、一度変換を行った入力画像の
画素値に対する出力値を記録するメモリを備え、 一度入力された値と同じ値が入力画像の画素として入力
された場合には、記録メモリの参照結果を出力するよう
構成されたことを特徴とする請求項1または2記載のホ
ワイトバランス調整装置。
5. The mapping means comprises a memory for recording an output value corresponding to a pixel value of the input image which has been once converted, and when the same value as the once input value is input as a pixel of the input image, The white balance adjusting apparatus according to claim 1, wherein the white balance adjusting apparatus is configured to output a reference result of the recording memory.
【請求項6】入力画像を入力し、入力画像の色空間変換
を行い写像手段に出力する入力色空間変換手段と、 前記写像手段の出力を入力し色空間変換を行い出力する
出力色空間変換手段とを備えたことを特徴とする請求項
1〜5何れかに記載のホワイトバランス調整装置。
6. An input color space conversion means for inputting an input image, converting the color space of the input image and outputting it to a mapping means, and an output color space conversion for inputting an output of the mapping means and performing a color space conversion for output. The white balance adjusting device according to claim 1, further comprising:
【請求項7】画像情報のアナログ入力信号をA/D変換
し、ディジタル入力画像を生成し、写像手段または入力
色空間変換手段に入力するA/D変換手段と、 前記写像手段または出力色空間変換手段から出力された
ディジタル出力画像をD/A変換し、アナログの出力信
号を生成するD/A変換手段とを備えたことを特徴とす
る請求項1〜6何れかに記載のホワイトバランス調整装
置。
7. An A / D conversion means for A / D converting an analog input signal of image information to generate a digital input image and inputting it to a mapping means or an input color space conversion means, and the mapping means or output color space. 7. The white balance adjustment according to claim 1, further comprising D / A conversion means for D / A converting the digital output image output from the conversion means to generate an analog output signal. apparatus.
【請求項8】入力画像中で白または黒として設定したい
色のある位置を管理し、カーソル位置情報を生成するカ
ーソル制御手段と、 前記カーソル制御手段のカーソル位置情報に従い、白ま
たは黒にしたい点(以下、それぞれ白点、黒点と記す)
の位置を示すカーソルを生成し、入力画像とインポーズ
するカーソルインポーズ手段と、 前記カーソルインポーズ手段でインポーズされた画像を
表示する表示手段と、 前記カーソル制御手段に接続され、利用者によるカーソ
ル移動等の入力情報を前記カーソル制御手段に伝えるカ
ーソルコントロールインタフェースと、 前記カーソル制御手段からのカーソル位置情報および制
御信号により、入力画像からカーソル位置の色情報を取
り出し、B/W記録メモリに白黒設定色として記録する
色情報抽出手段とを備えたことを特徴とする請求項1〜
7何れかに記載のホワイトバランス調整装置。
8. A cursor control unit for managing a position of a color to be set as white or black in an input image and generating cursor position information, and a point to be made white or black according to the cursor position information of the cursor control unit. (Hereinafter referred to as white dots and black dots, respectively)
Is connected to the cursor control means and a user interface connected to the cursor control means for generating the cursor indicating the position of the input image and for imposing the cursor on the input image, displaying the image superimposed by the cursor imposing means. A cursor control interface for transmitting input information such as cursor movement to the cursor control means, and cursor position information and control signals from the cursor control means extract color information of the cursor position from the input image, and make black and white in a B / W recording memory. Color information extraction means for recording as a set color is provided.
7. The white balance adjusting device according to any one of 7.
【請求項9】黒として設定する色をあらかじめ固定する
ことで、黒点の設定操作を省いたことを特徴とする請求
項8記載のホワイトバランス調整装置。
9. The white balance adjusting apparatus according to claim 8, wherein a black dot setting operation is omitted by previously fixing a color to be set as black.
【請求項10】入力画像中から白に近い色と黒に近い色
として予め設定した色の組を検出し、白黒設定色として
B/W記録メモリに記録する自動白黒抽出手段を備えた
ことを特徴とする請求項1〜7何れかに記載のホワイト
バランス調整装置。
10. An automatic black-and-white extracting means for detecting a set of colors set in advance as a color close to white and a color close to black in an input image and recording it as a black-and-white set color in a B / W recording memory. The white balance adjusting device according to any one of claims 1 to 7.
【請求項11】カーソルインポーズ手段は、カーソルコ
ントロールインタフェースおよびカーソル制御手段から
の制御信号により、カーソルとインポーズする画像を入
力画像または出力画像の何れかに切替えるよう構成され
たことを特徴とする請求項8または9記載のホワイトバ
ランス調整装置。
11. The cursor imposing means is configured to switch an image to be superimposed on the cursor between an input image and an output image according to control signals from the cursor control interface and the cursor control means. The white balance adjusting device according to claim 8.
【請求項12】B/W記録メモリは、複数の白黒設定色
を記録可能であって、 前記B/W記録メモリ内のどの白黒設定色を利用するか
を設定するメモリ切替手段を備えた請求項1〜11何れ
かに記載のホワイトバランス調整装置。
12. The B / W recording memory is capable of recording a plurality of black-and-white setting colors, and is provided with a memory switching means for setting which black-and-white setting color in the B / W recording memory is to be used. Item 12. The white balance adjusting device according to any one of items 1 to 11.
【請求項13】B/W記録メモリに記録された白黒設定
色を色空間上の白または黒に写像することに代えて、白
黒設定色を、色空間の白黒軸上の任意の点に写像するよ
う構成された請求項1〜12何れかに記載のホワイトバ
ランス調整装置。
13. Instead of mapping the black and white set color recorded in the B / W recording memory to white or black in the color space, the black and white set color is mapped to an arbitrary point on the black and white axis of the color space. The white balance adjusting device according to any one of claims 1 to 12, which is configured to:
JP8007059A 1996-01-19 1996-01-19 White balance controller Pending JPH09200796A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8007059A JPH09200796A (en) 1996-01-19 1996-01-19 White balance controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8007059A JPH09200796A (en) 1996-01-19 1996-01-19 White balance controller

Publications (1)

Publication Number Publication Date
JPH09200796A true JPH09200796A (en) 1997-07-31

Family

ID=11655504

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8007059A Pending JPH09200796A (en) 1996-01-19 1996-01-19 White balance controller

Country Status (1)

Country Link
JP (1) JPH09200796A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7885459B2 (en) 1998-06-24 2011-02-08 Canon Kabushiki Kaisha Image processing method and apparatus therefor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7885459B2 (en) 1998-06-24 2011-02-08 Canon Kabushiki Kaisha Image processing method and apparatus therefor
US8374429B2 (en) 1998-06-24 2013-02-12 Canon Kabushiki Kaisha Image processing method, apparatus and memory medium therefor

Similar Documents

Publication Publication Date Title
JP4304623B2 (en) Imaging apparatus and method of processing imaging result in imaging apparatus
US8000525B2 (en) Image processing device, image processing system, image processing method, image processing program, and integrated circuit device
JP3485543B2 (en) Imaging device and method
US5452018A (en) Digital color correction system having gross and fine adjustment modes
JP2004192614A (en) Image processing device, image processing method, program and recording medium
JP2006238163A (en) Image reproducing apparatus
JP2006238163A5 (en)
US20090147018A1 (en) Image sensing apparatus and control method thereof
JP2001054013A (en) Image pickup signal processor and its processing method
JP2007202218A (en) Method and apparatus for enhancing source digital image
JP5027332B2 (en) Contour free point motion for video skin tone correction
JP6974156B2 (en) Image color conversion device, image color conversion program, image color conversion method
JP2007215216A (en) Monotonization processing of color image
US6899431B2 (en) Image processing system, projector, information storage medium, and image processing method
KR20070002104A (en) An image color correcting device, an image color correcting method and an image color correcting program
JP4001079B2 (en) Monotone processing of color image
US8687091B2 (en) Image capturing systems and methods utilizing customizable look management
JP3238584B2 (en) Multi-window device
JP4007964B2 (en) Image processing apparatus, image processing method, and image processing program
JP2006345440A (en) Image processor, image processing program
JPH09200796A (en) White balance controller
JP2007158446A (en) Image processor, image processing method and program, recording medium
KR100545116B1 (en) Color Correction Device and Color Correction Method, Image Processing Device and Image Processing Method
JP3361957B2 (en) Method and apparatus for extending the dynamic range of an image
JP2011150401A (en) Dynamic range compression device and program