JP2004236159A - Image recording method - Google Patents

Image recording method Download PDF

Info

Publication number
JP2004236159A
JP2004236159A JP2003024316A JP2003024316A JP2004236159A JP 2004236159 A JP2004236159 A JP 2004236159A JP 2003024316 A JP2003024316 A JP 2003024316A JP 2003024316 A JP2003024316 A JP 2003024316A JP 2004236159 A JP2004236159 A JP 2004236159A
Authority
JP
Japan
Prior art keywords
color
image data
color space
image
colors
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
JP2003024316A
Other languages
Japanese (ja)
Inventor
Kentaro Matsumoto
健太郎 松本
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2003024316A priority Critical patent/JP2004236159A/en
Publication of JP2004236159A publication Critical patent/JP2004236159A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)
  • Color, Gradation (AREA)
  • Image Processing (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a technique for more conveniently recording an image to be expressed in colors belonging to a color space including colors outside a visible region in a prescribed recording medium when the colors belong to the color space including the colors outside the visible region and can be expressed in colors belonging to a color space with a smaller number of colors which can be expressed by the color space. <P>SOLUTION: In the case of recording image data to be expressed by using colors belonging to a first color space in the prescribed recording medium, a color area of the colors used by the image data is judged and when the colors used by the image data are judged that the number of colors which can be expressed is less than that of the first color space and the colors can also be expressed in a second color space to which visible colors belong, information indicating that the color space in which the colors used by the image data belong is the second color space is recorded in the recording medium with the image data. <P>COPYRIGHT: (C)2004,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は、画像データ、特にディジタルスチルカメラやディジタルビデオカメラなどにより撮像された画像データ、動画像を構成する各フレームの画像データを所定の記録媒体に記録する技術に関するものである。
【0002】
【従来の技術】
現在、デジタルカメラで撮影した画像データはカメラ内部でsRGB形式に変換され、JPEG方式で圧縮され、Exif/DCFフォーマットで保存するのが主流である。図2に従来のディジタルカメラの機能構成を示す。図2は従来のディジタルカメラの機能構成を示すブロック図である。
【0003】
201は撮像部で、撮像レンズ、CCD等の撮像素子、撮像素子からの出力信号のゲインを調整するゲイン調整回路、ゲイン調整後の撮像素子の出力信号をデジタル信号に変換するA/D変換回路、変換したデジタル信号を一時記憶するメモリ等により構成され、上記各部により撮像部201は、撮像した画像をディジタル画像データとして後段の画素補間部203に出力する。
【0004】
202は露出調整部で、撮像部201から出力された画像データを参照して、画像中の所定の部分の輝度に基づき、画像が適正な明るさになるように所定のプログラム線図に従って、シャッター速度と絞り値を決定し、撮像部201に含まれる撮像素子の露光時間と撮影レンズの絞りを制御する。203は画素補間部で、撮像部201から出力された画像データの白バランスの調整を行いながら、画像の各画素の画素値であるR、G、Bの値を撮像素子の色フィルタ配列に応じて補間し、カラー画像データを出力する。
【0005】
204は色補正部で、画素補間部203から出力されたカラー画像データに対して、色再現特性が所望の特性になるように色補正を行う。205は画像圧縮部で、色補正部204により色補正されたカラー画像データに対して圧縮符号化処理を行う。
【0006】
206は記録部で、画像圧縮部205により圧縮された画像データに対して所定の付帯情報を付加し、所定の形式に従った画像データとして、記録媒体207に記録する。この所定の形式は現在ではExif/DCFフォーマットが一般的である。
【0007】
【発明が解決しようとする課題】
上記Exif/DCFフォーマットでは、JPEG方式により圧縮された画像データ(主画像データ)だけでなく、一覧表示用の(主画像の)縮小画像や、撮影条件と共に、その画像データがどの色空間で表現されているかを示す情報も書き込まれる。ただし現在のDCFの規定では、以下のとおり、使用色空間はsRGB以外を認めていない。
【0008】
(JEIDA規格、カメラファイルシステム規格)DCFVersion1.0
色空間
Exif規格で定めるExifIFD中のColorSpaceタグを以下のとおりsRGBと宣言する。
【0009】
色空間 colorSpace(ExifIFD 必須)
sRGBを宣言する。
【0010】
Tag=40961(A001.H)
Type = Short
Value = 1(sRGB)
Count = 1
しかしながら将来的には、他の色空間、例えばAdobeRGBやscRGBを表す値を定義しさえすれば、sRGB以外の色空間によって表現された画像を扱うことは可能である。
【0011】
AdobeRGBは印刷用の色空間であり、sRGBに対して表現可能な色空間はやや広いものの、人間の可視領域を越えることはない。一方、scRGBは表現可能な色空間としては、人間の可視領域を越えるほど広く、コンピュータグラフィックスで合成した色なども扱うことが可能である。scRGBは各色16ビットで定義されており、scRGBの色空間が表現可能な色の数は216×216×216色、すなわち280兆色を超える。
【0012】
しかしながら、scRGBの色空間を用いても、scRGBの色空間が表現しうる色域に対して現実に存在しうる色、すなわち人間の可視領域内に含まれる色が色空間の容積に換算して約4割程度しかない。そのため、scRGBの色空間に属する色を用いたデータを受け取って処理を行う処理系を、各色16ビットの色空間を前提に設計すると、実際には無駄な部分が多くできてしまう。たとえば、ルックアップテーブルによる色変換を行う際にも、各色16ビットではすべてテーブル化すると入力が248エントリーという膨大な大きさのテーブルが必要となり、現実的ではない。
【0013】
また無駄の多い画像データはそのサイズにも無駄が発生するので、記憶媒体に記録する場合にも、記録領域に無駄が生じる。
【0014】
本発明は以上の問題に鑑みてなされたものであり、可視領域外の色を含む色空間に属する色であって、この色がこの色空間より表現可能な色の数が少ない色空間に属する色で表現可能である場合、この色によって表現される画像をより簡便に所定の記録媒体に記録する技術を提供することを目的とする。
【0015】
【課題を解決するための手段】
本発明の目的を達成するために、たとえば本発明の画像記録方法は以下の構成を備える。
【0016】
すなわち、第1の色空間に属する色を用いて表現される画像データを所定の記録媒体に記録する画像記録方法であって、
当該画像データが使用する色の色域を判断する判断工程と、
当該判断工程で当該画像データが用いる色が、第1の色空間よりも表現可能な色の数が少なく、且つ可視可能な色が属する第2の色空間においても表現可能な色であると判断された場合、当該画像データを前記記録媒体に記録する際に、当該画像データが用いる色が属する色空間が前記第2の色空間であることを示す情報を前記画像データと共に前記記録媒体に記録する記録工程と
を備えることを特徴とする。
【0017】
【発明の実施の形態】
以下添付図面を参照して、本発明を好適な実施形態に従って詳細に説明する。
【0018】
[第1の実施形態]
図1は本実施形態における画像記録装置の機能構成を示すブロック図である。なお図2と同じ部分には同じ番号をつけており、その説明を省略する。また同図に示した各部はハードウェアにより構成されていても良いし、夫々の各部をプログラムにより表現し、コンピュータに読み込ませ、このコンピュータのCPUにより実行させることで同図の画像記録装置の機能を実現しても良い。
【0019】
104は色補正部で、画素補間部203から出力されたカラー画像データに対して、色特性が所望の特性になるように色補正を行う。本実施形態における色補正部104は、このカラー画像データのRGBの夫々の画素値が所定の特性の値となるように、カラー画像データを構成する各画素値に対してマトリクス演算を行い、更にガンマ補正を行う。また本実施形態では、カラー画像データに用いられている各色はscRGBの色空間に属するものとし、R、G、B夫々は16ビットで表現されるものとする。105は画像圧縮部で、色補正部204により色補正されたカラー画像データに対してJPEGの拡張システムなどの方式に従って圧縮符号化処理を行う。
【0020】
106は記録部で、画像圧縮部105により圧縮された画像データに対して所定の付帯情報を付加し、所定の形式(Exif/DCFフォーマット)に従った画像データとして、記録媒体207に記録する。またこの付帯情報には、色域判定部108による判定結果に従った付帯情報も含まれる場合がある。この色域判定部108による判定結果に従った付帯情報について詳しくは後述する。
【0021】
108は色域判定部で、色補正部104から出力されるカラー画像データを参照して、このカラー画像データに用いられている色の色域を判断する。その結果、このカラー画像データに用いられている色が属する色空間を判断し、判断結果を画像記録部106に通知する。
【0022】
次に、上記付帯情報について説明する。上述の通り、画像を圧縮して記録媒体207に記録する際には、圧縮された画像データに、この画像データがどの色空間に属する色で表現されているのかを示す情報が、上記付帯情報の1つとして付加される。本実施形態では、カラー画像データに用いられている色はscRGBの色空間に属するものとしているので、画像記録部106は、まず、以下の情報を圧縮された画像データに付帯情報の1つとして付加する。
【0023】
色空間 colorSpace(ExifIFD 必須)
Tag=40961(A001.H)
Type = Short
Value = 2(scRGB)
Count =1
色空間の種類を表す変数であるValueにはscRGBを示す値(例えば2)が設定されている。
【0024】
ここで色域判定部108がカラー画像データに用いられている色の色域を判断した結果、この色域がscRGBよりも表現色数が少ない色空間でも表現可能であると判断した場合、例えばsRGBでも表現可能であると判断した場合には、画像記録部106は更に以下の情報を圧縮された画像データに付帯情報の1つとして付加する。
【0025】
色域情報 Gammut(ExifIFD オプション)
画像データの色域情報を記録する。
【0026】
Tag=40XXX(AXXX.H)
Type = Short
Value = 1(sRGB)
Count =1
この付帯情報は、カラー画像データに属する色が使用している色空間はscRGBであるが、この色域はsRGBの範囲内であることを示している。これにより、カラー画像データはscRGBの色空間における色が使用可能であるので、より大きな色空間を扱う装置との整合性をとることができる。また、画像を処理する装置に対しては、このカラー画像データがsRGBで扱うことが出来るものであることを通知することができるので、この装置に対して無駄にscRGBに対応した負荷の大きい処理を行わせることを避けることが出来る。
【0027】
[第2の実施形態]
第1の実施形態では色域判定部108がカラー画像データに用いられている色域がsRGBで表現可能であるか否かを判定していたが、更に他の色空間で表現可能であるか否かを判断しても良い。
【0028】
図3に、本実施形態における画像記録装置が行う処理のフローチャートを示す。同図に示したフローチャートは1つの画像に対する処理であって、ステップS401からステップS406までの処理は1つの画像を構成する全ての画素に対するものである。
【0029】
まず色補正部104はカラー画像データにおける最初の画素(例えば画像の左上隅の画素)のRGB値をXYZ値に変換する(ステップS401)。次に、色域判定部108はこの画素のXYZ値を参照し、sRGBの色域であるかを判断する(ステップS402)。
【0030】
sRGBの色域である場合には処理をステップS404に進め、画像記録部106はこの画素に対するフラグを、この画素が使用する色の色域がsRGBに属するものであることを示すフラグとしてたてる(ステップS404)。なお、たてたフラグは画像記録部106が保持するものとする。
【0031】
一方、sRGBの色域ではなく、AdobeRGBである場合には処理をステップS403からステップS405に進め、画像記録部106はこの画素に対するフラグを、この画素が使用する色の色域がAdobeRGBに属するものであることを示すフラグとしてたてる(ステップS405)。なお、たてたフラグは画像記録部106が保持するものとする。
【0032】
一方、sRGB、AdobeRGBのどちらの色域でもない場合には処理をステップS403からステップS406に進め、画像記録部106はこの画素に対するフラグを、この画素が使用する色の色域が馬蹄形全体に属するものであることを示すフラグとしてたてる(ステップS406)。なお、たてたフラグは画像記録部106が保持するものとする。
【0033】
そして以上の処理を画像を構成する全ての画素に対して行う。そして全ての画素に対して行われたと判定された場合(ステップS407)、画像記録部106は全ての画素に対してたてた各フラグを参照する。そして各フラグのうち、1つでも馬蹄形全体のフラグが存在すれば、この画像データが使用する色の色域が馬蹄形全体に属するものであることを示す付帯情報を圧縮された画像データに付加して記録媒体207に記録する。
【0034】
また、1つも馬蹄形全体のフラグが無く、AdobeRGBのフラグが存在する場合にはこの画像データが使用する色の色域がAdobeRGBに属するものであることを示す付帯情報を圧縮された画像データに付加して記録媒体207に記録する。
【0035】
また、以上の何れでもない場合、すなわち、1つも馬蹄形全体のフラグが無く、且つ1つもAdobeRGBのフラグが無く、sRGBのフラグは存在する場合には、この画像データが使用する色の色域がsRGBに属するものであることを示す付帯情報を圧縮された画像データに付加して記録媒体207に記録する。
【0036】
なお、各画素に対するフラグをたてていく段階で、たてたフラグが馬蹄形全体のフラグであった場合、この画像データが使用する色の色域は馬蹄形全体に属するものであると判断できるので、この時点で図3に示したフローチャートに従った処理を中断し、この画像データが使用する色の色域が馬蹄形全体に属するものであることを示す付帯情報を圧縮された画像データに付加して記録媒体207に記録する処理に移行しても良い。
【0037】
また以上説明した各実施形態に係る処理は、複数の画像に対して個別に適用可能である。その場合、ある画像はsRGBの領域で十分で、別の画像はAdobeRGB、さらに別の画像は馬蹄形すべて(つまり可視領域全体)が必要、というように、画像データの表現としては大きな空間を使っておきながらも、画像毎に実際に必要な色空間を記述することができる。
【0038】
[第3の実施形態]
あるいは、個々の画像について色域を判定し、その色域に外接するR、G、Bの点をxy座標系で表現してもよい。
【0039】
Tag=40961(A001.H)
Type = Short
Value = 2(scRGB)
Count =1
色域情報 Gammut(ExifIFD オプション)
画像データの色域を包含するRGB点のxy座標を記録する。タグの形式は以下のとおり。
【0040】
Tag=40XXX(AXXX.H)
Type = RATIONAL
Value = 1(sRGB)
Count = 6
値の例としては、sRGBの場合は
0.64, 0.33, 0.3, 0.6, 0.15, 0.06
となり、AdobeRGBの場合は
0.64, 0.33, 0.21, 0.71, 0.15, 0.06
となる。
【0041】
これにより個々の画像が占有している色域情報をより詳細に記録することができる。
【0042】
[他の実施形態]
本発明の目的は、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体(または記録媒体)を、システムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が記憶媒体に格納されたプログラムコードを読み出し実行することによっても、達成されることは言うまでもない。この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。また、コンピュータが読み出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているオペレーティングシステム(OS)などが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。
【0043】
さらに、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張カードやコンピュータに接続された機能拡張ユニットに備わるメモリに書込まれた後、そのプログラムコードの指示に基づき、その機能拡張カードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。
【0044】
また上記記憶媒体には、インターネットやLANなどのネットワークに使用される通信ケーブルなどの通信媒体が含まれる。すなわち、前述した実施形態のプログラムコードがネットワーク上のサーバ装置に保持されている場合には、このサーバ装置から上記ネットワークを介してコンピュータにダウンロードすることで、コンピュータにプログラムを導入することができる。よって、導入されたプログラムはコンピュータ上のCPUやMPUなどの制御回路により実行され、その結果、コンピュータは前述した実施形態に機能が実現されるわけであるから、前述した記憶媒体に上記ネットワークに使用される通信ケーブルなどの通信媒体が含まれることはいうまでもない。
【0045】
【発明の効果】
以上の説明により、本発明によって、可視領域外の色を含む色空間に属する色であって、この色がこの色空間より表現可能な色の数が少ない色空間に属する色で表現可能である場合、この色によって表現される画像をより簡便に所定の記録媒体に記録する技術を提供することができる。
【図面の簡単な説明】
【図1】本発明の第1の実施形態における画像記録装置の機能構成を示すブロック図である。
【図2】従来のディジタルカメラの機能構成を示すブロック図である。
【図3】記録対象の画像が複数存在する場合に、本発明の第3の実施形態における画像記録装置が行う処理のフローチャートである。
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a technique for recording image data, particularly image data captured by a digital still camera, a digital video camera, or the like, and image data of each frame constituting a moving image on a predetermined recording medium.
[0002]
[Prior art]
At present, image data captured by a digital camera is mainly converted into sRGB format inside the camera, compressed by JPEG format, and stored in Exif / DCF format. FIG. 2 shows a functional configuration of a conventional digital camera. FIG. 2 is a block diagram showing a functional configuration of a conventional digital camera.
[0003]
Reference numeral 201 denotes an imaging unit, an imaging lens, an imaging device such as a CCD, a gain adjustment circuit for adjusting the gain of an output signal from the imaging device, and an A / D conversion circuit for converting an output signal of the imaging device after the gain adjustment into a digital signal. The imaging unit 201 outputs a captured image as digital image data to a pixel interpolating unit 203 at a subsequent stage by the above units.
[0004]
Reference numeral 202 denotes an exposure adjustment unit which refers to image data output from the imaging unit 201, and performs shutter control according to a predetermined program diagram so that the image has an appropriate brightness based on the luminance of a predetermined portion in the image. The speed and the aperture value are determined, and the exposure time of the image sensor included in the imaging unit 201 and the aperture of the photographing lens are controlled. Reference numeral 203 denotes a pixel interpolation unit that adjusts the white balance of the image data output from the imaging unit 201 and adjusts the values of R, G, and B, which are the pixel values of each pixel of the image, according to the color filter array of the imaging device. To interpolate and output color image data.
[0005]
A color correction unit 204 performs color correction on the color image data output from the pixel interpolation unit 203 so that the color reproduction characteristics have desired characteristics. An image compression unit 205 performs a compression encoding process on the color image data color-corrected by the color correction unit 204.
[0006]
Reference numeral 206 denotes a recording unit which adds predetermined supplementary information to the image data compressed by the image compression unit 205 and records the image data on the recording medium 207 as image data in a predetermined format. The Exif / DCF format is generally used as the predetermined format at present.
[0007]
[Problems to be solved by the invention]
In the Exif / DCF format, not only the image data (main image data) compressed by the JPEG method but also a reduced image (of the main image) for displaying a list and the shooting conditions, and the image data are expressed in any color space. Information indicating whether or not the information has been written is also written. However, the current DCF rules do not permit the use of a color space other than sRGB as described below.
[0008]
(JEIDA standard, camera file system standard) DCF Version 1.0
The ColorSpace tag in Exif IFD defined by the color space Exif standard is declared as sRGB as follows.
[0009]
Color space colorSpace (ExifIFD required)
Declare sRGB.
[0010]
Tag = 40961 (A001.H)
Type = Short
Value = 1 (sRGB)
Count = 1
However, in the future, it is possible to handle an image represented by a color space other than sRGB as long as a value representing another color space, for example, AdobeRGB or scRGB is defined.
[0011]
Adobe RGB is a color space for printing. Although the color space that can be expressed with respect to sRGB is slightly wide, it does not exceed the human visible region. On the other hand, scRGB is a color space that can be expressed in a wider color space than the visible region of human beings, and can handle colors synthesized by computer graphics. scRGB is defined by 16 bits for each color, and the number of colors that can be represented in the scRGB color space exceeds 216 × 216 × 216 colors, that is, more than 280 trillion colors.
[0012]
However, even when the scRGB color space is used, a color that can actually exist in a color gamut that can be expressed by the scRGB color space, that is, a color included in the human visible region is converted into a volume of the color space. There is only about 40%. For this reason, if a processing system that receives and processes data using colors belonging to the scRGB color space is designed on the basis of a 16-bit color space for each color, there are actually many useless parts. For example, when performing color conversion using a look-up table, if all 16 bits of each color are tabulated, a huge table of 248 entries is required, which is not practical.
[0013]
In addition, wasteful image data also has a waste in its size, so that even when recording on a storage medium, there is waste in the recording area.
[0014]
The present invention has been made in view of the above problems, and is a color belonging to a color space including a color outside the visible region, and the color belongs to a color space in which the number of colors that can be expressed is smaller than this color space. An object of the present invention is to provide a technique for more easily recording an image represented by a color on a predetermined recording medium when the image can be represented by a color.
[0015]
[Means for Solving the Problems]
In order to achieve the object of the present invention, for example, an image recording method of the present invention has the following configuration.
[0016]
That is, an image recording method for recording image data expressed using a color belonging to the first color space on a predetermined recording medium,
A determining step of determining a color gamut of a color used by the image data;
In the determination step, it is determined that the color used by the image data is a color that can be expressed in the second color space to which the number of representable colors is smaller than that of the first color space and to which visible colors belong. When the image data is recorded on the recording medium, information indicating that the color space to which the color used by the image data belongs is the second color space is recorded on the recording medium together with the image data. Recording step.
[0017]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, the present invention will be described in detail according to preferred embodiments with reference to the accompanying drawings.
[0018]
[First Embodiment]
FIG. 1 is a block diagram illustrating a functional configuration of the image recording apparatus according to the present embodiment. The same parts as those in FIG. 2 are denoted by the same reference numerals, and description thereof will be omitted. Each part shown in the figure may be constituted by hardware, or each part may be represented by a program, read by a computer, and executed by the CPU of the computer, thereby realizing the functions of the image recording apparatus of the figure. May be realized.
[0019]
A color correction unit 104 performs color correction on the color image data output from the pixel interpolation unit 203 so that the color characteristics become desired characteristics. The color correction unit 104 according to the present embodiment performs a matrix operation on each pixel value forming the color image data so that each of the RGB pixel values of the color image data has a predetermined characteristic value. Perform gamma correction. In the present embodiment, each color used in the color image data belongs to the scRGB color space, and each of R, G, and B is represented by 16 bits. An image compression unit 105 performs a compression encoding process on the color image data color-corrected by the color correction unit 204 according to a method such as a JPEG extension system.
[0020]
Reference numeral 106 denotes a recording unit that adds predetermined supplementary information to the image data compressed by the image compression unit 105 and records the image data on the recording medium 207 as image data in a predetermined format (Exif / DCF format). The additional information may also include additional information according to the determination result by the color gamut determining unit 108. The additional information according to the determination result by the color gamut determination unit 108 will be described later in detail.
[0021]
Reference numeral 108 denotes a color gamut determining unit that determines the color gamut of the color used in the color image data with reference to the color image data output from the color correcting unit 104. As a result, the color space to which the color used in the color image data belongs is determined, and the determination result is notified to the image recording unit 106.
[0022]
Next, the additional information will be described. As described above, when an image is compressed and recorded on the recording medium 207, information indicating which color space the image data belongs to in the compressed image data includes the additional information. Is added. In the present embodiment, since the colors used in the color image data belong to the scRGB color space, the image recording unit 106 first converts the following information into the compressed image data as one of the supplementary information. Add.
[0023]
Color space colorSpace (ExifIFD required)
Tag = 40961 (A001.H)
Type = Short
Value = 2 (scRGB)
Count = 1
A value (for example, 2) indicating scRGB is set in Value, which is a variable representing the type of color space.
[0024]
Here, when the color gamut determination unit 108 determines the color gamut of the color used in the color image data, and determines that the color gamut can be expressed in a color space having a smaller number of expression colors than scRGB, for example, If the image recording unit 106 determines that the image data can be expressed also in sRGB, the image recording unit 106 further adds the following information to the compressed image data as one of the accompanying information.
[0025]
Color gamut information Gammut (Exif IFD option)
The color gamut information of the image data is recorded.
[0026]
Tag = 40XXX (AXXX.H)
Type = Short
Value = 1 (sRGB)
Count = 1
This additional information indicates that the color space used by the color belonging to the color image data is scRGB, but this color gamut is within the range of sRGB. As a result, the color image data can use colors in the scRGB color space, so that consistency with a device that handles a larger color space can be obtained. In addition, since it is possible to notify the image processing apparatus that the color image data can be handled in sRGB, a heavy load processing corresponding to scRGB is unnecessary for this apparatus. Can be avoided.
[0027]
[Second embodiment]
In the first embodiment, the color gamut determination unit 108 determines whether or not the color gamut used for the color image data can be represented by sRGB. It may be determined whether or not.
[0028]
FIG. 3 shows a flowchart of a process performed by the image recording apparatus according to the present embodiment. The flowchart shown in the figure is a process for one image, and the processes from step S401 to step S406 are for all the pixels constituting one image.
[0029]
First, the color correction unit 104 converts the RGB values of the first pixel (for example, the pixel at the upper left corner of the image) in the color image data into XYZ values (step S401). Next, the color gamut determining unit 108 determines whether or not the pixel is in the sRGB color gamut with reference to the XYZ values of the pixel (step S402).
[0030]
If the color gamut is sRGB, the process proceeds to step S404, and the image recording unit 106 sets a flag for this pixel as a flag indicating that the color gamut of the color used by this pixel belongs to sRGB. (Step S404). Note that the set flag is held by the image recording unit 106.
[0031]
On the other hand, if the color gamut of the color used by this pixel belongs to Adobe RGB, the process proceeds from step S403 to step S405 if the color gamut of this pixel belongs to Adobe RGB instead of sRGB. (Step S405). Note that the set flag is held by the image recording unit 106.
[0032]
On the other hand, if the color gamut is neither sRGB nor AdobeRGB, the process proceeds from step S403 to step S406, and the image recording unit 106 sets a flag for this pixel to indicate that the color gamut used by this pixel belongs to the entire horseshoe shape. It is set as a flag indicating that the object is the one (step S406). Note that the set flag is held by the image recording unit 106.
[0033]
Then, the above processing is performed on all the pixels constituting the image. If it is determined that the processing has been performed for all pixels (step S407), the image recording unit 106 refers to the flags set for all pixels. If at least one flag of the entire horseshoe shape exists among the flags, additional information indicating that the color gamut of the color used by the image data belongs to the entire horseshoe shape is added to the compressed image data. To the recording medium 207.
[0034]
If there is no flag for the entire horseshoe shape and there is an AdobeRGB flag, additional information indicating that the color gamut of the color used by this image data belongs to AdobeRGB is added to the compressed image data. Then, it is recorded on the recording medium 207.
[0035]
In cases other than the above, that is, when there is no flag for the entire horseshoe shape, no flag for AdobeRGB, and a flag for sRGB, the color gamut of the color used by this image data is Additional information indicating that the image data belongs to sRGB is added to the compressed image data and recorded on the recording medium 207.
[0036]
In addition, at the stage of setting the flag for each pixel, if the set flag is a flag of the entire horseshoe shape, it can be determined that the color gamut of the color used by this image data belongs to the entire horseshoe shape. At this point, the processing according to the flowchart shown in FIG. 3 is interrupted, and additional information indicating that the color gamut of the color used by the image data belongs to the entire horseshoe shape is added to the compressed image data. May be transferred to the process of recording on the recording medium 207.
[0037]
The processing according to each embodiment described above can be individually applied to a plurality of images. In this case, a large space is used to represent the image data, such that one image needs an sRGB area, another image needs Adobe RGB, and another image needs a horseshoe shape (that is, the entire visible area). However, it is possible to describe the actually required color space for each image.
[0038]
[Third Embodiment]
Alternatively, the color gamut of each image may be determined, and R, G, and B points circumscribing the color gamut may be represented by an xy coordinate system.
[0039]
Tag = 40961 (A001.H)
Type = Short
Value = 2 (scRGB)
Count = 1
Color gamut information Gammut (Exif IFD option)
The xy coordinates of the RGB points including the color gamut of the image data are recorded. The tag format is as follows:
[0040]
Tag = 40XXX (AXXX.H)
Type = RATIONAL
Value = 1 (sRGB)
Count = 6
Examples of values are 0.64, 0.33, 0.3, 0.6, 0.15, 0.06 for sRGB.
0.64, 0.33, 0.21, 0.71, 0.15, 0.06 in the case of AdobeRGB
It becomes.
[0041]
Thereby, the color gamut information occupied by each image can be recorded in more detail.
[0042]
[Other embodiments]
An object of the present invention is to supply a storage medium (or a recording medium) in which program codes of software for realizing the functions of the above-described embodiments are recorded to a system or an apparatus, and to provide a computer (or CPU or MPU) of the system or the apparatus. Can also be achieved by reading and executing the program code stored in the storage medium. In this case, the program code itself read from the storage medium realizes the function of the above-described embodiment, and the storage medium storing the program code constitutes the present invention. When the computer executes the readout program code, not only the functions of the above-described embodiments are realized, but also an operating system (OS) running on the computer based on the instruction of the program code. It goes without saying that a part or all of the actual processing is performed and the functions of the above-described embodiments are realized by the processing.
[0043]
Further, after the program code read from the storage medium is written into a memory provided in a function expansion card inserted into the computer or a function expansion unit connected to the computer, the function of the program is performed based on the instruction of the program code. It goes without saying that the CPU included in the expansion card or the function expansion unit performs part or all of the actual processing, and the processing realizes the functions of the above-described embodiments.
[0044]
The storage medium includes a communication medium such as a communication cable used for a network such as the Internet or a LAN. That is, when the program code of the above-described embodiment is stored in a server device on a network, the program can be introduced into the computer by downloading the program code from the server device to the computer via the network. Therefore, the introduced program is executed by a control circuit such as a CPU or an MPU on the computer, and as a result, the computer realizes the functions of the above-described embodiment. It goes without saying that communication media such as communication cables are included.
[0045]
【The invention's effect】
According to the above description, according to the present invention, it is possible to represent a color belonging to a color space including a color outside the visible region and a color belonging to a color space in which the number of colors that can be represented by this color space is small. In this case, it is possible to provide a technique for more easily recording an image represented by the color on a predetermined recording medium.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a functional configuration of an image recording apparatus according to a first embodiment of the present invention.
FIG. 2 is a block diagram showing a functional configuration of a conventional digital camera.
FIG. 3 is a flowchart of a process performed by an image recording apparatus according to a third embodiment of the present invention when a plurality of images to be recorded exist.

Claims (7)

第1の色空間に属する色を用いて表現される画像データを所定の記録媒体に記録する画像記録方法であって、
当該画像データが使用する色の色域を判断する判断工程と、
当該判断工程で当該画像データが用いる色が、第1の色空間よりも表現可能な色の数が少なく、且つ可視可能な色が属する第2の色空間においても表現可能な色であると判断された場合、当該画像データを前記記録媒体に記録する際に、当該画像データが用いる色が属する色空間が前記第2の色空間であることを示す情報を前記画像データと共に前記記録媒体に記録する記録工程と
を備えることを特徴とする画像記録方法。
An image recording method for recording image data expressed using a color belonging to a first color space on a predetermined recording medium,
A determining step of determining a color gamut of a color used by the image data;
In the determination step, it is determined that the color used by the image data is a color that can be expressed in the second color space to which the number of representable colors is smaller than that of the first color space and to which visible colors belong When the image data is recorded on the recording medium, information indicating that the color space to which the color used by the image data belongs is the second color space is recorded on the recording medium together with the image data. And an image recording method.
前記第1の色空間はscRGBであって、前記第2の色空間はsRGBであることを特徴とする請求項1に記載の画像記録方法。2. The image recording method according to claim 1, wherein the first color space is scRGB, and the second color space is sRGB. 前記第2の色空間には更に、AdobeRGB、馬蹄形全体が含まれており、
前記判断工程では、前記画像データの用いる色の色域が前記第2の色空間に属するいずれの色空間に属するものであるのかを更に判断し、
前記記録工程では、前記画像データが用いる色が属する色空間が、前記判断工程で判断した色空間であることを示す情報を前記画像データと共に前記記録媒体に記録することを特徴とする請求項2に記載の画像記録方法。
The second color space further includes AdobeRGB, the entire horseshoe shape,
In the determining step, it is further determined which color space the color gamut of the color used in the image data belongs to in the second color space,
3. The recording step, wherein information indicating that the color space to which the color used by the image data belongs is the color space determined in the determination step is recorded on the recording medium together with the image data. The image recording method described in 1.
第1の色空間に属する色を用いて表現される画像データを所定の記録媒体に記録する画像記録装置であって、
当該画像データが使用する色の色域を判断する判断手段と、
当該判断手段により当該画像データが用いる色が、第1の色空間よりも表現可能な色の数が少なく、且つ可視可能な色が属する第2の色空間においても表現可能な色であると判断された場合、当該画像データを前記記録媒体に記録する際に、当該画像データが用いる色が属する色空間が前記第2の色空間であることを示す情報を前記画像データと共に前記記録媒体に記録する記録手段と
を備えることを特徴とする画像記録装置。
An image recording apparatus that records image data expressed using a color belonging to a first color space on a predetermined recording medium,
Determining means for determining a color gamut of a color used by the image data;
The determination unit determines that the color used by the image data is a color that can be represented in the second color space to which the number of representable colors is smaller than that of the first color space and to which the visible color belongs. When the image data is recorded on the recording medium, information indicating that the color space to which the color used by the image data belongs is the second color space is recorded on the recording medium together with the image data. An image recording apparatus comprising:
コンピュータに請求項1乃至3の何れか1項に記載の画像記録方法を実行させることを特徴とするプログラム。A program for causing a computer to execute the image recording method according to claim 1. コンピュータを請求項4に記載の画像記録装置として機能させることを特徴とするプログラムA program for causing a computer to function as the image recording device according to claim 4. 請求項5又は6に記載のプログラムを格納することを特徴とするコンピュータ読み取り可能な記憶媒体。A computer-readable storage medium storing the program according to claim 5.
JP2003024316A 2003-01-31 2003-01-31 Image recording method Withdrawn JP2004236159A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003024316A JP2004236159A (en) 2003-01-31 2003-01-31 Image recording method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003024316A JP2004236159A (en) 2003-01-31 2003-01-31 Image recording method

Publications (1)

Publication Number Publication Date
JP2004236159A true JP2004236159A (en) 2004-08-19

Family

ID=32952881

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003024316A Withdrawn JP2004236159A (en) 2003-01-31 2003-01-31 Image recording method

Country Status (1)

Country Link
JP (1) JP2004236159A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008118590A (en) * 2006-11-08 2008-05-22 Fuji Xerox Co Ltd Image processor and image processing program
JP2013021397A (en) * 2011-07-07 2013-01-31 Nikon Corp Imaging apparatus, program, and recording medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008118590A (en) * 2006-11-08 2008-05-22 Fuji Xerox Co Ltd Image processor and image processing program
JP2013021397A (en) * 2011-07-07 2013-01-31 Nikon Corp Imaging apparatus, program, and recording medium

Similar Documents

Publication Publication Date Title
JP4217398B2 (en) Image data processing method, image data processing apparatus, storage medium, and program
JP4065482B2 (en) Image data processing method, apparatus, storage medium, and program
US8107113B2 (en) Printer and image processing apparatus
JP4533287B2 (en) Color processing method and apparatus
JP2004128809A (en) Method and apparatus for image processing, and imaging device
WO2003041418A1 (en) Image information transmitting method and image information processor
WO2015097032A1 (en) Method of mapping source colors of images of a video content into the target color gamut of a target color device
JP2005354372A (en) Apparatus and method for image recording device, method and system for image processing
JP2005210495A (en) Image processing apparatus, method, and program
JP2004096500A (en) Image pickup apparatus, image processing apparatus, and image recording apparatus
JP5552795B2 (en) Imaging apparatus, image processing apparatus, and program
JP2004040544A (en) Image processor, method, program and storage medium
JP5693089B2 (en) Image processing apparatus and image processing apparatus control method
JP2004336521A (en) Image processing method, image processor, and image recording apparatus
JP2007098897A (en) Printer
JP2004236159A (en) Image recording method
JP2006254369A (en) Color processing method and device thereof
JP2004222078A (en) Image processor, image processing method, and program thereof
JP2006203571A (en) Imaging apparatus, image processing apparatus, and image recording apparatus
JP2002094810A (en) Picture processor, picture processing method and memory medium having stored programs for the method
JP2004096508A (en) Image processing method, image processing apparatus, image recording apparatus, program, and recording medium
JP2006203573A (en) Imaging apparatus, image processor, and image recording apparatus
JP3900871B2 (en) Image file generation device and image data output device
JP2005341551A (en) Image processing apparatus, image processing method, program thereof, and recording medium
JP2007081478A (en) Printing system, imaging apparatus and control method thereof, printer, program and storage medium

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20060404