JP2006261756A - Color conversion using color conversion lookup table with ununiform input grating point appropriate to photographing scene - Google Patents

Color conversion using color conversion lookup table with ununiform input grating point appropriate to photographing scene Download PDF

Info

Publication number
JP2006261756A
JP2006261756A JP2005072775A JP2005072775A JP2006261756A JP 2006261756 A JP2006261756 A JP 2006261756A JP 2005072775 A JP2005072775 A JP 2005072775A JP 2005072775 A JP2005072775 A JP 2005072775A JP 2006261756 A JP2006261756 A JP 2006261756A
Authority
JP
Japan
Prior art keywords
color conversion
image data
scene
unit
input
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.)
Pending
Application number
JP2005072775A
Other languages
Japanese (ja)
Inventor
Hiroyuki Tsuji
宏幸 辻
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 JP2005072775A priority Critical patent/JP2006261756A/en
Publication of JP2006261756A publication Critical patent/JP2006261756A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To provide a technology capable of carrying out color conversion by using a color conversion lookup table appropriate to an individual image being a processing object. <P>SOLUTION: A color conversion apparatus prepares a plurality of color conversion lookup tables in cross-reference with a plurality of photographing scenes, discriminates a photographing scene on the basis of an image data file including image data, and selects a proper color conversion lookup table in response to the discriminated photographing scene. Then the apparatus converts the image data into ink amount data by using the selected color conversion lookup table. A plurality of the color conversion lookup tables cross-referenced with the photographing scenes respectively include ununiform input grating points at ununiform intervals associated with pixel values of the image data. Further, the color conversion lookup tables cross-referenced with the different photographing scenes have ununiform input grating points different from one another. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

この発明は、画像データをインク量データに変換する技術に関する。   The present invention relates to a technique for converting image data into ink amount data.

画像データ(例えばRGB値やLab値)をインク量データ(例えばCMYK値)に変換する際には、色変換ルックアップテーブルを使用するのが一般的である。通常の色変換ルックアップテーブルは、入力画素値が取り得るすべてのRGB値の中で、予め選択された少数のRGB値に対応するインク量データのみを格納している。この理由は、すべてのRGB値に対するインク量データを格納すると、テーブルの容量が膨大になるからである。なお、色変換ルックアップテーブルのRGB入力値によって規定されるRGB色空間の点は、色変換ルックアップテーブルの「入力格子点」とも呼ばれている。   When converting image data (for example, RGB values or Lab values) into ink amount data (for example, CMYK values), a color conversion lookup table is generally used. A normal color conversion lookup table stores only ink amount data corresponding to a small number of RGB values selected in advance among all the RGB values that can be taken by the input pixel value. This is because storing the ink amount data for all the RGB values results in a huge table capacity. Note that the points in the RGB color space defined by the RGB input values of the color conversion lookup table are also called “input grid points” of the color conversion lookup table.

色変換ルックアップテーブルを用いて色変換を行う方法としては、例えば特許文献1,2に開示されたものが知られている。   As a method for performing color conversion using a color conversion lookup table, for example, those disclosed in Patent Documents 1 and 2 are known.

特開2001−285663号公報JP 2001-285663 A 特開平10−136216号公報Japanese Patent Laid-Open No. 10-136216

特許文献2には、肌色に相当する色領域の入力格子における単位立方体を、他の色領域の入力格子における単位立方体よりも小さくすることによって、肌色を精度良く再現する技術が開示されている。   Patent Document 2 discloses a technique for accurately reproducing the skin color by making the unit cube in the input grid of the color region corresponding to the skin color smaller than the unit cube in the input grid of the other color region.

しかし、精度良く再現したい色の範囲は、画像毎に異なる可能性がある。従来は、所定対象となる個々の画像に適した色変換ルックアップテーブルを用いて色変換を行う点については、十分に工夫がなされていないのが実情であった。   However, the range of colors that are desired to be reproduced with high accuracy may vary from image to image. Conventionally, the fact that color conversion is performed using a color conversion look-up table suitable for individual images to be specified has not been sufficiently devised.

本発明は、処理対象となる個々の画像に適した色変換ルックアップテーブルを用いて色変換を行うことのできる技術を提供することを目的とする。   It is an object of the present invention to provide a technique capable of performing color conversion using a color conversion lookup table suitable for individual images to be processed.

本発明による色変換装置は、画像データをインク量データに変換する色変換装置であって、
複数の撮影シーンに対応付けられた複数の色変換ルックアップテーブルを格納するテーブル格納部と、
画像データを含む画像データファイルに基づいて撮影シーンを判定するシーン判定部と、
前記判定された撮影シーンに応じて、前記複数の色変換ルックアップテーブルの中から適切な色変換ルックアップテーブルを選択するテーブル選択部と、
前記選択された色変換ルックアップテーブルを用いて前記画像データをインク量データに変換する色変換実行部と、
を備え、
前記複数の色変換ルックアップテーブルは、前記画像データの画素値に関して不均等な間隔を有する不均等入力格子点をそれぞれ有しているとともに、異なる撮影シーンに対応付けられた色変換ルックアップテーブル同士は互いに異なる不均等入力格子点を有していることを特徴とする。
A color conversion device according to the present invention is a color conversion device that converts image data into ink amount data,
A table storage unit for storing a plurality of color conversion lookup tables associated with a plurality of shooting scenes;
A scene determination unit that determines a shooting scene based on an image data file including image data;
A table selection unit that selects an appropriate color conversion lookup table from the plurality of color conversion lookup tables according to the determined shooting scene;
A color conversion execution unit that converts the image data into ink amount data using the selected color conversion lookup table;
With
The plurality of color conversion lookup tables each have unequal input grid points having unequal intervals with respect to pixel values of the image data, and color conversion lookup tables associated with different shooting scenes. Have different unequal input grid points.

この装置によれば、複数の色変換ルックアップテーブルの中から画像の撮影シーンに適したテーブルが選択されるので、個々の画像に適した色変換ルックアップテーブルを用いて色変換を行うことができ、好ましい色再現を実現することができる。特に、色変換ルックアップテーブルは不均等入力格子点をそれぞれ有しているので、各テーブルのデータ量を過度に大きくすることなく、個々の画像に適した精度の良い色変換を実現することができる。   According to this apparatus, since a table suitable for an image capturing scene is selected from a plurality of color conversion lookup tables, color conversion can be performed using a color conversion lookup table suitable for each image. And preferable color reproduction can be realized. In particular, since the color conversion lookup table has unequal input grid points, accurate color conversion suitable for individual images can be realized without excessively increasing the data amount of each table. it can.

前記テーブル格納部は、さらに、前記前記複数の撮影シーンに対応付けられた複数の入力値変換テーブルであって、前記画像データの画素値を色変換ルックアップテーブルの不均等入力格子点のいずれかに相当する格子点入力値に変換するための複数の入力値変換テーブルを格納しており、
前記テーブル選択部は、さらに、前記判定された撮影シーンに応じて、前記複数の入力値変換テーブルの中から適切な入力値変換テーブルを選択し、
前記色変換実行部は、
前記選択された入力値変換テーブルを用いて、前記画像データの画素値を前記選択された色変換ルックアップテーブルの不均等格子点のいずれかに相当する格子点入力値に確率的に変換する第1の変換部と、
前記選択された色変換ルックアップテーブルを用いて、前記格子点入力値をインク量データに変換する第2の変換部と、
を有するようにしてもよい。
The table storage unit is further a plurality of input value conversion tables associated with the plurality of shooting scenes, and the pixel values of the image data are any of unequal input grid points of a color conversion lookup table. A plurality of input value conversion tables for converting into grid point input values corresponding to
The table selection unit further selects an appropriate input value conversion table from the plurality of input value conversion tables according to the determined shooting scene,
The color conversion execution unit
Using the selected input value conversion table, the pixel value of the image data is probabilistically converted to a grid point input value corresponding to one of the non-uniform grid points of the selected color conversion lookup table. 1 conversion unit;
A second converter that converts the grid point input value into ink amount data using the selected color conversion lookup table;
You may make it have.

この構成では、第1の変換に用いる入力値変換テーブルと第2の変換に用いる色変換ルックアップテーブルを撮影シーンに応じて選択するので、個々の画像に適した色変換を行うことができる。   In this configuration, since the input value conversion table used for the first conversion and the color conversion lookup table used for the second conversion are selected according to the shooting scene, color conversion suitable for each image can be performed.

各入力値変換テーブルは、入力される画素値に応じて、色変換ルックアップテーブルの入力格子点のいずれかに相当する格子点入力値と、付加的な格子点判定値とを出力するテーブルであり、
前記第1の変換部は、
前記画像データの画素値を用いて前記選択された入力値変換テーブルを参照することによって、前記選択された色変換ルックアップテーブルの不均等格子点のいずれかに相当する格子点入力値と、前記付加的な格子点判定値とを取得するテーブル参照部と、
前記格子点判定値にランダムなノイズを加算するランダムノイズ加算部と、
前記ランダムノイズが加算された格子点判定値に応じて前記格子点入力値を調整することによって、前記色変換ルックアップテーブルに入力すべき格子点入力値を決定する格子点決定部と、
を備えるようにしてもよい。
Each input value conversion table is a table that outputs a grid point input value corresponding to one of the input grid points of the color conversion lookup table and an additional grid point determination value according to the input pixel value. Yes,
The first conversion unit includes:
By referring to the selected input value conversion table using the pixel value of the image data, a grid point input value corresponding to any of the non-uniform grid points of the selected color conversion lookup table, and A table reference unit for acquiring additional lattice point determination values;
A random noise adding unit that adds random noise to the lattice point determination value;
A lattice point determination unit that determines a lattice point input value to be input to the color conversion lookup table by adjusting the lattice point input value according to a lattice point determination value to which the random noise is added;
You may make it provide.

この構成では、第1の変換部において、画像データの画素値を、色変換ルックアップテーブルの不均等格子点のいずれかに相当する格子点入力値に確率的に変換することができる。   In this configuration, the first conversion unit can convert the pixel value of the image data to a lattice point input value corresponding to one of the unequal lattice points of the color conversion lookup table.

前記シーン判定部は、
前記画像データを解析して前記画像データを特徴付ける特徴的色相を決定する色相決定部と、
前記決定された特徴的色相を用いて前記撮影シーンを決定するシーン決定部と、
を備えるようにしてもよい。
The scene determination unit
A hue determination unit that analyzes the image data and determines a characteristic hue that characterizes the image data;
A scene determination unit that determines the shooting scene using the determined characteristic hue;
You may make it provide.

この構成によれば、画像データを解析することによって撮影シーンを判定することができる。   According to this configuration, the shooting scene can be determined by analyzing the image data.

前記シーン判定部は、更に、
前記画像データで表される画像内において前記決定された特徴的色相に対応する領域を特定する領域特定部と、
前記特定された領域のテクスチャを抽出するテクスチャ抽出部と、
を備え、
前記シーン決定部は、前記決定した特徴的色相に加えて、前記抽出したテクスチャを用いて前記撮影シーンを決定するようにしてもよい。
The scene determination unit further includes:
An area specifying unit for specifying an area corresponding to the determined characteristic hue in the image represented by the image data;
A texture extraction unit for extracting the texture of the specified region;
With
The scene determination unit may determine the shooting scene using the extracted texture in addition to the determined characteristic hue.

この構成によれば、特徴的色相とテクスチャとの両方を用いるので、より高精度なシーン判定を実行することができる。   According to this configuration, since both the characteristic hue and the texture are used, more accurate scene determination can be executed.

前記画像データファイルは、前記画像データで表される画像の撮影時に設定された撮影シーン設定値を含む付加情報を有しており、
前記シーン判定部は、前記付加情報内の前記撮影シーン設定値から前記撮影シーンを判定するようにしてもよい。
The image data file has additional information including a shooting scene setting value set when the image represented by the image data is shot.
The scene determination unit may determine the shooting scene from the shooting scene setting value in the additional information.

撮影時の設定値は信頼性が高いので、付加情報名の撮影シーン設定値を利用すれば、より信頼性の高いシーン判定結果を得ることができる。   Since the setting value at the time of shooting is high in reliability, a scene determination result with higher reliability can be obtained by using the shooting scene setting value of the additional information name.

なお、本発明は、種々の形態で実現することが可能であり、例えば、色変換方法及び装置、色変換処理を含む画像処理方法および画像処理装置、印刷方法および印刷装置、プリンタドライバ、印刷方法または印刷装置の機能を実現するためのコンピュータプログラム、そのコンピュータプログラムを記録した記録媒体等の形態で実現することができる。   The present invention can be realized in various forms, for example, a color conversion method and apparatus, an image processing method and image processing apparatus including a color conversion process, a printing method and a printing apparatus, a printer driver, and a printing method. Alternatively, the present invention can be realized in the form of a computer program for realizing the functions of the printing apparatus, a recording medium on which the computer program is recorded, or the like.

次に、本発明の実施の形態を実施例に基づいて以下の順序で説明する。
A.第1実施例:
B.第2実施例:
C.第3実施例:
D.撮影シーンの判定方法:
E.変形例:
Next, embodiments of the present invention will be described in the following order based on examples.
A. First embodiment:
B. Second embodiment:
C. Third embodiment:
D. How to determine the shooting scene:
E. Variations:

A.第1実施例:
図1は、本発明の一実施例としての画像処理システム100の構成を示す説明図である。このシステム100は、画像処理装置としてのコンピュータ200と、画像出力装置としてのプリンタ300とを含んでいる。
A. First embodiment:
FIG. 1 is an explanatory diagram showing a configuration of an image processing system 100 as an embodiment of the present invention. The system 100 includes a computer 200 as an image processing apparatus and a printer 300 as an image output apparatus.

コンピュータ200には、画像データファイルIMGに基づいて印刷データを生成するためのプリンタドライバ210がインストールされている。プリンタドライバ210は、解像度変換部220と、色変換部230と、ハーフトーン処理部240と、データ配列部250と、シーン判定部260とを備えている。解像度変換部220は、入力されたカラー画像データIMGの解像度を、色変換部230以降の処理に適した解像度に変換する機能を有する。色変換部230は、カラー画像データIMG(通常はRGBデータ)を複数のインクのインク量データに変換する。インク量データは、単位面積あたりの各インクのインク量を表すデータである。   The computer 200 is installed with a printer driver 210 for generating print data based on the image data file IMG. The printer driver 210 includes a resolution conversion unit 220, a color conversion unit 230, a halftone processing unit 240, a data arrangement unit 250, and a scene determination unit 260. The resolution conversion unit 220 has a function of converting the resolution of the input color image data IMG into a resolution suitable for processing after the color conversion unit 230. The color conversion unit 230 converts the color image data IMG (usually RGB data) into ink amount data of a plurality of inks. The ink amount data is data representing the ink amount of each ink per unit area.

シーン判定部260は、画像データファイルIMGに基づいて画像の撮影シーンを判定する。色変換部230は、判定された撮影シーンに適した色変換ルックアップテーブルを選択し、選択したテーブルを使用して色変換を実行する。撮影シーンの判定方法については、D節で詳述する。   The scene determination unit 260 determines an image shooting scene based on the image data file IMG. The color conversion unit 230 selects a color conversion lookup table suitable for the determined shooting scene, and performs color conversion using the selected table. The method for determining the shooting scene will be described in detail in section D.

ハーフトーン処理部240は、各インクのインク量データに基づいてハーフトーン処理を実行することによって、印刷画素毎のインクドットの形成状態を示すドットデータを生成する。データ配列部250は、これらのドットデータを配列して、印刷データPDとして出力する。プリンタドライバ210で生成された印刷データPDは、プリンタ300に供給される。印刷データPDは、印刷解像度を有する主走査ライン上の各画素についてインクドットの記録状態を表すドットデータと、副走査送り量を特定する副走査送り量データとを含んでいる。   The halftone processing unit 240 generates dot data indicating the ink dot formation state for each print pixel by executing halftone processing based on the ink amount data of each ink. The data arrangement unit 250 arranges these dot data and outputs them as print data PD. The print data PD generated by the printer driver 210 is supplied to the printer 300. The print data PD includes dot data representing the ink dot recording state for each pixel on the main scan line having the print resolution, and sub-scan feed amount data specifying the sub-scan feed amount.

プリンタドライバ210は、通常は、コンピュータ内のハードディスクなどの格納部に格納されたプログラムとして実装される。この場合には、プリンタドライバで作成された印刷データPDは、外部のプリンタに供給される。あるいは、プリンタ内にプリンタドライバが実装されている場合もある。この場合には、プリンタドライバで作成された印刷データPDは、プリンタ内部の印刷実行部(印刷機構)に供給される。なお、コンピュータ内に実装されたプリンタドライバの場合にも、外部プリンタを「印刷実行部」と呼ぶことが可能である。従って、プリンタドライバは、一般に、カラー画像データに基づいて、印刷実行部に供給する印刷データを生成する機能を有するものである。なお、プリンタドライバから解像度変換部220やデータ配列部250を省略してもよい。また、プリンタドライバの一部または全部をハードウェアで実現することも可能である。   The printer driver 210 is usually implemented as a program stored in a storage unit such as a hard disk in the computer. In this case, the print data PD created by the printer driver is supplied to an external printer. Alternatively, a printer driver may be installed in the printer. In this case, the print data PD created by the printer driver is supplied to a print execution unit (printing mechanism) inside the printer. Even in the case of a printer driver installed in a computer, an external printer can be called a “print execution unit”. Accordingly, the printer driver generally has a function of generating print data to be supplied to the print execution unit based on the color image data. Note that the resolution conversion unit 220 and the data arrangement unit 250 may be omitted from the printer driver. Also, part or all of the printer driver can be realized by hardware.

図2は、第1実施例における色変換部230の内部構成を示すブロック図である。色変換部230は、ルックアップテーブル(LUT)参照部410と、ルックアップテーブル選択部420と、複数の色変換ルックアップテーブル430と、補間実行部440とを備えている。   FIG. 2 is a block diagram illustrating an internal configuration of the color conversion unit 230 in the first embodiment. The color conversion unit 230 includes a lookup table (LUT) reference unit 410, a lookup table selection unit 420, a plurality of color conversion lookup tables 430, and an interpolation execution unit 440.

LUT選択部420は、複数の色変換LUTの中から、画像の撮影シーンに適したLUTを選択する。LUT参照部410は、選択された色変換LUTを参照して、入力画像データIMG(例えばRGBデータ)をインク量データINKに変換する。また、補間実行部440は、周知の補間法(例えば4面体補間法)を用い、画像データIMGの画素値(「入力画素値」と呼ぶ)に応じてインク量データINKを補間して、入力画素値に適した最終的なインク量データFINKを決定する。   The LUT selection unit 420 selects an LUT suitable for an image shooting scene from a plurality of color conversion LUTs. The LUT reference unit 410 converts input image data IMG (for example, RGB data) into ink amount data INK with reference to the selected color conversion LUT. Further, the interpolation execution unit 440 uses a known interpolation method (for example, tetrahedral interpolation method), interpolates the ink amount data INK according to the pixel value (referred to as “input pixel value”) of the image data IMG, and inputs it. Final ink amount data FINK suitable for the pixel value is determined.

色変換LUT430は、3つの入力画素値(例えばRGB値)の組を、複数のインク(例えばCMYK)のインク量データINKに変換するテーブルである。本実施例では、複数の撮影シーンに対応付けられた複数の色変換LUTが予め準備されている。   The color conversion LUT 430 is a table that converts a set of three input pixel values (for example, RGB values) into ink amount data INK for a plurality of inks (for example, CMYK). In this embodiment, a plurality of color conversion LUTs associated with a plurality of shooting scenes are prepared in advance.

図3は、複数の色変換LUTの入力格子点を示す説明図である。図3(A)は、均等格子を有する色変換LUTの例を示している。この均等格子色変換LUTの入力格子点は、RGB色空間で定義されており、すべての格子点が均等に配置されている。すなわち、この色変換LUTの入力格子では、R軸、G軸、B軸の各軸において、画素値が取り得るすべての値0〜255のうちから選択された複数の離散的な入力値が設定されており、隣接する入力値同士の差分は一定である。例えば、各軸毎に9個の離散的な入力値を設定した場合には、入力格子点の数は93 =729個である。また、各軸毎に17個の離散的な入力値を設定した場合には、入力格子点の数は173 =4913個である。なお、R=G=B=0の入力格子点は黒色を表す黒色点BKであり、R=G=B=255(最高値)の入力格子点は白色を表す白色点Wである。 FIG. 3 is an explanatory diagram showing input grid points of a plurality of color conversion LUTs. FIG. 3A shows an example of a color conversion LUT having a uniform grid. The input grid points of the uniform grid color conversion LUT are defined in the RGB color space, and all grid points are arranged equally. That is, in the input grid of this color conversion LUT, a plurality of discrete input values selected from all possible values 0 to 255 of the pixel value are set on each of the R axis, the G axis, and the B axis. The difference between adjacent input values is constant. For example, when nine discrete input values are set for each axis, the number of input grid points is 9 3 = 729. Further, when 17 discrete input values are set for each axis, the number of input grid points is 17 3 = 4913. The input grid point of R = G = B = 0 is a black point BK representing black, and the input grid point of R = G = B = 255 (maximum value) is a white point W representing white.

図3(B)は、夜景用の色変換LUT430aの例を示している。この夜景用色変換LUT430aは、各軸が密格子FLと粗格子CLとに区分されている。密格子FLは、各軸の最も値が小さな範囲(最もシャドー側)に設定されており、そのハイライト側に粗格子CLが設定されている。密格子FLは、入力値同士の差分(すなわち格子ピッチが比較的小さい格子であり、粗格子CLは入力値同士の差分が比較的大きい格子である。例えば、密格子FLにおける入力値同士の差分を8に設定し、粗格子CLにおける入力値同士の差分を密格子FLの2倍の16に設定することができる。   FIG. 3B shows an example of a color conversion LUT 430a for night scenes. In the night view color conversion LUT 430a, each axis is divided into a dense lattice FL and a coarse lattice CL. The dense lattice FL is set in the range where the value of each axis is the smallest (most shadow side), and the coarse lattice CL is set on the highlight side. The dense lattice FL is a difference between input values (that is, a lattice having a relatively small lattice pitch, and the coarse lattice CL is a lattice having a relatively large difference between input values. For example, a difference between input values in the dense lattice FL. Can be set to 8, and the difference between the input values in the coarse lattice CL can be set to 16 which is twice that of the dense lattice FL.

図3(B)の例では、密格子FLと粗格子CLの区分として、R,G,Bの各軸において同一の区分が適用されているが、3つの軸で異なる区分を適用してもよい。また、格子ピッチの異なる格子としては、密格子FLと粗格子CLの2種類に限らず、3種類以上の格子ピッチを利用してもよい。本明細書では、このような不均等な格子で構成される入力格子点を「不均等入力格子点」又は「不均一入力格子点」と呼ぶ。   In the example of FIG. 3B, the same division is applied to each of the R, G, and B axes as the division of the dense lattice FL and the coarse lattice CL, but different divisions may be applied to the three axes. Good. Further, the lattices having different lattice pitches are not limited to the two types of dense lattice FL and coarse lattice CL, and three or more types of lattice pitches may be used. In this specification, an input grid point composed of such an unequal grid is referred to as an “unequal input grid point” or an “non-uniform input grid point”.

図3(C)は、ポートレート用(人物写真用)の色変換LUT430bの例を示している。このポートレート用色変換LUT430bも、各軸が密格子FLと粗格子CLとに区分されている。密格子FLは、夜景用色変換LUT430aよりもややハイライト側に設定されており、密格子FLの両側に粗格子CLが設定されている。図3(D)は、空色シーン用の色変換LUT430cの例を示している。この空色シーン用色変換LUT430bも、各軸が密格子FLと粗格子CLとに区分されており、密格子FLはポートレート用色変換LUT430bよりもさらにハイライト側に設定されている。   FIG. 3C shows an example of a color conversion LUT 430b for portrait (for portraits). In the portrait color conversion LUT 430b, each axis is divided into a dense lattice FL and a coarse lattice CL. The dense grid FL is set slightly on the highlight side than the night scene color conversion LUT 430a, and the coarse grid CL is set on both sides of the dense grid FL. FIG. 3D shows an example of the color conversion LUT 430c for the sky blue scene. In the sky color scene color conversion LUT 430b, each axis is also divided into a dense lattice FL and a coarse lattice CL, and the dense lattice FL is set further on the highlight side than the portrait color conversion LUT 430b.

夜景用色変換LUT430aは、夜景の暗い色を高精度に再現することが可能である。ポートレート用色変換LUT430bは、肌色を高精度に再現することが可能である。また、空色シーン用色変換LUT430bは、明るい空色を高精度に再現することが可能である。なお、これらの3つの撮影シーン以外のシーンに適した色変換LUTを利用するようにしてもよい。このように、写真の撮影シーンに適した複数の色変換LUT430a〜430cを予め準備しておき、画像の撮影シーンに応じて適切な色変換LUTを選択するようにすれば、個々の画像の色を精度良く再現することができる。   The night scene color conversion LUT 430a can reproduce the dark color of the night scene with high accuracy. The portrait color conversion LUT 430b can reproduce the skin color with high accuracy. Also, the sky color scene color conversion LUT 430b can reproduce bright sky colors with high accuracy. Note that a color conversion LUT suitable for scenes other than these three shooting scenes may be used. As described above, if a plurality of color conversion LUTs 430a to 430c suitable for a photography scene are prepared in advance and an appropriate color conversion LUT is selected in accordance with the image photography scene, the color of each image can be selected. Can be accurately reproduced.

なお、密格子FLと粗格子CLとを有する不均等色変換LUTを使用する代わりに、すべてが密格子FL相当の細かい格子ピッチを有する均等色変換LUTを使用すれば、色の再現精度は向上する。しかし、このような密格子の均等色変換LUTは、入力格子点の数が膨大になり、必要とされるメモリ容量も膨大となってしまうという問題が生じる。これに対して、撮影シーンに適した不均等色変換LUTを使用すれば、メモリ容量を過度に増大させることなく、色再現の精度を向上させることが可能である。   In addition, instead of using a non-uniform color conversion LUT having a dense lattice FL and a coarse lattice CL, if all use a uniform color conversion LUT having a fine lattice pitch equivalent to the dense lattice FL, the color reproduction accuracy is improved. To do. However, such a dense grid uniform color conversion LUT has a problem that the number of input grid points is enormous and the required memory capacity is enormous. On the other hand, if an uneven color conversion LUT suitable for a shooting scene is used, it is possible to improve the color reproduction accuracy without excessively increasing the memory capacity.

複数の撮影シーンに対応付けられた複数の色変換LUT430a〜430cは、種々の態様でコンピュータにインストールすることができる。例えば、複数の色変換LUTをプリンタドライバ210のインストーラ用ファイル内に予め格納しておけば、ファイルのコピーによってコンピュータにインストールすることができる。あるいは、プリンタドライバ210のインストーラ用ファイルには均等格子色変換LUT(図3(A))のみを格納しておき、プリンタドライバ210のインストール時に均等格子色変換LUTの格子点を補間することによって複数の色変換LUT430a〜430cを作成するようにしてもよい。後者の方法では、プリンタドライバ210のインストール用ファイルの容量を削減することが可能である。   The plurality of color conversion LUTs 430a to 430c associated with the plurality of shooting scenes can be installed in the computer in various modes. For example, if a plurality of color conversion LUTs are stored in advance in the installer file of the printer driver 210, they can be installed on the computer by copying the files. Alternatively, only the uniform grid color conversion LUT (FIG. 3A) is stored in the installer file of the printer driver 210, and a plurality of grid points of the uniform grid color conversion LUT are interpolated when the printer driver 210 is installed. The color conversion LUTs 430a to 430c may be created. In the latter method, the capacity of the installation file for the printer driver 210 can be reduced.

以上のように、第1実施例では、画像データファイルIMGから判定された画像の撮影シーンに応じて複数の色変換LUTの中から適切な色変換LUTを選択し、選択された色変換LUTを使用して色変換を実行するようにしたので、個々の画像に適した色を精度良く再現することが可能である。特に、撮影シーンに適した色変換LUTとして、不均等入力格子点を有するテーブルを使用したので、テーブルのデータ量を過度に増大させることなく精度の良い色変換を実現することができる。また、この色変換で得られたインク量データを用いて印刷を実行するので、個々の画像に適した好ましい色再現を有する印刷物を作成することができる。   As described above, in the first embodiment, an appropriate color conversion LUT is selected from a plurality of color conversion LUTs according to the shooting scene of the image determined from the image data file IMG, and the selected color conversion LUT is selected. Since color conversion is executed using the color, it is possible to accurately reproduce colors suitable for individual images. In particular, since a table having unequal input grid points is used as the color conversion LUT suitable for the shooting scene, accurate color conversion can be realized without excessively increasing the data amount of the table. Further, since printing is executed using the ink amount data obtained by this color conversion, a printed matter having a preferable color reproduction suitable for each image can be created.

B.第2実施例:
図4は、第2実施例における色変換部230aの内部構成を示すブロック図である。この色変換部230aは、プレ変換部500と、ポスト変換部600とで構成されている。ポスト変換部600は、図2に示した第1実施例の色変換部230から補間実行部440を省略した構成を有している。
B. Second embodiment:
FIG. 4 is a block diagram showing an internal configuration of the color conversion unit 230a in the second embodiment. The color conversion unit 230a includes a pre-conversion unit 500 and a post-conversion unit 600. The post conversion unit 600 has a configuration in which the interpolation execution unit 440 is omitted from the color conversion unit 230 of the first embodiment shown in FIG.

プレ変換部500は、テーブル参照部510と、テーブル選択部520と、複数のプレ変換テーブル530と、ランダムノイズ加算部540と、グリッド値決定部550とを備えている。以下に説明するように、プレ変換部500は、入力画像データIMGの画素値を、色変換LUTの複数の格子点入力値のいずれかに確率的に変換する機能を有している。   The pre-conversion unit 500 includes a table reference unit 510, a table selection unit 520, a plurality of pre-conversion tables 530, a random noise addition unit 540, and a grid value determination unit 550. As will be described below, the pre-conversion unit 500 has a function of probabilistically converting the pixel value of the input image data IMG into one of a plurality of grid point input values of the color conversion LUT.

プレ変換部500のテーブル選択部520は、複数のプレ変換テーブル530の中から撮影シーンに適したテーブルを選択する。テーブル参照部510は、選択されたプレ変換テーブルを参照して、入力画像データIMG(例えばRGBデータ)の画素値を色変換ルックテップテーブルに適した格子点入力値LIに変換する。但し、プレ変換テーブル530の出力は、この格子点入力値LI(「仮の格子点入力値」とも呼ぶ)と、付加小数AFとを含んでいる。ランダムノイズ加算部540は、付加小数AFにランダムなノイズRNを加算する。グリッド値決定部550は、付加小数AFとランダムノイズRNとの加算値(AF+RN)が1.0以上か否かに応じて最終的な格子点入力値LIを決定する。すなわち、加算値(AF+RN)が1.0以上のときには仮の格子点入力値LIに1を加算した値を最終的な格子点入力値FLIとして採用し、一方、加算値(AF+RN)が1.0未満のときには仮の格子点入力値LIをそのまま最終的な格子点入力値FLIとして採用する。   The table selection unit 520 of the pre-conversion unit 500 selects a table suitable for the shooting scene from the plurality of pre-conversion tables 530. The table reference unit 510 converts the pixel value of the input image data IMG (for example, RGB data) into a grid point input value LI suitable for the color conversion look step table with reference to the selected pre-conversion table. However, the output of the pre-conversion table 530 includes the lattice point input value LI (also referred to as “temporary lattice point input value”) and the additional decimal point AF. The random noise adding unit 540 adds a random noise RN to the additional decimal point AF. The grid value determination unit 550 determines the final grid point input value LI depending on whether or not the added value (AF + RN) of the additional decimal number AF and the random noise RN is 1.0 or more. That is, when the addition value (AF + RN) is 1.0 or more, a value obtained by adding 1 to the temporary grid point input value LI is adopted as the final grid point input value FLI, while the addition value (AF + RN) is 1. When it is less than 0, the temporary grid point input value LI is directly adopted as the final grid point input value FLI.

なお、複数のプレ変換テーブル530と複数の色変換LUT430は、共通のテーブル格納部に格納されていると考えることが可能である。   Note that the plurality of pre-conversion tables 530 and the plurality of color conversion LUTs 430 can be considered to be stored in a common table storage unit.

図5は、プレ変換とポスト変換の概要を示す説明図である。図5(A)の白丸で示される格子点Pa〜Phは色変換LUTの入力格子点であり、黒丸は画像データIMGの画素値(Rx,Gx,Bx)で表される点Pxである。プレ変換では、入力画素値(Rx,Gx,Bx)が、近傍の8つの入力格子点Pa〜Phのいずれかに確率的に割り当てられる。図5(A)の下部には、R成分に関するプレ変換を示している。まず、入力画素値Rxは、プレ変換テーブルによって格子点入力値LIと付加小数AFとに変換される。格子点入力値LIの値は、入力画素値Rx以下の格子点入力値のうちで、入力画素値Rxに最も近い格子点入力値R1である。付加小数AFは、入力画素値Rxと格子点入力値LI(=R1)の差分(Rx−R1)を、2つの格子点入力値R1,R2の差分(R2−R1)で除した値に設定される。例えば、R1=8,R2=16,Rx=10のときには、AF=(10−8)/(16−8)=0.25である。付加小数AFには、0〜1の範囲のランダムノイズRNが加算される。前述したように、入力画素値Rxに対する最終的な格子点入力値FLIは、加算結果(AF+RN)に応じて2つの格子点入力値R1,R2のいずれかに設定される。   FIG. 5 is an explanatory diagram showing an outline of pre-conversion and post-conversion. Grid points Pa to Ph indicated by white circles in FIG. 5A are input grid points of the color conversion LUT, and black circles are points Px represented by pixel values (Rx, Gx, Bx) of the image data IMG. In the pre-transformation, the input pixel value (Rx, Gx, Bx) is probabilistically assigned to any of the eight nearby input grid points Pa to Ph. The lower part of FIG. 5 (A) shows pre-transformation relating to the R component. First, the input pixel value Rx is converted into the grid point input value LI and the additional decimal AF by the pre-conversion table. The value of the grid point input value LI is the grid point input value R1 closest to the input pixel value Rx among the grid point input values equal to or less than the input pixel value Rx. The additional decimal point AF is set to a value obtained by dividing the difference (Rx−R1) between the input pixel value Rx and the grid point input value LI (= R1) by the difference (R2−R1) between the two grid point input values R1 and R2. Is done. For example, when R1 = 8, R2 = 16, and Rx = 10, AF = (10−8) / (16−8) = 0.25. A random noise RN in the range of 0 to 1 is added to the additional decimal point AF. As described above, the final grid point input value FLI for the input pixel value Rx is set to one of the two grid point input values R1 and R2 according to the addition result (AF + RN).

このように、プレ変換で得られる最終格子点入力値FLIは、入力画素値Rxの値に応じて2つの値R1,R2のいずれかに設定されるが、これらの2つの値R1、R2のいずれかになるかはランダムノイズRNに依存する。従って、仮に同じ入力画素値Rxを有する画素が集合している一様な画像領域においても、プレ変換の結果は2つの値R1,R2がランダムに分散した結果となる。また、その一様な画像領域内の画素の格子点入力値FLIの平均的な値は、入力画素値Rxに等しいものとなる。   As described above, the final grid point input value FLI obtained by the pre-transformation is set to one of the two values R1 and R2 according to the value of the input pixel value Rx. It depends on the random noise RN. Therefore, even in a uniform image region in which pixels having the same input pixel value Rx are gathered, the result of the pre-transformation is a result of randomly distributing the two values R1 and R2. Further, the average value of the grid point input value FLI of the pixels in the uniform image region is equal to the input pixel value Rx.

図5(B)に示すように、ポスト変換では、プレ変換で決定された最終格子点入力値FLIが色変換LUT430の参照に使用される。従って、ポスト変換では、色変換LUT430で得られたインク量データINKに対する補間演算は不要である。この点は、第1実施例において補間演算が必要であった点との大きな差異である。   As shown in FIG. 5B, in the post-conversion, the final grid point input value FLI determined by the pre-conversion is used for referring to the color conversion LUT 430. Therefore, in the post conversion, an interpolation operation for the ink amount data INK obtained by the color conversion LUT 430 is not necessary. This point is a great difference from the point that the interpolation calculation is necessary in the first embodiment.

図6は、夜景用のプレ変換テーブル530aと夜景用の色変換LUT430aの一例を示している。プレ変換テーブル530aの入力は、0〜255の256個の画素値である。この入力値の全範囲は、密格子FLの範囲0〜32と、粗格子CLの範囲33〜255とに区分されている。プレ変換テーブル530aの出力は、格子点入力値LIと、付加小数AFの2つである。格子点入力値LI同士の差は、密格子FLの範囲では8であり、粗格子CLの範囲では16である。付加小数AFの値は、格子点入力値LI同士の差に依存している。すなわち、図6(A)の例では、密格子FLの範囲では入力画素値が1増加すると付加小数AFが0.125増加するのに対して、粗格子CLの範囲では入力画素値が1増加すると付加小数AFが約0.06増加する。このプレ変換テーブル530aを用いたプレ変換で得られる最終格子点入力値FLIは、0,8,16,24,32,48,64…240,255のいずれかの値となる。なお、プレ変換テーブル530aは、3つの色成分RGBに共通に使用される。   FIG. 6 shows an example of a pre-conversion table 530a for night scenes and a color conversion LUT 430a for night scenes. The input of the pre-conversion table 530a is 256 pixel values from 0 to 255. The entire range of the input value is divided into a range 0 to 32 of the dense lattice FL and a range 33 to 255 of the coarse lattice CL. There are two outputs of the pre-conversion table 530a: the grid point input value LI and the additional decimal number AF. The difference between the lattice point input values LI is 8 in the range of the dense lattice FL and 16 in the range of the coarse lattice CL. The value of the additional decimal AF depends on the difference between the grid point input values LI. That is, in the example of FIG. 6A, when the input pixel value increases by 1 in the range of the dense grid FL, the additional fractional AF increases by 0.125, whereas in the range of the coarse grid CL, the input pixel value increases by 1. Then, the additional fractional AF increases by about 0.06. The final grid point input value FLI obtained by the pre-conversion using the pre-conversion table 530a is any one of 0, 8, 16, 24, 32, 48, 64... 240, 255. Note that the pre-conversion table 530a is used in common for the three color components RGB.

図6(B)に示す夜景用の色変換LUT430aは、プレ変換で得られた最終格子点入力値FLIの値0,8,16,24,32,48,64…240,255のいずれかのみをRGB各成分の入力値としている。この色変換LUT430aは、図3(B)に示したものに相当する。図6(A),(B)の例から理解できるように、色変換LUTにおける密格子FL及び粗格子CLの区分と、プレ変換テーブルにおける密格子FL及び遡航しCLの区分とは、互いに一致するように設定されている。従って、プレ変換テーブルも、複数の撮影シーンに適したもの(すなわち、複数の不均等色変換LUTに対応するもの)が予め準備される。   The color conversion LUT 430a for night view shown in FIG. 6B is only one of the final grid point input values FLI values 0, 8, 16, 24, 32, 48, 64... 240, 255 obtained by the pre-conversion. Are input values of RGB components. The color conversion LUT 430a corresponds to that shown in FIG. As can be understood from the examples of FIGS. 6A and 6B, the classification of the dense grid FL and the coarse grid CL in the color conversion LUT and the classification of the dense grid FL and the backward CL in the pre-conversion table are mutually Set to match. Accordingly, a pre-conversion table suitable for a plurality of shooting scenes (that is, a table corresponding to a plurality of uneven color conversion LUTs) is prepared in advance.

図7は、図6(A)のプレ変換テーブル530aを用いたプレ変換の一例を示している。図7(A)に示すように、ここでは4×4画素の領域の入力画素値のR成分Rxが、一定値(=10)であると仮定している。このとき、図6(A)のプレ変換テーブル530aを参照すると、図7(B)に示すように、各画素において仮の格子点入力値NI=8,付加小数AF=0.25が得られる。図7(C)は、各画素の付加小数AFにランダムノイズRNを加算した結果を示している。図7(C)の4×4画素のうちで、ハッチングを付した画素は、付加小数AFとランダムノイズRNの加算結果が1.0以上である。そこで、これらの画素に関しては、図7(D)に示すように、最終格子点入力値FLIが仮の格子点入力値LI=8の次の値(=16)に設定される。なお、最終格子点入力値FLIの平均値は約10であり、入力画素値Rxとほぼ等しいことが理解できる。   FIG. 7 shows an example of pre-conversion using the pre-conversion table 530a of FIG. As shown in FIG. 7A, it is assumed here that the R component Rx of the input pixel value in the 4 × 4 pixel region is a constant value (= 10). At this time, referring to the pre-conversion table 530a in FIG. 6A, as shown in FIG. 7B, a temporary grid point input value NI = 8 and additional decimal number AF = 0.25 are obtained for each pixel. . FIG. 7C shows the result of adding random noise RN to the additional decimal point AF of each pixel. Among the 4 × 4 pixels in FIG. 7C, hatched pixels have an addition result of the additional decimal number AF and the random noise RN of 1.0 or more. Therefore, for these pixels, as shown in FIG. 7D, the final grid point input value FLI is set to a value (= 16) next to the temporary grid point input value LI = 8. It can be understood that the average value of the final grid point input value FLI is about 10, which is substantially equal to the input pixel value Rx.

図7(E)には、図6(A)に示した夜景用プレ変換テーブル530aの代わりに、粗格子CLのみを有するプレ変換テーブルを使用した場合の最終格子点入力値を比較例として示している。ここで使用したプレ変換テーブルは、最終格子点入力値FLIが0,16,32,48,64…240,255のいずれかの値を取るテーブルである。このようなプレ変換テーブルを用いて図7(A)の入力画素値Rxに対してプレ変換を行うと、各画素の最終格子点入力値は0又は16のいずれかの値となる。なお、図7(E)の最終格子点入力値の平均値が入力画素値Rx(=10)とほぼ等しい点は、図7(D)の場合と同じである。   FIG. 7E shows a final grid point input value as a comparative example when a pre-conversion table having only a coarse grid CL is used instead of the night view pre-conversion table 530a shown in FIG. ing. The pre-conversion table used here is a table in which the final grid point input value FLI takes any value of 0, 16, 32, 48, 64... 240, 255. When pre-conversion is performed on the input pixel value Rx in FIG. 7A using such a pre-conversion table, the final lattice point input value of each pixel becomes either 0 or 16. Note that the average value of the final grid point input values in FIG. 7E is substantially equal to the input pixel value Rx (= 10), which is the same as in FIG. 7D.

図7(D)に示した第2実施例の結果では、各画素の最終格子点入力値FLIが8と16のいずれかであり、画素同士の値の差は小さい。一方、図7(E)に示した比較例の結果では、各画素の最終格子点入力値が0と16のいずれかであり、画素同士の値の差は大きい。画素同士の値の差が大きいと、印刷物におけるインク量の局所的な変動が大きくなり、この変動が、印刷物を観察したときに画像のノイズとして見える可能性がある。このノイズは、プレ−ポスト変換に起因するものである。これに対して、図7(D)に示した第2実施例の結果では、最終格子点入力値の局所的な変動が少ないので、このようなプレ−ポスト変換に起因するノイズの発生を低減することが可能である。   In the result of the second embodiment shown in FIG. 7D, the final grid point input value FLI of each pixel is either 8 or 16, and the difference between the values of the pixels is small. On the other hand, in the result of the comparative example shown in FIG. 7E, the final grid point input value of each pixel is either 0 or 16, and the difference between the values of the pixels is large. When the difference between the values of the pixels is large, the local variation of the ink amount in the printed material becomes large, and this variation may be seen as image noise when the printed material is observed. This noise is due to pre-post conversion. On the other hand, in the result of the second embodiment shown in FIG. 7D, since the local fluctuation of the final grid point input value is small, the generation of noise due to such pre-post conversion is reduced. Is possible.

なお、複数の撮影シーンに対応付けられた複数のプレ変換テーブルも、色変換LUTと同様に、プリンタドライバ210をコンピュータにインストールするためのインストーラ用ファイル内に予め格納してくことができる。あるいは、プリンタドライバ210のインストーラ用ファイルには均等なプレ変換テーブルのみを格納しておき、プリンタドライバ210のインストール時に均等プレ変換テーブルの格子点を補間することによって複数の撮影シーン用のプレ変換テーブルを作成するようにしてもよい。   A plurality of pre-conversion tables associated with a plurality of shooting scenes can also be stored in advance in an installer file for installing the printer driver 210 in the computer, as in the color conversion LUT. Alternatively, only a uniform pre-conversion table is stored in the installer file of the printer driver 210, and a pre-conversion table for a plurality of shooting scenes is obtained by interpolating the grid points of the uniform pre-conversion table when the printer driver 210 is installed. You may make it create.

以上のように、第2実施例では、画像データファイルIMGから判定された画像の撮影シーンに応じて適切なプレ変換テーブル及び色変換LUTを選択し、選択されたプレ変換テーブル及び色変換LUTを使用して色変換を実行するようにしたので、個々の画像に適した色を精度良く再現することが可能である。また、プレ変換テーブルとして、密格子FLと粗格子CLとを含む不均等な格子点を有するテーブルを使用したので、密格子FLの部分においてプレ−ポスト変換に起因するノイズの発生を低減することが可能である。   As described above, in the second embodiment, an appropriate pre-conversion table and color conversion LUT are selected according to the shooting scene of the image determined from the image data file IMG, and the selected pre-conversion table and color conversion LUT are selected. Since color conversion is executed using the color, it is possible to accurately reproduce colors suitable for individual images. In addition, since a table having unequal lattice points including the dense lattice FL and the coarse lattice CL is used as the pre-conversion table, the generation of noise due to the pre-post conversion is reduced in the dense lattice FL portion. Is possible.

C.第3実施例:
図8は、第3実施例における夜景用のプレ変換テーブル530aと夜景用の色変換LUT430aの一例を示している。第3実施例は装置構成と処理の流れは第2実施例と同一であり、プレ変換テーブル及び色変換LUTの構成のみが第2実施例と若干異なる。
C. Third embodiment:
FIG. 8 shows an example of the night scene pre-conversion table 530a and the night scene color conversion LUT 430a in the third embodiment. In the third embodiment, the apparatus configuration and processing flow are the same as those in the second embodiment, and only the configurations of the pre-conversion table and the color conversion LUT are slightly different from those in the second embodiment.

図8(A)に示すように、第3実施例で使用するプレ変換テーブル530aは、格子点入力値LI(図6(A))の代わりに格子点番号LNを出力する。格子点番号LNは、0から始まる連続番号であり、図8(A)では0〜19の20個の値を取る。格子点番号LNの欄の括弧内には、説明の便宜上、格子点番号LNと第2実施例で使用した格子点入力値NIとの対応関係が示されている。図8(B)は、第3実施例で使用する色変換LUT430aを示している。この色変換LUT430aは、格子点入力値LI(図6(B))の代わりに格子点番号LNを入力としている。   As shown in FIG. 8A, the pre-conversion table 530a used in the third embodiment outputs a grid point number LN instead of the grid point input value LI (FIG. 6A). The grid point number LN is a continuous number starting from 0, and takes 20 values from 0 to 19 in FIG. In the parentheses in the column of the grid point number LN, the correspondence between the grid point number LN and the grid point input value NI used in the second embodiment is shown for convenience of explanation. FIG. 8B shows a color conversion LUT 430a used in the third embodiment. The color conversion LUT 430a receives a grid point number LN instead of the grid point input value LI (FIG. 6B).

図9(A)〜(D)は、図8(A)のプレ変換テーブル530aを用いたプレ変換の一例を示している。図7(A)〜(D)と比較すれば理解できるように、第3実施例では、プレ変換テーブルを参照することによって、格子点入力値LIの代わりに格子点番号LNが得られている点だけが第2実施例と異なる。図8(B)に示したように、色変換LUT430aの入力値は格子点番号LNになっているが、その出力であるインク量データの値は第2実施例(図6(B))と同じである。従って、第3実施例のプレ−ポスト変換で得られるインク量データは、第2実施例で得られるものと同一である。   9A to 9D show an example of pre-conversion using the pre-conversion table 530a in FIG. 8A. As can be understood by comparing with FIGS. 7A to 7D, in the third embodiment, the grid point number LN is obtained instead of the grid point input value LI by referring to the pre-conversion table. Only the point differs from the second embodiment. As shown in FIG. 8B, the input value of the color conversion LUT 430a is the grid point number LN, but the value of the ink amount data as the output is the same as in the second embodiment (FIG. 6B). The same. Therefore, the ink amount data obtained by the pre-post conversion in the third embodiment is the same as that obtained in the second embodiment.

このように、第3実施例では、入力画素値と同じ範囲(0〜255)の値を取る格子点入力値LIの代わりに、連続番号である格子点番号LNを使用している。この場合にも、第2実施例と同じ効果を得ることが可能である。また、格子点番号LNは、格子点入力値LIよりもビット数が少なくて済むので、プレ変換テーブルや色変換ルックテーブルのデータ容量を削減することができるという利点もある。   As described above, in the third embodiment, the grid point number LN, which is a serial number, is used instead of the grid point input value LI that takes values in the same range (0 to 255) as the input pixel value. Also in this case, the same effect as the second embodiment can be obtained. Further, since the grid point number LN has a smaller number of bits than the grid point input value LI, there is an advantage that the data capacity of the pre-conversion table and the color conversion look table can be reduced.

なお、第3実施例で使用した格子点番号LNも、広義の格子点入力値と考えることが可能である。すなわち、「格子点入力値」は、色変換ルックアップテーブルの入力格子点の値に一致する入力値であると定義することができる。   The grid point number LN used in the third embodiment can also be considered as a grid point input value in a broad sense. That is, the “grid point input value” can be defined as an input value that matches the value of the input grid point of the color conversion lookup table.

D.撮影シーンの判定方法:
図10〜図9を参照してシーン判定部260において実行されるシーン判定処理について説明する。図10はシーン判定部260によって実現される機能をブロック図にて示す説明図である。図11はシーン判定処理の処理ルーチンを示すフローチャートである。図12は空を中心とする画像データの縮小画像データバッファの一例を概念的に示す説明図である。図13は図12に示す縮小画像データバッファに対して2次元フーリエ変換を実行した結果得られるグラフの一例を示す説明図である。図14は海を中心とする画像データの縮小画像データバッファの一例を概念的に示す説明図である。図15は図14に示す縮小画像データバッファに対して2次元フーリエ変換を実行した結果得られるグラフの一例を示す説明図である。図16は画像データの特徴的色相と特徴的色相領域のテクスチャとを用いて撮影シーンを判定するためのマップの一例を示す説明図である。
D. How to determine the shooting scene:
The scene determination process executed in the scene determination unit 260 will be described with reference to FIGS. FIG. 10 is an explanatory diagram showing functions realized by the scene determination unit 260 in a block diagram. FIG. 11 is a flowchart showing a processing routine for scene determination processing. FIG. 12 is an explanatory diagram conceptually showing an example of a reduced image data buffer for image data centered on the sky. FIG. 13 is an explanatory diagram showing an example of a graph obtained as a result of executing the two-dimensional Fourier transform on the reduced image data buffer shown in FIG. FIG. 14 is an explanatory diagram conceptually showing an example of a reduced image data buffer for image data centered on the sea. FIG. 15 is an explanatory diagram showing an example of a graph obtained as a result of executing the two-dimensional Fourier transform on the reduced image data buffer shown in FIG. FIG. 16 is an explanatory diagram showing an example of a map for determining a photographic scene using the characteristic hue of image data and the texture of the characteristic hue area.

先ず、図10を参照してシーン判定部260によって実現される機能について説明する。解析用縮小画像データ生成部301は、入力された画像データからデータ解析用の縮小画像データを生成する。画像データ解析部302は、生成された解析用縮小データを一画素単位で解析し、解析用縮小画像データ(画像データ)を構成する各画素についてRGB成分を取得する。特徴的色相決定部303は、解析用縮小画像データの解析結果を用いて、画像データを特徴付ける色相である特徴的色相を決定する。テクスチャ抽出部304は、特徴的色相決定部303によって決定された特徴的色相に対応する画素領域を決定し、2次元フーリエ変換等によって解析用縮小画像データの周波数解析を実行し、特徴的色相に対応する画素領域のテクスチャを抽出する。シーン決定部305は、得られた特徴的色相と特徴的色相を形成する画素領域のテクスチャとに基づいて、撮影画像(画像データ)の撮影シーンを決定する。   First, functions realized by the scene determination unit 260 will be described with reference to FIG. The reduced image data generation unit for analysis 301 generates reduced image data for data analysis from the input image data. The image data analysis unit 302 analyzes the generated reduced data for analysis in units of one pixel, and acquires RGB components for each pixel constituting the reduced image data for analysis (image data). The characteristic hue determination unit 303 determines a characteristic hue that is a hue that characterizes the image data, using the analysis result of the analysis reduced image data. The texture extraction unit 304 determines a pixel region corresponding to the characteristic hue determined by the characteristic hue determination unit 303, performs frequency analysis of the reduced image data for analysis by two-dimensional Fourier transform or the like, and sets the characteristic hue. The texture of the corresponding pixel area is extracted. The scene determination unit 305 determines a photographic scene of the photographic image (image data) based on the obtained characteristic hue and the texture of the pixel area that forms the characteristic hue.

図11を参照して撮影シーン判定処理について説明する。解析用縮小画像データ生成部301は、入力画像データから画像データ解析用の縮小画像データバッファを生成する(ステップS110)。画像データ解析部302は、生成された縮小画像データバッファをn方向に走査して(図12および図14において横方向)、画像データの色相情報を取得する(ステップS120)。具体的には、画像データ解析部302は、各画素について座標位置(n,m)と関連付けてRGB値を取得する。   The shooting scene determination process will be described with reference to FIG. The reduced image data generation unit for analysis 301 generates a reduced image data buffer for image data analysis from the input image data (step S110). The image data analysis unit 302 scans the generated reduced image data buffer in the n direction (lateral direction in FIGS. 12 and 14), and acquires the hue information of the image data (step S120). Specifically, the image data analysis unit 302 acquires RGB values in association with the coordinate position (n, m) for each pixel.

特徴的色相決定部303は、取得した色相情報を用いて撮影画像を特徴付ける画像データの特徴的色相を決定する(ステップS130)。具体的には、特徴的色相決定部303は、縮小画像データバッファを構成する全画素に対して、注目画素と隣接画素(n方向)とが同一の色相を有している場合には着目画素を色相と対応付けてカウントし、注目画素と隣接画素(n方向)とが同一の色相を有していない場合には着目画素をカウントしない処理を実行する。本実施例では、青、緑、肌色、赤の色相についてそれぞれ判定され、色相が同一であるか否かはRGB値の厳密な同一性をもって判断されるのではなく、RGB値が所定の範囲内の値を有していれば同一の色相であると判断される。   The characteristic hue determination unit 303 determines the characteristic hue of the image data that characterizes the captured image using the acquired hue information (step S130). Specifically, the characteristic hue determination unit 303 determines the target pixel when the target pixel and the adjacent pixel (n direction) have the same hue with respect to all the pixels constituting the reduced image data buffer. Is correlated with the hue, and when the pixel of interest and the adjacent pixel (n direction) do not have the same hue, a process of not counting the pixel of interest is executed. In this embodiment, the hues of blue, green, skin color, and red are determined, and whether the hues are the same is not determined based on the strict identity of the RGB values, but the RGB values are within a predetermined range. If it has the value of, it is determined that the hue is the same.

特徴的色相決定部303は、縮小画像データバッファを構成する全画素数に対する各色相についてカウントされた画素数の割合を求め、予め用意されているマップを用いて画像データの特徴的色相を決定する。マップには、例えば、各色相を構成する画素数の割合と特徴的色相とが対応付けて記述されている。   The characteristic hue determination unit 303 obtains the ratio of the number of pixels counted for each hue with respect to the total number of pixels constituting the reduced image data buffer, and determines the characteristic hue of the image data using a map prepared in advance. . In the map, for example, the ratio of the number of pixels constituting each hue and the characteristic hue are described in association with each other.

図12および図14の例では、それぞれ空を中心とする風景画像の画像データ、海を中心とする風景画像の画像データであるから、特徴的色相は青となる。ただし、青の色相が空を表しているのか、海を表しているのかは不明である。   In the example of FIGS. 12 and 14, since the image data of the landscape image centered on the sky and the image data of the landscape image centered on the sea, the characteristic hue is blue. However, it is unclear whether the blue hue represents the sky or the ocean.

そこで、テクスチャ抽出部304は、決定された特徴的色相領域のテクスチャを取得する(ステップS140)。具体的には、テクスチャ抽出部304は、特徴的色相を構成する画素領域を特定し、特定した画素領域に対して周波数解析を実行する。特徴的色相を構成する画素領域は、色相情報に含まれている各画素の色相と座標位置の情報に基づいて特定される。特定された画素領域に対する周波数解析は、2次元フーリエ変換式を用いて解析用縮小画像データバッファのn方向およびm方向について実行される。   Therefore, the texture extraction unit 304 acquires the texture of the determined characteristic hue area (step S140). Specifically, the texture extraction unit 304 identifies a pixel area that forms a characteristic hue, and performs frequency analysis on the identified pixel area. The pixel area constituting the characteristic hue is specified based on the hue and coordinate position information of each pixel included in the hue information. The frequency analysis for the identified pixel region is executed in the n direction and m direction of the analysis reduced image data buffer using a two-dimensional Fourier transform equation.

図12〜図15を参照して2次元フーリエ変換により得られた結果と、テクスチャとの関係について説明する。図12に示す解析用縮小画像データバッファは、既述の通り空を中心とする風景を撮影した画像に対応しており、特徴的色相は青となる。この解析用縮小画像データバッファに対して2次元フーリエ変換を実行すると図13に示すグラフが得られる。一般的に、空に対応する画像は滑らかであり、あまり模様を有さないことが多い。したがって、低周波成分は多く、高周波成分は少なく現れる傾向にある。   The relationship between the results obtained by the two-dimensional Fourier transform and the texture will be described with reference to FIGS. The reduced image data buffer for analysis shown in FIG. 12 corresponds to an image obtained by photographing a landscape centering on the sky as described above, and the characteristic hue is blue. When the two-dimensional Fourier transform is performed on the analysis reduced image data buffer, a graph shown in FIG. 13 is obtained. In general, an image corresponding to the sky is smooth and often has no pattern. Therefore, there are many low frequency components and few high frequency components.

一方、図14に示す解析用縮小画像データバッファは、既述の通り海を中心とする風景を撮影した画像に対応しており、特徴的色相は青となる。この解析用縮小画像データバッファに対して2次元フーリエ変換を実行すると図15に示すグラフが得られる。一般的に、海に対応する画像はさざ波等に起因する模様を多く有する。したがって、低周波成分は少なく、高周波成分は多く現れる傾向にある。   On the other hand, the reduced image data buffer for analysis shown in FIG. 14 corresponds to an image of a landscape centered on the sea as described above, and the characteristic hue is blue. When the two-dimensional Fourier transform is performed on the analysis reduced image data buffer, a graph shown in FIG. 15 is obtained. Generally, an image corresponding to the sea has many patterns caused by ripples and the like. Therefore, there are few low frequency components and many high frequency components tend to appear.

これらの傾向を考慮すれば、たとえ特徴的色相が同一の色相であったとしても、特徴的色相を形成する領域のテクスチャを判定することによって、さらに画像の特徴(被写体)を特定することが可能である。したがって、撮影シーンを精度良く特定することができる。   Considering these tendencies, even if the characteristic hues are the same, it is possible to further identify the image features (subjects) by determining the texture of the area that forms the characteristic hues. It is. Therefore, the shooting scene can be specified with high accuracy.

シーン決定部305は、取得した特徴的色相と特徴的色相に対応する画素領域のテクスチャとを用いて撮影シーンを決定する(ステップS150)。撮影シーンの決定には、例えば図16に示すマップが用いられる。   The scene determination unit 305 determines a shooting scene using the acquired characteristic hue and the texture of the pixel region corresponding to the characteristic hue (step S150). For example, a map shown in FIG. 16 is used to determine the shooting scene.

(1)特徴的色相が緑であり、抽出されたテクスチャが高周波である場合には、山、平原といった緑を中心とした風景(緑色シーン)であると決定(判定)される。
(2)特徴的色相が青であり、抽出されたテクスチャが低周波である場合には、空を中心とした風景(空色シーン)であると決定される。
(3)特徴的色相が青であり、抽出されたテクスチャが高周波である場合には、海を中心とした風景(海色シーン)であると決定される。
(4)特徴的色相が肌色であり、抽出されたテクスチャが低周波である場合には、人を中心とした人物撮影シーン(ポートレート)であると決定される。
(5)特徴的色相が肌色であり、抽出されたテクスチャが高周波である場合には、浜辺もしくはそれに類する風景(浜辺シーン)であると決定される。
(6)特徴的色相がグレーであり、抽出されたテクスチャが低周波である場合には、夜景であると決定される。
(1) When the characteristic hue is green and the extracted texture has a high frequency, it is determined (determined) to be a landscape centered on green (green scene) such as a mountain or a plain.
(2) When the characteristic hue is blue and the extracted texture has a low frequency, it is determined that the scene is a sky-centered landscape (sky-blue scene).
(3) When the characteristic hue is blue and the extracted texture has a high frequency, it is determined that the scene is a landscape centered on the sea (sea color scene).
(4) When the characteristic hue is skin color and the extracted texture has a low frequency, it is determined that the scene is a person-captured scene (portrait) centered on a person.
(5) When the characteristic hue is skin color and the extracted texture has a high frequency, it is determined to be a beach or a similar landscape (beach scene).
(6) If the characteristic hue is gray and the extracted texture has a low frequency, it is determined to be a night scene.

なお、図16の例では6つの撮影シーンが判定されるので、これらの6つの撮影シーンにそれぞれ対応付けられた色変換LUT(第2、第3実施例では色変換LUT及びプレ変換テーブル)を準備することが好ましい。   Since six shooting scenes are determined in the example of FIG. 16, color conversion LUTs (color conversion LUTs and pre-conversion tables in the second and third embodiments) respectively associated with these six shooting scenes are determined. It is preferable to prepare.

以上説明したように、シーン判定部260は、画像データを解析して得られる特徴的色相と特徴的色相を構成する領域のテクスチャとを用いて撮影シーンを判定するので、画像データの解析に基づいて正確な撮影シーンの判定を行うことができる。   As described above, the scene determination unit 260 determines the shooting scene using the characteristic hue obtained by analyzing the image data and the texture of the region constituting the characteristic hue. Therefore, based on the analysis of the image data. Accurate shooting scene determination.

すなわち、各撮影シーンには撮影シーンを特徴付ける色相が存在するので、画像データを特徴付ける特徴的色相と各撮影シーンを特徴付ける色相とを対比することによって画像データから撮影シーンを特定することができる。また、画像データの特徴的色相により形成される領域を構成する構成画素について、周波数解析を行ってテクスチャを抽出するので、複数の撮影シーンが同一の色相を特徴的な色相とする場合であっても、撮影シーンを適切に決定することができる。   That is, since there is a hue that characterizes the shooting scene in each shooting scene, the shooting scene can be specified from the image data by comparing the characteristic hue that characterizes the image data with the hue that characterizes each shooting scene. In addition, since the texture is extracted by performing frequency analysis on the constituent pixels constituting the region formed by the characteristic hue of the image data, a plurality of shooting scenes have the same hue as the characteristic hue. Also, the shooting scene can be determined appropriately.

したがって、画像データファイルIMG(図1)に撮影シーンに関する情報が付されていない場合であっても、画像データのみから撮影シーンを特定することが可能となり、ユーザのてを煩わすことなく、画像データに対して撮影シーンに応じた色変換を実行することができる。   Therefore, even if the image data file IMG (FIG. 1) does not have information related to the shooting scene, it is possible to specify the shooting scene from only the image data, and the image data can be specified without bothering the user. Thus, color conversion corresponding to the shooting scene can be executed.

上記実施例では、画像データの特徴的色相および特徴的色相領域のテクスチャを用いて撮影シーンを判定するが、撮影時の撮影条件を記述する撮影時情報などの付加情報を用いても撮影シーンを判定しても良い。このような撮影時情報はディジタルスチルカメラにおいて設定された撮影シーンを記述することが可能である。したがって、撮影時情報に設定された撮影シーンと、画像データの解析によって得られた撮影シーンとのうちの一方又は双方を利用することによって、撮影シーンを特定し、撮影シーンに適した色変換を実行することができる。   In the above embodiment, the shooting scene is determined using the characteristic hue of the image data and the texture of the characteristic hue area. However, the shooting scene is also detected using additional information such as shooting time information describing shooting conditions at the time of shooting. You may judge. Such shooting time information can describe a shooting scene set in the digital still camera. Therefore, by using one or both of the shooting scene set in the shooting time information and the shooting scene obtained by analyzing the image data, the shooting scene is specified, and color conversion suitable for the shooting scene is performed. Can be executed.

上記実施例では、画像データの色相、周波数を求める際に解析用縮小画像データバッファを用いているが、原画像データ(非縮小画像データ)を用いても良い。かかる場合には、より正確な解析を実行することができる。   In the above embodiment, the analysis reduced image data buffer is used when obtaining the hue and frequency of the image data, but original image data (non-reduced image data) may be used. In such a case, more accurate analysis can be performed.

上記実施例では、特徴的色相とテクスチャとを用いて撮影シーンを特定しているが、特徴的色相だけを用いて、あるいは、特徴的色相と撮影時情報を用いて撮影シーンを決定しても良い。   In the above embodiment, the shooting scene is specified using the characteristic hue and texture. However, even if the shooting scene is determined using only the characteristic hue or using the characteristic hue and shooting time information. good.

上記実施例における人物を中心としたポートレート画像のシーン判定において、更に、全体の顔パーツのエッジに関するパターンマッチング、各々の顔パーツのパターンマッチング、学習済みニューラルネットワークによる判別を行っても良い。かかる場合には、処理対象の画像データが人物を中心とする撮影画像に対応する画像データであるか否かをより正確に判定することができる。また、人物領域から顔領域を抽出することが可能なので、顔領域が暗い場合には逆光であると判定し、通常の明度補正よりも暗部を明るくする補正(ガンマ補正)を実行してもよい。   In the scene determination of the portrait image centering on the person in the above embodiment, pattern matching regarding the edges of the entire face part, pattern matching of each face part, and determination using a learned neural network may be performed. In such a case, it can be more accurately determined whether or not the image data to be processed is image data corresponding to a photographed image centered on a person. Further, since the face area can be extracted from the person area, it is determined that the face area is dark when the face area is dark, and correction (gamma correction) that makes the dark part brighter than normal brightness correction may be executed. .

上記実施例では、テクスチャ抽出にあたって2次元フーリエ変換を用いているが、この他にもウェーブレット変換等を用いても良い。画像データの周波数解析(テクスチャ抽出)を実行することができれば良い。   In the above embodiment, two-dimensional Fourier transform is used for texture extraction, but wavelet transform or the like may be used in addition to this. It suffices if frequency analysis (texture extraction) of image data can be executed.

上記実施例では、画像データの特徴的色相を求め、特徴的色相によって形成されている領域(かかる領域を構成する構成画素)についてテクスチャ抽出(周波数解析)を実行しているが、画像データ全体に対してテクスチャ抽出を実行してもよい。かかる場合には、テクスチャ抽出の結果と、画像データ上の領域(位置)情報とを関連付けておき、特徴的色相の領域情報と照らし合わせることによって、特徴的色相を構成する領域のテクスチャを取得することができる。   In the above embodiment, the characteristic hue of the image data is obtained, and texture extraction (frequency analysis) is performed on the area formed by the characteristic hue (the constituent pixels constituting the area). Alternatively, texture extraction may be performed. In such a case, the texture of the region constituting the characteristic hue is acquired by associating the result of texture extraction with the region (position) information on the image data and comparing it with the region information of the characteristic hue. be able to.

E.変形例:
なお、この発明は上記の実施例や実施形態に限られるものではなく、その要旨を逸脱しない範囲において種々の態様において実施することが可能であり、例えば次のような変形も可能である。
E. Variations:
The present invention is not limited to the above-described examples and embodiments, and can be implemented in various modes without departing from the gist thereof. For example, the following modifications are possible.

E1.変形例1:
第2及び第3実施例では、プレ変換テーブルの参照で得られた仮の格子点入力値LIから最終的な格子点入力値FLIを決定する際に、付加小数AFにランダムノイズRNを加算していたが、付加小数AFの代わりに他の付加的な値を用いて最終的な格子点入力値を決定するようにしてもよい。例えば、付加的な値として、所定のビット数の整数値を入力画素値に応じて付与しておき、これにランダムノイズを加算した加算結果と所定の閾値とを比較することによって最終的な格子点入力値FLIを決定するようにしてもよい。本明細書では、最終的な格子点入力値FLIを決定するための付加的な値を「付加判定値」と呼ぶ。
E1. Modification 1:
In the second and third embodiments, when determining the final grid point input value FLI from the temporary grid point input value LI obtained by referring to the pre-conversion table, the random noise RN is added to the additional decimal point AF. However, the final lattice point input value may be determined using another additional value instead of the additional decimal AF. For example, as an additional value, an integer value of a predetermined number of bits is given according to the input pixel value, and a final lattice is obtained by comparing the addition result obtained by adding random noise to a predetermined threshold value. The point input value FLI may be determined. In this specification, an additional value for determining the final grid point input value FLI is referred to as an “addition determination value”.

E2.変形例2:
第2、第3実施例で使用したプレ変換方法の代わりに、他のプレ変換方法を使用することも可能である。例えば、第2、第3実施例ではランダムにノイズを発生させていたが、ディザパターンのような所定のノイズパターンに従ってノイズを発生させるようにしてもよい。プレ変換(第1の変換)としては、入力画像データの画素値を、撮影シーンに適した色変換ルックアップテーブルの不均等格子点のいずれかに相当する格子点入力値に確率的に変換する変換方法を採用することが可能である。
E2. Modification 2:
Instead of the pre-conversion method used in the second and third embodiments, other pre-conversion methods can be used. For example, in the second and third embodiments, noise is randomly generated. However, noise may be generated according to a predetermined noise pattern such as a dither pattern. As pre-conversion (first conversion), the pixel value of the input image data is stochastically converted to a grid point input value corresponding to one of the non-uniform grid points of the color conversion lookup table suitable for the shooting scene. It is possible to adopt a conversion method.

E3.変形例3:
上記実施例では、CMYKの4種類のインクを用いて印刷を行う場合について説明したが、本発明は、任意の種類のインクを用いる場合に適用可能である。
E3. Modification 3:
Although the case where printing is performed using four types of CMYK inks has been described in the above embodiment, the present invention can be applied to the case where any type of ink is used.

E4.変形例4:
上記実施例では、インクジェットプリンタに本発明を適用した例を説明したが、本発明はレーザプリンタなどの他の種類のプリンタにも適用可能であり、また、ファクシミリやコピー機にも適用可能である。なお、トナーを用いるプリンタに適用する場合には、トナーが「インク」に相当する。本明細書における「インク」という用語は、狭義のインクと、トナーとを含んでおり、一般に、ドットを形成するための画像形成剤(ドット形成剤)を意味している。
E4. Modification 4:
In the above embodiment, an example in which the present invention is applied to an ink jet printer has been described. However, the present invention can also be applied to other types of printers such as a laser printer, and can also be applied to a facsimile machine and a copier. . When applied to a printer using toner, the toner corresponds to “ink”. The term “ink” in this specification includes narrowly defined ink and toner, and generally means an image forming agent (dot forming agent) for forming dots.

本発明の一実施例としての画像処理システムの構成を示す説明図である。It is explanatory drawing which shows the structure of the image processing system as one Example of this invention. 第1実施例における色変換部の内部構成を示すブロック図である。It is a block diagram which shows the internal structure of the color conversion part in 1st Example. 複数の色変換LUTの入力格子点を示す説明図である。It is explanatory drawing which shows the input lattice point of several color conversion LUT. 第2実施例における色変換部の内部構成を示すブロック図である。It is a block diagram which shows the internal structure of the color conversion part in 2nd Example. プレ変換とポスト変換の概要を示す説明図である。It is explanatory drawing which shows the outline | summary of pre-conversion and post-conversion. 第2実施例における夜景用のプレ変換テーブルと夜景用の色変換LUTの一例を示す説明図である。It is explanatory drawing which shows an example of the pre-conversion table for night views and the color conversion LUT for night views in 2nd Example. 第2実施例におけるプレ変換の具体例を示す説明図である。It is explanatory drawing which shows the specific example of the preconversion in 2nd Example. 第3実施例における夜景用のプレ変換テーブルと夜景用の色変換LUTの一例を示す説明図である。It is explanatory drawing which shows an example of the pre-conversion table for night views and the color conversion LUT for night views in 3rd Example. 第3実施例におけるプレ変換の具体例を示す説明図である。It is explanatory drawing which shows the specific example of the preconversion in 3rd Example. シーン判定部260によって実現される機能をブロック図にて示す説明図である。It is explanatory drawing which shows the function implement | achieved by the scene determination part 260 with a block diagram. シーン判定処理の処理ルーチンを示すフローチャートである。It is a flowchart which shows the process routine of a scene determination process. 空を中心とする画像データの縮小画像データバッファの一例を概念的に示す説明図である。It is explanatory drawing which shows notionally an example of the reduction image data buffer of the image data centering on the sky. 図12に示す縮小画像データバッファに対して2次元フーリエ変換を実行した結果得られるグラフの一例を示す説明図である。It is explanatory drawing which shows an example of the graph obtained as a result of performing two-dimensional Fourier-transform with respect to the reduced image data buffer shown in FIG. 海を中心とする画像データの縮小画像データバッファの一例を概念的に示す説明図である。It is explanatory drawing which shows notionally an example of the reduction image data buffer of the image data centering on the sea. 図14に示す縮小画像データバッファに対して2次元フーリエ変換を実行した結果得られるグラフの一例を示す説明図である。It is explanatory drawing which shows an example of the graph obtained as a result of performing two-dimensional Fourier-transform with respect to the reduction image data buffer shown in FIG. 画像データの特徴的色相と特徴的色相領域のテクスチャとを用いて撮影シーンを判定するためのマップの一例を示す説明図である。It is explanatory drawing which shows an example of the map for determining a picked-up scene using the characteristic hue of image data, and the texture of a characteristic hue area | region.

符号の説明Explanation of symbols

100…画像処理システム
200…コンピュータ
210…プリンタドライバ
220…解像度変換部
230…色変換部
240…ハーフトーン処理部
250…データ配列部
260…シーン判定部
300…プリンタ
301…解析用縮小画像データ生成部
302…画像データ解析部
303…特徴的色相決定部
304…テクスチャ抽出部
305…シーン決定部
420…ルックアップテーブル選択部
430…色変換ルックアップテーブル
440…補間実行部
500…プレ変換部
510…テーブル参照部
520…テーブル選択部
530…プレ変換テーブル
540…ランダムノイズ加算部
550…グリッド値決定部
600…ポスト変換部
DESCRIPTION OF SYMBOLS 100 ... Image processing system 200 ... Computer 210 ... Printer driver 220 ... Resolution conversion part 230 ... Color conversion part 240 ... Halftone processing part 250 ... Data arrangement part 260 ... Scene determination part 300 ... Printer 301 ... Reduction image data generation part for analysis 302 ... Image data analysis unit 303 ... Characteristic hue determination unit 304 ... Texture extraction unit 305 ... Scene determination unit 420 ... Look-up table selection unit 430 ... Color conversion lookup table 440 ... Interpolation execution unit 500 ... Pre-conversion unit 510 ... Table Reference unit 520 ... Table selection unit 530 ... Pre-conversion table 540 ... Random noise addition unit 550 ... Grid value determination unit 600 ... Post-conversion unit

Claims (8)

画像データをインク量データに変換する色変換装置であって、
複数の撮影シーンに対応付けられた複数の色変換ルックアップテーブルを格納するテーブル格納部と、
画像データを含む画像データファイルに基づいて撮影シーンを判定するシーン判定部と、
前記判定された撮影シーンに応じて、前記複数の色変換ルックアップテーブルの中から適切な色変換ルックアップテーブルを選択するテーブル選択部と、
前記選択された色変換ルックアップテーブルを用いて前記画像データをインク量データに変換する色変換実行部と、
を備え、
前記複数の色変換ルックアップテーブルは、前記画像データの画素値に関して不均等な間隔を有する不均等入力格子点をそれぞれ有しているとともに、異なる撮影シーンに対応付けられた色変換ルックアップテーブル同士は互いに異なる不均等入力格子点を有していることを特徴とする色変換装置。
A color conversion device that converts image data into ink amount data,
A table storage unit for storing a plurality of color conversion lookup tables associated with a plurality of shooting scenes;
A scene determination unit that determines a shooting scene based on an image data file including image data;
A table selection unit that selects an appropriate color conversion lookup table from the plurality of color conversion lookup tables according to the determined shooting scene;
A color conversion execution unit that converts the image data into ink amount data using the selected color conversion lookup table;
With
The plurality of color conversion lookup tables each have unequal input grid points having unequal intervals with respect to pixel values of the image data, and color conversion lookup tables associated with different shooting scenes. Have different unequal input grid points.
請求項1記載の色変換装置であって、
前記テーブル格納部は、さらに、前記前記複数の撮影シーンに対応付けられた複数の入力値変換テーブルであって、前記画像データの画素値を色変換ルックアップテーブルの不均等入力格子点のいずれかに相当する格子点入力値に変換するための複数の入力値変換テーブルを格納しており、
前記テーブル選択部は、さらに、前記判定された撮影シーンに応じて、前記複数の入力値変換テーブルの中から適切な入力値変換テーブルを選択し、
前記色変換実行部は、
前記選択された入力値変換テーブルを用いて、前記画像データの画素値を前記選択された色変換ルックアップテーブルの不均等格子点のいずれかに相当する格子点入力値に確率的に変換する第1の変換部と、
前記選択された色変換ルックアップテーブルを用いて、前記格子点入力値をインク量データに変換する第2の変換部と、
を有する、色変換装置。
The color conversion device according to claim 1,
The table storage unit is further a plurality of input value conversion tables associated with the plurality of shooting scenes, and the pixel values of the image data are any of unequal input grid points of a color conversion lookup table. A plurality of input value conversion tables for converting into grid point input values corresponding to
The table selection unit further selects an appropriate input value conversion table from the plurality of input value conversion tables according to the determined shooting scene,
The color conversion execution unit
Using the selected input value conversion table, the pixel value of the image data is probabilistically converted to a grid point input value corresponding to one of the non-uniform grid points of the selected color conversion lookup table. 1 conversion unit;
A second converter that converts the grid point input value into ink amount data using the selected color conversion lookup table;
A color conversion device.
請求項2記載の色変換装置であって、
各入力値変換テーブルは、入力される画素値に応じて、色変換ルックアップテーブルの入力格子点のいずれかに相当する格子点入力値と、付加的な格子点判定値とを出力するテーブルであり、
前記第1の変換部は、
前記画像データの画素値を用いて前記選択された入力値変換テーブルを参照することによって、前記選択された色変換ルックアップテーブルの不均等格子点のいずれかに相当する格子点入力値と、前記付加的な格子点判定値とを取得するテーブル参照部と、
前記格子点判定値にランダムなノイズを加算するランダムノイズ加算部と、
前記ランダムノイズが加算された格子点判定値に応じて前記格子点入力値を調整することによって、前記色変換ルックアップテーブルに入力すべき格子点入力値を決定する格子点決定部と、
を備える、色変換装置。
The color conversion device according to claim 2,
Each input value conversion table is a table that outputs a grid point input value corresponding to one of the input grid points of the color conversion lookup table and an additional grid point determination value according to the input pixel value. Yes,
The first conversion unit includes:
By referring to the selected input value conversion table using the pixel value of the image data, a grid point input value corresponding to any of the non-uniform grid points of the selected color conversion lookup table, and A table reference unit for acquiring additional lattice point determination values;
A random noise adding unit that adds random noise to the lattice point determination value;
A lattice point determination unit that determines a lattice point input value to be input to the color conversion lookup table by adjusting the lattice point input value according to a lattice point determination value to which the random noise is added;
A color conversion device comprising:
請求項1ないし3のいずれかに記載の色変換装置であって、
前記シーン判定部は、
前記画像データを解析して前記画像データを特徴付ける特徴的色相を決定する色相決定部と、
前記決定された特徴的色相を用いて前記撮影シーンを決定するシーン決定部と、
を備える、色変換装置。
The color conversion device according to any one of claims 1 to 3,
The scene determination unit
A hue determination unit that analyzes the image data and determines a characteristic hue that characterizes the image data;
A scene determination unit that determines the shooting scene using the determined characteristic hue;
A color conversion device comprising:
請求項4記載の色変換装置であって、
前記シーン判定部は、更に、
前記画像データで表される画像内において前記決定された特徴的色相に対応する領域を特定する領域特定部と、
前記特定された領域のテクスチャを抽出するテクスチャ抽出部と、
を備え、
前記シーン決定部は、前記決定した特徴的色相に加えて、前記抽出したテクスチャを用いて前記撮影シーンを決定する、色変換装置。
色変換装置。
The color conversion device according to claim 4,
The scene determination unit further includes:
An area specifying unit for specifying an area corresponding to the determined characteristic hue in the image represented by the image data;
A texture extraction unit for extracting the texture of the specified region;
With
The scene determination unit is a color conversion device that determines the photographic scene using the extracted texture in addition to the determined characteristic hue.
Color conversion device.
請求項1ないし3のいずれかに記載の色変換装置であって、
前記画像データファイルは、前記画像データで表される画像の撮影時に設定された撮影シーン設定値を含む付加情報を有しており、
前記シーン判定部は、前記付加情報内の前記撮影シーン設定値から前記撮影シーンを判定する、色変換装置。
The color conversion device according to any one of claims 1 to 3,
The image data file has additional information including a shooting scene setting value set when the image represented by the image data is shot.
The scene determination unit is a color conversion device that determines the shooting scene from the shooting scene setting value in the additional information.
画像データをインク量データに変換する方法であって、
(a)画像データを含む画像データファイルに基づいて撮影シーンを判定する工程と、
(b)前記判定された撮影シーンに応じて、複数の撮影シーンに対応付けられた複数の色変換ルックアップテーブルの中から適切な色変換ルックアップテーブルを選択する工程と、
(c)前記選択された色変換ルックアップテーブルを用いて前記画像データをインク量データに変換する工程と、
を備え、
前記複数の色変換ルックアップテーブルは、前記画像データの画素値に関して不均等な間隔を有する不均等入力格子点をそれぞれ有しているとともに、異なる撮影シーンに対応付けられた色変換ルックアップテーブル同士は互いに異なる不均等入力格子点を有していることを特徴とする色変換方法。
A method for converting image data into ink amount data,
(A) determining a shooting scene based on an image data file including image data;
(B) selecting an appropriate color conversion lookup table from a plurality of color conversion lookup tables associated with a plurality of shooting scenes according to the determined shooting scene;
(C) converting the image data into ink amount data using the selected color conversion lookup table;
With
The plurality of color conversion lookup tables each have unequal input grid points having unequal intervals with respect to pixel values of the image data, and color conversion lookup tables associated with different shooting scenes. Have different unequal input grid points, and a color conversion method.
インクドットを記録することによって印刷を行うプリンタのための印刷データを作成するプリンタドライバであって、
画像データをインク量データに変換する色変換部と、
前記インク量データに基づいて、インクドットの形成状態を表すドットデータを生成するハーフトーン処理部と、
を備え、
前記色変換部は、
複数の撮影シーンに対応付けられた複数の色変換ルックアップテーブルを格納するテーブル格納部と、
画像データを含む画像データファイルに基づいて撮影シーンを判定するシーン判定部と、
前記判定された撮影シーンに応じて、前記複数の色変換ルックアップテーブルの中から適切な色変換ルックアップテーブルを選択するテーブル選択部と、
前記選択された色変換ルックアップテーブルを用いて前記画像データをインク量データに変換する色変換実行部と、
を備え、
前記複数の色変換ルックアップテーブルは、前記画像データの画素値に関して不均等な間隔を有する不均等入力格子点をそれぞれ有しているとともに、異なる撮影シーンに対応付けられた色変換ルックアップテーブル同士は互いに異なる不均等入力格子点を有していることを特徴とするプリンタドライバ。
A printer driver that creates print data for a printer that performs printing by recording ink dots,
A color converter for converting image data into ink amount data;
Based on the ink amount data, a halftone processing unit that generates dot data representing an ink dot formation state;
With
The color converter is
A table storage unit for storing a plurality of color conversion lookup tables associated with a plurality of shooting scenes;
A scene determination unit that determines a shooting scene based on an image data file including image data;
A table selection unit that selects an appropriate color conversion lookup table from the plurality of color conversion lookup tables according to the determined shooting scene;
A color conversion execution unit that converts the image data into ink amount data using the selected color conversion lookup table;
With
The plurality of color conversion lookup tables each have unequal input grid points having unequal intervals with respect to pixel values of the image data, and color conversion lookup tables associated with different shooting scenes. Has different unequal input grid points.
JP2005072775A 2005-03-15 2005-03-15 Color conversion using color conversion lookup table with ununiform input grating point appropriate to photographing scene Pending JP2006261756A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005072775A JP2006261756A (en) 2005-03-15 2005-03-15 Color conversion using color conversion lookup table with ununiform input grating point appropriate to photographing scene

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005072775A JP2006261756A (en) 2005-03-15 2005-03-15 Color conversion using color conversion lookup table with ununiform input grating point appropriate to photographing scene

Publications (1)

Publication Number Publication Date
JP2006261756A true JP2006261756A (en) 2006-09-28

Family

ID=37100560

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005072775A Pending JP2006261756A (en) 2005-03-15 2005-03-15 Color conversion using color conversion lookup table with ununiform input grating point appropriate to photographing scene

Country Status (1)

Country Link
JP (1) JP2006261756A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023010913A1 (en) * 2021-07-31 2023-02-09 荣耀终端有限公司 Image processing method and electronic device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023010913A1 (en) * 2021-07-31 2023-02-09 荣耀终端有限公司 Image processing method and electronic device

Similar Documents

Publication Publication Date Title
JP6650821B2 (en) Image processing apparatus, image processing method, and program
JP5058247B2 (en) Multi-level halftone screen and its set
US7626730B2 (en) Method of making a multilevel halftone screen
JP2015011585A (en) Image processing apparatus, image forming apparatus, image forming system, image processing method, and program
KR20080049806A (en) Image processing apparatus and method thereof
US10992837B2 (en) Information processing apparatus, control method thereof, and storage medium
US7027088B1 (en) Color to monotone conversion apparatus, color to monotone conversion method and a medium recording thereon a color to monotone conversion program
JP6976824B2 (en) Image processing equipment, image processing methods, and programs
JP3736535B2 (en) Document type identification device
JP4492706B2 (en) Judgment of shooting scene and image processing according to shooting scene
JP6192326B2 (en) Image processing apparatus and control method thereof
JP3925476B2 (en) Judgment of shooting scene and image processing according to shooting scene
US6169609B1 (en) Imaging device and method for implementing a color map with K-only black point while reducing interpolator artifacts
JP2006261756A (en) Color conversion using color conversion lookup table with ununiform input grating point appropriate to photographing scene
WO2011064291A1 (en) Method for generating print data and a colour printer system
JP6789890B2 (en) Information processing equipment, information processing methods and programs, and how to create multiplexing parameters
JP6163244B2 (en) Image processing apparatus, image forming apparatus, image processing program, and recording medium
JP2008306400A (en) Image processing method, image processing device, image forming apparatus, computer program, and record medium
JP2008271131A (en) Method and device for image processing, and image forming apparatus
JP4096989B2 (en) Judgment of shooting scene and image processing according to shooting scene
JP3547965B2 (en) Image processing method and apparatus
JP2005027016A (en) Image processing apparatus
JP2004112547A (en) Image processing apparatus, method therefor and recording medium
JP2002077646A (en) Apparatus and method of image processing
JP2009118161A (en) Image processing device, image processing method, program thereof