JP2995805B2 - Color parameter setting device - Google Patents

Color parameter setting device

Info

Publication number
JP2995805B2
JP2995805B2 JP2170852A JP17085290A JP2995805B2 JP 2995805 B2 JP2995805 B2 JP 2995805B2 JP 2170852 A JP2170852 A JP 2170852A JP 17085290 A JP17085290 A JP 17085290A JP 2995805 B2 JP2995805 B2 JP 2995805B2
Authority
JP
Japan
Prior art keywords
contrast
color
color parameter
light
subject
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2170852A
Other languages
Japanese (ja)
Other versions
JPH0460778A (en
Inventor
俊彦 松本
俊道 政木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Omron Corp
Original Assignee
Omron 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 Omron Corp filed Critical Omron Corp
Priority to JP2170852A priority Critical patent/JP2995805B2/en
Publication of JPH0460778A publication Critical patent/JPH0460778A/en
Application granted granted Critical
Publication of JP2995805B2 publication Critical patent/JP2995805B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Input (AREA)
  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は被写体を撮影するに際し、最適なカラーパラ
メータを設定するカラパラメータ設定装置に関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a color parameter setting device that sets an optimal color parameter when photographing a subject.

[従来の技術] テレビカメラで被写体を撮影し、そのビデオ信号を処
理して被写体の検査を行なうような場合、最適な画像が
得られるように、カラーパラメータを設定する必要があ
る。
2. Description of the Related Art In a case where a subject is photographed by a television camera and the video signal is processed to inspect the subject, it is necessary to set color parameters so as to obtain an optimal image.

従来、このカラーパラメータの設定は、例えば、第7
図に示すように行なわれていた。
Conventionally, the setting of this color parameter is, for example, the seventh
This was done as shown in the figure.

すなわち、台4の上に被写体3を載置し、白色光源1
より出射される光を有色フィルタ2を介して被写体3に
照射する。そして、被写体3と背景としての台4のコン
トラスト(濃淡の差)が最大となるように、有色フィル
タ2を交換することにより、カラーパラメータを設定す
るようにしていた。このような設定を行うことにより、
ビデオカメラの出力するビデオ信号のコントラストが最
大となるので、そのビデオ信号を利用して、被写体を検
査することが容易となる。
That is, the subject 3 is placed on the table 4 and the white light source 1
The emitted light is radiated to the subject 3 via the color filter 2. The color parameters are set by exchanging the color filter 2 so that the contrast (difference in shading) between the subject 3 and the table 4 as the background is maximized. By making such settings,
Since the contrast of the video signal output from the video camera is maximized, it is easy to inspect the subject using the video signal.

[発明が解決しようとする課題] しかしながら、このような従来の方法は、コントラス
トが最大になるか否かを、人が目視により観察している
ので、最適なカラーパラメータを設定するのに時間がか
かるばかりでなく、熟練者でなければその設定が困難で
あった。また、複数の有色フィルタ2を用意しておき、
その中から適当なものを選択するだけなので、コントラ
ストを線形に変化調整することができず、カラーパラメ
ータの正確な設定が困難であった。
[Problems to be Solved by the Invention] However, in such a conventional method, since a person visually observes whether or not the contrast is maximized, it takes time to set an optimal color parameter. Not only that, but setting is difficult for non-experts. Also, a plurality of colored filters 2 are prepared,
Since only an appropriate one is selected from among them, the contrast cannot be linearly changed and adjusted, and it is difficult to accurately set the color parameters.

本発明はこのような状況に鑑みてなされたもので、短
時間かつ正確にカラーパラメータを設定することができ
るようにするものである。
The present invention has been made in view of such a situation, and it is an object of the present invention to set color parameters in a short time and accurately.

[課題を解決するための手段] 請求項1のカラーパラメータ設定装置は、被写体の画
像を撮影する撮影手段と、被写体に複数の色の光を照明
する照明手段と、撮影手段が出力する被写体のビデオ信
号を処理し、コントラストを演算する演算手段と、演算
手段の演算結果に対応して、被写体のコントラストが最
大になるように、照明手段が被写体に照射する光の各色
毎の強さを調整する調整手段とを備えることを特徴とす
る。
[Means for Solving the Problems] A color parameter setting device according to claim 1 is a photographing means for photographing an image of a subject, an illuminating means for illuminating a plurality of colors of light on the subject, and a subject for outputting the photographing means. Processing means for processing the video signal and calculating the contrast, and adjusting the intensity of the light illuminating the subject for each color so that the contrast of the subject is maximized in accordance with the calculation result of the calculating means. And adjusting means for performing the adjustment.

[作用] 請求項1のカラーパラメータ設定装置においては、最
大のコントラストが得られるように被写体を照明する光
の色毎の強さが調整される。従って、短時間で正確に、
カラーパラメータの設定が可能になる。
[Operation] In the color parameter setting device according to the first aspect, the intensity of the light illuminating the subject for each color is adjusted so that the maximum contrast is obtained. Therefore, accurately in a short time,
Color parameters can be set.

[実施例] 第1図は本発明のカラーパラメータ設定装置の一実施
例の構成を示すブロック図である。
Embodiment FIG. 1 is a block diagram showing a configuration of an embodiment of a color parameter setting device according to the present invention.

テレビカメラ11(撮影手段)は図示せぬ被写体を撮影
し、その画像に対応するビデオ信号を出力する。このビ
デオ信号はA/D変換器12によりA/D変換され、処理回路13
により所定の処理が施された後、画像メモリ14に書込ま
れる。画像メモリ14に書込まれた画像データは読出さ
れ、D/A変換器15によりD/A変換された後、ディスプレイ
16に出力される。これにより、ディスプレイ16に被写体
の画像が表示される。
The television camera 11 (photographing means) photographs a subject (not shown) and outputs a video signal corresponding to the image. This video signal is A / D converted by an A / D converter 12 and processed by a processing circuit 13.
Are written in the image memory 14 after the predetermined processing is performed. The image data written in the image memory 14 is read out, D / A converted by the D / A converter 15, and then displayed.
Output to 16. Thereby, the image of the subject is displayed on the display 16.

一方、CPU17(演算手段)は処理回路13および画像メ
モリ14より必要なデータを読取り、カラーパラメータの
設定に必要な演算を行なう。そして、演算結果に対応し
て射光装置18を制御する。
On the other hand, the CPU 17 (arithmetic means) reads necessary data from the processing circuit 13 and the image memory 14 and performs an arithmetic operation necessary for setting color parameters. Then, the light emitting device 18 is controlled according to the calculation result.

射光装置18は、例えば第2図に示すように、R,G,Bの
各光を発生する光源22乃至24(カラーパラメータ制御手
段)と、これらを独立に駆動する駆動回路21により構成
されている。
For example, as shown in FIG. 2, the light emitting device 18 includes light sources 22 to 24 (color parameter control means) for generating R, G, and B lights, and a drive circuit 21 for independently driving these light sources. I have.

次に、第3図のフローチャートを参照して、その動作
を説明する。
Next, the operation will be described with reference to the flowchart of FIG.

CPU17は、先ずステップ31で、各色の光源22乃至24に
ついて、明るさに関する所定の初期値を設定する。そし
て、駆動回路21を介して光源22乃至24を駆動し、各色の
光を所定の明るさで被写体に照射させる。次に、ステッ
プ32で、その明るさにおける画像データを画像メモリ14
に記憶させる。そして、ステップ33で、処理回路13を制
御し、コントラストの演算を行なう。このコントラスト
の演算については後に詳述する。
First, in step 31, the CPU 17 sets a predetermined initial value regarding the brightness for the light sources 22 to 24 of the respective colors. Then, the light sources 22 to 24 are driven via the drive circuit 21 to irradiate light of each color on the subject with predetermined brightness. Next, in step 32, the image data at that brightness is stored in the image memory 14
To memorize. Then, in step 33, the processing circuit 13 is controlled to calculate the contrast. The calculation of the contrast will be described later in detail.

ステップ34で処理回数の判定が行なわれ、所定の回数
に達していないとき、ステップ35で、R,G,Bの光源22乃
至24のうち、処理が終了していないものが選択される。
そして、ステップ36でその色における処理回数が判定さ
れる。その色における処理回数が所定の回数に達してい
ないとき、ステップ37で、選択されている光源の重み付
けが1ステップ増加され(その光源の発生する光の強度
が1ステップ増加され)、その光強度下における画像が
画像メモリ14に記憶され、ステップ38で再びコントラス
トの計算が行なわれる。
In step 34, the number of times of processing is determined, and when the number of times has not reached the predetermined number, in step 35, the light source 22 to 24 of R, G, B whose processing has not been completed is selected.
Then, in step 36, the number of times of processing for the color is determined. When the number of processings for the color has not reached the predetermined number, in step 37, the weight of the selected light source is increased by one step (the intensity of light generated by the light source is increased by one step), and the light intensity is increased. The lower image is stored in the image memory 14, and the contrast is calculated again in step 38.

次に、ステップ39で、前回の(ステップ33における)
コントラスト計算値と、今回の(ステップ38における)
コントラスト計算値とが比較され、今回のコントラスト
値が前回のコントラスト値より大きくなったか否かが判
定される。今回のコントラスト値が前回のコントラスト
値より大きい場合、ステップ36以降の処理が繰返され
る。すなわち、選択された光源の光の強度が順次増加さ
れ、そのときのコントラストが計算される。
Next, in step 39, the previous (in step 33)
Contrast calculated value and this time (in step 38)
The calculated contrast value is compared to determine whether the current contrast value has become larger than the previous contrast value. If the current contrast value is larger than the previous contrast value, the processing after step 36 is repeated. That is, the light intensity of the selected light source is sequentially increased, and the contrast at that time is calculated.

ステップ39で今回のコントラスト値が前回のコントラ
スト値より小さいと判定された場合、ステップ40で重み
付けが前回の値に戻される。すなわち、光の強度が減少
される。そして、ステップ36以降の処理が繰返される。
If it is determined in step 39 that the current contrast value is smaller than the previous contrast value, the weight is returned to the previous value in step 40. That is, the light intensity is reduced. Then, the processing after step 36 is repeated.

このように、いわゆる山登り法によりコントラストの
ピーク値が得られる光の強度が設定される。
As described above, the intensity of light at which the peak value of the contrast is obtained is set by the so-called hill-climbing method.

ステップ36でコントラストの計算回数が所定値に達し
たと判定されたとき、ステップ35に戻り、他の光源が選
択され、ステップ36以降の処理が繰返される。
When it is determined in step 36 that the number of times of calculation of the contrast has reached the predetermined value, the process returns to step 35, another light source is selected, and the processing of step 36 and thereafter is repeated.

ステップ35で、全ての光源について処理が終了したと
判定されたとき、ステップ34に戻り、全ての光源に対す
る処理回数が予め設定された所定の回数に達した否かが
判定される。その回数が所定の回数に達していないと
き、ステップ35以降の処理が繰返され、所定の回数に達
したとき、カラーパラメータの設定処理が終了される。
When it is determined in step 35 that the processing has been completed for all the light sources, the process returns to step 34, and it is determined whether the number of times of processing for all the light sources has reached a predetermined number. If the number has not reached the predetermined number, the processing from step 35 onward is repeated. If the number has reached the predetermined number, the color parameter setting processing ends.

次に、第4図のフローチャートを参照して、コントラ
ストの演算処理について説明する。
Next, the contrast calculation processing will be described with reference to the flowchart of FIG.

ステップ51で、先ず、画素データの数値(レベルまた
は濃度)情報が受信され、ステップ52で変数MAXとMIN
に、−∞と∞がそれぞれ設定される。ステップ53で所定
の画素が選択され、ステップ54でその画素のデータ値と
変数MAXのデータ値とが比較される。画素値の方が大き
ければ、ステップ55でその画素値が変数MAXに設定され
る。画素値の方が小さいか等しいとき、変数MAXはその
ままとされる。
In step 51, first, numerical value (level or density) information of the pixel data is received.
Are set to -∞ and ∞, respectively. In step 53, a predetermined pixel is selected, and in step 54, the data value of the pixel is compared with the data value of the variable MAX. If the pixel value is larger, the pixel value is set to a variable MAX in step 55. When the pixel value is smaller or equal, the variable MAX is left as it is.

次に、ステップ56でその画素のデータ値と変数MINの
データ値とが比較される。画素値の方が小さければステ
ップ57でその画素値が変数MINに設定される。画素値の
方が大きいか等しいとき、変数MINはそのままとされ
る。
Next, in step 56, the data value of the pixel is compared with the data value of the variable MIN. If the pixel value is smaller, the pixel value is set to the variable MIN in step 57. When the pixel value is larger or equal, the variable MIN is left as it is.

このようにして、各画素データの最大値が変数MAX
に、最小値が変数MINに、それぞれ設定される。
In this way, the maximum value of each pixel data is set to the variable MAX
And the minimum value is set to the variable MIN, respectively.

以上の処理が、全画素について繰返される。ステップ
53で全画素についてこの処理が終了したと判定されたと
き、ステップ58で変数MAXとMINの差がコントラストとし
て設定される。
The above processing is repeated for all pixels. Steps
When it is determined at 53 that this process has been completed for all pixels, at step 58 the difference between the variables MAX and MIN is set as contrast.

第5図は他の実施例の構成を示している。 FIG. 5 shows the configuration of another embodiment.

この実施例においては、射光装置18が、R,G,Bの有色
液晶フィルタ62乃至64(カラーパラメータ制御手段)
と、これらを独立に駆動する駆動回路61により構成され
ている。なお、図示はしていないが、白色光源が設けら
れ、この光源より発生された光が液晶フィルタ62乃至64
を介して被写体に照射されるようになっている。
In this embodiment, the light emitting device 18 includes R, G, and B colored liquid crystal filters 62 to 64 (color parameter control means).
And a drive circuit 61 that drives these independently. Although not shown, a white light source is provided, and light generated by this light source is supplied to the liquid crystal filters 62 to 64.
The object is illuminated via the.

CPU17は、駆動回路61を介して液晶フィルタ62乃至64
を個別に駆動し、R,G,Bのフィルタ濃度を制御する。こ
れにより、第2図の実施例における光源22乃至24を制御
する場合と同様に、被写体に照射される各色の強さを調
整することができる。
The CPU 17 controls the liquid crystal filters 62 to 64 via the drive circuit 61.
Are individually driven to control the R, G, and B filter densities. This makes it possible to adjust the intensity of each color emitted to the subject, similarly to the case of controlling the light sources 22 to 24 in the embodiment of FIG.

第6図はさらに他の実施例の構成を示している。 FIG. 6 shows the configuration of still another embodiment.

この実施例においては、処理回路13が各画素の色の濃
度情報を読取り、CPU17に出力する。CPU17は各画素にお
いて、各色の濃度の和をその画素の濃度とし、処理回路
13(カラーパラメータ制御手段)を制御し、各色の濃度
に所定の係数(重み付け)を乗算することにより、各画
素の濃度を変化させる。そして、画素の濃度差が最大と
なる係数(コントラストが最大となる係数)を設定す
る。
In this embodiment, the processing circuit 13 reads the color density information of each pixel and outputs it to the CPU 17. The CPU 17 calculates the sum of the densities of the respective colors for each pixel as the density of the pixel,
13 (color parameter control means) to multiply the density of each color by a predetermined coefficient (weighting) to change the density of each pixel. Then, a coefficient that maximizes the density difference between pixels (a coefficient that maximizes contrast) is set.

このように、この実施例の場合、射光装置は制御され
ず、ビデオ信号が直接制御される。
Thus, in this embodiment, the light emitting device is not controlled, and the video signal is directly controlled.

[発明の効果] 以上のように、請求項1のカラーパラメータ設定装置
によれば、最大のコントラストが得られるように、被写
体に照明する光の色毎の強さを調整するようにした。
[Effects of the Invention] As described above, according to the color parameter setting device of the first aspect, the intensity of each color of the light illuminating the subject is adjusted so as to obtain the maximum contrast.

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

第1図は本発明のカラーパラメータ設定装置の一実施例
の構成を示すブロック図、第2図は第1図の射光装置の
一実施例の構成を示すブロック図、第3図および第4図
は、第1図の実施例の動作を説明するフローチャート、
第5図および第6図は本発明のカラーパラメータ設定装
置の他の実施例の構成を示すブロック図、第7図は従来
のカラーパラメータ設定の動作を説明する図である。 1……光源、2……有色フィルタ、3……被写体、4…
…台、11……テレビカメラ(撮影手段)、13……処理回
路(カラーパラメータ制御手段)、14……画像メモリ、
17……CPU(演算手段)、18……射光装置、22乃至24…
…光源(カラーパラメータ制御手段)、62乃至64……有
色液晶フィルタ(カラーパラメータ制御手段)。
FIG. 1 is a block diagram showing the configuration of an embodiment of a color parameter setting device according to the present invention, FIG. 2 is a block diagram showing the configuration of an embodiment of the light emitting device of FIG. 1, FIG. 3 and FIG. Is a flowchart for explaining the operation of the embodiment of FIG. 1;
5 and 6 are block diagrams showing the configuration of another embodiment of the color parameter setting device of the present invention, and FIG. 7 is a diagram for explaining the operation of the conventional color parameter setting. 1 ... light source, 2 ... color filter, 3 ... subject, 4 ...
... table, 11 ... TV camera (photographing means), 13 ... processing circuit (color parameter control means), 14 ... image memory,
17 CPU (calculation means), 18 Light emitting device, 22 to 24
... Light source (color parameter control means), 62 to 64 ... Colored liquid crystal filter (color parameter control means).

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.6,DB名) G06T 5/00 G06T 1/00 H04N 1/40 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 6 , DB name) G06T 5/00 G06T 1/00 H04N 1/40

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】被写体の画像を撮影する撮影手段と、 前記被写体に複数の色の光を照明する照明手段と、 前記撮影手段が出力する前記被写体のビデオ信号を処理
し、コントラストを演算する演算手段と、 前記演算手段の演算結果に対応して、前記被写体のコン
トラストが最大になるように、前記照明手段が前記被写
体に照射する光の各色毎の強さを調整する調整手段と を備えることを特徴とするカラーパラメータ設定装置。
A photographing means for photographing an image of an object; an illuminating means for illuminating the object with light of a plurality of colors; a video signal of the object output from the photographing means for calculating a contrast. Means, and adjusting means for adjusting the intensity of light for each color of the light emitted from the illumination means to the object so that the contrast of the object is maximized in accordance with the operation result of the operation means. A color parameter setting device.
JP2170852A 1990-06-28 1990-06-28 Color parameter setting device Expired - Fee Related JP2995805B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2170852A JP2995805B2 (en) 1990-06-28 1990-06-28 Color parameter setting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2170852A JP2995805B2 (en) 1990-06-28 1990-06-28 Color parameter setting device

Publications (2)

Publication Number Publication Date
JPH0460778A JPH0460778A (en) 1992-02-26
JP2995805B2 true JP2995805B2 (en) 1999-12-27

Family

ID=15912518

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2170852A Expired - Fee Related JP2995805B2 (en) 1990-06-28 1990-06-28 Color parameter setting device

Country Status (1)

Country Link
JP (1) JP2995805B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4442472B2 (en) * 2005-03-07 2010-03-31 株式会社豊田中央研究所 Device part identification device

Also Published As

Publication number Publication date
JPH0460778A (en) 1992-02-26

Similar Documents

Publication Publication Date Title
US7289664B2 (en) Method of detecting and correcting the red eye
CN101442617B (en) Method for blocked exposure and apparatus thereof
US6690409B1 (en) Electronic endoscope system
JPH09181966A (en) Image processing method and device
RU2611599C1 (en) Image colour adjustment device, image display device and chromaticity control method
US5475509A (en) Method and apparatus for setting image processing conditions
CN107396079B (en) white balance adjusting method and device
US6414710B1 (en) Electronic endoscope
KR102905560B1 (en) Halo correction in digital images and a device for implementing said correction
JP2003324670A (en) Projection type video display
JPH11352599A (en) Image reproducing device
JP4155938B2 (en) Imaging device
JPH07154741A (en) Video camera image editing device
JPH0937145A (en) Automatic exposure control device, automatic gradation control device and video camera
JP2995805B2 (en) Color parameter setting device
JP2002084455A (en) Imaging device
JP2002077927A (en) Electronic camera
JP7462464B2 (en) Image processing device and method, program, and storage medium
JP3823865B2 (en) Image processing method, image processing program, and recording medium on which image processing program is recorded
JP2003066519A (en) Camera device and light emission control method in camera device
JP3105621B2 (en) Electronic still camera and playback device
US4891691A (en) Still image color sequential photographic apparatus
JP3943611B2 (en) Image reproduction method and image reproduction apparatus
JPH08279955A (en) Video shooting method and device
JPH08202868A (en) Picture processor

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees