JPH10210353A - Digital camera - Google Patents

Digital camera

Info

Publication number
JPH10210353A
JPH10210353A JP9013000A JP1300097A JPH10210353A JP H10210353 A JPH10210353 A JP H10210353A JP 9013000 A JP9013000 A JP 9013000A JP 1300097 A JP1300097 A JP 1300097A JP H10210353 A JPH10210353 A JP H10210353A
Authority
JP
Japan
Prior art keywords
image
characteristic
block
pixel data
light
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP9013000A
Other languages
Japanese (ja)
Other versions
JP3643201B2 (en
Inventor
Noriyuki Nobuyuki
宣之 沖須
Shinichi Fujii
真一 藤井
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.)
Minolta Co Ltd
Original Assignee
Minolta 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 Minolta Co Ltd filed Critical Minolta Co Ltd
Priority to JP01300097A priority Critical patent/JP3643201B2/en
Priority to US09/013,055 priority patent/US6806903B1/en
Publication of JPH10210353A publication Critical patent/JPH10210353A/en
Priority to US10/923,828 priority patent/US20050024508A1/en
Application granted granted Critical
Publication of JP3643201B2 publication Critical patent/JP3643201B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Transforming Light Signals Into Electric Signals (AREA)
  • Picture Signal Circuits (AREA)

Abstract

PROBLEM TO BE SOLVED: To prevent wrong photographing of a white board in which character information is unclear due to the regular reflection of an illumination light. SOLUTION: The photographed image of a character information written on a white board and fetched by a CCD 20 is inputted in a histogram production part 323c via an A/D converter 321. The part 323c produces a histogram for every small image, consisting of blocks which are divided from the photographed image. A regular reflection detection part 323g decides whether any one of small image includes an image of illumination light reflected regularly on the white board, based on the shape of every histogram. If the regular reflection light is detected in a small image, a warning is produced via a buzzer, an LED display, etc. The regular reflected light, included in the photographed image is detected for every small image, and the regular reflection warning is produced according to this detection result Thus, it is possible to prevent erroneous photographing of an image having ambiguous character information, due to the regular reflection light.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、静止した被写体光
像を電気信号に光電変換して取り込むデジタルカメラに
関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a digital camera that photoelectrically converts a still object light image into an electric signal and captures the electric signal.

【0002】[0002]

【従来の技術】従来、デジタル複写機等の画像形成装置
においては、記録紙に複写された文字や図形等の情報の
明瞭度を高めるため、電気信号に光電変換して取り込ま
れた画像に対して比較的γ値の大きいγ特性(2値化処
理に近い特性を有するγ特性)を用いて画像処理(ガン
マ補正処理)が行なわれている。また、このガンマ補正
処理においては、一般に、照度ムラの影響を低減するた
め、図36に示すように、撮像画像Gを副走査方向に複
数の短冊状のブロックB(1),B(2),…B(n)に分割
し、各ブロックB(r)内に含まれる画素データのレベル
分布を示すヒストグラムに基づいて各ブロック毎にγ特
性γ(1),γ(2),…γ(n)を設定し、各ブロックB(r)
(r=1,2,…n)内の画素データは、そのブロック
に対するγ特性γ(r)を用いてガンマ補正が行なわれる
ようになっている。
2. Description of the Related Art Conventionally, in an image forming apparatus such as a digital copying machine, in order to enhance the clarity of information such as characters and figures copied on a recording sheet, an image captured by photoelectric conversion into an electric signal is taken. Image processing (gamma correction processing) is performed using a γ characteristic having a relatively large γ value (γ characteristic having a characteristic close to the binarization processing). In this gamma correction processing, generally, in order to reduce the influence of uneven illuminance, as shown in FIG. 36, the captured image G is divided into a plurality of rectangular blocks B (1), B (2) in the sub-scanning direction. ,... B (n), and based on a histogram indicating the level distribution of the pixel data included in each block B (r), γ characteristics γ (1), γ (2),. n) and set each block B (r)
The pixel data in (r = 1, 2,... N) is subjected to gamma correction using the γ characteristic γ (r) for the block.

【0003】このガンマ補正により所定レベル以上の白
地部分が一律に一定の白色に変換されるとともに、所定
レベル以下の文字部分(黒字部分)が一律に一定の黒色
に変換されるので、2値化処理に近似した画質が得られ
るようになっている。
[0003] By this gamma correction, a white background portion above a predetermined level is uniformly converted to a constant white color, and a character portion (black character portion) below a predetermined level is uniformly converted to a constant black color. An image quality similar to the processing can be obtained.

【0004】また、特開平6−113139号公報に
は、撮像画像を複数の部分画像ブロックに分割し、選択
された部分画像ブロック(注目部分画像ブロック)とこ
の注目部分画像ブロックに隣接する複数の部分画像ブロ
ックについて、ブロック毎にブロック内に含まれる画素
データのレベル分布のヒストグラムを作成するととも
に、このヒストグラムのデータを用いてニュ−ラルネッ
トワークにより注目部分画像ブロックの閾値を設定し、
この閾値を用いて注目部分画像ブロック内の画素データ
の2値化処理を行なう画像2値化装置が示されている。
Japanese Patent Laid-Open Publication No. Hei 6-113139 discloses that a captured image is divided into a plurality of partial image blocks, and a selected partial image block (partial image block of interest) and a plurality of adjacent partial image blocks. For each partial image block, a histogram of the level distribution of the pixel data included in the block is created for each block, and a threshold value of the partial image block of interest is set by a neural network using the data of the histogram.
An image binarization device that performs a binarization process on pixel data in a partial image block of interest using this threshold value is shown.

【0005】また、デジタル複写機等の画像形成装置に
おいては、原稿で照明光が正反射されると、この正反射
光により原稿に記載された文字等の濃度が著しく低下
し、原稿像を正確に取り込むことができなくなるので、
従来、このような不具合を防止するため、原稿で正反射
された照明光を検出する技術が知られている。
Further, in an image forming apparatus such as a digital copying machine, when illumination light is specularly reflected by a document, the density of characters and the like written on the document is significantly reduced by the specular reflection light, and the document image is accurately formed. Can not be imported to
Heretofore, in order to prevent such a problem, there has been known a technique for detecting illumination light that is specularly reflected from a document.

【0006】この検出技術は、センサのライン単位でC
CD(Charge Coupled Device)等の撮像素子で取り込
まれる画素信号のレベル分布のヒストグラムを作成し、
このヒストグラムの形状から正反射光の有無を判別する
というものである。より具体的には、正反射光が含まれ
ている場合、正反射光を受光した画素からは飽和したレ
ベルの画素信号が出力されるので、例えばヒストグラム
の飽和レベルにおける頻度が所定の閾値を超えているか
否かを判別することにより正反射光の有無が判別されて
いる。
[0006] This detection technique uses C for each sensor line.
Create a histogram of the level distribution of pixel signals captured by an image sensor such as a CD (Charge Coupled Device),
The presence or absence of specularly reflected light is determined from the shape of the histogram. More specifically, when specular reflection light is included, a pixel signal at a saturated level is output from a pixel that has received specular reflection light. The presence or absence of specularly reflected light is determined by determining whether or not the light is reflected.

【0007】[0007]

【発明が解決しようとする課題】ところで、デジタルカ
メラは、画像処理により撮影された画像の画質を自在に
制御できることから、撮影の目的や被写体の種類に応じ
て撮影画像の画質の処理を適正に行なうことにより通常
の銀塩フィルムに撮影するカメラに比してより好適な画
質の画像を取り込むことができるという利点がある。こ
のため、通常の写真撮影のためだけでなく、例えば会議
場でホワイトボードに書かれた文字、図形等の情報を写
し取るための機器として利用されている。
By the way, a digital camera can freely control the image quality of an image photographed by image processing, so that the image quality of a photographed image can be appropriately adjusted according to the purpose of photographing and the type of subject. By doing so, there is an advantage that an image with more favorable image quality can be captured as compared with a camera that shoots on a normal silver halide film. For this reason, it is used not only for ordinary photography but also as a device for copying information such as characters and figures written on a whiteboard in a conference hall.

【0008】デジタルカメラで文字や図形等が書かれた
ホワイトボードを撮影する場合、その撮影の主目的は専
らホワイトボード上の文字や図形等の情報の記録にある
ので、このような撮影画像に対しては上記デジタル複写
機と同様に白地部分(ホワイトボードの部分)を白く飛
ばして情報部分(文字や図形の部分)の明瞭度を高める
ようなガンマ補正を行なうことが望ましい。
When photographing a whiteboard on which characters and figures are written by a digital camera, the main purpose of the photographing is to record information such as characters and figures on the whiteboard. On the other hand, similarly to the digital copying machine, it is desirable to perform gamma correction so that a white background portion (whiteboard portion) is skipped white to enhance the clarity of an information portion (character or graphic portion).

【0009】この場合、ホワイトボード上の文字密度の
バラツキや照度ムラが大きいので、撮像画像を2次元的
に複数のブロックに分割し、ブロック単位でガンマ補正
を行なうことにより照度ムラの補正(シェーディング補
正)を行なうことが望ましい。
In this case, since the variation in character density and uneven illuminance on the whiteboard are large, the captured image is two-dimensionally divided into a plurality of blocks, and gamma correction is performed for each block to correct illuminance unevenness (shading). Correction).

【0010】すなわち、部屋の天井灯と窓外の太陽光と
によりホワイトボードが照明されているとすると、照明
光の不均一により照度ムラが生じ、かつ、また、撮影レ
ンズの入射瞳に角度ωで入射する光軸外物点の像はcos4
ωに比例して暗くなるという、いわゆるコサイン4乗則
による入射光量分布と上記照度ムラとの相乗効果によ
り、CCD等の撮像素子の出力分布は撮像面内で2次元
方向に大きく変動する。
That is, assuming that the whiteboard is illuminated by the ceiling light in the room and the sunlight outside the window, the illuminance unevenness occurs due to the unevenness of the illumination light, and the angle .omega. The image of the off-axis object point incident at is cos 4
Due to the synergistic effect of the incident light amount distribution according to the so-called cosine fourth law, which becomes darker in proportion to ω, and the illuminance non-uniformity, the output distribution of an imaging device such as a CCD fluctuates greatly in the two-dimensional direction within the imaging surface.

【0011】このため、撮像画像を2次元的に複数のブ
ロックに分割し、各ブロック毎にそのブロック内の照度
に応じたガンマ補正をして照度ムラ補正を行なうことが
望ましい。そして、より好ましくは、隣接するブロック
間でブロック毎に設定されたγ特性が大きく変化する場
合にこのγ特性の急変に起因してブロックの境界に偽線
が生じるのを回避するため、ブロックサイズを可及的に
小さくして各ブロックに適正なγ特性を設定するように
するのがよい。
For this reason, it is desirable to divide the captured image two-dimensionally into a plurality of blocks, and perform gamma correction in accordance with the illuminance in each block to perform illuminance unevenness correction. More preferably, when the γ characteristic set for each block greatly changes between adjacent blocks, a block size is set to avoid generation of a false line at a block boundary due to a sudden change in the γ characteristic. Is set as small as possible to set an appropriate γ characteristic for each block.

【0012】この場合、天井灯や太陽光等の照明光がホ
ワイトボードで正反射されるような撮影位置では、正反
射された照明光によりホワイトボード上の文字等が白く
飛んでしまうため、情報価値の低い画像が撮影されるこ
とになる。特に、画像処理において上述の照度ムラ補正
を行なうと、正反射光を含むブロックでは正確なヒスト
グラムが作成できず、効果的な照度ムラ補正が行えない
ばかりか、そのブロックの周辺の正反射光を含まないブ
ロックにも正反射光の悪影響が生じ、画質及び情報価値
の低下が著しくなるという問題が生じる。
In this case, in a photographing position where illumination light such as a ceiling light or sunlight is regularly reflected by the whiteboard, characters and the like on the whiteboard fly white due to the regularly reflected illumination light. A low-value image will be captured. In particular, if the above-described illuminance unevenness correction is performed in image processing, an accurate histogram cannot be created in a block including specularly reflected light, and not only can effective illuminance unevenness correction not be performed, but also specularly reflected light around the block. Blocks that do not include the reflected light also have an adverse effect, which causes a problem that image quality and information value are significantly reduced.

【0013】デジタル複写機においては、人工光源によ
り所定の条件で原稿を照明しているので、センサのライ
ン単位の検出処理により十分に正反射光の検出が可能で
あるが、デジタルカメラにおいては、照明光の照明条件
が一定せず、特に太陽光等の外光はスポット状にホワイ
トボードに入射して正反射するので、上記従来のデジタ
ル複写機における正反射光の検出方法のようにライン単
位で検出処理を行なったのではスポット状の正反射光を
確実に検出することは困難で、十分な検出精度が得られ
ない。
In a digital copying machine, an original is illuminated by an artificial light source under predetermined conditions, so that regular reflection light can be sufficiently detected by a line-by-line detection process of a sensor. The illumination conditions of the illumination light are not constant, and particularly, external light such as sunlight enters the whiteboard in a spot shape and is specularly reflected. It is difficult to reliably detect the spot-like regular reflected light if the detection processing is performed in step (1), and sufficient detection accuracy cannot be obtained.

【0014】一方、上記特開平6−113139号公報
に記載の2値化処理技術も、主としてコピー装置やファ
クシミリ装置における2値化処理に関するものである
が、同公報には上述したデジタルカメラにおける撮影特
有の正反射光の問題やそれを示唆する記述は全くなされ
ていない。
On the other hand, the binarization processing technique described in Japanese Patent Application Laid-Open No. Hei 6-113139 mainly relates to binarization processing in a copying apparatus or a facsimile apparatus. There is no specific specular reflection problem or description suggesting it.

【0015】本発明は、上記課題に鑑みてなされたもの
であり、照明光がホワイトボードで正反射される撮影条
件下でボード上に記載された文字等の情報を撮影する
際、正反射光を高い精度で検出し、低画質の映像を撮影
するという撮影ミスを確実に防止することのできるデジ
タルカメラを提供するものである。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-mentioned problems, and has been made in consideration of a situation in which information such as characters written on a board is photographed under a photographing condition in which illumination light is regularly reflected by a whiteboard. Is provided with high accuracy, and a digital camera capable of reliably preventing a shooting error of shooting a low-quality video.

【0016】[0016]

【課題を解決するための手段】本発明は、複数の光電変
換素子からなる撮像手段により被写体光像を画素信号に
光電変換して取り込み、その画素信号からなる画像を記
録媒体に記録するデジタルカメラにおいて、上記撮像手
段で取り込まれた画像を複数の小画像に分割する画像分
割手段と、小画像毎に各小画像を構成する画素信号のレ
ベル分布のヒストグラムを作成するヒストグラム作成手
段と、小画像毎に、作成されたヒストグラムを用いてそ
の小画像内に主被写体で正反射された照明光が含まれる
か否かを判別する判別手段と、いずれかの小画像に正反
射された照明光が含まれているとき、特定の処理を行な
う特定処理手段とを備えたものである(請求項1)。
According to the present invention, there is provided a digital camera for photoelectrically converting a subject light image into a pixel signal by an image pickup means comprising a plurality of photoelectric conversion elements, capturing the image, and recording the image formed from the pixel signal on a recording medium. An image dividing unit that divides an image captured by the imaging unit into a plurality of small images; a histogram creating unit that creates a histogram of a level distribution of pixel signals constituting each small image for each small image; For each, using the created histogram, determining means for determining whether or not the small image includes illumination light regularly reflected by the main subject, and determining whether the illumination light regularly reflected by any of the small images is included. And a specific processing means for performing a specific process when included.

【0017】また、本発明は、上記デジタルカメラにお
いて、警告手段を備え、上記特定処理手段は、主被写体
で照明光が正反射光されていることを上記警告手段によ
り警告するものである(請求項2)。
Further, according to the present invention, in the above digital camera, a warning means is provided, and the specific processing means warns the main subject that the illumination light is regularly reflected by the warning means. Item 2).

【0018】上記構成によれば、撮像手段で取り込まれ
た画像は複数の小画像に分割され、小画像毎に、各小画
像を構成する画素信号のレベル分布のヒストグラムが作
成される。また、小画像毎に、作成されたヒストグラム
を用いてその小画像内に主被写体で正反射された照明光
が含まれるか否かが判別され、いずれかの小画像に正反
射光が含まれていると、例えば正反射光を含む撮影画像
であることの警告や通常の撮影とは異なるγ特性でガン
マ補正を行なう等の特定の処理が行なわれる。
According to the above arrangement, the image captured by the imaging means is divided into a plurality of small images, and a histogram of the level distribution of the pixel signals constituting each small image is created for each small image. In addition, for each small image, it is determined whether or not the small image includes illumination light that has been regularly reflected by the main subject, using the created histogram, and any one of the small images includes the regular reflection light. Then, a specific process such as warning that the image is a photographed image including specularly reflected light or performing gamma correction with a γ characteristic different from normal photographing is performed.

【0019】また、本発明は、上記デジタルカメラにお
いて、上記特定処理手段は、取り込まれた画像の上記記
録手段への記録を禁止するものである(請求項3)。
Further, according to the present invention, in the digital camera, the specific processing means prohibits the recording of the captured image in the recording means (claim 3).

【0020】上記構成によれば、いずれかの小画像に主
被写体で正反射された照明光が含まれていると、取り込
まれた画像の記録手段への記録が禁止される。すなわ
ち、正反射光を含む被写体の撮影が禁止される。
According to the above arrangement, if any of the small images contains the illumination light that is specularly reflected by the main subject, the recording of the captured image on the recording means is prohibited. That is, photography of the subject including the specularly reflected light is prohibited.

【0021】これにより撮影者は正反射光により一部不
明瞭となった低画質の被写体像(例えばホワイトボード
上に書かれた文字等が正反射光により不明瞭となった画
像)の誤撮影を確実に防止することができる。
As a result, the photographer erroneously shoots a low-quality subject image (for example, an image in which characters or the like written on a white board are obscure due to specular reflection light) which is partially obscure due to specular reflection light. Can be reliably prevented.

【0022】[0022]

【発明の実施の形態】図1は、本発明に係るデジタルカ
メラの外観を示す斜視図である。また、図2は、同デジ
タルカメラの背面図である。
FIG. 1 is a perspective view showing the appearance of a digital camera according to the present invention. FIG. 2 is a rear view of the digital camera.

【0023】同図に示すカメラ1は撮像素子としてCC
Dエリアセンサを備え、このCCDエリアセンサで撮像
された画像データが、図略のPCMCIA準拠のハード
ディスクカードに記録されるようになっている。なお、
本実施の形態では撮像素子としてエリアセンサを用いた
場合について説明するが、ラインセンサにより被写体光
像をスキャンして画像データを取り込む構成にしてもよ
い。
The camera 1 shown in FIG.
A D area sensor is provided, and image data captured by the CCD area sensor is recorded on a PCMCIA-compliant hard disk card (not shown). In addition,
In this embodiment, a case where an area sensor is used as an image sensor will be described. However, a configuration may be adopted in which a subject optical image is scanned by a line sensor to capture image data.

【0024】カメラ1はホワイトボード上に書かれた文
字、図形等の情報(以下、この種の2値情報を文字情報
という。)の撮影画像に対してホワイトボードに対する
照明光(天井灯や窓外の太陽光等)のムラやCCDエリ
アセンサの感度のバラツキに起因する照度ムラの補正機
能を備えている。
The camera 1 applies illumination light (a ceiling light, a window, etc.) to a whiteboard to a photographed image of information such as characters and figures written on the whiteboard (hereinafter, such binary information is referred to as character information). It is provided with a correction function for illuminance unevenness caused by unevenness of outside sunlight or the like and variation in sensitivity of the CCD area sensor.

【0025】すなわち、例えば図4に示すように、部屋
の天井灯と窓外の太陽光とによりホワイトボード23が
照明されているとすると、照明光の不均一により照度ム
ラが生じ、かつ、また、撮影レンズの入射瞳に角度ωで
入射する光軸外物点の像はcos4ωに比例して暗くなると
いう、いわゆるコサイン4乗則による入射光量分布とこ
の照度ムラとの相乗効果により、CCDエリアセンサの
出力分布は、図5(a),(b)に示すように、撮像面
内で2次元的に大きく変動する。カメラ1では、後述す
る文字画モードで撮影した場合は、各画素データ毎にあ
るいは複数の画素データ単位で適切なγ特性を設定し、
そのγ特性を用いて各画素データもしくは各画素データ
単位でガンマ補正を行なうことにより、2次元的に生じ
るCCDエリアセンサの出力変動が可及的に低減され
る。
That is, as shown in FIG. 4, for example, assuming that the whiteboard 23 is illuminated by the ceiling light in the room and the sunlight outside the window, illuminance unevenness occurs due to uneven illumination light, and The image of the off-axis object point incident on the entrance pupil of the photographing lens at an angle ω darkens in proportion to cos 4 ω. As shown in FIGS. 5A and 5B, the output distribution of the CCD area sensor greatly varies two-dimensionally within the imaging plane. In the camera 1, when shooting in a character image mode described later, an appropriate γ characteristic is set for each pixel data or a plurality of pixel data units,
By performing gamma correction for each pixel data or each pixel data unit using the γ characteristic, the output fluctuation of the CCD area sensor which occurs two-dimensionally is reduced as much as possible.

【0026】なお、図5において、実線はホワイトボー
ド23に何も書かれていない場合で、ホワイトボード2
3の白地部分の出力分布を示し、点線はホワイトボード
23に文字が書かれていた場合の文字部分の出力分布を
示している。
In FIG. 5, the solid line indicates the case where nothing is written on the white board 23,
3 shows an output distribution of a white background portion, and a dotted line shows an output distribution of a character portion when a character is written on the whiteboard 23.

【0027】ここで、照度ムラ補正について簡単に説明
する。文字情報を撮影した画像は主として情報の記録が
目的であり、描写性よりも情報の判読性の高い画質が要
求されることから、ホワイトボードの白地部分に対する
文字情報部分のコントラストを高くして文字情報の明瞭
化を図るとともに、照度ムラを低減して全体的に見易く
することが望ましい。
Here, the illuminance unevenness correction will be briefly described. The image of the text information is mainly used for recording information, and it is required that the image quality is higher than the descriptiveness. It is desirable to clarify the information and reduce unevenness of the illuminance to make it easier to see as a whole.

【0028】本実施の形態で、図6に示すように、撮像
画像Gを縦横に複数の正方形のブロックB(I)(同図で
はI=1,2,…18)に分割し、各ブロックB(I)に
含まれる画素データのレベル分布のヒストグラムを用い
て算出された白地レベルWにより、図7に示すようなγ
特性をそのブロック(I)の中心位置O(I)に対するγ特性
γ(I)として設定し、更に設定されたγ特性γ(I)を用い
て各ブロックB(I)の中心位置O(I)以外の画素位置Pの
γ特性γ(P)を補間し、これらのγ特性γ(I),γ(P)を
用いて対応する画素位置O(I),Pの画素データのガン
マ補正を行なうことにより文字情報の明瞭化と照度ムラ
補正とを行なうようにしている。
In this embodiment, as shown in FIG. 6, a captured image G is divided into a plurality of square blocks B (I) (I = 1, 2,... 18 in FIG. The white background level W calculated using the histogram of the level distribution of the pixel data included in B (I), as shown in FIG.
The characteristic is set as a γ characteristic γ (I) with respect to the center position O (I) of the block (I), and the center position O (I) of each block B (I) is further determined by using the set γ characteristic γ (I). ), The γ characteristics γ (P) of the pixel positions P other than those are interpolated, and the gamma correction of the pixel data of the corresponding pixel positions O (I), P is performed using these γ characteristics γ (I), γ (P). By doing so, clarification of character information and correction of illuminance unevenness are performed.

【0029】なお、図7は画素データを8ビットデータ
にA/D変換した場合のもので、入出力レベルのレベル
値「255」は最大値を示している。また、同図に示す
γ特性では、入力レベルW以上の画素データは全て最大
レベルに飽和した画素データに変換されるので、撮像画
像は入力レベルW以上の画素データからなる白地部分が
一律に最大明度の白色となる画質に補正される。これに
より白地部分に対する文字情報部分のコントラストが強
調され、文字情報の明瞭化が図られる。
FIG. 7 shows a case where the pixel data is A / D converted to 8-bit data, and the level value "255" of the input / output level indicates the maximum value. Further, in the γ characteristic shown in the figure, since all the pixel data at the input level W or higher are converted to pixel data saturated to the maximum level, the captured image has a uniform white background portion including the pixel data at the input level W or higher. The image is corrected to an image quality of white lightness. Thereby, the contrast of the character information portion with respect to the white background portion is enhanced, and the character information is clarified.

【0030】また、必要に応じて照度ムラ補正後の画像
に対し、図8に示すようなγ特性を用いてガンマ補正を
行なうことにより文字情報部分の黒字強調が行なわれ
る。すなわち、照度ムラ補正後の画像は入力レベルB以
下の画素データからなる黒地部分が一律に最小明度の黒
色となる画質に補正され、これによりホワイトボード2
3に書かれた文字、図形等の濃度、線の太さ、線密度に
応じて文字部分の黒色強調がなされ、文字情報の明瞭化
の適正化が図られるようになっている。なお、照度ムラ
補正におけるガンマ補正処理の詳細については後述す
る。
If necessary, gamma correction is performed on the image after the illuminance non-uniformity correction using the gamma characteristic as shown in FIG. That is, the image after the illuminance unevenness correction is corrected to the image quality in which the black background portion formed of the pixel data of the input level B or less becomes black with the minimum brightness uniformly.
The character portion is highlighted in black in accordance with the density, line thickness, and line density of the characters and figures written in No. 3 so that the character information can be clarified properly. The details of the gamma correction process in the illuminance unevenness correction will be described later.

【0031】図1に戻り、カメラ1は前面の略中央にズ
ームレンズから成る撮影レンズ2が配設され、その上部
にアクティブ測距方式により被写体距離を測定するため
の投光窓4と受光窓5とが配設され、両窓の間に被写体
の輝度を測定するための測光窓3が配設されている。ま
た、投光窓4の左側にファインダー対物窓6が配設さ
れ、受光窓5の右側にフラッシュ7が配設されている。
Referring back to FIG. 1, the camera 1 has a photographing lens 2 composed of a zoom lens disposed substantially at the center of the front surface, and a light projecting window 4 and a light receiving window for measuring a subject distance by an active distance measuring method. 5 is provided, and a photometric window 3 for measuring the brightness of the subject is provided between the two windows. A finder objective window 6 is provided on the left side of the light projecting window 4, and a flash 7 is provided on the right side of the light receiving window 5.

【0032】カメラ本体内の撮影レンズ2の結像位置に
は、図3に示すように、横長長方形のCCDエリアセン
サ21(以下、CCD21と略称する。)が配設され、
このCCD21と撮影レンズ2との間に絞り22が配設
されている。
As shown in FIG. 3, a horizontally long rectangular CCD area sensor 21 (hereinafter, abbreviated as CCD 21) is provided at an image forming position of the taking lens 2 in the camera body.
An aperture 22 is provided between the CCD 21 and the taking lens 2.

【0033】投光窓4は被写体に対して赤外光を照射す
る窓であり、受光窓5はこの赤外光の被写体からの反射
光を受光する窓である。なお、本実施の形態では測距方
式としてアクティブ測距方式を採用しているが、パッシ
ブ測距方式でもよい。
The light projecting window 4 is a window for irradiating the subject with infrared light, and the light receiving window 5 is a window for receiving the reflected light of the infrared light from the subject. In the present embodiment, the active distance measuring method is adopted as the distance measuring method, but a passive distance measuring method may be used.

【0034】カメラ1の側面にはハードディスクカード
13が装着脱されるカード挿入口8が設けられ、このカ
ード挿入口8の上部にハードディスクカード13をイジ
ェクトするためのカード取出ボタン9が設けられてい
る。撮影結果をプリントアウトする場合、カード取出ボ
タン9を押してハードディスクカード13をカメラ1か
ら取り外し、ハードディスクカードが装着可能なプリン
タにこのハードディスクカード13を装着してプリント
アウトすることができる。
On the side of the camera 1, there is provided a card insertion slot 8 into which the hard disk card 13 is inserted and removed. Above the card insertion slot 8, a card ejection button 9 for ejecting the hard disk card 13 is provided. . When printing out the photographing result, the user can press the card ejection button 9 to remove the hard disk card 13 from the camera 1 and mount the hard disk card 13 in a printer to which the hard disk card can be mounted to print out.

【0035】なお、カメラ1にSCSIケーブルのイン
ターフェースを設け、カメラ1とプリンタとをSCSI
ケーブルで接続して直接、カメラ1からプリンタに画像
データを転送して撮影画像をプリントアウトさせるよう
にしてもよい。
The camera 1 is provided with an interface of a SCSI cable, and the camera 1 and the printer are connected to the SCSI cable.
The image data may be directly transferred from the camera 1 to the printer by connecting with a cable, and the photographed image may be printed out.

【0036】また、本実施の形態では画像データの記録
媒体としてPCMCIA準拠のハードディスクカードを
採用しているが、撮影結果を画像データとして記憶でき
るものであれば、メモリカードやミニディスク(MD)
等の他の記録媒体でもよい。
In this embodiment, a hard disk card conforming to PCMCIA is used as a recording medium for image data. However, if a photographing result can be stored as image data, a memory card or a mini disk (MD)
And other recording media.

【0037】カメラ1の上面には左端部にシャッタボタ
ン10が設けられ、右端部にズームスイッチ11と撮影
/再生スイッチ12が設けられている。シャッタボタン
10は半押しで焦点距離調節、露出制御値設定等の撮影
準備を指示するS1スイッチがONになり、全押しでレ
リーズを指示するS2スイッチがONになる操作ボタン
である。ズームスイッチ11は左右にスライド可能な3
接点スイッチから成り、ズームスイッチ11をT(TEL
E)側にスライドさせると、望遠側に、また、W(WID
E)側にスライドさせると、広角側に、撮影レンズ2の
ズーム比を連続的に変更することができる。
On the upper surface of the camera 1, a shutter button 10 is provided at the left end, and a zoom switch 11 and a photographing / playback switch 12 are provided at the right end. The shutter button 10 is an operation button that turns on an S1 switch for instructing shooting preparation such as focal length adjustment and exposure control value setting when pressed halfway, and turns on an S2 switch for instructing release when fully pressed. The zoom switch 11 can slide left and right
It consists of a contact switch, and the zoom switch 11 is set to T (TEL
Slide to the E) side to the telephoto side and W (WID
By sliding to the E) side, the zoom ratio of the taking lens 2 can be continuously changed to the wide angle side.

【0038】撮影/再生スイッチ12は撮影モードと再
生モードとを切換設定するスイッチである。撮影/再生
スイッチ12は左右にスライド可能な2接点切換スイッ
チから成り、撮影/再生スイッチ12が撮影(REC)側
に設定されていると、被写体の撮影(撮像画像のハード
ディスクカード13への記録)が可能になり、再生(PL
AY)側に設定されていると、ハードディスクカード13
に記録された撮像画像のLCD表示部19(図2参照)
へのモニター表示が可能になる。
The photographing / reproducing switch 12 is a switch for switching between a photographing mode and a reproducing mode. The photographing / playback switch 12 is composed of a two-contact changeover switch slidable left and right. When the photographing / playback switch 12 is set to the photographing (REC) side, photographing of a subject (recording of a photographed image on the hard disk card 13) And playback (PL
AY), the hard disk card 13
LCD display section 19 of the captured image recorded in the camera (see FIG. 2)
Monitor display on the computer.

【0039】カメラ1の背面には、図2に示すように、
その上部の左端部と略中央とにそれぞれ電源投入用のメ
インスイッチ14とファインダー接眼窓15とが設けら
れ、右上隅部にブザー16が設けられている。このブザ
ー16は、ホワイトボード23上の文字情報を撮影する
際、照明光がホワイトボード23で正反射して文字情報
が不明瞭になることを撮影者に警告するためのものであ
る。以下、この警告のことを「正反射警告」という。
On the back of the camera 1, as shown in FIG.
A power switch main switch 14 and a finder eyepiece window 15 are provided at the upper left end and substantially at the center, respectively, and a buzzer 16 is provided at the upper right corner. The buzzer 16 warns the photographer that when illuminating light is specularly reflected by the whiteboard 23 and character information becomes unclear when character information on the whiteboard 23 is photographed. Hereinafter, this warning is referred to as “specular reflection warning”.

【0040】また、メインスイッチ14の下部に照度ム
ラ補正スイッチ17及び黒色濃度調整スイッチ18が設
けられ、この黒色濃度調整スイッチ18の右側に正反射
警告スイッチ20が設けられている。更に、カメラ1の
背面の右下隅部にはLCD表示部19が設けられてい
る。
An illumination unevenness correction switch 17 and a black density adjustment switch 18 are provided below the main switch 14, and a regular reflection warning switch 20 is provided on the right side of the black density adjustment switch 18. Further, an LCD display unit 19 is provided at the lower right corner on the back surface of the camera 1.

【0041】照度ムラ補正スイッチ17は上述した照度
ムラ補正を指示するスイッチである。照度ムラ補正スイ
ッチ17は操作ボタンが左右にスライドするON/OF
Fスイッチで構成されている。照度ムラ補正スイッチ1
7により照度ムラ補正が指示されると、撮影画像を複数
のブロック(小画像)に分割し、ブロック毎にそのブロ
ックに含まれる画素データを用いて設定された図7に示
すようなγ特性に従ってガンマ補正が行なわれる。一
方、照度ムラ補正スイッチ17がOFFになっていると
きは、予め設定された通常の写真撮影に適したγ特性
(被写体の有する階調を可能な限り忠実に再生し得る描
写性の高い画質が得られるようなγ特性)を用いて撮像
画像のガンマ補正処理が行なわれる。
The illuminance unevenness correction switch 17 is a switch for instructing the illuminance unevenness correction described above. Illumination unevenness correction switch 17 is ON / OF in which the operation button slides left and right
It is composed of an F switch. Illuminance unevenness correction switch 1
When the illuminance non-uniformity correction is instructed by the block 7, the captured image is divided into a plurality of blocks (small images), and the blocks are divided into blocks according to the γ characteristics set using the pixel data included in the blocks as shown in FIG. Gamma correction is performed. On the other hand, when the illuminance non-uniformity correction switch 17 is turned off, a γ characteristic suitable for normal photographing that has been set in advance (image quality with high descriptiveness capable of reproducing the gradation of the subject as faithfully as possible) is obtained. Gamma correction processing of the captured image is performed using the obtained γ characteristic).

【0042】照度ムラ補正は、ホワイトボードに書かれ
た文字情報を撮影する際の照度ムラによる画質劣化を改
善するもので、主としてこのような文字情報を撮影する
ときに適用される。従って、文字、図形等の情報を撮影
した画像を「文字画」とし、風景や人物を撮影した画像
を「自然画」として撮影画像の内容を2種類に分ける
と、照度ムラ補正スイッチ17は撮影画像の画像処理
(特にガンマ補正処理)を文字画モードと自然画モード
とに切り換えるスイッチとなっている。
The illuminance non-uniformity correction is intended to improve image quality deterioration due to illuminance non-uniformity when photographing character information written on a whiteboard, and is mainly applied when such character information is photographed. Therefore, if an image obtained by capturing information such as characters and figures is referred to as a “character image” and an image obtained by capturing a landscape or a person is referred to as a “natural image” and the content of the captured image is divided into two types, the illuminance unevenness correction switch 17 is used for The switch switches image processing (especially gamma correction processing) of an image between a character image mode and a natural image mode.

【0043】撮影者は文字画を撮影するときは、照度ム
ラ補正スイッチ17を「ON」に設定することにより文
字画に適した画質(白地部分を白く飛ばして文字等の情
報が適切に強調された画質)の撮影画像を得ることがで
き、自然画を撮影するときは、照度ムラ補正スイッチ1
7を「OFF]に設定することにより自然画に適した画
質(描写性の高い画質)の撮影画像を得ることができ
る。
When photographing a character image, the photographer sets the illuminance unevenness correction switch 17 to "ON" so that an image quality suitable for the character image (white information is appropriately emphasized by skipping white portions white). Illuminance unevenness correction switch 1 when shooting a natural image.
By setting “7” to “OFF”, a captured image having an image quality suitable for a natural image (image quality with high descriptiveness) can be obtained.

【0044】黒色濃度調整スイッチ18は、照度ムラ補
正後の画像に対して黒色強調のガンマ補正におけるγ特
性の黒色飽和レベルB(図8参照)を調整するスイッチ
である。黒色濃度調整スイッチ18は操作ボタンが左右
にスライドする3接点スイッチで構成されている。黒色
濃度調整スイッチ18は照度ムラ補正スイッチ17が
「ON」に設定されているとき(文字画モードが設定さ
れているとき)にのみ機能する。文字画モードにおい
て、黒色濃度調整スイッチ18がOFF状態に設定され
ているときは、図9に示すように、γ特性の黒色飽和レ
ベルは予め設定された所定レベルB0に設定され、黒色
濃度調整スイッチ18が「濃」に設定されると、γ特性
の黒色飽和レベルは所定レベルB0より大きい所定のレ
ベルB1(>B0)に切換設定され、「淡」に設定され
ると、γ特性の黒色飽和レベルは所定レベルB0より小
さい所定レベルB2(<B0)に切換設定される。
The black density adjustment switch 18 is a switch for adjusting the black saturation level B (see FIG. 8) of the γ characteristic in the gamma correction of black emphasis on the image after the illuminance unevenness correction. The black density adjusting switch 18 is constituted by a three-contact switch whose operation button slides left and right. The black density adjustment switch 18 functions only when the illuminance unevenness correction switch 17 is set to “ON” (when the character image mode is set). In the character image mode, when the black density adjustment switch 18 is set to the OFF state, as shown in FIG. 9, the black saturation level of the γ characteristic is set to a predetermined level B0, and the black density adjustment switch When 18 is set to “dark”, the black saturation level of the γ characteristic is switched to a predetermined level B1 (> B0) larger than the predetermined level B0, and when set to “light”, black saturation of the γ characteristic is set. The level is switched and set to a predetermined level B2 (<B0) smaller than the predetermined level B0.

【0045】文字画モードの画像処理では、下地部分を
白く飛ばすようにγ特性の白色飽和レベルが自動調整さ
れるが、更に黒色濃度調整スイッチ18により黒色飽和
レベルを変更することにより文字部分の濃度を変更して
下地(白地)とのコントラストを調整することができ
る。
In the image processing in the character image mode, the white saturation level of the γ characteristic is automatically adjusted so as to remove the background portion white, but the density of the character portion is further changed by changing the black saturation level by the black density adjustment switch 18. Can be changed to adjust the contrast with the base (white background).

【0046】例えばホワイトボードに書かれた文字と原
稿に書かれた文字とを比較すると、一般にホワイトボー
ドの文字の方が原稿の文字よりも太く、大きいから、原
稿を撮像した場合にホワイトボードの場合と同様のガン
マ補正を行なうと、下地に対する文字のコントラストが
ホワイトボードの場合に比して低下することになる。従
って、原稿を撮影する場合は、黒色濃度調整スイッチ1
8を「濃」に設定することにより文字部分の黒色を強調
し、下地に対する文字部分のコントラストを好適に調整
することができる。
For example, comparing the characters written on the whiteboard with the characters written on the document, the characters on the whiteboard are generally thicker and larger than the characters on the document. When the same gamma correction is performed as in the case, the contrast of the character with respect to the background is reduced as compared with the case of the whiteboard. Therefore, when photographing an original, the black density adjustment switch 1
By setting “8” to “dark”, the black of the character portion can be enhanced, and the contrast of the character portion with respect to the background can be suitably adjusted.

【0047】なお、本実施の形態では、黒色飽和レベル
を2段階に切換設定するようにしているが、多段切換方
式でもよく、連続的に切り換えられるようにしてもよ
い。
In the present embodiment, the black saturation level is switched and set in two stages. However, a multi-stage switching system may be used, or the black saturation level may be switched continuously.

【0048】LCD表示部19は撮像画像をモニター表
示するものである。撮影/再生スイッチ12が再生側に
設定されると、図略の選択スイッチにより指定されたコ
マの撮像画像がハードディスクカード13から読み出さ
れてLCD表示部19に再生表示される。
The LCD display section 19 displays a captured image on a monitor. When the photographing / reproduction switch 12 is set to the reproduction side, a captured image of a frame designated by a selection switch (not shown) is read from the hard disk card 13 and reproduced and displayed on the LCD display unit 19.

【0049】正反射警告スイッチ20は上述した正反射
警告を行なうように指示するスイッチである。正反射警
告スイッチ20は操作ボタンが左右にスライドするON
/OFFスイッチで構成されている。正反射警告スイッ
チ20により「警告有り」が指示されていると、撮影画
像を複数のブロック(小画像)に分割し、ブロック毎に
そのブロックに含まれる画素データのレベル分布のヒス
トグラムを用いて正反射光の有無が判別され、いずれか
のブロックで正反射光が検出されると、上記ブザー16
から警告音を発生される。また、図10に示すように、
ファインダー視野枠42内に設けられた正反射警告用の
LED表示24を発光して正反射光により撮影画像の画
質低下を招くおそれがあることを警告する。一方、正反
射警告スイッチ20が「OFF」になっているときは、
上記正反射光の検出及び正反射警告は行なわれない。
The regular reflection warning switch 20 is a switch for giving an instruction to issue the above-described regular reflection warning. The regular reflection warning switch 20 is ON when the operation button slides left and right.
/ OFF switch. When "warning" is instructed by the regular reflection warning switch 20, the captured image is divided into a plurality of blocks (small images), and each block is forwarded using a histogram of the level distribution of the pixel data included in the block. The presence or absence of reflected light is determined, and if specularly reflected light is detected in any of the blocks, the buzzer 16
Beep sounds. Also, as shown in FIG.
The LED display 24 for regular reflection warning provided in the viewfinder field frame 42 emits light to warn that the image quality of a captured image may be degraded by the regular reflection light. On the other hand, when the regular reflection warning switch 20 is "OFF",
The detection of the regular reflection light and the regular reflection warning are not performed.

【0050】なお、上記のように正反射警告を行なうか
否かを撮影者の選択に委せているのは、正反射光は主と
して文字画モードにおける撮影で問題となり、通常の写
真撮影と同様の撮影を行なう自然画モードでは逆に正反
射光が撮影効果として有効に活用されることがあるの
で、撮影目的、撮影シーン等を考慮し、必要に応じて正
反射警告をなし得るようにしたものである。従って、正
反射警告スイッチ20を設けることなく、常に正反射警
告を行なわせるようにしてあってもよい。
It is to be noted that whether or not to issue a regular reflection warning is left to the photographer as described above. Regular reflection light is a problem mainly in photographing in the character image mode, and is the same as in ordinary photographing. On the other hand, in the natural image mode in which shooting is performed, specular reflection light may be effectively used as a shooting effect, so that a specular reflection warning can be issued as necessary in consideration of a shooting purpose, a shooting scene, and the like. Things. Therefore, the regular reflection warning may be always performed without providing the regular reflection warning switch 20.

【0051】図11は、本発明に係るカメラ1のブロッ
ク構成図である。同図において、上述した部材と同一部
材には同一の番号を付している。また、CCD駆動部3
1は、CPU30から入力される露出制御値のシャッタ
ースピードに基づいてCCD21の撮像動作を制御する
ものである。CCD21はカラーエリアセンサから成
り、CCD駆動部31から入力される制御信号に基づき
撮像動作(電荷蓄積動作)を行ない、R,G,Bの各色
成分の画素信号を時系列信号に変換して画像処理部32
に出力する。
FIG. 11 is a block diagram of the camera 1 according to the present invention. In the figure, the same members as those described above are denoted by the same reference numerals. Also, the CCD driving unit 3
1 controls the imaging operation of the CCD 21 based on the shutter speed of the exposure control value input from the CPU 30. The CCD 21 includes a color area sensor, performs an imaging operation (charge accumulation operation) based on a control signal input from the CCD driving unit 31, converts pixel signals of each of R, G, and B color components into a time-series signal and converts the image into an image. Processing unit 32
Output to

【0052】画像処理部32はCCD21から出力され
た画素信号に所定の信号処理を施してハードディスクカ
ード13に出力するものである。画像処理部32はA/
D変換器321、画像メモリ322、第1γ特性設定部
323、第2γ特性設定部324、第1γ補正部32
5、第2γ補正部326及びスイッチ回路327,32
8を有し、照度ムラ補正が指示されているときは、照度
ムラ補正を行なう。照度ムラ補正はブロック毎に照度ム
ラ補正用のγ特性を設定し、そのγ特性を用いてガンマ
補正を行なうことにより行なわれる。このとき、ブロッ
クの中心位置間の部分に対するγ特性が補間され、この
部分の画像信号を補間されたγ特性を用いてガンマ補正
することによりブロック間のγ特性の相違に基づく画質
の不連続が緩和される。
The image processing section 32 performs predetermined signal processing on the pixel signal output from the CCD 21 and outputs the processed signal to the hard disk card 13. The image processing unit 32 has A /
D converter 321, image memory 322, first γ characteristic setting unit 323, second γ characteristic setting unit 324, first γ correction unit 32
5. Second gamma correction unit 326 and switch circuits 327 and 32
8 and when illuminance unevenness correction is instructed, illuminance unevenness correction is performed. Illuminance unevenness correction is performed by setting a γ characteristic for illuminance unevenness correction for each block, and performing gamma correction using the γ characteristic. At this time, the γ characteristics for the portion between the center positions of the blocks are interpolated, and the image signal of this portion is gamma-corrected using the interpolated γ characteristics, whereby discontinuity in image quality based on the difference in γ characteristics between the blocks is reduced. Be relaxed.

【0053】A/D変換器321はCCD21から読み
出された画像信号に含まれる各画素信号をデジタルの信
号(以下、画素データという。)に変換するものであ
る。
The A / D converter 321 converts each pixel signal included in the image signal read from the CCD 21 into a digital signal (hereinafter, referred to as pixel data).

【0054】画像メモリ322はA/D変換器321か
ら出力された画素データを記憶するものである。画像メ
モリ322は撮像画像1枚分の画素データを記憶し得る
容量を有し、撮像画像の画像処理が一括して行なえるよ
うになっている。
The image memory 322 stores the pixel data output from the A / D converter 321. The image memory 322 has a capacity capable of storing pixel data of one captured image, and can perform image processing of the captured image at a time.

【0055】なお、ブロックに分割した際、ブロックの
行単位で画像処理を成し得るように、メモリの画像メモ
リ322の容量を、設定され得る最大のブロックサイズ
で撮像画像を複数のブロックに分割した際、少なくとも
1行に配置されるブロックに含まれる画素データを記憶
し得る容量とし、メモリの削減を図るようにしてもよ
い。すなわち、図14に示すように、例えば撮像画像G
が最大ブロックサイズで3×3個のブロックB(1)〜B
(9)に分割されるとすると、画像メモリ322の容量を
各行に配置されるブロックB(1)〜B(3),ブロックB
(4)〜B(6),ブロックB(7)〜B(9)に含まれる画素デー
タを記憶し得る容量としてもよい。
When the image data is divided into blocks, the capacity of the image memory 322 of the memory is divided into a plurality of blocks at the maximum block size that can be set so that image processing can be performed in units of rows of the blocks. In this case, the capacity may be set to be able to store the pixel data included in the blocks arranged in at least one row, and the memory may be reduced. That is, for example, as shown in FIG.
Is the maximum block size of 3 × 3 blocks B (1) to B
Assuming that the image memory 322 is divided into (9), the capacity of the image memory 322 is changed to blocks B (1) to B (3),
(4) to B (6) and a capacity capable of storing the pixel data included in the blocks B (7) to B (9).

【0056】第1γ特性設定部323は撮像画像の照度
ムラ補正用のγ特性を設定するものである。第1γ特性
設定部323は撮像画像を複数のブロックに分割し、ブ
ロック毎に各ブロック内に含まれる画素データを用いて
照度ムラ補正用のγ特性を設定する。第2γ特性設定部
324は照度ムラ補正後の画像の黒色濃度強調用のγ特
性を設定するものである。第2γ特性設定部324はC
PU30から入力される黒色濃度調整スイッチ18の操
作情報に基づいて黒色濃度強調用のγ特性を設定する。
The first γ characteristic setting section 323 sets a γ characteristic for correcting illuminance unevenness of a captured image. The first γ characteristic setting unit 323 divides the captured image into a plurality of blocks, and sets γ characteristics for illuminance unevenness correction using pixel data included in each block for each block. The second γ characteristic setting unit 324 sets the γ characteristic for enhancing the black density of the image after the illuminance unevenness correction. The second γ characteristic setting unit 324 sets C
The gamma characteristic for black density enhancement is set based on the operation information of the black density adjustment switch 18 input from the PU 30.

【0057】また、第1γ補正部325は自然画に対す
るガンマ補正を行なう回路であり、第2γ補正部326
は文字画に対するガンマ補正を行なう回路である。第1
γ補正部325は予め設定された自然画に適したγ特性
を用いて画像メモリ322から読み出された画素データ
のガンマ補正を行なう。第2γ補正部326は文字画の
撮像画像を複数のブロックに分割し、ブロック毎に第1
γ特性設定部323で設定された照度ムラ補正用のγ特
性を用いて撮像画像を構成する画素データのガンマ補正
を行なった後、第2γ特性設定部324で設定された黒
色濃度強調用のγ特性を用いて画素データのガンマ補正
を行なう。なお、文字画に対するガンマ補正については
後述する。
The first γ correction section 325 is a circuit for performing gamma correction on a natural image, and the second γ correction section 326
Is a circuit for performing gamma correction on a character image. First
The γ correction unit 325 performs gamma correction on pixel data read from the image memory 322 using a γ characteristic suitable for a natural image set in advance. The second γ correction unit 326 divides the captured image of the character image into a plurality of blocks, and
After performing gamma correction of the pixel data constituting the captured image using the γ characteristic for illuminance unevenness set by the γ characteristic setting unit 323, the γ for black density enhancement set by the second γ characteristic setting unit 324. Gamma correction of pixel data is performed using characteristics. Note that gamma correction for a character image will be described later.

【0058】また、スイッチ回路327は画像メモリ3
22と第1、第2γ補正部325,326との接続を切
り換えるものであり、スイッチ回路328は第1,第2
γ補正部325,326とハードディスクカード13と
の接続を切り換えるものである。スイッチ回路327,
328の切換制御は照度ムラ補正スイッチ17の設定状
態に対応してCPU30から出力される制御信号により
行なわれ、照度ムラ補正スイッチ17が「OFF」に設
定されている(自然画モードが設定されている)と、画
像メモリ322と第1γ補正部325及び第1γ補正部
325とハードディスクカード13とがそれぞれ接続さ
れ、照度ムラ補正スイッチ17が「ON」に設定されて
いる(文字画モードが設定されている)と、画像メモリ
322と第2γ補正部326及び第2γ補正部326と
ハードディスクカード13とがそれぞれ接続される。
The switch circuit 327 is connected to the image memory 3.
22 and the connection between the first and second γ correction units 325 and 326. The switch circuit 328 includes the first and second γ correction units 325 and 326.
The connection between the γ correction units 325 and 326 and the hard disk card 13 is switched. Switch circuit 327,
The switching control at 328 is performed by a control signal output from the CPU 30 in accordance with the setting state of the illuminance unevenness correction switch 17, and the illuminance unevenness correction switch 17 is set to “OFF” (the natural image mode is set). The image memory 322, the first γ correction unit 325, the first γ correction unit 325, and the hard disk card 13 are connected, and the illuminance unevenness correction switch 17 is set to “ON” (the character image mode is set). ), The image memory 322, the second γ correction unit 326, the second γ correction unit 326, and the hard disk card 13 are connected.

【0059】ここで、文字画に対するガンマ補正(照度
ムラ補正及び黒色強調補正)の方法について説明する。
Here, a method of gamma correction (illuminance unevenness correction and black enhancement correction) for a character image will be described.

【0060】上述したように、文字画の場合は、白地部
分に対して相対的に文字部分の明瞭度を大きくすること
が望ましいので、白地部分を白く飛ばすために、図7に
示すように、所定の入力レベルWで出力レベルを飽和さ
せたγ特性が用いられる。
As described above, in the case of a character image, it is desirable to increase the clarity of the character portion relative to the white background portion. Therefore, as shown in FIG. A γ characteristic in which the output level is saturated at a predetermined input level W is used.

【0061】このγ特性における白色飽和レベルWは、
例えば文字画の画像を構成する緑色成分の画素データの
レベル分布のヒストグラムを作成し、白地部分に相当す
る範囲内で最大頻度を有する階級が設定される。すなわ
ち、文字、図形等の描かれたホワイトボード23を撮影
した画像について、緑色成分の画素データのレベル分布
のヒストグラムを作成すると、図15に示すように、一
般に白地部分(ボード部分)に相当する山Uと黒字部分
(文字部分)に相当する山Cとを有する二山分布にな
り、白地部分に相当する山Uのピークに対応するレベル
wがγ特性の白色飽和レベルWとして設定される。
The white saturation level W in the γ characteristic is
For example, a histogram of the level distribution of the pixel data of the green component forming the image of the character image is created, and the class having the maximum frequency within the range corresponding to the white background portion is set. That is, when a histogram of the level distribution of the pixel data of the green component is created for an image obtained by photographing the whiteboard 23 on which characters, graphics, and the like are drawn, as shown in FIG. 15, the histogram generally corresponds to a white background portion (board portion). A level w corresponding to a peak of the mountain U corresponding to a mountain U and a mountain C corresponding to a black character portion (character portion) is set as a white saturation level W of the γ characteristic.

【0062】撮像画像全体を構成する緑色成分の画素デ
ータのヒストグラムから白色飽和レベルWを決定したγ
特性を設定し、このγ特性を用いて撮像画像全体のガン
マ補正を行なうようにしてもよいが、ホワイトボード2
3に手書きされたものは文字密度(白地部分に対する文
字部分の比率)のバラツキが大きく、しかも写真撮影の
場合は、照明装置を備えた複写機等の場合と異なり、光
源が一定でなく、画面内で照度分布が大きく変化するこ
とから、撮像画面内の照度ムラが大きくなるので、好ま
しくは撮像画像を複数のブロックに分割し、各ブロック
毎に設定したγ特性に従ってブロック単位でガンマ補正
することにより照度ムラを補正することが望ましい。
The white saturation level W is determined from the histogram of the green component pixel data constituting the entire captured image.
The gamma correction may be performed on the entire captured image by using the gamma characteristic.
3 has a large variation in character density (ratio of a character portion to a white background portion), and in the case of photographing, unlike a copier or the like equipped with a lighting device, the light source is not constant, and Since the illuminance distribution greatly changes within the illuminance, illuminance unevenness in the imaging screen becomes large. It is desirable to correct the illuminance non-uniformity.

【0063】本実施の形態に係るカメラ1では、通常の
撮影モードの場合(すなわち、正面撮影の場合)、図1
6に示すように、撮像画像Gを縦横にn(=K(縦)×
L(横))個のブロックB(I,J)(I=1,2,…K,
J=1,2,…L)に分割し、各ブロックB(I,J)毎に
そのブロックB(I,J)を代表する照度ムラ補正用のγ特
性を設定するようにしている。この場合、ブロックB
(I,J)のサイズ(面積)は略9(=3×3)個の文字が
入るサイズに設定されている。このようにブロックB
(I,J)のサイズを文字数との関係で相対的に設定してい
るのは、ブロック内の画素データを用いてヒストグラム
を作成した場合に、ホワイトボード23に相当する部分
の山Uが適度に急峻な山形となり、その山Uのピーク位
置wを確実に検出できるようにするためである。
In the camera 1 according to the present embodiment, in the case of a normal photographing mode (ie, in the case of front photographing), FIG.
As shown in FIG. 6, the captured image G is vertically and horizontally n (= K (vertical) ×
L (horizontal) blocks B (I, J) (I = 1, 2,... K,
J = 1, 2,... L), and γ characteristics for illuminance unevenness correction representing the block B (I, J) are set for each block B (I, J). In this case, block B
The size (area) of (I, J) is set to a size that can accommodate approximately 9 (= 3 × 3) characters. Thus block B
The reason why the size of (I, J) is relatively set in relation to the number of characters is that when a histogram is created using the pixel data in the block, the peak U of the portion corresponding to the whiteboard 23 has an appropriate size. This is to make it possible to reliably detect the peak position w of the peak U.

【0064】すなわち、図17(a)に示すように、ブ
ロックサイズを文字に対して相対的に小サイズに設定す
ると、ブロックB(I,J)内の文字部分の占める面積が大
きく、ヒストグラムのホワイトボード23に相当する部
分の山Uが低くなるので、山Uのピーク位置wが誤検出
されるおそれがあり、同図(b)に示すように、ブロッ
クサイズを文字に対して相対的に大サイズに設定する
と、ブロックB(I,J)内での照度ムラが大きく、ヒスト
グラムのホワイトボード23に相当する部分の山Uがな
だらかになるので、この場合も山Uのピーク位置wが誤
検出されるおそれがあるからである。
That is, as shown in FIG. 17A, when the block size is set to be relatively small with respect to the character, the area occupied by the character portion in the block B (I, J) is large, and Since the peak U of the portion corresponding to the whiteboard 23 becomes low, the peak position w of the peak U may be erroneously detected. As shown in FIG. If the size is set to a large size, the illuminance unevenness in the block B (I, J) is large, and the peak U of the portion corresponding to the whiteboard 23 of the histogram becomes gentle. This is because it may be detected.

【0065】ブロックサイズを決定するには撮影画面に
投影された文字の大きさを知る必要があるが、撮影画面
に投影された文字の大きさy′はホワイトボード23に
書かれた文字の大きさy及び撮影倍率mからy′=y・
mで算出することができ、しかもホワイトボード23に
書かれる文字の大きさyは個人差があるとはいっても一
定の範囲内にあると考えられるので、ホワイトボード2
3に書かれる文字の大きさyの代表値y0と撮影倍率m
0とを実験的に決定しておけば、撮影画面に投影された
文字の大きさy′は撮影倍率mから一意的に決定するこ
とができる。
In order to determine the block size, it is necessary to know the size of the character projected on the shooting screen. The size y ′ of the character projected on the shooting screen is determined by the size of the character written on the whiteboard 23. Y ′ = y ·
m, and the size y of the characters written on the whiteboard 23 is considered to be within a certain range even though there are individual differences.
The representative value y0 of the character size y written in 3 and the photographing magnification m
If 0 is experimentally determined, the size y ′ of the character projected on the photographing screen can be uniquely determined from the photographing magnification m.

【0066】本実施の形態では、ある撮影倍率m0での
撮影画面に投影された文字の大きさy0に基づいて基準
となるブロックサイズS0を決定しておき、任意の撮影
倍率mにおけるブロックサイズSを撮影倍率m0及びブ
ロックサイズS0からS=S0・m/m0の演算式で算
出するようにしている。従って、ブロックサイズS0の
ブロック内に縦横(i×j)個の画素データが含まれて
いるとすると、ブロックサイズSに含まれる画素データ
の縦方向の個数i′はi・m/m0個、横方向の個数
j′はj・m/m0となる。
In this embodiment, a reference block size S0 is determined based on the size y0 of a character projected on a photographing screen at a certain photographing magnification m0, and the block size S0 at an arbitrary photographing magnification m is determined. Is calculated from the photographing magnification m0 and the block size S0 by an arithmetic expression of S = S0 · m / m0. Therefore, if it is assumed that a block having the block size S0 includes vertical and horizontal (i × j) pixel data, the number i ′ of the pixel data included in the block size S in the vertical direction is i · m / m0, Number in the horizontal direction
j ′ is j · m / m0.

【0067】なお、本実施の形態ではブロック内の文字
数が9個となるように、ブロックサイズSを設定してい
るが、これは一例であって、ホワイトボード23に書か
れる文字の大きさyの代表値y0を変更すれば、ブロッ
ク内の文字数も変化するものである。従って、ブロック
サイズSは代表値y0の設定に応じて適宜、適当な文字
数が含まれるように設定される。
In the present embodiment, the block size S is set so that the number of characters in the block is nine. However, this is an example, and the size y of the character written on the whiteboard 23 is set. Is changed, the number of characters in the block also changes. Therefore, the block size S is appropriately set to include an appropriate number of characters according to the setting of the representative value y0.

【0068】また、本実施の形態では、撮影倍率mに応
じてブロックサイズSを変更するようにしているが、ブ
ロックサイズS0を固定しておき、文字画の撮影におい
ては撮影倍率mがブロックサイズS0に対する所定値m
0となるように調整するようにしてもよい。すなわち、
図18に示すように、ファインダー視野枠42内にブロ
ックサイズS0に相当するブロック枠43を表示させ、
撮影者がこのブロック枠43内のホワイトボード23に
書かれた文字が9個入るように、撮影レンズ2のズーム
比もしくは被写体距離を調整するようにしてもよい。ま
た、ブロック枠43は常時、表示させるようにしてもよ
いが、文字画モードが設定されたときにのみ表示させる
ようにしてもよい。
In the present embodiment, the block size S is changed according to the photographing magnification m. However, the block size S0 is fixed, and in photographing a character image, the photographing magnification m is changed to the block size. Predetermined value m for S0
The adjustment may be made to be zero. That is,
As shown in FIG. 18, a block frame 43 corresponding to the block size S0 is displayed in the finder visual field frame 42,
The photographer may adjust the zoom ratio of the photographing lens 2 or the subject distance so that nine characters written on the whiteboard 23 in the block frame 43 are included. Further, the block frame 43 may be always displayed, or may be displayed only when the character image mode is set.

【0069】更に、上記実施の形態では、設定された各
ブロックB(I,J)について全てヒストグラムを作成し、
このヒストグラムから照度ムラ補正用のγ特性の白色飽
和レベルWを設定するようにしているが、縦方向につい
ては比較的照度ムラが少なく、横方向にのみ照度ムラが
大きい場合は、図19に示すように、撮像画像Gの中央
を通る横方向のブロックB(3,1),B(3,2),…B(3,9)
についてのみヒストグラムを作成してそのヒストグラム
からγ特性の白色飽和レベルWを設定し、他のブロック
B(I,J)(I=1,2,4,5、J=1,2,…9)に
ついては、そのブロックが含まれる列で設定されたブロ
ックB(3,r)で設定されたγ特性を適用するようにして
もよい。例えば第1列目に含まれるブロックB(1,1),
B(2,1),B(4,1),B(5,1)についてはブロックB(3,1)
で設定されたγ特性を適用する。
Further, in the above embodiment, histograms are created for all the set blocks B (I, J),
The white saturation level W of the γ characteristic for illuminance unevenness correction is set from this histogram. FIG. 19 shows the case where the illuminance unevenness is relatively small in the vertical direction and large in the horizontal direction only. B (3,1), B (3,2),... B (3,9) in the horizontal direction passing through the center of the captured image G
, A white saturation level W of the γ characteristic is set from the histogram, and other blocks B (I, J) (I = 1, 2, 4, 5, J = 1, 2,... 9) For, the γ characteristic set in the block B (3, r) set in the column including the block may be applied. For example, block B (1,1) included in the first column,
Block B (3,1) for B (2,1), B (4,1), B (5,1)
Apply the γ characteristic set in.

【0070】逆に縦方向については比較的照度ムラが少
なく、横方向にのみ照度ムラが大きい場合は、図20に
示すように、撮像画像Gの中央を通る縦方向のブロック
B(1,5),B(2,5),…B(5,5)についてのみヒストグラ
ムを作成してそのヒストグラムからγ特性の白色飽和レ
ベルWを設定し、他のブロックB(I,J)(I=1,2,
…5、J=1〜4,6〜9)についてはそのブロックが
含まれる行で設定されたブロックB(r,5)で設定された
γ特性を適用するようにしてもよい。例えば第1行目に
含まれるブロックB(1,1),B(1,2),B(1,3),B(1,
4),B(1,6),B(1,7),B(1,8),B(1,9)についてはブ
ロックB(1,5)で設定されたγ特性を適用する。このよ
うにすると、γ特性の演算時間の短縮及び設定されたγ
特性を記憶するメモリの容量の低減を図ることができ
る。
Conversely, when the illuminance unevenness is relatively small in the vertical direction and is large only in the horizontal direction, as shown in FIG. 20, a vertical block B (1,5, ), B (2,5),..., B (5,5), a histogram is created, a white saturation level W of the γ characteristic is set from the histogram, and other blocks B (I, J) (I = 1 , 2,
.. 5, J = 1 to 4, 6 to 9), the γ characteristic set in the block B (r, 5) set in the row including the block may be applied. For example, blocks B (1,1), B (1,2), B (1,3), B (1,1) included in the first row
4), B (1,6), B (1,7), B (1,8), B (1,9) apply the γ characteristic set in the block B (1,5). In this way, the calculation time of the γ characteristic can be reduced and the set γ
The capacity of the memory for storing the characteristics can be reduced.

【0071】また、上記実施の形態では、撮像画像G全
体をマトリックス状に均等に分割してブロックB(I,J)
を連続的に設定しているが、図21に示すように、撮像
画面G内に複数のブロックB(I,J)を離散的に設定する
ようにしてもよい。このようにすると、ブロック数が少
なくなるので、上記例と同様にγ特性設定のための演算
時間を短縮することができるとともに、演算されたγ特
性を記憶するためのメモリの容量を低減することができ
る。
Further, in the above embodiment, the entire captured image G is equally divided into a matrix and divided into blocks B (I, J).
Are set continuously, but a plurality of blocks B (I, J) may be set discretely in the imaging screen G as shown in FIG. In this manner, the number of blocks is reduced, so that the calculation time for setting the γ characteristic can be reduced as in the above example, and the capacity of the memory for storing the calculated γ characteristic can be reduced. Can be.

【0072】次に、緑色成分の画素データのヒストグラ
ムから照度ムラ補正用のγ特性を決定する方法について
説明する。
Next, a method for determining a γ characteristic for correcting uneven illuminance from a histogram of pixel data of a green component will be described.

【0073】ブロックB(I,J)内に含まれる(i×j)
個の画素データg(1,1),g(1,2),…g(i-1,j),g(i,
j)の内、最大レベルから低レベル側に積算して予め設定
されたX(%)分の画素データを除去し、残りの画素デ
ータを用いてレベル分布のヒストグラムが作成される。
例えばブロック内に含まれる総画素データ数を1000
0個とし、X=3%とすると、最大レベルqの画素デー
タから低レベル側に順次、積算して得られる300個の
画素データを除去し、残りの9700個の画素データを
用いてヒストグラムが作成される。ハイレベル側のX%
の画素データを除去するのは、ノイズ等の悪影響を回避
するためである。
(I × j) included in block B (I, J)
Pixel data g (1,1), g (1,2),... G (i-1, j), g (i,
In j), pixel data of X (%) set in advance is removed by integrating from the maximum level to the low level side, and a histogram of a level distribution is created using the remaining pixel data.
For example, if the total number of pixel data contained in a block is 1000
Assuming that there are no pixel data and X = 3%, 300 pixel data obtained by integrating sequentially from the pixel data at the maximum level q to the low level side is removed, and a histogram is formed using the remaining 9700 pixel data. Created. X% on high level
The reason for removing the pixel data is to avoid adverse effects such as noise.

【0074】このヒストグラムは、一般に、図22に示
すように二山分布となり、ハイレベル側の山Uはホワイ
トボード23の下地部分に相当し、ローレベル側の山C
は文字部分に相当している。なお、同図における階級p
はブロックB(I,J)内に含まれる画素データの内の最大
レベルであり、階級q(<p)はヒストグラムの階級の
最大値である。
This histogram generally has a two-peak distribution as shown in FIG. 22. The high-level peak U corresponds to the background portion of the whiteboard 23, and the low-level peak C
Is equivalent to the character part. The class p in FIG.
Is the maximum level of the pixel data included in the block B (I, J), and the class q (<p) is the maximum value of the class of the histogram.

【0075】ヒストグラムが作成されると、最大階級p
から低レベル側に予め設定された範囲dに含まれる分布
内で最も頻度の高い階級wが算出され、この階級wが照
度ムラ補正用のγ特性の白色飽和レベルWに設定され
る。上記範囲dは、ブロックサイズが文字数との関係で
所定サイズに設定されているので、通常の照度で撮影さ
れているブロックであれば、ハイレベル側の山Uのみが
確実に含まれると推定される範囲である。例えば画素デ
ータが8ビットで、0〜255の階調を有している場
合、上記範囲dはおよそ48程度に設定される。
When the histogram is created, the maximum class p
, The class w having the highest frequency in the distribution included in the range d set in advance to the low level is calculated, and this class w is set as the white saturation level W of the γ characteristic for illuminance unevenness correction. Since the block size is set to a predetermined size in relation to the number of characters in the range d, it is estimated that only the high-level mountain U is surely included in a block photographed with normal illuminance. Range. For example, when the pixel data is 8 bits and has a gradation of 0 to 255, the range d is set to about 48.

【0076】従って、例えば最大階級qが200であれ
ば、階級範囲152〜200内で最大頻度を有する階級
wが算出され、この階級wが、例えばw=180であれ
ば、白色飽和レベルW=180に設定され、図23に示
すようなγ特性が決定される。
Therefore, for example, if the maximum class q is 200, a class w having the maximum frequency within the class range 152 to 200 is calculated. If the class w is, for example, w = 180, the white saturation level W = 180, and the γ characteristic as shown in FIG. 23 is determined.

【0077】ところで、ホワイトボード23が完全に白
色でなく、僅かに色が着いていたり、カメラ1のホワイ
トバランス調整が不適切であると、照度ムラ補正用のγ
特性と黒色強調用のγ特性とに従って行なわれるガンマ
補正の等価的なγ特性のγ値は比較的大きいので、緑色
成分の画素データを用いて設定された照度ムラ補正用の
γ特性を赤色成分の画素データ及び青色成分の画素デー
タのガンマ補正に適用することはできない。
If the whiteboard 23 is not completely white and slightly colored, or if the white balance adjustment of the camera 1 is improper, the γ for correcting unevenness of illuminance is used.
Since the gamma value of the equivalent gamma characteristic of the gamma correction performed according to the characteristic and the gamma characteristic for black enhancement is relatively large, the gamma characteristic for illumination unevenness correction set using the pixel data of the green component is changed to the red component. It cannot be applied to gamma correction of pixel data of blue and pixel data of blue component.

【0078】すなわち、ホワイトボード23のある領域
での撮影データが完全に白色でなく、R,G,Bの各色
成分の画素データのレベルDR,DG,DBが、例えば
(DR,DG,DB)=(130,140,125)であ
り、緑色成分の画素データを用いて設定された照度ムラ
補正用のγ特性と黒色強調用のγ特性との等価的なγ特
性(両γ特性を重ね合わせたγ特性)が、例えば図24
のように設定された場合、このγ特性を用いて赤色成分
の画素データ及び青色成分の画素データのガンマ補正を
行なうと、各色成分の出力は、同図に示すように、(D
R,DG,DB)=(185,255,140)となり、
ガンマ補正後の画像は黄緑色に大きく色ずれを起こすこ
とになる。
That is, the photographing data in a certain area of the whiteboard 23 is not completely white, and the levels D R , D G , and D B of the pixel data of each of the R, G, and B color components are, for example, (D R , D G , D B ) = (130, 140, 125), and the equivalent γ characteristic of the γ characteristic for illuminance unevenness correction and the γ characteristic for black enhancement set using the pixel data of the green component ( The γ characteristic obtained by superimposing both γ characteristics) is shown in FIG.
When the gamma correction is performed on the pixel data of the red component and the pixel data of the blue component using the γ characteristic, the output of each color component becomes (D) as shown in FIG.
R , D G , D B ) = (185, 255, 140)
The image after the gamma correction causes a large color shift in yellow-green.

【0079】図24に示すγ特性のγ値が小さければ
(傾斜が緩やかであれば)、ガンマ補正後の各色成分の
出力差は小さいので、色ずれは殆ど問題にならないが、
文字画モードに適用されるγ特性は2値化処理に近いガ
ンマ補正を行なうものであるため、γ値が比較的大きく
設定されるため、緑色成分の画素データを用いて設定さ
れたγ特性を赤色成分の画素データ及び青色成分の画素
データのガンマ補正に適用することは困難となる。
If the γ value of the γ characteristic shown in FIG. 24 is small (if the inclination is gentle), the output difference between the respective color components after the gamma correction is small, so that the color misregistration hardly causes a problem.
Since the γ characteristic applied to the character image mode is for performing gamma correction close to the binarization process, the γ value is set relatively large, so that the γ characteristic set using the green component pixel data is used. It is difficult to apply gamma correction to pixel data of red component and pixel data of blue component.

【0080】上記のような白色部分の着色現象を回避す
る方法として、R,G,Bの各色成分の画素データを輝
度データと色差データとに変換し、輝度データのみでガ
ンマ補正を行なった後、再度、R,G,Bの色成分の画
素データに逆変換する方法が考えられるが、この方法で
は色差データが保存されるため、例えばホワイトボード
上に書かれた文字がインクの掠れた薄い色の文字である
場合はガンマ補正後もその文字の薄い状態が残り、薄い
文字を明瞭に再現することは困難となる。
As a method of avoiding the above-described coloring phenomenon of the white portion, pixel data of each of the R, G, and B color components is converted into luminance data and color difference data, and gamma correction is performed using only the luminance data. Again, a method of reverse conversion to pixel data of R, G, B color components is conceivable. However, in this method, since color difference data is stored, for example, characters written on a white board are thinned with ink. If the character is a color character, the character remains faint even after gamma correction, and it is difficult to clearly reproduce the faint character.

【0081】本実施の形態では、緑色成分の画素データ
により設定された照度ムラ補正用のγ特性を補正して各
色成分に専用のγ特性を設定し、各色成分毎に専用のγ
特性でガンマ補正することにより薄い色の文字であって
も明瞭に再現することができるようにしている。
In the present embodiment, the gamma characteristic for illuminance unevenness correction set by the pixel data of the green component is corrected to set a dedicated gamma characteristic for each color component, and a dedicated gamma characteristic is set for each color component.
By performing gamma correction on the characteristics, even light-colored characters can be clearly reproduced.

【0082】なお、各色成分に対するγ特性は、例えば
レベルの余裕値を「5」とし、入力レベル(DR−5,
G−5,DB−5)が白色飽和レベルとなるように、各
色成分の画素データを用いて設定される。例えば図24
に示すγ特性の例では、図25(a)〜(c)に示すよ
うに、R,G,Bの各色成分の入力レベル(125,1
35,120)が白色飽和レベル255となるように、
R,G,Bの各色成分のγ特性が設定される。
The gamma characteristic for each color component is, for example, a level margin value of "5" and an input level (D R -5,
D G -5, D B -5) are formed so that white saturation level is set using the pixel data of each color component. For example, FIG.
In the example of the γ characteristic shown in FIG. 25, as shown in FIGS. 25A to 25C, the input level (125, 1) of each of the R, G, and B color components
35, 120) becomes the white saturation level 255,
The γ characteristics of each of the R, G, and B color components are set.

【0083】なお、着色された白地部分を白色となるよ
うに、ガンマ補正するため、着色部分は本来の色よりず
れることになるが、文字画では色の再現性より情報性が
重視されるので、多少の色ずれは許容されるものと考え
られる。
The gamma correction is performed so that the colored white portion becomes white, so that the colored portion is shifted from the original color. However, in character images, information is more important than color reproducibility. It is considered that some color misregistration is acceptable.

【0084】また、上記説明では、ブロック内に含まれ
る画素データのレベル分布のヒストグラムを作成し、こ
のヒストグラムを用いて白色飽和レベルを決定する(す
なわち、γ特性を設定する)ようにしているが、ヒスト
グラムの代りに画素データの演算によってγ特性を設定
するようにしてもよい。
In the above description, a histogram of the level distribution of the pixel data included in the block is created, and the white saturation level is determined using the histogram (ie, the γ characteristic is set). Alternatively, the γ characteristic may be set by calculating pixel data instead of the histogram.

【0085】さて、上述の方法により各ブロックB(I,
J)毎に照度ムラ補正用のγ特性を設定し、このγ特性を
用いてブロック単位で画像のガンマ補正を行なうと、ブ
ロック毎に照度ムラ補正用のγ特性が異なるので、ブロ
ックの境界で画質が急変し、これによって境界線(偽
線)が生じるおそれがある。すなわち、ブロックの境界
で白地レベルが急変し、この白地レベルの不連続が境界
線として生じるおそれがある。
Now, each block B (I,
J) A gamma characteristic for illuminance non-uniformity correction is set for each block, and the gamma correction of the image is performed in block units using the γ characteristic. The image quality changes suddenly, which may cause a boundary line (false line). That is, the level of the white background suddenly changes at the boundary of the block, and this discontinuity in the level of the white background may occur as a boundary line.

【0086】そこで、本実施の形態では、各ブロックB
(I,J)毎に設定された照度ムラ補正用のγ特性をそのブ
ロックB(I,J)の中心位置の画素データに対するγ特性
とし、隣接するブロックの中心位置間の画素データに対
する照度ムラ補正用のγ特性を両ブロックの照度ムラ補
正用のγ特性を用いで線形補間し、この線形補間したγ
特性で中心位置以外の画素データをガンマ補正すること
によりブロック間のγ特性の相違に基づく画質の不連続
を緩和するようにしている。
Therefore, in this embodiment, each block B
The gamma characteristic for illuminance unevenness correction set for each (I, J) is defined as the γ characteristic for the pixel data at the center position of the block B (I, J), and the illuminance unevenness for the pixel data between the center positions of the adjacent blocks. The γ characteristic for correction is linearly interpolated using the γ characteristic for illuminance unevenness correction of both blocks, and the linearly interpolated γ characteristic
By performing gamma correction on pixel data other than the center position in characteristics, discontinuity in image quality based on differences in γ characteristics between blocks is reduced.

【0087】すなわち、図26に示すように、ブロック
B(I,J),B(I,J+1),B(I+1,J),B(I+1,J+1)の各中心
位置をA,B,C,Dとすると、ABCDで囲まれた領
域AR1内の任意の位置Pに対する照度ムラ補正用のγ
特性を、ブロックB(I,J),B(I,J+1),B(I+1,J),B
(I+1,J+1)毎に設定された照度ムラ補正用のγ特性を用
いて線形補間し、この補間したγ特性を用いて位置Pの
画素データのガンマ補正が行なわれる。
That is, as shown in FIG. 26, each of the blocks B (I, J), B (I, J + 1), B (I + 1, J), and B (I + 1, J + 1) Assuming that the center positions are A, B, C, and D, γ for illuminance unevenness correction with respect to an arbitrary position P in an area AR1 surrounded by ABCD.
The characteristics are represented by blocks B (I, J), B (I, J + 1), B (I + 1, J), B
Linear interpolation is performed using the γ characteristic for illuminance unevenness set for each (I + 1, J + 1), and gamma correction of the pixel data at the position P is performed using the interpolated γ characteristic.

【0088】位置Pに対する補間された照度ムラ補正用
のγ特性は、ブロックB(I,J),B(I,J+1),B(I+1,
J),B(I+1,J+1)についてそれぞれ算出された白色飽和
レベルWA,WB,WC,WDは位置A,B,C,Dに対す
るものとして扱われるので、これらの白色飽和レベルW
A,WB,WC,WDから位置A,B,C,Dに対して位置
Pに内分する値WPを下記(1)式により算出して設定
される。
The interpolated γ characteristics for illuminance unevenness correction with respect to the position P are represented by blocks B (I, J), B (I, J + 1), B (I + 1,
J) and B (I + 1, J + 1), the calculated white saturation levels W A , W B , W C , and W D are treated as for positions A, B, C, and D. White saturation level W
A value W P which is internally divided into the position P from the positions A , W B , W C and W D with respect to the positions A, B, C and D is calculated and set by the following equation (1).

【0089】[0089]

【数1】 (Equation 1)

【0090】なお、上記内分法では撮像画像の周辺に位
置するブロックB(1,1)〜B(1,L),B(2,L)〜B(K,L),
B(K,L-1)〜B(K,1),B(K-1,1)〜B(2,1)において、各
ブロックの中心位置より外側の部分のγ特性が補間され
ないが、この部分については外分法によりγ特性の線形
補間を行なうようにすればよい。
In the above internal division method, blocks B (1,1) to B (1, L), B (2, L) to B (K, L),
In B (K, L-1) to B (K, 1) and B (K-1,1) to B (2,1), the gamma characteristic of the portion outside the center position of each block is not interpolated. For this portion, linear interpolation of the γ characteristic may be performed by the external division method.

【0091】また、各ブロックB(I,J)の中心位置を除
く全ての位置についてγ特性を補間してもよいが、各ブ
ロックB(I,J)の中心位置以外の部分を複数の画素デー
タ(例えば4×4画素乃至6×6画素等)が含まれるブ
ロックに分割し、このブロック単位でγ特性を線形補間
するようにして補間演算の時間を短縮するようにしても
よい。
The γ characteristic may be interpolated at all positions except the center position of each block B (I, J). The block may be divided into blocks containing data (for example, 4 × 4 pixels to 6 × 6 pixels), and the γ characteristic may be linearly interpolated on a block-by-block basis to reduce the time for the interpolation operation.

【0092】なお、上述の照度ムラ補正用のγ特性の補
間処理は、各画素位置についてγ特性を設定しているの
で、各画素位置を中心とするブロックを設定し、そのブ
ロックに含まれる画素データのレベル分布のヒストグラ
ムを用いてγ特性を設定しても同様の結果が得られる
が、この方法は、撮像画像Gに非常に沢山のブロックが
設定されるため、γ特性の演算に長時間を要する欠点が
ある。また、隣接するブロック間では画素データの殆ど
が重複するため、作成されたヒストグラムに殆ど差異が
見られないため、両ブロックについてそれぞれヒストグ
ラムを作成する実益もないので、本実施の形態では、よ
り高速演算が可能で、しかもメモリ容量の低減が可能な
γ特性の線形補間処理を採用している。
In the above-described interpolation processing of the γ characteristic for illuminance unevenness correction, since the γ characteristic is set for each pixel position, a block centering on each pixel position is set, and the pixels included in the block are set. A similar result can be obtained by setting the γ characteristic using the histogram of the data level distribution. However, this method requires a long time to calculate the γ characteristic because a large number of blocks are set in the captured image G. There is a disadvantage that requires. Further, since almost all of the pixel data overlaps between adjacent blocks, there is almost no difference in the created histogram, and there is no benefit in creating histograms for both blocks. It employs linear interpolation processing of γ characteristics that can perform calculations and can reduce the memory capacity.

【0093】図12はカラー画像の画像処理を行なうた
めのA/D変換器321〜第1,第2γ補正部325,
326までの構成を示すブロック構成図である。
FIG. 12 shows A / D converters 321 to first and second γ correction sections 325 for performing image processing of a color image.
326 is a block diagram showing the configuration up to 326. FIG.

【0094】画像メモリ322、第1γ特性設定部32
3、第1,第2γ補正部325,326及びスイッチ回
路327はそれぞれR,G,Bの各色成分の画素データ
に対応して3個の同一構造の処理回路を有している。
Image memory 322, first γ characteristic setting unit 32
3. The first and second γ correction units 325 and 326 and the switch circuit 327 have three processing circuits having the same structure corresponding to the pixel data of each of the R, G, and B color components.

【0095】例えばRの色成分の画素信号はA/D変換
器321Aで画素データにA/D変換された後、画像メ
モリ322Aに一時的に記録される。自然画モードにお
いては、画像メモリ322Aに記憶されたRの色成分の
画素データはスイッチ回路327を介して第1γ補正部
325Aに読み出され、所定の自然画用のγ特性を用い
てガンマ補正が行なわれる。
For example, the pixel signal of the R color component is A / D converted into pixel data by the A / D converter 321A, and then temporarily recorded in the image memory 322A. In the natural image mode, the pixel data of the R color component stored in the image memory 322A is read out to the first γ correction unit 325A via the switch circuit 327, and the gamma correction is performed using the predetermined natural image γ characteristic. Is performed.

【0096】一方、文字画モードにおいては、第1γ特
性設定部323Aによりブロック毎に各ブロックに含ま
れるRの画素データのレベル分布のヒストグラムから照
度ムラ補正用のγ特性が設定され、第2γ特性設定部3
24により黒色濃度調整スイッチ17の調整値に基づき
黒色調整用のγ特性が設定される。そして、画像メモリ
322Aに記憶されたRの色成分の画素データはスイッ
チ回路327を介して第2γ補正部326Aに読み出さ
れ、ブロック毎に照度ムラ補正用のγ特性を持ついてガ
ンマ補正が行なわれた後、黒色濃度調整用のγ特性を用
いてガンマ補正が行なわれる。
On the other hand, in the character image mode, the γ characteristic for illuminance unevenness correction is set by the first γ characteristic setting section 323A from the histogram of the level distribution of the R pixel data included in each block, and the second γ characteristic is set. Setting part 3
24 sets the γ characteristic for black adjustment based on the adjustment value of the black density adjustment switch 17. Then, the pixel data of the R color component stored in the image memory 322A is read out to the second γ correction unit 326A via the switch circuit 327, and each block has a γ characteristic for illuminance unevenness correction and performs gamma correction. After that, gamma correction is performed using the gamma characteristic for adjusting black density.

【0097】G,Bの各色成分の画素信号についても上
述のRの色成分の画素信号と同様に進行処理が行なわれ
る。
The pixel signal of each of the G and B color components is processed in the same manner as the pixel signal of the R color component.

【0098】また、図13は、Gの色成分に対する第1
γ特性設定部323Bの内部構成を示すブロック図であ
る。同図において、ブロックサイズ設定部323aは撮
像画像を小画像のブロックB(I,J)に分割するためのブ
ロックサイズを設定するものである。ブロックサイズ設
定部323aは、撮像画像をブロック分割するために、
CPU30から入力される撮影画面中央の撮影倍率mと
予め設定された基準サイズS0及び基準撮影倍率m0と
を用いてブロックサイズSを設定する。
FIG. 13 shows the first color component of G.
FIG. 13 is a block diagram illustrating an internal configuration of a γ characteristic setting unit 323B. In the figure, a block size setting unit 323a sets a block size for dividing a captured image into small image blocks B (I, J). The block size setting unit 323a is configured to divide the captured image into blocks.
The block size S is set using the photographing magnification m at the center of the photographing screen input from the CPU 30 and the preset reference size S0 and reference photographing magnification m0.

【0099】アドレス生成部323bはブロックサイズ
設定部323aで設定されたブロックサイズSに基づい
て各ブロックB(I,J)に含まれる画素データのアドレス
を生成するものである。このアドレスデータはCCD2
1からの画素信号に読出し及びA/D変換器321での
A/D変換に用いられるとともに、白色飽和レベル補間
演算部323eにおける補間演算に用いられる。
The address generator 323b generates an address of the pixel data included in each block B (I, J) based on the block size S set by the block size setting unit 323a. This address data is stored in the CCD2
The A / D converter 321 reads out the pixel signal from No. 1 and uses it for A / D conversion, and also uses the white saturation level interpolation calculation unit 323e for interpolation calculation.

【0100】ヒストグラム作成部323cは各ブロック
B(I,J)毎にそのブロックに含まれる画素データのレベ
ル分布のヒストグラム(図22参照)を作成するもので
ある。白色飽和レベル設定部323dはヒストグラム作
成部323cで作成されたヒストグラムを用いて各ブロ
ックB(I,j)の中心位置に対するγ特性の白色飽和レベ
ルW(図23参照)を設定するものである。白色飽和レ
ベル補間演算部323eはブロックB(I,j)毎に設定さ
れたγ特性の白色飽和レベルWを用いて各ブロックB
(I,j)の中心位置以外の部分に対するγ特性の白色飽和
レベルWを補間設定するものである。
The histogram creating section 323c creates a histogram (see FIG. 22) of the level distribution of the pixel data contained in each block B (I, J). The white saturation level setting unit 323d sets the white saturation level W of the γ characteristic with respect to the center position of each block B (I, j) using the histogram created by the histogram creation unit 323c (see FIG. 23). The white saturation level interpolation calculator 323e uses the white saturation level W of the γ characteristic set for each block B (I, j) to
The white saturation level W of the γ characteristic for the portion other than the center position of (I, j) is set by interpolation.

【0101】γ特性設定部323fは白色飽和レベル設
定部323d及び白色飽和レベル補間演算部323eに
より設定された白色飽和レベルWを用いて撮像画像の各
画素データに対する照度ムラ補正用のγ特性を設定する
ものである。
The γ-characteristic setting unit 323f sets the γ-characteristic for illuminance unevenness correction for each pixel data of the captured image using the white saturation level W set by the white saturation level setting unit 323d and the white saturation level interpolation calculation unit 323e. Is what you do.

【0102】正反射検出部323gは、正反射警告スイ
ッチ20により正反射警告が指示されているとき、ブロ
ック単位で撮影画像に主被写体で正反射された照明光の
画像が含まれるか否かを判別し、正反射光の画像を含む
撮影画像を検出するものである。正反射検出部323g
はブロック毎に作成されたヒストグラムの形状に基づい
て各ブロックB(I,J)内に正反射光の画像が含まれるか
否かを判別する。
When the specular reflection warning switch 20 has instructed the specular reflection warning, the specular reflection detection unit 323g determines whether the captured image includes an image of the illumination light specularly reflected by the main subject in block units. This is to determine and detect a photographed image including a specularly reflected light image. 323g regular reflection detector
Determines whether or not each block B (I, J) contains an image of specularly reflected light based on the shape of the histogram created for each block.

【0103】すなわち、ホワイトボード23に書かれた
文字、図形等の文字情報が撮影された際、天井灯や窓外
からの太陽光等の照明光がホワイトボード23で正反射
されていると、正反射光を受光した画素からは飽和レベ
ルの画素データが出力されるので、正反射光の画像を含
むブロックではホワイトボード23の画像を構成する画
素データの大部分は飽和レベルの画素データとなってい
る。このため、このブロックに対するヒストグラムの形
状は、図27に示すように、ホワイトボード23に相当
する山Uの最大頻度を有する階級wが最大階級pに略一
致したものとなる。
That is, when character information such as characters and figures written on the whiteboard 23 is photographed, if illumination light such as sunlight from a ceiling light or the outside of a window is specularly reflected by the whiteboard 23, Since the pixel data having received the specular reflected light outputs the pixel data of the saturation level, in the block including the image of the specular reflection light, most of the pixel data constituting the image of the whiteboard 23 is the pixel data of the saturation level. ing. Therefore, as shown in FIG. 27, the shape of the histogram for this block is such that the class w having the maximum frequency of the mountain U corresponding to the whiteboard 23 substantially matches the maximum class p.

【0104】正反射検出部323gは、照度ムラ補正用
のγ特性における白色飽和レベルWの設定方法と同様の
方法でヒストグラムのホワイトボード23に相当する山
Uの最大頻度を有する階級wを算出するとともに、この
算出結果と最大階級pとを比較し、階級wが最大階級p
と略一致する場合は、そのブロックに正反射光の画像が
含まれていると判別する。そして、この判別結果をCP
U30に出力する。
The specular reflection detecting section 323g calculates the class w having the maximum frequency of the mountain U corresponding to the whiteboard 23 of the histogram in the same manner as the method of setting the white saturation level W in the γ characteristic for correcting the illuminance unevenness. In addition, the calculation result is compared with the maximum class p, and the class w is changed to the maximum class p.
When it substantially matches, it is determined that the block includes an image of specularly reflected light. Then, the result of this determination is
Output to U30.

【0105】CPU30は正反射検出部323gの判別
結果に応じてブザー16を発音し、また、LED表示2
4を点灯して正反射光を含む撮影画像であることの警告
を行なう。
The CPU 30 sounds the buzzer 16 in accordance with the result of the discrimination by the specular reflection detection section 323g,
4 is turned on to warn that the captured image contains specularly reflected light.

【0106】なお、R,Bの色成分に対する第1γ特性
設定部323A,323Cは正反射検出部323gを除
いてGの色成分に対する第1γ特性設定部323Bと同
一の内部構成を有している。
The first γ characteristic setting sections 323A and 323C for the R and B color components have the same internal configuration as the first γ characteristic setting section 323B for the G color component except for the regular reflection detection section 323g. .

【0107】図11に戻り、カード駆動部33は画像デ
ータを記録するべくハードディスクカード13の駆動を
制御するものである。発光制御部34はフラッシュ7の
発光を制御するものである。また、LCD駆動部35は
CPU30からの制御信号に基づき撮像画像のLCD表
示部19へのモニター表示を制御するものである。メモ
リ36はCPU30で演算された各種データを記憶する
ものである。
Returning to FIG. 11, the card drive unit 33 controls the drive of the hard disk card 13 to record image data. The light emission control unit 34 controls light emission of the flash 7. The LCD drive unit 35 controls a monitor display of a captured image on the LCD display unit 19 based on a control signal from the CPU 30. The memory 36 stores various data calculated by the CPU 30.

【0108】レンズ駆動部37はCPU30から入力さ
れるAF制御値に基づき撮影レンズ2の合焦動作を制御
するものである。また、ズーム駆動部38はCPU30
から入力される駆動信号に基づき撮影レンズ2のズーム
動作を制御するものである。絞り駆動部39はCPU3
0から入力される露出制御値の絞り値Avに基づき絞り
22の開口量を制御するものである。
The lens driving section 37 controls the focusing operation of the taking lens 2 based on the AF control value input from the CPU 30. Further, the zoom drive unit 38 is provided with
The zoom operation of the photographing lens 2 is controlled based on the drive signal input from the camera. The aperture driving unit 39 is a CPU 3
The aperture of the aperture 22 is controlled based on the aperture value Av of the exposure control value input from 0.

【0109】測光部40は測光窓3の後方位置に設けら
れたSPC等の受光素子からなり、被写体の輝度を測光
するものである。測距部41は被写体距離を検出するも
ので、投光窓4の後方位置に設けられ、赤外光を発光す
る投光部411と、受光窓5の後方位置に設けられ、被
写体で反射した赤外光を受光する受光部412とからな
る。
The photometric section 40 is composed of a light receiving element such as an SPC provided at a position behind the photometric window 3 and measures the luminance of the subject. The distance measuring unit 41 detects the subject distance, and is provided at a position behind the light projecting window 4, and is provided at a position behind the light projecting unit 411 that emits infrared light and the light receiving window 5, and reflected by the subject. A light receiving section 412 for receiving infrared light.

【0110】CPU30はカメラの撮影動作を集中制御
するものである。CPU30は撮影倍率演算部301を
有し、測距部41で検出された測距点(CCD21の撮
像面の中央位置A)における被写体距離DA及びその測
距点における撮影倍率mAを演算する。また、CPU3
0は露出制御値演算部302を有し、測光部40で検出
された被写体の輝度情報に基づき露出制御値(絞り値A
v、シャッタースピードTv)を演算し、その演算結果
をそれぞれ絞り駆動部39とCCD駆動部31とに出力
する。また、CPU30はAF制御値演算部303を有
し、測距部41で検出された被写体距離DAに基づき撮
影レンズ2を合焦位置に設定するためのレンズ駆動量を
演算し、その演算結果をAF制御値としてレンズ駆動部
37に出力する。
The CPU 30 centrally controls the photographing operation of the camera. CPU30 has an imaging magnification calculator 301 calculates the photographing magnification m A in object distance D A and its distance measuring point in the detected distance measuring point in the distance measurement unit 41 (the center position A of the imaging surface of the CCD 21) . CPU3
Reference numeral 0 denotes an exposure control value calculation unit 302, which controls an exposure control value (aperture value A) based on luminance information of a subject detected by the photometry unit 40.
v, shutter speed Tv), and outputs the calculation results to the aperture drive unit 39 and the CCD drive unit 31, respectively. Further, CPU 30 has an AF control value calculation unit 303, a photographing lens 2 based on the detected object distance D A distance measuring unit 41 calculates the lens driving amount for setting the in-focus position, the calculation result Is output to the lens drive unit 37 as an AF control value.

【0111】次に、上記カメラ1の撮影制御について、
図28〜図31のフローチャートを用いて説明する。な
お、撮影/再生スイッチ12は撮影側に設定されている
ものとする。また、カメラ1が起動し、シャッタボタン
10によりS1スイッチがONになると、CCD21に
より所定の周期で被写体像の取込み及び画像処理が行な
われ、S2スイッチがONになると、この後に取り込ま
れた画像が所定の画像処理を経てハードディスクカード
13に記録される。
Next, regarding the photographing control of the camera 1,
This will be described with reference to the flowcharts in FIGS. It is assumed that the shooting / playback switch 12 is set to the shooting side. Further, when the camera 1 is activated and the S1 switch is turned on by the shutter button 10, capture of the subject image and image processing are performed by the CCD 21 at a predetermined cycle, and when the S2 switch is turned on, the image captured thereafter is displayed. The data is recorded on the hard disk card 13 through predetermined image processing.

【0112】メインスイッチ14をオンにし、カメラ1
を起動すると、撮影可能の状態となる。この状態でズー
ムスイッチ11が操作されると(#2でYES)、その
操作方向及び操作量に応じて撮影レンズ2内のズームレ
ンズが駆動され、ズーム比が変更される(#4)。この
後、シャッタボタン10が半押しされ、S1スイッチが
オンになると(#6でYES)、ステップ#8に移行
し、撮影準備のための処理が行なわれる。
When the main switch 14 is turned on, the camera 1
Is activated, the camera is ready for shooting. When the zoom switch 11 is operated in this state (YES in # 2), the zoom lens in the photographing lens 2 is driven according to the operation direction and the operation amount, and the zoom ratio is changed (# 4). Thereafter, when the shutter button 10 is half-pressed and the S1 switch is turned on (YES in # 6), the process shifts to step # 8, and processing for photographing preparation is performed.

【0113】すなわち、まず、測距部41により被写体
距離DAが検出される(#8)。測距部41は投光部4
11から被写体に向けて測距用の赤外光を投光し、その
赤外光の被写体からの反射光を受光部412で受光して
測距用のデータを取り込み、このデータを用いて撮像画
面中央における撮像面から被写体までの距離DAを算出
する。続いて、算出された被写体距離DAに基づいて撮
影レンズ2を合焦位置に設定するためのレンズ駆動量が
演算される(#10)。
[0113] That is, first, the object distance D A is detected by the distance measuring unit 41 (# 8). The distance measuring unit 41 is the light emitting unit 4
11 emits infrared light for distance measurement toward the object, receives the reflected light of the infrared light from the object at the light receiving unit 412, captures the data for distance measurement, and uses this data to capture an image. calculates a distance D a from the imaging surface to the subject in the center of the screen. Subsequently, the lens driving amount for setting imaging lens 2 to an in-focus position based on the calculated object distance D A is calculated (# 10).

【0114】続いて、正反射警告スイッチ20により正
反射警告が指示されているか否かが判別され(#1
2)、正反射警告が指示されていれば(#12でYE
S)、ステップ#14〜#20で正反射警告処理が行な
われ、正反射警告が指示されていなければ(#12でN
O)、ステップ#14〜#20はスキップされ、正反射
警告処理は行なわれない。
Subsequently, it is determined whether or not a regular reflection warning is instructed by the regular reflection warning switch 20 (# 1).
2) If a specular reflection warning is instructed (YE in # 12)
S), regular reflection warning processing is performed in steps # 14 to # 20, and if a regular reflection warning is not instructed (N in # 12)
O), Steps # 14 to # 20 are skipped, and the regular reflection warning process is not performed.

【0115】正反射警告処理では、まず、被写体距離D
A及び撮影レンズ2の焦点距離fから撮影画面中央の撮
影倍率mA(=a・f/DA,a;比例係数)が算出され
(#14)、続いて、図31に示すサブルーチン「正反
射光検出」のフローチャートに従って撮影画像内の正反
射光の画像の検出が行なわれる(#16)。
In the regular reflection warning process, first, the subject distance D
From A and the focal length f of the photographic lens 2, a photographic magnification m A (= a · f / D A , a; proportional coefficient) at the center of the photographic screen is calculated (# 14), and then the subroutine “Positive” shown in FIG. In accordance with the flowchart of "reflection light detection", an image of specular reflection light in the captured image is detected (# 16).

【0116】撮影画像内の正反射光の画像の検出は、ま
ず、撮影倍率mAと予め設定された基準の撮影倍率m0
及びブロックサイズS0とを用いて撮像画像をブロック
分割するためのブロックサイズS(=S0・mA/m
0)が算出され(#70)、更に、このブロックサイズ
Sと撮像面のサイズとから分割されるブロック数nが算
出される(#72)。
The detection of the image of the specularly reflected light in the photographed image is performed by first detecting the photographing magnification m A and a preset reference photographing magnification m 0.
And a block size S (= S0 · m A / m) for dividing the captured image into blocks using the block size S0 and the block size S0.
0) is calculated (# 70), and the number n of blocks to be divided is calculated from the block size S and the size of the imaging surface (# 72).

【0117】続いて、ブロック数をカウントするカウン
タMが「1」に設定される(#74)。なお、正反射光
検出処理におけるブロックの順番は、図16に示すブロ
ック分割においてラスター方向に行なうようにしている
ので、M=L・(I−1)+Jとなり、ブロックB(I,
J)はブロックB(L・(I-1)+J)に対応している。
Subsequently, the counter M for counting the number of blocks is set to "1"(# 74). Since the order of the blocks in the regular reflection light detection processing is performed in the raster direction in the block division shown in FIG. 16, M = L · (I−1) + J, and the block B (I,
J) corresponds to the block B (L · (I−1) + J).

【0118】続いて、ブロックB(M)内に含まれる全画
素データが全て読み出され(#76)、これらの画素デ
ータの内、ハイレベル側のX%を除いた画素データを用
いて図22もしくは図27に示すようなヒストグラムが
作成される(#78)。続いて、ヒストグラムの白地部
分に対応する山Uのピーク値に対応する階級wが算出さ
れ(#80)、この階級wがヒストグラムの最大階級p
(=255)に略一致しているか否かが判別される(#
82)。
Subsequently, all the pixel data contained in the block B (M) are read out (# 76), and the pixel data obtained by excluding the high-level X% of these pixel data is shown in FIG. A histogram as shown in FIG. 22 or FIG. 27 is created (# 78). Subsequently, a class w corresponding to the peak value of the mountain U corresponding to the white background portion of the histogram is calculated (# 80), and this class w is used as the maximum class p of the histogram.
(= 255) or not (##).
82).

【0119】階級wが最大階級pに略一致していれば
(#82でYES)、そのブロック内に正反射光の画像
が含まれると判断し、フラグFLAGHを「1」にセッ
トして(#90)、リターンする。なお、フラグFLA
GHは正反射光の検出フラグで、「1」にセットされて
いれば、撮影画像内に正反射光の画像が含まれているこ
とを示し、「0」にリセットされていれば、撮影画像内
に正反射光の画像が含まれていないことを示す。
If the class w substantially coincides with the maximum class p (YES in # 82), it is determined that the image of the regular reflection light is included in the block, and the flag FLAGH is set to "1" ( # 90), and return. Note that the flag FLA
GH is a regular reflection light detection flag. When set to “1”, it indicates that the regular reflection light image is included in the photographed image. Indicates that an image of specularly reflected light is not included in.

【0120】ステップ#82で階級wが最大階級pに略
一致していなければ、カウンタMのカウント値が「1」
だけインクリメントされた後(#84)、このカウント
値Mが総ブロック数nより大きいか否かが判別され(#
86)、M≦nであれば(#86でNO)、ステップ#
76に戻り、次のブロックB(M)について正反射光の画
像が含まれているか否かの判別が行なわれる(#76〜
#82)。
If the class w does not substantially coincide with the maximum class p in step # 82, the count value of the counter M becomes "1".
Then, it is determined whether or not the count value M is larger than the total number of blocks n (# 84).
86), if M ≦ n (NO in # 86), step #
Returning to 76, it is determined whether or not an image of specular reflection light is included in the next block B (M) (# 76 to # 76).
# 82).

【0121】そして、全てのブロックB(M)で正反射光
の画像が検出されなければ(#86でYES)、撮影画
像には正反射光の画像が含まれていないと判断し、フラ
グFLAGHを「0」にリセットして(#88)、リタ
ーンする。
If the image of the specular reflection light is not detected in all the blocks B (M) (YES in # 86), it is determined that the captured image does not include the image of the specular reflection light, and the flag FLAGGH is determined. Is reset to "0"(# 88), and the routine returns.

【0122】図28に戻り、正反射光の検出処理が終了
すると、フラグFLAGHにより正反射光の画像の有無
が判別され(#18)、フラグFLAGHが「1」にセ
ット(正反射光の画像有り)されていれば(#18でY
ES)、ブザー16及びLED表示24により正反射警
告が行なわれる(#20)。一方、フラグFLAGHが
「0」にリセット(正反射光の画像無し)されていれば
(#18でNO)、ステップ#20はスキップされ、ブ
ザー16及びLED表示24による正反射警告は行なわ
れない。
Returning to FIG. 28, when the process of detecting the regular reflection light is completed, the presence or absence of the image of the regular reflection light is determined by the flag FLAGH (# 18), and the flag FLAGH is set to "1" (the image of the regular reflection light). If there is) (Y in # 18)
ES), a regular reflection warning is given by the buzzer 16 and the LED display 24 (# 20). On the other hand, if the flag FLAGH is reset to “0” (no image of specular reflection light) (NO in # 18), step # 20 is skipped, and the specular reflection warning by the buzzer 16 and the LED display 24 is not performed. .

【0123】続いて、測光部40により被写体の輝度の
データ(測光データ)が取り込まれ(#22)、この測
光データに基づき露出制御値が演算される(#24)。
更に照度ムラ補正スイッチ17により照度ムラ補正が指
示されているか否かが判別され(図29,#26)、照
度ムラ補正が指示されていれば(#24でYES)、発
光制御部34に発光禁止の制御信号が出力されてフラッ
シュ7の発光が禁止され(#28)、照度ムラ補正が指
示されていなければ(#24でNO)、ステップ#28
はスキップされ、フラッシュ7の発光禁止は行なわれな
い。これにより撮影準備処理は終了し、レリーズ待機状
態となる。
Subsequently, the luminance data (photometric data) of the subject is taken in by the photometric section 40 (# 22), and an exposure control value is calculated based on the photometric data (# 24).
Further, it is determined whether or not the illuminance unevenness correction is instructed by the illuminance unevenness correction switch 17 (# 26 in FIG. 29). If the illuminance unevenness correction is instructed (YES in # 24), the light emission control unit 34 emits light. If the control signal for prohibition is output and the light emission of the flash 7 is prohibited (# 28), and the illuminance unevenness correction is not instructed (NO in # 24), step # 28
Is skipped, and flash emission of the flash 7 is not inhibited. As a result, the photographing preparation processing ends, and the camera enters a release standby state.

【0124】なお、照度ムラ補正が指示されているとき
にフラッシュ7の発光を禁止するようにしているのは、
例えばホワイトボード23に対して正面から撮影するシ
ーンでフラッシュ7が自動発光される場合、フラッシュ
光がホワイトボード23で全反射されて撮像画像の文字
が判読不能になるおそれがあるので、このような撮影ミ
スを防止するためである。
The reason why the emission of the flash 7 is inhibited when the illumination unevenness correction is instructed is as follows.
For example, when the flash 7 is automatically fired in a scene in which a picture is taken from the front of the whiteboard 23, the flashlight is totally reflected by the whiteboard 23 and characters in the captured image may not be legible. This is to prevent a shooting mistake.

【0125】レリーズ待機状態で、シャッタボタン10
が全押しされてS2スイッチがオンになると(#30で
YES)、ステップ#34に移行してレリーズ動作が行
なわれる。一方、シャッタボタン10の半押し状態が継
続され、S1スイッチがオン状態であれば(#32でY
ES)、ステップ#8に戻り、上述の撮影準備処理が繰
り返される(#8〜#32のループ)。また、シャッタ
ボタン10の操作が解除され、S1スイッチがオフ状態
になると(#32でNO)、ステップ#2に戻る。
In the release standby state, the shutter button 10
Is fully pressed and the S2 switch is turned on (YES in # 30), the flow shifts to step # 34 to perform a release operation. On the other hand, if the shutter button 10 is half-pressed and the S1 switch is on (Y in # 32)
ES), the flow returns to step # 8, and the above-described shooting preparation processing is repeated (loop of # 8 to # 32). When the operation of the shutter button 10 is released and the S1 switch is turned off (NO in # 32), the process returns to step # 2.

【0126】レリーズ動作に移行すると、まず、レンズ
駆動量のデータがレンズ駆動部37に出力され、撮影レ
ンズ2の焦点調節が行なわれた後(#34)、露出制御
値の絞り値Avのデータが絞り駆動部39に出力され、
絞り22の開口量が調節される(#36)。
When the operation shifts to the release operation, first, the data of the lens driving amount is output to the lens driving section 37, and after the focus of the photographing lens 2 is adjusted (# 34), the data of the aperture value Av of the exposure control value is obtained. Is output to the aperture drive unit 39,
The aperture of the stop 22 is adjusted (# 36).

【0127】続いて、照度ムラ補正が指示されているか
否かが判別され(#38)、照度ムラ補正が指示されて
いれば(#38でYES)、画像を複数のブロックに分
割する際のブロックサイズSが演算される(#40)。
この演算は正反射光検出処理におけるステップ#70と
同様の方法で演算される。
Subsequently, it is determined whether or not illuminance unevenness correction is instructed (# 38). If the illuminance unevenness correction is instructed (YES in # 38), it is determined whether the image is divided into a plurality of blocks. The block size S is calculated (# 40).
This calculation is performed by the same method as in step # 70 in the regular reflection light detection processing.

【0128】ブロックサイズの設定処理が終了すると、
ステップ#24で算出されたシャッタスピードのデータ
がCCD駆動部31に出力され、CCD21による撮像
動作(積分動作)が開始される(#42)。CCD21
はCCD駆動部31からの駆動制御信号に基づき感光部
の電荷をリセットした後、所定の時間だけ感光部に電荷
を蓄積(電荷積分)することにより被写体を撮像する。
When the setting process of the block size is completed,
The data of the shutter speed calculated in step # 24 is output to the CCD driving section 31, and the image pickup operation (integration operation) by the CCD 21 is started (# 42). CCD21
Resets the electric charge of the photosensitive section based on the drive control signal from the CCD driving section 31, and then accumulates the electric charge in the photosensitive section for a predetermined time (charge integration) to image the subject.

【0129】CCD21による撮像動作が終了すると、
感光部の各画素に蓄積された電荷(画素データ)の画像
処理部32への読出しが開始される(図30,#4
4)。CCD21の画素データは、図35に示すよう
に、縦ライン毎に矢印方向に順次、読み出されて画像処
理部32に入力される。画像処理部32に入力された画
素信号はA/D変換器321で画素データに変換された
後、画像メモリ322に記憶されるとともに、第1γ特
性設定部323に入力される。
When the imaging operation by the CCD 21 is completed,
Reading of charges (pixel data) accumulated in each pixel of the photosensitive unit to the image processing unit 32 is started (# 4 in FIG. 30, FIG. 30).
4). As shown in FIG. 35, the pixel data of the CCD 21 is sequentially read in the direction of the arrow for each vertical line and input to the image processing unit 32. The pixel signal input to the image processing unit 32 is converted into pixel data by the A / D converter 321, stored in the image memory 322, and input to the first γ characteristic setting unit 323.

【0130】続いて、照度ムラ補正が指示されているか
否かが判別され(#46)、照度ムラ補正が指示されて
いれば(#46でYES)、図32に示すサブルーチン
「γ特性設定」のフローチャートに従って第1γ特性設
定部323により各ブロック毎の照度ムラ補正用のγ特
性が設定される(#48)。
Subsequently, it is determined whether or not illuminance unevenness correction is instructed (# 46). If illuminance unevenness correction is instructed (YES in # 46), a subroutine "γ characteristic setting" shown in FIG. According to the flowchart of the above, the γ characteristic for illuminance unevenness correction is set for each block by the first γ characteristic setting section 323 (# 48).

【0131】各ブロックの照度ムラ補正用のγ特性の設
定は、まず、ブロック数をカウントするカウンタMが
「1」に設定される(#100)。なお、γ特性設定処
理におけるブロックの順番は上述の正反射光検出処理に
おけるブロックの順番と同一である。
For setting the γ characteristic for correcting the illuminance unevenness of each block, first, a counter M for counting the number of blocks is set to “1” (# 100). Note that the order of the blocks in the γ characteristic setting process is the same as the order of the blocks in the above-described regular reflection light detection process.

【0132】続いて、ブロックB(M)内に含まれる全画
素データが全て読み出され(#102)、これらの画素
データの内、ハイレベル側のX%を除いた画素データを
用いて図22もしくは図27に示すようなヒストグラム
が作成される(#104)。続いて、ヒストグラムの白
地部分に対応する山Uのピーク値に対応する階級wが算
出され(#106)、この階級wがブロック(M)に対す
るγ特性の白色飽和レベルW(M)として記憶される(#
108)。
Subsequently, all the pixel data contained in the block B (M) are read out (# 102), and the pixel data obtained by excluding the high-level X% of the pixel data is used. A histogram as shown in FIG. 22 or FIG. 27 is created (# 104). Subsequently, a class w corresponding to the peak value of the mountain U corresponding to the white background portion of the histogram is calculated (# 106), and the class w is stored as the white saturation level W (M) of the γ characteristic for the block (M). (#
108).

【0133】続いて、カウンタMのカウント値が「1」
だけインクリメントされた後(#110)、このカウン
ト値Mが総ブロック数nより大きいか否かが判別され
(#112)、M≦nであれば(#112でNO)、ス
テップ#100に戻り、次のブロックB(M)について白
色飽和レベルW(I)の設定が行なわれる(#102〜#
110)。そして、M>nになると(#102でYE
S)、全ブロックB(M)についてγ特性の白色飽和レベ
ルW(M)の設定が終了したと判断して、リターンする。
Subsequently, the count value of the counter M becomes "1".
Then, it is determined whether or not the count value M is greater than the total block number n (# 112). If M ≦ n (NO in # 112), the process returns to step # 100. The white saturation level W (I) is set for the next block B (M) (# 102 to # 102).
110). When M> n (YE in # 102)
S), it is determined that the setting of the white saturation level W (M) of the γ characteristic has been completed for all the blocks B (M), and the process returns.

【0134】図30のフローチャートに戻り、続いて、
ブロックB(I)毎に設定された照度ムラ補正用のγ特性
の白色飽和レベルW(I)の補間演算が行なわれ、各ブロ
ックB(I)の中心位置以外の画素位置における照度ムラ
補正用のγ特性が設定される(#50)。続いて、設定
されたγ特性は第2γ補正部326に入力される一方、
画像メモリ322からスイッチ回路327を介して第2
γ補正部326に画素データが読み出され、この画素デ
ータはその画素位置に対応する照度ムラ補正用のγ特性
を用いてガンマ補正が行なわれた後、更に黒色強調用の
γ特性を用いてガンマ補正が行なわれる(#52)。
Returning to the flowchart of FIG.
Interpolation is performed on the white saturation level W (I) of the γ characteristic for illuminance non-uniformity set for each block B (I), to correct illuminance non-uniformity at pixel positions other than the center position of each block B (I). Is set (# 50). Subsequently, while the set γ characteristic is input to the second γ correction unit 326,
From the image memory 322 via the switch circuit 327, the second
The pixel data is read out to the γ correction unit 326, and the pixel data is subjected to gamma correction using the γ characteristic for illuminance unevenness correction corresponding to the pixel position, and further using the γ characteristic for black enhancement. Gamma correction is performed (# 52).

【0135】一方、ステップ#46で照度ムラ補正が指
示されていなれば(#46でNO)、画像メモリ322
からスイッチ回路327を介して第1γ補正部325に
画素データが読み出され、この画素データは予め設定さ
れた自然画用のγ特性によりガンマ補正が行なわれる
(#54)。続いて、ガンマ補正後の画素データはスイ
ッチ回路328を介してハードディスクカード13に書
き込まれる(#56)。
On the other hand, if illuminance unevenness correction has not been instructed in step # 46 (NO in # 46), image memory 322
, Pixel data is read out to the first γ correction unit 325 via the switch circuit 327, and the pixel data is subjected to gamma correction according to a preset natural image γ characteristic (# 54). Subsequently, the pixel data after gamma correction is written to the hard disk card 13 via the switch circuit 328 (# 56).

【0136】そして、ガンマ補正が行なわれた画素デー
タは順次、スイッチ回路328を介してハードディスク
カード13に書き込まれ(#46〜#58のループ)、
全画素データのハードディスクカード13への書込みが
完了とすると(#58でYES)、CCD駆動部31に
画素データの読出終了の制御信号が出力されるととも
に、カード駆動部33に画素データの書込終了の制御信
号が出力されて1枚の撮影動作が終了し(#60)、次
の撮影処理を行なうべくステップ#2に戻る。
The pixel data on which the gamma correction has been performed are sequentially written to the hard disk card 13 via the switch circuit 328 (# 46 to # 58 loop).
When the writing of all pixel data to the hard disk card 13 is completed (YES in # 58), a control signal for ending the reading of the pixel data is output to the CCD driving unit 31, and the writing of the pixel data to the card driving unit 33 is performed. An end control signal is output, and the photographing operation for one image is completed (# 60), and the process returns to step # 2 to perform the next photographing process.

【0137】上記のように、撮影準備処理において、取
り込まれた画像を複数のブロックに分割し、ブロック単
位で各ブロック毎に作成したヒストグラムを用いてその
ブロック内に主被写体(ホワイトボード23)で正反射
された照明光の画像が含まれるか否かを判別することに
より正反射光の検出を行なうようにしているので、スポ
ット状の正反射光であっても確実に検出することができ
る。そして、この検出結果に応じて撮影者に正反射警告
を行なうようにしているので、例えば被写体がホワイト
ボード23に書かれた文字、図形等で、照明光のホワイ
トボード23での正反射により文字、図形等の情報が不
明瞭となる場合は、正反射警告によりこのような情報価
値の低い画像の誤撮影を未然に防止することができる。
As described above, in the photographing preparation processing, the captured image is divided into a plurality of blocks, and the main subject (whiteboard 23) is placed in each block using a histogram created for each block. Since the regular reflection light is detected by determining whether or not the image of the regularly reflected illumination light is included, even the spot-like regular reflection light can be reliably detected. Since a regular reflection warning is issued to the photographer according to the detection result, for example, the subject is a character or a figure written on the whiteboard 23, and the character is reflected by the regular reflection of the illumination light on the whiteboard 23. When the information such as a figure or the like becomes unclear, it is possible to prevent such an erroneous photographing of an image having a low information value by a regular reflection warning.

【0138】なお、上記実施の形態では、正反射光が検
出されると、正反射警告のみを行なうようにしていた
が、照明光の正反射により文字情報が不明瞭となった画
像は記録価値が低いので、ハードディスクカード13の
メモリ容量の有効活用を考慮し、正反射警告だけでな
く、撮影画像のハードディスクカード13への記録を禁
止するようにしてもよい。この場合は、図33に示すよ
うに、図29のフローチャートにおいて、例えばステッ
プ#30とステップ#34との間にフラグFLAGHの
セット状態の判別(ステップ#18に相当する正反射光
の画像の有無の判別)を行なうステップ#31を挿入
し、フラグFLAGHが「1」にセットされていれば
(#31でYES)、ステップ#8に戻って撮影準備処
理を行ない、フラグFLAGHが「0」にリセットされ
ていれば(#31でNO)、ステップ#34に移行する
処理にするとよい。すなわち、フラグFLAGHが
「0」にリセットされない限り、S2スイッチがON状
態になってもこれを無視して撮影準備処理を繰り返すよ
うな処理にするとよい。
In the above embodiment, when specular reflection light is detected, only a specular reflection warning is issued. However, an image in which character information becomes unclear due to specular reflection of illumination light is a recording value. Therefore, in consideration of the effective use of the memory capacity of the hard disk card 13, not only the regular reflection warning but also the recording of the captured image on the hard disk card 13 may be prohibited. In this case, as shown in FIG. 33, in the flowchart of FIG. 29, for example, the determination of the setting state of the flag FLAGGH between step # 30 and step # 34 (the presence or absence of the image of the specular reflection light corresponding to step # 18) Step # 31 is performed, and if the flag FLAGH is set to "1" (YES in # 31), the flow returns to step # 8 to perform the shooting preparation process, and the flag FLAGH is set to "0". If it has been reset (NO in # 31), the process may proceed to step # 34. That is, as long as the flag FLAGH is not reset to “0”, even if the S2 switch is turned on, this processing may be ignored and the shooting preparation processing may be repeated.

【0139】また、上記実施の形態では、シャッタボタ
ン10が全押しされると、正反射警告の有無に拘らず、
取り込まれた画像に対して照度ムラ補正スイッチ17に
よる指示に応じた所定の画像処理(照度ムラ補正)を行
なった後、ハードディスクカード13に記録するように
していたが、正反射警告が行なわれたときは、照度ムラ
補正スイッチ17の設定状態に拘らず、取り込まれた画
像に対して通常の写真撮影に対する画像処理(すなわ
ち、照度ムラ補正を行なわない。)を行なった後、ハー
ドディスクカード13に記録するようにしてもよい。
In the above embodiment, when the shutter button 10 is fully pressed, regardless of the presence or absence of the regular reflection warning,
After performing predetermined image processing (illuminance unevenness correction) in accordance with an instruction from the illuminance unevenness correction switch 17 on the captured image, the image is recorded on the hard disk card 13, but a regular reflection warning is issued. In some cases, regardless of the setting of the illuminance unevenness correction switch 17, the captured image is subjected to image processing for normal photographing (that is, illuminance unevenness correction is not performed) and then recorded on the hard disk card 13. You may make it.

【0140】この場合は、図34に示すように、図2
9,図30のフローチャートにおいて、ステップ#36
とステップ#38との間とステップ#44とステップ#
46との間とにそれぞれフラグFLAGHによる正反射
光の画像の有無の判別を行なうステップ#37とステッ
プ#45と挿入し、ステップ37でフラグFLAGHが
「1」にセットされていれば(#37でYES)、ステ
ップ#38,#40をスキップし、ステップ#45で、
フラグFLAGHが「1」にセットされていれば(#4
5でYES)、ステップ#54に移行する処理にすると
よい。
In this case, as shown in FIG.
9. In the flowchart of FIG. 30, step # 36
Between step # 38 and step # 44 and step #
Steps # 37 and # 45 for discriminating the presence or absence of an image of specularly reflected light by the flag FLAGGH are inserted between steps # 46 and # 46. If the flag FLAGGH is set to "1" in step 37 (# 37) YES), skip steps # 38 and # 40, and in step # 45
If the flag FLAGH is set to “1” (# 4
5 is YES), the process may proceed to step # 54.

【0141】このように撮影画像に正反射光の画像が含
まれるときは、照度ムラ補正が指示されていてもガンマ
補正を通常の写真撮影に対するガンマ補正に切り換えて
画像処理を行なうようにすると、正反射光により不明瞭
となった文字情報が照度ムラ補正により更に不明瞭にな
り、画質及び情報価値の低下が増長されるという弊害を
防止することができる。
As described above, when the captured image includes the image of the specular reflection light, the image processing is performed by switching the gamma correction to the gamma correction for normal photographing even if the illumination unevenness correction is instructed. It is possible to prevent the character information that has become unclear due to the specular reflection light from being further obscured by the illuminance non-uniformity correction, thereby preventing the adverse effect of increasing the deterioration in image quality and information value.

【0142】[0142]

【発明の効果】以上説明したように、本発明によれば、
複数の光電変換素子からなる撮像手段により被写体光像
を画素信号に光電変換して取り込み、その画素信号から
なる画像を記録媒体に記録するデジタルカメラにおい
て、取り込まれた画像を小画像に分割し、小画像毎に、
作成したヒストグラムを用いて主被写体で正反射された
照明光の有無を判別し、いずれかの小画像で正反射光が
検出されると、警告等の特定の処理を行なうようにした
ので、スポット状の正反射光であっても高精度で正反射
光の警告が行なわれ、正反射光により不明瞭となった低
画質の被写体像の誤撮影を防止することができる。
As described above, according to the present invention,
In a digital camera that photoelectrically converts a subject light image into a pixel signal by an imaging unit including a plurality of photoelectric conversion elements and captures the image including the pixel signal on a recording medium, the captured image is divided into small images, For each small image,
Using the created histogram, the presence or absence of illumination light that is regularly reflected by the main subject is determined, and if regular reflection light is detected in any of the small images, a specific process such as a warning is performed. Even if the specular reflection light is in the shape of a circle, warning of the specular reflection light is performed with high accuracy, and it is possible to prevent erroneous photographing of a low-quality subject image that has become unclear due to the specular reflection light.

【0143】また、いずれかの小画像で正反射光が検出
されると、取り込まれた画像の記録媒体への記録を禁止
するようにしたので、正反射光により不明瞭となった低
画質の被写体像の誤撮影を確実に防止することができ
る。
If the specular reflection light is detected in any of the small images, the recording of the captured image on the recording medium is prohibited. Erroneous photographing of the subject image can be reliably prevented.

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

【図1】本発明に係るデジタルカメラの外観を示す斜視
図である。
FIG. 1 is a perspective view showing the appearance of a digital camera according to the present invention.

【図2】本発明に係るデジタルカメラの背面図である。FIG. 2 is a rear view of the digital camera according to the present invention.

【図3】本発明に係るデジタルカメラの光学系の概略構
成図である。
FIG. 3 is a schematic configuration diagram of an optical system of the digital camera according to the present invention.

【図4】ホワイトボードの照明光の照明方向の一例を示
す図である。
FIG. 4 is a diagram illustrating an example of an illumination direction of illumination light of a whiteboard.

【図5】撮像素子の出力分布を示すもので、(a)は縦
方向の出力分布を示す図、(b)は横方向の出力分布を
示す図である。
FIGS. 5A and 5B show output distributions of an image sensor, in which FIG. 5A shows a vertical output distribution, and FIG. 5B shows a horizontal output distribution.

【図6】撮像画像を複数のブロックに分割した状態を示
す図である。
FIG. 6 is a diagram showing a state in which a captured image is divided into a plurality of blocks.

【図7】ブロック毎に設定される白地を強調するγ特性
の一例を示す図である。
FIG. 7 is a diagram illustrating an example of a γ characteristic that emphasizes a white background set for each block.

【図8】黒色部分を強調とするγ特性の一例を示す図で
ある。
FIG. 8 is a diagram illustrating an example of a γ characteristic in which a black portion is emphasized.

【図9】黒色濃度調整スイッチによる黒色調整と黒色部
分を強調とするγ特性との関係を示す図である。
FIG. 9 is a diagram illustrating a relationship between black adjustment by a black density adjustment switch and a γ characteristic that emphasizes a black portion.

【図10】ファインダー内の正反射光警告用のLED表
示を示す図である。
FIG. 10 is a view showing an LED display for warning regular reflection light in the viewfinder.

【図11】本発明に係るデジタルカメラのブロック構成
図である。
FIG. 11 is a block diagram of a digital camera according to the present invention.

【図12】カラー画像の画像処理を行なうためのA/D
変換器〜第1,第2γ補正部までの構成を示すブロック
構成図である。
FIG. 12 shows an A / D for performing image processing of a color image.
FIG. 2 is a block diagram showing a configuration from a converter to first and second γ correction units.

【図13】Gの色成分の第1γ特性設定部の内部構成を
示すブロック図である。
FIG. 13 is a block diagram illustrating an internal configuration of a first γ characteristic setting unit for a G color component.

【図14】画像メモリの容量を説明するための図であ
る。
FIG. 14 is a diagram for explaining the capacity of an image memory.

【図15】文字画像を構成する画素データのヒストグラ
ムの一般的な形を示す図である。
FIG. 15 is a diagram showing a general form of a histogram of pixel data constituting a character image.

【図16】撮像画像を複数のブロックの小画像に分割し
た状態を示す図である。
FIG. 16 is a diagram showing a state in which a captured image is divided into small images of a plurality of blocks.

【図17】不適切なサイズのブロックで撮像画像を分割
した状態を示すもので、(a)はブロックサイズが適正
値より小さい場合を示す図、(b)はブロックサイズが
適正値より大きい場合を示す図である。
17A and 17B show a state where a captured image is divided into blocks of inappropriate sizes, where FIG. 17A shows a case where the block size is smaller than an appropriate value, and FIG. 17B shows a case where the block size is larger than an appropriate value. FIG.

【図18】ファインダー視野枠内にブロック枠を表示さ
せた状態を示す図である。
FIG. 18 is a diagram showing a state in which a block frame is displayed in a finder field frame.

【図19】横方向に配列されたブロックで設定された照
度ムラ補正用のγ特性を用いて他のブロックに対する照
度ムラ補正用のγ特性を設定する方法を説明するための
図である。
FIG. 19 is a diagram for explaining a method of setting γ characteristics for illuminance unevenness correction for another block using γ characteristics for illuminance unevenness set in blocks arranged in the horizontal direction.

【図20】縦方向に配列されたブロックで設定された照
度ムラ補正用のγ特性を用いて他のブロックに対する照
度ムラ補正用のγ特性を設定する方法を説明するための
図である。
FIG. 20 is a diagram for explaining a method of setting γ characteristics for illuminance unevenness correction for another block using γ characteristics for illuminance unevenness set in blocks arranged in the vertical direction.

【図21】照度ムラ補正を行なうための撮像画像の他の
ブロック分割の方法を示す図である。
FIG. 21 is a diagram illustrating another block division method of a captured image for performing illumination intensity unevenness correction.

【図22】ブロックに分割された小画像を構成する画素
データのヒストグラムの一例を示す図である。
FIG. 22 is a diagram illustrating an example of a histogram of pixel data constituting a small image divided into blocks.

【図23】画素データのヒストグラムを用いて決定され
るγ特性を示す図である。
FIG. 23 is a diagram illustrating a γ characteristic determined using a histogram of pixel data.

【図24】緑色成分の画素データを用いて設定されたγ
特性の一例を示す図である。
FIG. 24 shows γ set using green component pixel data.
It is a figure showing an example of a characteristic.

【図25】各色成分の画像毎に設定されたγ特性を示す
図で、(a)は赤色成分の画像に対するγ特性、(b)
は緑色成分の画像に対するγ特性、(c)は青色成分の
画像に対するγ特性である。
25A and 25B are diagrams showing γ characteristics set for each image of each color component, where FIG. 25A shows γ characteristics for a red component image, and FIG.
Is a γ characteristic for a green component image, and (c) is a γ characteristic for a blue component image.

【図26】隣接する4個のブロックの中心位置で囲まれ
た領域内の画素データに対するγ特性の補間演算を説明
するための図である。
FIG. 26 is a diagram for describing interpolation calculation of γ characteristics for pixel data in an area surrounded by the center positions of four adjacent blocks.

【図27】正反射光の画像を含むブロックの画素データ
のヒストグラムの形を示す図である。
FIG. 27 is a diagram illustrating a shape of a histogram of pixel data of a block including an image of specular reflection light.

【図28】本発明に係るカメラの撮影制御を示すフロー
チャートである。
FIG. 28 is a flowchart illustrating shooting control of the camera according to the present invention.

【図29】本発明に係るカメラの撮影制御を示すフロー
チャートである。
FIG. 29 is a flowchart showing shooting control of the camera according to the present invention.

【図30】本発明に係るカメラの撮影制御を示すフロー
チャートである。
FIG. 30 is a flowchart illustrating shooting control of the camera according to the present invention.

【図31】サブルーチン「正反射光検出」のフローチャ
ートである。
FIG. 31 is a flowchart of a subroutine “specular reflection light detection”.

【図32】サブルーチン「γ特性設定」のフローチャー
トである。
FIG. 32 is a flowchart of a subroutine “γ characteristic setting”.

【図33】正反射光検出時に取込画像のハードディスク
カードへの記録禁止するためのフローチャートの修正案
を示す図である。
FIG. 33 is a diagram showing a modification of a flowchart for prohibiting recording of a captured image on a hard disk card when specular reflected light is detected.

【図34】正反射光検出時の取込画像のガンマ補正を強
制的に通常のガンマ補正に切り換えるためのフローチャ
ートの修正案を示す図である。
FIG. 34 is a diagram showing a modification of a flowchart for forcibly switching gamma correction of a captured image to normal gamma correction when specular reflected light is detected.

【図35】CCDの画素データの読出方向を示す図であ
る。
FIG. 35 is a diagram illustrating a reading direction of pixel data of a CCD.

【図36】デジタル複写機における取込画像のブロック
分割方法を示す図である。
FIG. 36 is a diagram illustrating a method of dividing a captured image into blocks in a digital copying machine.

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

1 カメラ(デジタルカメラ) 2 撮影レンズ 3 測光窓 4 測距用投光窓 5 測距用受光窓 6 ファインダー対物窓 7 フラッシュ 8 カード挿入口 9 カード取出ボタン 10 シャッタボタン 11 ズームスイッチ 12 撮影/再生スイッチ 13 ハードディスクカード(記録媒体) 14 メインスイッチ 15 ファインダー接眼窓 16 ブザー(警告手段) 17 照度ムラ補正スイッチ 18 黒色濃度調整スイッチ 19 LCD表示部 20 正反射警告スイッチ 21 CCDエリアセンサ(撮像手段) 22 絞り 23 ホワイトボード 24 LED表示(警告手段) 30 CPU(特定処理手段) 31 CCD駆動部 32 画像処理部 321 A/D変換器 322 画像メモリ 323 第1γ特性設定部 323a ブロックサイズ設定部(画像分割手段) 323b アドレス生成部 323c ヒストグラム作成部(ヒストグラム作成手
段) 323d 白色飽和レベル設定部 323e 白色飽和レベル補間演算部 323f γ特性設定部 323g 正反射検出部(判別手段) 324 第2γ特性設定部 325 第1γ補正部 326 第2γ補正部 327 スイッチ回路 33 カード駆動部 34 発光制御部 35 LCD駆動部 36 メモリ 37 レンズ駆動部 38 ズーム駆動部 39 絞り駆動部 40 測光部 41 測距部 42 ファインダー視野枠 43 ブロック枠
DESCRIPTION OF SYMBOLS 1 Camera (digital camera) 2 Shooting lens 3 Metering window 4 Distance measuring light emitting window 5 Distance measuring light receiving window 6 Viewfinder objective window 7 Flash 8 Card slot 9 Card eject button 10 Shutter button 11 Zoom switch 12 Shooting / playback switch Reference Signs List 13 hard disk card (recording medium) 14 main switch 15 finder eyepiece window 16 buzzer (warning means) 17 illumination unevenness correction switch 18 black density adjustment switch 19 LCD display unit 20 regular reflection warning switch 21 CCD area sensor (imaging means) 22 aperture 23 White board 24 LED display (warning means) 30 CPU (specific processing means) 31 CCD drive section 32 Image processing section 321 A / D converter 322 Image memory 323 First γ characteristic setting section 323a Block size setting section (Image dividing means) 32 3b Address generation section 323c Histogram creation section (histogram creation means) 323d White saturation level setting section 323e White saturation level interpolation calculation section 323f γ characteristic setting section 323g Regular reflection detection section (determination means) 324 Second γ characteristic setting section 325 First γ correction Unit 326 Second γ correction unit 327 Switch circuit 33 Card drive unit 34 Light emission control unit 35 LCD drive unit 36 Memory 37 Lens drive unit 38 Zoom drive unit 39 Aperture drive unit 40 Photometry unit 41 Distance measurement unit 42 Viewfinder field frame 43 Block frame

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 複数の光電変換素子からなる撮像手段に
より被写体光像を画素信号に光電変換して取り込み、そ
の画素信号からなる画像を記録媒体に記録するデジタル
カメラにおいて、上記撮像手段で取り込まれた画像を複
数の小画像に分割する画像分割手段と、小画像毎に各小
画像を構成する画素信号のレベル分布のヒストグラムを
作成するヒストグラム作成手段と、小画像毎に、作成さ
れたヒストグラムを用いてその小画像内に主被写体で正
反射された照明光が含まれるか否かを判別する判別手段
と、いずれかの小画像に正反射された照明光が含まれて
いるとき、特定の処理を行なう特定処理手段とを備えた
ことを特徴とするデジタルカメラ。
1. A digital camera which photoelectrically converts a subject light image into a pixel signal by an image pickup means comprising a plurality of photoelectric conversion elements and captures the image, and records an image comprising the pixel signal on a recording medium. Image dividing means for dividing the divided image into a plurality of small images, a histogram creating means for creating a histogram of a level distribution of pixel signals constituting each small image for each small image, and a histogram created for each small image. A determining means for determining whether or not the small image includes illumination light that is regularly reflected by the main subject, and when any of the small images includes the regularly reflected illumination light, a specific A digital camera comprising a specific processing unit for performing processing.
【請求項2】 請求項1記載のデジタルカメラにおい
て、警告手段を備え、上記特定処理手段は、主被写体で
照明光が正反射光されていることを上記警告手段により
警告するものであることを特徴とするデジタルカメラ。
2. The digital camera according to claim 1, further comprising a warning unit, wherein the specific processing unit warns the main subject that the illumination light is regularly reflected by the warning unit. Digital camera that features.
【請求項3】 請求項1又は2記載のデジタルカメラに
おいて、上記特定処理手段は、取り込まれた画像の上記
記録手段への記録を禁止するものであることを特徴とす
るデジタルカメラ。
3. The digital camera according to claim 1, wherein said specific processing means prohibits recording of the captured image in said recording means.
JP01300097A 1997-01-27 1997-01-27 Digital camera Expired - Fee Related JP3643201B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP01300097A JP3643201B2 (en) 1997-01-27 1997-01-27 Digital camera
US09/013,055 US6806903B1 (en) 1997-01-27 1998-01-26 Image capturing apparatus having a γ-characteristic corrector and/or image geometric distortion correction
US10/923,828 US20050024508A1 (en) 1997-01-27 2004-08-24 Image capturing apparatus provided with image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP01300097A JP3643201B2 (en) 1997-01-27 1997-01-27 Digital camera

Publications (2)

Publication Number Publication Date
JPH10210353A true JPH10210353A (en) 1998-08-07
JP3643201B2 JP3643201B2 (en) 2005-04-27

Family

ID=11820931

Family Applications (1)

Application Number Title Priority Date Filing Date
JP01300097A Expired - Fee Related JP3643201B2 (en) 1997-01-27 1997-01-27 Digital camera

Country Status (1)

Country Link
JP (1) JP3643201B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004030378A3 (en) * 2002-09-24 2004-04-29 Imacon As Image quality indicator
JP2008310624A (en) * 2007-06-15 2008-12-25 Hitachi Omron Terminal Solutions Corp Medium collation apparatus
WO2012050728A1 (en) * 2010-09-30 2012-04-19 Apple Inc. High dynamic range transition

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004030378A3 (en) * 2002-09-24 2004-04-29 Imacon As Image quality indicator
JP2008310624A (en) * 2007-06-15 2008-12-25 Hitachi Omron Terminal Solutions Corp Medium collation apparatus
WO2012050728A1 (en) * 2010-09-30 2012-04-19 Apple Inc. High dynamic range transition
US9584733B2 (en) 2010-09-30 2017-02-28 Apple Inc. High dynamic range transition

Also Published As

Publication number Publication date
JP3643201B2 (en) 2005-04-27

Similar Documents

Publication Publication Date Title
US6806903B1 (en) Image capturing apparatus having a γ-characteristic corrector and/or image geometric distortion correction
JP6935587B2 (en) Methods and equipment for image processing
CN1645943B (en) Electronic camera and image generating apparatus generating stereo image
US20030081141A1 (en) Brightness adjustment method
US8520095B2 (en) Imaging apparatus and imaging method
US5872643A (en) Film image reproducing apparatus using a domestic light condition or an undomestic light condition for generation of a designated area
JP3758284B2 (en) Imaging device
JPH07336590A (en) Image recording and reproducing system, and image reproducing device and camera
JP2006050233A (en) Image pickup apparatus, image processor, image processing method and program
JP3643203B2 (en) Digital camera
JP3643201B2 (en) Digital camera
JP3631575B2 (en) Digital camera
JPH10210360A (en) Digital camera
JP3631576B2 (en) Digital camera
JPH10210355A (en) Digital camera
JP3358584B2 (en) 3D information input camera
JP3631577B2 (en) Digital camera
JP3641537B2 (en) Digital camera
JP3275873B2 (en) 3D information input camera
JP3643202B2 (en) Digital camera
JPH10210358A (en) Digital camera
JP3269484B2 (en) 3D information input camera
JPH1023453A (en) Digital camera
JPH05260372A (en) Picture reader
JP2002298137A (en) Image processing method, image processor, recording medium and program

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20041008

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20041022

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20041101

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20041101

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20041224

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20050125

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050127

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20080204

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20090204

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100204

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees