JP2002344763A - Image processor - Google Patents

Image processor

Info

Publication number
JP2002344763A
JP2002344763A JP2002070128A JP2002070128A JP2002344763A JP 2002344763 A JP2002344763 A JP 2002344763A JP 2002070128 A JP2002070128 A JP 2002070128A JP 2002070128 A JP2002070128 A JP 2002070128A JP 2002344763 A JP2002344763 A JP 2002344763A
Authority
JP
Japan
Prior art keywords
image processing
color
image data
image
color space
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
JP2002070128A
Other languages
Japanese (ja)
Other versions
JP4295465B2 (en
JP2002344763A5 (en
Inventor
Kenji Fukazawa
賢二 深沢
Makoto Fujino
真 藤野
Yoshihiro Nakami
至宏 中見
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 JP2002070128A priority Critical patent/JP4295465B2/en
Publication of JP2002344763A publication Critical patent/JP2002344763A/en
Publication of JP2002344763A5 publication Critical patent/JP2002344763A5/ja
Application granted granted Critical
Publication of JP4295465B2 publication Critical patent/JP4295465B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide an image processor that maintains the number of gradations and the number of expressed colors of image data, through out before and after image processing is applied to the image data. SOLUTION: A CPU 150 performs a matrix arithmetic operations S for image data GD, carries up the significant digit of a color value of the image data GD, to increase the number of gradations of the image data from an 8-bit gradation into an 18-bit gradation. After the CPU 150 performs gamma correction processing, a matrix arithmetic operation N<-1> M, and inverse gamma correction processing, the CPU 150 restores the number of gradations into the original 8-bit gradation to perform automatic image quality adjustment. As a result, the 8-bit gradation of the original image data GD is maintained in the image processing, and the number of expressed colors of the image data GD can be maintained.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、画像ファイルに対
して画像処理を施す画像処理装置および画像処理プログ
ラムに関する。
The present invention relates to an image processing apparatus and an image processing program for performing image processing on an image file.

【0002】[0002]

【従来の技術】現在、様々な色空間に基づく画像データ
が、コンピュータ、プリンタ、ディジタルスチルカメラ
といった画像データの処理装置において用いられてい
る。例えば、コンピュータでは、通常、モニタに出力す
ることを前提としてRGB色空間に基づく画像データが
用いられており、ディジタルスチルカメラ(DSC)で
は、生成した画像データをJPEG形式にて圧縮して保
存するため、データ圧縮に適当なYCbCr色空間に基
づく画像データが用いられている。したがって、例え
ば、DSCにて生成した画像データをコンピュータにて
処理する際には、画像データの色空間を、YCbCr色
空間からRGB色空間に変換する必要があった。
2. Description of the Related Art At present, image data based on various color spaces is used in image data processing apparatuses such as computers, printers, and digital still cameras. For example, in a computer, image data based on an RGB color space is generally used on the assumption that the image data is output to a monitor. In a digital still camera (DSC), generated image data is compressed and stored in a JPEG format. Therefore, image data based on the YCbCr color space suitable for data compression is used. Therefore, for example, when the image data generated by the DSC is processed by the computer, it is necessary to convert the color space of the image data from the YCbCr color space to the RGB color space.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、画像デ
ータの色空間を第1の色空間(YCbCr)から第2の
色空間(RGB)へ変換すると、第1の色空間では等間
隔に並んでいた色彩値が、第2の色空間では必ずしも等
間隔に並ばないことがあるため、変換後の画像データの
階調数(表色数)が変換前の画像データの階調数(表色
数)と比べて減少してしまうという問題があった。階調
数が減少すると、再現することができる色数が減少する
ため、画像データの色彩を正確に表現することができ
ず、階調飛びのある出力画像しか得られないという問題
が発生する。
However, when the color space of image data is converted from the first color space (YCbCr) to the second color space (RGB), they are arranged at equal intervals in the first color space. Since the color values may not always be arranged at equal intervals in the second color space, the number of tones (number of colors) of the converted image data is equal to the number of tones (number of colors) of the image data before conversion. There was a problem that it decreased compared with. When the number of gradations decreases, the number of colors that can be reproduced decreases, so that the color of the image data cannot be accurately represented, and a problem occurs in that only an output image having a gradation jump is obtained.

【0004】本発明は、上記問題点を解決するためにな
されたものであり、画像処理変換の前後を通して画像デ
ータの階調数、表色数を維持することを目的とする。
The present invention has been made to solve the above problems, and has as its object to maintain the number of gradations and the number of colors of image data before and after image processing conversion.

【0005】[0005]

【課題を解決するための手段およびその作用・効果】上
記課題を解決するために本発明の第1の態様は、画像デ
ータに対して画像処理を実行する画像処理装置を提供す
る。本発明の第1の態様に係る画像処理装置は、第1の
色座標系における表色系であって、第1の色数を表色可
能な第1の表色系の画像データを、第2の色座標系にお
ける表色系であって、前記第1の色数よりも多い第2の
色数を表色可能な第2の表色系の画像データへ、前記第
1の色数を保持しつつマトリクス演算により変換する色
変換手段と、前記第2の表色系において前記変換された
画像データに対して画像処理を実行する画像処理手段
と、前記画像処理が施された画像データの表色数を低減
させる表色数低減手段とを備えることを特徴とする。
Means for Solving the Problems and Their Functions and Effects In order to solve the above problems, a first aspect of the present invention provides an image processing apparatus for executing image processing on image data. An image processing apparatus according to a first aspect of the present invention is a color system in a first color coordinate system, which converts image data of a first color system capable of expressing a first number of colors into a first color system. The first color number is converted into image data of a second color system, which is a color system in a second color coordinate system and is capable of expressing a second color number larger than the first color number. A color conversion unit that performs conversion by a matrix operation while holding the image data; an image processing unit that performs image processing on the converted image data in the second color system; A color number reduction unit configured to reduce the number of colors.

【0006】本発明の第1の態様に係る画像処理装置に
よれば、第1の色座標系における第1の色数を表色可能
な第1の表色系の画像データを、第2の色座標系におけ
る第1の色数よりも多い第2の色数を表色可能な第2の
表色系の画像データへ、第1の色数を保持しつつマトリ
クス演算により変換することができるので、異なる色座
標系間において色変換処理を実行した場合であっても色
変換処理(画像処理)の前後を通して画像データの階調
数、表色数を維持することができる。
[0006] According to the image processing apparatus of the first aspect of the present invention, the image data of the first color system capable of expressing the first number of colors in the first color coordinate system is converted to the second image data. A second color number larger than the first color number in the color coordinate system can be converted into image data of a second color system capable of expressing by a matrix operation while maintaining the first color number. Therefore, even when the color conversion processing is executed between different color coordinate systems, the number of gradations and the number of colors of the image data can be maintained before and after the color conversion processing (image processing).

【0007】本発明の第1の態様に係る画像処理装置に
おいて、前記画像処理手段により実行される画像処理に
は、ガンマ補正処理が含まれても良く、第2のマトリク
ス演算を用いた色変換処理が含まれても良い。
In the image processing apparatus according to the first aspect of the present invention, the image processing executed by the image processing means may include a gamma correction process, and performs color conversion using a second matrix operation. Processing may be included.

【0008】本発明の第1の態様に係る画像処理装置に
おいて、前記第1の表色系はYCC表色系であり、前記
第2の表色系はsRGB表色系であっても良く、あるい
は、前記第1の表色系はYCC表色系であり、前記第2
の表色系はsRGB表色系よりも広い表色域を有するw
RGB表色系であっても良い。いずれの場合にも色変換
後も第1の色数は維持され、特に、wRGB表色系が用
いられる場合には、sRGB表色系では表色されない負
の色彩値についても表色することができる。
In the image processing apparatus according to the first aspect of the present invention, the first color system may be a YCC color system, and the second color system may be an sRGB color system. Alternatively, the first color system is a YCC color system, and the second color system is a YCC color system.
Has a wider color gamut than the sRGB color system.
An RGB color system may be used. In any case, the first number of colors is maintained even after the color conversion. In particular, when the wRGB color system is used, it is possible to color even negative color values that are not expressed by the sRGB color system. it can.

【0009】本発明の第1の態様に係る画像処理装置に
おいて、前記第2の表色系の第2の色数には、前記色変
換手段によって前記第1の表色系から前記第2の表色系
に変換された画像データに含まれている負値によって表
現される色数が含まれても良い。かかる場合には、第1
の表色系から第2の表色系へと変換された画像データに
負値が含まれている場合であっても、負値によって表現
される色彩値を欠落することなく表色することができ
る。
In the image processing apparatus according to the first aspect of the present invention, the second number of colors of the second color system is changed from the first color system to the second color number by the color conversion means. The number of colors represented by negative values included in the image data converted into the color system may be included. In such a case, the first
Even if the image data converted from the color system of the above to the second color system contains a negative value, it is possible to perform colorimetry without losing the color value represented by the negative value. it can.

【0010】本発明の第2の態様は、画像データに対し
て画像処理を実行する画像処理装置を提供する。本発明
の第1の態様に係る画像処理装置は、第1の有効数字を
有する整数値で表される前記画像データの色彩値を、前
記第1の有効数字の桁数よりも多い桁数を有する第1の
値に変更する第1の画像処理手段と、前記第1の画像処
理手段による色彩値の変更に伴う前記画像データの階調
数の減少を防止する階調数減少防止手段と、前記第1の
値を有する画像データの色彩値を前記第1の値から、画
像出力結果に反映される第2の値に変更する第2の画像
処理手段とを備えることを特徴とする。
[0010] A second aspect of the present invention provides an image processing apparatus for executing image processing on image data. The image processing device according to the first aspect of the present invention is configured to set the color value of the image data represented by an integer having a first significant digit to a number of digits greater than the number of the first significant digit. First image processing means for changing to a first value having, and gradation number reduction preventing means for preventing a decrease in the number of gradations of the image data due to a change in color value by the first image processing means; A second image processing unit for changing a color value of the image data having the first value from the first value to a second value reflected in an image output result.

【0011】本発明の第2の態様に係る画像処理装置に
よれば、第1の値への色彩値の変更に伴う画像データの
階調数の減少を防止し、第1の値を有する画像データの
色彩値を第1の値から、画像出力結果に反映される第2
の値に変更するので、画像処理変換の前後を通して画像
データの階調数、表現色数を維持することができる。
According to the image processing apparatus according to the second aspect of the present invention, it is possible to prevent a decrease in the number of gradations of image data due to a change in color value to the first value, and to reduce the number of image data having the first value. The color value of the data is changed from the first value to the second value reflected in the image output result.
, The number of gradations and the number of expression colors of the image data can be maintained before and after the image processing conversion.

【0012】本発明の第2の態様に係る画像処理装置に
おいて、前記階調数減少防止手段は、前記第1の有効数
字の桁数よりも多い桁数まで前記第1の値の有効数字を
設定することにより、前記画像データの階調数の減少を
防止しても良い。かかる場合には、異なる複数の第1の
有効数字を有する整数値が同一の第1の値を取った場合
であっても、有効数字の桁数が増加するので元の階調数
を維持することができる。なお、前記階調数減少防止手
段によって階調数の減少が防止された画像データのデー
タサイズは、前記第1の有効数字を有する整数値で表さ
れる画像データのデータサイズよりも大きくても良い。
画像データの有効数字の桁数が増加するので、画像デー
タのデータサイズは増加する。
In the image processing apparatus according to a second aspect of the present invention, the means for preventing a decrease in the number of gradations converts the significant digit of the first value to a digit number greater than the digit number of the first significant digit. The setting may prevent a decrease in the number of gradations of the image data. In such a case, even when the integer values having a plurality of different first significant figures take the same first value, the number of significant digits increases, so that the original gradation number is maintained. be able to. The data size of the image data whose gradation number is prevented from being reduced by the gradation number reduction preventing means may be larger than the data size of the image data represented by the integer having the first significant figure. good.
Since the number of significant digits of the image data increases, the data size of the image data increases.

【0013】本発明の第2の態様に係る画像処理装置に
おいて、前記第1の画像処理手段は、前記画像データの
色空間を第1の色空間から第2の色空間に変換する色空
間変換手段であっても良い。また、前記色空間変換手段
は、前記画像データの色空間をYCbCr色空間からR
GB色空間へ変換し、前記第1の有効数字を有する整数
値で表される前記画像データの色彩値を、小数点を含む
前記第1の値に変更しても良い。有効数字の桁数を増加
させることにより、第1の値が小数点を含む場合であっ
ても、階調数を維持することができる。
In the image processing apparatus according to a second aspect of the present invention, the first image processing means converts a color space of the image data from a first color space to a second color space. Means may be used. Further, the color space conversion means converts the color space of the image data from the YCbCr color space to R
The image data may be converted to a GB color space, and a color value of the image data represented by an integer having the first significant figure may be changed to the first value including a decimal point. By increasing the number of significant figures, the number of tones can be maintained even when the first value includes a decimal point.

【0014】本発明の第3の態様は、画像データに対し
て画像処理を実行する画像処理装置を提供する。本発明
の第3の態様に係る画像処理装置は、前記画像データの
階調数を第1の階調数から第2の階調数に増加させると
共に、画像データの色空間をYCbCr色空間からsR
GB色空間に変換する第1の色空間変換手段と、前記色
空間が変換された画像データに対してガンマ補正処理を
実行するガンマ補正手段と、前記ガンマ補正処理が実行
された画像データの色空間をsRGB色空間からsRG
B色空間よりも広い定義領域を有するwRGB色空間に
変換する第2の色空間変換手段と、前記色空間が変換さ
れた画像データの階調数を前記第2の階調数から前記第
1の階調数に戻す階調数低減手段とを備えることを特徴
とする。
According to a third aspect of the present invention, there is provided an image processing apparatus for executing image processing on image data. The image processing device according to a third aspect of the present invention increases the number of gradations of the image data from the first number of gradations to the second number of gradations, and changes the color space of the image data from the YCbCr color space. sR
First color space conversion means for converting to a GB color space, gamma correction means for performing gamma correction processing on the image data whose color space has been converted, and color of the image data having been subjected to the gamma correction processing Space from sRGB color space to sRG
A second color space conversion unit for converting the image data into a wRGB color space having a definition area wider than the B color space, and a gradation number of the image data obtained by converting the color space from the second gradation number to the first color number. And a gradation number reducing means for returning to the number of gradations.

【0015】本発明の第3の態様に係る画像処理装置に
よれば、画像データの階調数を第1の階調数から第2の
階調数に増加させつつ、画像データの色空間をYCbC
r色空間からsRGB色空間に変換するので、画像処理
変換の前後を通して画像データの階調数、表現色数を維
持することができる。
According to the image processing apparatus of the third aspect of the present invention, the color space of the image data is increased while increasing the number of gradations of the image data from the first number of gradations to the second number of gradations. YCbC
Since the conversion is performed from the r color space to the sRGB color space, the number of gradations and the number of expression colors of the image data can be maintained before and after the image processing conversion.

【0016】本発明の第3の態様に係る画像処理装置は
さらに、前記色空間が変換された画像データに対して逆
ガンマ補正処理を実行する逆ガンマ補正手段を備え、前
記階調数低減手段は、前記色空間が変換された画像デー
タに代えて、前記逆ガンマ補正が実行がされた画像デー
タの階調数を前記第2の階調数から第1の階調数に戻し
ても良い。かかる場合には、逆ガンマ補正処理における
階調精度を維持または向上させることができる。
The image processing apparatus according to a third aspect of the present invention further comprises an inverse gamma correction unit for performing an inverse gamma correction process on the image data whose color space has been converted, and the gradation number reducing unit. May return the gradation number of the image data on which the inverse gamma correction has been performed from the second gradation number to the first gradation number instead of the image data in which the color space is converted. . In such a case, the gradation accuracy in the inverse gamma correction processing can be maintained or improved.

【0017】本発明の第3の態様に係る画像処理装置は
さらに、前記逆ガンマ補正が実行された画像データの画
質を自動的に補正する画像補正手段を備え、前記階調数
低減手段は、前記逆ガンマ補正が実行がされた画像デー
タに代えて、前記画質が補正された画像データの階調数
を前記第2の階調数から第1の階調数に戻しても良い。
かかる場合には、画像補正処理における階調精度を維持
または向上させることができる。
The image processing apparatus according to a third aspect of the present invention further comprises image correction means for automatically correcting the image quality of the image data on which the inverse gamma correction has been executed, and wherein the gradation number reduction means comprises: Instead of the image data on which the inverse gamma correction has been executed, the number of gradations of the image data whose image quality has been corrected may be returned from the second number of gradations to the first number of gradations.
In such a case, the gradation accuracy in the image correction processing can be maintained or improved.

【0018】本発明の第4の態様は、画像処理の施され
た画像データを出力する出力装置を提供する。本発明の
第4の態様に係る印刷装置は、本発明の第1〜第3の態
様のいずれかに係る画像処理装置と、前記画像処理装置
によって画像処理の施された画像データを出力する出力
手段とを備えることを特徴とする。
According to a fourth aspect of the present invention, there is provided an output device for outputting image data subjected to image processing. A printing apparatus according to a fourth aspect of the present invention includes an image processing apparatus according to any one of the first to third aspects of the present invention, and an output for outputting image data subjected to image processing by the image processing apparatus. Means.

【0019】本発明の第4の態様に係る出力装置によれ
ば、階調性の良い画像データを出力することができる。
According to the output device of the fourth aspect of the present invention, it is possible to output image data with good gradation.

【0020】本発明の第5の態様は、画像データに対し
て画像処理を実行するための画像処理プログラムを提供
する。本発明の第5の態様に係る画像処理プログラム
は、第1の色座標系における表色系であって、第1の色
数を表色可能な第1の表色系の画像データを、第2の色
座標系における表色系であって、前記第1の色数よりも
多い第2の色数を表色可能な第2の表色系の画像データ
へ、前記第1の色数を保持しつつマトリクス演算により
変換する機能と、前記第2の表色系において前記変換さ
れた画像データに対して画像処理を実行する機能と、前
記画像処理が施された画像データの表色数を低減させる
機能とをコンピュータによって実現させることを特徴と
する。
According to a fifth aspect of the present invention, there is provided an image processing program for executing image processing on image data. An image processing program according to a fifth aspect of the present invention is a colorimetric system in a first color coordinate system, in which image data of a first colorimetric system capable of representing a first number of colors is stored in a first color coordinate system. The first color number is converted into image data of a second color system, which is a color system in a second color coordinate system and is capable of expressing a second color number larger than the first color number. A function of performing conversion by a matrix operation while holding the data, a function of performing image processing on the converted image data in the second color system, and a function of performing color processing on the image data subjected to the image processing. The reduction function is realized by a computer.

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

【0022】本発明の第6の態様は、画像データに対し
て画像処理を実行するための画像処理プログラムを提供
する。本発明の第6の態様に係る画像処理プログラム
は、第1の有効数字を有する整数値で表される前記画像
データの色彩値を、前記第1の有効数字の桁数よりも多
い桁数を有する第1の値に変更する第1の画像処理機能
と、前記第1の画像処理手段による色彩値の変更に伴う
前記画像データの階調数の減少を防止する機能と、前記
第1の値を有する画像データの色彩値を前記第1の値か
ら、画像出力結果に反映される第2の値に変更する第2
の画像処理機能とをコンピュータによって実現させるこ
とを特徴とする。
According to a sixth aspect of the present invention, there is provided an image processing program for executing image processing on image data. An image processing program according to a sixth aspect of the present invention is a computer-readable storage medium storing an image processing program for setting a color value of the image data represented by an integer having a first significant digit to a number of digits greater than the number of the first significant digit. A first image processing function for changing to a first value, a function for preventing a decrease in the number of tones of the image data due to a change in color value by the first image processing means, and a first value for the first value. Changing the color value of the image data having the following from the first value to the second value reflected in the image output result.
Is realized by a computer.

【0023】本発明の第6の態様に係る画像処理プログ
ラムによれば、本発明の第2の態様に係る画像処理装置
と同様の作用効果を得ることができる。また、本発明の
第6の態様に係る画像処理プログラムは、本発明の第2
の態様に係る画像処理装置と同様にして、種々の態様に
て実現され得る。
According to the image processing program of the sixth aspect of the present invention, it is possible to obtain the same functions and effects as those of the image processing apparatus according to the second aspect of the present invention. Further, an image processing program according to a sixth aspect of the present invention provides the image processing program according to the second aspect of the present invention.
In a manner similar to the image processing apparatus according to the aspect, the invention can be realized in various aspects.

【0024】本発明の第7の態様は、画像データに対し
て画像処理を実行するための画像処理プログラムを提供
する。本発明の第7の態様に係る画像処理プログラム
は、前記画像データの階調数を第1の階調数から第2の
階調数に増加させると共に、画像データの色空間をYC
bCr色空間からsRGB色空間に変換する第1の色空
間変換機能と、前記色空間が変換された画像データに対
してガンマ補正処理を実行するガンマ補正機能と、前記
ガンマ補正処理が実行された画像データの色空間をsR
GB色空間からsRGB色空間よりも広い定義領域を有
するwRGB色空間に変換する第2の色空間変換機能
と、前記色空間が変換された画像データの階調数を前記
第2の階調数から前記第1の階調数に戻す階調数低減機
能とをコンピュータによって実現させることを特徴とす
る。
A seventh aspect of the present invention provides an image processing program for executing image processing on image data. An image processing program according to a seventh aspect of the present invention increases the number of gradations of the image data from the first number of gradations to the second number of gradations and changes the color space of the image data to YC.
a first color space conversion function for converting from the bCr color space to the sRGB color space, a gamma correction function for performing gamma correction processing on the image data in which the color space has been converted, and the gamma correction processing has been performed. The color space of image data is sR
A second color space conversion function for converting from the GB color space to a wRGB color space having a defined area wider than the sRGB color space, and a gradation number of the image data in which the color space is converted is represented by the second gradation number. And a function of reducing the number of gradations to return to the first number of gradations by a computer.

【0025】本発明の第7の態様に係る画像処理プログ
ラムによれば、本発明の第3の態様に係る画像処理装置
と同様の作用効果を得ることができる。また、本発明の
第7の態様に係る画像処理プログラムは、本発明の第3
の態様に係る画像処理装置と同様にして、種々の態様に
て実現され得る。
According to the image processing program of the seventh aspect of the present invention, it is possible to obtain the same functions and effects as those of the image processing apparatus of the third aspect of the present invention. Further, the image processing program according to the seventh aspect of the present invention is the image processing program according to the third aspect of the present invention.
In a manner similar to the image processing apparatus according to the aspect, the invention can be realized in various aspects.

【0026】[0026]

【発明の実施の形態】以下、本発明に係る画像処理装置
について以下の順序にて図面を参照しつつ、いくつかの
実施例に基づいて説明する。 A.画像処理システムの構成: B.画像ファイル構造: C.画像処理装置における画像処理: D.その他の実施例:
DESCRIPTION OF THE PREFERRED EMBODIMENTS An image processing apparatus according to the present invention will be described below in the following order with reference to the drawings and based on some embodiments. A. Configuration of image processing system: Image file structure: Image processing in image processing apparatus: Other embodiments:

【0027】A.画像処理システムの構成:本実施例に
係る画像処理装置を適用可能な画像処理システムの構成
について図1〜図4を参照して説明する。図1は本実施
例に係る画像処理装置を適用可能な画像処理システムの
一例を示す説明図である。図2は本実施例に係る画像処
理装置が出力する画像ファイル(画像データ)を生成可
能なディジタルスチルカメラの概略構成を示すブロック
図である。図3は本実施例に適用され得るカラープリン
タの内部構成を示す概略図である。図4はカラープリン
タ20の制御回路の内部構成を示すブロック図である。
A. Configuration of Image Processing System: The configuration of an image processing system to which the image processing apparatus according to the present embodiment can be applied will be described with reference to FIGS. FIG. 1 is an explanatory diagram illustrating an example of an image processing system to which the image processing device according to the present embodiment can be applied. 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 processing apparatus according to the present embodiment. FIG. 3 is a schematic diagram showing an internal configuration of a color printer applicable to the present embodiment. FIG. 4 is a block diagram showing the internal configuration of the control circuit of the color printer 20.

【0028】画像処理システム10は、画像ファイルを
生成する入力装置としてのディジタルスチルカメラ1
2、ディジタルスチルカメラ12にて生成された画像フ
ァイルに基づいて画像処理を実行し、印刷用画像データ
を出力する画像処理装置としてのパーソナルコンピュー
タPC、印刷用画像データを出力する出力装置としての
カラープリンタ20を備えている。画像処理装置として
は、パーソナルコンピュータPCの他に、例えば、スタ
ンドアローン型のプリンタも用いられ得る。また、出力
装置としては、プリンタ20の他に、CRTディスプレ
イ、LCDディスプレイ等のモニタ14、プロジェクタ
等が用いられ得る。以下の説明では、パーソナルコンピ
ュータPCと接続されて用いられるカラープリンタ20
を出力装置として用いるものとする。
The image processing system 10 includes a digital still camera 1 as an input device for generating an image file.
2. A personal computer PC as an image processing device for executing image processing based on an image file generated by the digital still camera 12 and outputting print image data, and a color as an output device for outputting print image data A printer 20 is provided. As the image processing apparatus, for example, a stand-alone printer may be used in addition to the personal computer PC. As the output device, a monitor 14 such as a CRT display or an LCD display, a projector, or the like may be used in addition to the printer 20. In the following description, a color printer 20 used by being connected to a personal computer PC will be described.
Is used as an output device.

【0029】パーソナルコンピュータPCは、一般的に
用いられているタイプのコンピュータであり、本発明に
係る画像処理プログラムを実行するCPU150、CP
U150における演算結果、画像データ等を一時的に格
納するRAM151、画像処理プログラムを格納するハ
ードディスクドライブ(HDD)152を備えている。
パーソナルコンピュータPCは、メモリカードMCを装
着するためのカードスロット153、ディジタルスチル
カメラ12等からの接続ケーブルを接続するための入出
力端子154を備えている。
The personal computer PC is a computer of a generally used type, and includes a CPU 150, a CP for executing an image processing program according to the present invention.
A RAM 151 for temporarily storing the calculation results in U150, image data, and the like, and a hard disk drive (HDD) 152 for storing an image processing program are provided.
The personal computer PC has a card slot 153 for mounting a memory card MC, and an input / output terminal 154 for connecting a connection cable from the digital still camera 12 or the like.

【0030】ディジタルスチルカメラ12は、図2に示
すように、光の情報をディジタルデバイス(CCDや光
電子倍増管)に結像させることにより画像を取得するカ
メラであり、図2に示すように光情報を収集するための
CCD等を備える光学回路121、光学回路121を制
御して画像を取得するための画像取得回路122、取得
したディジタル画像を加工処理するための画像処理回路
123、メモリを備えると共に各回路を制御する制御回
路124を備えている。ディジタルスチルカメラ12
は、取得した画像をディジタルデータとして記憶装置と
してのメモリカードMCに保存する。ディジタルスチル
カメラ12における画像データの保存形式としては、J
PEG形式が一般的であるが、この他にもTIFF形
式、GIF形式、BMP形式、RAWデータ形式等の保
存形式が用いられ得る。
As shown in FIG. 2, the digital still camera 12 is a camera that obtains an image by forming light information on a digital device (CCD or photomultiplier tube). As shown in FIG. An optical circuit 121 including a CCD or the like for collecting information, an image acquisition circuit 122 for controlling the optical circuit 121 to acquire an image, an image processing circuit 123 for processing an acquired digital image, and a memory. And a control circuit 124 for controlling each circuit. Digital still camera 12
Saves the obtained image as digital data in a memory card MC as a storage device. The storage format of the image data in the digital still camera 12 is J
Although the PEG format is generally used, other storage formats such as a TIFF format, a GIF format, a BMP format, and a RAW data format may be used.

【0031】ディジタルスチルカメラ12はまた、明
度、コントラスト、露出補正量(露出補正値)、ホワイ
トバランス等の個別の画像処理制御パラメータ、および
撮影条件に応じて予め複数の画像処理制御パラメータの
値が設定されている撮影モードを設定するための選択・
決定ボタン126、撮影画像をプレビューしたり、選択
・決定ボタン126を用いて撮影モード等を設定するた
めの液晶ディスプレイ127を備えている。
The digital still camera 12 also sets individual image processing control parameters such as brightness, contrast, exposure correction amount (exposure correction value), white balance, etc., and a plurality of image processing control parameters in advance in accordance with shooting conditions. Selection for setting the set shooting mode
A determination button 126 and a liquid crystal display 127 for previewing a captured image and setting a shooting mode and the like using the selection / determination button 126 are provided.

【0032】本画像処理システム10に用いられるディ
ジタルスチルカメラ12は、画像データGDに加えて画
像データの画像処理制御情報GCを画像ファイルGFと
してメモリカードMCに格納する。すなわち、画像処理
制御情報GCは、撮影時に画像データGDと共に自動的
に画像ファイルGFを構成する情報としてメモリカード
MCに自動的に格納される。
The digital still camera 12 used in the image processing system 10 stores image processing control information GC of image data as an image file GF in the memory card MC in addition to the image data GD. That is, the image processing control information GC is automatically stored in the memory card MC together with the image data GD at the time of shooting as information automatically constituting the image file GF.

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

【0034】図3を参照して本実施例に用いられる画像
出力装置、すなわち、カラープリンタ20の内部構成に
ついて説明する。カラープリンタ20は、カラー画像の
出力が可能なプリンタであり、例えば、シアン(C)、
マゼンタ(M)、イエロー(Y)、ブラック(K)の4
色の色インクを印刷媒体上に噴射してドットパターンを
形成することによって画像を形成するインクジェット方
式のプリンタである。あるいは、カラートナーを印刷媒
体上に転写・定着させて画像を形成する電子写真方式の
プリンタである。色インクには、上記4色に加えて、ラ
イトシアン(薄いシアン、LC)、ライトマゼンタ(薄
いマゼンタ、LM)、ダークイエロ(暗いイエロ、D
Y)を用いても良い。
The internal configuration of the image output device used in the present embodiment, that is, the color printer 20, will be described with reference to FIG. The color printer 20 is a printer capable of outputting a color image, for example, cyan (C),
Magenta (M), Yellow (Y), Black (K) 4
This is an inkjet printer that forms an image by ejecting color inks on a print medium to form a dot pattern. Alternatively, it is an electrophotographic printer that forms an image by transferring and fixing a color toner on a print medium. The color inks include, in addition to the above four colors, light cyan (light cyan, LC), light magenta (light magenta, LM), dark yellow (dark yellow, D
Y) may be used.

【0035】カラープリンタ20は、図示するように、
キャリッジ30に搭載された印字ヘッドIH1〜IH4
を駆動してインクの吐出およびドット形成を行う機構
と、このキャリッジ30をキャリッジモータ31によっ
てプラテン32の軸方向に往復動させる機構と、紙送り
モータ33によって印刷用のカット紙40を搬送する機
構と、制御回路50とから構成されている。キャリッジ
30をプラテン32の軸方向に往復動させる機構は、プ
ラテン32の軸と並行に架設されたキャリッジ30を摺
動可能に保持する摺動軸34と、キャリッジモータ31
との間に無端の駆動ベルト35を張設するプーリ36等
から構成されている。
As shown in the figure, the color printer 20
Print heads IH1 to IH4 mounted on carriage 30
, A mechanism for reciprocating the carriage 30 in the axial direction of a platen 32 by a carriage motor 31, and a mechanism for transporting the cut paper 40 for printing by a paper feed motor 33. And a control circuit 50. The mechanism for reciprocating the carriage 30 in the axial direction of the platen 32 includes a sliding shaft 34 slidably holding the carriage 30 erected in parallel with the axis of the platen 32, and a carriage motor 31.
And a pulley 36 on which an endless drive belt 35 is stretched.

【0036】制御回路50は、プリンタの操作パネル2
1と信号をやり取りしつつ、紙送りモータ33やキャリ
ッジモータ31、印字ヘッドIH1〜IH4の動きを適
切に制御する。キャリッジ30にはインクカートリッジ
INC1とインクカートリッジINC2とが装着され
る。インクカートリッジINC1には黒(K)インクが
収容され、インクカートリッジINC2には他のイン
ク、すなわち、シアン(C),マゼンタ(M),イエロ
(Y)の3色インクが収納されている。ライトシアン
(LC),ライトマゼンタ(LM),ダークイエロ(D
Y)のインクも収納可能であることは既述の通りであ
る。
The control circuit 50 controls the operation panel 2 of the printer.
While exchanging signals with the control unit 1, the movements of the paper feed motor 33, the carriage motor 31, and the print heads IH1 to IH4 are appropriately controlled. An ink cartridge INC1 and an ink cartridge INC2 are mounted on the carriage 30. The ink cartridge INC1 contains black (K) ink, and the ink cartridge INC2 contains other inks, that is, three color inks of cyan (C), magenta (M), and yellow (Y). Light cyan (LC), light magenta (LM), dark yellow (D
As described above, the ink of Y) can be stored.

【0037】次に図4を参照してカラープリンタ20の
制御回路50の内部構成について説明する。図示するよ
うに、制御回路50の内部には、CPU51,PROM
52,RAM53,周辺機器入出力部(PIO)54,
タイマ55,駆動バッファ56等が設けられている。P
IO54には、パーソナルコンピュータPC、キャリッ
ジモータ31、紙送りモータ33、およびエンコーダ3
7が接続されている。駆動バッファ56は、印字ヘッド
IH1ないしIH4にドット形成のオン・オフ信号を供
給するバッファとして使用される。これらは互いにバス
57で接続され、相互にデータにやり取りが可能となっ
ている。また、制御回路50には、所定周波数で駆動波
形を出力する発振器58、および発振器58からの出力
をインク吐出用ヘッドIH1ないしIH4に所定のタイ
ミングで分配する分配出力器59も設けられている。制
御回路50は、紙送りモータ33やキャリッジモータ3
1の動きと同期を採りながら、所定のタイミングでドッ
トデータを駆動バッファ56に出力する。
Next, the internal configuration of the control circuit 50 of the color printer 20 will be described with reference to FIG. As shown in the figure, a CPU 51, a PROM
52, RAM 53, peripheral device input / output unit (PIO) 54,
A timer 55, a driving buffer 56 and the like are provided. P
The IO 54 includes a personal computer PC, a carriage motor 31, a paper feed motor 33, and an encoder 3
7 is connected. The drive buffer 56 is used as a buffer for supplying an on / off signal for dot formation to the print heads IH1 to IH4. These are connected to each other via a bus 57 so that data can be exchanged with each other. The control circuit 50 also includes an oscillator 58 that outputs a drive waveform at a predetermined frequency, and a distribution output device 59 that distributes the output from the oscillator 58 to the ink ejection heads IH1 to IH4 at a predetermined timing. The control circuit 50 includes the paper feed motor 33 and the carriage motor 3
The dot data is output to the drive buffer 56 at a predetermined timing while synchronizing with the movement of No. 1.

【0038】B.画像ファイル構造:図5を参照して本
実施例にて用いられ得る画像ファイルの概略構成につい
て説明する。図5は本実施例にて用いられ得る画像ファ
イルの内部構成の一例を概念的に示す説明図である。本
実施例に係る画像ファイルGFは、例えば、ディジタル
スチルカメラ用画像ファイルフォーマット規格(Exif)
に従ったファイル構造を有することができる。Exifファ
イルの仕様は、日本電子工業振興協会(JEIDA)に
よって定められている。
B. Image File Structure: A schematic configuration of an image file that can be used in the present embodiment will be described with reference to FIG. FIG. 5 is an explanatory diagram conceptually showing an example of the internal configuration of an image file that can be used in the present embodiment. The image file GF according to the present embodiment is, for example, a digital still camera image file format standard (Exif).
Can have a file structure according to The specifications of the Exif file are defined by the Japan Electronic Industry Development Association (JEIDA).

【0039】Exifファイルとしての画像ファイルGF
は、JPEG形式の画像データを格納するJPEG画像
データ格納領域111と、格納されているJPEG画像
データに関する各種情報を格納する付属情報格納領域1
12とを備えている。付属情報格納領域112には、撮
影日時、露出、シャッター速度、ホワイトバランス、露
出補正量、ターゲット色空間等といったJPEG画像を
出力する際に参照される画像処理制御情報GCが格納さ
れている。また、付属情報格納領域112には、画像処
理制御情報GCに加えてJPEG画像データ格納領域1
11に格納されているJPEG画像のサムネイル画像デ
ータがTIFF形式にて格納されている。なお、当業者
にとって周知であるように、Exif形式のファイルでは、
各データを特定するためにタグが用いられており、各デ
ータはタグ名によって呼ばれることがある。なお、本実
施例中におけるファイルの構造、データの構造、格納領
域といった用語は、ファイルまたはデータ等が記憶装置
内に格納された状態におけるファイルまたはデータのイ
メージを意味するものである。
Image file GF as Exif file
Is a JPEG image data storage area 111 for storing JPEG image data, and an auxiliary information storage area 1 for storing various information related to the stored JPEG image data.
12 are provided. The attached information storage area 112 stores image processing control information GC, such as shooting date and time, exposure, shutter speed, white balance, exposure correction amount, and target color space, which is referred to when outputting a JPEG image. The additional information storage area 112 has a JPEG image data storage area 1 in addition to the image processing control information GC.
11, thumbnail image data of a JPEG image is stored in TIFF format. As is well known to those skilled in the art, in the Exif format file,
Tags are used to specify each data, and each data may be referred to by a tag name. 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.

【0040】画像処理制御情報GCは、ディジタルスチ
ルカメラ12等の画像データ生成装置において画像デー
タが生成されたとき(撮影されたとき)の画質に関連す
る情報であり、撮影に伴い自動的に、あるいは、ユーザ
により任意に設定され得る露出時間、ISO感度、絞
り、シャッタースピード、焦点距離に関するパラメー
タ、およびユーザによって任意に設定される露出補正
量、ホワイトバランス、撮影モード、ターゲット色空間
等の画像処理制御パラメータを含み得る。
The image processing control information GC is information relating to the image quality when image data is generated (photographed) by an image data generation device such as the digital still camera 12, etc. Alternatively, parameters such as exposure time, ISO sensitivity, aperture, shutter speed, and focal length that can be arbitrarily set by the user, and image processing such as exposure correction amount, white balance, shooting mode, and target color space arbitrarily set by the user It may include control parameters.

【0041】本実施例に係る上記画像ファイルGFは、
ディジタルスチルカメラ12の他、ディジタルビデオカ
メラ、スキャナ等の入力装置(画像ファイル生成装置)
によっても生成され得る。
The image file GF according to this embodiment is
In addition to the digital still camera 12, an input device (image file generating device) such as a digital video camera and a scanner
Can also be generated by

【0042】C.画像処理装置における画像処理:図6
〜図12を参照して本実施例に係る画像処理装置として
機能するパーソナルコンピュータPCにおける画像処理
について説明する。図6は本実施例に係るパーソナルコ
ンピュータPCにおいて実行される画像処理の処理ルー
チンを示すフローチャートである。図7はパーソナルコ
ンピュータPCにて実行される画像処理制御情報GCに
基づく画像処理の処理ルーチンを示すフローチャートで
ある。図8は本実施例に従う画像処理と階調数との関係
を示す説明図である。図9は色空間変換の実行により、
階調数が減少する様子を概念的に示す説明図である。図
10は本実施例の作用効果により色空間変換の実行によ
っても、階調数を維持することができる様子を概念的に
示す説明図である。図11はパーソナルコンピュータP
Cにて実行される通常画像処理の処理ルーチンを示すフ
ローチャートである。図12はパーソナルコンピュータ
PCにて実行される画像データ出力処理の処理ルーチン
を示すフローチャートである。
C. Image processing in image processing apparatus: FIG.
Image processing in a personal computer PC functioning as an image processing apparatus according to the present embodiment will be described with reference to FIGS. FIG. 6 is a flowchart showing a processing routine of image processing executed in the personal computer PC according to the present embodiment. FIG. 7 is a flowchart showing a processing routine of image processing based on image processing control information GC executed by the personal computer PC. FIG. 8 is an explanatory diagram showing the relationship between image processing and the number of gradations according to the present embodiment. FIG. 9 shows that the color space conversion is performed.
It is explanatory drawing which shows a mode that the number of gradations decreases conceptually. FIG. 10 is an explanatory diagram conceptually showing how the number of gradations can be maintained even by executing the color space conversion by the operation and effect of the present embodiment. FIG. 11 shows a personal computer P
9 is a flowchart illustrating a processing routine of normal image processing executed in C. FIG. 12 is a flowchart showing a processing routine of image data output processing executed by the personal computer PC.

【0043】ディジタルスチルカメラ12にて生成され
た画像ファイルGFは、ケーブルを介して、あるいは、
メモリカードMCを介してパーソナルコンピュータPC
に対して提供される。ユーザの操作によって、HDD1
52にインストールされている、レタッチアプリケーシ
ョン、または、プリンタドライバといった画像データ処
理アプリケーション(プログラム)が起動されると、C
PU150は、画像ファイルGFの読み込みを開始す
る。
The image file GF generated by the digital still camera 12 is transmitted via a cable or
Personal computer PC via memory card MC
Provided for. The HDD 1 is operated by the user.
When an image data processing application (program) such as a retouch application or a printer driver installed in the
The PU 150 starts reading the image file GF.

【0044】あるいは、メモリカードMCのカードスロ
ット153への差込、あるいは、入出力端子154に対
するケーブルを介したディジタルスチルカメラ12の接
続を検知することによって、CPU150は、画像処理
アプリケーションを自動的に起動させ、画像ファイルG
Fの読み込みを開始しても良い。
Alternatively, by detecting insertion of the memory card MC into the card slot 153 or connection of the digital still camera 12 via a cable to the input / output terminal 154, the CPU 150 automatically executes the image processing application. Start up the image file G
The reading of F may be started.

【0045】CPU150は、例えば、メモリカードM
Cから画像ファイルGFを読み出すと、読み出した画像
ファイルGFをRAM151に一時的に格納して、画像
ファイルGFの付属情報格納領域112において画像処
理制御タグを検索する(ステップS100)。CPU1
50は、画像処理制御タグを検索・発見できた場合には
(ステップS110:Yes)、画像データ生成時に書
き込まれた画像処理制御情報GCを取得して解析する
(ステップS120)。CPU150は、解析した画像
処理制御情報GCに基づいて後に詳述する画像処理制御
情報GCに基づく画像処理を実行し(ステップS13
0)、本処理ルーチンを終了する。
The CPU 150 is, for example, a memory card M
When the image file GF is read from C, the read image file GF is temporarily stored in the RAM 151, and the image processing control tag is searched in the attached information storage area 112 of the image file GF (step S100). CPU1
When the image processing control tag can be searched for and found (step S110: Yes), the image processing control information GC acquires and analyzes the image processing control information GC written at the time of generating the image data (step S120). The CPU 150 executes image processing based on the analyzed image processing control information GC based on the analyzed image processing control information GC (step S13).
0), end this processing routine.

【0046】CPU150は、画像処理制御タグを検索
・発見できなかった場合には(ステップS110:N
o)、画像データ生成時における画像処理制御情報GC
を反映させた画像処理を実行することができないので、
通常の画像処理(ステップS140)を実行し、本処理
ルーチンを終了する。
If the CPU 150 has not been able to search or find the image processing control tag (step S110: N
o), image processing control information GC when generating image data
Image processing that reflects the
Normal image processing (step S140) is executed, and the present processing routine ends.

【0047】パーソナルコンピュータPCにおいて実行
される画像処理制御情報に基づく画像処理について図7
を参照して詳細に説明する。パーソナルコンピュータP
CのCPU150は、読み出した画像ファイルGFから
画像データGDを取りだす(ステップS200)。この
とき取り出された画像データGDは、オリジナルではな
く、コピーであり、画像処理が完了するまでは、コピー
の画像データGDに対して種々の画像処理が施される。
Image Processing Based on Image Processing Control Information Executed in Personal Computer PC FIG.
This will be described in detail with reference to FIG. Personal computer P
The CPU 150 of C extracts the image data GD from the read image file GF (Step S200). The extracted image data GD is not an original but a copy, and various image processing is performed on the copied image data GD until the image processing is completed.

【0048】ディジタルスチルカメラ12は、既述のよ
うに画像データをJPEG形式のファイルとして保存し
ており、JPEGファイルでは、圧縮率を高くするため
にYCbCr色空間を用いて画像データを保存してい
る。現在のところ、パーソナルコンピュータPCのCP
Uとして32ビットCPUが一般的に用いられているた
め、画像データの各成分、例えば、YCbCrデータで
有れば、Y、Cb、Crの各成分には8ビットのデータ
サイズが割り当てられており、Y、Cb、Crの各成分
は、0〜255の256の階調数(色数)で表され得
る。そして、Y、Cb、Crの各成分の色彩値は、整数
値として表され、各成分の色彩値がそれぞれ異なる整数
値を取る場合には、Y、Cb、Crの各成分は、0〜2
55の256の階調数で表される。すなわち、階調数が
大きくなった場合には画像データのデータサイズは必ず
大きくなる。
The digital still camera 12 stores image data as a JPEG file as described above. In the JPEG file, the image data is stored using the YCbCr color space in order to increase the compression ratio. I have. At present, CP of personal computer PC
Since a 32-bit CPU is generally used as U, an 8-bit data size is assigned to each component of image data, for example, each of Y, Cb, and Cr for YCbCr data. , Y, Cb, and Cr can be represented by 256 gradation numbers (color numbers) from 0 to 255. The color values of the Y, Cb, and Cr components are expressed as integer values. When the color values of the components take different integer values, the Y, Cb, and Cr components are 0 to 2 respectively.
It is represented by the number of gradations of 256 of 55. That is, when the number of gradations increases, the data size of the image data always increases.

【0049】本実施例における特徴的な画像処理の概念
について図9および図10を参照して説明する。本実施
例では、CPU150は、画像処理を通じて元の画像デ
ータGDが有する階調数(色数)を維持するために、マ
トリクス演算Sによって得られた演算結果に対して有効
数字の桁上げ処理を実行する。既述のように、画像デー
タGDがYCbCr各成分について256階調(8ビッ
ト階調)で表されている場合には、図9に示すように画
像データGDの色彩値は、有効数字が0〜3の整数値
(0〜255)を取る。ところが、マトリクスSは、マ
トリクス係数に小数点を含むため、変換後の画像データ
GDの色彩値は、必ずしも整数値を取るとは限らない。
このような画像データGDの色彩値を画像データとして
取り扱うためには、整数値化する必要がある。整数値化
するためには、有効数字の桁数を維持したまま小数点以
下を四捨五入する等して整数値に丸め、整数値だけを有
効数字として扱う方法が多く採られている。
The concept of the characteristic image processing in this embodiment will be described with reference to FIGS. In this embodiment, in order to maintain the number of gradations (the number of colors) of the original image data GD through the image processing, the CPU 150 carries out a significant digit carry process on the operation result obtained by the matrix operation S. Execute. As described above, when the image data GD is represented by 256 gradations (8-bit gradation) for each of the YCbCr components, as shown in FIG. It takes an integer value of 0 to 3 (0 to 255). However, since the matrix S includes a decimal point in the matrix coefficient, the color value of the converted image data GD does not always take an integer value.
In order to handle such color values of the image data GD as image data, it is necessary to convert the color values into integer values. In order to convert to an integer value, a method is often employed in which the number of significant digits is maintained, rounded to the nearest whole number by, for example, rounding off the decimal part, and only the integer value is treated as a significant digit.

【0050】ところが、有効数字の桁数を維持したまま
整数値への丸め処理を実行すると、図9に示すように、
例えば、変換前は階調数が5であったのに対して、変換
後は階調数が3に減少してしまう。すなわち、有効数字
の桁数を増加すれば異なる複数の色彩値が、有効数字の
桁数を維持することによって、同一の色彩値を有してし
まうことになる。Sマトリクス演算は、本実施例におけ
る画像処理の最初の処理であり、この段階で階調数が減
少してしまうと、後段の処理では正しく回復することは
できず、画像処理の精度を低下させてしまう。また、階
調数の減少は表色数の減少を意味するため、元の画像デ
ータと画像処理後の画像データとの間で、表色数が異な
ってしまう(少なくなってしまう)という問題も生じ
る。
However, when rounding to an integer value is performed while maintaining the number of significant digits, as shown in FIG.
For example, while the number of gradations is 5 before the conversion, the number of gradations is reduced to 3 after the conversion. That is, if the number of significant figures is increased, a plurality of different color values will have the same color value by maintaining the number of significant figures. The S matrix operation is the first processing of the image processing in the present embodiment. If the number of gradations is reduced at this stage, it cannot be correctly recovered by the subsequent processing, and the accuracy of the image processing is reduced. Would. Further, since a decrease in the number of gradations means a decrease in the number of colors, there is also a problem that the number of colors differs (decreases) between the original image data and the image data after image processing. Occurs.

【0051】そこで、本実施例では、画像データGDに
対してマトリクスSを実行した結果得られた変換後の画
像データGDの有効数字の桁数を元の画像データGDの
有効数字の桁数よりも増加させる桁上げ処理を実行す
る。すなわち、元の画像データGDの色彩値が1桁の場
合は有効数字の桁数が1であるから、変換後の画像デー
タGDの有効数字の桁数は2以上となり、元の画像デー
タGDの色彩値が3桁の場合は有効数字の桁数が3であ
るから、変換後の画像データGDの有効数字の桁数は4
以上となる。元の画像データの有効数字の桁数に対して
変換後の画像データにどれだけの有効数字の桁数を認め
るかは任意に決定される事項であるが、本実施例では、
YCbCr、RGB各成分についての画像データの階調
数を8ビット階調から18ビット階調に増加させる。こ
のとき、画像データGDのサイズも8ビットから18ビ
ットに増加する。
Therefore, in the present embodiment, the number of significant figures of the converted image data GD obtained as a result of executing the matrix S on the image data GD is calculated from the number of significant figures of the original image data GD. Is also increased. That is, when the color value of the original image data GD is one digit, the number of significant digits of the converted image data GD is 1 or more, and the number of significant digits of the converted image data GD is two or more. When the color value is three digits, the number of significant figures is three. Therefore, the number of significant figures of the converted image data GD is four.
That is all. Although it is arbitrarily determined how many significant digits are allowed in the converted image data with respect to the significant digits of the original image data, but in this embodiment,
The number of gradations of the image data for each of the YCbCr and RGB components is increased from 8-bit gradation to 18-bit gradation. At this time, the size of the image data GD also increases from 8 bits to 18 bits.

【0052】この結果、階調数は、1024倍となり、
図10に示すように、変換後のRGB色空間における色
彩値の刻みが図9の場合と比較して細かくなり、小数点
以下3桁までの値の色彩値で有れば変換後の画像データ
の色彩値を全て整数値化することができる。階調数が小
数点以下3桁までの色彩値が整数値化されれば、階調数
の減少を防止することが可能となり、元の画像データが
有する階調数を後段の画像処理を通じて維持することが
できる。また、変換後の画像データの複数の色彩値が同
一値を取る場合であっても、階調数が1024倍になる
ため、元の画像データGDの各成分について階調数25
6を容易に維持することが可能となり、表色数の減少を
防止することができる。
As a result, the number of gradations becomes 1024 times,
As shown in FIG. 10, the step of the color value in the RGB color space after the conversion is finer than that in the case of FIG. 9, and if the color value is a value up to three digits after the decimal point, the converted image data All color values can be converted to integer values. If the tone value is converted to an integer color value up to three digits after the decimal point, it is possible to prevent a decrease in the tone number, and to maintain the tone number of the original image data through subsequent image processing. be able to. Further, even when a plurality of color values of the converted image data take the same value, the number of gradations becomes 1024 times, so that the number of gradations of each component of the original image data GD is 25.
6 can be easily maintained, and a decrease in the number of colors can be prevented.

【0053】CPU150は、YCrCb色空間に基づ
く画像データをRGB色空間に基づく画像データに変換
するために3×3マトリックス演算Sを実行する(ステ
ップS210)。CPU150は、図8に示すようにマ
トリクス変換後の画像データGDの階調数を8ビット階
調から18ビット階調に増加させて、マトリクス演算S
に伴う階調数の低下を防止する。マトリックス演算Sは
以下に示す演算式である。
The CPU 150 executes a 3 × 3 matrix operation S in order to convert image data based on the YCrCb color space into image data based on the RGB color space (step S210). The CPU 150 increases the number of gradations of the image data GD after the matrix conversion from the 8-bit gradation to the 18-bit gradation as shown in FIG.
To prevent the number of gradations from decreasing. The matrix operation S is an operation expression shown below.

【0054】[0054]

【数1】 (Equation 1)

【0055】マトリクスS変換の結果、画像データ(色
彩値)は負値あるいは256以上の正値を取ることがあ
る(8ビット階調の場合)が、本実施例では、CPU1
50は、これら負値、あるいは、256以上の正値をそ
のまま維持して、以降の画像処理を継続する。
As a result of the matrix S conversion, the image data (color value) may take a negative value or a positive value of 256 or more (in the case of 8-bit gradation).
Reference numeral 50 keeps these negative values or positive values of 256 or more as they are, and continues the subsequent image processing.

【0056】CPU150は、こうして得られたRGB
色空間に基づく画像データに対して、ガンマ補正を実行
する(ステップS220)。ガンマ補正を実行する際に
は、CPU150は、画像処理制御情報GCからDSC
側のガンマ値を取得し、取得したガンマ値を以下に示す
ガンマ補正演算式に用いて18ビット階調のガンマ補正
テーブルをRAM151上に作成し、作成したガンマ補
正テーブルを用いて画像データGDに対してガンマ変換
処理を実行する。すなわち、ガンマ値も画像処理制御情
報GCによって指定される画像処理制御パラメータ値に
含まれる。ガンマ補正の演算式は以下の通りである。
The CPU 150 outputs the RGB signals thus obtained.
Gamma correction is performed on the image data based on the color space (step S220). When executing the gamma correction, the CPU 150 uses the image processing control information GC
Side gamma value is obtained, a gamma correction table of 18-bit gradation is created in the RAM 151 by using the obtained gamma value in a gamma correction operation expression shown below, and the created gamma correction table is used to generate image data GD. The gamma conversion process is performed for this. That is, the gamma value is also included in the image processing control parameter value specified by the image processing control information GC. The arithmetic expression for gamma correction is as follows.

【0057】[0057]

【数2】 (Equation 2)

【0058】CPU150は、ガンマ補正が実行された
画像データGDに対して、原色空間とwRGB色空間と
を対応付けるマトリックス演算(N-1M)を実行する
(ステップS230)。CPU150は、マトリクス演
算(N-1M)を実行して得られた変換後の画像データG
Dの階調数についても、マトリクス演算Sの場合と同様
にして、図8に示すように、桁上げ処理によって18ビ
ット階調から32ビット階調に増加させて階調数の減少
を防止する。マトリクス演算における本実施例において
用いられる画像ファイルGFは、画像生成時における色
空間情報を含むことができるので、画像ファイルGFが
色空間情報を含んでいる場合には、CPU150は、マ
トリックス演算(N-1M)を実行するに際して、色空間
情報を参照し、画像生成時における色空間に対応するマ
トリックス(N-1M)を用いてマトリックス演算を実行
する。
The CPU 150 executes a matrix operation (N -1 M) for associating the primary color space with the wRGB color space on the image data GD on which the gamma correction has been executed (step S230). The CPU 150 converts the converted image data G obtained by executing the matrix operation (N -1 M).
As in the case of the matrix operation S, the number of gradations of D is increased from an 18-bit gradation to a 32-bit gradation by a carry process to prevent a decrease in the number of gradations, as shown in FIG. . Since the image file GF used in the present embodiment in the matrix calculation can include color space information at the time of image generation, if the image file GF includes color space information, the CPU 150 executes the matrix calculation (N When executing ( -1 M), a matrix operation is executed by using a matrix (N -1 M) corresponding to the color space at the time of image generation with reference to the color space information.

【0059】マトリックス演算(N-1M)はRGB色空
間をXYZ色空間に変換するためのマトリクスMを用い
るマトリクス演算Mと、wRGB色空間をXYZ色空間
に変換するためのマトリクスNを用いるマトリクス演算
Nの逆マトリクス演算N-1との合成マトリクスである。
マトリクスMは、sRGB色空間の表色域内には含まれ
ないがデータとしては有効な画像データ(負の色彩値)
を維持して、RGB色空間に基づく画像データを、XY
Z色空間に基づく画像データに変換するためのマトリク
スである。マトリクスMのマトリクス値は、色空間情報
にしたがて決定される。マトリクスNの逆マトリクスN
は、マトリクス演算MによってXYZ色空間に基づく画
像データに変換された画像データをsRGB色空間より
も広い定義領域を有するwRGB色空間に変換(RGB
色空間に戻す)ためのマトリクスである。XYZ色空間
は、機器の出力特性に依存しない機器独立色空間の1つ
であり、RGB色空間とwRGB色空間との間における
色彩値の対応付けを行うために用いられる。マトリック
ス演算(N-1M)は以下に示す演算式である。
The matrix operation (N −1 M) includes a matrix operation M using a matrix M for converting an RGB color space into an XYZ color space, and a matrix operation using a matrix N for converting a wRGB color space into an XYZ color space. This is a composite matrix of the operation N and the inverse matrix operation N- 1 .
The matrix M is image data that is not included in the color gamut of the sRGB color space but is effective as data (negative color values)
Is maintained, image data based on the RGB color space is converted into XY
It is a matrix for converting into image data based on the Z color space. The matrix values of the matrix M are determined according to the color space information. Inverse matrix N of matrix N
Converts the image data converted into the image data based on the XYZ color space by the matrix operation M into the wRGB color space having a defined area wider than the sRGB color space (RGB
(Return to color space). The XYZ color space is one of the device-independent color spaces that does not depend on the output characteristics of the device, and is used to associate color values between the RGB color space and the wRGB color space. The matrix operation (N -1 M) is an operation expression shown below.

【0060】[0060]

【数3】 (Equation 3)

【0061】マトリックス演算(N-1M)の実行後に得
られる画像データGDの色空間はsRGB色空間よりも
広い定義領域を有するwRGB色空間である。従来は、
プリンタまたはコンピュータにおける画像処理に際して
用いられる色空間はsRGBに固定されており、たと
え、プリンタがsRGB色空間よりも広くディジタルス
チルカメラ12の表色域を含む表色域を有していてもデ
ィジタルスチルカメラ12の有する色空間を有効に活用
することができなかった。これに対して、本実施例で
は、画像ファイルGFに色空間情報が含まれている場合
には、色空間情報に対応してマトリックス演算Mに用い
られるマトリックス(N-1M)を変更するので、ディジ
タルスチルカメラ12の有する色空間を有効に活用し
て、正しい色再現を実現することができる。
The color space of the image data GD obtained after the execution of the matrix operation (N −1 M) is a wRGB color space having a wider defined area than the sRGB color space. conventionally,
The color space used for image processing in a printer or a computer is fixed to sRGB, and even if the printer has a color gamut that is larger than the sRGB color space and includes the color gamut of the digital still camera 12, digital still The color space of the camera 12 cannot be used effectively. On the other hand, in the present embodiment, when the color space information is included in the image file GF, the matrix (N −1 M) used for the matrix operation M is changed in accordance with the color space information. In addition, the color space of the digital still camera 12 can be effectively utilized to realize correct color reproduction.

【0062】CPU150は、マトリクス演算(N
-1M)により得られた画像データに対して逆ガンマ補正
を実行する(ステップS240)。CPU150は、図
8に示すように、マトリクス演算(N-1M)により得ら
れた画像データGDの階調数を32ビット階調から18
ビット階調に減少させて、データサイズも32ビットか
ら18ビットに減少する。階調数の減少は、32ビット
の画像データGDの上位18ビットを画像データGDと
して取り出すことによって実行される。ガンマ補正を実
行する際には、CPU150はHDD152からプリン
タ側のデフォルトのガンマ値を取得し、以下の逆ガンマ
補正の演算式に取得したガンマ値の逆数を用いて逆ガン
マ補正テーブルをRAM151に生成し、生成した逆ガ
ンマ補正テーブルを用いて画像データGDに対して逆ガ
ンマ変換処理を実行する。逆ガンマ補正に用いられる演
算式は以下の通りである。
The CPU 150 executes a matrix operation (N
Inverse gamma correction is performed on the image data obtained by ( −1 M) (step S240). As shown in FIG. 8, the CPU 150 changes the number of tones of the image data GD obtained by the matrix operation (N -1 M) from the 32-bit gray scale to 18 gray scales.
By reducing to bit gradation, the data size is also reduced from 32 bits to 18 bits. The reduction in the number of gradations is performed by extracting the upper 18 bits of the 32-bit image data GD as the image data GD. When performing gamma correction, the CPU 150 acquires a default gamma value on the printer side from the HDD 152 and generates an inverse gamma correction table in the RAM 151 using the reciprocal of the acquired gamma value in the following inverse gamma correction equation. Then, an inverse gamma conversion process is performed on the image data GD using the generated inverse gamma correction table. The arithmetic expression used for the inverse gamma correction is as follows.

【0063】[0063]

【数4】 (Equation 4)

【0064】CPU150は、図8に示すように、逆ガ
ンマ補正が施された画像データGDの階調数を18ビッ
ト階調から8ビット階調に減少させて、データサイズも
18ビットから8ビットに減少する。逆ガンマ補正処理
時には、逆ガンマ補正テーブルを生成する必要があり、
階調数が大きい場合には、必要なメモリリソース量が増
加すると共に、演算処理に時間を要する。一方で、人間
の目によって認識される階調数は各成分について8ビッ
ト階調程度なので、出力結果には影響を及ぼさない。階
調数の減少は、18ビットの画像データGDの上位8ビ
ットを画像データGDとして取り出すことによって実行
される。次に行われる自動画質調整では、R、G、Bの
各成分を同時に処理する場合があり、各成分について8
ビットの画像データしか扱うことができないからであ
る。
As shown in FIG. 8, the CPU 150 reduces the number of gradations of the image data GD subjected to the inverse gamma correction from the 18-bit gradation to the 8-bit gradation, and changes the data size from 18 bits to 8 bits. To decrease. During the inverse gamma correction process, it is necessary to generate an inverse gamma correction table,
When the number of gradations is large, the required amount of memory resources increases and the calculation process takes time. On the other hand, since the number of gradations recognized by human eyes is about 8-bit gradation for each component, the output result is not affected. The reduction in the number of gradations is performed by extracting the upper 8 bits of the 18-bit image data GD as the image data GD. In the next automatic image quality adjustment, each of the R, G, and B components may be simultaneously processed.
This is because only bit image data can be handled.

【0065】CPU150は、逆ガンマ補正が施された
画像データGDに対して画像画質の自動調整処理を実行
する(ステップS250)。本実施例における画質自動
調整処理では、画像ファイルGFに含まれている画像デ
ータGDを解析して画質を示す特性パラメータ値を取得
し、画像ファイルGFに含まれている画像処理制御情報
GC、取得した特性パラメータ値を反映にて画像データ
を補正する画質の自動調整が実行される。画質自動調整
処理では、補正の目標となるべき基準パラーメータを予
め定めておき、基準パラメータと画像データの特性パラ
メータとの差分を解消または低減するように画質補正量
を決定する。画像処理制御情報GCは、基準パラメータ
の値を変更するために用いられても良く、あるいは、画
質補正量の適用レベルを変更するために用いられても良
い。
The CPU 150 performs an automatic image quality adjustment process on the image data GD on which the inverse gamma correction has been performed (step S250). In the image quality automatic adjustment process in the present embodiment, the image data GD included in the image file GF is analyzed to obtain a characteristic parameter value indicating the image quality, and the image processing control information GC included in the image file GF is obtained. Automatic adjustment of the image quality for correcting the image data by reflecting the characteristic parameter values thus performed is executed. In the image quality automatic adjustment process, a reference parameter to be a correction target is determined in advance, and an image quality correction amount is determined so as to eliminate or reduce a difference between the reference parameter and a characteristic parameter of image data. The image processing control information GC may be used to change the value of the reference parameter, or may be used to change the application level of the image quality correction amount.

【0066】画像データの補正は、例えば、明度、コン
トラスト、カラーバランス等については、一般的にトー
ンカーブと呼ばれる、RGB信号の入力レベルと出力レ
ベルとを関連づける特性線を用いて各画素(ピクセル)
単位で実行される。また、例えば、彩度、シャープネ
ス、ノイズ低減等については、トーンカーブ処理ではな
くピクセル演算処理(フィルタ処理)がピクセル単位で
実行される。
In the correction of image data, for example, for brightness, contrast, color balance, etc., each pixel (pixel) is obtained by using a characteristic line which is generally called a tone curve and associates an input level and an output level of an RGB signal.
Executed in units. For example, for saturation, sharpness, noise reduction, and the like, pixel calculation processing (filter processing) is executed in pixel units instead of tone curve processing.

【0067】CPU150は、画質自動調整処理を終了
すると、処理済みの画像データをプリンタドライバへ出
力して(ステップS260)、図6に示す処理ルーチン
にリターンする。
When the CPU 150 finishes the automatic image quality adjustment processing, it outputs the processed image data to the printer driver (step S260), and returns to the processing routine shown in FIG.

【0068】次に、パーソナルコンピュータPCにおい
て実行される通常画像処理について図11を参照して詳
細に説明する。なお、各ステップにおいて実行される処
理のうち、図7を参照して説明した拡張画像処理におけ
る処理と同様の処理については、簡単に説明するにとど
める。パーソナルコンピュータPCのCPU150は、
読み出した画像ファイルGFから画像データGDを取り
だす(ステップS300)。CPU150は、YCrC
b色空間に基づく画像データをsRGB色空間に基づく
画像データに変換するために3×3マトリックス演算S
を実行する(ステップS310)。マトリックス演算S
は既述の演算式である。
Next, the normal image processing executed in the personal computer PC will be described in detail with reference to FIG. Note that, of the processing executed in each step, processing similar to the processing in the extended image processing described with reference to FIG. 7 will be described only briefly. The CPU 150 of the personal computer PC
The image data GD is extracted from the read image file GF (step S300). The CPU 150 is a YCrC
3 × 3 matrix operation S for converting image data based on the b color space into image data based on the sRGB color space
Is executed (step S310). Matrix operation S
Is the operation expression described above.

【0069】CPU31は、マトリクス演算Sにより得
られた画像データに対して画像画質の自動調整処理を実
行し(ステップS320)、画像処理を実行した画像デ
ータGDをプリンタドライバへ出力し(ステップS33
0)、図7に示す処理ルーチンにリターンする。
The CPU 31 executes an automatic adjustment process of the image quality on the image data obtained by the matrix operation S (step S320), and outputs the image data GD after the image processing to the printer driver (step S33).
0), and return to the processing routine shown in FIG.

【0070】図12を参照して、画像データGDの出力
処理、すなわち、プリンタドライバ(印刷制御プログラ
ム)によって実行される印刷制御処理について説明す
る。CPU150は、印刷ジョブに含まれる画像データ
を取得し(ステップS400)、印刷のためのRGB−
CMYK色変換処理を実行する(ステップS410)。
なお、色変換処理に先立って、画像データGDの解像度
が印刷解像度よりも低い場合は、線形補間を行って隣接
画像データ間に新たなデータを生成し、逆に印刷解像度
よりも高い場合は、一定の割合でデータを間引くことに
よって、画像データの解像度を印刷解像度に変換する解
像度変換処理が実行されても良い。
Referring to FIG. 12, an output process of image data GD, that is, a print control process executed by a printer driver (print control program) will be described. The CPU 150 acquires the image data included in the print job (step S400), and outputs the RGB data for printing.
A CMYK color conversion process is executed (step S410).
Prior to the color conversion process, if the resolution of the image data GD is lower than the printing resolution, linear interpolation is performed to generate new data between adjacent image data. Conversely, if the resolution is higher than the printing resolution, A resolution conversion process for converting the resolution of the image data into the print resolution may be executed by thinning out the data at a fixed rate.

【0071】ここまでのコピー画像データGDに対する
画像処理の結果をオリジナル画像データGDに反映させ
る場合には、画像データの上書きを選択することにより
実現される。画像ファイルGFから画像データ生成時に
設定された色空間を取得できた場合であって、設定され
た色空間がsRGB色空間よりも広い色空間である場合
には、例えば、wRGB−CMYK色変換テーブルが用
いられ、画像処理制御タグを発見できない場合には、s
RGB−CMYK色変換テーブルが用いられる。CPU
150は、HDD152内に格納されている、wRGB
色空間をCMYK色空間に関連づける変換用ルックアッ
プテーブル(LUT)を参照し、画像データの色空間を
wRGB色空間からCMYK色空間へ変更する。すなわ
ち、R・G・Bの階調値からなる画像データをカラープ
リンタ20で使用する、例えば、C・M・Y・K・LC
・LMの各6色の階調値のデータに変換する。
When the result of the image processing on the copy image data GD up to this point is reflected on the original image data GD, it is realized by selecting overwriting of the image data. When the color space set at the time of generating the image data can be obtained from the image file GF, and the set color space is a color space wider than the sRGB color space, for example, a wRGB-CMYK color conversion table Is used and if the image processing control tag cannot be found, s
An RGB-CMYK color conversion table is used. CPU
150 is wRGB stored in the HDD 152
The color space of the image data is changed from the wRGB color space to the CMYK color space with reference to a conversion lookup table (LUT) that associates the color space with the CMYK color space. That is, image data consisting of R, G, B gradation values is used in the color printer 20, for example, C, M, Y, K, LC
・ Convert to gradation value data of each of the six colors of LM.

【0072】CPU150は、ハーフトーン処理を実行
し(ステップS420)、本処理ルーチンを終了する。
ハーフトーン処理では、色変換済みの画像データを受け
取って、階調数変換処理を行う。本実施例においては、
色変換後の画像データは各色毎に256階調幅を持つデ
ータとして表現されている。これに対し、本実施例のカ
ラープリンタ20では、「ドットを形成する」,「ドッ
トを形成しない」のいずれかの状態しか採り得ず、本実
施例のカラープリンタ20は局所的には2階調しか表現
し得ない。そこで、256階調を有する画像データを、
カラープリンタ20が表現可能な2階調で表現された画
像データに変換する。この2階調化(2値化)処理の代
表的な方法として、誤差拡散法と呼ばれる方法と組織的
ディザ法と呼ばれる方法とがある。CPU150は、ド
ットの形成有無を表す形式に変換された画像データを、
カラープリンタ20に転送すべき順序に並べ替えてるイ
ンターレス処理をも実行する。
CPU 150 executes a halftone process (step S420), and terminates this process routine.
In the halftone process, color-converted image data is received, and a tone number conversion process is performed. In this 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 “form dots” and “do not form dots”. Only the key can be expressed. Therefore, image data having 256 gradations is
The image data is converted into image data expressed by two gradations that can be expressed by the color printer 20. As a typical method of the binarization (binarization) processing, there is a method called an error diffusion method and a method called an organized dither method. The CPU 150 converts the image data converted into a format representing the presence or absence of dot formation into
An interlace process for rearranging the color printer 20 in the order to be transferred is also executed.

【0073】以上、説明したように本実施例におけるパ
ーソナルコンピュータPCによれば、画像データGDに
対する画像処理の前後を通して画像データの階調数、表
現色数を維持することができる。図9を参照して説明し
たように、一般的に、画像データGDの色空間を変換す
ると、変換後の画像データGDの色彩値の分布は不等間
隔になってしまい、変換先の色空間における階調間隔に
適合させる場合に(整数値化)、変換前の色空間では異
なっていた複数の色彩値が変換後の色空間では同一の色
彩値を取り、階調数が必ず減少してしまう。これに対し
て、本実施例に係るパーソナルコンピュータPCでは、
画像データGDに対する最初の画像処理であるマトリク
ス演算Sの実行時に、階調数(画像データサイズ)を8
ビットから18ビットに増加(有効数字の桁数を増加)
させて、変換前の色空間で異なっていた複数の色彩値が
変換後の色空間において同一の色彩値を取りにくくする
ことができる。また、階調数を256から262144
に増加させているので、いくつかの色彩値が同一の値を
取ったとしても、全体としては、256階調を維持する
ことができる。したがって、元の画像データGDの階調
数である256階調を維持することができると共に、1
677万色の表色数を維持することができる。
As described above, according to the personal computer PC in this embodiment, the number of gradations and the number of colors of image data can be maintained before and after image processing on the image data GD. As described with reference to FIG. 9, generally, when the color space of the image data GD is converted, the distribution of the color values of the converted image data GD is unevenly spaced, and the color space of the conversion destination is changed. In order to conform to the gradation interval in (integer value conversion), a plurality of color values that were different in the color space before conversion take the same color value in the color space after conversion, and the number of gradations always decreases. I will. On the other hand, in the personal computer PC according to the present embodiment,
When the matrix operation S, which is the first image processing for the image data GD, is executed, the number of gradations (image data size)
Increased from bits to 18 bits (increased number of significant digits)
Thus, it is possible to make it difficult for a plurality of color values different in the color space before conversion to obtain the same color value in the color space after conversion. Further, the number of gradations is changed from 256 to 262144.
Therefore, even if some color values take the same value, 256 gradations can be maintained as a whole. Therefore, 256 gradations, which is the number of gradations of the original image data GD, can be maintained and 1
6,770,000 colors can be maintained.

【0074】さらに、本実施例では、マトリクス演算S
によりYCbCr色空間(表色系)からRGB色空間
(表色系)へ色変換された画像データに含まれる負の色
彩値を維持し、変換後の画像データを、発生した負の色
彩値を色域内に含むwRGB色空間へマッピングする。
したがって負の色彩値により表され得る色(階調)の欠
落を防止し、色変換の前後において表色数の減少を防止
することができる。この様子を図13および図14を参
照して説明する。図13は、色空間変換の実行により発
生した負の色彩値が欠落することにより、階調数が減少
する様子を概念的に示す説明図である。図14は、本実
施例の作用効果により色空間変換の実行によっても、負
の色彩値により得られる階調数を維持することができる
様子を概念的に示す説明図である。
Further, in this embodiment, the matrix operation S
Maintain the negative color values included in the image data color-converted from the YCbCr color space (color system) to the RGB color space (color system), and convert the converted image data into the generated negative color values. Mapping to the wRGB color space included in the color gamut.
Therefore, it is possible to prevent a color (gradation) that can be represented by a negative color value from being lost, and to prevent a decrease in the number of colors before and after the color conversion. This will be described with reference to FIGS. FIG. 13 is an explanatory diagram conceptually showing a state in which the number of gradations is reduced due to the lack of a negative color value generated by executing the color space conversion. FIG. 14 is an explanatory diagram conceptually showing how the number of tones obtained by negative color values can be maintained even by performing color space conversion by the operation and effect of the present embodiment.

【0075】マトリクス演算Sにより得られたRGBデ
ータには負の色彩値が含まれることがある。従来は図1
3に示すように、マトリクスSを用いた変換後得られた
画像データは標準的なsRGB色空間にマッピングされ
ていた。sRGB色空間へのマッピングにあたっては、
sRGB色空間の色域外の色彩値、すなわち、負の色彩
値は、256以上の色彩値(8ビットデータの場合)
は、例えば、0,255の色彩値へとクリッピングする
処理が実行されていた。かかる場合には、階調数を増加
させたとしても、負の色彩値、256以上の色彩値は削
られてしまうため、負の色彩値、256以上の色彩値に
よって表されていた階調、色数を維持することはできな
かった。したがって、YCbCr色空間では6であった
階調数(表色数)がsRGB色空間では、マトリクス演
算および負の色彩値のクリッピングに伴い3に減少して
しまう。
The RGB data obtained by the matrix operation S may include a negative color value. Conventionally, Figure 1
As shown in FIG. 3, the image data obtained after conversion using the matrix S was mapped to a standard sRGB color space. When mapping to the sRGB color space,
A color value outside the color gamut of the sRGB color space, that is, a negative color value is a color value of 256 or more (in the case of 8-bit data)
For example, a process of clipping to a color value of 0,255 has been executed. In such a case, even if the number of gradations is increased, a negative color value, a color value of 256 or more is cut off, so that a negative color value, a gradation represented by a color value of 256 or more, The number of colors could not be maintained. Therefore, in the sRGB color space, the number of gradations (the number of colors), which was 6 in the YCbCr color space, is reduced to 3 in the sRGB color space due to the matrix operation and clipping of negative color values.

【0076】これに対して、本実施例では、マトリクス
Sを用いた変換後得られた画像データはsRGB色空間
よりも広い色域を有するwRGB色空間へとマッピング
される。したがって、図14に示すように、RGB色空
間では負となる色彩値が、sRGB色空間より広がった
色域によってwRGB色空間では正の色彩値となる。ま
た、階調数を増加させることによって、色域の拡張およ
びマトリクス演算に伴う階調落ち、表色数の減少を防止
することができる。この結果、YCbCr色空間では6
であった階調数(表色数)は、wRGB色空間でも維持
され、マトリクス演算Sの実行により予測される階調落
ち、表色数の減少をより効果的に防止することができ
る。
On the other hand, in the present embodiment, the image data obtained after conversion using the matrix S is mapped to a wRGB color space having a wider color gamut than the sRGB color space. Therefore, as shown in FIG. 14, a negative color value in the RGB color space becomes a positive color value in the wRGB color space due to a color gamut wider than the sRGB color space. Further, by increasing the number of gradations, it is possible to prevent gradation drop and decrease in the number of colors due to expansion of the color gamut and matrix operation. As a result, in the YCbCr color space, 6
Is maintained also in the wRGB color space, and it is possible to more effectively prevent a gradation drop and a decrease in the number of color specifications predicted by executing the matrix operation S.

【0077】F.その他の実施例:上記実施例では、パ
ーソナルコンピュータPCにおいて、カラープリンタ2
0およびモニタ14に対して出力する画像データGDの
画像処理を実行したが、全ての画像処理をカラープリン
タ20にて実行しても良い。かかる場合には、カラープ
リンタ20によって、画像データGDの画像処理、画像
処理が実行された画像データGDの印刷の全ての実現す
ることができる。カラープリンタ20によって画像処理
が実行される場合には、画像処理に利用することができ
るメモリリソースが限られているので、階調数の増減値
を変更しても良い。例えば、各成分について8ビット階
調の画像データGDに対してマトリクス演算Sを実行し
て18ビット階調とし、上位11ビットを用いてガンマ
補正処理を実行して18ビット階調とし、マトリクス演
算(N-1M)を実行して28ビット階調とし、上位12
ビットを用いて逆ガンマ補正処理を実行して8ビット階
調して自動画質調整処理を実行しても良い。かかる場合
であっても、画像処理の途中で元の画像データの階調数
に戻ることはないので、階調数は元の画像データが有す
る8ビットの階調は画像処理が施された後の画像データ
においても維持されることに変わりはない。
F. Other Embodiment: In the above embodiment, the color printer 2 is used in the personal computer PC.
Although the image processing of the image data GD output to the monitor 0 and the monitor 14 has been executed, all the image processing may be executed by the color printer 20. In such a case, the color printer 20 can realize both image processing of the image data GD and printing of the image data GD on which the image processing has been executed. When image processing is performed by the color printer 20, the memory resources that can be used for image processing are limited, so that the increase / decrease value of the number of gradations may be changed. For example, the matrix operation S is performed on the 8-bit grayscale image data GD for each component to obtain an 18-bit grayscale, and the gamma correction process is performed using the upper 11 bits to obtain the 18-bit grayscale. (N -1 M) to make a 28-bit gradation,
The automatic image quality adjustment processing may be executed by executing the inverse gamma correction processing using the bits and performing 8-bit gradation. Even in such a case, since the number of tones of the original image data does not return during the image processing, the number of tones is 8 bits in the original image data after the image processing is performed. Is maintained in the image data.

【0078】また、画像処理の全て、または、一部をネ
ットワークを介したサーバ上で実行するようにしても良
い。
Further, all or a part of the image processing may be executed on a server via a network.

【0079】以上、実施例に基づき本発明に係る画像処
理装置、画像処理方法、画像処理プログラム、画像出力
装置を説明してきたが、上記した発明の実施の形態は、
本発明の理解を容易にするためのものであり、本発明を
限定するものではない。本発明は、その趣旨並びに特許
請求の範囲を逸脱することなく、変更、改良され得ると
共に、本発明にはその等価物が含まれることはもちろん
である。
The image processing apparatus, the image processing method, the image processing program, and the image output apparatus according to the present invention have been described based on the embodiments.
This is for the purpose of facilitating the understanding of the present invention, and does not limit the present invention. 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.

【0080】上記実施例用いた階調数はあくまでも例示
に過ぎず、マトリクス演算Sを実行してから逆ガンマ補
正を実行するまで32ビット階調を保持しても良い。ま
た、パーソナルコンピュータPC等において利用可能な
データビット数が32ビットから64ビットに移行した
場合には、32ビット階調に代えて64ビット階調を用
いても良い。かかる場合には、画像処理時における階調
落ちをさらに効果的に防止することができる。いずれの
場合にも、元の画像データGDが有する8ビットの階調
を画像処理終了時まで維持することができればよい。
The number of gradations used in the above embodiment is merely an example, and a 32-bit gradation may be held after execution of the matrix operation S until execution of inverse gamma correction. When the number of data bits available in the personal computer PC shifts from 32 bits to 64 bits, a 64-bit gradation may be used instead of the 32-bit gradation. In such a case, gradation drop during image processing can be more effectively prevented. In any case, it is sufficient that the 8-bit gradation of the original image data GD can be maintained until the end of the image processing.

【0081】上記実施例では、マトリクス演算(N
-1M)を実行した後に、階調数を減少させているが、逆
ガンマ補正実行後、自動画質調整実行後に階調数を減少
させるようにしても良い。また、本明細書中における階
調数は例示に過ぎず、画像処理の前後を通して階調数が
維持されればどのような階調数を取ってもよい。
In the above embodiment, the matrix operation (N
Although the number of gradations is reduced after executing ( −1 M), the number of gradations may be reduced after performing the inverse gamma correction and then performing the automatic image quality adjustment. Further, the number of gradations in this specification is merely an example, and any number of gradations may be used as long as the number of gradations is maintained before and after image processing.

【0082】また、各数式におけるマトリックスS、N
-1Mの値は例示に過ぎず、ターゲットとする色空間、あ
るいは、カラープリンタ20において利用可能な色空間
等によって適宜変更され得ることはいうまでもない。
The matrices S, N in each equation
The value of −1 M is merely an example, and it goes without saying that the value can be changed as appropriate depending on the target color space, the color space available in the color printer 20, and the like.

【0083】上記実施例では、画像ファイル生成装置と
してディジタルスチルカメラ12を用いて説明したが、
この他にもスキャナ、ディジタルビデオカメラ等が用い
られ得る。
In the above embodiment, the digital still camera 12 has been described as the image file generating device.
In addition, a scanner, a digital video camera, or the like can be used.

【0084】上記実施例では、画像ファイルGFの具体
例としてExif形式のファイルを例にとって説明したが、
本発明に係る画像ファイルの形式はこれに限られない。
すなわち、画像データ生成装置において生成された画像
データと、画像データの生成時条件(情報)を記述する
画像処理制御情報GCとが含まれている画像ファイルで
あれば良い。このようなファイルであれば、画像ファイ
ル生成装置において生成された画像データの画質を、適
切に自動調整して出力装置から出力することができる。
In the above embodiment, an Exif format file has been described as a specific example of the image file GF.
The format of the image file according to the present invention is not limited to this.
That is, any image file containing image data generated by the image data generation device and image processing control information GC describing conditions (information) at the time of generation of the image data may be used. With such a file, the image quality of the image data generated by the image file generation device can be automatically adjusted appropriately and output from the output device.

【0085】上記実施例では、画像データGDと画像処
理制御情報GCとが同一の画像ファイルGFに含まれる
場合を例にとって説明したが、画像データGDと画像処
理制御情報GCとは、必ずしも同一のファイル内に格納
される必要はない。すなわち、画像データGDと画像処
理制御情報GCとが関連付けられていれば良く、例え
ば、画像データGDと画像処理制御情報GCとを関連付
ける関連付けデータを生成し、1または複数の画像デー
タと画像処理制御情報GCとをそれぞれ独立したファイ
ルに格納し、画像データGDを処理する際に関連付けら
れた画像処理制御情報GCを参照しても良い。かかる場
合には、画像データと画像処理制御情報GCとが別ファ
イルに格納されているものの、画像処理制御情報GCを
利用する画像処理の時点では、画像データおよび画像処
理制御情報GCとが一体不可分の関係にあり、実質的に
同一のファイルに格納されている場合と同様に機能する
からである。すなわち、少なくとも画像処理の時点にお
いて、画像データと画像処理制御情報GCとが関連付け
られて用いられる態様は、本実施例における画像ファイ
ルGFに含まれる。さらに、CD−ROM、CD−R、
DVD−ROM、DVD−RAM等の光ディスクメディ
アに格納されている動画像ファイルも含まれる。
In the above embodiment, the case where the image data GD and the image processing control information GC are included in the same image file GF has been described as an example. However, the image data GD and the image processing control information GC are not necessarily the same. It does not need to be stored in the file. That is, it is sufficient that the image data GD and the image processing control information GC are associated with each other. For example, association data that associates the image data GD with the image processing control information GC is generated, and one or a plurality of image data and the image processing control are generated. The information GC may be stored in independent files, and the associated image processing control information GC may be referenced when processing the image data GD. In such a case, although the image data and the image processing control information GC are stored in separate files, at the time of the image processing using the image processing control information GC, the image data and the image processing control information GC cannot be integrated. And the function is substantially the same as that in the case of being stored in the same file. That is, the mode in which the image data and the image processing control information GC 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, CD-ROM, CD-R,
Moving image files stored on optical disk media such as DVD-ROM and DVD-RAM are also included.

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

【図1】本実施例に係る画像処理装置を適用可能な画像
処理システムの一例を示す説明図である。
FIG. 1 is an explanatory diagram illustrating an example of an image processing system to which an image processing apparatus according to an embodiment can be applied.

【図2】本実施例に係る画像処理装置が処理する画像フ
ァイル(画像データ)を生成可能なディジタルスチルカ
メラの概略構成を示すブロック図である。
FIG. 2 is a block diagram illustrating a schematic configuration of a digital still camera capable of generating an image file (image data) to be processed by the image processing apparatus according to the embodiment.

【図3】本実施例において用いられ得るExifファイル形
式にて格納されている画像ファイルの概略的な内部構造
を示す説明図である。
FIG. 3 is an explanatory diagram showing a schematic internal structure of an image file stored in an Exif file format that can be used in the present embodiment.

【図4】本実施例におけるカラープリンタ20の概略構
成を示すブロック図である。
FIG. 4 is a block diagram illustrating a schematic configuration of a color printer 20 according to the present embodiment.

【図5】本実施例に係るカラープリンタ20の制御回路
30の内部構成を示す説明図である。
FIG. 5 is an explanatory diagram illustrating an internal configuration of a control circuit 30 of the color printer 20 according to the embodiment.

【図6】本実施例に係るパーソナルコンピュータPCに
おいて実行される画像処理の処理ルーチンを示すフロー
チャートである。
FIG. 6 is a flowchart illustrating a processing routine of image processing executed in the personal computer PC according to the present embodiment.

【図7】パーソナルコンピュータPCにて実行される画
像処理制御情報GCに基づく画像処理の処理ルーチンを
示すフローチャートである。
FIG. 7 is a flowchart showing a processing routine of image processing based on image processing control information GC executed by a personal computer PC.

【図8】本実施例に従う画像処理と階調数との関係を示
す説明図である。
FIG. 8 is an explanatory diagram showing a relationship between image processing and the number of gradations according to the embodiment.

【図9】色空間変換の実行により、階調数が減少する様
子を概念的に示す説明図である。
FIG. 9 is an explanatory diagram conceptually showing a state in which the number of gradations is reduced by executing color space conversion.

【図10】本実施例の作用効果により色空間変換の実行
によっても、階調数を維持することができる様子を概念
的に示す説明図である。
FIG. 10 is an explanatory diagram conceptually showing a state in which the number of gradations can be maintained even by executing color space conversion by the operation and effect of the present embodiment.

【図11】パーソナルコンピュータPCにて実行される
通常画像処理の処理ルーチンを示すフローチャートであ
る。
FIG. 11 is a flowchart illustrating a processing routine of normal image processing executed by the personal computer PC.

【図12】パーソナルコンピュータPCにて実行される
画像データ出力処理の処理ルーチンを示すフローチャー
トである。
FIG. 12 is a flowchart showing a processing routine of image data output processing executed by the personal computer PC.

【図13】色空間変換の実行により発生した負の色彩値
が欠落することにより、階調数が減少する様子を概念的
に示す説明図である。
FIG. 13 is an explanatory diagram conceptually illustrating a state in which the number of gradations is reduced due to a lack of a negative color value generated by performing color space conversion.

【図14】本実施例の作用効果により色空間変換の実行
によっても、負の色彩値により得られる階調数を維持す
ることができる様子を概念的に示す説明図である。
FIG. 14 is an explanatory diagram conceptually showing a state in which the number of tones obtained by negative color values can be maintained even by executing color space conversion by the operation and effect of the present embodiment.

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

10…画像処理システム 12…ディジタルスチルカメラ 121…光学回路 122…画像取得回路 123…画像処理回路 124…制御回路 126…選択・決定ボタン 127…液晶ディスプレイ 14…ディスプレイ 150…CPU 151…RAM 152…HDD 153…カードスロット 154…入出力端子 20…カラープリンタ 21…操作パネル 30…キャリッジ 31…キャリッジモータ 32…プラテン 33…紙送りモータ 34…摺動軸 35…駆動ベルト 36…プーリ 37…エンコーダ IH1、IH2、IH3、IH4…印字ヘッド INC1…インクカートリッジ INC2…インクカートリッジ 50…制御回路 51…演算処理装置(CPU) 52…プログラマブルリードオンリメモリ(PROM) 53…ランダムアクセスメモリ(RAM) 54…タイマ 55…周辺機器入出力部(PIO) 56…駆動バッファ 57…バス 58…発振器 59…分配出力器 GF…画像ファイル(Exifファイル) GD…画像データ 111…JPEG画像データ格納領域 112…付属情報格納領域 MC…メモリカード PC…パーソナルコンピュータ DESCRIPTION OF SYMBOLS 10 ... Image processing system 12 ... Digital still camera 121 ... Optical circuit 122 ... Image acquisition circuit 123 ... Image processing circuit 124 ... Control circuit 126 ... Selection / decision button 127 ... Liquid crystal display 14 ... Display 150 ... CPU 151 ... RAM 152 ... HDD 153 Card slot 154 Input / output terminal 20 Color printer 21 Operation panel 30 Carriage 31 Carriage motor 32 Platen 33 Paper feed motor 34 Sliding shaft 35 Drive belt 36 Pulley 37 Encoder IH1, IH2 , IH3, IH4 ... print head INC1 ... ink cartridge INC2 ... ink cartridge 50 ... control circuit 51 ... arithmetic processing unit (CPU) 52 ... programmable read only memory (PROM) 53 ... random access memory Re (RAM) 54 ... Timer 55 ... Peripheral device input / output unit (PIO) 56 ... Drive buffer 57 ... Bus 58 ... Oscillator 59 ... Distribution output device GF ... Image file (Exif file) GD ... Image data 111 ... JPEG image data storage Area 112: Auxiliary information storage area MC: Memory card PC: Personal computer

───────────────────────────────────────────────────── フロントページの続き (72)発明者 中見 至宏 長野県諏訪市大和三丁目3番5号 セイコ ーエプソン株式会社内 Fターム(参考) 5B057 CA01 CA08 CB01 CB08 CE11 CE17 CE18 CH01 CH11 5C077 MP08 PP15 PP32 PP33 PP34 PP37 PQ12 PQ22 RR06 TT09 5C079 HB01 HB03 HB04 HB12 LA12 LA33 LB02 MA01 MA11 NA03 NA05  ────────────────────────────────────────────────── ─── Continued on the front page (72) Inventor Toshihiro Nakami 3-5-5 Yamato, Suwa City, Nagano Prefecture Seiko Epson Corporation F-term (reference) 5B057 CA01 CA08 CB01 CB08 CE11 CE17 CE18 CH01 CH11 5C077 MP08 PP15 PP32 PP33 PP34 PP37 PQ12 PQ22 RR06 TT09 5C079 HB01 HB03 HB04 HB12 LA12 LA33 LB02 MA01 MA11 NA03 NA05

Claims (28)

【特許請求の範囲】[Claims] 【請求項1】 画像データに対して画像処理を実行する
画像処理装置であって、 第1の色座標系における表色系であって、第1の色数を
表色可能な第1の表色系の画像データを、第2の色座標
系における表色系であって、前記第1の色数よりも多い
第2の色数を表色可能な第2の表色系の画像データへ、
前記第1の色数を保持しつつマトリクス演算により変換
する色変換手段と、 前記第2の表色系において前記変換された画像データに
対して画像処理を実行する画像処理手段と、 前記画像処理が施された画像データの表色数を低減させ
る表色数低減手段とを備える画像処理装置。
1. An image processing apparatus for performing image processing on image data, comprising: a first color coordinate system in a first color coordinate system, wherein a first table capable of expressing a first number of colors is provided. The image data of the color system is converted into image data of a second color system which is a color system in a second color coordinate system and is capable of expressing a second color number larger than the first color number. ,
A color conversion unit that performs conversion by a matrix operation while maintaining the first number of colors; an image processing unit that performs image processing on the converted image data in the second color system; An image processing apparatus comprising: a color number reduction unit configured to reduce a color number of image data to which color image processing is applied.
【請求項2】 請求項1に記載の画像処理装置におい
て、 前記画像処理手段により実行される画像処理には、ガン
マ補正処理が含まれる画像処理装置。
2. The image processing apparatus according to claim 1, wherein the image processing performed by the image processing unit includes a gamma correction process.
【請求項3】 請求項2に記載の画像処理装置におい
て、 前記第1の表色系はYCC表色系であり、 前記第2の表色系はsRGB表色系である画像処理装
置。
3. The image processing apparatus according to claim 2, wherein the first color system is a YCC color system, and the second color system is an sRGB color system.
【請求項4】 請求項1に記載の画像処理装置におい
て、 前記第2の表色系の第2の色数には、前記色変換手段に
よって前記第1の表色系から前記第2の表色系に変換さ
れた画像データに含まれている負値によって表現される
色数が含まれる画像処理装置。
4. The image processing apparatus according to claim 1, wherein the second color number of the second color system is changed from the first color system to the second color number by the color conversion unit. An image processing apparatus including the number of colors represented by negative values included in image data converted into a color system.
【請求項5】 請求項4に記載の画像処理装置におい
て、 前記画像処理手段により実行される画像処理には、ガン
マ補正処理が含まれる画像処理装置。
5. The image processing apparatus according to claim 4, wherein the image processing performed by said image processing means includes a gamma correction process.
【請求項6】 請求項4または請求項5に記載の画像処
理装置において、 前記画像処理手段により実行される画像処理には、第2
のマトリクス演算を用いた色変換処理が含まれる画像処
理装置。
6. The image processing apparatus according to claim 4, wherein the image processing executed by the image processing means includes
An image processing apparatus including a color conversion process using a matrix operation.
【請求項7】 請求項4に記載の画像処理装置におい
て、 前記第1の表色系はYCC表色系であり、 前記第2の表色系はsRGB表色系よりも広い表色域を
有するwRGB表色系である画像処理装置。
7. The image processing apparatus according to claim 4, wherein the first color system is a YCC color system, and the second color system is a color gamut wider than an sRGB color system. An image processing apparatus having a wRGB color system.
【請求項8】 画像データに対して画像処理を実行する
画像処理装置であって、 第1の有効数字を有する整数値で表される前記画像デー
タの色彩値を、前記第1の有効数字の桁数よりも多い桁
数を有する第1の値に変更する第1の画像処理手段と、 前記第1の画像処理手段による色彩値の変更に伴う前記
画像データの階調数の減少を防止する階調数減少防止手
段と、 前記第1の値を有する画像データの色彩値を前記第1の
値から、画像出力結果に反映される第2の値に変更する
第2の画像処理手段とを備える画像処理装置。
8. An image processing apparatus for performing image processing on image data, wherein a color value of the image data represented by an integer having a first significant figure is converted to a color value of the first significant figure. First image processing means for changing to a first value having a number of digits greater than the number of digits, and preventing a decrease in the number of gradations of the image data due to a change in color value by the first image processing means. Means for preventing a decrease in the number of gradations, and second image processing means for changing a color value of the image data having the first value from the first value to a second value reflected in an image output result. Image processing device provided.
【請求項9】 請求項8に記載の画像処理装置におい
て、 前記階調数減少防止手段は、前記第1の有効数字の桁数
よりも多い桁数まで前記第1の値の有効数字を設定する
ことにより、前記画像データの階調数の減少を防止する
ことを特徴とする画像処理装置。
9. The image processing apparatus according to claim 8, wherein the gradation number reduction preventing unit sets the significant digit of the first value to a digit number greater than the digit number of the first significant digit. An image processing apparatus for preventing a decrease in the number of gradations of the image data.
【請求項10】 請求項9に記載の画像処理装置におい
て、 前記階調数減少防止手段によって階調数の減少が防止さ
れた画像データのデータサイズは、前記第1の有効数字
を有する整数値で表される画像データのデータサイズよ
りも大きいことを特徴とする画像処理装置。
10. The image processing apparatus according to claim 9, wherein the data size of the image data whose gradation number is prevented from being reduced by the gradation number reduction preventing means is an integer having the first significant figure. An image processing apparatus characterized by being larger than the data size of the image data represented by:
【請求項11】 請求項8ないし請求項10のいずれか
に記載の画像処理装置において、 前記第1の画像処理手段は、前記画像データの色空間を
第1の色空間から第2の色空間に変換する色空間変換手
段であることを特徴とする画像処理装置。
11. The image processing apparatus according to claim 8, wherein said first image processing means changes a color space of said image data from a first color space to a second color space. An image processing apparatus characterized in that the image processing apparatus is a color space conversion unit that converts the image into a color space.
【請求項12】 請求項11に記載の画像処理装置にお
いて、 前記色空間変換手段は、前記画像データの色空間をYC
bCr色空間からRGB色空間へ変換し、前記第1の有
効数字を有する整数値で表される前記画像データの色彩
値を、小数点を含む前記第1の値に変更することを特徴
とする画像処理装置。
12. The image processing apparatus according to claim 11, wherein the color space conversion unit converts the color space of the image data into YC
An image which is converted from a bCr color space to an RGB color space, and changes a color value of the image data represented by an integer having the first significant figure to the first value including a decimal point. Processing equipment.
【請求項13】 画像データに対して画像処理を実行す
る画像処理装置であって、 前記画像データの階調数を第1の階調数から第2の階調
数に増加させると共に、画像データの色空間をYCbC
r色空間からRGB色空間に変換する第1の色空間変換
手段と、 前記色空間が変換された画像データに対してガンマ補正
処理を実行するガンマ補正手段と、 前記ガンマ補正処理が実行された画像データの色空間を
前記RGB色空間からsRGB色空間よりも広い定義領
域を有するwRGB色空間に変換する第2の色空間変換
手段と、 前記色空間が変換された画像データの階調数を前記第2
の階調数から前記第1の階調数に戻す階調数低減手段と
を備える画像処理装置。
13. An image processing apparatus for performing image processing on image data, comprising: increasing the number of tones of the image data from a first number of tones to a second number of tones; Color space of YCbC
a first color space conversion unit for converting an r color space to an RGB color space, a gamma correction unit for performing a gamma correction process on the image data obtained by converting the color space, and the gamma correction process is performed. A second color space conversion means for converting the color space of the image data from the RGB color space to a wRGB color space having a defined area wider than the sRGB color space; The second
An image processing apparatus comprising: a number-of-tones reduction unit that returns the number of levels from the number of levels to the first number of levels.
【請求項14】 請求項13に記載の画像処理装置はさ
らに、 前記色空間が変換された画像データに対して逆ガンマ補
正処理を実行する逆ガンマ補正手段を備え、 前記階調数低減手段は、前記色空間が変換された画像デ
ータに代えて、前記逆ガンマ補正が実行がされた画像デ
ータの階調数を前記第2の階調数から第1の階調数に戻
すことを特徴とする画像処理装置。
14. The image processing apparatus according to claim 13, further comprising: an inverse gamma correction unit configured to execute an inverse gamma correction process on the image data whose color space has been converted; Returning the gradation number of the image data on which the inverse gamma correction has been executed from the second gradation number to the first gradation number instead of the image data in which the color space is converted. Image processing device.
【請求項15】 請求項14に記載の画像処理装置はさ
らに、 前記逆ガンマ補正が実行された画像データの画質を補正
する画像補正手段を備え、 前記階調数低減手段は、前記逆ガンマ補正が実行がされ
た画像データに代えて、前記画質が補正された画像デー
タの階調数を前記第2の階調数から第1の階調数に戻す
ことを特徴とする画像処理装置。
15. The image processing apparatus according to claim 14, further comprising: an image correction unit configured to correct an image quality of the image data on which the inverse gamma correction has been performed; An image processing apparatus for returning the number of tones of the image data whose image quality has been corrected from the second number of tones to the first number of tones in place of the image data on which the image processing has been performed.
【請求項16】 画像処理の施された画像データを出力
する出力装置であって、 請求項1、請求項8および請求項13のいずれかに記載
の画像処理装置と、 前記画像処理装置によって画像処理の施された画像デー
タを出力する出力手段とを備える出力装置。
16. An output device for outputting image data on which image processing has been performed, wherein the image processing device according to any one of claims 1, 8, and 13; An output unit that outputs the processed image data.
【請求項17】 画像データに対して画像処理を実行す
るための画像処理プログラムであって、 第1の色座標系における表色系であって、第1の色数を
表色可能な第1の表色系の画像データを、第2の色座標
系における表色系であって、前記第1の色数よりも多い
第2の色数を表色可能な第2の表色系の画像データへ、
前記第1の色数を保持しつつマトリクス演算により変換
する機能と、 前記第2の表色系において前記変換された画像データに
対して画像処理を実行する機能と、 前記画像処理が施された画像データの表色数を低減させ
る機能とをコンピュータによって実現させる画像処理プ
ログラム。
17. An image processing program for performing image processing on image data, wherein the first color coordinate system is a color system and the first color number is a first color number. The image data of the color system of the second color coordinate system in the second color coordinate system, the image of the second color system capable of representing a second color number greater than the first color number To the data,
A function of performing conversion by a matrix operation while maintaining the first number of colors; a function of performing image processing on the converted image data in the second color system; and the image processing is performed. An image processing program for realizing, by a computer, a function of reducing the number of colors of image data.
【請求項18】 請求項17に記載の画像処理プログラ
ムにおいて、 前記第2の表色系の第2の色数には、前記色変換手段に
よって前記第1の表色系から前記第2の表色系に変換さ
れた画像データに含まれている負値によって表現される
色数が含まれる画像処理プログラム。
18. The image processing program according to claim 17, wherein the second color number of the second color system is changed from the first color system to the second color number by the color conversion means. An image processing program including the number of colors represented by negative values included in image data converted into a color system.
【請求項19】 請求項18に記載の画像処理プログラ
ムにおいて、 前記画像処理を実行する機能は、ガンマ補正処理および
第2のマトリクス演算を用いた色変換処理の少なくとも
一方を実行する機能である画像処理プログラム。
19. The image processing program according to claim 18, wherein the function of executing the image processing is a function of executing at least one of a gamma correction process and a color conversion process using a second matrix operation. Processing program.
【請求項20】 請求項18に記載の画像プログラムに
おいて、 前記第1の表色系はYCC表色系であり、 前記第2の表色系はsRGB表色系よりも広い表色域を
有するwRGB表色系である画像処理プログラム。
20. The image program according to claim 18, wherein the first color system is a YCC color system, and the second color system has a wider color gamut than an sRGB color system. An image processing program that is a wRGB color system.
【請求項21】 画像データに対して画像処理を実行す
るための画像処理プログラムであって、 第1の有効数字を有する整数値で表される前記画像デー
タの色彩値を、前記第1の有効数字の桁数よりも多い桁
数を有する第1の値に変更する第1の画像処理機能と、 前記第1の画像処理手段による色彩値の変更に伴う前記
画像データの階調数の減少を防止する機能と、 前記第1の値を有する画像データの色彩値を前記第1の
値から、画像出力結果に反映される第2の値に変更する
第2の画像処理機能とをコンピュータによって実現させ
る画像処理プログラム。
21. An image processing program for performing image processing on image data, comprising: converting a color value of the image data represented by an integer having a first significant figure into the first validity value. A first image processing function of changing to a first value having a number of digits greater than the number of digits, and a reduction in the number of gradations of the image data due to a change in color value by the first image processing means. And a second image processing function of changing a color value of the image data having the first value from the first value to a second value reflected in an image output result by a computer. An image processing program to be executed.
【請求項22】 請求項21に記載の画像処理プログラ
ムにおいて、 前記階調数減少の防止は、前記第1の有効数字の桁数よ
りも多い桁数まで前記第1の値の有効数字を設定するこ
とにより実現されることを特徴とする画像処理プログラ
ム。
22. The image processing program according to claim 21, wherein the prevention of the decrease in the number of gradations sets the significant digit of the first value to a digit number greater than the digit number of the first significant digit. An image processing program characterized by being realized by performing
【請求項23】 請求項22に記載の画像処理プログラ
ムにおいて、 前記階調数の減少が防止された画像データのデータサイ
ズは、前記第1の有効数字を有する整数値で表される画
像データのデータサイズよりも大きいことを特徴とする
画像処理プログラム。
23. The image processing program according to claim 22, wherein the data size of the image data in which the reduction in the number of gradations is prevented is the data size of the image data represented by an integer having the first significant figure. An image processing program characterized by being larger than a data size.
【請求項24】 請求項22または請求項23に記載の
画像処理プログラムにおいて、 前記第1の画像処理機能は、前記画像データの色空間を
第1の色空間から第2の色空間に変換する色空間変換機
能をコンピュータによって実現させることを特徴とする
画像処理プログラム。
24. The image processing program according to claim 22, wherein the first image processing function converts a color space of the image data from a first color space to a second color space. An image processing program for realizing a color space conversion function by a computer.
【請求項25】 請求項24に記載の画像処理プログラ
ムにおいて、 前記色空間変換機能は、前記画像データの色空間をYC
bCr色空間からRGB色空間へ変換し、前記第1の有
効数字を有する整数値で表される前記画像データの色彩
値を、小数点を含む前記第1の値に変更することを特徴
とする画像処理プログラム。
25. The image processing program according to claim 24, wherein the color space conversion function converts a color space of the image data into YC.
An image which is converted from a bCr color space to an RGB color space, and changes a color value of the image data represented by an integer having the first significant figure to the first value including a decimal point. Processing program.
【請求項26】 画像データに対して画像処理を実行す
るための画像処理プログラムであって、 前記画像データの階調数を第1の階調数から第2の階調
数に増加させると共に、画像データの色空間をYCbC
r色空間からsRGB色空間に変換する第1の色空間変
換機能と、 前記色空間が変換された画像データに対してガンマ補正
処理を実行するガンマ補正機能と、 前記ガンマ補正処理が実行された画像データの色空間を
sRGB色空間からsRGB色空間よりも広い定義領域
を有するwRGB色空間に変換する第2の色空間変換機
能と、 前記色空間が変換された画像データの階調数を前記第2
の階調数から前記第1の階調数に戻す階調数低減機能と
をコンピュータによって実現させる画像処理プログラ
ム。
26. An image processing program for performing image processing on image data, comprising: increasing the number of tones of the image data from a first number of tones to a second number of tones; Color space of image data is YCbC
a first color space conversion function for converting from the r color space to the sRGB color space, a gamma correction function for performing gamma correction processing on the image data whose color space has been converted, and the gamma correction processing has been performed. A second color space conversion function for converting the color space of the image data from the sRGB color space to a wRGB color space having a definition area wider than the sRGB color space; Second
An image processing program for causing a computer to realize a function of reducing the number of gradations from the number of gradations to the first number of gradations.
【請求項27】 請求項26に記載の画像処理プログラ
ムはさらに、 前記色空間が変換された画像データに対して逆ガンマ補
正処理を実行する逆ガンマ補正機能をコンピュータによ
って実現させ、 前記階調数低減機能は、前記色空間が変換された画像デ
ータに代えて、前記逆ガンマ補正が実行がされた画像デ
ータの階調数を前記第2の階調数から第1の階調数に戻
す機能であることを特徴とする画像処理プログラム。
27. The image processing program according to claim 26, further comprising: causing a computer to implement an inverse gamma correction function of performing an inverse gamma correction process on the image data whose color space has been converted; The reduction function is a function of returning the number of tones of the image data on which the inverse gamma correction has been executed from the second number of tones to the first number of tones in place of the image data whose color space has been converted. An image processing program, characterized in that:
【請求項28】 請求項27に記載の画像処理プログラ
ムはさらに、 前記逆ガンマ補正が実行された画像データの画質を自動
的に補正する画像補正機能をコンピュータによって実現
させ、 前記階調数低減機能は、前記逆ガンマ補正が実行がされ
た画像データに代えて、前記画質が補正された画像デー
タの階調数を前記第2の階調数から第1の階調数に戻す
機能であることを特徴とする画像処理プログラム。
28. The image processing program according to claim 27, further comprising: causing a computer to realize an image correction function of automatically correcting the image quality of the image data on which the inverse gamma correction has been performed; Is a function of returning the number of gradations of the image data whose image quality has been corrected from the second number of gradations to the first number of gradations in place of the image data on which the inverse gamma correction has been executed. An image processing program characterized by the following.
JP2002070128A 2001-03-15 2002-03-14 Image processing device Expired - Fee Related JP4295465B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002070128A JP4295465B2 (en) 2001-03-15 2002-03-14 Image processing device

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2001074553 2001-03-15
JP2001-74553 2001-03-15
JP2002070128A JP4295465B2 (en) 2001-03-15 2002-03-14 Image processing device

Publications (3)

Publication Number Publication Date
JP2002344763A true JP2002344763A (en) 2002-11-29
JP2002344763A5 JP2002344763A5 (en) 2005-06-23
JP4295465B2 JP4295465B2 (en) 2009-07-15

Family

ID=26611355

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002070128A Expired - Fee Related JP4295465B2 (en) 2001-03-15 2002-03-14 Image processing device

Country Status (1)

Country Link
JP (1) JP4295465B2 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6822758B1 (en) * 1998-07-01 2004-11-23 Canon Kabushiki Kaisha Image processing method, system and computer program to improve an image sensed by an image sensing apparatus and processed according to a conversion process
JP2005295545A (en) * 2004-04-02 2005-10-20 Xerox Corp Color device profile having buffered lookup table
JP2007005903A (en) * 2005-06-21 2007-01-11 Ichikawa Soft Laboratory:Kk Image processing apparatus and image processing method
JP2007059969A (en) * 2005-08-22 2007-03-08 Fuji Xerox Co Ltd Unit and method for processing image, image-forming device, and program
US7619774B2 (en) 2005-12-28 2009-11-17 Canon Kabushiki Kaisha Image data transfer from application to printer driver process sections and processing for selected kind of printing
CN114244969A (en) * 2021-12-21 2022-03-25 上海集成电路装备材料产业创新中心有限公司 Image brightness correction method and hardware system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6822758B1 (en) * 1998-07-01 2004-11-23 Canon Kabushiki Kaisha Image processing method, system and computer program to improve an image sensed by an image sensing apparatus and processed according to a conversion process
JP2005295545A (en) * 2004-04-02 2005-10-20 Xerox Corp Color device profile having buffered lookup table
JP2007005903A (en) * 2005-06-21 2007-01-11 Ichikawa Soft Laboratory:Kk Image processing apparatus and image processing method
JP2007059969A (en) * 2005-08-22 2007-03-08 Fuji Xerox Co Ltd Unit and method for processing image, image-forming device, and program
JP4560730B2 (en) * 2005-08-22 2010-10-13 富士ゼロックス株式会社 Image processing apparatus, image forming apparatus, image processing method, and program
US7619774B2 (en) 2005-12-28 2009-11-17 Canon Kabushiki Kaisha Image data transfer from application to printer driver process sections and processing for selected kind of printing
CN114244969A (en) * 2021-12-21 2022-03-25 上海集成电路装备材料产业创新中心有限公司 Image brightness correction method and hardware system
CN114244969B (en) * 2021-12-21 2024-03-15 上海集成电路装备材料产业创新中心有限公司 Image brightness correction method and hardware system

Also Published As

Publication number Publication date
JP4295465B2 (en) 2009-07-15

Similar Documents

Publication Publication Date Title
JP5594382B2 (en) Output image adjustment for image files
US7656544B2 (en) Device for carrying out image processing using image data and image processing control information
JP3991606B2 (en) Color space conversion device and color space conversion method
EP1187069A2 (en) Apparatus, method, signal and computer program product configured to product output image adjustment for image files
US20110150360A1 (en) Adjustment for output image of image data
WO2002065756A1 (en) Apparatus and method for adjusting output image from image data
US20020196346A1 (en) Image processing apparatus
US7068818B2 (en) Control for printing and image processing
JP2003163813A (en) Output image adjustment of image data
US7253923B2 (en) Image processing apparatus
JP4010306B2 (en) Output image adjustment for image files
JP4295465B2 (en) Image processing device
JP3912369B2 (en) Image processing using information associated with image data
JP4205320B2 (en) Output image adjustment for image files
US7619774B2 (en) Image data transfer from application to printer driver process sections and processing for selected kind of printing
US20080094648A1 (en) Raw data processing apparatus and raw data processing method
JP4175004B2 (en) Image processing device
JP3666439B2 (en) Output image adjustment for image files
JP4085661B2 (en) Print control program and image processing program
JP4092882B2 (en) Image processing apparatus and image processing method
JP2002314834A (en) Output image adjustment of image data
JP4636001B2 (en) Output image adjustment for image files
JP4595965B2 (en) Output image adjustment for image files
JP2003132345A (en) Image processor and image processing method
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: 20040928

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040928

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20061207

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070109

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070309

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070626

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070821

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20071030

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20071219

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20080115

A912 Removal of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A912

Effective date: 20080404

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090410

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

Free format text: PAYMENT UNTIL: 20120417

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20120417

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130417

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130417

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20140417

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees