JP2008148163A - Color processing apparatus and method thereof - Google Patents

Color processing apparatus and method thereof Download PDF

Info

Publication number
JP2008148163A
JP2008148163A JP2006335075A JP2006335075A JP2008148163A JP 2008148163 A JP2008148163 A JP 2008148163A JP 2006335075 A JP2006335075 A JP 2006335075A JP 2006335075 A JP2006335075 A JP 2006335075A JP 2008148163 A JP2008148163 A JP 2008148163A
Authority
JP
Japan
Prior art keywords
color
image
image data
color processing
feature amount
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2006335075A
Other languages
Japanese (ja)
Inventor
Toshiyuki Ishii
利幸 石井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2006335075A priority Critical patent/JP2008148163A/en
Publication of JP2008148163A publication Critical patent/JP2008148163A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To obtain unified color reproduction between a plurality of similar images. <P>SOLUTION: An image processing apparatus performs color processing for converting image data represented in a first color gamut into image data of a second color gamut different from the first color gamut. In that case, an image input unit 106 registers a plurality of image data items in an image database 112 by categories. An image feature amount calculation unit 107 calculates an image feature amount of image data, for each category, registered in the image database 112. In response to a user instruction based on the image feature amount, a mapping method selection unit 108 sets color processing to be applied to the image data by categories. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、第一の色域で表される画像データを、第一の色域とは異なる第二の色域の画像データに変換する色処理に関する。   The present invention relates to color processing for converting image data represented by a first color gamut into image data of a second color gamut different from the first color gamut.

一つのカラー画像を複数の画像入出力装置において良好に再現するための色管理技術としてカラーマネジメントシステム(Color Management System: CMS)が知られている。CMSは、デバイスに依存する色空間の色からデバイスに依存しない色空間の色への色変換を規定するソースプロファイル(所定の変換式または変換テーブル)を用いる。さらに、デバイスに依存しない色空間の色からデバイスに依存する色空間の色への色変換を規定するデスティネーションプロファイルを用いる。これら二つの色変換によりカラーマネージメントを実現する。なお、デバイスに依存しない色空間には、例えばCIELabやCIEJCh空間などを利用する。   A color management system (Color Management System: CMS) is known as a color management technique for satisfactorily reproducing one color image in a plurality of image input / output devices. The CMS uses a source profile (predetermined conversion formula or conversion table) that defines color conversion from a color in a device-dependent color space to a color in a device-independent color space. Further, a destination profile that defines color conversion from a color in a device-independent color space to a color in a device-dependent color space is used. Color management is realized by these two color conversions. For example, CIELab or CIEJCh space is used as a device-independent color space.

しかし、出力系の色域(以下、出力色域と呼ぶ)が入力系の色域(以下、入力色域と呼ぶ)より狭い場合、入力系の色情報を正確に再現することが不可能な場合が存在する。例えば、色域が広いモニタ上の画像を、色域が狭いプリンタで出力する場合、プリンタの色域外の色をそのまま再現することはできない。このような場合、元の画像情報(階調性や色合いなど)をなるべく保ちつつ、色域外の色を色域内の色で良好に再現する色処理が必要になる。これを実現する技術として色域マッピングがある。   However, when the output color gamut (hereinafter referred to as the output color gamut) is narrower than the input color gamut (hereinafter referred to as the input color gamut), it is impossible to accurately reproduce the input color information. There are cases. For example, when an image on a monitor with a wide color gamut is output by a printer with a narrow color gamut, colors outside the color gamut of the printer cannot be reproduced as they are. In such a case, it is necessary to perform color processing that satisfactorily reproduces the color outside the color gamut with the color within the color gamut while maintaining the original image information (gradation, hue, etc.) as much as possible. There is color gamut mapping as a technique for realizing this.

色域マッピングは様々な方法が提案されている。図1A〜1Dは色相を固定して、明度と彩度の二次元平面上で色域マッピングを行う代表的な処理を示す図である。図1Aは明度を固定して、彩度を圧縮する色域マッピング方法を示す。図1Bは彩度を一定にして、明度を圧縮する色域マッピング方法を示す。図1Cは明度と彩度のマッピング前後の変化量を最小にするマッピング方法を示す。図1Dは明度軸上の所定の定点(焦点)Pに向けて明度と彩度を圧縮するマッピング方法である。   Various methods have been proposed for color gamut mapping. 1A to 1D are diagrams illustrating a typical process for performing color gamut mapping on a two-dimensional plane of lightness and saturation while fixing a hue. FIG. 1A shows a color gamut mapping method in which the lightness is fixed and the saturation is compressed. FIG. 1B shows a color gamut mapping method that compresses lightness with constant saturation. FIG. 1C shows a mapping method that minimizes the amount of change before and after mapping lightness and saturation. FIG. 1D shows a mapping method for compressing lightness and saturation toward a predetermined fixed point (focal point) P on the lightness axis.

図1A〜1Dに示すマッピング方法以外にも、色相を所定の範囲で変化させて明度と彩度の圧縮率(マッピング前後の変化量)を軽減する方法が知られている。また、階調性を保つために色域内の所定の非圧縮領域までは色信号値を維持し、非圧縮領域を超える色信号値は、所定の圧縮関数を用いて、非圧縮領域の境界面と出力色域の境界面の間に滑らかにマッピングする方法が知られている。   In addition to the mapping methods shown in FIGS. 1A to 1D, there is known a method of reducing the compression ratio (change amount before and after mapping) of lightness and saturation by changing the hue within a predetermined range. In order to maintain gradation, the color signal value is maintained up to a predetermined non-compressed area in the color gamut, and the color signal value exceeding the non-compressed area is determined by using a predetermined compression function. There is known a method of smoothly mapping between the boundary surface of the output color gamut and the output color gamut.

しかし、これらマッピング方法にはそれぞれ一長一短がある。例えば、色域外の色を多く含む画像について、色相一定で色域マッピングする際、彩度を保存するため、明度の圧縮を大きくするとコントラストが低下して画像の立体感が失われる。逆に、明度を保存するため、彩度の圧縮を大きくすると鮮やかさが低下し、インパクトのない画像になる。   However, each of these mapping methods has advantages and disadvantages. For example, when color gamut mapping is performed with a constant hue for an image including many colors outside the color gamut, the saturation is preserved, so that increasing the compression of lightness lowers the contrast and loses the stereoscopic effect of the image. On the contrary, in order to preserve the lightness, if the compression of the saturation is increased, the vividness is lowered and the image has no impact.

また、非圧縮領域までは色信号値を維持するマッピング方法は、入力画像の色信号値の分布に依らず、相対的または絶対的に非圧縮領域を設定すると、色信号値が出力色域内で忠実に再現できるにも関わらず、マッピングされる場合がある。   In addition, the mapping method for maintaining the color signal values up to the non-compressed region is independent of the distribution of the color signal values of the input image. Although it can be reproduced faithfully, it may be mapped.

このように、すべての画像について一つのマッピング方法で良好な色再現を得ることは非常に難しい。   Thus, it is very difficult to obtain a good color reproduction with one mapping method for all images.

また、画像適応型のマッピング方法としてマッピングすべき画像の特徴量を算出し、その特徴量に基づき最適な色域マッピングを行う方法が知られている。しかし、画像の撮影シーンに応じて色域マッピングのパラメータを最適化するため、複数の類似する画像が同じ被写体の色データを有していたとしても、それら画像間では異なる被写体の色データとして扱われて、統一的な色再現が得られない問題がある。   As an image adaptive mapping method, there is known a method of calculating a feature amount of an image to be mapped and performing optimum color gamut mapping based on the feature amount. However, in order to optimize the color gamut mapping parameters according to the shooting scene of the images, even if multiple similar images have the same subject color data, they are treated as different subject color data among the images. Therefore, there is a problem that uniform color reproduction cannot be obtained.

特開平7-107306号公報JP-A-7-107306

本発明は、複数の類似する画像間で、統一的な色再現を得ることを目的とする。   An object of the present invention is to obtain a uniform color reproduction between a plurality of similar images.

本発明は、前記の目的を達成する一手段として、以下の構成を備える。   The present invention has the following configuration as one means for achieving the above object.

第一の色域で表される画像データを、前記第一の色域とは異なる第二の色域の画像データに変換する色処理を行う際に、複数の画像データをカテゴリ別にメモリに登録し、前記メモリに登録された前記カテゴリ別の画像データの画像特徴量を計算し、前記画像特徴量に基づき前記カテゴリ別に、画像データに施す色処理を設定することを特徴とする。   When performing color processing to convert image data represented by the first color gamut into image data of the second color gamut different from the first color gamut, a plurality of image data is registered in the memory by category. Then, an image feature amount of the image data for each category registered in the memory is calculated, and color processing to be performed on the image data is set for each category based on the image feature amount.

本発明によれば、複数の類似する画像間で、統一的な色再現を得ることができる。   According to the present invention, uniform color reproduction can be obtained between a plurality of similar images.

以下、本発明にかかる実施例の画像処理を図面を参照して詳細に説明する。   Hereinafter, image processing according to an embodiment of the present invention will be described in detail with reference to the drawings.

[装置の構成]
図2は実施例1の画像処理装置101の構成例を示すブロック図である。
[Device configuration]
FIG. 2 is a block diagram illustrating a configuration example of the image processing apparatus 101 according to the first embodiment.

図2において、画像表示装置102は、画像を表示するためのモニタなどである。画像出力装置103は、画像を出力するためのプリンタなどである。画像入力装置104は、画像を入力するためのディジタルカメラなどである。これら装置はそれぞれ、所定のインタフェイス(例えばUSBやIEEE1394)を介して画像処理装置101に接続されている。   In FIG. 2, an image display device 102 is a monitor or the like for displaying an image. The image output device 103 is a printer or the like for outputting an image. The image input device 104 is a digital camera or the like for inputting an image. Each of these apparatuses is connected to the image processing apparatus 101 via a predetermined interface (for example, USB or IEEE1394).

画像処理装置101において、画像表示部105は、画像表示装置102に表示するためのビデオ信号を生成する。画像入力部106は、画像入力装置104が取得したディジタル画像を画像データベース112に格納する。画像出力部111は、画像出力装置103で画像を出力するための画像信号を生成する。   In the image processing apparatus 101, the image display unit 105 generates a video signal to be displayed on the image display apparatus 102. The image input unit 106 stores the digital image acquired by the image input device 104 in the image database 112. The image output unit 111 generates an image signal for outputting an image by the image output device 103.

画像特徴量算出部107は、画像データベース112に登録された画像の特徴量を算出する。マッピング方法選択部108は、画像データベース112に登録された各画像に適した色域のマッピング方法を選択する。色処理部109は、画像出力装置103で画像を出力するための色処理を行う。   The image feature amount calculation unit 107 calculates the feature amount of the image registered in the image database 112. The mapping method selection unit 108 selects a color gamut mapping method suitable for each image registered in the image database 112. The color processing unit 109 performs color processing for outputting an image by the image output device 103.

入力プロファイル記憶部113は、画像表示装置102や画像入力装置104などのソースプロファイルを記憶する。出力プロファイル記憶部114、画像出力装置103などのデスティネーションプロファイルを記憶する。なお、画像データベース112、入力プロファイル記憶部113、出力プロファイル記憶部114は、例えばハードディスクドライブなどの不揮発性メモリに割り当てられる。データバッファ115は、データ処理を行うために一時的にデータを記憶するRAMなどである。   The input profile storage unit 113 stores source profiles of the image display device 102, the image input device 104, and the like. Destination profiles such as the output profile storage unit 114 and the image output device 103 are stored. Note that the image database 112, the input profile storage unit 113, and the output profile storage unit 114 are allocated to a nonvolatile memory such as a hard disk drive, for example. The data buffer 115 is a RAM or the like that temporarily stores data for data processing.

ユーザインタフェイス(UI)部116は、ユーザが画像処理装置101を操作するためのユーザインタフェイスを画像表示装置102に表示するための画像データを生成する。操作入力部110は、例えば特定色に対して目標にする色データなど、ユーザの指示などを入力するための、例えばキーボード、ポインティングデバイス、タッチパネルなどである。   A user interface (UI) unit 116 generates image data for displaying a user interface for the user to operate the image processing apparatus 101 on the image display apparatus 102. The operation input unit 110 is, for example, a keyboard, a pointing device, a touch panel, or the like for inputting user instructions such as color data targeted for a specific color.

[画像処理]
図3は画像処理装置101が実行する画像処理を説明するフローチャートである。
[Image processing]
FIG. 3 is a flowchart for describing image processing executed by the image processing apparatus 101.

画像処理装置101は、まずデータバッファ115を初期化するなどの初期化処理を行う(S201)。   The image processing apparatus 101 first performs an initialization process such as initializing the data buffer 115 (S201).

次に、画像処理装置101は、画像入力装置104が取得した画像データを画像入力部106を介して入力し、ユーザが指定するカテゴリ別に画像データを分類して画像データベース112に登録する(S202)。   Next, the image processing apparatus 101 inputs the image data acquired by the image input apparatus 104 via the image input unit 106, classifies the image data according to the category specified by the user, and registers the image data in the image database 112 (S202). .

次に、画像処理装置101は、画像データベース112に登録された、ユーザが指定するカテゴリの画像データをデータバッファ115に読み込み、画像データの画像特徴量(色分布特性)を画像特徴量算出部107に計算させる(S203)。なお、画像特徴量算出部107による画像特徴量の計算方法は後述する。   Next, the image processing apparatus 101 reads the image data of the category specified by the user registered in the image database 112 into the data buffer 115 and calculates the image feature amount (color distribution characteristic) of the image data to the image feature amount calculation unit 107. (S203). A method for calculating the image feature amount by the image feature amount calculation unit 107 will be described later.

次に、画像処理装置101は、ユーザの指示に従い、入力プロファイル記憶部113と出力プロファイル記憶部114から画像入力装置104と画像出力装置103の色再現情報を取得する(S204)。ここで取得する色再現情報は、ソースプロファイルに含まれるデバイスに依存する色空間(例えばRGB空間など)からデバイスに独立な色空間(例えばXYZ、Lab色空間など)への変換特性が記述されたデータテーブルである。さらに、デスティネーションプロファイルに含まれるデバイスに独立しない色空間からデバイスに依存する色空間(例えばCMYK空間)への変換特性が記述されたデータテーブルである。   Next, the image processing apparatus 101 acquires color reproduction information of the image input apparatus 104 and the image output apparatus 103 from the input profile storage unit 113 and the output profile storage unit 114 in accordance with a user instruction (S204). The color reproduction information acquired here describes the conversion characteristics from the device-dependent color space (eg, RGB space) included in the source profile to the device-independent color space (eg, XYZ, Lab color space, etc.). It is a data table. Furthermore, the data table describes conversion characteristics from a device-independent color space included in the destination profile to a device-dependent color space (for example, CMYK space).

実施例1のデータテーブルは、例えば図5に示すフォーマットのように、格子点のRGB値と、それに対応するLab値の対応関係を記述する。なお、図5には、均等に配置した9×9×9の格子点のRGB値とLab値の組み合わせを記述する例を示している。勿論、格子点の配置と数は均等と9×9×9に限定されるわけではなく、不均等、5×5×5、7×7×7などでもよい。   The data table of the first embodiment describes the correspondence between the RGB values of the grid points and the corresponding Lab values as in the format shown in FIG. 5, for example. FIG. 5 shows an example in which the combination of RGB values and Lab values of 9 × 9 × 9 grid points arranged uniformly is described. Of course, the arrangement and number of grid points are not limited to 9 × 9 × 9, but may be non-uniform, 5 × 5 × 5, 7 × 7 × 7, or the like.

次に、画像処理装置101は、後述するユーザの指示に従い、目標色データを読み込む(S205)。図6は目標色データの一例を示す図である。目標色データには、ユーザが再現したい色(重要色)を示すRGB値とLab値の対応関係が記述されている。   Next, the image processing apparatus 101 reads target color data in accordance with a user instruction to be described later (S205). FIG. 6 is a diagram illustrating an example of target color data. The target color data describes the correspondence between RGB values and Lab values indicating the colors (important colors) that the user wants to reproduce.

次に、画像処理装置101は、マッピング方法選択部108により、後述するユーザの指示を入力して、画像データの名称(例えばデータファイル名)、カテゴリ、マッピング方法の関係を記述したマッピング方法テーブルを更新する(S206)。詳細は後述するが、ユーザは、カテゴリ別の画像データの色分布特性を参考にして最適なマッピング方法を選択する。   Next, the image processing apparatus 101 inputs a user instruction (to be described later) from the mapping method selection unit 108, and creates a mapping method table describing the relationship between the name of the image data (for example, the data file name), the category, and the mapping method. Update (S206). Although details will be described later, the user selects an optimal mapping method with reference to the color distribution characteristics of image data by category.

図7はマッピング方法テーブルの一例を示す図である。マッピング方法テーブルは、画像データベース112の所定領域に格納されている。   FIG. 7 shows an example of the mapping method table. The mapping method table is stored in a predetermined area of the image database 112.

次に、画像処理装置101は、ユーザが指示する画像データを、色処理部109により、ステップS204で取得した画像入力装置104の色再現情報を用いてRGB値からLab値に変換する(S207)。そして、色処理部109により、ステップS204で取得した色再現情報が示す画像入力装置104の色域と画像出力装置103の色域の関係と、ステップS206で選択したマッピング方法を用いて、画像データのLab値を色域マッピングする(S208)。そして、色処理部109により、ステップS204で取得した画像出力装置103の色再現情報を用いて、色域マッピング後の画像データをLab値を画像出力装置103のCMYK値へ変換する(S209)。   Next, the image processing apparatus 101 converts the image data instructed by the user from the RGB value to the Lab value by using the color reproduction information of the image input apparatus 104 acquired in step S204 by the color processing unit 109 (S207). . Then, the color processing unit 109 uses the relationship between the color gamut of the image input device 104 and the color gamut of the image output device 103 indicated by the color reproduction information acquired in step S204, and the mapping method selected in step S206 to generate image data. The Lab values are color gamut mapped (S208). Then, using the color reproduction information of the image output device 103 acquired in step S204, the color processing unit 109 converts the Lab data from the color gamut mapped image data into the CMYK value of the image output device 103 (S209).

ステップS207、S208においては、ステップS205で読み込まれた目標色データに基づき、ユーザが重要とする特定色の目標色データを設定して、目標色データを出力するよう色処理を行う。また、ステップS207、S208において、テーブルデータがない格子点以外の信号値の計算には、四面体補間などの補間演算を用いる。   In steps S207 and S208, based on the target color data read in step S205, target color data of a specific color important for the user is set, and color processing is performed to output the target color data. In steps S207 and S208, interpolation calculation such as tetrahedron interpolation is used for calculation of signal values other than the grid points having no table data.

次に、画像処理装置101は、画像出力部111により、ステップS208で変換した画像データから画像出力装置103が処理可能な印刷データを生成して画像出力装置103に出力する(S209)。   Next, the image processing apparatus 101 causes the image output unit 111 to generate print data that can be processed by the image output apparatus 103 from the image data converted in step S208 and output the print data to the image output apparatus 103 (S209).

なお、図3には、画像データの登録処理(S202)から画像データの出力処理(S210)までを一連の処理のように記述した。しかし、実際は、画像データの登録処理(S202)、特徴量の計算処理(S203)からマッピング方法テーブルの更新処理(S206)、画像データの色処理(S207)から画像データの出力処理(S210)に分けることができる。これらの処理は、後述するユーザインタフェイスの操作によって独立に実行される処理である。   In FIG. 3, the process from the image data registration process (S202) to the image data output process (S210) is described as a series of processes. However, in practice, the image data registration process (S202), the feature value calculation process (S203), the mapping method table update process (S206), and the image data color process (S207) to the image data output process (S210). Can be divided. These processes are executed independently by operation of a user interface described later.

[ユーザインタフェイス]
図4は画像処理装置101が画像表示装置102に表示する、画像処理を操作するためのUIの一例を示す図である。
[User interface]
FIG. 4 is a diagram illustrating an example of a UI for operating image processing, which is displayed on the image display device 102 by the image processing device 101.

領域301には、ユーザが画像データの画像特徴量を算出するカテゴリを選択するためのラジオボタン302を配置する。なお、ユーザは、画像データを画像データベース102に登録する際、画像データに任意のカテゴリ名称を設定することが可能である。つまり、画像データベース102に登録された画像データに設定されたカテゴリの名称が領域301にリストされる。   In the area 301, a radio button 302 for the user to select a category for calculating the image feature amount of the image data is arranged. The user can set an arbitrary category name for the image data when registering the image data in the image database 102. That is, the category names set in the image data registered in the image database 102 are listed in the area 301.

領域303には、ユーザが指定したカテゴリの画像データの画像特徴量(色分布特性)を示すヒストグラムを表示する。ユーザは、ボタン310を選択することで、明度分布、彩度分布、色相分布のそれぞれ、あるいは、二つまたは三つを重ねたヒストグラムを表示させることができる。また、ユーザは、ボタン311によって、R、G、B、C、M、Yなどの色領域を選択して、各領域の明度および彩度のヒストグラムを表示させることできる。   In the area 303, a histogram indicating the image feature amount (color distribution characteristic) of the image data of the category designated by the user is displayed. By selecting the button 310, the user can display each of the lightness distribution, the saturation distribution, and the hue distribution, or a histogram in which two or three are overlaid. In addition, the user can select color regions such as R, G, B, C, M, and Y using the button 311 and display the brightness and saturation histograms of each region.

画像特徴量算出ボタン304は、ユーザが指定したカテゴリの画像データの画像特徴量の算出を指示するボタンである。   The image feature amount calculation button 304 is a button for instructing the calculation of the image feature amount of the image data of the category designated by the user.

ドロップダウンメニュー305は、予め用意されたマッピング方法の中からユーザがマッピング方法を選択するメニューである。例えば、海の写真画像を印刷する場合、ユーザは、海のカテゴリで分類された画像データの明度分布、彩度分布、色相分布を参照する。そして、シアン領域に色分布が偏っている場合は、マッピング方法B(シアン領域保存)を選択して、シアン領域の色再現性を重視するマッピング方法を選択する。   A drop-down menu 305 is a menu for the user to select a mapping method from mapping methods prepared in advance. For example, when printing a photographic image of the sea, the user refers to the lightness distribution, the saturation distribution, and the hue distribution of the image data classified by the sea category. If the color distribution is biased in the cyan area, the mapping method B (cyan area storage) is selected, and the mapping method that places importance on the color reproducibility of the cyan area is selected.

図7は、ユーザのマッピング方法の選択によって作成される、画像データの名称(例えばデータファイル名)、カテゴリ、マッピング方法の関係が記述されたテーブルを示す図である。このテーブルは、画像データベース112の所定領域に格納されている。   FIG. 7 is a diagram showing a table describing the relationship between image data names (for example, data file names), categories, and mapping methods, which is created by the user's mapping method selection. This table is stored in a predetermined area of the image database 112.

印刷画像データ指定ボタン306は、ユーザが印刷を望む画像データ指定するためのボタンである。   A print image data designation button 306 is a button for designating image data that the user desires to print.

色再現情報取得ボタン307は、ユーザが画像入力装置104と画像出力装置103の名称等を指定するためのボタンである。ステップS204では、このボタン307の操作により指定された名称等に対応する画像入力装置104と画像出力装置103の色再現情報を取得する。なお、画像入力装置104の名称等は、画像データに付加された情報から取得することも可能である。その場合、ユーザは、色再現情報取得ボタン307を操作して画像入力装置104の名称等を指定する必要はない。   The color reproduction information acquisition button 307 is a button for the user to specify names of the image input device 104 and the image output device 103. In step S204, the color reproduction information of the image input device 104 and the image output device 103 corresponding to the name specified by the operation of the button 307 is acquired. Note that the name and the like of the image input device 104 can also be acquired from information added to the image data. In this case, the user does not need to operate the color reproduction information acquisition button 307 and specify the name or the like of the image input device 104.

目標色データ取得ボタン308は、ユーザが重要色を記述した図6に示す形式のデータの取得を指示するボタンである。   The target color data acquisition button 308 is a button for instructing acquisition of data in the format shown in FIG. 6 in which the user describes important colors.

画像出力ボタン309は、ユーザが画像データの印刷を指示するボタンである。このボタン309を押すと、印刷画像データの指定ボタン306を操作して指定した画像データは、図7に示すテーブルに記述されたマッピング方法による色域マッピングを含む色処理が施された後、画像出力装置103に出力される。   The image output button 309 is a button for instructing the user to print image data. When this button 309 is pressed, the image data designated by operating the print image data designation button 306 is subjected to color processing including color gamut mapping by the mapping method described in the table shown in FIG. The data is output to the output device 103.

[画像特徴量の計算]
図8は画像特徴量算出部107の処理を説明するフローチャートである。
[Image feature calculation]
FIG. 8 is a flowchart for explaining the processing of the image feature amount calculation unit 107.

画像特徴量算出部107は、前処理として、ヒストグラム作成による演算コストを低減するために画像データの画素のサンプリングや、不特定の画像サイズを所定サイズに変換する処理を行う(S701)。   The image feature quantity calculation unit 107 performs, as preprocessing, sampling of pixels of image data and conversion of an unspecified image size to a predetermined size in order to reduce the calculation cost due to histogram creation (S701).

次に、画像特徴量算出部107は、色再現情報取得ボタン307の操作によって指定された名称等または画像データに付加された情報に従い、画像入力装置104のソースプロファイルを入力プロファイル記憶部113から読み込む(S702)。   Next, the image feature amount calculation unit 107 reads the source profile of the image input device 104 from the input profile storage unit 113 in accordance with the name specified by the operation of the color reproduction information acquisition button 307 or information added to the image data. (S702).

次に、画像特徴量算出部107は、データバッファ115に格納された画像データの一つを選択する(S703)。そして、選択した画像データの一画素を抽出し(S704)、ステップS702で読み込んだソースプロファイルを用いて画素のRGB値をLab値に変換し、さらに式(1)を用いて、明度L、彩度C、色相Hを計算する(S705)。
L = L*
C = √(a*2 + b*2) …(1)
H = tan-1(b*/a*)
Next, the image feature amount calculation unit 107 selects one of the image data stored in the data buffer 115 (S703). Then, one pixel of the selected image data is extracted (S704), the RGB value of the pixel is converted into an Lab value using the source profile read in step S702, and the brightness L, color saturation is further expressed using equation (1). The degree C and the hue H are calculated (S705).
L = L *
C = √ (a * 2 + b * 2 )… (1)
H = tan -1 (b * / a *)

次に、画像特徴量算出部107は、ステップS702で計算した明度L、彩度C、色相Hによって、データバッファ115の所定領域に格納したヒストグラムを更新する(S706)。なお、ヒストグラムには、明度LのヒストグラムHistL、彩度CのヒストグラムHistC、色相HのヒストグラムHistHがあり、初期状態のヒストグラムの要素はすべて0である。また、ヒストグラムは式(2)に従って更新する。
HistL[L] = HistL[L] + 1
HistC[C] = HistC[C] + 1 …(2)
HistH[H] = HistH[H] + 1
Next, the image feature amount calculation unit 107 updates the histogram stored in the predetermined area of the data buffer 115 with the lightness L, saturation C, and hue H calculated in step S702 (S706). The histogram includes a lightness L histogram HistL, a saturation C histogram HistC, and a hue H histogram HistH, and all elements of the histogram in the initial state are 0. The histogram is updated according to the equation (2).
HistL [L] = HistL [L] + 1
HistC [C] = HistC [C] + 1… (2)
HistH [H] = HistH [H] + 1

次に、画像特徴量算出部107は、一つの画像データの全画素のヒストグラムの作成が終了したか否かを判定する(S707)。そして、一つの画像データの全画素のヒストグラムの作成が終了するまで、ステップS704からS706の処理を繰り返す。   Next, the image feature amount calculation unit 107 determines whether or not the creation of the histogram of all the pixels of one image data has been completed (S707). Then, the processes of steps S704 to S706 are repeated until the creation of the histogram of all the pixels of one image data is completed.

一つの画像データの全画素のヒストグラムの作成が終了すると、データバッファ115に格納した全画像データ(指定されたカテゴリの全画像データ)のヒストグラムの作成が終了したか否かを判定する(S708)。そして、指定されたカテゴリの全画像データのヒストグラムの作成が終了するまで、ステップS703からS707の処理を繰り返す。   When the creation of the histogram of all the pixels of one image data is completed, it is determined whether or not the creation of the histogram of all the image data stored in the data buffer 115 (all the image data of the specified category) is finished (S708). . Then, the processes from step S703 to S707 are repeated until the creation of the histogram of all image data of the specified category is completed.

図9は画像特徴量算出部107が作成するヒストグラムの例を示す図である。   FIG. 9 is a diagram illustrating an example of a histogram created by the image feature amount calculation unit 107. In FIG.

このように、複数の画像データをカテゴリ別にデータベース化し、複数の画像データの色分布特性を解析して、ユーザの目的に応じた色処理を施すことができる。従って、カテゴリが同じ画像間で統一的な色再現を得ることができる。   In this way, a plurality of image data can be made into a database for each category, color distribution characteristics of the plurality of image data can be analyzed, and color processing according to the user's purpose can be performed. Therefore, uniform color reproduction can be obtained between images having the same category.

以下、本発明にかかる実施例2の画像処理を説明する。なお、実施例2において、実施例1と略同様の構成については、同一符号を付して、その詳細説明を省略する。   The image processing according to the second embodiment of the present invention will be described below. Note that the same reference numerals in the second embodiment denote the same parts as in the first embodiment, and a detailed description thereof will be omitted.

実施例1では、ユーザは、領域303に表示される色分布特性を参照してマッピング方法の   In the first embodiment, the user refers to the color distribution characteristics displayed in the area 303 and uses the mapping method.

選択メニュー305により、適切な色域のマッピング方法を選択する例を説明した。以下では、ユーザではなく、マッピング方法選択部108が適切な色域のマッピング方法を選択する処理を説明する。   The example of selecting an appropriate color gamut mapping method using the selection menu 305 has been described. Hereinafter, a process in which the mapping method selection unit 108, not the user, selects an appropriate color gamut mapping method will be described.

以下では、色域のマッピング方法として、R、G、B、C、M、Yの領域ごとに色域を圧縮しない非圧縮領域を設ける。そして、非圧縮領域までは色信号値を維持し、非圧縮領域を超える色信号値は、所定の圧縮関数を用いて、非圧縮領域の境界面と出力色域の境界面の間に滑らかにマッピングする方法を説明する。   In the following, as a color gamut mapping method, an uncompressed area in which the color gamut is not compressed is provided for each of the R, G, B, C, M, and Y areas. The color signal value is maintained up to the non-compressed region, and the color signal value exceeding the non-compressed region is smoothed between the boundary surface of the non-compressed region and the output color gamut using a predetermined compression function. A method of mapping will be described.

図10は、マッピング方法選択部108が実行する、データバッファ115に格納された画像データ(指定されたカテゴリの画像データ)の画像特徴量が算出された後、画像特徴量に基づいて非圧縮領域を設定する方法を説明するフローチャートである。   FIG. 10 shows an uncompressed area based on the image feature amount after the image feature amount of the image data (image data of the specified category) stored in the data buffer 115, which is executed by the mapping method selection unit 108, is calculated. It is a flowchart explaining the method to set.

マッピング方法選択部108は、まず初期化処理を行う(S901)。   The mapping method selection unit 108 first performs an initialization process (S901).

次に、マッピング方法選択部108は、色再現情報取得ボタン307の操作によって指定された名称等に従い、出力プロファイル記憶部114から画像出力装置103の色再現情報を取得する(S902)。   Next, the mapping method selection unit 108 acquires the color reproduction information of the image output device 103 from the output profile storage unit 114 in accordance with the name specified by operating the color reproduction information acquisition button 307 (S902).

次に、マッピング方法選択部108は、データバッファ115に格納された画像データ(指定されたカテゴリの画像データ)の色分布情報から、R、G、B、C、M、Yの色相領域の何れかについて、最大彩度値をもつ色信号値Cmaxを取得する(S903)。なお、色分布情報は、実施例1の処理によって計算済みとする。   Next, the mapping method selection unit 108 selects one of the hue regions of R, G, B, C, M, and Y from the color distribution information of the image data (image data of the specified category) stored in the data buffer 115. For this, the color signal value Cmax having the maximum saturation value is acquired (S903). It is assumed that the color distribution information has been calculated by the processing in the first embodiment.

次に、マッピング方法選択部108は、ヒストグラムの制御値Nを0に初期化し(S904)、Cmaxが画像出力装置103の出力色域内か否かを判定する(S905)。   Next, the mapping method selection unit 108 initializes the control value N of the histogram to 0 (S904), and determines whether Cmax is within the output color gamut of the image output device 103 (S905).

Cmaxが出力色域外の場合、マッピング方法選択部108は、制御値Nをインクリメントする(S906)。そして、ステップS903でCmaxを取得した色相領域のヒストグラムの上位側N%における出現頻度が最も高い彩度値をもつ色信号値をCmaxに設定し(S907)、処理をステップS905に戻す。従って、Cmaxが出力色域内になるまでステップS905からS907が繰り返される。   When Cmax is out of the output color gamut, the mapping method selection unit 108 increments the control value N (S906). Then, the color signal value having the saturation value having the highest appearance frequency in the upper N% of the histogram of the hue region for which Cmax is acquired in step S903 is set to Cmax (S907), and the process returns to step S905. Accordingly, steps S905 to S907 are repeated until Cmax is within the output color gamut.

Cmaxが出力色域内になると、マッピング方法選択部108は、現在のCmaxを、ステップS903でCmaxを取得した色相領域の非圧縮領域に設定する(S908)。非圧縮領域の設定には、画像出力装置103の出力色域に対して相対的に非圧縮領域を設定する方法を用いる。つまり、データバッファ115に格納された画像データ(指定されたカテゴリの画像データ)の色信号値と、画像出力装置103の出力色域の共通色域で、最大彩度を有する色信号値を探索する。そして、その色信号値の明度値を求め、その明度値上において彩度の非圧縮領域を設定する。   When Cmax falls within the output color gamut, mapping method selection section 108 sets the current Cmax to the uncompressed area of the hue area from which Cmax was acquired in step S903 (S908). For setting the uncompressed area, a method of setting the uncompressed area relative to the output color gamut of the image output apparatus 103 is used. That is, the color signal value having the maximum saturation is searched for in the color signal value of the image data (image data of the specified category) stored in the data buffer 115 and the common color gamut of the output color gamut of the image output device 103. To do. Then, the lightness value of the color signal value is obtained, and an uncompressed area of saturation is set on the lightness value.

次に、マッピング方法選択部108は、R、G、B、C、M、Yすべての色相領域について、ステップS903からS908の処理を行ったか否かを判定し(S909)、未了であればステップS903からS908の処理を繰り返す。   Next, the mapping method selection unit 108 determines whether or not the processing of steps S903 to S908 has been performed for all hue regions of R, G, B, C, M, and Y (S909). The processes in steps S903 to S908 are repeated.

[変形例]
上記の実施例では、カテゴリ別の画像データの画像特徴量として明度、彩度、色相のヒストグラムを作成する例を説明したが、CIELab空間におけるab平面の色分布特性を用いてもよい。また、Lab信号値を擬似的に三次元表示し、三次元上の色分布特性を参照して、色域のマッピング方法を選択させるようにしてもよい。
[Modification]
In the above-described embodiment, an example has been described in which a histogram of brightness, saturation, and hue is created as the image feature amount of image data by category. However, the color distribution characteristics of the ab plane in the CIELab space may be used. Alternatively, the Lab signal value may be displayed in a pseudo three-dimensional manner, and the color gamut mapping method may be selected by referring to the three-dimensional color distribution characteristics.

上記の実施例において、ユーザ選択した色域のマッピング方法を用いて色補正用のルックアップテーブル(色補正LUT)を生成し、この色補正LUTを用いて色処理を行う。しかし、予めカテゴリ別に画像出力装置103および出力設定に応じた色補正LUTを不揮発性メモリに格納しておき、色処理を行う際に、不揮発性メモリに格納された色補正LUTを参照するようにしてもよい。   In the above embodiment, a color correction lookup table (color correction LUT) is generated using a user-selected color gamut mapping method, and color processing is performed using the color correction LUT. However, the color correction LUT corresponding to the image output device 103 and the output setting is stored in the nonvolatile memory in advance for each category, and the color correction LUT stored in the nonvolatile memory is referred to when performing color processing. May be.

上記の実施例では、写像色空間をLab空間としたが、CIEJCH空間のような他の均等色空間、XYZ空間のような非均等色空間、あるいは、デバイスディペンデントなRGB色空間などに対しても本発明は適用可能である。   In the above embodiment, the mapping color space is Lab space, but for other uniform color space such as CIEJCH space, non-uniform color space such as XYZ space, or device-dependent RGB color space. However, the present invention is applicable.

.so canon _3   .so canon _3

色相を固定して、明度と彩度の二次元平面上で色域マッピングを行う代表的な処理を示す図、A diagram showing a typical process for performing color gamut mapping on a two-dimensional plane of lightness and saturation with a fixed hue, 色相を固定して、明度と彩度の二次元平面上で色域マッピングを行う代表的な処理を示す図、A diagram showing a typical process for performing color gamut mapping on a two-dimensional plane of lightness and saturation with a fixed hue, 色相を固定して、明度と彩度の二次元平面上で色域マッピングを行う代表的な処理を示す図、A diagram showing a typical process for performing color gamut mapping on a two-dimensional plane of lightness and saturation with a fixed hue, 色相を固定して、明度と彩度の二次元平面上で色域マッピングを行う代表的な処理を示す図、A diagram showing a typical process for performing color gamut mapping on a two-dimensional plane of lightness and saturation with a fixed hue, 実施例1の画像処理装置の構成例を示すブロック図、Block diagram showing a configuration example of the image processing apparatus of Example 1, 画像処理装置が実行する画像処理を説明するフローチャート、A flowchart illustrating image processing executed by the image processing apparatus; 画像処理を操作するためのUIの一例を示す図、The figure which shows an example of UI for operating image processing, 色再現情報を説明する図、A diagram explaining color reproduction information, 目標色データの一例を示す図、The figure which shows an example of target color data, マッピング方法テーブルの一例を示す図、The figure which shows an example of a mapping method table, 画像特徴量算出部の処理を説明するフローチャート、A flowchart for explaining processing of the image feature amount calculation unit; 画像特徴量算出部が作成するヒストグラムの例を示す図、The figure which shows the example of the histogram which an image feature-value calculation part produces, 実施例2のマッピング方法選択部が実行する、非圧縮領域を設定する方法を説明するフローチャートである。10 is a flowchart illustrating a method for setting an uncompressed area, which is executed by a mapping method selection unit according to the second embodiment.

Claims (8)

第一の色域で表される画像データを、前記第一の色域とは異なる第二の色域の画像データに変換する色処理装置であって、
複数の画像データをカテゴリ別にメモリに登録する登録手段と、
前記メモリに登録された前記カテゴリ別の画像データの画像特徴量を計算する計算手段と、
前記画像特徴量に基づき前記カテゴリ別に、画像データに施す色処理を設定する設定手段とを有することを特徴とする色処理装置。
A color processing device that converts image data represented by a first color gamut into image data of a second color gamut different from the first color gamut,
Registration means for registering a plurality of image data in a memory by category;
Calculation means for calculating the image feature amount of the image data by category registered in the memory;
A color processing apparatus comprising: setting means for setting color processing to be performed on image data for each category based on the image feature amount.
前記計算手段は、前記画像特徴量として、前記カテゴリ別の画像データの色分布特性を計算することを特徴とする請求項1に記載された色処理装置。   2. The color processing apparatus according to claim 1, wherein the calculating unit calculates a color distribution characteristic of the image data for each category as the image feature amount. 前記色分布特性は、明度、彩度、および、色相の分布特性を含むことを特徴とする請求項2に記載された色処理装置。   3. The color processing apparatus according to claim 2, wherein the color distribution characteristics include brightness, saturation, and hue distribution characteristics. さらに、前記画像特徴量に基づき、前記色処理における色域のマッピング方法を選択する選択手段を有することを特徴とする請求項1に記載された色処理装置。   2. The color processing apparatus according to claim 1, further comprising selection means for selecting a color gamut mapping method in the color processing based on the image feature amount. さらに、前記メモリに登録された画像データから前記色処理を施す画像データを選定する選定手段と、
前記選定された画像データのカテゴリに対応する色処理を、前記画像データに施す色処理手段とを有することを特徴とする請求項1に記載された色処理装置。
A selecting means for selecting image data to be subjected to the color processing from the image data registered in the memory;
2. The color processing apparatus according to claim 1, further comprising color processing means for performing color processing corresponding to the category of the selected image data on the image data.
第一の色域で表される画像データを、前記第一の色域とは異なる第二の色域の画像データに変換する色処理方法であって、
複数の画像データをカテゴリ別にメモリに登録し、
前記メモリに登録された前記カテゴリ別の画像データの画像特徴量を計算し、
前記画像特徴量に基づき前記カテゴリ別に、画像データに施す色処理を設定することを特徴とする色処理方法。
A color processing method for converting image data represented by a first color gamut into image data of a second color gamut different from the first color gamut,
Register multiple image data in memory by category,
Calculating an image feature amount of the image data for each category registered in the memory;
A color processing method comprising: setting color processing to be performed on image data for each category based on the image feature amount.
画像処理装置を制御して、請求項6に記載された色処理を実行することを特徴とするコンピュータプログラム。   7. A computer program for controlling the image processing apparatus to execute the color processing according to claim 6. 請求項7に記載されたコンピュータプログラムが記録されたことを特徴とするコンピュータが読み取り可能な記憶媒体。   8. A computer-readable storage medium in which the computer program according to claim 7 is recorded.
JP2006335075A 2006-12-12 2006-12-12 Color processing apparatus and method thereof Withdrawn JP2008148163A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006335075A JP2008148163A (en) 2006-12-12 2006-12-12 Color processing apparatus and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006335075A JP2008148163A (en) 2006-12-12 2006-12-12 Color processing apparatus and method thereof

Publications (1)

Publication Number Publication Date
JP2008148163A true JP2008148163A (en) 2008-06-26

Family

ID=39607816

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006335075A Withdrawn JP2008148163A (en) 2006-12-12 2006-12-12 Color processing apparatus and method thereof

Country Status (1)

Country Link
JP (1) JP2008148163A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010074435A (en) * 2008-09-17 2010-04-02 Ricoh Co Ltd Image processing apparatus, image processing method, and image processing program
JP2012182549A (en) * 2011-02-28 2012-09-20 Kyocera Document Solutions Inc Image forming device and color gamut correction method
JP2013198075A (en) * 2012-03-22 2013-09-30 Canon Inc Recording method, recorder, image processing method, image processor and table generating method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010074435A (en) * 2008-09-17 2010-04-02 Ricoh Co Ltd Image processing apparatus, image processing method, and image processing program
JP2012182549A (en) * 2011-02-28 2012-09-20 Kyocera Document Solutions Inc Image forming device and color gamut correction method
JP2013198075A (en) * 2012-03-22 2013-09-30 Canon Inc Recording method, recorder, image processing method, image processor and table generating method

Similar Documents

Publication Publication Date Title
JP4375781B2 (en) Image processing apparatus, image processing method, program, and recording medium
US6650771B1 (en) Color management system incorporating parameter control channels
JP2002016818A (en) Color correction method and device, and recording medium
JP4779843B2 (en) Color conversion lookup table creation device, color conversion lookup table creation method, and color conversion lookup table creation program
JPH08315132A (en) Method for selective color correction
JP2009055465A (en) Image processing device and method
US7965427B2 (en) Color processing apparatus and its method
US20020008762A1 (en) Method, apparatus and recording medium for image processing
JP2009071548A (en) Color processing device and method therefor
JP4656006B2 (en) Color conversion apparatus and color conversion program
JP2002016874A (en) Method and apparatus for processing image as well as recording medium for recording program therefor
JP4803122B2 (en) Color processing apparatus and program
JP2007274584A (en) Color processing method and device thereof
JP2007166543A (en) Image processing device and method thereof
JP2005354372A (en) Apparatus and method for image recording device, method and system for image processing
JP2008148163A (en) Color processing apparatus and method thereof
JP4910557B2 (en) Color conversion apparatus, color conversion method, color conversion program, color conversion coefficient creation apparatus, color conversion coefficient creation method, and color conversion coefficient creation program
JP2006019827A (en) Image processing method and image processing apparatus
JP4985162B2 (en) Color gamut generation device, color gamut generation program, and color conversion device
JP2007151055A6 (en) Image processing apparatus, image processing method, and image processing program
JP4401853B2 (en) Image processing apparatus and method
JP2000004369A (en) Method and processor for image processing, and recording medium thereof
JP2009038593A (en) Color processing apparatus and method
JP4613940B2 (en) Color signal conversion apparatus, image forming apparatus, and program
JP2004064111A (en) Color processing apparatus and method therefor

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20100302