JP2006279459A - Device, method and program for image photography, and recording medium - Google Patents

Device, method and program for image photography, and recording medium Download PDF

Info

Publication number
JP2006279459A
JP2006279459A JP2005094811A JP2005094811A JP2006279459A JP 2006279459 A JP2006279459 A JP 2006279459A JP 2005094811 A JP2005094811 A JP 2005094811A JP 2005094811 A JP2005094811 A JP 2005094811A JP 2006279459 A JP2006279459 A JP 2006279459A
Authority
JP
Japan
Prior art keywords
patch
image
photographing
image data
calibration
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.)
Withdrawn
Application number
JP2005094811A
Other languages
Japanese (ja)
Inventor
珍友 ▲高▼綱
Yoshitomo Takatsuna
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2005094811A priority Critical patent/JP2006279459A/en
Publication of JP2006279459A publication Critical patent/JP2006279459A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Color Television Image Signal Generators (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To perform color calibration without imposing on a user complicated operation. <P>SOLUTION: A digital camera 101 has a photography part 211 which photographs an image of a subject and outputs photographed image data, and a calibration part 221. The calibration part 221 includes a patch part which photographs a color patch provided in the device by using external light at the time of the photography of the image by the photography part 211 and outputs patch image data, and a calibration part which performs color calibration of the photographed image data obtained by the photography part 211 based upon the patch image data generated by the patch part. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

この発明は、画像を撮影する画像撮影装置、画像撮影方法、画像撮影プログラムおよび記録媒体に関する。   The present invention relates to an image capturing device for capturing an image, an image capturing method, an image capturing program, and a recording medium.

従来、写真撮影においては、銀塩式・デジタル式を問わず個々のカメラの機器特性や照明などの撮影条件によって、その再現画像の色味が異なる場合がある。このような再現画像のバラツキを防止するため、カラーキャリブレーション(校正)がおこなわれている。カラーキャリブレーションの一般的な方法として、パッチ撮影によるものがある。パッチ撮影によるカラーキャリブレーションをおこなうにあたっては、撮影光源下でカラーパッチの撮影をおこない、各色の理想値と撮影によって得た各色の出力値とを比較して、理想値に近づけるように校正する(たとえば、下記特許文献1および2参照。)。   Conventionally, in photography, regardless of silver salt type or digital type, the color of the reproduced image may differ depending on the device characteristics of each camera and the photographing conditions such as illumination. In order to prevent such variations in the reproduced image, color calibration is performed. As a general method of color calibration, there is a method using patch photography. When performing color calibration by patch shooting, color patches are shot under a shooting light source, the ideal values of each color are compared with the output values of each color obtained by shooting, and calibration is performed so that they are close to the ideal values ( For example, see Patent Documents 1 and 2 below.)

特開2002−315014号公報JP 2002-31014 A 特開2004−072769号公報JP 2004-072769 A

しかしながら、特許文献1にかかる従来技術によれば、パッチ撮影をユーザ自身によっておこなわなくてはならない。このため、写真撮影にあたっては、必ずカラーパッチを携帯しなければならず、煩雑であるという問題点がある。また、パッチ撮影にあたっては、撮影光源に対して適切な条件で撮影しなければならず、熟練した技術を要するという問題点がある。   However, according to the prior art according to Patent Document 1, the user has to perform patch photographing. For this reason, when taking a picture, the color patch must be carried, and there is a problem that it is complicated. Further, in patch shooting, there is a problem that it is necessary to shoot under appropriate conditions with respect to the shooting light source, and skill is required.

また、特許文献2にかかる従来技術は、既知のチャートから得たパッチデータを利用するものであり、ユーザ自身によるパッチ撮影は不要である。しかし、得られる補正値は近似値であり、撮影光源下での補正を厳密にはおこなうことができないという問題点がある。   The prior art according to Patent Document 2 uses patch data obtained from a known chart, and does not require patch shooting by the user himself. However, the correction value obtained is an approximate value, and there is a problem in that correction under a photographing light source cannot be performed strictly.

この発明は、上述した従来技術による問題点を解消するため、ユーザに煩雑な操作を負わせることなくカラーパッチによるカラーキャリブレーション(色校正)をおこなうことができる画像撮影装置、画像撮影方法、画像撮影プログラムおよび記録媒体を提供することを目的とする。   In order to solve the above-described problems caused by the conventional technology, the present invention can perform color calibration (color calibration) using a color patch without burdening the user with complicated operations, an image capturing method, and an image capturing method. An object is to provide a photographing program and a recording medium.

上述した課題を解決し、目的を達成するため、本発明にかかる画像撮影装置は、被写体の画像を撮影し、撮影画像データを出力する画像撮影手段と、前記画像撮影手段によって画像を撮影する際の外光を用いて、装置内に設けられたカラーパッチの撮影をおこない、パッチ画像データを出力するパッチ撮影手段と、前記パッチ撮影手段によって撮影された前記パッチ画像データに基づいて、前記画像撮影手段によって撮影された前記撮影画像データの色校正をおこなう校正手段と、を備えることを特徴とする。   In order to solve the above-described problems and achieve the object, an image capturing apparatus according to the present invention captures an image of a subject, outputs captured image data, and captures an image by the image capturing unit. The image capturing is performed based on the patch image data captured by the patch image capturing unit that captures the color patch provided in the apparatus using the external light and outputs the patch image data. Calibrating means for performing color calibration of the photographed image data photographed by the means.

この場合、画像撮影装置内部にカラーパッチを設け、パッチ撮影をおこない、パッチ画像データに基づいて撮影画像データを校正する。これにより、ユーザに煩雑な操作を負わせることなく、カラーパッチを用いた色校正(カラーキャリブレーション)をおこなった撮影画像データを提供することができる。   In this case, a color patch is provided inside the image photographing apparatus, patch photographing is performed, and the photographed image data is calibrated based on the patch image data. Accordingly, it is possible to provide photographed image data that has been subjected to color calibration (color calibration) using a color patch without burdening the user with complicated operations.

また、前記校正手段は、前記パッチ撮影手段によって撮影された前記パッチ画像データのRGB値と、前記カラーパッチの基準RGB値とに基づいて、前記撮影画像データのRGB値を校正することとしてもよい。   Further, the calibration means may calibrate the RGB values of the photographed image data based on the RGB values of the patch image data photographed by the patch photographing means and the reference RGB values of the color patches. .

この場合、カラーパッチの基準RGB値に合わせて撮影画像データを校正することができる。   In this case, the captured image data can be calibrated according to the reference RGB value of the color patch.

また、前記カラーパッチは、グレーもしくは各基準カラーを配列したものであることとしてもよい。   Further, the color patch may be gray or an array of reference colors.

この場合、画像撮影装置内に設けるカラーパッチはグレーもしくは各基準カラーを配列したもののみでよく、装置内のスペースを有効に活用することができる。   In this case, the color patches provided in the image photographing apparatus need only be gray or those in which the respective reference colors are arranged, and the space in the apparatus can be used effectively.

また、前記カラーパッチは白色であり、前記パッチ撮影手段は、白色の前記カラーパッチを撮影し、前記校正手段は、前記撮影画像データのホワイトバランスの校正をおこなうこととしてもよい。   The color patch may be white, the patch photographing unit may photograph the white color patch, and the calibration unit may calibrate the white balance of the photographed image data.

この場合、画像撮影装置内に設けるカラーパッチは白色のみでよく、装置内のスペースを有効に活用することができる。また、画像撮影時の外光に適合したホワイトバランスに校正した撮影画像データを提供することができる。   In this case, the color patch provided in the image photographing apparatus may be only white, and the space in the apparatus can be used effectively. Also, it is possible to provide photographed image data calibrated to white balance suitable for the external light at the time of image photographing.

また、前記外光下でのホワイトバランスを設定する設定手段を備え、前記校正手段は、前記設定手段によって設定された前記外光下でのホワイトバランスと、前記パッチ画像データとに基づいて、前記色校正をおこなうこととしてもよい。   In addition, setting means for setting a white balance under the external light, the calibration means, based on the white balance under the external light set by the setting means and the patch image data, Color proofing may be performed.

この場合、夕日や蛍光灯など所定の外光下におけるホワイトバランスを設定し、設定したホワイトバランスと、画像撮影時の外光に適合したホワイトバランスとに基づいて、色校正をおこない、より現実に適合した撮影画像データを提供することができる。   In this case, set a white balance under a predetermined external light such as sunset or fluorescent light, and perform color calibration based on the set white balance and a white balance that is suitable for the external light at the time of image shooting. Applicable captured image data can be provided.

また、前記パッチ撮影手段は、前記外光を取得する取得手段を備え、前記取得手段が取得した前記外光が、前記パッチ撮影手段がおこなう前記カラーパッチの撮影が可能な光量かを判断する判断手段を備えることとしてもよい。   In addition, the patch photographing unit includes an obtaining unit that obtains the external light, and the determination to determine whether the external light obtained by the obtaining unit is a light amount that can be taken by the patch photographing unit. Means may be provided.

この場合、カラーパッチの撮影に充分な光量が取得できているかを判断する。このため、光量不足によってカラーパッチの撮影が失敗するのを防止することができる。   In this case, it is determined whether a sufficient amount of light for capturing the color patch can be acquired. For this reason, it is possible to prevent the shooting of the color patch from failing due to insufficient light quantity.

また、本発明にかかる画像撮影方法は、被写体の画像を撮影し、撮影画像データを出力する画像撮影工程と、前記画像撮影工程によって画像を撮影する際の外光を用いて、装置内に設けられたカラーパッチの撮影をおこない、パッチ画像データを出力するパッチ撮影工程と、前記パッチ撮影工程によって撮影された前記パッチ画像データに基づいて、前記画像撮影工程によって撮影された前記撮影画像データの色校正をおこなう校正工程と、を含むことを特徴とする。   In addition, an image photographing method according to the present invention is provided in an apparatus using an image photographing process for photographing an image of a subject and outputting photographed image data, and external light when the image is photographed by the image photographing process. A color image of the captured image data captured by the image capturing process based on the patch image data captured by the patch capturing process and the patch capturing process of capturing the color patch and outputting the patch image data And a calibration process for performing calibration.

この場合、装置内部にカラーパッチを設け、パッチ撮影をおこない、パッチ画像データに基づいて撮影画像データを校正する。これにより、ユーザに煩雑な操作を負わせることなく、カラーパッチを用いた色校正(カラーキャリブレーション)をおこなった撮影画像データを提供することができる。   In this case, a color patch is provided inside the apparatus, patch shooting is performed, and the captured image data is calibrated based on the patch image data. Accordingly, it is possible to provide photographed image data that has been subjected to color calibration (color calibration) using a color patch without burdening the user with complicated operations.

また、本発明にかかる画像撮影プログラムは、上述した画像撮影方法をコンピュータに実行させることを特徴とする。   An image capturing program according to the present invention causes a computer to execute the above-described image capturing method.

この場合、装置内部にカラーパッチを設け、パッチ撮影をおこない、パッチ画像データに基づいて撮影画像データを校正する。これにより、ユーザに煩雑な操作を負わせることなく、カラーパッチを用いた色校正(カラーキャリブレーション)をおこなった撮影画像データを提供することができる。   In this case, a color patch is provided inside the apparatus, patch shooting is performed, and the captured image data is calibrated based on the patch image data. Accordingly, it is possible to provide photographed image data that has been subjected to color calibration (color calibration) using a color patch without burdening the user with complicated operations.

また、コンピュータに読み取り可能な記録媒体に上述した画像撮影プログラムを記録することとしてもよい。   Further, the above-described image photographing program may be recorded on a computer-readable recording medium.

以下に添付図面を参照して、この発明にかかる画像撮影装置、画像撮影方法、画像撮影プログラムおよび記録媒体の好適な実施の形態を詳細に説明する。   Exemplary embodiments of an image capturing device, an image capturing method, an image capturing program, and a recording medium according to the present invention will be described below in detail with reference to the accompanying drawings.

(実施の形態)
図1は、実施の形態にかかる画像撮影装置の使用態様の一例を示す図である。実施の形態にかかる画像撮影装置は、デジタルカメラ101によって実現される。デジタルカメラ101は、CCDやCMOSなどの光に反応する半導体素子(光学素子)を使って、画像を電気信号に変換し、画像データと出力する。デジタルカメラ101は、光源102からの光を受けて被写体103が反射する光を光学素子でとらえる。
(Embodiment)
FIG. 1 is a diagram illustrating an example of a usage mode of the image capturing apparatus according to the embodiment. The image capturing apparatus according to the embodiment is realized by the digital camera 101. The digital camera 101 converts an image into an electrical signal using a semiconductor element (optical element) that reacts to light, such as a CCD or CMOS, and outputs the image data. The digital camera 101 receives light from the light source 102 and captures light reflected by the subject 103 with an optical element.

通常のパッチ撮影をおこなう場合、図示しないカラーパッチを被写体103とともに光源102の光の下に置き、デジタルカメラ101によって撮影する。そして、撮影された画像データのRGB値(出力RGB値)と、本来表現されるべきカラーパッチのRGB値(理想RGB値)とを比較し、出力RGB値を理想RGB値に近づけるよう、校正をおこなう。   When performing normal patch photography, a color patch (not shown) is placed under the light of the light source 102 together with the subject 103 and photographed by the digital camera 101. Then, the RGB value (output RGB value) of the captured image data is compared with the RGB value (ideal RGB value) of the color patch to be originally expressed, and calibration is performed so that the output RGB value approaches the ideal RGB value. Do it.

本実施の形態においては、カラーパッチはデジタルカメラ101の内部に備えられている。デジタルカメラ101は、採光窓101aから光源102の光を取得し、パッチ撮影をおこなう。このため、ユーザはカラーパッチを携帯する必要はなく、また、ユーザは自らパッチ撮影および校正をおこなう必要もない。   In the present embodiment, the color patch is provided inside the digital camera 101. The digital camera 101 acquires light from the light source 102 from the daylighting window 101a and performs patch photography. For this reason, the user does not need to carry a color patch, and the user does not need to perform patch photographing and calibration by himself / herself.

(デジタルカメラ101の機能的構成)
図2は、デジタルカメラの機能的構成を示すブロック図である。デジタルカメラ101は、制御部201、撮影部211、操作部212、表示部213、画像処理部214、画像記録部215、キャリブレーション部221によって構成される。制御部201は、デジタルカメラ101全体の制御処理をおこなう。
(Functional configuration of digital camera 101)
FIG. 2 is a block diagram illustrating a functional configuration of the digital camera. The digital camera 101 includes a control unit 201, an imaging unit 211, an operation unit 212, a display unit 213, an image processing unit 214, an image recording unit 215, and a calibration unit 221. The control unit 201 performs control processing for the entire digital camera 101.

撮影部211は、レンズおよび光学素子からなり、レンズから入射する光から画像データを生成し、デジタルデータとして出力する。このとき、撮影部211から出力されるデータはRAWデータであり、光学素子から得られた電気信号をそのままデジタル化したものである。   The imaging unit 211 includes a lens and an optical element, generates image data from light incident from the lens, and outputs it as digital data. At this time, the data output from the imaging unit 211 is RAW data, which is an electric signal obtained from the optical element and digitized as it is.

操作部212は、操作ボタンやタッチパネルなどによって構成され、ユーザによるデジタルカメラ101の操作に用いられる。操作部212によって操作される項目としては、たとえば、撮影モードの設定や、撮影した画像の閲覧・消去、撮影タイミング(シャッター)、出力データの形式などである。また、操作部212は、デジタルカメラ101に対して一体に設けられていてもよいし、リモコンのようにデジタルカメラ101から分離して操作可能な形態であってもよい。また、後述するホワイトバランス調整モードへの移行操作も、操作部212においておこなう。   The operation unit 212 includes operation buttons, a touch panel, and the like, and is used for operation of the digital camera 101 by a user. Items operated by the operation unit 212 include, for example, setting of a shooting mode, viewing / deleting a shot image, shooting timing (shutter), output data format, and the like. The operation unit 212 may be provided integrally with the digital camera 101, or may be configured to be operated separately from the digital camera 101 like a remote controller. Also, the operation unit 212 performs an operation for shifting to a white balance adjustment mode, which will be described later.

表示部213は、液晶ディスプレイなどによって構成され、デジタルカメラ101で撮影した画像データや後述する画像記録部215に記録された画像データのサムネイル、デジタルカメラ101の機器設定メニュー画面、操作のエラーメッセージなどを表示する。表示部213に表示される情報は、操作部212によって操作することができる。   The display unit 213 is configured by a liquid crystal display or the like, and includes image data captured by the digital camera 101, thumbnails of image data recorded in an image recording unit 215 described later, a device setting menu screen of the digital camera 101, an operation error message, and the like. Is displayed. Information displayed on the display unit 213 can be operated by the operation unit 212.

画像処理部214は、撮影部211から出力された画像データに画像処理をおこなう。画像処理部214のおこなう画像処理は、操作部212によって設定された撮影モードや出力データの形式に応じた色処理や階調処理、エッジ処理などである。   The image processing unit 214 performs image processing on the image data output from the photographing unit 211. Image processing performed by the image processing unit 214 includes color processing, gradation processing, edge processing, and the like according to the shooting mode set by the operation unit 212 and the format of output data.

画像記録部215は、画像処理部214によって画像処理された画像データを記録する。なお、画像記録部215は、デジタルカメラ101と一体に設けられる他、メモリーカードなどデジタルカメラ101に対して着脱可能な記録媒体であってもよい。このような構成であれば、ケーブルなどを用いずに、図示しないPCやプリンタとの間で画像データのやり取りをおこなうことができる。また、デジタルカメラ101と一体に設けられたもの、およびデジタルカメラ101から着脱可能なものを両方備えるようにしてもよい。   The image recording unit 215 records the image data processed by the image processing unit 214. The image recording unit 215 may be a recording medium that can be attached to and detached from the digital camera 101, such as a memory card, in addition to being provided integrally with the digital camera 101. With such a configuration, image data can be exchanged with a PC or printer (not shown) without using a cable or the like. In addition, both a device provided integrally with the digital camera 101 and a device removable from the digital camera 101 may be provided.

画像記録部215によってメモリーカードに書き込まれる画像データの形式(以下、出力データ形式という)は、たとえば、JPEGデータまたはRAWデータを選択することができる。前述のように、撮影部211から出力される画像データはRAWデータであるが、出力データ形式としてJPEGデータが選択された場合には、画像処理部214によって画像処理をおこない、JPEGデータに変換する。さらに、画像処理部214でJPEGファイルにタグおよびサムネイルを付加して、Exifファイルとして出力するようにしてもよい。   For example, JPEG data or RAW data can be selected as the format of image data (hereinafter referred to as output data format) written to the memory card by the image recording unit 215. As described above, the image data output from the photographing unit 211 is RAW data. However, when JPEG data is selected as the output data format, the image processing unit 214 performs image processing and converts it into JPEG data. . Further, the image processing unit 214 may add a tag and a thumbnail to the JPEG file and output the file as an Exif file.

画像記録部215が出力するExifファイルは、撮影画像のJPEGデータ(以下、本データという)にタグおよびサムネイルを付加したものであり、複数機器間における画像データの相互利用が考慮されている。タグには、画像の画素数、圧縮モード、カメラの機種名、絞り値、シャッター速度、撮影日時などの画像データの属性情報が記録される。ユーザは、これらの情報を利用して、撮影時の露出条件を撮影にフィードバックしたり、プリント時の画像選択の参考にするなど、画像データの一層の活用を図ることができる。   The Exif file output by the image recording unit 215 is obtained by adding a tag and a thumbnail to JPEG data (hereinafter referred to as “main data”) of a captured image, and consideration is given to mutual use of image data among a plurality of devices. The tag records image data attribute information such as the number of pixels of the image, compression mode, camera model name, aperture value, shutter speed, and shooting date and time. Using this information, the user can further utilize the image data, such as feeding back the exposure condition at the time of shooting to the shooting, or referring to image selection at the time of printing.

また、サムネイルは本データを縮小した一覧見出し用の縮小画であり、表示部213やPCの画像処理アプリケーション上において、画像ファイルの一覧表示などを高速でおこなわせるために用いられる。   The thumbnail is a reduced image for list heading obtained by reducing this data, and is used to display a list of image files at high speed on the display unit 213 or the image processing application of the PC.

キャリブレーション部221は、パッチ撮影によってデジタルカメラ101のカラーキャリブレーションをおこなう。以下、キャリブレーション部221は、ホワイトバランスの校正値を算出するものとして説明する。ここで、ホワイトバランスとは、被写体103にあてられた光源102の光に合わせて画像データの色再現を調整し、白を白らしく表現できるようにするものである。   The calibration unit 221 performs color calibration of the digital camera 101 by patch shooting. Hereinafter, description will be made assuming that the calibration unit 221 calculates a white balance calibration value. Here, the white balance is to adjust the color reproduction of the image data in accordance with the light of the light source 102 applied to the subject 103 so that white can be expressed as white.

ホワイトバランスの調整は、パッチ撮影による校正の他、たとえば、照明光の色味を色温度(K)で表し、これに対してRGB値のバランスを調整したり、あらかじめ撮影シーンに合わせて撮影モードを設定し、ユーザが撮影シーンに合わせて撮影モードを選択することもできる。しかしながら、このような方法は、実際の光源102の元で調整された値ではないため、厳密な校正をおこなうことができない。このため、デジタルカメラ101は、内部にカラーパッチを内蔵し、撮影時の光源102を元にパッチ撮影をおこない、ホワイトバランスを調整する。これにより、より現実に即した再現画像を提供することができる。   For white balance adjustment, in addition to calibration by patch shooting, for example, the color of the illumination light is expressed by the color temperature (K), and the RGB value balance can be adjusted accordingly, or the shooting mode can be adjusted in advance according to the shooting scene. And the user can select a shooting mode according to the shooting scene. However, since such a method is not a value adjusted under the actual light source 102, a strict calibration cannot be performed. For this reason, the digital camera 101 incorporates a color patch therein, performs patch shooting based on the light source 102 at the time of shooting, and adjusts the white balance. Thereby, it is possible to provide a reproduction image that is more realistic.

図3は、キャリブレーション部の機能的構成を示すブロック図である。キャリブレーション部221は、撮影時光源取得部301、パッチ部302、校正部303、光量検出部304、光量判断部305によって構成される。撮影時光源取得部301は、デジタルカメラ101によって写真撮影をおこなう際の光源102の光を採光窓101aから取得し、パッチ部302まで導く。   FIG. 3 is a block diagram illustrating a functional configuration of the calibration unit. The calibration unit 221 includes a photographing light source acquisition unit 301, a patch unit 302, a calibration unit 303, a light amount detection unit 304, and a light amount determination unit 305. The shooting light source acquisition unit 301 acquires the light of the light source 102 when taking a picture with the digital camera 101 from the lighting window 101 a and guides it to the patch unit 302.

パッチ部302は、キャリブレーション用のカラーパッチを備え、撮影時光源取得部301によって取得された光によって、カラーパッチの撮影(パッチ撮影)をおこない、撮影によって得たRGB値を校正部303に出力する。キャリブレーション部221がおこなうカラーキャリブレーションがホワイトバランスの調整のみである場合は、パッチは白色のパッチのみでよい。   The patch unit 302 includes a color patch for calibration, performs color patch shooting (patch shooting) with the light acquired by the light source acquisition unit 301 during shooting, and outputs RGB values obtained by shooting to the calibration unit 303. To do. When the color calibration performed by the calibration unit 221 is only white balance adjustment, the patch may be only a white patch.

校正部303は、パッチ部302によって出力されたパッチ撮影時のRGB値と、その色の理想RGB値とを比較して、RGB値の校正値を算出する。また、校正部303は、算出したRGB値の校正値に基づいて、画像データのRGB値を校正処理する。なお、校正値の算出方法は、各種のアルゴリズムが知られているので、詳細な説明を省略する。   The calibration unit 303 compares the RGB value at the time of patch shooting output from the patch unit 302 with the ideal RGB value of the color, and calculates the calibration value of the RGB value. Further, the calibration unit 303 calibrates the RGB values of the image data based on the calculated calibration values of the RGB values. Since various algorithms are known for the calibration value calculation method, a detailed description thereof will be omitted.

光量検出部304は、撮影時光源取得部301によって取得された光の光量を検出する。また、光量判断部305は、光量検出部304によって検出された光量が、パッチ部302でパッチ撮影するのに充分なものであるかを判断する。採光窓101aが影に覆われている場合など、パッチ部302に充分な光が供給されていないと、パッチ撮影によって出力されるRGB値は撮影時光源下のものと異なってしまい、正しいホワイトバランスの校正をおこなうことができないからである。   The light amount detection unit 304 detects the light amount of light acquired by the photographing light source acquisition unit 301. The light amount determination unit 305 determines whether the light amount detected by the light amount detection unit 304 is sufficient for the patch unit 302 to take a patch image. If sufficient light is not supplied to the patch unit 302, such as when the daylighting window 101a is covered with a shadow, the RGB values output by patch shooting differ from those under the light source during shooting, and the correct white balance This is because it cannot be calibrated.

以上のような構成によって、デジタルカメラ101は、撮影した画像のキャリブレーションをおこない、適切な再現画像を提供する。画像のキャリブレーションは、校正値の算出および撮影した画像への校正値の適用によっておこなわれる。以下、デジタルカメラ101がおこなう校正値算出処理および写真撮影時の処理について説明する。   With the configuration described above, the digital camera 101 calibrates the captured image and provides an appropriate reproduced image. Image calibration is performed by calculating a calibration value and applying the calibration value to a captured image. Hereinafter, a calibration value calculation process performed by the digital camera 101 and a process at the time of taking a picture will be described.

(デジタルカメラ101のキャリブレーション処理)
図4は、デジタルカメラがおこなう校正値算出処理の手順を示すフローチャートである。まず、制御部201は、ホワイトバランス調整モードが指定されたかを判断する(ステップS401)。ホワイトバランス調整モードの指定は、たとえば、ユーザが操作部212を操作することによっておこなう。ホワイトバランス調整モードの指定がおこなわれた場合は(ステップS401:Yes)、撮影時光源取得部301は、撮影時光源の光を取得する(ステップS402)。一方、ホワイトバランス調整モードの指定がおこなれない場合は、指定がおこなわれるまで待機する(ステップS401:Noのループ)。
(Digital camera 101 calibration process)
FIG. 4 is a flowchart showing a procedure of calibration value calculation processing performed by the digital camera. First, the control unit 201 determines whether a white balance adjustment mode is designated (step S401). The white balance adjustment mode is designated by operating the operation unit 212 by the user, for example. When the white balance adjustment mode is designated (step S401: Yes), the shooting light source acquisition unit 301 acquires the light of the shooting light source (step S402). On the other hand, if the white balance adjustment mode cannot be designated, the process waits until the designation is made (step S401: No loop).

ステップS402において、撮影時光源の光の取得がおこなわれると、光量検出部304は取得された光の光量を検出する(ステップS403)。そして、光量判断部305によってパッチ撮影をおこなうのに充分な光量が確保されているかを判断する(ステップS404)。充分な光量が確保されている場合は(ステップS404:Yes)、パッチ部302によってパッチ撮影をおこなう(ステップS405)。   In step S402, when the light from the light source during photographing is acquired, the light amount detection unit 304 detects the light amount of the acquired light (step S403). Then, the light amount determination unit 305 determines whether a sufficient amount of light is secured for performing patch photography (step S404). If a sufficient amount of light is secured (step S404: Yes), patch shooting is performed by the patch unit 302 (step S405).

一方、充分な光量が確保されていない場合は(ステップS404:No)、表示部213にエラーメッセージを表示して(ステップS406)、S404に戻り、充分な光量が確保されるまで待機する。このエラーメッセージは、パッチ撮影をおこなうのに充分な光量が確保されていないため、正しいキャリブレーションをおこなうことができない旨の表示である。   On the other hand, when a sufficient light quantity is not secured (step S404: No), an error message is displayed on the display unit 213 (step S406), and the process returns to S404 and waits until a sufficient light quantity is secured. This error message is an indication that correct calibration cannot be performed because sufficient light quantity is not secured for performing patch photography.

ステップS405においてパッチ撮影がおこなわれると、校正部303は、パッチ部302によって出力されたパッチ撮影データと、基準RGB値とを比較して(ステップS407)、RGB値の校正値を算出し(ステップS408)、本フローチャートによる処理を終了する。ここで、基準RGB値とは、それぞれの色空間における各色を示すRGB値である。   When patch shooting is performed in step S405, the calibration unit 303 compares the patch shooting data output by the patch unit 302 with the reference RGB value (step S407), and calculates the calibration value of the RGB value (step S407). S408), the process according to this flowchart is terminated. Here, the reference RGB value is an RGB value indicating each color in each color space.

図5は、写真撮影時のデジタルカメラの処理手順を示すフローチャートである。制御部201は、ユーザによって写真撮影のための操作がなされ、画像データを取得すると(ステップS501)、ユーザによって撮影モードの設定がされているかを判断する(ステップS502)。撮影モードとは、夕日や夜景、蛍光灯など特定の光源に合わせたRGB値のプリセットを適用することによって、適切なホワイトバランスを設定するものである。   FIG. 5 is a flowchart showing a processing procedure of the digital camera at the time of photographing. When the user performs an operation for taking a photograph and acquires image data (step S501), the control unit 201 determines whether the user has set a shooting mode (step S502). In the shooting mode, an appropriate white balance is set by applying a preset RGB value suitable for a specific light source such as sunset, night view, or fluorescent lamp.

撮影モードの設定がおこなわれている場合は(ステップS502:Yes)、校正部303によって、ステップS501で取得した画像データに、撮影モードのRGB値に校正値を反映した校正処理をおこない(ステップS503)、ステップS505に移行する。一方、撮影モードの設定がおこなわれていない場合は(ステップS502:No)、ステップS501で取得した画像データに、校正値に合わせた校正処理をおこなう(ステップS504)。そして、画像記録部215に校正処理後の画像データを保存する(ステップS505)。   When the shooting mode is set (step S502: Yes), the calibration unit 303 performs a calibration process in which the calibration value is reflected in the RGB value of the shooting mode on the image data acquired in step S501 (step S503). ), The process proceeds to step S505. On the other hand, when the shooting mode is not set (step S502: No), the image data acquired in step S501 is calibrated according to the calibration value (step S504). Then, the image data after the calibration process is stored in the image recording unit 215 (step S505).

ユーザの操作が終了し、撮影が終了すると(ステップS506:Yes)、本フローチャートによる処理を終了する。一方、撮影が終了しない場合は(ステップS506:No)、ステップS501に戻り、以降の処理を繰り返す。   When the user's operation is finished and shooting is finished (step S506: Yes), the processing according to this flowchart is finished. On the other hand, when the photographing is not completed (step S506: No), the process returns to step S501 and the subsequent processing is repeated.

以上説明したように、本実施の形態にかかる画像撮影装置によれば、画像撮影装置内部にカラーパッチを設け、パッチ撮影をおこない、パッチ画像データに基づいて撮影画像データを校正する。これにより、ユーザに煩雑な操作を負わせることなく、カラーパッチを用いた色校正(カラーキャリブレーション)をおこなった撮影画像データを提供することができる。   As described above, according to the image photographing apparatus according to the present embodiment, a color patch is provided in the image photographing apparatus, patch photographing is performed, and the photographed image data is calibrated based on the patch image data. Accordingly, it is possible to provide photographed image data that has been subjected to color calibration (color calibration) using a color patch without burdening the user with complicated operations.

また、白色のカラーパッチのみを設けることによって、装置内のスペースを有効に活用しつつ、ホワイトバランスの調整をおこなうことができる。また、撮影モードによって、設定したホワイトバランスと、画像撮影時の外光に適合したホワイトバランスとに基づいて、色校正をおこない、より現実に適合した撮影画像データを提供することができる。   Further, by providing only the white color patch, it is possible to adjust the white balance while effectively utilizing the space in the apparatus. In addition, color calibration is performed based on the set white balance and the white balance suitable for the external light at the time of image capture depending on the shooting mode, and the captured image data more suitable for reality can be provided.

光量判断部305を設けることによって、カラーパッチの撮影に充分な光量が取得できているかを判断する。このため、光量不足によってカラーパッチの撮影が失敗するのを防止することができる。   By providing the light amount determination unit 305, it is determined whether a sufficient amount of light for capturing the color patch can be acquired. For this reason, it is possible to prevent the shooting of the color patch from failing due to insufficient light quantity.

なお、本実施の形態で説明した画像撮影方法は、あらかじめ用意されたプログラムをパーソナル・コンピュータやワークステーション等のコンピュータで実行することにより実現することができる。このプログラムは、ハードディスク、フレキシブルディスク、CD−ROM、MO、DVD等のコンピュータで読み取り可能な記録媒体に記録され、コンピュータによって記録媒体から読み出されることによって実行される。またこのプログラムは、インターネット等のネットワークを介して配布することが可能な伝送媒体であってもよい。   The image capturing method described in the present embodiment can be realized by executing a program prepared in advance on a computer such as a personal computer or a workstation. This program is recorded on a computer-readable recording medium such as a hard disk, a flexible disk, a CD-ROM, an MO, and a DVD, and is executed by being read from the recording medium by the computer. The program may be a transmission medium that can be distributed via a network such as the Internet.

実施の形態にかかる画像撮影装置の使用態様の一例を示す図。The figure which shows an example of the usage condition of the imaging device concerning embodiment. デジタルカメラの機能的構成を示すブロック図。The block diagram which shows the functional structure of a digital camera. キャリブレーション部の機能的構成を示すブロック図。The block diagram which shows the functional structure of a calibration part. デジタルカメラがおこなう校正値算出処理の手順を示すフローチャート。The flowchart which shows the procedure of the calibration value calculation process which a digital camera performs. 写真撮影時のデジタルカメラの処理手順を示すフローチャート。The flowchart which shows the process sequence of the digital camera at the time of photography.

符号の説明Explanation of symbols

101 デジタルカメラ、101a 採光窓、102 光源、103 被写体、201 制御部、211 撮影部、212 操作部、213 表示部、214 画像処理部、215 画像記録部、221 キャリブレーション部、301 撮影時光源取得部、302 パッチ部、303 校正部、304 光量検出部、305 光量判断部   DESCRIPTION OF SYMBOLS 101 Digital camera, 101a Daylighting window, 102 Light source, 103 Subject, 201 Control part, 211 Photographing part, 212 Operation part, 213 Display part, 214 Image processing part, 215 Image recording part, 221 Calibration part, 301 Acquisition of light source during photographing Section 302 patch section 303 calibration section 304 light quantity detection section 305 light quantity determination section

Claims (9)

被写体の画像を撮影し、撮影画像データを出力する画像撮影手段と、
前記画像撮影手段によって画像を撮影する際の外光を用いて、装置内に設けられたカラーパッチの撮影をおこない、パッチ画像データを出力するパッチ撮影手段と、
前記パッチ撮影手段によって撮影された前記パッチ画像データに基づいて、前記画像撮影手段によって撮影された前記撮影画像データの色校正をおこなう校正手段と、
を備えることを特徴とする画像撮影装置。
Image capturing means for capturing an image of a subject and outputting captured image data;
A patch photographing means for photographing a color patch provided in the apparatus using external light when photographing an image by the image photographing means, and outputting patch image data;
A calibration unit that performs color calibration of the captured image data captured by the image capturing unit based on the patch image data captured by the patch capturing unit;
An image photographing apparatus comprising:
前記校正手段は、前記パッチ撮影手段によって撮影された前記パッチ画像データのRGB値と、前記カラーパッチの基準RGB値とに基づいて、前記撮影画像データのRGB値を校正することを特徴とする請求項1に記載の画像撮影装置。   The calibration means calibrates the RGB values of the photographed image data based on the RGB values of the patch image data photographed by the patch photographing means and a reference RGB value of the color patch. Item 2. The image photographing device according to Item 1. 前記カラーパッチは、グレーもしくは各基準カラーを配列したものであることを特徴とする請求項1または2に記載の画像撮影装置。   The image photographing apparatus according to claim 1, wherein the color patch is a gray color or an array of reference colors. 前記カラーパッチは白色であり、
前記パッチ撮影手段は、白色の前記カラーパッチを撮影し、
前記校正手段は、前記撮影画像データのホワイトバランスの校正をおこなうことを特徴とする請求項1または2に記載の画像撮影装置。
The color patch is white;
The patch photographing means photographs the white color patch,
3. The image photographing apparatus according to claim 1, wherein the calibration unit calibrates white balance of the photographed image data.
前記外光下でのホワイトバランスを設定する設定手段を備え、
前記校正手段は、前記設定手段によって設定された前記外光下でのホワイトバランスと、前記パッチ画像データとに基づいて、前記色校正をおこなうことを特徴とする請求項4に記載の画像撮影装置。
Setting means for setting the white balance under the external light,
5. The image photographing apparatus according to claim 4, wherein the calibration unit performs the color calibration based on the white balance under the external light set by the setting unit and the patch image data. .
前記パッチ撮影手段は、前記外光を取得する取得手段を備え、
前記取得手段が取得した前記外光が、前記パッチ撮影手段がおこなう前記カラーパッチの撮影が可能な光量かを判断する判断手段を備えることを特徴とする請求項1〜5のいずれか一つに記載の画像撮影装置。
The patch photographing means includes an acquisition means for acquiring the external light,
6. The apparatus according to claim 1, further comprising a determination unit configured to determine whether the external light acquired by the acquisition unit is an amount of light that can be captured by the color patch performed by the patch imaging unit. The image photographing device described.
被写体の画像を撮影し、撮影画像データを出力する画像撮影工程と、
前記画像撮影工程によって画像を撮影する際の外光を用いて、装置内に設けられたカラーパッチの撮影をおこない、パッチ画像データを出力するパッチ撮影工程と、
前記パッチ撮影工程によって撮影された前記パッチ画像データに基づいて、前記画像撮影工程によって撮影された前記撮影画像データの色校正をおこなう校正工程と、
を含むことを特徴とする画像撮影方法。
An image capturing process for capturing an image of a subject and outputting captured image data;
A patch photographing step of photographing a color patch provided in the apparatus using outside light when photographing an image by the image photographing step, and outputting patch image data;
Based on the patch image data photographed by the patch photographing process, a calibration process for performing color calibration of the photographed image data photographed by the image photographing process;
An image photographing method comprising:
請求項7に記載の画像撮影方法をコンピュータに実行させることを特徴とする画像撮影プログラム。   An image photographing program for causing a computer to execute the image photographing method according to claim 7. 請求項8に記載の画像撮影プログラムを記録したコンピュータに読み取り可能な記録媒体。

