JP2004240992A - Output image adjustment of image file - Google Patents

Output image adjustment of image file Download PDF

Info

Publication number
JP2004240992A
JP2004240992A JP2004099458A JP2004099458A JP2004240992A JP 2004240992 A JP2004240992 A JP 2004240992A JP 2004099458 A JP2004099458 A JP 2004099458A JP 2004099458 A JP2004099458 A JP 2004099458A JP 2004240992 A JP2004240992 A JP 2004240992A
Authority
JP
Japan
Prior art keywords
image data
color space
image processing
color
value
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
JP2004099458A
Other languages
Japanese (ja)
Other versions
JP4010306B2 (en
JP2004240992A5 (en
Inventor
Kenji Fukazawa
賢二 深沢
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 JP2004099458A priority Critical patent/JP4010306B2/en
Publication of JP2004240992A publication Critical patent/JP2004240992A/en
Publication of JP2004240992A5 publication Critical patent/JP2004240992A5/ja
Application granted granted Critical
Publication of JP4010306B2 publication Critical patent/JP4010306B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image output device capable of correctly outputting color space information in image data creation. <P>SOLUTION: A CPU 31 of a color printer 20 executes gamma correction and matrix calculation M to image data of an RGB color space obtained by calculation of a matrix S. The CPU 31 executes a gamma conversion process to image data by using a set gamma correction value. The matrix calculation M is a calculation process for converting the RGB color space into an XYZ-based color space. When the matrix calculation M is executed, the CPU 31 refers to a Print Matching tag in order to reflect a color space in creating the image data, and the matrix calculation is executed by using a matrix (M) corresponding to the written color space. <P>COPYRIGHT: (C)2004,JPO&NCIPI

Description

本発明は、画像データの色空間上の変換を伴う処理技術に関する。   The present invention relates to a processing technique involving conversion of image data on a color space.

近年、撮影画像あるいは取り込み画像を取り扱いの容易な画像ファイルとして利用することができるディジタルスチルカメラ(DSC)、ディジタルビデオカメラ(DVC)、スキャナ等の需要が高まっている。一般的に、DSC等では、撮影画像データは画像圧縮ファイル形式の一つであるJPEG形式のファイルとして保存される。このJPEGファイルでは、圧縮率を高くするためにYCbCrの色空間を用いて画像データを表現している。したがって、DSC等は、RGB色空間によって表現されている撮影画像データをYCbCr色空間に変換している。また、このときDSC等が扱うRGB色空間は、パーソナルコンピュータで標準的に用いられているCRTモニタの色空間(例えば、sRGB:IEC61966 2−1)が用いられている。   In recent years, there has been an increasing demand for digital still cameras (DSC), digital video cameras (DVC), scanners, and the like that can use captured images or captured images as easily handled image files. Generally, in a DSC or the like, photographed image data is stored as a JPEG format file which is one of image compression file formats. In this JPEG file, image data is represented using a YCbCr color space in order to increase the compression ratio. Therefore, DSCs or the like convert captured image data expressed in the RGB color space into the YCbCr color space. At this time, the RGB color space handled by the DSC or the like uses the color space of a CRT monitor (for example, sRGB: IEC61966 2-1) which is used as a standard in personal computers.

パーソナルコンピュータでは、RGB色空間が画像データの標準的な色空間として用いられているため、このようなJPEGファイルを受け取ったパーソナルコンピュータは、JPEGファイルを伸長し、画像データの色空間をYCbCr色空間からRGB色空間へ変換する。こうしてRGB色空間に変換された画像データは、モニタに表示され、あるいは、CMYK色空間へ変換された後、プリンタを介して印刷媒体上に印刷出力される。   In a personal computer, the RGB color space is used as a standard color space for image data. Therefore, a personal computer that receives such a JPEG file decompresses the JPEG file and converts the color space of the image data into a YCbCr color space. To the RGB color space. The image data converted into the RGB color space is displayed on a monitor or converted into the CMYK color space, and then printed out on a print medium via a printer.

特開平11−331622号公報JP-A-11-331622

従来のパーソナルコンピュータにおける画像処理では、一般的に、CRTモニタによる出力を前提とし、YCbCr色空間からRGB色空間へ変換された画像データの色空間は、CRTモニタが表現可能な色空間特性であると共にパーソナルコンピュータにて共通に用いられているsRGB色空間にクリッピングされていた。   In image processing in a conventional personal computer, generally, output from a CRT monitor is assumed, and the color space of image data converted from the YCbCr color space to the RGB color space is a color space characteristic that can be expressed by the CRT monitor. At the same time, clipping was performed in the sRGB color space commonly used in personal computers.

したがって、DSC等の画像データ生成装置によって生成されたJPEGファイルをパーソナルコンピュータで伸長し、YCbCr色空間からRGB色空間に変換した際に、画像データのRGB色空間の表色域がsRGB色空間の表色域より広い場合であっても、sRGB色空間の表色域外の表色値は丸められてしまっていた。かかる場合には、sRGB色空間の表色域外の表色値は出力画像に反映されない。この結果、出力装置の色再現範囲がsRGB色空間よりも広い場合であっても、出力装置の色再現能力を生かすことができず、また、DSC上で可能な色再現能力についても有効に利用することができないという問題があった。   Therefore, when the JPEG file generated by the image data generating device such as DSC is decompressed by a personal computer and converted from the YCbCr color space to the RGB color space, the color gamut of the RGB color space of the image data is changed to the sRGB color space. Even when the color gamut is wider than the color gamut, the color values outside the color gamut of the sRGB color space have been rounded. In such a case, color values outside the color gamut of the sRGB color space are not reflected in the output image. As a result, even if the color reproduction range of the output device is wider than the sRGB color space, the color reproduction capability of the output device cannot be utilized, and the color reproduction capability available on the DSC can be effectively used. There was a problem that you can not.

その一方で、モニタの色再現特性にマッチしたsRGB色空間は、標準的なRGB色空間として広く用いられており、YCbCr色空間からRGB色空間への色空間の変換処理においても、モニタによる表示を前提とする色変換マトリクスが用いられているのが現状である。したがって、sRGB色空間の表色域よりも広い表色域を有するRGB色空間を新たに定義しても、入力装置から出力装置に至るまで、画像処理を実行する色空間として新たなRGB色空間が採用されない限り、汎用性に欠けるため、色空間特性を容易に変更することはできないという問題がある。   On the other hand, the sRGB color space that matches the color reproduction characteristics of the monitor is widely used as a standard RGB color space, and the display by the monitor is also used in the color space conversion process from the YCbCr color space to the RGB color space. Currently, a color conversion matrix based on the assumption is used. Therefore, even if a new RGB color space having a color gamut wider than the color gamut of the sRGB color space is newly defined, a new RGB color space is used as a color space for executing image processing from the input device to the output device. Unless is adopted, there is a problem that the color space characteristics cannot be easily changed because of lack of versatility.

これらの問題に対して、一部の画像ファイルユーザは、DSC等の有する色空間を反映させた適切な出力結果を得ることができるように画像ファイル修正ソフト等を用いて画像ファイルの画像調整を行っているが、このような画像調整を行うことは煩雑である。   To solve these problems, some image file users use image file correction software or the like to adjust the image of the image file so as to obtain an appropriate output result reflecting the color space of the DSC or the like. However, such image adjustment is complicated.

本発明は、上記問題を解決するためになされたものであり、画像データ生成時における色空間情報を正確に出力できる画像出力装置を提供することを目的とする。また、画像データを生成した装置、または、画像データを出力する装置の色再現域を有効に利用することができる画像出力装置を提供することを目的とする。   SUMMARY An advantage of some aspects of the invention is to provide an image output apparatus that can accurately output color space information at the time of generating image data. It is another object of the present invention to provide an image output device that can effectively use the color gamut of a device that generates image data or a device that outputs image data.

上記課題を解決するために本発明の第1の態様は、画像データと、所定の色空間の領域外の情報を使用するか否かを示すと共に前記画像データに関連付けられている使用情報とを用いて画像処理を実行する画像処理装置を提供する。本発明の第1の態様に係る画像処理装置は、前記画像データを取り込む画像データ取り込み手段と、前記画像データに関連付けられている前記使用情報を取得する使用情報取得手段と、前記取得された使用情報に基づいて、前記所定の色空間の領域外の情報を使用するか否かを判定する判定手段と、前記領域外情報を使用すると判定された場合には、前記領域外情報をその定義領域に内包し得る広い定義領域を有する広域色空間への色変換処理を含む前記画像データの画像処理を実行する画像処理手段とを備えることを特徴とする。   In order to solve the above-described problem, a first aspect of the present invention relates to a method of combining image data with usage information associated with the image data, which indicates whether to use information outside a region of a predetermined color space. Provided is an image processing apparatus that performs image processing using the same. An image processing apparatus according to a first aspect of the present invention includes: an image data capturing unit configured to capture the image data; a usage information obtaining unit configured to obtain the usage information associated with the image data; Determining means for determining whether to use the information outside the area of the predetermined color space based on the information, and, when it is determined that the information outside the area is used, the information outside the area is defined as the definition area. And image processing means for executing image processing of the image data including color conversion processing to a wide color space having a wide defined area that can be included in the image data.

本発明の第1の態様に係る画像処理装置によれば、所定の色空間の領域外の情報を使用する場合には、領域外情報をその定義領域に内包し得る広い定義領域を有する広域色空間への色変換処理を含む画像データの画像処理を実行するので、画像データ生成時に画像データに含まれていた表色値を利用して画像データを正確に再現することができる。   According to the image processing apparatus of the first aspect of the present invention, when information outside a region of a predetermined color space is used, a wide-area color having a wide definition region capable of including the outside-of-region information in the definition region Since the image processing of the image data including the color conversion processing to the space is executed, the image data can be accurately reproduced by using the colorimetric values included in the image data when the image data is generated.

本発明の第1の態様に係る画像処理装置において、前記領域外情報を使用しないと判定された場合には、前記画像処理手段は、前記所定の色空間と同等の定義領域を有する既定の色空間を介して前記画像データの画像処理を実行しても良い。かかる構成を備えることにより、領域外情報を使用しないと判定された場合にも既定の情報を用いて画像処理を実行することができる。   In the image processing apparatus according to the first aspect of the present invention, when it is determined that the out-of-area information is not used, the image processing unit may determine a predetermined color having a defined area equivalent to the predetermined color space. Image processing of the image data may be performed via a space. With this configuration, even when it is determined that the out-of-area information is not used, image processing can be performed using the predetermined information.

本発明の第1の態様に係る画像処理装置において、前記画像データは第1の色空間によって定義されており、前記画像データ取り込み手段は、前記取り込んだ画像データの色空間を前記第1の色空間から第2の色空間に変換し、前記画像処理手段は、前記第2の色空間によって定義されている画像データの色空間を、前記領域外表色値を用いて第3の色空間に変換しても良い。   In the image processing device according to the first aspect of the present invention, the image data is defined by a first color space, and the image data capturing unit converts the color space of the captured image data into the first color space. Converting the color space of the image data defined by the second color space into a third color space using the out-of-region color values. You may.

かかる構成を備えることにより、第2の色空間によって表現されている画像データの色空間を第3の色空間に変換する際に、領域外表色値を用いて色空間を変換することができるので、画像データ生成時に画像データに含まれていた表色値を利用して画像データを正確に再現することができる。   With such a configuration, when the color space of the image data represented by the second color space is converted to the third color space, the color space can be converted using the out-of-region color values. The image data can be accurately reproduced by using the colorimetric values included in the image data when the image data was generated.

本発明の第1の態様に係る画像処理装置において、前記第1の色空間はYCbCrの色空間であり、前記第2の色空間は第1のRGBの色空間であり、前記第3の色空間は前記第1のRGBの色空間よりも広い定義領域を有する第2のRGBの色空間であっても良い。また、前記第2のRGBの色空間は、sRGB色空間であっても良い。さらに、前記第3の色空間は、第2のRGB色空間に代えて、CIELABの色空間であっても良い。   In the image processing device according to the first aspect of the present invention, the first color space is a YCbCr color space, the second color space is a first RGB color space, and the third color space is a third color space. The space may be a second RGB color space having a defined area wider than the first RGB color space. Further, the second RGB color space may be an sRGB color space. Further, the third color space may be a CIELAB color space instead of the second RGB color space.

かかる構成を備える場合には、第1のRGBの色空間よりも広い第2のRGB色空間を有する画像データを用いて画像を出力できるので、第1のRGB色空間を有する画像データを用いる場合よりも高い彩度の画像を出力することができる。また、出力データの色空間がCIELAB色空間の場合には、カラーマッチングが容易になるので、更に他の装置において画像処理を行う場合に便利である。   When such a configuration is provided, an image can be output using image data having the second RGB color space wider than the first RGB color space, so that image data having the first RGB color space is used. It is possible to output an image having a higher saturation than the above. Further, when the color space of the output data is the CIELAB color space, color matching is facilitated, which is convenient when performing image processing in another device.

本発明の第1の態様に係る画像処理装置において、
前記画像データは、前記所定の色空間の定義領域内の表色値である第1の正の表色値と、前記所定の色空間の定義領域外の表色値である第2の正の表色値および負の表色値の少なくともいずれか一方を含むと共に、第1の色空間によって表現されており、
前記画像データ取り込み手段は、前記第1および第2の正の表色値並びに前記負の表色値を用いて、前記画像データの色空間を前記第1の色空間から第2の色空間に変換しても良い。かかる構成を備えることにより、画像データが有する第1および第2の正の表色値および負の表色値を反映した画像処理を実行することができるので、出力装置における画像データの再現性を向上させることができる。
In the image processing device according to the first aspect of the present invention,
The image data includes a first positive colorimetric value that is a colorimetric value within the defined area of the predetermined color space and a second positive colorimetric value that is a colorimetric value outside the defined area of the predetermined color space. Including at least one of a color specification value and a negative color specification value, and being represented by the first color space;
The image data capturing unit changes the color space of the image data from the first color space to a second color space using the first and second positive color values and the negative color values. It may be converted. With this configuration, it is possible to execute image processing that reflects the first and second positive colorimetric values and the negative colorimetric values of the image data. Can be improved.

本発明の第1の態様に係る画像処理装置において、前記画像処理手段は、前記画像データが前記第1および第2の正の表色値を有する場合には第1のガンマ補正値を用い、前記画像データが負の表色値を有する場合には前記第1のガンマ補正値とは異なる第2のガンマ補正値を用いて、前記画像データに対するガンマ補正を実行するガンマ補正手段を備えても良い。かかる構成を備えることにより、画像データが正の表色値を有する場合と、負の表色値を有する場合のそれぞれにおいて適切なガンマ補正を実行することができる。   In the image processing device according to the first aspect of the present invention, the image processing unit uses a first gamma correction value when the image data has the first and second positive colorimetric values, When the image data has a negative color specification value, the image processing apparatus may further include a gamma correction unit that performs gamma correction on the image data by using a second gamma correction value different from the first gamma correction value. good. With this configuration, appropriate gamma correction can be performed in each of the case where the image data has a positive color value and the case where the image data has a negative color value.

本発明の第1の態様に係る画像処理装置において、前記第2のガンマ補正値は、前記第1のガンマ補正値よりも小さい値であっても良い。かかる場合には、負の表色値をより有効に利用することが可能となり、画像データの色再現領域を更に拡張することができる。   In the image processing device according to the first aspect of the present invention, the second gamma correction value may be a value smaller than the first gamma correction value. In such a case, the negative color value can be used more effectively, and the color reproduction area of the image data can be further expanded.

本発明の第1の態様に係る画像処理装置において、前記画像処理手段は、前記第2の色空間によって表現されていると共に前記第1の正の表色値、前記第2の正の表色値および前記負の表色値を含む前記画像データを、前記第2の色空間よりも広く、前記第2の正の表色値および前記負の表色値の少なくとも一方をその定義領域内に含む第3の色空間へ変換しても良い。かかる場合には、第2の色空間では表現され得なかった第2の正の表色値および負の表色値の少なくともいずれか一方が第3の色空間の定義領域内に含まれるので、第2の正の色彩値および負の色彩値の少なくとも一方を再現して出力することができる。したがって、画像データの彩度を向上させることができると共に、画像データを生成した装置、または、画像データを出力する装置の色再現域を有効に利用することができる。   In the image processing device according to the first aspect of the present invention, the image processing means is expressed by the second color space and the first positive color value, the second positive color value Value and the image data including the negative colorimetric value are wider than the second color space, and at least one of the second positive colorimetric value and the negative colorimetric value is included in the definition area. It may be converted to a third color space including the third color space. In such a case, at least one of the second positive color value and the negative color value that could not be expressed in the second color space is included in the definition area of the third color space. At least one of the second positive color value and the negative color value can be reproduced and output. Therefore, the saturation of the image data can be improved, and the color gamut of the device that generates the image data or the device that outputs the image data can be effectively used.

本発明の第1の態様に係る画像処理装置において、前記第1の色空間はR成分、G成分、B成分によって表されるRGBの色空間であり、前記第2のガンマ補正値は、それぞれが異なる、前記R成分用の第2のガンマ補正値、前記G成分用の第2のガンマ補正値、B成分用の第2のガンマ補正値を有しても良い。かかる構成を備えることにより、R成分、G成分、B成分の各々が有する表現領域に応じたガンマ補正を負の表色値を有する画像データに対して実行することができると共に、より彩度の高い画像出力を得ることができる。   In the image processing device according to the first aspect of the present invention, the first color space is an RGB color space represented by an R component, a G component, and a B component, and the second gamma correction value is May be different, the second gamma correction value for the R component, the second gamma correction value for the G component, and the second gamma correction value for the B component. With this configuration, it is possible to execute gamma correction according to the expression area of each of the R component, the G component, and the B component on image data having a negative colorimetric value, and to increase the saturation. High image output can be obtained.

本発明の第1の態様に係る画像処理装置において、前記画像ファイル取り込み手段による前記第1の色空間から前記第2の色空間への前記画像データの色空間の変換は、前記第1の色空間によって表されている画像データに対する第1のマトリクス演算処理によって実行され、前記画像処理手段による前記第2の色空間から前記第3の色空間への前記画像データの色空間の変換は、前記第2の色空間で表現されている画像データに対する第2のマトリクス演算処理によって実行されても良い。   In the image processing apparatus according to the first aspect of the present invention, the conversion of the color space of the image data from the first color space to the second color space by the image file importing unit is performed by using the first color The first matrix operation is performed on the image data represented by the space, and the conversion of the color space of the image data from the second color space to the third color space by the image processing means is performed by the image processing unit. It may be executed by a second matrix operation process on the image data expressed in the second color space.

本発明の第2の態様は、第1の色空間によって表されていると共に、所定の色空間の表色域内の表色値である第1の正の表色値と、前記所定の色空間の表色域外の表色値である第2の正の表色値および負の表色値の少なくともいずれか一方を含む画像データを用いて画像処理を実行する画像処理装置を提供する。本発明の第2の態様に係る画像処理装置は、前記画像データを取得する画像データ取得手段と、前記第1および第2の正の表色値並びに前記負の表色値を用いて、前記画像データの色空間を前記第1の色空間から、前記所定の色空間よりも広く、前記第2の表色値および前記負の表色値の少なくとも一方をその表色域に含む第2の色空間に変換する色空間変換手段とを備えることを特徴とする。   According to a second aspect of the present invention, a first positive colorimetric value which is represented by a first color space and is a colorimetric value within a color gamut of a predetermined color space; And an image processing apparatus that performs image processing using image data including at least one of a second positive color value and a negative color value that are color values outside the color gamut. An image processing apparatus according to a second aspect of the present invention comprises: an image data acquisition unit configured to acquire the image data; and the first and second positive colorimetric values and the negative colorimetric value. A color space of the image data from the first color space, which is wider than the predetermined color space, and includes at least one of the second color value and the negative color value in its color gamut; Color space conversion means for converting into a color space.

本発明の第2の態様に係る画像処理装置によれば、画像データ色空間を、第1および第2の正の表色値並びに負の表色値を用いて、第2の表色値および負の表色値の少なくとも一方をその表色域に含む第2の色空間に変換するので、画像データ生成時に画像データに含まれていた表色値を利用して画像データを正確に再現することができる。   According to the image processing apparatus according to the second aspect of the present invention, the image data color space is converted to the second colorimetric value and the second colorimetric value using the first and second positive colorimetric values and the negative colorimetric values. Since at least one of the negative colorimetric values is converted to the second color space including the colorimetric gamut, the image data is accurately reproduced by using the colorimetric values included in the image data when the image data was generated. be able to.

本発明の第2の態様に係る画像処理装置は、このほかにも、第1の態様に係る画像処理装置と同様にして種々の態様にて実現され得る。   The image processing apparatus according to the second aspect of the present invention can be realized in various other modes in the same manner as the image processing apparatus according to the first aspect.

本発明の第1または第2の態様に係る画像処理装置はさらに、前記画像処理が実行された画像データを印刷媒体上に印刷する印刷手段を備えても良い。かかる場合には、画像処理を施した画像データを出力することができる。また、前記画像データと前記使用情報とは、同一の画像ファイル内に格納されていても良い。かかる場合には、画像ファイル単位にて画像データと使用情報とを取り扱うことができるので、画像データと使用情報との関連づけを容易化することができる。   The image processing apparatus according to the first or second aspect of the present invention may further include a printing unit that prints the image data on which the image processing has been executed on a print medium. In such a case, image data subjected to image processing can be output. Further, the image data and the usage information may be stored in the same image file. In such a case, the image data and the usage information can be handled in image file units, so that the association between the image data and the usage information can be facilitated.

本発明の第3の態様は、画像データと、所定の色空間の定義領域外の表色値である領域外表色値を使用するか否かを示す使用情報とを用いて画像データを画像出力装置によって出力させるプログラムを提供する。本発明の第3の態様に係るプログラムは、前記画像データを取り込む機能と、前記取り込んだ画像データに関連付けられている前記使用情報に基づいて、前記領域外表色値を使用するか否かを判定する機能と、前記領域外表色値を使用すると判定された場合には、前記領域外表色値をその定義領域内に内包し得る広い定義領域を有する色空間を介して前記画像データの画像処理を実行する機能と、前記画像処理が施された画像データを出力する機能とをコンピュータによって実現させることを特徴とする。   According to a third aspect of the present invention, image data is output using image data and use information indicating whether or not to use an out-of-region color value that is a color value outside a defined region of a predetermined color space. Provide a program to be output by the device. A program according to a third aspect of the present invention determines whether or not to use the out-of-area color value based on the function of capturing the image data and the use information associated with the captured image data. Function, and when it is determined that the out-of-area color values are used, the image processing of the image data is performed through a color space having a wide defined area that can include the out-of-area color values in the defined area. A computer executes the function to be executed and the function to output the image data subjected to the image processing.

本発明の第3の態様に係るプログラムによれば、本発明の第1の態様に係る画像処理装置と同様の作用効果を得ることができる。また、本発明の第3の態様に係るプログラムは、本発明の第1の態様に係る画像処理装置と同様にして種々の態様にて実現され得る。   According to the program of the third aspect of the present invention, the same operation and effect as those of the image processing apparatus according to the first aspect of the present invention can be obtained. Further, the program according to the third aspect of the present invention can be realized in various aspects in the same manner as the image processing device according to the first aspect of the present invention.

本発明の第4の態様は、画像データと画像データに対する画像処理条件を指定する画像処理制御情報とを関連付けて出力する画像データの生成装置を提供する。本発明の第4の態様に係る画像データ生成装置は、前記画像データを取得する画像データ取得手段と、前記画像データに対して画像処理を実行する際に、所定の色空間の領域外の情報を使用させるか否かを示す使用情報を含む前記画像処理制御情報を生成する画像処理制御情報生成手段と、前記取得された画像データと、前記生成された画像処理制御情報とを関連付けて出力する画像データ出力手段とを備えることを特徴とする。   According to a fourth aspect of the present invention, there is provided an apparatus for generating image data for outputting image data in association with image processing control information for specifying image processing conditions for the image data. An image data generating apparatus according to a fourth aspect of the present invention includes: an image data obtaining unit configured to obtain the image data; Image processing control information generating means for generating the image processing control information including use information indicating whether or not to use the image data; and outputting the obtained image data and the generated image processing control information in association with each other. Image data output means.

本発明の第4の態様に係る画像データ生成装置によれば、所定の色空間の領域外の情報を使用させるか否かを示す使用情報を含む画像処理制御情報と、取得された画像データとを関連付けて出力することができるので、領域外の情報を利用した画像データに対する画像処理を実行させることができる。   According to the image data generation device according to the fourth aspect of the present invention, the image processing control information including usage information indicating whether to use information outside the area of the predetermined color space, the acquired image data and Can be output in association with each other, so that image processing can be performed on image data using information outside the area.

本発明の第5の態様は、画像データと画像データに対する画像処理条件を指定する画像処理制御情報とを関連付けて出力する画像データの生成装置を提供する。本発明の第5の態様に係る画像データ生成装置は、所定の色空間の表色域内の表色値である第1の正の表色値と、前記所定の色空間の表色域外の表色値である第2の正の表色値および負の表色値の少なくともいずれか一方を含む前記画像データを生成する画像データ生成手段と、前記画像データに対して画像処理を実行する際に、前記第2の正の表色値および前記負の表色値の少なくともいずれか一方を使用させるか否かを示す使用情報と、前記画像データが前記第1および第2の正の表色値を有する場合に用いるべき第1のガンマ補正値と、前記画像データが負の表色値を有する場合に用いるべき前記第1のガンマ補正値とは異なる第2のガンマ補正値とを含む画像処理制御情報を生成する画像処理制御情報生成手段とを備えることを特徴とする。   According to a fifth aspect of the present invention, there is provided an image data generation apparatus for outputting image data in association with image processing control information for specifying image processing conditions for the image data. The image data generating apparatus according to a fifth aspect of the present invention includes a first positive colorimetric value that is a colorimetric value within a color gamut of a predetermined color space, and a table outside the color gamut of the predetermined color space. An image data generating unit that generates the image data including at least one of a second positive color value and a negative color value that are color values, and performing image processing on the image data. Usage information indicating whether or not to use at least one of the second positive colorimetric value and the negative colorimetric value, and the image data being the first and second positive colorimetric values Image processing including a first gamma correction value to be used when image data has a negative color specification value and a second gamma correction value different from the first gamma correction value to be used when the image data has a negative color specification value Image processing control information generating means for generating control information To.

本発明の第5の態様に係る画像データ生成装置によれば、所定の色空間の表色域外の表色値である第2の正の表色値および負の表色値の少なくともいずれか一方を使用させるか否かを示す使用情報を含む画像処理制御情報と、取得された画像データとを関連付けて出力することができるので、第2の正の表色値および負の表色値の少なくともいずれか一方を利用した画像データに対する画像処理を実行させることができる。   According to the image data generation device of the fifth aspect of the present invention, at least one of the second positive color value and the negative color value that are color values outside the color gamut of the predetermined color space. Can be output in association with image processing control information including use information indicating whether or not to use the acquired image data, so that at least the second positive colorimetric value and the negative colorimetric value Image processing can be performed on image data using either one of them.

本発明の第5の態様に係る画像データ生成装置において、前記画像処理制御情報には、前記画像データの色空間変換を実行する際に、前記所定の色空間よりも広く、前記第2の表色値および前記負の表色値の少なくとも一方をその表色域に含む色空間へ変換させるための色空間変換特性が含まれても良い。かかる場合には、画像データの色変換時における色空間変換特性をも指定することが可能となり、第2の正の表色値および負の表色値を用いる効果を向上させることができる。   In the image data generating device according to a fifth aspect of the present invention, the image processing control information includes a second table that is wider than the predetermined color space when performing color space conversion of the image data. A color space conversion characteristic for converting at least one of the color value and the negative color value into a color space including the color gamut may be included. In such a case, it is possible to specify the color space conversion characteristics at the time of color conversion of the image data, and it is possible to improve the effect of using the second positive color value and the negative color value.

本発明の第6の態様は、第1の色空間によって表現されている画像データと、所定の色空間の領域外の情報を使用するか否かを示す使用情報とを用いて画像データを出力する方法を提供する。本発明の第6の態様に係る方法は、前記画像データを取得し、その取得した画像データの色空間を前記第1の色空間から第2の色空間に変換し、前記使用情報に基づいて前記領域外情報を使用するか否かを判定し、前記領域外情報を使用すると判定した場合には、前記領域外情報を用いて、前記第2の色空間によって表現されている画像データの色空間を第3の色空間に変換し、前記変換された画像データを出力することを特徴とする。   According to a sixth aspect of the present invention, image data is output using image data represented by a first color space and use information indicating whether information outside a region of a predetermined color space is to be used. Provide a way to A method according to a sixth aspect of the present invention includes obtaining the image data, converting a color space of the obtained image data from the first color space to a second color space, and based on the usage information. It is determined whether or not to use the out-of-region information. If it is determined that the out-of-region information is to be used, the color of the image data represented by the second color space is determined using the out-of-region information. Converting the color space into a third color space and outputting the converted image data.

本発明の第6の態様に係る方法によれば、本発明の第1の態様に係る画像処理装置と同様の作用効果を得ることができる。また、本発明の第6の態様に係る方法は、本発明の第1の態様に係る画像処理装置と同様にして種々の態様にて実現され得る。   According to the method according to the sixth aspect of the present invention, it is possible to obtain the same operational effects as those of the image processing apparatus according to the first aspect of the present invention. Further, the method according to the sixth aspect of the present invention can be realized in various aspects in the same manner as the image processing apparatus according to the first aspect of the present invention.

本発明の第7の態様は、画像データを出力する方法を提供する。本発明の第7の態様に係る方法は、第1の色空間によって表現されている前記画像データを取得し、その取得した画像データの色空間を前記第1の色空間から第2の色空間に変換し、前記変換により得られた第2の色空間に関する情報、および、前記第2の色空間を定義する領域外の情報を保持し、前記保持した情報を反映させて、前記第2の色空間によって表現されている画像データの色空間を第3の色空間に変換し、前記変換された画像データを出力することを特徴とする。   A seventh aspect of the present invention provides a method for outputting image data. A method according to a seventh aspect of the present invention includes obtaining the image data represented by a first color space, and converting the color space of the obtained image data from the first color space to a second color space. And holds the information on the second color space obtained by the conversion and the information outside the area that defines the second color space, and reflects the held information to obtain the second color space. The color space of the image data represented by the color space is converted to a third color space, and the converted image data is output.

本発明の第7の態様に係る方法によれば、本発明の第1の態様に係る画像処理装置と同様の作用効果を得ることができる。また、本発明の第7の態様に係る方法は、本発明の第1の態様に係る画像処理装置と同様にして種々の態様にて実現され得る。   According to the method according to the seventh aspect of the present invention, it is possible to obtain the same operational effects as those of the image processing apparatus according to the first aspect of the present invention. Further, the method according to the seventh aspect of the present invention can be realized in various aspects in the same manner as the image processing apparatus according to the first aspect of the present invention.

本発明の第8の態様は、画像データの画像処理方法を提供する。本発明の第8の態様に係る画像処理方法は、第1の色空間に基づく前記画像データを取得し、その取得した画像データの色空間を前記第1の色空間から第2の色空間に変換し、前記変換された画像データについての前記第2の色空間を定義する領域内および領域外の情報を保持し、前記保持した情報を反映させて、前記第2の色空間によって表現されている画像データの色空間を前記第2の色空間よりも広い定義領域を有する第3の色空間に変換することを特徴とする。   An eighth aspect of the present invention provides an image processing method for image data. An image processing method according to an eighth aspect of the present invention obtains the image data based on a first color space, and changes the color space of the obtained image data from the first color space to a second color space. After the conversion, the information in the area and the area outside the area that define the second color space for the converted image data is held, and the information is expressed by the second color space by reflecting the held information. The present invention is characterized in that a color space of existing image data is converted into a third color space having a defined area wider than the second color space.

本発明の第8の態様に係る方法によれば、本発明の第2の態様に係る画像処理装置と同様の作用効果を得ることができる。また、本発明の第8の態様に係る方法は、本発明の第2の態様に係る画像処理装置と同様にして種々の態様にて実現され得る。   According to the method according to the eighth aspect of the present invention, it is possible to obtain the same operational effects as those of the image processing apparatus according to the second aspect of the present invention. Further, the method according to the eighth aspect of the present invention can be realized in various aspects in the same manner as the image processing apparatus according to the second aspect of the present invention.

本発明の第9の態様は、画像データに対して画像処理を実行する画像処理装置を提供する。本発明の第9の態様に係る画像処理手段は、前記画像データを取り込む画像データ取り込み手段と、前記画像データに含まれている所定の色空間の領域外の情報を使用するか否かを指示する指示手段と、前記領域外情報の使用が指示された場合には、前記領域外情報をその定義領域に内包し得る広い定義領域を有する広域色空間への色変換処理を含む前記画像データの画像処理を実行する画像処理手段とを備えることを特徴とする。   A ninth aspect of the present invention provides an image processing apparatus that performs image processing on image data. The image processing means according to a ninth aspect of the present invention comprises: an image data capturing means for capturing the image data; and an instruction as to whether information outside a predetermined color space area included in the image data is to be used. Instruction means for performing, and when the use of the out-of-area information is instructed, the image data of the image data including a color conversion process to a wide-area color space having a wide defined area capable of including the out-of-area information in the defined area. Image processing means for executing image processing.

本発明の第9の態様に係る画像処理装置において、前記領域外情報の使用が指示されなかった場合には、前記画像処理手段は、前記所定の色空間と同等の定義領域を有する既定の色空間を介して前記画像データの画像処理を実行しても良い。   In the image processing apparatus according to the ninth aspect of the present invention, when the use of the out-of-area information is not instructed, the image processing unit may use a predetermined color having a defined area equivalent to the predetermined color space. Image processing of the image data may be performed via a space.

この他にも、本発明に係る画像処理装置は、前記画像データを取り込む画像データ取り込み手段と、前記画像データに含まれている所定の色空間の領域外の情報を使用して、前記画像データに対する画像処理を実行する画像処理手段を備える画像データに対して画像処理を実行する画像処理装置であっても良い。かかる場合には、所定の色空間の領域外の情報を使用して画像処理を実行するので、画像処理結果として得られる画像の彩度を向上させることができる。   In addition, the image processing apparatus according to the present invention includes an image data capturing unit that captures the image data, and information outside of a predetermined color space area included in the image data. The image processing apparatus may be an image processing apparatus that performs image processing on image data including image processing means that performs image processing on. In such a case, since the image processing is performed using information outside the area of the predetermined color space, the saturation of an image obtained as a result of the image processing can be improved.

前記画像処理手段における画像処理にはさらに、前記領域外情報をその定義領域に内包し得る広い定義領域を有する広域色空間への色変換処理が含まれていてもよい。かかる場合には、所定の色空間では領域外であった情報を定義領域内に内包し得る広域色空間を用いるので、所定の色空間では領域外であった情報が再現されることとなり、画像処理結果として得られる画像の彩度を向上させることができる。また、前記所定の色空間の領域外の情報は、負の画像データ値であっても良く、負の画像データ値に対するガンマ補正値と正の画像データ値に対するガンマ補正値とは異なっていても良い。かかる場合には、正の画像データ値の階調特性と負の画像データ値の階調特性にそれぞれ適したガンマ補正を実行することができる   The image processing in the image processing means may further include a color conversion process to a wide-area color space having a wide defined area capable of including the out-of-area information in the defined area. In such a case, since a wide area color space that can include information outside the area in the predetermined color space in the defined area is used, information outside the area in the predetermined color space is reproduced, and The saturation of an image obtained as a processing result can be improved. Further, the information outside the area of the predetermined color space may be a negative image data value, and the gamma correction value for the negative image data value may be different from the gamma correction value for the positive image data value. good. In such a case, gamma correction suitable for the tone characteristics of the positive image data value and the tone characteristics of the negative image data value can be executed.

以下、本発明に係る画像出力装置について以下の順序にて図面を参照しつつ、いくつかの実施例に基づいて説明する。
A.画像出力装置を含む画像データ出力システムの構成
B.画像出力装置の構成
C.画像出力装置における画像処理
D.その他の実施例
Hereinafter, an image output apparatus according to the present invention will be described based on some embodiments with reference to the drawings in the following order.
A. B. Configuration of image data output system including image output device Configuration of image output device Image processing in image output device Other embodiments

A.画像出力装置を適用可能な画像データ出力システムの構成:
第1実施例に係る画像処理装置を適用可能な画像データ出力システムの構成について図1および図2を参照して説明する。図1は第1実施例に係る画像出力装置を適用可能な画像データ出力システムの一例を示す説明図である。図2は第1実施例に係る画像出力装置が出力する画像ファイル(画像データ)を生成可能なディジタルスチルカメラの概略構成を示すブロック図である。
A. Configuration of image data output system to which image output device can be applied:
A configuration of an image data output system to which the image processing device according to the first embodiment can be applied will be described with reference to FIGS. FIG. 1 is an explanatory diagram showing an example of an image data output system to which the image output device according to the first embodiment can be applied. FIG. 2 is a block diagram showing a schematic configuration of a digital still camera capable of generating an image file (image data) output by the image output device according to the first embodiment.

画像データ出力システム10は、画像ファイルを生成する入力装置としてのディジタルスチルカメラ12、ディジタルスチルカメラ12にて生成された画像ファイルに基づいて画像処理を実行し、画像を出力する出力装置としてのカラープリンタ20を備えている。出力装置としては、プリンタ20の他に、CRTディスプレイ、LCDディスプレイ等のモニタ14、プロジェクタ等が用いられ得るが、以下の説明では、カラープリンタ20を出力装置として用いるものとする。   The image data output system 10 includes a digital still camera 12 as an input device for generating an image file, and a color camera as an output device for executing image processing based on the image file generated by the digital still camera 12 and outputting an image. A printer 20 is provided. As the output device, in addition to the printer 20, a monitor 14 such as a CRT display and an LCD display, a projector, and the like can be used. In the following description, the color printer 20 is used as the output device.

ディジタルスチルカメラ12は、光の情報をディジタルデバイス(CCDや光電子倍増管)に結像させることにより画像を取得するカメラであり、図2に示すように光情報を収集するための光学回路121、ディジタルデバイスを制御して画像を取得するための画像取得回路122、取得したディジタル画像を加工処理するための画像処理回路123、各回路を制御する制御回路124を備えている。ディジタルスチルカメラ12は、取得した画像をディジタルデータとして記憶装置としてのメモリカードMCに保存する。ディジタルスチルカメラ12における画像データの保存形式としては、JPEG形式が一般的であるが、この他にもTIFF形式、GIF形式、BMP形式、RAW形式等の保存形式が用いられ得る。ディジタルスチルカメラ12はまた、各種機能を選択、設定するための選択・決定ボタン126を備えている。   The digital still camera 12 is a camera that obtains an image by forming light information on a digital device (CCD or photomultiplier), and as shown in FIG. 2, an optical circuit 121 for collecting light information. An image acquisition circuit 122 for controlling a digital device to acquire an image, an image processing circuit 123 for processing an acquired digital image, and a control circuit 124 for controlling each circuit are provided. The digital still camera 12 stores the obtained image as digital data in a memory card MC as a storage device. As a storage format of image data in the digital still camera 12, a JPEG format is generally used, but other storage formats such as a TIFF format, a GIF format, a BMP format, and a RAW format may be used. The digital still camera 12 also has a selection / decision button 126 for selecting and setting various functions.

ディジタルスチルカメラ12にて生成された画像データは、RGB色空間にて定義される。このとき用いられるRGB色空間としては、sRGB色空間が最も一般的であるが、その他にも、sRGB色空間よりも広い色域を有するNTSC−RGB色空間が選択されても良い。RGB色空間にて表されているデータは、メモリカードに格納される際に、データを圧縮して格納するフォーマットであるJPEG形式に適した色空間特性を有するYCbCr色空間に変換される。画像データをJPEG形式にて保存する場合には、RGB色空間にて表されている画像データを、後述するマトリクスSの逆マトリクスを用いた演算を実行して画像データの色空間をRGB色空間、例えば、sRGB色空間からYCbCr色空間に変換する。なお、sRGB色空間からYCbCr色空間に変換する際には、sRGB色空間の領域外の色彩値、すなわち、色彩値として負値のデータも有効なまま変換するものとする。   Image data generated by the digital still camera 12 is defined in an RGB color space. As the RGB color space used at this time, the sRGB color space is the most general, but in addition, the NTSC-RGB color space having a wider color gamut than the sRGB color space may be selected. When data stored in the RGB color space is stored in a memory card, it is converted to a YCbCr color space having a color space characteristic suitable for the JPEG format, which is a format for compressing and storing data. When the image data is stored in the JPEG format, the image data expressed in the RGB color space is subjected to an operation using an inverse matrix of a matrix S described later to change the color space of the image data into the RGB color space. For example, conversion is performed from the sRGB color space to the YCbCr color space. When converting from the sRGB color space to the YCbCr color space, it is assumed that color values outside the region of the sRGB color space, that is, negative value data as the color values are also converted while being effective.

本画像データ出力システム10に用いられるディジタルスチルカメラ12は、画像データに加えて画像処理制御情報GIを画像ファイルとしてメモリカードMCに格納する。ディジタルスチルカメラ12によって生成される画像ファイルは、画像ファイルの互換性を維持するため、通常、ディジタルスチルカメラ用画像ファイルフォーマット規格(Exif)に従ったファイル構造を有している。Exifファイルの仕様は、電子情報技術産業協会(JEITA)によって定められている。   The digital still camera 12 used in the image data output system 10 stores image processing control information GI as an image file in the memory card MC in addition to the image data. The image file generated by the digital still camera 12 usually has a file structure according to the digital still camera image file format standard (Exif) in order to maintain compatibility of the image file. Exif file specifications are defined by the Japan Electronics and Information Technology Industries Association (JEITA).

このExifファイル形式に従うファイル形式を有する場合の画像ファイル内部の概略構造について図3を参照して説明する。図3はExifファイル形式にて格納されている画像ファイルGFの概略的な内部構造を示す説明図である。なお、本実施例中におけるファイルの構造、データの構造、格納領域といった用語は、ファイルまたはデータ等が記憶装置内に格納された状態におけるファイルまたはデータのイメージを意味するものである。   The schematic structure inside the image file in the case of having a file format according to the Exif file format will be described with reference to FIG. FIG. 3 is an explanatory diagram showing a schematic internal structure of the image file GF stored in the Exif file format. Note that terms such as file structure, data structure, and storage area in this embodiment mean an image of a file or data in a state where the file or data is stored in the storage device.

Exifファイルとしての画像ファイルGFは、JPEG形式の画像データを格納するJPEG画像データ格納領域101と、格納されているJPEG画像データに関する各種付属情報を格納する付属情報格納領域102とを備えている。付属情報格納領域112には、撮影時色空間、撮影日時、露出、シャッター速度等といったJPEG画像の撮影条件に関する撮影時情報、JPEG画像データ格納領域101に格納されているJPEG画像のサムネイル画像データがTIFF形式にて格納されている。付属情報は画像データがメモリカードMCに書き込まれる際に自動的に付属情報格納領域102に格納される。また、付属情報格納領域102は、DSC製造者に解放されている未定義領域であるMakernoteデータ格納領域103を備えており、DSC製造者はMakernoteデータ格納領域103に対して任意の情報を格納させることができる。なお、当業者にとって周知であるように、Exif形式のファイルでは、各データを特定するためにタグが用いられている。   The image file GF as an Exif file includes a JPEG image data storage area 101 for storing JPEG image data, and an auxiliary information storage area 102 for storing various auxiliary information related to the stored JPEG image data. The auxiliary information storage area 112 stores shooting time information relating to shooting conditions of a JPEG image such as a shooting color space, shooting date and time, exposure, shutter speed, and the like, and thumbnail image data of a JPEG image stored in the JPEG image data storage area 101. It is stored in TIFF format. The attached information is automatically stored in the attached information storage area 102 when the image data is written to the memory card MC. Further, the attached information storage area 102 includes a Makernote data storage area 103 which is an undefined area released to the DSC maker, and the DSC maker causes the Makernote data storage area 103 to store arbitrary information. be able to. Note that, as is well known to those skilled in the art, tags are used in Exif format files to specify each data.

Makernoteデータ格納領域103もまた、タグによって格納されているデータを識別できる構成を備えており、本実施例では、PrintMatchingのタグが付された領域にカラープリンタ20における画像処理を制御するための画像処理制御情報GIが格納されている。   The Makernote data storage area 103 also has a configuration capable of identifying data stored by a tag. In the present embodiment, an image for controlling image processing in the color printer 20 is provided in the area with a tag of PrintMatching. Processing control information GI is stored.

画像処理制御情報GIは、カラープリンタ20等の出力装置が有する色再現特性、画像出力特性を考慮して、最適な画像出力結果を得ることができるように画像出力条件を指定する情報である。画像処理制御情報GIとして格納される情報には、例えば、ガンマ補正値、ターゲットとする色空間に関するパラメータ、負値の利用の有無、コントラスト、カラーバランス調整、シャープネス、色補正に関するパラメータが含まれている。このうち、ガンマ補正値、色空間、負値の利用の有無に関するパラメータ、主に被写体の色特性を忠実に再現するための情報であり、残りのパラメータは、主に好みの色再現を実現するための情報である。なお、負値とは、所定のRGB色空間、本実施例ではsRGB色空間の定義領域を超える表色値(色彩値)を意味し、256を超える正の値、負の値を意味する。なお、負値のより詳細な説明については後述する。   The image processing control information GI is information for designating an image output condition so that an optimal image output result can be obtained in consideration of a color reproduction characteristic and an image output characteristic of an output device such as the color printer 20. The information stored as the image processing control information GI includes, for example, parameters related to a gamma correction value, a parameter related to a target color space, the use of a negative value, contrast, color balance adjustment, sharpness, and color correction. I have. Among them, the gamma correction value, the color space, the parameter regarding the use of the negative value, and mainly the information for faithfully reproducing the color characteristics of the subject, and the remaining parameters mainly realize the desired color reproduction. Information. In addition, a negative value means a color specification value (color value) exceeding a defined area of a predetermined RGB color space, in this embodiment, an sRGB color space, and means a positive value and a negative value exceeding 256. A more detailed description of the negative value will be described later.

ディジタルスチルカメラ12において生成された画像ファイルGFは、例えば、ケーブルCV、コンピュータPCを介して、あるいは、ケーブルCVを介してカラープリンタ20に送出される。あるいは、ディジタルスチルカメラ12に装着されているメモリカードMCが接続されたコンピュータPCを介して、あるいは、メモリカードMCをプリンタ20に対して直接、接続することによって画像ファイルがカラープリンタ20に送出される。なお、以下の説明では、メモリカードMCがカラープリンタ20に対して直接、接続される場合に基づいて説明する。   The image file GF generated by the digital still camera 12 is sent to the color printer 20 via, for example, the cable CV, the computer PC, or the cable CV. Alternatively, the image file is transmitted to the color printer 20 through a computer PC to which a memory card MC mounted on the digital still camera 12 is connected, or by directly connecting the memory card MC to the printer 20. You. The following description is based on the case where the memory card MC is directly connected to the color printer 20.

B.画像出力装置の構成:
図4を参照して第1実施例に係る画像出力装置、すなわち、カラープリンタ20の概略構成について説明する。図4は第1実施例に係るカラープリンタ20の概略構成を示すブロック図である。
B. Configuration of image output device:
The schematic configuration of the image output device according to the first embodiment, that is, the color printer 20, will be described with reference to FIG. FIG. 4 is a block diagram illustrating a schematic configuration of the color printer 20 according to the first embodiment.

カラープリンタ20は、カラー画像の出力が可能なプリンタであり、例えば、シアン(C)、マゼンタ(M)、イエロー(Y)、ブラック(K)の4色の色インクを印刷媒体上に噴射してドットパターンを形成することによって画像を形成するインクジェット方式のプリンタであり、あるいは、カラートナーを印刷媒体上に転写・定着させて画像を形成する電子写真方式のプリンタである。色インクには、上記4色に加えて、ライトシアン(薄いシアン、LC)、ライトマゼンタ(薄いマゼンタ、LM)、ダークイエロ(暗いイエロ、DY)を用いても良い。   The color printer 20 is a printer capable of outputting a color image and, for example, ejects four color inks of cyan (C), magenta (M), yellow (Y), and black (K) onto a print medium. The printer is an inkjet printer that forms an image by forming a dot pattern on the substrate, or an electrophotographic printer that forms an image by transferring and fixing a color toner on a print medium. As the color ink, in addition to the above four colors, light cyan (light cyan, LC), light magenta (light magenta, LM), and dark yellow (dark yellow, DY) may be used.

カラープリンタ20は、図示するように、キャリッジ21に搭載された印字ヘッド211を駆動してインクの吐出およびドット形成を行う機構と、このキャリッジ21をキャリッジモータ22によってプラテン23の軸方向に往復動させる機構と、紙送りモータ24によって印刷用紙Pを搬送する機構と、制御回路30とから構成されている。キャリッジ21をプラテン23の軸方向に往復動させる機構は、プラテン23の軸と並行に架設されたキャリッジ21を摺動可能に保持する摺動軸25と、キャリッジモータ22との間に無端の駆動ベルト26を張設するプーリ27と、キャリッジ21の原点位置を検出する位置検出センサ28等から構成されている。印刷用紙Pを搬送する機構は、プラテン23と、プラテン23を回転させる紙送りモータ24と、図示しない給紙補助ローラと、紙送りモータ24の回転をプラテン23および給紙補助ローラに伝えるギヤトレイン(図示省略)とから構成されている。   As shown, the color printer 20 drives a print head 211 mounted on a carriage 21 to eject ink and form dots, and reciprocates the carriage 21 in the axial direction of a platen 23 by a carriage motor 22. The control circuit 30 includes a mechanism for causing the print paper P to be conveyed by the paper feed motor 24, and a control circuit 30. The mechanism for reciprocating the carriage 21 in the axial direction of the platen 23 is an endless drive between a carriage shaft 22 and a slide shaft 25 that slidably holds the carriage 21 erected in parallel with the shaft of the platen 23. It is composed of a pulley 27 on which a belt 26 is stretched, a position detection sensor 28 for detecting the origin position of the carriage 21, and the like. The mechanism for transporting the printing paper P includes a platen 23, a paper feed motor 24 for rotating the platen 23, a paper feed auxiliary roller (not shown), and a gear train for transmitting the rotation of the paper feed motor 24 to the platen 23 and the paper feed auxiliary roller. (Not shown).

制御回路30は、プリンタの操作パネル29と信号をやり取りしつつ、紙送りモータ24やキャリッジモータ22、印字ヘッド211の動きを適切に制御している。カラープリンタ20に供給された印刷用紙Pは、プラテン23と給紙補助ローラの間に挟み込まれるようにセットされ、プラテン23の回転角度に応じて所定量だけ送られる。   The control circuit 30 appropriately controls the movements of the paper feed motor 24, the carriage motor 22, and the print head 211 while exchanging signals with the operation panel 29 of the printer. The printing paper P supplied to the color printer 20 is set so as to be sandwiched between the platen 23 and the paper feed auxiliary roller, and is fed by a predetermined amount according to the rotation angle of the platen 23.

キャリッジ21にはインクカートリッジ212とインクカートリッジ213とが装着される。インクカートリッジ212には黒(K)インクが収容され、インクカートリッジ213には他のインク、すなわち、シアン(C),マゼンタ(M),イエロ(Y)の3色インクの他に、ライトシアン(LC),ライトマゼンタ(LM),ダークイエロ(DY)の合計6色のインクが収納されている。   An ink cartridge 212 and an ink cartridge 213 are mounted on the carriage 21. The ink cartridge 212 contains black (K) ink, and the ink cartridge 213 contains other inks, namely, cyan (C), magenta (M), yellow (Y), and light cyan (LC). ), Light magenta (LM), and dark yellow (DY).

次に図5を参照してカラープリンタ20の制御回路30の内部構成について説明する。図5は、カラープリンタ20の制御回路30の内部構成を示す説明図である。図示するように、制御回路30の内部には、CPU31,PROM32,RAM33,メモリカードMCからデータを取得するPCMCIAスロット34,紙送りモータ24やキャリッジモータ22等とデータのやり取りを行う周辺機器入出力部(PIO)35,タイマ36,駆動バッファ37等が設けられている。駆動バッファ37は、インク吐出用ヘッド214ないし220にドットのオン・オフ信号を供給するバッファとして使用される。これらは互いにバス38で接続され、相互にデータにやり取りが可能となっている。また、制御回路30には、所定周波数で駆動波形を出力する発振器39、および発振器39からの出力をインク吐出用ヘッド214ないし220に所定のタイミングで分配する分配出力器40も設けられている。   Next, the internal configuration of the control circuit 30 of the color printer 20 will be described with reference to FIG. FIG. 5 is an explanatory diagram showing the internal configuration of the control circuit 30 of the color printer 20. As shown in the figure, inside the control circuit 30, a peripheral device I / O for exchanging data with the CPU 31, the PROM 32, the RAM 33, the PCMCIA slot 34 for acquiring data from the memory card MC, the paper feed motor 24, the carriage motor 22, and the like. A unit (PIO) 35, a timer 36, a driving buffer 37, and the like are provided. The drive buffer 37 is used as a buffer that supplies a dot on / off signal to the ink ejection heads 214 to 220. These are connected to each other via a bus 38 so that data can be exchanged with each other. The control circuit 30 also includes an oscillator 39 that outputs a drive waveform at a predetermined frequency, and a distribution output device 40 that distributes the output from the oscillator 39 to the ink ejection heads 214 to 220 at a predetermined timing.

制御回路30は、メモリカードMCから画像ファイルGFを読み出し、画像処理制御GIを解析し、解析した画像処理制御情報GIに基づいて画像処理を実行する。制御回路30は、紙送りモータ24やキャリッジモータ22の動きと同期を採りながら、所定のタイミングでドットデータを駆動バッファ37に出力する。制御回路30によって実行される詳細な画像処理の流れについては、以下に説明する。   The control circuit 30 reads the image file GF from the memory card MC, analyzes the image processing control GI, and executes image processing based on the analyzed image processing control information GI. The control circuit 30 outputs dot data to the drive buffer 37 at a predetermined timing while synchronizing with the movements of the paper feed motor 24 and the carriage motor 22. The detailed flow of image processing executed by the control circuit 30 will be described below.

C.カラープリンタ20における画像処理:
図6および図7を参照して第1の実施例に係るカラープリンタ20における画像処理について説明する。図6は第1実施例に係るカラープリンタ20における印刷処理の処理ルーチンを示すフローチャートである。図7はカラープリンタ20における画像処理の流れを示すフローチャートである。
C. Image processing in the color printer 20:
Image processing in the color printer 20 according to the first embodiment will be described with reference to FIGS. FIG. 6 is a flowchart illustrating a processing routine of a printing process in the color printer 20 according to the first embodiment. FIG. 7 is a flowchart showing the flow of image processing in the color printer 20.

プリンタ20の制御回路30(CPU31)は、スロット34にメモリカードMCが差し込まれると、メモリカードMCから画像ファイルGFを読み出し、読み出した画像ファイルGFをRAM33に一時的に格納する(ステップS100)。CPU31は読み出した画像ファイルGFの付属情報格納領域102から画像データの画像処理時の画像処理制御GIを示すPrintMatchingタグを検索する(ステップS110)。CPU31は、PrintMatchingタグを検索・発見できた場合には(ステップS120:Yes)、負値の利用の有無を含む画像処理制御情報GIを取得して解析する(ステップS130)。CPU31は、解析した画像処理制御情報GIに基づいて後に詳述する画像処理を実行し(ステップS140)、処理された画像データをプリントアウトする(ステップS150)。   When the memory card MC is inserted into the slot 34, the control circuit 30 (CPU 31) of the printer 20 reads the image file GF from the memory card MC, and temporarily stores the read image file GF in the RAM 33 (Step S100). The CPU 31 searches the attached information storage area 102 of the read image file GF for a PrintMatching tag indicating the image processing control GI at the time of image processing of the image data (step S110). When the PrintMatching tag has been searched for and found (Step S120: Yes), the CPU 31 acquires and analyzes the image processing control information GI including the use of the negative value (Step S130). The CPU 31 executes image processing described later in detail based on the analyzed image processing control information GI (step S140), and prints out the processed image data (step S150).

CPU31は、PrintMatchingタグを検索・発見できなかった場合には(ステップS120:No)、カラープリンタ20が予めデフォルト値として保有している色空間情報、例えばsRGB色空間の情報をROM32から取得して負値の利用を伴わない通常の画像処理を実行する(ステップS160)。CPU31は、処理した画像データをプリントアウト(ステップS150)して本処理ルーチンを終了する。   If the CPU 31 has not been able to search or find the PrintMatching tag (step S120: No), the CPU 31 acquires from the ROM 32 the color space information previously held as a default value by the color printer 20, for example, information on the sRGB color space. Normal image processing without using a negative value is executed (step S160). CPU 31 prints out the processed image data (step S150), and terminates the processing routine.

カラープリンタ20において実行される画像処理について図7を参照して詳細に説明する。カラープリンタ20の制御回路30(CPU31)は、読み出した画像ファイルGFから画像データGDを取りだす(ステップS200)。ディジタルスチルカメラ12は、既述のように画像データをJPEG形式のファイルとして保存しており、JPEGファイルでは、圧縮率を高くするために、生成した画像データの色空間(sRGB色空間)をYCbCr色空間に変換して画像データを保存している。   The image processing executed in the color printer 20 will be described in detail with reference to FIG. The control circuit 30 (CPU 31) of the color printer 20 extracts the image data GD from the read image file GF (Step S200). As described above, the digital still camera 12 stores the image data as a JPEG format file. In the JPEG file, the color space (sRGB color space) of the generated image data is changed to YCbCr in order to increase the compression ratio. The image data is stored after being converted to a color space.

しかしながら、パーソナルコンピュータおよびプリンタ等では、通常、RGBの色空間にて表現されている画像データのみを取り扱い得るので、YCbCrの色空間にて表現されている画像データの色空間をRGB色空間に変換する必要がある。   However, since personal computers and printers can usually handle only image data expressed in the RGB color space, the color space of image data expressed in the YCbCr color space is converted to the RGB color space. There is a need to.

CPU31は、YCbCrの画像データをRGBの画像データに変換するために3×3マトリクス演算Sを実行する(ステップS210)。なお、マトリクス演算Sは、JPEG FIle Interchange Format(JFIF)の規格によって定義されている、画像データの色空間をYCbCr色空間からRGB色空間に変換するための演算式であり、以下に示す演算式である。   The CPU 31 executes a 3 × 3 matrix operation S to convert YCbCr image data into RGB image data (step S210). The matrix operation S is an operation expression defined by the JPEG File Interchange Format (JFIF) standard for converting the color space of image data from the YCbCr color space to the RGB color space. It is.

Figure 2004240992
Figure 2004240992

このマトリクス演算Sを実行する際には、変換後得られたRGB色空間の画像データが、所定のRGB色空間、たとえば、sRGB色空間の定義領域を表す第1の正の色彩値(表色値)の領域を超える第2の正の色彩値(表色値)や、RGB色空間において負の値を取る負の色彩値(表色値)を有する場合がある。そこで、本実施例では、画像処理制御情報GIにおいて、これら第2の正の色彩値および負の色彩値を利用するか否かを指定する。ここで、sRGB色空間は、モニタの標準的な色空間として定義されている色空間であり、モニタでの画像データ出力を前提としているオペレーティングシステム(OS)において一般的に用いられている色空間である。また、sRGB色空間の定義領域に対応してRGB各成分について8ビットのデータ容量が割り当てられている。したがって、従来、sRGB色空間の定義領域を超える色彩値は、sRGB色空間の定義領域にクリッピング、すなわち丸め(切り捨て)られていた。   When the matrix operation S is performed, the image data in the RGB color space obtained after the conversion is converted into a first positive color value (color specification) representing a defined area in a predetermined RGB color space, for example, an sRGB color space. Value), and may have a second positive color value (color specification value) exceeding the area of (value) or a negative color value (color specification value) having a negative value in the RGB color space. Therefore, in the present embodiment, whether or not to use the second positive color value and the negative color value is specified in the image processing control information GI. Here, the sRGB color space is a color space defined as a standard color space of a monitor, and is a color space generally used in an operating system (OS) on the assumption that image data is output on a monitor. It is. Also, an 8-bit data capacity is assigned to each of the RGB components corresponding to the definition area of the sRGB color space. Therefore, conventionally, a color value exceeding the defined area of the sRGB color space has been clipped, that is, rounded (cut off) in the defined area of the sRGB color space.

一般的に、ディジタルスチルカメラ12では、sRGB色空間が用いら得ているといわれているが、sRGB色空間の定義に厳密に従っていないこともある。したがって、マトリクス演算Sを実行することによって、画像データGDの色空間はディジタルスチルカメラ12にて用いられているRGB色空間に変換される際に、sRGB色空間の定義領域を超える色彩値が存在することがあり得る。   In general, it is said that the digital still camera 12 uses the sRGB color space. However, the digital still camera 12 may not strictly follow the definition of the sRGB color space. Therefore, by executing the matrix operation S, when the color space of the image data GD is converted to the RGB color space used in the digital still camera 12, there is a color value exceeding the defined area of the sRGB color space. Could be.

本実施例では、このsRGB色空間の定義領域を超える色彩値を切り捨てることなく、画像処理を実行する。CPU31は、画像処理制御情報GIにおいて負値の利用が指定さえている場合、変換後得られたRGB色空間の画像データが、第2の正の色彩値や、負の色彩値(表色値)を有する場合であっても、第2の正の色彩値および負の色彩値を、sRGB色空間の定義領域にクリッピング、すなわち丸める(切り捨てる)ことなく有効値として扱い、第1の正の色彩値と共にそのまま保存する。したがって、画像データGDが第2の正の色彩値または負の色彩値を有する場合には、sRGB色空間の定義領域よりも広い定義領域を有するRGB色空間(ディジタルスチルカメラ12にて用いられたRGB色空間)にて画像データGDは表される。このとき、画像データGDはsRGB色空間の定義領域を超えた領域に色彩値を有しているので、そのデータ容量は8ビットよりも大きくなる。   In the present embodiment, image processing is executed without cutting off color values exceeding the defined area of the sRGB color space. When the use of a negative value is specified in the image processing control information GI, the CPU 31 converts the image data in the RGB color space obtained after the conversion into a second positive color value or a negative color value (color specification value). ), The second positive color value and the negative color value are treated as valid values without being clipped, that is, rounded down in the definition area of the sRGB color space, and the first positive color value Save as is with the value. Therefore, when the image data GD has the second positive color value or the negative color value, the RGB color space having the wider definition region than the sRGB color space (used in the digital still camera 12). The image data GD is represented in an RGB color space). At this time, since the image data GD has a color value in an area beyond the defined area of the sRGB color space, the data capacity becomes larger than 8 bits.

負値を有効に扱うイメージについて、図8を参照して説明する。図8はsRGB色空間の定義領域外(EA)における画像データを有効に扱う意味を説明するために色空間領域を2次元で表現する説明図である。本実施例における負値の有効化処理では、画像データは、RGB色空間を定義領域内のデータ値の他に、図8に示すRGB色空間の定義領域外(EA)のデータ値をも保有する。図8の例では、画像データがNTSCのRGB色空間にて生成された場合の定義外領域を例示しているが、画像データが生成される色空間はこれに限られるものではない。なお、RGB色空間の定義領域は、R成分、G成分、B成分のそれぞれを座標軸に取った場合、座標(R、G、B)によって表されるが、本明細書中にて、画像データが第2の正の色彩値および負の色彩値を有すると言う場合には、(R,G,B)いずれかの成分が第2の正の色彩値および負の色彩値を取る場合を言う。   An image that effectively handles negative values will be described with reference to FIG. FIG. 8 is an explanatory diagram for expressing the color space area in two dimensions in order to explain the meaning of effectively handling image data outside the defined area (EA) of the sRGB color space. In the negative value validation processing in the present embodiment, the image data also has data values outside the defined area (EA) of the RGB color space shown in FIG. 8 in addition to data values within the defined area of the RGB color space. I do. In the example of FIG. 8, the undefined region when the image data is generated in the NTSC RGB color space is illustrated, but the color space in which the image data is generated is not limited to this. Note that the definition area of the RGB color space is represented by coordinates (R, G, B) when each of the R component, the G component, and the B component is taken as a coordinate axis. Has the second positive color value and the negative color value, it means that any component of (R, G, B) takes the second positive color value and the negative color value. .