A computer-readable recording medium on which the image photographing program according to claim 8 is recorded.

JP2005094811A 2005-03-29 2005-03-29 Device, method and program for image photography, and recording medium Withdrawn JP2006279459A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005094811A JP2006279459A (en) 2005-03-29 2005-03-29 Device, method and program for image photography, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005094811A JP2006279459A (en) 2005-03-29 2005-03-29 Device, method and program for image photography, and recording medium

Publications (1)

Publication Number Publication Date
JP2006279459A true JP2006279459A (en) 2006-10-12

Family

ID=37213745

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005094811A Withdrawn JP2006279459A (en) 2005-03-29 2005-03-29 Device, method and program for image photography, and recording medium

Country Status (1)

Country Link
JP (1) JP2006279459A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011512112A (en) * 2008-02-13 2011-04-14 クゥアルコム・インコーポレイテッド White balance calibration of digital camera devices
JP2016533663A (en) * 2013-11-08 2016-10-27 ヌビア テクノロジー カンパニー リミテッド White balance adjustment method and apparatus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011512112A (en) * 2008-02-13 2011-04-14 クゥアルコム・インコーポレイテッド White balance calibration of digital camera devices
JP2016533663A (en) * 2013-11-08 2016-10-27 ヌビア テクノロジー カンパニー リミテッド White balance adjustment method and apparatus
US9912927B2 (en) 2013-11-08 2018-03-06 Nubia Technology Co., Ltd. Method for adjusting white balance and device

Similar Documents

Publication Publication Date Title
WO2020029732A1 (en) Panoramic photographing method and apparatus, and imaging device
WO2020057199A1 (en) Imaging method and device, and electronic device
US20070041030A1 (en) Photographing apparatus
JP5126344B2 (en) Imaging apparatus, imaging method, and program
JP5407600B2 (en) Image processing apparatus, image processing method, and electronic camera
JP5279636B2 (en) Imaging device
KR20120034412A (en) Digital photographing apparatus and control method thereof
JP2005197996A (en) Control method and controller of digital camera
JP2006238311A (en) Photographing apparatus and program
JP5127638B2 (en) Image processing apparatus and method
JP2005117524A (en) Image processing system
JP6210772B2 (en) Information processing apparatus, imaging apparatus, control method, and program
JP5854235B2 (en) Imaging apparatus, imaging method, and program
JP6231814B2 (en) EXPOSURE DETERMINING DEVICE, IMAGING DEVICE, CONTROL METHOD, AND PROGRAM
JP2006279459A (en) Device, method and program for image photography, and recording medium
JP2005051298A (en) Digital camera and template data structure
JP2007306243A (en) Imaging apparatus
JP2001142442A (en) System and method for preparing profile, and digital photographing device, recording medium, and display measuring method
JP2005176102A (en) Apparatus and method of imaging and imaging system
JP5543636B2 (en) Imaging device
JP5842940B2 (en) Image processing apparatus and electronic camera
JP5082996B2 (en) Imaging device
JP2006222612A (en) Raw data output device, raw data structure, and raw data output method
JP4978669B2 (en) Image processing apparatus, electronic camera, and image processing program
JP5828927B2 (en) Imaging device

Legal Events

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

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20070404

A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20080603