sRGB色空間では、画像データは、R成分、G成分、B成分のそれぞれについて、256階調(8ビット)で表されるので、第1の正の色彩値の領域は、一般的に0〜255の整数値で表される。また、第2の正の色彩値の領域は256以上の整数値で表され、負の色彩値の領域は−1以下の負の整数値で表される。   In the sRGB color space, image data is represented by 256 gradations (8 bits) for each of the R component, the G component, and the B component. It is represented by an integer value of 255. The second positive color value area is represented by an integer value of 256 or more, and the negative color value area is represented by a negative integer value of -1 or less.

変換後のRGB空間の画像データが、sRGB色空間との対比において、第1の色彩値のみならず、第2の正の色彩値および負の色彩値を持つと言うことは、ディジタルスチルカメラ12によって画像データが生成された際に、例えば、図8を参照して既述したように、sRGB色空間よりも広いRGB色空間が用いられていたことを意味する。既述のように、sRGB色空間はCRTディスプレイの色特性に最適化された色空間特性を有しており、一般的に、ディジタルスチルカメラ12が撮影可能な色空間、または、プリンタが印刷可能な色空間を十分に表現できないことが知られている。   The fact that the converted image data in the RGB space has not only the first color value but also the second positive color value and the negative color value in comparison with the sRGB color space means that the digital still camera 12 For example, as described above with reference to FIG. 8, when the image data is generated, it means that an RGB color space wider than the sRGB color space is used. As described above, the sRGB color space has a color space characteristic optimized for the color characteristic of the CRT display, and is generally a color space that can be photographed by the digital still camera 12 or can be printed by a printer. It is known that a complex color space cannot be sufficiently expressed.

したがって、このような第2の正の色彩値および負の色彩値は、sRGB色空間では色表現され得ないが、sRGB色空間よりも広いRGB色空間、あるいは、第2の正の色彩値および負の色彩値の少なくとも一方をその定義領域内に含むRGB色空間へ再変換することによって色表現され得る場合がある。そこで、本実施例に係るカラープリンタ20では、YCbCr色空間からRGB色空間に変換された画像データが有する、第2の正の色彩値および負の色彩値を含む全ての情報を有効なものとして扱い、保持する。なお、ディジタルスチルカメラ12によって画像データが生成された際に、sRGB色空間の定義領域外のデータ値が丸められてしまっている場合には、マトリクス演算Sを実行しても第2の正の色彩値および負の色彩値は得られないのは言うまでもない。   Therefore, such a second positive color value and a negative color value cannot be represented in color in the sRGB color space, but are larger in the RGB color space than the sRGB color space, or the second positive color value and the negative color value. In some cases, a color can be represented by re-converting to an RGB color space that includes at least one of the negative color values in its definition area. Therefore, in the color printer 20 according to the present embodiment, all information including the second positive color value and the negative color value included in the image data converted from the YCbCr color space to the RGB color space is regarded as valid. Treat and retain. Note that when image data is generated by the digital still camera 12, if data values outside the defined area of the sRGB color space have been rounded, the second positive It goes without saying that color values and negative color values cannot be obtained.

CPU31は、こうして得られたRGB色空間の画像データに対して、ガンマ補正、並びに、マトリクス演算Mを実行する(ステップS220)。ここで実行される処理は、画像処理制御情報GIの中の色空間情報に従って実行される処理である。ガンマ補正を実行する際には、CPU31は既述のパラメータの中でガンマ補正値を参照し、設定されているガンマ補正値(DSCの固有値)を用いて映像データに対してガンマ変換処理を実行する。   The CPU 31 executes the gamma correction and the matrix operation M on the image data in the RGB color space thus obtained (step S220). The process executed here is a process executed according to the color space information in the image processing control information GI. When performing the gamma correction, the CPU 31 refers to the gamma correction value in the above-described parameters, and executes the gamma conversion process on the video data using the set gamma correction value (the unique value of the DSC). I do.

ガンマ補正を実行するにあたり、画像処理制御情報GIによって負値の利用が指定されている場合には、CPU31は、画像データが第1および第2の色彩値を取る領域では、図9に示すように第1のガンマ補正値γ1(設定されているガンマ補正値)を用い、画像データが負の色彩値を取る領域では、第1のガンマ補正値よりも小さな第2のガンマ補正値γ2を用いる。また、第2のガンマ補正値γ2は、R成分用のγ2r、G成分用のγ2g、B成分用のγ2bとに更に分けられる。図9は、ガンマ補正に際して用いられる第1のガンマ補正値γ1に対応する第1のガンマ特性線L1と第2のガンマ補正値γ2r、γ2g、γ2bに対応する第2のガンマ特性線L2r、L2g、L2bとを例示的に示す説明図である。なお、説明を容易にするため、第2のガンマ特性線L2を除いて、代表的にR成分を例にとって説明する。なお、第1のガンマ特性線L1は、R成分については、Rt’=(Rt)γ1として表され、第2のガンマ特性線L2は、Rt’=−(−Rt)γ2rとして表される。 In executing the gamma correction, if the use of a negative value is specified by the image processing control information GI, the CPU 31 determines in a region where the image data takes the first and second color values as shown in FIG. The first gamma correction value γ1 (set gamma correction value) is used, and the second gamma correction value γ2 smaller than the first gamma correction value is used in an area where the image data takes a negative color value. . The second gamma correction value γ2 is further divided into γ2r for the R component, γ2g for the G component, and γ2b for the B component. FIG. 9 shows a first gamma characteristic line L1 corresponding to a first gamma correction value γ1 used for gamma correction and second gamma characteristic lines L2r, L2g corresponding to second gamma correction values γ2r, γ2g, γ2b. , L2b. Note that, for ease of description, the R component will be typically described as an example, except for the second gamma characteristic line L2. The first gamma characteristic line L1 is expressed as Rt '= (Rt) γ1 for the R component, and the second gamma characteristic line L2 is expressed as Rt' = − (− Rt) γ2r .

一般的に、YCbCr色空間とRGB色空間とは、マトリクス演算Sを用いた上記式にて関連付けられるため、YCbCr色空間の表色系(0〜Y〜255、−128〜Cb〜127、−128〜Cr〜127)で示される画像データをRGB色空間の表色系にて表現した場合、R、G、B成分の正の色彩値の領域Tは、0〜255の領域が必ず確保されるが、負の色彩値の領域T/2は、元々、表現を予定していない領域であるため、正の色彩値の領域Tに比べて狭い傾向にある。したがって、負の色彩値に対するガンマ補正値を、正の色彩値と同様の第1のガンマ補正値γ1を用いると、図9に示すように、ガンマ補正後の負の色彩値領域R’1はガンマ補正前の負の色彩値領域R1よりも小さな領域(レンジ)しか保有することができず、せっかく利用する負の色彩値領域を有効に活用することができない。このような条件下において、R、G、B成分の負の色彩値がもたらす色空間をXYZ色空間上で広く確保するために、負の色彩値に対するガンマ補正値γとして、正の色彩値用の第1のガンマ補正値γ1(例えば、2.2)とは別の小さな第2のガンマ補正値γ2(例えば、1.5)を用いると、ガンマ変換後(補正後)のRt’、Gt’、Bt’のレンジを拡張することができる。   In general, since the YCbCr color space and the RGB color space are related by the above equation using the matrix operation S, the color system of the YCbCr color space (0 to Y to 255, -128 to Cb to 127,- When the image data represented by 128 to Cr to 127) is expressed by the color system of the RGB color space, the area T of the positive color value of the R, G, and B components always has the area of 0 to 255. However, since the negative color value area T / 2 is originally an area where no expression is planned, it tends to be narrower than the positive color value area T. Therefore, when the first gamma correction value γ1 similar to the positive color value is used as the gamma correction value for the negative color value, as shown in FIG. 9, the negative color value region R′1 after the gamma correction becomes Only a region (range) smaller than the negative color value region R1 before the gamma correction can be held, and the negative color value region to be used cannot be effectively used. Under such conditions, in order to secure a wide color space provided by the negative color values of the R, G, and B components on the XYZ color space, a gamma correction value γ for the negative color value is used for the positive color value. Using a small second gamma correction value γ2 (for example, 1.5) different from the first gamma correction value γ1 (for example, 2.2) of Rt ′, Gt after gamma conversion (after correction) ', Bt' range can be extended.

つまり、撮影時においても、負の色彩値に対するガンマ補正値として正の色彩値に対するガンマ補正値とは別のより小さい値を用い、画像データの出力時にもそれぞれのガンマ補正値を用いることによって、画像データがより広いレンジにおいて表現され得ることとなり、出力される画像データの彩度が向上され、実際の被写体が有する鮮やかな色を再現することができる。   In other words, even at the time of shooting, by using a different smaller value as the gamma correction value for the positive color value as the gamma correction value for the negative color value, and by using the respective gamma correction values at the time of outputting image data, The image data can be expressed in a wider range, the saturation of the output image data is improved, and the vivid colors of the actual subject can be reproduced.

ガンマ補正値γ>1.0の場合には、原点における傾きが0となり、第1のガンマ特性線L1と第2のガンマ特性線L2rとは、その継ぎ目(原点)において滑らかに連続して繋がれる。この結果、第1のガンマ特性線L1と第2のガンマ特性線L2rとのつなぎ目に起因する階調飛びが発生することなく、滑らかな階調値変化を有する画像データ(画像出力結果)を得ることができる。   When the gamma correction value γ> 1.0, the inclination at the origin is 0, and the first gamma characteristic line L1 and the second gamma characteristic line L2r are smoothly and continuously connected at the joint (origin). It is. As a result, image data (image output result) having a smooth gradation value change is obtained without occurrence of a gradation jump caused by a joint between the first gamma characteristic line L1 and the second gamma characteristic line L2r. be able to.

R成分、G成分、B成分は、それぞれ異なる負の色彩値領域を取り得るので、RGB各成分が有する負の色彩値領域の大きさによって、第2のガンマ補正値γを変更しても良い。後述する図10から読みとれるように、例えば、R成分>B成分>G成分の順に拡張される色彩値領域が大きくなる場合には、図9に示すようにR成分用の第2のガンマ補正値γ2r<B成分用の第2のガンマ補正値γ2b<G成分用の第2のガンマ補正値γ2gの順位第2のガンマ補正値γ2を大きくしても良い。かかる場合には、拡張され得る色彩値領域の範囲で適切なガンマ補正を実行することによって、その負の色彩値領域を有効に活用することができるからである。この結果、画像データをより広いレンジにて表現し、画像データの出力結果の彩度を向上させることができる。   Since the R component, the G component, and the B component can take different negative color value regions, the second gamma correction value γ may be changed according to the size of the negative color value region of each of the RGB components. . As can be read from FIG. 10 described later, for example, when the color value area expanded in the order of R component> B component> G component becomes large, as shown in FIG. 9, the second gamma correction for the R component The order of the value γ2r <the second gamma correction value γ2b for the B component γ2b <the second gamma correction value γ2g for the G component The second gamma correction value γ2 may be increased. In such a case, by performing the appropriate gamma correction in the range of the color value area that can be extended, the negative color value area can be effectively used. As a result, the image data can be expressed in a wider range, and the saturation of the output result of the image data can be improved.

マトリクス演算MはRGB色空間をXYZ系色空間に変換するための演算処理である。マトリクス演算Mを実行する場合には、画像データ生成時の色空間を反映させるため、CPU31はColorSpaceタグを参照し、書き込まれている色空間に対応するマトリクス(M)を用いてマトリクス演算を実行する。このとき、sRGB色空間、NTSC色空間といった色空間が用いられ得る。ここで、XYZ系色空間を介してColorSpaceタグに記載されている色空間情報を反映させるのは、XYZ系色空間が絶対色空間であり、DSC、プリンタといったデバイスに依存しないデバイス非依存性色空間だからである。色空間を変換する際にもXYZ色空間レベルでは常に同じ値を取るようにすることにより、デバイスに依存しないカラーマッチングを行うことができる。マトリクス演算Mは以下に示す演算式である。   The matrix operation M is an operation for converting an RGB color space into an XYZ color space. When the matrix operation M is executed, the CPU 31 refers to the ColorSpace tag and executes the matrix operation using the matrix (M) corresponding to the written color space in order to reflect the color space at the time of generating the image data. I do. At this time, a color space such as an sRGB color space or an NTSC color space may be used. Here, the reason that the color space information described in the ColorSpace tag is reflected via the XYZ color space is that the XYZ color space is an absolute color space, and the device-independent colors that do not depend on devices such as a DSC and a printer. Because it is space. By always taking the same value at the XYZ color space level when converting the color space, device-independent color matching can be performed. The matrix operation M is an operation expression shown below.

RGB色空間上における、可視領域(VA)、sRGB(SR)、NTSC(NS)、wRGB(WR)の色空間領域は図10に示すとおりである。図10から理解できるように、sRGB色空間が最も狭い色空間領域を有しており、NTSC色空間領域、およびwRGB色空間領域はsRGB色空間領域よりも広い色空間領域を有している。   The color space regions of the visible region (VA), sRGB (SR), NTSC (NS), and wRGB (WR) on the RGB color space are as shown in FIG. As can be understood from FIG. 10, the sRGB color space has the narrowest color space region, and the NTSC color space region and the wRGB color space region have a wider color space region than the sRGB color space region.

Figure 2004240992
Figure 2004240992

マトリクス演算M実行後に得られる画像データGDの色空間はXYZ色空間である。従来は、プリンタまたはコンピュータにおける画像処理に際して用いられる色空間はsRGBに固定されており、ディジタルスチルカメラ12の有する色空間を有効に活用することができなかった。これに対して、本実施例では、画像ファイルGFの画像処理制御情報GIに記載された画像データ生成時における色空間をターゲット色空間に設定し、設定された色空間に対応してマトリクス演算Mに用いられるマトリクス(M)を変更するプリンタ(プリンタドライバ)を用いている。したがって、ディジタルスチルカメラ12が、RGB色空間の色特性の1つであり、sRGB色空間よりも広い空間を有するNTSC色空間で画像データを生成した場合にも、画像データが生成された色空間を有効に活用して、正しい色再現を実現することができる。   The color space of the image data GD obtained after the execution of the matrix operation M is the XYZ color space. Conventionally, the color space used for image processing in a printer or a computer is fixed to sRGB, and the color space of the digital still camera 12 cannot be effectively used. On the other hand, in the present embodiment, the color space at the time of generating the image data described in the image processing control information GI of the image file GF is set as the target color space, and the matrix operation M is performed in accordance with the set color space. A printer (printer driver) that changes the matrix (M) used for (1) is used. Therefore, even when the digital still camera 12 is one of the color characteristics of the RGB color space and generates the image data in the NTSC color space having a larger space than the sRGB color space, the color space in which the image data is generated is also used. , And correct color reproduction can be realized.

CPU31は、任意情報に基づく画像調整を実行するために、画像データGDの色空間をXYZ色空間からwRGB色空間へ変換する処理、すなわち、マトリクス演算N-1および逆ガンマ補正を実行する(ステップS230)。なお、wRGB色空間は、図10に示すとおりsRGB色空間よりも広い色空間であり、sRGB色空間では定義領域に含まれず表現されなかった第2の正の色彩値および負の色彩値も、wRGB色空間の定義領域内に含まれる表現可能な色彩値として取り扱われ得る。逆ガンマ補正を実行する際には、CPU31は既述のパラメータの中でカラープリンタ20側のガンマ補正値を参照し、設定されているガンマ補正値の逆数を用いて映像データに対して逆ガンマ変換処理を実行する。マトリクス演算N-1を実行する場合には、CPU31はROM31からwRGB色空間への変換に対応するマトリクス(N-1)を用いてマトリクス演算を実行する。マトリクス演算N-1は以下に示す演算式である。 The CPU 31 executes a process of converting the color space of the image data GD from the XYZ color space to the wRGB color space, that is, the matrix operation N −1 and the inverse gamma correction in order to perform the image adjustment based on the arbitrary information (step). S230). Note that the wRGB color space is a color space wider than the sRGB color space as shown in FIG. 10, and the second positive color value and the negative color value that are not included in the definition area and are not represented in the sRGB color space are also: It can be treated as a representable color value included in the definition area of the wRGB color space. When performing the inverse gamma correction, the CPU 31 refers to the gamma correction value of the color printer 20 in the above-described parameters, and uses the inverse of the set gamma correction value to perform inverse gamma correction on the video data. Execute the conversion process. When executing the matrix operation N −1 , the CPU 31 executes the matrix operation using the matrix (N −1 ) corresponding to the conversion from the ROM 31 to the wRGB color space. The matrix operation N- 1 is an operation expression shown below.

Figure 2004240992
Figure 2004240992

マトリクス演算N-1実行後に得られる画像データGDの色空間はwRGB色空間である。このwRGB色空間は既述のように、sRGB色空間よりも広い色空間であり、元来、ディジタルスチルカメラ12によって表現可能なRGB色空間に対応している。 The color space of the image data GD obtained after execution of the matrix operation N- 1 is a wRGB color space. As described above, the wRGB color space is a color space wider than the sRGB color space, and originally corresponds to the RGB color space that can be expressed by the digital still camera 12.

CPU31は、画像を特徴付けるための自動画像調整を実行する(ステップS240)。ここで実行される処理は、画像処理制御情報GIの中の画質に関連する情報に従って実行される処理である。自動画像調整を実行する際には、CPU31は既述のパラメータの中から明るさ、シャープネス等のパラメータ値をそれぞれ参照し、設定されているパラメータ値を用いて映像データに対して画像調整を実行する。なお、自動調整パラメータが指定されている場合には、自動調整パラメータによって指定されるパラメータ値を基本として、任意に指定されている他のパラメータ値を反映させる。   CPU 31 executes automatic image adjustment for characterizing the image (step S240). The process executed here is a process executed according to information related to the image quality in the image processing control information GI. When performing automatic image adjustment, the CPU 31 refers to parameter values such as brightness and sharpness from the above-described parameters, and performs image adjustment on video data using the set parameter values. I do. When an automatic adjustment parameter is specified, another parameter value arbitrarily specified is reflected based on the parameter value specified by the automatic adjustment parameter.

また、画像ファイルGFの画像処理制御情報GIにてこれら画質調整パラメータが指定されていない場合であっても、自動調整パラメータだけはディジタルスチルカメラ12側にて自動的に付されるため、CPU31は、自動調整パラメータ値に従って画像調整を実行する。   Even when these image quality adjustment parameters are not specified in the image processing control information GI of the image file GF, only the automatic adjustment parameters are automatically added on the digital still camera 12 side. Image adjustment is performed according to the automatic adjustment parameter value.

CPU31は、印刷のためのwRGB色変換処理およびハーフトーン処理を実行する(ステップS250)。wRGB色変換処理では、CPU31は、ROM32内に格納されているwRGB色空間に対応したCMYK色空間への変換用ルックアップテーブル(LUT)を参照し、画像データの色空間をwRGB色空間からCMYK色空間へ変更する。すなわち、R・G・Bの階調値からなる画像データをプリンタ20で使用する、例えば、C・M・Y・K・LC・LMの各6色の階調値のデータに変換する。   The CPU 31 executes a wRGB color conversion process and a halftone process for printing (step S250). In the wRGB color conversion process, the CPU 31 refers to a lookup table (LUT) for conversion into a CMYK color space corresponding to the wRGB color space stored in the ROM 32, and changes the color space of the image data from the wRGB color space to the CMYK. Change to color space. That is, the image data composed of the R, G, and B gradation values is converted into data of gradation values of six colors, for example, C, M, Y, K, LC, and LM, to be used in the printer 20.

ハーフトーン処理では、色変換済みの画像データを受け取って、階調数変換処理を行う。本実施例においては、色変換後の画像データは各色毎に256階調幅を持つデータとして表現されている。これに対し、本実施例のカラープリンタ20では、「ドットを形成する」,「ドットを形成しない」のいずれかの状態しか採り得ない。すなわち、本実施例のプリンタ20は局所的には2階調しか表現し得ない。そこで、256階調を有する画像データを、カラープリンタ20が表現可能な2階調で表現された画像データに変換する。この2階調化(2値化)処理の代表的な方法として、誤差拡散法と呼ばれる方法と組織的ディザ法と呼ばれる方法とがある。   In the halftone process, color-converted image data is received, and a tone number conversion process is performed. In the present embodiment, the image data after the color conversion is expressed as data having 256 gradation widths for each color. On the other hand, the color printer 20 according to the present embodiment can take only one of the states of “form dots” and “do not form dots”. That is, the printer 20 of the present embodiment can locally express only two gradations. Therefore, image data having 256 gradations is converted into image data expressed in two gradations that can be expressed by the color printer 20. As typical methods of the binarization (binarization) processing, there are a method called an error diffusion method and a method called an organized dither method.

カラープリンタ20では、色変換処理に先立って、画像データの解像度が印刷解像度よりも低い場合は、線形補間を行って隣接画像データ間に新たなデータを生成し、逆に印刷解像度よりも高い場合は、一定の割合でデータを間引くことによって、画像データの解像度を印刷解像度に変換する解像度変換処理を実行する。また、カラープリンタ20は、ドットの形成有無を表す形式に変換された画像データを、カラープリンタ20に転送すべき順序に並べ替えてるインターレス処理を実行する。   In the color printer 20, prior to the color conversion processing, if the resolution of the image data is lower than the printing resolution, linear interpolation is performed to generate new data between adjacent image data, and conversely, if the resolution is higher than the printing resolution. Performs a resolution conversion process of converting the resolution of image data into a print resolution by thinning out data at a fixed rate. In addition, the color printer 20 executes an interlace process of rearranging the image data converted into a format representing the presence or absence of dot formation into an order to be transferred to the color printer 20.

本実施例では、カラープリンタ20において全ての画像処理を実行し、生成された画像データに従って、ドットパターンが印刷媒体上に形成されるが、画像処理の全て、または、部分をコンピュータPC上で実行するようにしても良い。この場合には、コンピュータPCのハードディスク等にインストールされている画像データ処理アプリケーションに図7を参照して説明した画像処理機能を持たせることによって実現される。ディジタルスチルカメラ12にて生成された画像ファイルGFは、ケーブルCVを介して、あるいは、メモリカードMCを介してコンピュータPCに対して提供される。コンピュータPC上では、ユーザの操作によってアプリケーションが起動され、画像ファイルGFの読み込み、画像処理制御情報GIの解析、画像データGDの変換、調整が実行される。あるいは、メモリカードMCの差込を検知することによって、またあるいは、ケーブルCVの差込を検知することによって、アプリケーションが自動的に起動し、画像ファイルGFの読み込み、画像処理制御情報GIの解析、画像データGDの変換、調整が自動的になされても良い。   In the present embodiment, all image processing is executed in the color printer 20 and a dot pattern is formed on a print medium in accordance with the generated image data. However, all or a part of the image processing is executed on the computer PC. You may do it. This case is realized by providing the image data processing application installed on the hard disk or the like of the computer PC with the image processing function described with reference to FIG. The image file GF generated by the digital still camera 12 is provided to the computer PC via the cable CV or via the memory card MC. On the computer PC, an application is started by a user's operation, and reading of the image file GF, analysis of the image processing control information GI, and conversion and adjustment of the image data GD are executed. Alternatively, by detecting the insertion of the memory card MC, or alternatively, by detecting the insertion of the cable CV, the application starts automatically, reads the image file GF, analyzes the image processing control information GI, Conversion and adjustment of the image data GD may be automatically performed.

以上、説明したように第1の実施例に従うカラープリンタ20における画像処理によれば、画像データの色空間をYCbCr色空間からRGB色空間に変換するに際して発生した第2の正の色彩値および負の色彩値を有効に取り扱い、画像処理に用いることができる。また、カラープリンタ20は、sRGB色空間よりも広いwRGB色空間に対応したCMYK色空間変換テーブルを備えている。したがって、ディジタルスチルカメラ12によって生成された、sRGB色空間の定義領域外に存在する色彩値を有効に取り扱うことができると共に、sRGB色空間の定義領域外に存在する色彩値を用いて、より高彩度の印刷結果を得ることができる。すなわち、sRGB色空間上ではその定義領域外に存在するために表現できなかった色彩値を用いて、より彩度の高い印刷結果を得ることができる。   As described above, according to the image processing in the color printer 20 according to the first embodiment, the second positive color value and the negative color value generated when the color space of the image data is converted from the YCbCr color space to the RGB color space. Can be used effectively for image processing. In addition, the color printer 20 includes a CMYK color space conversion table corresponding to a wRGB color space wider than the sRGB color space. Therefore, the color values generated by the digital still camera 12 existing outside the defined area of the sRGB color space can be effectively handled, and the color values existing outside the defined area of the sRGB color space can be used to achieve higher saturation. Can be obtained. In other words, a printing result with higher saturation can be obtained by using a color value that cannot be expressed because it exists outside the defined area in the sRGB color space.

画像ファイルGF内の画像処理制御情報GI内のColorSpaceタグによって記述されている色空間情報を反映してカラープリンタ20における画像処理を実行することができる。したがって、ディジタルスチルカメラ12によって指定された色空間特性に従って画像データの処理を実行することが可能となり、色空間の相違に起因するディジタルスチルカメラ12における撮影結果とカラープリンタ20における出力結果の相違を防止することができる。また、ディジタルスチルカメラ12の色再現能力を正しく再現することができる。   The image processing in the color printer 20 can be executed by reflecting the color space information described by the ColorSpace tag in the image processing control information GI in the image file GF. Therefore, the image data can be processed in accordance with the color space characteristics specified by the digital still camera 12, and the difference between the photographing result of the digital still camera 12 and the output result of the color printer 20 due to the difference in color space can be reduced. Can be prevented. Further, the color reproduction capability of the digital still camera 12 can be correctly reproduced.

D.その他の実施例:
カラープリンタ20における画像処理は、図11に示すように実行されても良い。図11は第2の実施例としてのカラープリンタ20における画像処理を示すフローチャートである。本実施例では、sRGB色空間からwRGB色空間への色空間特性の変更に際して、マトリクス演算Mおよびマトリクス演算N-1を一つのマトリクス演算(MN-1)(ステップS320)として、画像処理の高速化を図っている。
D. Other embodiments:
Image processing in the color printer 20 may be executed as shown in FIG. FIG. 11 is a flowchart illustrating image processing in the color printer 20 according to the second embodiment. In the present embodiment, when changing the color space characteristics from the sRGB color space to the wRGB color space, the matrix operation M and the matrix operation N -1 are set as one matrix operation (MN -1 ) (step S320), and the image processing speed is increased. It is trying to make it.

また、カラープリンタ20における画像処理は、図12に示すように実行されても良い。図12は第3の実施例としてのカラープリンタ20における画像処理を示すフローチャートである。本実施例では、YCbCr色空間で表現されている画像データに対して自動画像調整を先ず実行する(ステップ410)。続いて、自動画像調整が終了した画像データに対して、マトリクスS演算(ステップS420)、マトリクスM演算(ステップS430)、マトリクスN-1演算(ステップS440)を実行して、色空間の変換を順次実行する。 The image processing in the color printer 20 may be executed as shown in FIG. FIG. 12 is a flowchart illustrating image processing in the color printer 20 according to the third embodiment. In the present embodiment, automatic image adjustment is first performed on image data expressed in the YCbCr color space (step 410). Subsequently, a matrix S operation (step S420), a matrix M operation (step S430), and a matrix N -1 operation (step S440) are performed on the image data on which the automatic image adjustment has been completed, to convert the color space. Execute sequentially.

上記第1〜第3の実施例では、カラープリンタ20によって画像処理を実行し、また、画像処理制御情報GIにおいて負値の利用が指定されている場合に、画像データの負値および第2の正値を利用した画像処理が実行された。これに対して、第4の実施例では、画像処理をパーソナルコンピュータPCにて実行すると共に、負値の利用の有無を画像処理を実行するオペレータが指定する。このパーソナルコンピュータPCにて実行される画像処理について図13を参照して説明する。図13は第4の実施例に係るパーソナルコンピュータPCにおける画像処理の流れを示すフローチャートである。   In the first to third embodiments, the image processing is executed by the color printer 20, and when the use of a negative value is specified in the image processing control information GI, the negative value of the image data and the second Image processing using a positive value has been performed. On the other hand, in the fourth embodiment, the image processing is executed by the personal computer PC, and the operator who executes the image processing specifies whether or not the negative value is used. The image processing executed by the personal computer PC will be described with reference to FIG. FIG. 13 is a flowchart showing a flow of image processing in the personal computer PC according to the fourth embodiment.

パーソナルコンピュータPCは、オペレータによって、画像ファイルGFの読み出しが指示されると、メモリカードMCから画像ファイルGFを読み出し、読み出した画像ファイルGFをRAM33に一時的に格納する(ステップS500)。パーソナルコンピュータPCは、オペレータによって、負値利用の指示が入力されたか否かを判定する(ステップS510)。パーソナルコンピュータPCは、負値利用の指示が入力されている場合には(ステップS520:Yes)、画像データGDに含まれる負値および第2の正値を利用した画像処理を実行して(ステップS530)、本処理ルーチンを終了する。   When the operator instructs to read the image file GF, the personal computer PC reads the image file GF from the memory card MC and temporarily stores the read image file GF in the RAM 33 (step S500). The personal computer PC determines whether or not an instruction to use a negative value has been input by the operator (step S510). When an instruction to use a negative value has been input (step S520: Yes), the personal computer PC executes image processing using the negative value and the second positive value included in the image data GD (step S520). S530), this processing routine ends.

パーソナルコンピュータPCは、負値利用の指示が入力されていない場合には(ステップS520:No)、画像データGDに含まれる負値および第2の正値を所定のRGB表色域内にクリッピングまたは負値および第2の正値を捨てて、画像データGDに対する画像処理を実行して(ステップS540)、本処理ルーチンを終了する。このように、オペレータによって画像処理時における負値の利用の有無を指定することができれば、PrintMatchingタグを有しない画像ファイルGFに対しても、画像データGDに含まれる負値を利用した画像処理を実行することができるので、画像処理の結果として、彩度の高い画像を得ることができる。   If the instruction to use the negative value has not been input (step S520: No), the personal computer PC clips the negative value and the second positive value included in the image data GD into the predetermined RGB color gamut. The value and the second positive value are discarded, image processing is performed on the image data GD (step S540), and the processing routine ends. As described above, if the operator can specify whether or not to use a negative value during image processing, the image processing using the negative value included in the image data GD can be performed on the image file GF having no PrintMatching tag. Since the image processing can be executed, an image with high saturation can be obtained as a result of the image processing.

上記各画像処理の実施例では、共に出力装置としてカラープリンタ20を用いているが、出力装置にはCRT、LCD、プロジェクタ等の表示装置を用いることもできる。かかる場合には、出力装置としての表示装置によって、例えば、図7等を用いて説明した画像処理を実行する画像処理プログラム(ディスプレイドライバ)が実行される。あるいは、CRT等がコンピュータの表示装置として機能する場合には、コンピュータ側にて画像処理プログラムが実行される。ただし、最終的に出力される画像データは、CMYK系色空間ではなくRGB色空間を有している。   In the above embodiments of the image processing, the color printer 20 is used as the output device, but a display device such as a CRT, an LCD, a projector, or the like may be used as the output device. In such a case, an image processing program (display driver) for executing the image processing described with reference to FIG. 7 and the like is executed by the display device as the output device. Alternatively, when a CRT or the like functions as a display device of a computer, the computer executes an image processing program. However, the finally output image data has an RGB color space instead of a CMYK color space.

かかる場合には、カラープリンタ20を介した印刷結果がディジタルスチルカメラ12によって生成された画像データの色空間を反映できるのと同様にして、CRT等の表示装置における表示結果を画像ファイルGFによって指定することができる。したがって、画像ファイルGFの画像処理制御情報GIに、CRT等の表示装置に適したパラメータを持たせることにより、また、個々の表示装置の表示特性に最適化したパラメータを持たせることにより、ディジタルスチルカメラ12によって生成された画像データGDをより正確に表示させることができる。   In such a case, the display result on the display device such as the CRT is designated by the image file GF in the same manner as the print result via the color printer 20 can reflect the color space of the image data generated by the digital still camera 12. can do. Therefore, by providing the image processing control information GI of the image file GF with parameters suitable for a display device such as a CRT, and by providing parameters optimized for the display characteristics of each display device, digital still images can be obtained. The image data GD generated by the camera 12 can be displayed more accurately.

上記第1の実施例では、画像処理制御情報GIは、画像データGDと共に画像ファイルGFに格納されているが、画像データGDとは別ファイルとしてメモリカードMCに格納されても良い。   In the first embodiment, the image processing control information GI is stored in the image file GF together with the image data GD, but may be stored in the memory card MC as a file separate from the image data GD.

また、上記各実施例では、画像処理制御情報GIを検出して負値利用の指示が指定されている場合、あるいは、オペレータ等によって負値利用が指示された場合に画像データGDに含まれる負値、および第2の正値を利用して画像処理を実行している。しかしながら、これらの指定、指示を受けることなく、始めから負値、および第2の正値を利用する画像処理を実行するようにしてもよい。かかる場合には、画像データGDに負値等が含まれていれば、負値等を反映した画像処理結果を得ることができ、画像データGDに負値等が含まれていなければ、通常の画像処理結果を得ることができる。   In each of the above embodiments, when the image processing control information GI is detected and an instruction to use a negative value is specified, or when an operator or the like instructs to use a negative value, the negative value included in the image data GD is included. The image processing is executed using the value and the second positive value. However, the image processing using the negative value and the second positive value may be executed from the beginning without receiving these designations and instructions. In such a case, if the image data GD includes a negative value or the like, an image processing result reflecting the negative value or the like can be obtained. If the image data GD does not include a negative value or the like, a normal An image processing result can be obtained.

以上、いくつかの実施例に基づき本発明に係る画像データ出力装置を説明してきたが、上記した発明の実施の形態は、本発明の理解を容易にするためのものであり、本発明を限定するものではない。本発明は、その趣旨並びに特許請求の範囲を逸脱することなく、変更、改良され得ると共に、本発明にはその等価物が含まれることはもちろんである。   As described above, the image data output device according to the present invention has been described based on some examples. However, the above-described embodiments are for facilitating understanding of the present invention, and the present invention is not limited to the embodiments. It does not do. The present invention can be modified and improved without departing from the spirit and scope of the claims, and it is needless to say that the present invention includes equivalents thereof.

上記第1の実施例では、マトリクスS演算時における第2の正の色彩値および負の色彩値を有効に扱う処理と、マトリクスM演算時に指定された色空間情報を反映する処理とを同時に実行しているが、これらの処理は同時に実行されなくても良い。例えば、マトリクスM演算時における色空間をwRGB空間に固定しておき、マトリクスS演算時における第2の正の色彩値および負の色彩値を有効に扱う処理のみを実行しても良い。かかる場合には、例えば、ディジタルスチルカメラ12としては表現可能であるがsRGB色空間では表現され得なかったsRGB色空間の定義領域外の色を表現することが可能となり、出力画像の彩度を向上させることができる。   In the first embodiment, the process of effectively handling the second positive color value and the negative color value at the time of the matrix S operation and the process of reflecting the color space information designated at the time of the matrix M operation are simultaneously executed. However, these processes need not be performed simultaneously. For example, the color space at the time of the matrix M operation may be fixed to the wRGB space, and only the process of effectively handling the second positive color value and the negative color value at the time of the matrix S operation may be executed. In such a case, for example, it is possible to express a color outside the defined area of the sRGB color space that can be expressed as the digital still camera 12 but could not be expressed in the sRGB color space, and the saturation of the output image can be reduced. Can be improved.

また、マトリクスS演算時に第2の正の色彩値および負の色彩値を用いた処理を実行することなく、マトリクスM演算時に撮影時または指定された色空間情報を反映する処理を実行しても良い。かかる場合には、画像処理に際して画像データ生成時における色空間を正しく解釈し、正しい色再現を実現することができる。したがって、入力装置、出力装置等の装置固有の色空間の影響を受けることのない、装置非依存性の色空間変換処理を実行することができる。この結果、撮影時に得られた画像データの出力結果と同様の出力結果を出力装置から得ることができる。   Also, it is possible to execute processing for reflecting the color space information at the time of shooting or designated at the time of matrix M calculation without performing the processing using the second positive color value and the negative color value at the time of matrix S calculation. good. In such a case, it is possible to correctly interpret the color space at the time of image data generation at the time of image processing, and to realize correct color reproduction. Therefore, it is possible to execute a device-independent color space conversion process that is not affected by a device-specific color space such as an input device and an output device. As a result, an output result similar to the output result of the image data obtained at the time of shooting can be obtained from the output device.

さらに、上記実施例では、画像処理制御情報GIによって、負値の利用の有無を指定しているが、負値の利用の有無を指定することなく、正値用のガンマ補正値と負値用のガンマ補正値とを画像処理制御情報GIによって指定しても良い。画像データGDが負の値を有する場合に問題となる処理は、ガンマ補正処理である。したがって、ガンマ補正処理に用いるべきガンマ補正値を正のデータと負のデータとで使い分けることにより、画像処理において負値の利用の有無を指定する必要なく、画像処理を実行することができる。   Further, in the above embodiment, the use or non-use of the negative value is specified by the image processing control information GI. However, the gamma correction value for the positive value and the gamma correction value for the negative value are specified without specifying the use of the negative value. May be specified by the image processing control information GI. A process that becomes a problem when the image data GD has a negative value is a gamma correction process. Therefore, by using the gamma correction value to be used for the gamma correction process for positive data and negative data, it is possible to execute the image processing without having to specify whether to use a negative value in the image processing.

また、例示した各パラメータは、あくまでも例示に過ぎず、これらのパラメータによって本願に係る発明が制限されることはない。さらに、各数式におけるマトリクスS、M、N-1の値は例示に過ぎず、ターゲットとする色空間、あるいは、カラープリンタ20において利用可能な色空間等によって適宜変更され得ることはいうまでもない。 Further, the illustrated parameters are merely examples, and the invention according to the present application is not limited by these parameters. Further, the values of the matrices S, M, and N -1 in each mathematical expression are merely examples, and it goes without saying that the values can be appropriately changed depending on the target color space, the color space available in the color printer 20, and the like. .

上記各実施例では、画像ファイル生成装置としてディジタルスチルカメラ12を用いて説明したが、この他にもスキャナ、ディジタルビデオカメラ等が用いられ得る。スキャナを用いる場合には、画像ファイルGFの基本情報、任意情報の指定はコンピュータPC上で実行されても良く、あるいは、スキャナ上に情報設定用に予め設定情報が割り当てられているプリセットボタン、任意設定のための表示画面および設定用ボタンを供えておき、スキャナ単独で実行可能にしてもよい。   In each of the above embodiments, the digital still camera 12 has been described as the image file generating device. However, a scanner, a digital video camera, or the like may be used. When a scanner is used, the designation of basic information and arbitrary information of the image file GF may be executed on the computer PC, or a preset button in which setting information is pre-assigned on the scanner for setting information, A display screen for setting and a setting button may be provided so that the scanner can be executed alone.

上記各実施例において用いた色空間はあくまでも例示であり、他の色空間を用いても構わない。いずれの場合にも、ディジタルスチルカメラ12等の画像データ生成装置にて生成された画像データが、画像データ生成装置の有する色空間を反映して出力されれば良い。   The color spaces used in the above embodiments are merely examples, and other color spaces may be used. In any case, the image data generated by the image data generation device such as the digital still camera 12 may be output by reflecting the color space of the image data generation device.

上記第1実施例では、画像ファイルGFとしてExif形式のファイルを例にとって説明したが、本発明に係る画像ファイルの形式はこれに限られない。すなわち、出力装置によって出力されるべき画像データと、ディジタルスチルカメラ12等の画像データ生成装置において用いられた色空間に関する情報とが少なくとも含まれている画像ファイルであれば良い。このようなファイルであれば、画像データ生成装置において生成された画像データ(モニタ等を介して得られる画像表示)と出力装置における出力画像との出力画像の相違を低減することができるからである。   In the first embodiment, an Exif format file has been described as an example of the image file GF, but the format of the image file according to the present invention is not limited to this. That is, any image file that contains at least image data to be output by the output device and information on the color space used in the image data generation device such as the digital still camera 12 may be used. With such a file, it is possible to reduce a difference between an output image of the image data generated by the image data generating device (an image display obtained via a monitor or the like) and an output image of the output device. .

上記第1実施例に係るカラープリンタ20はあくまで例示であり、その構成は各実施例の記載内容に限定されるものではない。カラープリンタ20は、少なくとも、画像ファイルGFの画像処理制御情報GIを解析して、記載、または、指定された色空間情報に応じて画像を出力(印刷)できればよい。   The color printer 20 according to the first embodiment is merely an example, and the configuration is not limited to the contents described in each embodiment. The color printer 20 only needs to analyze at least the image processing control information GI of the image file GF and output (print) an image in accordance with the described or specified color space information.

なお、画像データと画像処理制御情報GIとが含まれる画像ファイルGFには、画像処理制御情報GIとを関連付ける関連付けデータを生成し、画像データと画像処理制御情報GIとをそれぞれ独立したファイルに格納し、画像処理の際に関連付けデータを参照して画像データと画像処理制御情報GIとを関連付け可能なファイルも含まれる。かかる場合には、画像データと画像処理制御情報GIとが別ファイルに格納されているものの、画像処理制御情報GIを利用する画像処理の時点では、画像データおよび画像処理制御情報GIとが一体不可分の関係にあり、実質的に同一のファイルに格納されている場合と同様に機能するからである。すなわち、少なくとも画像処理の時点において、画像データと画像処理制御情報GIとが関連付けられて用いられる態様は、本実施例における画像ファイルGFに含まれる。さらに、CD−ROM、CD−R、DVD−ROM、DVD−RAM等の光ディスクメディアに格納されている動画像ファイルも含まれる。   In the image file GF including the image data and the image processing control information GI, association data for associating the image processing control information GI is generated, and the image data and the image processing control information GI are stored in independent files. However, a file that can associate the image data with the image processing control information GI by referring to the association data at the time of image processing is also included. In such a case, although the image data and the image processing control information GI are stored in separate files, at the time of the image processing using the image processing control information GI, the image data and the image processing control information GI cannot be integrated. And functions in the same manner as when stored in the same file. That is, the mode in which the image data and the image processing control information GI are used in association with each other at least at the time of the image processing is included in the image file GF in the present embodiment. Furthermore, moving image files stored on optical disk media such as CD-ROM, CD-R, DVD-ROM, and DVD-RAM are also included.

上記実施例では、ディジタルスチルカメラ20を用いて画像ファイルを生成しているが、ディジタルビデオカメラによって生成しても良い。ディジタルビデオカメラにて生成される場合には、例えば、静止画像データと出力制御情報とを格納する画像ファイル、あるいは、MPEG形式等の動画像データと出力制御情報とを含む動画像ファイルが生成される。この動画像ファイルが用いられる場合には、動画の全部または一部のフレームに対して出力制御情報に応じた出力制御が実行される。   In the above embodiment, the image file is generated using the digital still camera 20, but may be generated using a digital video camera. When generated by a digital video camera, for example, an image file storing still image data and output control information or a moving image file including moving image data in MPEG format and output control information is generated. You. When this moving image file is used, output control according to the output control information is performed on all or some frames of the moving image.

第1実施例に係る画像出力装置を適用可能な画像データ出力システムの一例を示す説明図である。FIG. 1 is an explanatory diagram illustrating an example of an image data output system to which an image output device according to a first embodiment can be applied. 第1実施例に係る画像出力装置が出力する画像ファイル(画像データ)を生成可能なディジタルスチルカメラの概略構成を示すブロック図である。FIG. 2 is a block diagram illustrating a schematic configuration of a digital still camera capable of generating an image file (image data) output by the image output device according to the first embodiment. Exifファイル形式にて格納されている画像ファイルGFの概略的な内部構造を示す説明図である。FIG. 3 is an explanatory diagram showing a schematic internal structure of an image file GF stored in an Exif file format. 第1実施例に係るカラープリンタ20の概略構成を示すブロック図である。FIG. 2 is a block diagram illustrating a schematic configuration of a color printer 20 according to the first embodiment. カラープリンタ20の制御回路30の内部構成を示す説明図である。FIG. 2 is an explanatory diagram showing an internal configuration of a control circuit 30 of the color printer 20. 第1実施例に係るカラープリンタ20における印刷処理の処理ルーチンを示すフローチャートである。4 is a flowchart illustrating a processing routine of a printing process in the color printer 20 according to the first embodiment. 第1実施例に係るカラープリンタ20における画像処理の流れを示すフローチャートである。6 is a flowchart illustrating a flow of image processing in the color printer 20 according to the first embodiment. RGB色空間の定義領域外(EA)における画像データを有効に扱う意味を説明するために色空間領域を2次元で表現する説明図である。FIG. 3 is an explanatory diagram illustrating a two-dimensional representation of a color space area in order to explain the meaning of effectively handling image data outside a defined area (EA) of an RGB color space. ガンマ補正に際して用いられる第1のガンマ補正値γ1に対応する第1のガンマ特性線L1と第2のガンマ補正値γ2r、γ2g、γ2bに対応する第2のガンマ特性線L2r、L2g、L2bとを例示的に示す説明図である。The first gamma characteristic line L1 corresponding to the first gamma correction value γ1 and the second gamma characteristic lines L2r, L2g, L2b corresponding to the second gamma correction values γ2r, γ2g, γ2b used for gamma correction It is explanatory drawing shown exemplarily. RGB色空間上における、可視領域(VA)、sRGB(SR)、NTSC(NS)、wRGB(WR)の色空間領域を示す説明図である。FIG. 3 is an explanatory diagram showing a color space region of a visible region (VA), sRGB (SR), NTSC (NS), and wRGB (WR) on an RGB color space. 第2の実施例としてのカラープリンタ20における画像処理を示すフローチャートである。9 is a flowchart illustrating image processing in a color printer 20 according to a second embodiment. 第3の実施例としてのカラープリンタ20における画像処理を示すフローチャートである。9 is a flowchart illustrating image processing in a color printer 20 according to a third embodiment. 第4の実施例に係るパーソナルコンピュータPCにおける画像処理の流れを示すフローチャートである。15 is a flowchart illustrating a flow of image processing in a personal computer PC according to a fourth embodiment.

符号の説明Explanation of reference numerals

10…画像データ出力システム
12…ディジタルスチルカメラ
121…光学回路
122…画像取得回路
123…画像処理回路
124…制御回路
126…選択・決定ボタン
14…ディスプレイ
20…カラープリンタ
21…キャリッジ
211…印字ヘッド
212…インクカートリッジ
213…インクカートリッジ
214〜220…インク吐出用ヘッド
22…キャリッジモータ
23…プラテン
24…紙送りモータ
25…摺動軸
26…駆動ベルト
27…プーリ
28…位置検出センサ
29…操作パネル
30…制御回路
31…演算処理装置(CPU)
32…プログラマブルリードオンリメモリ(PROM)
33…ランダムアクセスメモリ(RAM)
34…PCMCIAスロット
35…周辺機器入出力部(PIO)
36…タイマ
37…駆動バッファ
38…バス
39…発振器
40…分配出力器
GF…画像ファイル(Exifファイル)
101…JPEG画像データ格納領域
102…付属情報格納領域
103…Makernote格納領域
MC…メモリカード
DESCRIPTION OF SYMBOLS 10 ... Image data output system 12 ... Digital still camera 121 ... Optical circuit 122 ... Image acquisition circuit 123 ... Image processing circuit 124 ... Control circuit 126 ... Selection / decision button 14 ... Display 20 ... Color printer 21 ... Carriage 211 ... Print head 212 ... Ink cartridge 213 ... Ink cartridge 214-220 ... Ink ejection head 22 ... Carriage motor 23 ... Platen 24 ... Paper feed motor 25 ... Sliding shaft 26 ... Drive belt 27 ... Pulley 28 ... Position detection sensor 29 ... Operation panel 30 ... Control circuit 31: arithmetic processing unit (CPU)
32: Programmable read only memory (PROM)
33 Random access memory (RAM)
34 PCMCIA slot 35 Peripheral device input / output unit (PIO)
36 ... Timer 37 ... Drive Buffer 38 ... Bus 39 ... Oscillator 40 ... Distribution Output Device GF ... Image File (Exif File)
101: JPEG image data storage area 102: Additional information storage area 103: Makernote storage area MC: Memory card

Claims (31)

画像データと、所定の色空間の領域外の情報を使用するか否かを示すと共に前記画像データに関連付けられている使用情報とを用いて画像処理を実行する画像処理装置であって、
前記画像データを取り込む画像データ取り込み手段と、
前記画像データに関連付けられている前記使用情報を取得する使用情報取得手段と、
前記取得された使用情報に基づいて、前記所定の色空間の領域外の情報を使用するか否かを判定する判定手段と、
前記領域外情報を使用すると判定された場合には、前記領域外情報をその定義領域に内包し得る広い定義領域を有する広域色空間への色変換処理を含む前記画像データの画像処理を実行する画像処理手段とを備える画像処理装置。
An image processing apparatus that performs image processing using image data and usage information associated with the image data, indicating whether to use information outside a predetermined color space area,
Image data capturing means for capturing the image data,
Usage information obtaining means for obtaining the usage information associated with the image data,
Determining means for determining whether to use information outside the area of the predetermined color space based on the obtained use information,
If it is determined that the out-of-area information is used, image processing of the image data including a color conversion process to a wide-area color space having a wide definition area capable of including the out-of-area information in the definition area is performed. An image processing apparatus comprising: an image processing unit.
請求項1に記載の画像処理装置において、
前記領域外情報を使用しないと判定された場合には、前記画像処理手段は、前記所定の色空間と同等の定義領域を有する既定の色空間を介して前記画像データの画像処理を実行することを特徴とする画像処理装置。
The image processing apparatus according to claim 1,
If it is determined that the out-of-area information is not used, the image processing unit performs image processing of the image data via a predetermined color space having a defined area equivalent to the predetermined color space. An image processing apparatus characterized by the above-mentioned.
請求項1または請求項2に記載の画像処理装置において、
前記画像データは第1の色空間によって定義されており、
前記画像データ取り込み手段は、前記取り込んだ画像データの色空間を前記第1の色空間から第2の色空間に変換し、
前記画像処理手段は、前記第2の色空間によって定義されている画像データの色空間を、前記領域外表色値を用いてて第3の色空間に変換することを特徴とする画像処理装置。
In the image processing device according to claim 1 or 2,
The image data is defined by a first color space;
The image data capturing means converts a color space of the captured image data from the first color space to a second color space;
The image processing apparatus, wherein the image processing unit converts a color space of image data defined by the second color space into a third color space using the out-of-region color values.
請求項3に記載の画像処理装置において、
前記第1の色空間はYCbCrの色空間であり、
前記第2の色空間は第1のRGBの色空間であり、
前記第3の色空間は前記第1のRGBの色空間よりも広い定義領域を有する第2のRGBの色空間であることを特徴とする画像処理装置。
The image processing device according to claim 3,
The first color space is a YCbCr color space,
The second color space is a first RGB color space;
The image processing apparatus according to claim 1, wherein the third color space is a second RGB color space having a larger definition area than the first RGB color space.
請求項4に記載の画像処理装置において、
前記第2のRGBの色空間は、sRGB色空間である画像処理装置。
The image processing apparatus according to claim 4,
The image processing device, wherein the second RGB color space is an sRGB color space.
請求項4に記載の画像処理装置において、
前記第3の色空間は、第2のRGB色空間に代えて、CIELABの色空間であることを特徴とする画像処理装置。
The image processing apparatus according to claim 4,
The image processing apparatus according to claim 3, wherein the third color space is a CIELAB color space instead of the second RGB color space.
請求項1に記載の画像処理装置において
前記画像データは、前記所定の色空間の定義領域内の表色値である第1の正の表色値と、前記所定の色空間の定義領域外の表色値である第2の正の表色値および負の表色値の少なくともいずれか一方を含むと共に、第1の色空間によって表現されており、
前記画像データ取り込み手段は、前記第1および第2の正の表色値並びに前記負の表色値を用いて、前記画像データの色空間を前記第1の色空間から第2の色空間に変換することを特徴とする画像処理装置。
The image processing apparatus according to claim 1, wherein the image data includes a first positive colorimetric value that is a colorimetric value within a definition area of the predetermined color space, and a first colorimetric value outside the definition area of the predetermined color space. A color value that includes at least one of a second positive color value and a negative color value, and is represented by a first color space;
The image data capturing unit changes the color space of the image data from the first color space to a second color space using the first and second positive color values and the negative color values. An image processing device for converting.
請求項7に記載の画像処理装置において、
前記画像処理手段は、前記画像データが前記第1および第2の正の表色値を有する場合には第1のガンマ補正値を用い、前記画像データが負の表色値を有する場合には前記第1のガンマ補正値とは異なる第2のガンマ補正値を用いて、前記画像データに対するガンマ補正を実行するガンマ補正手段を備えることを特徴とする画像処理装置。
The image processing apparatus according to claim 7,
The image processing means uses a first gamma correction value when the image data has the first and second positive colorimetric values, and uses a first gamma correction value when the image data has a negative colorimetric value. An image processing apparatus comprising: a gamma correction unit configured to perform gamma correction on the image data using a second gamma correction value different from the first gamma correction value.
請求項8に記載の画像処理装置において、
前記第2のガンマ補正値は、前記第1のガンマ補正値よりも小さい値であることを特徴とする画像処理装置。
The image processing apparatus according to claim 8,
The image processing apparatus according to claim 1, wherein the second gamma correction value is smaller than the first gamma correction value.
請求項7に記載の画像処理装置において、
前記画像処理手段は、前記第2の色空間によって表現されていると共に前記第1の正の表色値、前記第2の正の表色値および前記負の表色値を含む前記画像データを、前記第2の色空間よりも広く、前記第2の正の表色値および前記負の表色値の少なくとも一方をその定義領域内に含む第3の色空間へ変換することを特徴とする画像処理装置。
The image processing apparatus according to claim 7,
The image processing means converts the image data represented by the second color space and including the first positive color value, the second positive color value, and the negative color value. And converting the data into a third color space wider than the second color space and including at least one of the second positive color value and the negative color value in its defined area. Image processing device.
請求項8に記載の画像処理装置において、
前記第1の色空間はR成分、G成分、B成分によって表されるRGBの色空間であり、
前記第2のガンマ補正値は、それぞれが異なる、前記R成分用の第2のガンマ補正値、前記G成分用の第2のガンマ補正値、B成分用の第2のガンマ補正値を有することを特徴とする画像処理装置。
The image processing apparatus according to claim 8,
The first color space is an RGB color space represented by an R component, a G component, and a B component,
The second gamma correction values each have a different second gamma correction value for the R component, a second gamma correction value for the G component, and a second gamma correction value for the B component. An image processing apparatus characterized by the above-mentioned.
請求項3ないし請求項11のいずれかに記載の画像処理装置において、
前記画像データ取り込み手段による前記第1の色空間から前記第2の色空間への前記画像データの色空間の変換は、前記第1の色空間によって表されている画像データに対する第1のマトリクス演算処理によって実行され、
前記画像処理手段による前記第2の色空間から前記第3の色空間への前記画像データの色空間の変換は、前記第2の色空間で表現されている画像データに対する第2のマトリクス演算処理によって実行されることを特徴とする画像処理装置。
The image processing apparatus according to any one of claims 3 to 11,
The conversion of the color space of the image data from the first color space to the second color space by the image data capturing means is performed by a first matrix operation on the image data represented by the first color space. Executed by the process,
The conversion of the color space of the image data from the second color space to the third color space by the image processing means is performed by a second matrix operation process on the image data expressed in the second color space. An image processing apparatus characterized by being executed by:
第1の色空間によって表されていると共に、所定の色空間の表色域内の表色値である第1の正の表色値と、前記所定の色空間の表色域外の表色値である第2の正の表色値および負の表色値の少なくともいずれか一方を含む画像データを用いて画像処理を実行する画像処理装置であって、
前記画像データを取得する画像データ取得手段と、
前記第1および第2の正の表色値並びに前記負の表色値を用いて、前記画像データの色空間を前記第1の色空間から、前記所定の色空間よりも広く、前記第2の表色値および前記負の表色値の少なくとも一方をその表色域に含む第2の色空間に変換する色空間変換手段とを備える画像処理装置。
A first positive colorimetric value that is represented by the first color space and is a colorimetric value within the color gamut of the predetermined color space, and a colorimetric value outside the color gamut of the predetermined color space. An image processing apparatus that performs image processing using image data including at least one of a certain second positive color value and a negative color value,
Image data acquisition means for acquiring the image data,
Using the first and second positive colorimetric values and the negative colorimetric values, the color space of the image data from the first color space is wider than the predetermined color space, A color space conversion unit that converts at least one of the color specification value and the negative color specification value into a second color space including the color gamut.
請求項13に記載の画像処理装置はさらに、
前記画像データが前記第1および第2の正の表色値を有する場合には第1のガンマ補正値を用い、前記画像データが負の表色値を有する場合には前記第1のガンマ補正値とは異なる第2のガンマ補正値を用いて、前記画像データに対するガンマ補正を実行するガンマ補正手段を備えることを特徴とする画像処理装置。
The image processing apparatus according to claim 13, further comprising:
The first gamma correction value is used when the image data has the first and second positive color values, and the first gamma correction is used when the image data has a negative color value. An image processing apparatus, comprising: gamma correction means for performing gamma correction on the image data using a second gamma correction value different from the value.
請求項1ないし請求項14のいずれかに記載の画像処理装置はさらに、
前記画像処理が実行された画像データを印刷媒体上に印刷する印刷手段を備えることを特徴とする画像処理装置。
The image processing apparatus according to any one of claims 1 to 14, further comprising:
An image processing apparatus comprising: a printing unit that prints the image data on which the image processing has been performed on a print medium.
請求項1ないし請求項15のいずれかに記載の画像処理装置において、
前記画像データと前記使用情報とは、同一の画像ファイル内に格納されていることを特徴とする画像処理装置。
An image processing apparatus according to any one of claims 1 to 15,
The image processing apparatus, wherein the image data and the usage information are stored in the same image file.
画像データと、所定の色空間の定義領域外の表色値である領域外表色値を使用するか否かを示す使用情報とを用いて画像データを画像出力装置によって出力させるプログラムであって、
前記画像データを取り込む機能と、
前記取り込んだ画像データに関連付けられている前記使用情報を取得する機能と、
前記取得した使用情報に基づいて、前記領域外表色値を使用するか否かを判定する機能と、
前記領域外表色値を使用すると判定された場合には、前記領域外表色値をその定義領域内に内包し得る広い定義領域を有する色空間を介して前記画像データの画像処理を実行する機能と、
前記画像処理が施された画像データを出力する機能とをコンピュータによって実現させるプログラム。
A program that causes an image output device to output image data using image data and use information indicating whether to use an out-of-region color value that is a color value outside a defined region of a predetermined color space,
A function of capturing the image data,
A function of acquiring the usage information associated with the captured image data,
Based on the obtained use information, a function to determine whether to use the out-of-area color value,
A function of executing image processing of the image data through a color space having a wide defined area that can include the out-of-area color value in the defined area when it is determined that the out-of-area color value is used; ,
A program for realizing, by a computer, a function of outputting the image data subjected to the image processing.
請求項17に記載のプログラムであって、
前記画像データは、前記所定の色空間の定義領域内の表色値である第1の正の表色値と、前記領域外表色値である第2の正の表色値および負の表色値の少なくともいずれか一方を含むと共に、第1の色空間によって表現されており、
前記画像データを取り込む機能は、前記画像データの取り込みに加えて、前記第1および第2の正の表色値並びに前記負の表色値を用いて、前記画像データの色空間を前記第1の色空間から第2の色空間に変換する機能をコンピュータによって実現させるプログラム。
The program according to claim 17, wherein
The image data includes a first positive colorimetric value that is a colorimetric value in the definition area of the predetermined color space, and a second positive colorimetric value and a negative colorimetric value that are the colorimetric values outside the area. A value including at least one of the values and represented by the first color space,
The function of taking in the image data includes, in addition to taking in the image data, using the first and second positive colorimetric values and the negative colorimetric values to change the color space of the image data into the first color space. That causes a computer to realize the function of converting the color space from the first color space into the second color space.
請求項18に記載のプログラムはさらに、
前記画像データが前記第1の正の表色値を有する場合には第1のガンマ補正値を用い、前記画像データが負の表色値を有する場合には前記第1のガンマ補正値とは異なる第2のガンマ補正値を用いて、前記画像データに対するガンマ補正を実行する機能をコンピュータによって実現させることを特徴とするプログラム。
The program according to claim 18, further comprising:
When the image data has the first positive color specification value, the first gamma correction value is used. When the image data has the negative color specification value, the first gamma correction value is A program for causing a computer to realize a function of performing gamma correction on the image data using a different second gamma correction value.
画像データと画像データに対する画像処理条件を指定する画像処理制御情報とを関連付けて出力する画像データの生成装置であって、
前記画像データを取得する画像データ取得手段と、
前記画像データに対して画像処理を実行する際に、所定の色空間の領域外の情報を使用させるか否かを示す使用情報を含む前記画像処理制御情報を生成する画像処理制御情報生成手段と、
前記取得された画像データと、前記生成された画像処理制御情報とを関連付けて出力する画像データ出力手段とを備える画像データ生成装置。
An image data generation device that outputs image data in association with image processing control information that specifies image processing conditions for the image data,
Image data acquisition means for acquiring the image data,
When performing image processing on the image data, an image processing control information generating unit that generates the image processing control information including usage information indicating whether to use information outside a region of a predetermined color space. ,
An image data generating apparatus comprising: an image data output unit configured to output the acquired image data in association with the generated image processing control information.
請求項20に記載の画像データ生成装置において、
前記画像データ出力手段は、前記画像処理制御情報と共に同一の画像ファイル内に格納して前記画像データを出力する画像データ生成装置。
The image data generation device according to claim 20,
The image data generating device outputs the image data stored in the same image file together with the image processing control information.
画像データと画像データに対する画像処理条件を指定する画像処理制御情報とを関連付けて出力する画像データの生成装置であって、
所定の色空間の表色域内の表色値である第1の正の表色値と、前記所定の色空間の表色域外の表色値である第2の正の表色値および負の表色値の少なくともいずれか一方を含む前記画像データを生成する画像データ生成手段と、
前記画像データに対して画像処理を実行する際に、前記第2の正の表色値および前記負の表色値の少なくともいずれか一方を使用させるか否かを示す使用情報と、前記画像データが前記第1および第2の正の表色値を有する場合に用いるべき第1のガンマ補正値と、前記画像データが負の表色値を有する場合に用いるべき前記第1のガンマ補正値とは異なる第2のガンマ補正値とを含む画像処理制御情報を生成する画像処理制御情報生成手段と、
前記生成された画像データと前記生成された画像処理制御情報とを関連付けて出力する画像データ出力手段とを備える画像データ生成装置。
An image data generation device that outputs image data in association with image processing control information that specifies image processing conditions for the image data,
A first positive colorimetric value that is a colorimetric value within a color gamut of a predetermined color space; a second positive colorimetric value that is a colorimetric value outside the color gamut of the predetermined color space; Image data generating means for generating the image data including at least one of the color specification values,
When performing image processing on the image data, usage information indicating whether to use at least one of the second positive color value and the negative color value; and A first gamma correction value to be used when the image data has the first and second positive color values, and a first gamma correction value to be used when the image data has a negative color value. Image processing control information generating means for generating image processing control information including a different second gamma correction value;
An image data generating apparatus comprising: an image data output unit configured to output the generated image data in association with the generated image processing control information.
請求項22に記載の画像データ生成装置はさらに、
前記画像処理制御情報には、前記画像データの色空間変換を実行する際に、前記所定の色空間よりも広く、前記第2の表色値および前記負の表色値の少なくとも一方をその表色域に含む色空間へ変換させるための色空間変換特性が含まれる画像データ生成装置。
The image data generation device according to claim 22, further comprising:
When performing color space conversion of the image data, the image processing control information includes at least one of the second color value and the negative color value that is wider than the predetermined color space. An image data generation device including a color space conversion characteristic for converting to a color space included in a color gamut.
請求項22に記載の画像データ生成装置において、
前記画像データ出力手段は、前記画像処理制御情報と共に同一の画像ファイル内に格納して前記画像データを出力する画像データ生成装置。
The image data generation device according to claim 22,
The image data generating device outputs the image data stored in the same image file together with the image processing control information.
第1の色空間によって表現されている画像データと、所定の色空間の領域外の情報を使用するか否かを示す使用情報とを用いて画像データを出力する方法であって、
前記画像データを取得し、その取得した画像データの色空間を前記第1の色空間から第2の色空間に変換し、
前記使用情報に基づいて前記領域外情報を使用するか否かを判定し、
前記領域外情報を使用すると判定した場合には、前記領域外情報を用いて、前記第2の色空間によって表現されている画像データの色空間を第3の色空間に変換し、
前記変換された画像データを出力する
画像データの出力方法。
A method of outputting image data using image data represented by a first color space and use information indicating whether information outside a region of a predetermined color space is used,
Acquiring the image data, converting a color space of the acquired image data from the first color space to a second color space,
Determine whether to use the out-of-area information based on the use information,
When it is determined that the out-of-area information is used, the color space of the image data represented by the second color space is converted to a third color space using the out-of-area information,
An image data output method for outputting the converted image data.
画像データを出力する方法であって、
第1の色空間によって表現されている前記画像データを取得し、その取得した画像データの色空間を前記第1の色空間から第2の色空間に変換し、
前記変換により得られた第2の色空間に関する情報、および、前記第2の色空間を定義する領域外の情報を保持し、
前記保持した情報を反映させて、前記第2の色空間によって表現されている画像データの色空間を第3の色空間に変換し、
前記変換された画像データを出力する
画像データの出力方法。
A method of outputting image data,
Acquiring the image data represented by a first color space, converting the color space of the acquired image data from the first color space to a second color space,
Holding information on the second color space obtained by the conversion, and information outside a region that defines the second color space,
Reflecting the held information, converting the color space of the image data represented by the second color space into a third color space,
An image data output method for outputting the converted image data.
請求項26に記載の画像データを出力する方法において、
前記第2の色空間を定義する領域の情報は、第1の正の領域値で表され、前記第2の色空間を定義する領域外の情報は、前記第1の正の領域値を超える第2の正の領域値、および負の領域値で表されることを特徴とする画像データの出力方法。
The method for outputting image data according to claim 26,
The information of the area that defines the second color space is represented by a first positive area value, and the information outside the area that defines the second color space exceeds the first positive area value. A method of outputting image data, characterized by being represented by a second positive area value and a negative area value.
請求項27に記載の画像データを出力する方法はさらに、
前記画像データが前記第1の正の領域値を有する場合には第1のガンマ補正値を用い、前記画像データが負の領域値を有する場合には前記第1のガンマ補正値とは異なる第2のガンマ補正値を用いて、前記画像データに対するガンマ補正を実行する画像データの出力方法。
The method for outputting image data according to claim 27, further comprises:
A first gamma correction value is used when the image data has the first positive area value, and a first gamma correction value different from the first gamma correction value when the image data has a negative area value. 2. An image data output method for performing gamma correction on the image data using a gamma correction value of 2.
画像データの画像処理方法であって、
第1の色空間に基づく前記画像データを取得し、その取得した画像データの色空間を前記第1の色空間から第2の色空間に変換し、
前記変換された画像データについての前記第2の色空間を定義する領域内および領域外の情報を保持し、
前記保持した情報を反映させて、前記第2の色空間によって表現されている画像データの色空間を前記第2の色空間よりも広い定義領域を有する第3の色空間に変換する
画像データの画像処理方法。
An image processing method of image data,
Acquiring the image data based on a first color space, converting the color space of the acquired image data from the first color space to a second color space,
Holding information inside and outside a region that defines the second color space for the converted image data,
Reflecting the stored information, the image data converted from the color space of the image data represented by the second color space into a third color space having a defined area wider than the second color space. Image processing method.
画像データに対して画像処理を実行する画像処理装置であって、
前記画像データを取り込む画像データ取り込み手段と、
前記画像データに含まれている所定の色空間の領域外の情報を使用するか否かを指示する指示手段と、
前記領域外情報の使用が指示された場合には、前記領域外情報をその定義領域に内包し得る広い定義領域を有する広域色空間への色変換処理を含む前記画像データの画像処理を実行する画像処理手段とを備える画像処理装置。
An image processing apparatus that performs image processing on image data,
Image data capturing means for capturing the image data,
Instructing means for instructing whether to use information outside the area of the predetermined color space included in the image data,
When the use of the out-of-area information is instructed, image processing of the image data including a color conversion process to a wide-area color space having a wide definition area capable of including the out-of-area information in the definition area is executed. An image processing apparatus comprising: an image processing unit.
請求項30に記載の画像処理装置において、
前記領域外情報の使用が指示されなかった場合には、前記画像処理手段は、前記所定の色空間と同等の定義領域を有する既定の色空間を介して前記画像データの画像処理を実行することを特徴とする画像処理装置。
The image processing apparatus according to claim 30,
When the use of the out-of-area information is not instructed, the image processing means executes image processing of the image data via a predetermined color space having a defined area equivalent to the predetermined color space. An image processing apparatus characterized by the above-mentioned.
JP2004099458A 2000-10-13 2004-03-30 Output image adjustment for image files Expired - Fee Related JP4010306B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004099458A JP4010306B2 (en) 2000-10-13 2004-03-30 Output image adjustment for image files

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
JP2000312991 2000-10-13
JP2001034537 2001-02-09
JP2001217893 2001-07-18
JP2004099458A JP4010306B2 (en) 2000-10-13 2004-03-30 Output image adjustment for image files

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2001316706A Division JP3666439B2 (en) 2000-10-13 2001-10-15 Output image adjustment for image files

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2007174675A Division JP4595965B2 (en) 2000-10-13 2007-07-03 Output image adjustment for image files

Publications (3)

Publication Number Publication Date
JP2004240992A true JP2004240992A (en) 2004-08-26
JP2004240992A5 JP2004240992A5 (en) 2005-06-02
JP4010306B2 JP4010306B2 (en) 2007-11-21

Family

ID=32966607

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004099458A Expired - Fee Related JP4010306B2 (en) 2000-10-13 2004-03-30 Output image adjustment for image files

Country Status (1)

Country Link
JP (1) JP4010306B2 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006148607A (en) * 2004-11-19 2006-06-08 Sony Corp Image processing apparatus and image processing method
JP2006148606A (en) * 2004-11-19 2006-06-08 Sony Corp Image processing apparatus and image processing method
JP2007019762A (en) * 2005-07-06 2007-01-25 Ricoh Co Ltd Image processor and image processing method
JP2007104340A (en) * 2005-10-04 2007-04-19 Ricoh Co Ltd Image processing apparatus, image forming apparatus, image processing method, program, and storage medium
JP2007116288A (en) * 2005-10-18 2007-05-10 Seiko Epson Corp Image processor, image processing method, and image processing program
JP2008109328A (en) * 2006-10-25 2008-05-08 Infovision Optoelectronics Holdings Ltd Circuit and method for correcting color reproduction area
WO2009031492A1 (en) * 2007-09-07 2009-03-12 Shima Seiki Manufacturing, Ltd. Image conversion device, image conversion method, and conversion program
JP2009188744A (en) * 2008-02-06 2009-08-20 Sharp Corp Image processor

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006148607A (en) * 2004-11-19 2006-06-08 Sony Corp Image processing apparatus and image processing method
JP2006148606A (en) * 2004-11-19 2006-06-08 Sony Corp Image processing apparatus and image processing method
JP2007019762A (en) * 2005-07-06 2007-01-25 Ricoh Co Ltd Image processor and image processing method
JP4684030B2 (en) * 2005-07-06 2011-05-18 株式会社リコー Image processing apparatus and image processing method
JP2007104340A (en) * 2005-10-04 2007-04-19 Ricoh Co Ltd Image processing apparatus, image forming apparatus, image processing method, program, and storage medium
JP2007116288A (en) * 2005-10-18 2007-05-10 Seiko Epson Corp Image processor, image processing method, and image processing program
JP2008109328A (en) * 2006-10-25 2008-05-08 Infovision Optoelectronics Holdings Ltd Circuit and method for correcting color reproduction area
WO2009031492A1 (en) * 2007-09-07 2009-03-12 Shima Seiki Manufacturing, Ltd. Image conversion device, image conversion method, and conversion program
JP5197612B2 (en) * 2007-09-07 2013-05-15 株式会社島精機製作所 Image conversion apparatus, image conversion method, and conversion program
JP2009188744A (en) * 2008-02-06 2009-08-20 Sharp Corp Image processor

Also Published As

Publication number Publication date
JP4010306B2 (en) 2007-11-21

Similar Documents

Publication Publication Date Title
JP5594382B2 (en) Output image adjustment for image files
US20020027603A1 (en) Apparatus, method, signal and computer program product configured to provide output image adjustment for image files
US20080309789A1 (en) Output image adjustment of image data
US20080174677A1 (en) Graphics data generation device and graphics data generation method
US7274487B2 (en) Color space converting apparatus and method of color space conversion
JP2004070715A (en) Image processor
JP3870863B2 (en) Output image adjustment of image data
WO2002065757A1 (en) Apparatus and method for adjusting output image from image data
US20020196346A1 (en) Image processing apparatus
JP4010306B2 (en) Output image adjustment for image files
JP2004172745A (en) Automatic adjustment of image quality in response to size of object
JP4205320B2 (en) Output image adjustment for image files
JP3666439B2 (en) Output image adjustment for image files
JP4295465B2 (en) Image processing device
JP2002314809A (en) Adjustment of output image of image data
JP4175004B2 (en) Image processing device
JP4085661B2 (en) Print control program and image processing program
JP4595965B2 (en) Output image adjustment for image files
JP4092882B2 (en) Image processing apparatus and image processing method
JP4636001B2 (en) Output image adjustment for image files
JP5206741B2 (en) Image file generation and output
JP4042803B2 (en) Output image adjustment of image data
JP2010279049A (en) Output image adjustment for image files

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20041015

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20041015

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20061219

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070216

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20070508

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070703

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20070718

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: 20070814

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070827

R150 Certificate of patent or registration of utility model

Ref document number: 4010306

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20100914

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20100914

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20110914

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120914

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20130914

Year of fee payment: 6

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees