JP4974762B2 - Color processing apparatus and method - Google Patents

Color processing apparatus and method Download PDF

Info

Publication number
JP4974762B2
JP4974762B2 JP2007140563A JP2007140563A JP4974762B2 JP 4974762 B2 JP4974762 B2 JP 4974762B2 JP 2007140563 A JP2007140563 A JP 2007140563A JP 2007140563 A JP2007140563 A JP 2007140563A JP 4974762 B2 JP4974762 B2 JP 4974762B2
Authority
JP
Japan
Prior art keywords
color
input
input color
output
color gamut
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.)
Expired - Fee Related
Application number
JP2007140563A
Other languages
Japanese (ja)
Other versions
JP2008294930A (en
Inventor
慶 玉川
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 JP2007140563A priority Critical patent/JP4974762B2/en
Publication of JP2008294930A publication Critical patent/JP2008294930A/en
Application granted granted Critical
Publication of JP4974762B2 publication Critical patent/JP4974762B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Description

本発明は、入力色を出力色域へ写像するものに関する。   The present invention relates to mapping an input color to an output color gamut.

近年、パーソナルコンピュータの普及にともない、デジタルカメラやカラースキャナなどの画像入力機器によって画像を取得し、その画像をCRTディスプレイや液晶ディスプレイなどの画像表示機器に表示し、画像の確認や色調整を行うことが行われる。さらに、確認された画像をインクジェットプリンタや電子写真プリンタなどの画像出力機器によって出力することが行われる。画像表示機器に表示された画像出力機器によって出力された画像の色をマッチングさせるためには、各機器の色再現範囲(以下、色域と称す)の違いを補正する必要がある。この補正のために、色域マッピングと呼ばれる処理が行われる。   In recent years, with the spread of personal computers, an image is acquired by an image input device such as a digital camera or a color scanner, the image is displayed on an image display device such as a CRT display or a liquid crystal display, and the image is confirmed and the color is adjusted. Is done. Further, the confirmed image is output by an image output device such as an ink jet printer or an electrophotographic printer. In order to match the color of the image output by the image output device displayed on the image display device, it is necessary to correct the difference in the color reproduction range (hereinafter referred to as a color gamut) of each device. For this correction, a process called color gamut mapping is performed.

ここで、色域マッピング技術として、CIELAB色空間やCIELUV色空間などの知覚色空間において、無彩色軸上に設けた焦点に向かって、入力画像の各画素データ(以下、入力色と称す)をマッピングする方法(焦点方式)が知られている。   Here, as a color gamut mapping technique, each pixel data of an input image (hereinafter referred to as an input color) is directed toward a focal point provided on an achromatic color axis in a perceptual color space such as a CIELAB color space or a CIELV color space. A mapping method (focusing method) is known.

特許文献1には、知覚色空間において、無彩色軸上に設けた焦点と出力色域外の入力色とを直線で結び、該直線と出力色域との交点を算出する。そして、入力色を交点に写像することによって、出力色域外の入力色を出力色空間の色空間値で表現する。
特開2001−144975号公報
In Patent Document 1, in a perceptual color space, a focal point provided on an achromatic color axis and an input color outside the output color gamut are connected by a straight line, and an intersection of the straight line and the output color gamut is calculated. Then, the input color outside the output color gamut is represented by the color space value of the output color space by mapping the input color to the intersection.
JP 2001-144975 A

特許文献1では、入力色の写像先が、入力色、焦点、出力色域の表面形状に依存する。焦点の位置によっては、写像後の入力色において、著しい彩度低下が生じてしまうという問題があった。そのため、この方法を用いて画像を変換すると、特に、入力画像で鮮やかな色の彩度が出力画像において急激に低下し、画質の劣化が発生していた。   In Patent Document 1, the mapping destination of the input color depends on the input color, the focus, and the surface shape of the output color gamut. Depending on the position of the focal point, there has been a problem in that the input color after mapping has a significant reduction in saturation. For this reason, when an image is converted using this method, in particular, the saturation of a vivid color in the input image is abruptly reduced in the output image, resulting in degradation of image quality.

特許文献1による写像方法の例を図16に示す。図16は、入力色と等色相における入力色域および出力色域の断面図であり、横軸は彩度、縦軸は明度を表す。図16において、黒丸は入力色、白丸は無彩色軸上に設けた焦点を表し、入力色は、入力色と焦点とを結ぶ直線と出力色域表面との交点に写像される。つまり、写像後の入力色は、写像前に比べて急激にその彩度が低下してしまう。   An example of the mapping method according to Patent Document 1 is shown in FIG. FIG. 16 is a cross-sectional view of an input color gamut and an output color gamut in the same hue as the input color, where the horizontal axis represents saturation and the vertical axis represents lightness. In FIG. 16, a black circle represents an input color, and a white circle represents a focal point provided on an achromatic color axis, and the input color is mapped to an intersection of a straight line connecting the input color and the focal point and the output color gamut surface. That is, the saturation of the input color after mapping is drastically reduced as compared with that before mapping.

本発明は上記の課題を解決するためになされたものであり、入力色の彩度を維持するような方向に焦点を設け、該焦点に向かって入力色を写像することによって、出力画像における彩度低下を低減することを目的とする。   The present invention has been made in order to solve the above-described problems. A focus is provided in a direction that maintains the saturation of the input color, and the input color is mapped toward the focus, so that the saturation in the output image is achieved. The purpose is to reduce the decrease in degree.

上記目的を達成するための本発明に係る色処理装置は、入力色を出力色域内に写像する色処理装置であって、前記出力色域に基づき、前記入力色に応じた焦点の移動範囲として、前記出力色域において前記入力色と等しい色相を有する色相面における最大彩度点と等明度を有する点と、無彩色軸上に位置する点とで規定される線分を算出する焦点範囲算出手段と、前記入力色と前記線分とに基づき、前記入力色が前記線分より前記出力色域の内部に存在するか否かを判定する判定部と、前記判定部による判定の結果、前記入力色が前記線分より前記出力色域の外部に存在する場合、前記入力色から前記線分に垂直に降ろした垂線と前記線分との交点を該入力色に対する焦点として算出する焦点算出部と、前記算出された焦点を用いて前記入力色を出力色域へ写像する写像部とを具備する In order to achieve the above object, a color processing apparatus according to the present invention is a color processing apparatus that maps an input color into an output color gamut, and is based on the output color gamut as a focus movement range according to the input color. Focus range calculation for calculating a line segment defined by a point having the same saturation as the maximum saturation point on the hue plane having the same hue as the input color in the output color gamut and a point located on the achromatic color axis A determination unit for determining whether the input color is present in the output color gamut from the line segment based on the input color and the line segment; and a result of the determination by the determination unit, When an input color is present outside the output color gamut from the line segment, a focus calculation unit that calculates an intersection point of a perpendicular line dropped from the input color perpendicular to the line segment and the line segment as a focus for the input color And the input using the calculated focus Mapping the output gamut; and a mapping unit.

以上、説明したように本発明によれば、入力色の彩度を維持するような方向に焦点を設け、該焦点に向かって入力色を写像することによって、出力画像における階調性の低下および彩度低下を低減し、高品質な出力画像を得ることができるようにすることができる。   As described above, according to the present invention, the focus is set in a direction that maintains the saturation of the input color, and the input color is mapped toward the focus, thereby reducing the gradation in the output image and It is possible to reduce the saturation and to obtain a high-quality output image.

(第一の実施形態)
以下、本発明の実施の形態について図面を用いて詳細に説明する。
(First embodiment)
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

図2は、本実施形態の色処理装置を実現するハードウエア構成を示すブロック図である。   FIG. 2 is a block diagram showing a hardware configuration for realizing the color processing apparatus according to the present embodiment.

図2において、1は色処理装置である。101は、画像データ、入力色域データ、および出力色域データを取得するデータ取得部である。102は、データ取得部101で取得した画像データの各画素値(RGB値)から知覚色空間値(Lab値)を算出する知覚色空間値算出部である。103は、データ取得部101において取得した出力色域データの白色点、黒点および最大彩度点(以下、Cuspと称す)より、焦点の移動範囲を算出する焦点範囲算出部である。104は、焦点範囲算出部103において算出した焦点範囲に基づき、入力色を写像するか否か判定する判定部である。105は、判定部104において写像が必要と判定された入力色について、焦点を算出する焦点算出部である。106は、焦点算出部105において算出した焦点に基づき入力色を写像する写像部である。107は、写像部106において写像された知覚色空間値を対応するデバイスRGB値に変換する色空間値算出部である。108は、色空間値算出部107においてデバイスRGB値に変換された画像データを出力する出力部である。109は、データ取得部101で読み込む画像データを保持する画像データ保持部である。110は、データ取得部101で読み込む色域データを保持する色域データ保持部である。111は、演算途中の各データを一時的に保持するためのバッファメモリである。   In FIG. 2, reference numeral 1 denotes a color processing apparatus. A data acquisition unit 101 acquires image data, input color gamut data, and output color gamut data. Reference numeral 102 denotes a perceptual color space value calculation unit that calculates a perceptual color space value (Lab value) from each pixel value (RGB value) of the image data acquired by the data acquisition unit 101. Reference numeral 103 denotes a focus range calculation unit that calculates a focus movement range from the white point, black point, and maximum saturation point (hereinafter referred to as Cusp) of the output color gamut data acquired by the data acquisition unit 101. Reference numeral 104 denotes a determination unit that determines whether or not to map the input color based on the focus range calculated by the focus range calculation unit 103. Reference numeral 105 denotes a focus calculation unit that calculates a focus for an input color that is determined to require mapping by the determination unit 104. Reference numeral 106 denotes a mapping unit that maps the input color based on the focus calculated by the focus calculation unit 105. A color space value calculation unit 107 converts the perceptual color space value mapped by the mapping unit 106 into a corresponding device RGB value. Reference numeral 108 denotes an output unit that outputs the image data converted into the device RGB values by the color space value calculation unit 107. Reference numeral 109 denotes an image data holding unit that holds image data read by the data acquisition unit 101. A color gamut data holding unit 110 holds color gamut data read by the data acquisition unit 101. Reference numeral 111 denotes a buffer memory for temporarily holding each piece of data being calculated.

<色処理装置1における動作>
色処理装置1における動作について、図3を用いて説明する。図3は色処理装置における動作を示すフローチャートである。
<Operation in Color Processing Device 1>
The operation in the color processing apparatus 1 will be described with reference to FIG. FIG. 3 is a flowchart showing the operation of the color processing apparatus.

ステップS1において、データ取得部101は、画像データの変換に必要なデータを読み込む。読み込むデータは、画像データ、入力色域データ、および出力色域データである。   In step S1, the data acquisition unit 101 reads data necessary for image data conversion. The data to be read is image data, input color gamut data, and output color gamut data.

画像データは、画像データ保持部107に格納されている。以降の説明では、画像データはsRGB色空間のデータであるものとする。ただし、画像データは、他のRGB色空間やLab色空間のデータでも構わない。入力色域データは、色域データ保持部110に格納されており、図4に示すようなデバイスの各色信号値に対応するLab値の対を記述した対応表である。また、出力色域データは、色域データ保持部108に格納されており、入力色域データと同じように、図4に示すようなデバイスの各色信号値に対応するLab値の対を記述した対応表である。例えば、プリンタの色域データは一般的には以下のように作成する。まず、プリンタの色信号値R、G、Bをそれぞれ9スライス、あるいは、17スライスなど何スライスかに分割し、各スライスの格子点におけるRGB値をプリンタに入力し、所定の用紙に色票を印刷する。次に、該色票を測色器で測色し、XYZ値を得、Lab値に変換する。このようにして取得したLab値とデバイスRGB値とを対にして保存することで色域データを作成することができる。   The image data is stored in the image data holding unit 107. In the following description, it is assumed that the image data is sRGB color space data. However, the image data may be data in other RGB color space or Lab color space. The input color gamut data is stored in the color gamut data holding unit 110 and is a correspondence table describing pairs of Lab values corresponding to the respective color signal values of the device as shown in FIG. Further, the output color gamut data is stored in the color gamut data holding unit 108, and in the same manner as the input color gamut data, a pair of Lab values corresponding to each color signal value of the device as shown in FIG. 4 is described. It is a correspondence table. For example, printer color gamut data is generally created as follows. First, the color signal values R, G, and B of the printer are divided into several slices such as 9 slices or 17 slices, respectively, and the RGB values at the lattice points of each slice are input to the printer, and the color chart is printed on a predetermined sheet. Print. Next, the color chart is measured by a colorimeter to obtain an XYZ value and converted to a Lab value. The color gamut data can be created by storing the Lab value and the device RGB value acquired in this way as a pair.

ステップS2において、知覚色空間値算出部102は、ステップS1において取得した画像データの各画素値からXYZ値を算出し、このXYZ値と白色点のXYZ値からLab値を算出する。尚、sRGB色空間のRGB値からXYZ値への変換には、式(1)から式(4)を用いる。   In step S2, the perceptual color space value calculation unit 102 calculates an XYZ value from each pixel value of the image data acquired in step S1, and calculates a Lab value from the XYZ value and the XYZ value of the white point. It should be noted that equations (1) to (4) are used for conversion from RGB values to XYZ values in the sRGB color space.

Figure 0004974762
Figure 0004974762

Figure 0004974762
Figure 0004974762

Figure 0004974762
Figure 0004974762

Figure 0004974762
Figure 0004974762

また、XYZ値からLab値への変換には、式(5)から式(8)を用いる。尚、Lab値を算出する際の白色点のXYZ値は、D65のXYZ値を用いる。   In addition, Expressions (5) to (8) are used for conversion from XYZ values to Lab values. The XYZ value of D65 is used as the XYZ value of the white point when calculating the Lab value.

Figure 0004974762
Figure 0004974762

Figure 0004974762
Figure 0004974762

Figure 0004974762
Figure 0004974762

Figure 0004974762
Figure 0004974762

ここで、 here,

Figure 0004974762
Figure 0004974762

ステップS3において、焦点範囲算出部103は、ステップS1において取得した出力色域データとステップS2において算出した入力色のLab値に基づき焦点範囲を算出する。焦点範囲算出部103の具体的な処理内容については、後述する。   In step S3, the focal range calculation unit 103 calculates a focal range based on the output color gamut data acquired in step S1 and the Lab value of the input color calculated in step S2. Specific processing contents of the focal range calculation unit 103 will be described later.

ステップS4において、判定部104は、ステップS3において算出した焦点範囲から、入力色が圧縮範囲内に存在するか、範囲外に存在するかを判定する。判定部104の具体的な処理内容については、後述する。   In step S4, the determination unit 104 determines whether the input color exists within the compression range or outside the range from the focus range calculated in step S3. Specific processing contents of the determination unit 104 will be described later.

ステップS5において、焦点算出部105は、ステップS4において圧縮範囲内に存在すると判定された入力色について、焦点を算出する。焦点算出部105の具体的な処理内容については、後述する。   In step S5, the focus calculation unit 105 calculates a focus for the input color determined to be in the compression range in step S4. Specific processing contents of the focus calculation unit 105 will be described later.

ステップS6において、写像部106は、ステップS4において圧縮範囲内に存在すると判定された入力色を、ステップS5において算出した焦点に基づき写像する。写像部106の具体的な処理内容については、後述する。   In step S6, the mapping unit 106 maps the input color determined to be in the compression range in step S4 based on the focus calculated in step S5. Specific processing contents of the mapping unit 106 will be described later.

ステップS7において、色空間値算出部107は、ステップS6において写像した色値に対応する出力デバイスの色空間値、例えばRGB値を算出する。デバイス色空間値の算出は、例えば、デバイス色空間値とCIELAB値との関係を表すLUTや変換マトリクス等を用いて行う。LUTを用いる場合は、四面体補間、立方体補間等の既知の技術を用いて変換する。   In step S7, the color space value calculation unit 107 calculates a color space value of the output device corresponding to the color value mapped in step S6, for example, an RGB value. The device color space value is calculated using, for example, an LUT that represents the relationship between the device color space value and the CIELAB value, a conversion matrix, or the like. When the LUT is used, conversion is performed using a known technique such as tetrahedral interpolation or cube interpolation.

ステップS8において、出力部108は、ステップS5においてデバイスRGB値に変換された画像データを出力する。   In step S8, the output unit 108 outputs the image data converted into the device RGB values in step S5.

<焦点範囲算出部103における動作>
ステップS3の焦点範囲算出部103の動作について、図5を用いて詳細に説明する。図5は焦点範囲算出部103における処理を示すフローチャートである。
<Operation in Focus Range Calculation Unit 103>
The operation of the focus range calculation unit 103 in step S3 will be described in detail with reference to FIG. FIG. 5 is a flowchart showing processing in the focal range calculation unit 103.

ステップS101において、焦点範囲算出部103は、バッファメモリ111から入力色のLab値を取得する。ステップS102において、焦点範囲算出部103は、出力色域の白色点および黒点の明度値を取得する。ステップS103において、焦点範囲算出部103は、ステップS101で取得した入力色と等色相における出力色域のCuspの明度値および彩度値を取得する。   In step S <b> 101, the focal range calculation unit 103 acquires the Lab value of the input color from the buffer memory 111. In step S102, the focus range calculation unit 103 acquires brightness values of the white point and black point of the output color gamut. In step S103, the focus range calculation unit 103 acquires the brightness value and the saturation value of Cusp of the output color gamut in the same hue as the input color acquired in step S101.

ステップS104において、焦点範囲算出部103は、ステップS102において取得した白色点の明度値と、ステップS103において取得した出力色域のCuspの明度値および彩度値から、焦点範囲の端点を算出する。   In step S104, the focus range calculation unit 103 calculates the end point of the focus range from the brightness value of the white point acquired in step S102 and the brightness value and saturation value of the Cusp of the output color gamut acquired in step S103.

本実施形態では、図1に示すように、焦点移動範囲を出力色域の内側に設定する。そして、色相面において、焦点移動範囲は、2本設定される。焦点移動範囲は2つの端点によって規定される線分で示される。線分を規定する1つの端点は無彩色軸上に存在し、高明度および低明度に1つづつ設定される。もう一つの端点は、出力色値のCuspに基づき設定される。そして、Cuspに基づき設定された端点と、無彩色軸上の高明度または低明度に位置する端点とを結ぶことにより上記2つの線分が設定される。入力色がCuspの明度より高い明度を有する場合は、高明度に設定された端点を有する線分が焦点範囲として設定される。一方、入力色がCuspの明度より低い明度を有する場合は、低明度に設定された端点を有する線分が焦点範囲として設定される。   In the present embodiment, as shown in FIG. 1, the focus movement range is set inside the output color gamut. In the hue plane, two focus movement ranges are set. The focus movement range is indicated by a line segment defined by two end points. One end point defining the line segment exists on the achromatic color axis, and is set one by one for high lightness and low lightness. The other end point is set based on the output color value Cusp. Then, the above two line segments are set by connecting the end point set based on Cusp and the end point located at the high lightness or low lightness on the achromatic color axis. When the input color has a brightness higher than the brightness of Cusp, a line segment having an end point set to a high brightness is set as the focus range. On the other hand, when the input color has a lightness lower than that of Cusp, a line segment having an end point set to a low lightness is set as the focus range.

焦点範囲の一方の端点は、無彩色軸上にあり、明度値が式(9)で表される点とする。   One end point of the focus range is on the achromatic color axis, and the lightness value is a point represented by Expression (9).

Edge1=(LDstWhite−LDstBlack)×k+LDstBlack 式(9)
ここで、LEdge1は、焦点範囲の一方の端点の明度値を表す。また、LDstWhiteは、出力色域の白色点の明度値を表し、LDstBlackは、出力色域の黒点の明度値を表す。係数kは、たとえば0.8とする。
L Edge1 = (L DstWhite -L DstBlack ) × k + L DstBlack equation (9)
Here, L Edge1 represents the brightness value of one end point of the focal range. L DstWhite represents the brightness value of the white point of the output color gamut, and L DstBlack represents the brightness value of the black point of the output color gamut. The coefficient k is, for example, 0.8.

また、焦点範囲のもう一方の端点は、その明度値が出力色域のCuspと等しく、彩度値がCuspの彩度値の所定の割合、たとえば、Cuspの彩度値の8割に相当する点とする。   The other end point of the focal range has a lightness value equal to the output color gamut Cusp and a saturation value corresponding to a predetermined ratio of the Cusp saturation value, for example, 80% of the Cusp saturation value. Let it be a point.

ステップS105において、焦点範囲算出部103は、ステップS104で算出した端点の座標と入力色の座標とを一組にして、バッファメモリ111に保存する。このように、端点と入力色とを一組に保存するのは、入力色を写像する際に参照すべき焦点範囲と入力色とを関連付けるためである。   In step S <b> 105, the focal range calculation unit 103 stores the coordinates of the end points calculated in step S <b> 104 and the input color coordinates as a set in the buffer memory 111. In this way, the end points and the input color are stored in one set in order to associate the focus range to be referred to when the input color is mapped with the input color.

ステップS106において、焦点範囲算出部103は、画像の全ての画素について処理が終了したか否かを判定する。全ての画素について処理を終えていない場合には、ステップS101へ戻り、全ての画素について処理を終えている場合には、処理を終了する。   In step S <b> 106, the focal range calculation unit 103 determines whether the processing has been completed for all pixels of the image. If the process has not been completed for all pixels, the process returns to step S101. If the process has been completed for all pixels, the process ends.

以上のように、焦点範囲算出部103では、出力色域の白色点および黒点の明度値と、Cuspの明度値および彩度値から、焦点の移動範囲を算出する。   As described above, the focus range calculation unit 103 calculates the focus movement range from the brightness values of the white point and black point of the output color gamut and the brightness value and saturation value of Cusp.

<判定部104における動作>
次に、ステップS4の判定部104の動作について、図6を用いて詳細に説明する。図6は本発明の実施形態の判定部104における処理を示すフローチャートである。
<Operation in Determination Unit 104>
Next, operation | movement of the determination part 104 of step S4 is demonstrated in detail using FIG. FIG. 6 is a flowchart illustrating processing in the determination unit 104 according to the embodiment of this invention.

ステップS201において、判定部104は、バッファメモリ111から入力色のLab値を取得する。   In step S <b> 201, the determination unit 104 acquires the Lab value of the input color from the buffer memory 111.

ステップS202において、判定部104は、ステップS201で取得した入力色に対応する焦点範囲の端点の座標をバッファメモリ111から取得する。   In step S <b> 202, the determination unit 104 acquires the coordinates of the end point of the focal range corresponding to the input color acquired in step S <b> 201 from the buffer memory 111.

ステップS203において、判定部104は、入力色が圧縮範囲内に存在するか、範囲外に存在するかの判定結果を保存する圧縮フラグに0を代入し、初期化する。圧縮フラグが0のときは、入力色が範囲外に存在することを表すものとする。   In step S <b> 203, the determination unit 104 assigns 0 to a compression flag that stores a determination result as to whether the input color is within or outside the compression range, and initializes it. When the compression flag is 0, it indicates that the input color is out of range.

ステップS204において、判定部104は、ステップS201で取得した入力色と、ステップS202において取得した焦点範囲の端点から、入力色が圧縮範囲内に存在するか、範囲外に存在するかを判定する。入力色が範囲外に存在する場合とは、入力色が両端点を結ぶ線分より外側に位置するときである。つまり、入力色と等彩度における線分の明度が、入力色の明度より大きい場合である。したがって、線分を表す式に入力色の彩度値を代入し、そのときの線分の明度が、入力色の明度より小さければ、入力色が範囲外に存在すると判定できる。判定の結果、入力色が圧縮範囲内であれば、ステップS205へ進み、範囲外であれば、ステップS206へ進む。   In step S204, the determination unit 104 determines whether the input color is in the compression range or out of the range from the input color acquired in step S201 and the end point of the focal range acquired in step S202. The case where the input color exists outside the range is when the input color is located outside the line segment connecting the two end points. That is, the lightness of the line segment in the same saturation as the input color is greater than the lightness of the input color. Therefore, if the saturation value of the input color is substituted into the expression representing the line segment, and the lightness of the line segment at that time is smaller than the lightness of the input color, it can be determined that the input color exists outside the range. As a result of the determination, if the input color is within the compression range, the process proceeds to step S205, and if it is out of the range, the process proceeds to step S206.

ステップS205において、判定部104は、圧縮フラグに1を代入し、入力色の座標と一組にして、バッファメモリ111に保存する。ここで、圧縮フラグに代入した値1は、入力色が圧縮範囲内に存在することを表すものとする。   In step S <b> 205, the determination unit 104 assigns 1 to the compression flag, and stores it in the buffer memory 111 as a set with the coordinates of the input color. Here, a value of 1 assigned to the compression flag indicates that the input color exists within the compression range.

ステップS206において、判定部104は、画像の全ての画素について処理が終了したか否かを判定する。全ての画素について処理を終えていない場合には、ステップS201へ戻り、全ての画素について処理を終えている場合には、処理を終了する。   In step S206, the determination unit 104 determines whether or not the processing has been completed for all pixels of the image. If the process has not been completed for all pixels, the process returns to step S201, and if the process has been completed for all pixels, the process ends.

以上のように、判定部104では、入力色と焦点範囲の端点から、入力色が圧縮範囲内に存在するか、範囲外に存在するかを判定し、判定結果をバッファメモリ111に保存する。   As described above, the determination unit 104 determines whether the input color is in the compression range or out of the compression range from the end point of the input color and the focus range, and stores the determination result in the buffer memory 111.

<焦点算出部105における動作>
次に、ステップS5の焦点算出部105の動作について、図7を用いて詳細に説明する。図7は焦点算出部105における処理を示すフローチャートである。
<Operation in Focus Calculation Unit 105>
Next, the operation of the focus calculation unit 105 in step S5 will be described in detail with reference to FIG. FIG. 7 is a flowchart showing processing in the focus calculation unit 105.

ステップS301において、焦点算出部105は、バッファメモリ111から入力色のLab値を取得する。ステップS302において、焦点算出部105は、ステップS301で取得した入力色に対応する圧縮フラグをバッファメモリ111から取得し、フラグが1であった場合、すなわち、入力色が圧縮範囲内であった場合には、ステップS303へ進む。一方、フラグが0であった場合、すなわち、入力色が範囲外であった場合には、ステップS306へ進む。   In step S <b> 301, the focus calculation unit 105 acquires the Lab value of the input color from the buffer memory 111. In step S302, the focus calculation unit 105 acquires a compression flag corresponding to the input color acquired in step S301 from the buffer memory 111. When the flag is 1, that is, when the input color is within the compression range. In step S303, the process proceeds to step S303. On the other hand, if the flag is 0, that is, if the input color is out of range, the process proceeds to step S306.

ステップS303において、焦点算出部105は、ステップS301で取得した入力色に対応する焦点範囲の端点の座標をバッファメモリ111から取得する。ステップS304において、焦点算出部105は、ステップS301で取得した入力色と、ステップS302において取得した焦点範囲の端点から、焦点を算出する。焦点は、焦点範囲の両端点を結ぶ線分と、入力色から該線分に下ろした垂線との交点とする。   In step S303, the focus calculation unit 105 acquires from the buffer memory 111 the coordinates of the end points of the focus range corresponding to the input color acquired in step S301. In step S304, the focus calculation unit 105 calculates a focus from the input color acquired in step S301 and the end point of the focus range acquired in step S302. The focal point is an intersection of a line segment connecting both end points of the focal range and a perpendicular line drawn from the input color to the line segment.

ステップS305において、焦点算出部105は、ステップS304で算出した焦点を、入力色と一組にして、バッファメモリ111に保存する。ステップS306において、焦点算出部105は、画像の全ての画素について処理が終了したか否かを判定する。全ての画素について処理を終えていない場合には、ステップS301へ戻り、全ての画素について処理を終えている場合には、処理を終了する。   In step S305, the focus calculation unit 105 stores the focus calculated in step S304 in the buffer memory 111 as a set with the input color. In step S306, the focus calculation unit 105 determines whether the processing has been completed for all the pixels of the image. If the process has not been completed for all the pixels, the process returns to step S301. If the process has been completed for all the pixels, the process ends.

以上のように、焦点算出部105では、焦点範囲の両端点を結ぶ線分と、入力色から該線分に下ろした垂線との交点を算出し、該交点を焦点としてバッファメモリ111に保存する。   As described above, the focus calculation unit 105 calculates the intersection point between the line segment connecting the two end points of the focus range and the perpendicular line drawn from the input color to the line segment, and stores the intersection point in the buffer memory 111 as the focus point. .

<写像部106における動作>
次に、ステップS6の写像部106の動作について、図8を用いて詳細に説明する。図8は写像部106における処理を示すフローチャートである。
<Operation in Mapping Unit 106>
Next, the operation of the mapping unit 106 in step S6 will be described in detail with reference to FIG. FIG. 8 is a flowchart showing processing in the mapping unit 106.

ステップS401において、写像部106は、バッファメモリ111から入力色のLab値を取得する。ステップS402において、写像部106は、ステップS401で取得した入力色に対応する圧縮フラグをバッファメモリ111から取得し、フラグが1であった場合、すなわち、入力色が圧縮範囲内であった場合には、ステップS403へ進む。一方、フラグが0であった場合、すなわち、入力色が範囲外であった場合には、ステップS406へ進む。   In step S <b> 401, the mapping unit 106 acquires the Lab value of the input color from the buffer memory 111. In step S402, the mapping unit 106 acquires a compression flag corresponding to the input color acquired in step S401 from the buffer memory 111, and when the flag is 1, that is, when the input color is within the compression range. Advances to step S403. On the other hand, if the flag is 0, that is, if the input color is out of range, the process proceeds to step S406.

ステップS403において、写像部106は、ステップS401で取得した入力色に対応する焦点をバッファメモリ111から取得する。   In step S <b> 403, the mapping unit 106 acquires the focus corresponding to the input color acquired in step S <b> 401 from the buffer memory 111.

ステップS404において、写像部106は、ステップS401で取得した入力色と、ステップS403において取得した焦点とを結ぶ直線の方程式の係数を算出する。以下、この直線を写像軸と称す。ステップS405において、写像部106は、ステップS404で得た写像軸と入力色域表面との交点を算出する。ステップS406において、写像部106は、ステップS405と同様に写像軸と出力色域表面との交点を算出する。   In step S404, the mapping unit 106 calculates a coefficient of a linear equation connecting the input color acquired in step S401 and the focus acquired in step S403. Hereinafter, this straight line is referred to as a mapping axis. In step S405, the mapping unit 106 calculates an intersection between the mapping axis obtained in step S404 and the input color gamut surface. In step S406, the mapping unit 106 calculates the intersection between the mapping axis and the output color gamut surface as in step S405.

ステップS407において、写像部106は、入力色、焦点、入力色域表面と写像軸との交点、および、出力色域表面と写像軸との交点から、入力色の圧縮量を算出する。入力色の圧縮は、入力色をP、その写像先をP’、入力色域表面と写像軸との交点をC、出力色域表面と写像軸との交点をC、焦点をFとしたとき、式(10)が成り立つように行う。 In step S407, the mapping unit 106 calculates the compression amount of the input color from the input color, the focus, the intersection of the input color gamut surface and the mapping axis, and the intersection of the output color gamut surface and the mapping axis. Input color compression is as follows: input color is P, mapping destination is P ', intersection of input gamut surface and mapping axis is C S , intersection of output gamut surface and mapping axis is C D , and focus is F When this is done, Equation (10) is satisfied.

Figure 0004974762
Figure 0004974762

すなわち、入力色域表面と写像軸との交点から焦点までの距離と、入力色から焦点までの距離の比と、出力色域表面と写像軸との交点から焦点までの距離と、写像先の点から焦点までの距離の比が等しくなるように圧縮する。   That is, the distance from the intersection of the input color gamut surface and the mapping axis to the focal point, the ratio of the distance from the input color to the focal point, the distance from the intersection of the output color gamut surface and the mapping axis to the focal point, and the mapping destination Compress so that the ratio of the distance from the point to the focal point is equal.

したがって、圧縮量は、式(11)により算出することができる。   Therefore, the compression amount can be calculated by the equation (11).

Figure 0004974762
Figure 0004974762

ステップS408において、写像部106は、入力色と焦点から求まる写像方向と、ステップS407で求めた圧縮量とから、入力色の写像先を算出し、バッファメモリ111に保存する。   In step S <b> 408, the mapping unit 106 calculates a mapping destination of the input color from the mapping direction obtained from the input color and focus and the compression amount obtained in step S <b> 407, and stores it in the buffer memory 111.

ステップS409において、写像部106は、画像の全ての画素について処理が終了したか否かを判定する。全ての画素について処理を終えていない場合には、ステップS401へ戻り、全ての画素について処理を終えている場合には、処理を終了する。   In step S409, the mapping unit 106 determines whether or not processing has been completed for all pixels of the image. If the process has not been completed for all pixels, the process returns to step S401, and if the process has been completed for all pixels, the process ends.

以上のように、写像部106では、入力色と焦点から写像軸を算出し、該写像軸と入力色域表面および出力色域表面との交点、ならびに、入力色と焦点とから算出した圧縮量、および、写像方向に基づき入力色の写像先を算出する。   As described above, the mapping unit 106 calculates the mapping axis from the input color and the focal point, and the compression amount calculated from the intersection of the mapping axis, the input color gamut surface and the output color gamut surface, and the input color and the focal point. And the mapping destination of the input color is calculated based on the mapping direction.

上述の処理を経ることで、入力色は、図1に例示する点に写像される。図1は、入力色と等色相における入力色域および出力色域の断面図であり、横軸は彩度、縦軸は明度を表す。図1において、点線で記す線分は焦点の移動範囲を示し、白丸で記す点は入力色から該線分に下ろした垂線との交点、すなわち、入力色を写像する際の焦点を示す。該焦点と入力色とを結ぶ直線と、入力色域および出力色域との交点を用いて求めた圧縮量から、四角で示す点、すなわち、入力色の写像先が算出される。   Through the above processing, the input color is mapped to the points illustrated in FIG. FIG. 1 is a cross-sectional view of an input color gamut and an output color gamut in the same hue as the input color, where the horizontal axis represents saturation and the vertical axis represents lightness. In FIG. 1, a line segment indicated by a dotted line indicates a moving range of the focus, and a point indicated by a white circle indicates an intersection with a perpendicular line dropped from the input color to the line segment, that is, a focus when the input color is mapped. A point indicated by a square, that is, a mapping destination of the input color, is calculated from the compression amount obtained by using the intersection of the focus and the input color and the input color gamut and the output color gamut.

以上、本実施形態によれば、出力色域データに基づき設定した線分に対して垂直方向に入力色を写像することで、入力色は写像前と近い点に写像されるため、写像後の入力色における彩度低下を軽減することができる。したがって、入力画像と近い鮮やかさで出力画像を再現することができる。また、本実施形態によれば、彩度低下を軽減することから、写像後における階調の潰れを緩和することができる。   As described above, according to the present embodiment, by mapping the input color in the vertical direction with respect to the line segment set based on the output color gamut data, the input color is mapped to a point close to that before mapping. It is possible to reduce the saturation in the input color. Therefore, the output image can be reproduced with vividness close to that of the input image. In addition, according to the present embodiment, reduction in saturation is reduced, so that gradation collapse after mapping can be reduced.

図9に、sRGB色空間の格子点を先行技術によってプリンタ色域に写像したときの色域表面の格子を、a−b平面上に示す。一般に、減法混色系の色空間に比べて加法混色系の色空間は明度が高く、特に、GreenやCyanではその差が顕著である。そのため、先行技術によって入力色を写像すると、入力色域表面の各格子点が出力色域表面に対して斜めに投影される。このとき、各格子点と焦点とを結ぶ直線と、出力色域表面とのなす角が小さいほど、入力色の彩度低下は顕著になるため、入力色域のCusp付近ほど彩度低下が大きくなる。そのため、写像後のCusp付近で階調の潰れが発生してしまう。これに対して、本実施形態では、設定した線分に対して垂直方向に入力色を写像するため、図10に示すように、色域表面における階調の潰れを緩和することができる。図10において、a−b平面上に示すメッシュは、本手法による写像後の色域表面の格子を表す。入力色空間、および、出力色空間は図9と同様である。   FIG. 9 shows a grid on the surface of the color gamut when grid points in the sRGB color space are mapped to the printer color gamut according to the prior art. In general, the color space of the additive color mixing system has higher brightness than the color space of the subtractive color mixing system, and the difference is particularly remarkable in Green and Cyan. Therefore, when the input color is mapped by the prior art, each grid point on the surface of the input color gamut is projected obliquely on the surface of the output color gamut. At this time, the smaller the angle formed between the straight line connecting each grid point and the focal point and the surface of the output color gamut, the more significant the decrease in the saturation of the input color. Become. For this reason, gradation collapse occurs in the vicinity of Cusp after mapping. On the other hand, in this embodiment, since the input color is mapped in the vertical direction with respect to the set line segment, as shown in FIG. 10, the collapse of gradation on the surface of the color gamut can be reduced. In FIG. 10, the mesh shown on the ab plane represents a lattice on the surface of the color gamut after mapping by this method. The input color space and the output color space are the same as those in FIG.

また、本実施形態は、入力色を忠実に維持する領域(以下、維持領域と称す)の境界付近における明度の階調悪化を防止することができる。   In addition, the present embodiment can prevent lightness from being deteriorated in the vicinity of the boundary of an area where the input color is faithfully maintained (hereinafter referred to as a maintenance area).

先行技術では、焦点から交点までの距離に所定の係数をかけた距離までを維持領域としていた。したがって、焦点から維持領域の境界までの距離は、出力色域表面の形状に応じて増減する。そのため、出力色域表面に凸凹がある場合、図11に示すように維持領域の境界にも凹凸が生じ、そのために、境界付近における明度の階調性が悪化していた。例えば、出力機器で印刷したパッチの測定誤差や測定ミスなどや、電子写真系プリンタや顔料インクを用いたプリンタのように色材の特性によって、色域表面に凹凸が生じる。   In the prior art, the maintenance area is a distance obtained by multiplying a distance from the focal point to the intersection by a predetermined coefficient. Therefore, the distance from the focal point to the boundary of the maintenance area increases or decreases according to the shape of the output color gamut surface. Therefore, when the surface of the output color gamut has irregularities, as shown in FIG. 11, irregularities are also generated at the boundary of the maintenance area, and therefore the gradation of brightness near the boundary is deteriorated. For example, irregularities occur on the surface of the color gamut due to measurement errors and measurement errors of patches printed by the output device, and characteristics of color materials such as electrophotographic printers and printers using pigment ink.

これに対して、本実施形態では、維持領域の境界は、出力色域表面の形状によらずに、線分で定義されるため、前述のような境界付近における明度の階調悪化を防止することができる。   On the other hand, in the present embodiment, the boundary of the maintenance area is defined by a line segment regardless of the shape of the output color gamut surface, thereby preventing the lightness gradation deterioration near the boundary as described above. be able to.

(第二の実施形態)
以下、第二の実施形態について図面を用いて詳細に説明する。
(Second embodiment)
Hereinafter, the second embodiment will be described in detail with reference to the drawings.

図12は、第二の実施形態の色処理装置を実現するハードウエア構成を示すブロック図である。図12において、2は色処理装置である。第一の実施形態と同じ処理をするブロックには、第一の実施形態の符号と同じ符号を付し、説明を省略する。   FIG. 12 is a block diagram illustrating a hardware configuration for realizing the color processing apparatus according to the second embodiment. In FIG. 12, reference numeral 2 denotes a color processing apparatus. Blocks that perform the same processing as in the first embodiment are denoted by the same reference numerals as in the first embodiment, and description thereof is omitted.

204は、知覚色空間値算出部102において算出した入力色が、出力色域の内側に存在するか、外側に存在するかを判定する判定部である。206は、焦点算出部105において算出した焦点に基づき入力色を写像する写像部である。   A determination unit 204 determines whether the input color calculated by the perceptual color space value calculation unit 102 exists inside or outside the output color gamut. Reference numeral 206 denotes a mapping unit that maps the input color based on the focus calculated by the focus calculation unit 105.

<色処理装置2における動作>
次に、色処理装置2における動作について、図13を用いて説明する。図13は本実施形態の色処理装置における動作を示すフローチャートである。第一の実施形態と同じ処理をするステップには、第一の実施形態の符号と同じ符号を付し、説明を省略する。
<Operation in Color Processing Device 2>
Next, the operation in the color processing apparatus 2 will be described with reference to FIG. FIG. 13 is a flowchart showing the operation of the color processing apparatus of this embodiment. Steps that perform the same processing as in the first embodiment are denoted by the same reference numerals as those in the first embodiment, and description thereof is omitted.

ステップS24において、判定部204は、入力色が出力色域内に存在するか、出力色域外に存在するかを判定する。判定部204の具体的な処理内容については、後述する。   In step S24, the determination unit 204 determines whether the input color exists in the output color gamut or outside the output color gamut. Specific processing contents of the determination unit 204 will be described later.

ステップS26において、写像部206は、ステップS5において算出した焦点に向かって入力色を出力色域表面に写像する。写像部206の具体的な処理内容については、後述する。   In step S26, the mapping unit 206 maps the input color onto the output color gamut surface toward the focal point calculated in step S5. Specific processing contents of the mapping unit 206 will be described later.

<判定部204における動作>
次に、ステップS24の判定部204の動作について、図14を用いて詳細に説明する。図14は判定部204における処理を示すフローチャートである。
<Operation in Determination Unit 204>
Next, operation | movement of the determination part 204 of step S24 is demonstrated in detail using FIG. FIG. 14 is a flowchart showing processing in the determination unit 204.

ステップS501において、判定部204は、バッファメモリ111から入力色のLab値を取得する。ステップS502において、判定部204は、入力色が出力色域内に存在するか、色域外に存在するかの判定結果を保存するフラグに0を代入し、初期化する。フラグが0のときは、入力色が色域内に存在することを表すものとする。ステップS503において、判定部204は、入力色が出力色域内に存在するか、範囲外に存在するかを判定する。判定の結果、入力色が出力色域外であれば、ステップS504へ進み、色域内であれば、ステップS505へ進む。ステップS504において、判定部204は、フラグに1を代入し、入力色の座標と一組にして、バッファメモリ111に保存する。ここで、フラグに代入した値1は、入力色が出力色域外に存在することを表すものとする。ステップS505において、判定部204は、画像の全ての画素について処理が終了したか否かを判定する。全ての画素について処理を終えていない場合には、ステップS501へ戻り、全ての画素について処理を終えている場合には、処理を終了する。以上のように、判定部204では、入力色が出力色域内に存在するか、出力色域外に存在するかを判定し、判定結果をバッファメモリ111に保存する。   In step S <b> 501, the determination unit 204 acquires the Lab value of the input color from the buffer memory 111. In step S502, the determination unit 204 assigns 0 to a flag for storing a determination result of whether the input color exists in the output color gamut or outside the color gamut, and initializes the flag. When the flag is 0, it represents that the input color exists in the color gamut. In step S503, the determination unit 204 determines whether the input color is in the output color gamut or out of the range. As a result of the determination, if the input color is outside the output gamut, the process proceeds to step S504, and if it is within the color gamut, the process proceeds to step S505. In step S <b> 504, the determination unit 204 assigns 1 to the flag, and stores it in the buffer memory 111 as a set with the coordinates of the input color. Here, the value 1 assigned to the flag represents that the input color exists outside the output color gamut. In step S505, the determination unit 204 determines whether the processing has been completed for all the pixels of the image. If the process has not been completed for all the pixels, the process returns to step S501. If the process has been completed for all the pixels, the process ends. As described above, the determination unit 204 determines whether the input color is in the output color gamut or outside the output color gamut, and stores the determination result in the buffer memory 111.

<写像部206における動作>
次に、ステップS26の写像部206の動作について、図15を用いて詳細に説明する。図15は写像部206における処理を示すフローチャートである。
<Operation in Mapping Unit 206>
Next, operation | movement of the mapping part 206 of step S26 is demonstrated in detail using FIG. FIG. 15 is a flowchart showing processing in the mapping unit 206.

ステップS601において、写像部206は、バッファメモリ111から入力色のLab値を取得する。ステップS602において、写像部206は、ステップS601で取得した入力色に対応するフラグをバッファメモリ111から取得し、フラグが1であった場合、すなわち、入力色が出力色域外であった場合には、ステップS603へ進む。一方、フラグが0であった場合、すなわち、入力色が出力色域内であった場合には、ステップS606へ進む。   In step S <b> 601, the mapping unit 206 acquires the Lab value of the input color from the buffer memory 111. In step S602, the mapping unit 206 acquires a flag corresponding to the input color acquired in step S601 from the buffer memory 111. If the flag is 1, that is, if the input color is out of the output color gamut. The process proceeds to step S603. On the other hand, if the flag is 0, that is, if the input color is within the output color gamut, the process proceeds to step S606.

ステップS603において、写像部206は、ステップS601で取得した入力色に対応する焦点をバッファメモリ111から取得する。ステップS604において、写像部206は、ステップS601で取得した入力色と、ステップS603において取得した焦点とを結ぶ直線(写像軸)の方程式の係数を算出する。ステップS605において、写像部206は、ステップS604で得た写像軸と出力色域表面との交点を算出する。ステップS606において、写像部206は、ステップS605で算出した交点を、入力色の写像先として、バッファメモリ111のデータを書き換える。   In step S <b> 603, the mapping unit 206 acquires a focus corresponding to the input color acquired in step S <b> 601 from the buffer memory 111. In step S604, the mapping unit 206 calculates a coefficient of an equation of a straight line (mapping axis) connecting the input color acquired in step S601 and the focal point acquired in step S603. In step S605, the mapping unit 206 calculates the intersection between the mapping axis obtained in step S604 and the output color gamut surface. In step S606, the mapping unit 206 rewrites the data in the buffer memory 111 using the intersection calculated in step S605 as the mapping destination of the input color.

ステップS607において、写像部206は、画像の全ての画素について処理が終了したか否かを判定する。全ての画素について処理を終えていない場合には、ステップS601へ戻り、全ての画素について処理を終えている場合には、処理を終了する。   In step S607, the mapping unit 206 determines whether or not processing has been completed for all pixels of the image. If the process has not been completed for all the pixels, the process returns to step S601. If the process has been completed for all the pixels, the process ends.

以上のように、写像部206では、入力色と焦点から写像軸を算出し、該写像軸と出力色域表面との交点、写像方向に基づき入力色の写像先を算出する。   As described above, the mapping unit 206 calculates the mapping axis from the input color and focus, and calculates the mapping destination of the input color based on the intersection and mapping direction between the mapping axis and the output color gamut surface.

以上、説明した技術によれば、出力色域データに基づき設定した線分に対して垂直方向に入力色を写像することで、入力色は写像前と近い点に写像されるため、写像後の入力色における彩度低下を軽減することができる。したがって、入力画像と近い鮮やかさで出力画像を再現することができる。   As described above, according to the technique described above, by mapping the input color in the vertical direction with respect to the line segment set based on the output color gamut data, the input color is mapped to a point close to that before mapping. It is possible to reduce the saturation in the input color. Therefore, the output image can be reproduced with vividness close to that of the input image.

(他の実施の形態)
上記実施形態においては、入力画像をsRGB(IEC61966−2−1)で表現されていると仮定して処理の説明をしたが、本発明における色処理装置への入力は特にsRGBに限ったものではなく、どのような色空間でも良い。
(Other embodiments)
In the above embodiment, the processing has been described on the assumption that the input image is expressed in sRGB (IEC 61966-2-1). However, the input to the color processing device in the present invention is not limited to sRGB. Any color space is acceptable.

また、上記実施形態においては、色域データを色域データ保持部110においてあらかじめ保持しておいたが、これに限らない。例えば、入力手段によって、入力画像と共に外部から読み込むようにしても良いし、色域データ保持部110にあらかじめ複数の色域データを保持させておいて、外部からの入力に対応した色域データをデータ取得部101に渡すようにしても良い。   In the above embodiment, the color gamut data is held in advance in the color gamut data holding unit 110. However, the present invention is not limited to this. For example, it may be read from the outside together with the input image by the input means, or the color gamut data holding unit 110 holds a plurality of color gamut data in advance, and the color gamut data corresponding to the input from the outside is obtained. You may make it pass to the data acquisition part 101. FIG.

上記実施形態においては、CIELAB色空間を用いて説明したが、CIELUV、CIECAM97s、CIECAM02などの他の知覚色空間であっても良い。   In the above embodiment, the CIELAB color space has been described. However, other perceptual color spaces such as CIEUV, CIECAM97s, and CIECAM02 may be used.

また、上記実施例において、焦点の移動範囲を、2本の線分で定義したが、1本の線分で定義してもよい。例えば、高明度については上記実施例と同様の方法により写像し、低明度部については明度を維持しながら出力色域内に写像するようにしても構わない。このように、色域に応じて上記実施例の方法を使用するようにしても構わない。各色域における入力色域と出力色域との関係に応じて、適切な写像方法を使用すればよい。   In the above embodiment, the focus movement range is defined by two line segments, but may be defined by one line segment. For example, the high brightness may be mapped by the same method as in the above embodiment, and the low brightness portion may be mapped within the output color gamut while maintaining the brightness. Thus, the method of the above embodiment may be used according to the color gamut. An appropriate mapping method may be used in accordance with the relationship between the input color gamut and the output color gamut in each color gamut.

また、上記実施形態において、焦点範囲の無彩色軸上の端点の明度値を算出する際に、係数kを0.8としたが、これに限らず、0.7や0.9など任意の値を用いても良い。さらに言えば、式(12)に示すように、出力色域の最大明度に対する所定の割合を、その明度値としても良い。   In the above embodiment, when calculating the brightness value of the end point on the achromatic axis of the focus range, the coefficient k is set to 0.8. However, the present invention is not limited to this, and an arbitrary value such as 0.7 or 0.9 is used. A value may be used. Furthermore, as shown in Expression (12), a predetermined ratio with respect to the maximum brightness of the output color gamut may be used as the brightness value.

Figure 0004974762
Figure 0004974762

また、上記実施形態において、焦点範囲の一方の端点の明度を、出力色域のCuspと等明度としたが、これに限らず、端点が出力色域内に存在する範囲で、その明度を設定しても良い。   In the above embodiment, the brightness of one end point of the focus range is set to be equal to Cusp of the output color gamut. However, the present invention is not limited to this, and the brightness is set in a range where the end point exists in the output color gamut. May be.

また、上記実施形態において、焦点範囲の一方の端点の彩度を、出力色域のCuspの彩度の8割に相当する彩度としたが、これに限らず、7割や9割でも良く、所望の色再現によって、その彩度を設定すれば良い。   In the above embodiment, the saturation of one end point of the focal range is the saturation corresponding to 80% of the saturation of Cusp of the output color gamut. However, the saturation is not limited to this, and may be 70% or 90%. The saturation may be set according to the desired color reproduction.

また、第一の実施形態において、入力色の圧縮量は焦点からの距離によらず一定の圧縮量となるように算出したが、これに限らない。焦点からの距離が遠いほど圧縮量が大きく、距離が近いほど圧縮量が小さくなるような非線形関数を用いて圧縮量を算出しても良い。   In the first embodiment, the compression amount of the input color is calculated to be a constant compression amount regardless of the distance from the focal point, but is not limited thereto. The compression amount may be calculated using a non-linear function in which the compression amount increases as the distance from the focal point increases and the compression amount decreases as the distance decreases.

なお、本発明は、複数の機器(例えばホストコンピュータ、インタフェイス機器、リーダ、プリンタなど)から構成されるシステムに適用しても、一つの機器からなる装置(例えば、複写機、ファクシミリ装置など)に適用しても良い。   Note that the present invention can be applied to a system including a plurality of devices (for example, a host computer, an interface device, a reader, and a printer), and a device (for example, a copying machine and a facsimile device) including a single device. You may apply to.

また、本発明の目的は、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体を、システムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUまたはMPU)が記憶媒体に格納された上記フローチャートを実現するためのプログラムコードを読み出し実行することによっても達成されることは言うまでもない。この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。   Another object of the present invention is to supply a storage medium storing software program codes for realizing the functions of the above-described embodiments to a system or apparatus, and the computer (or CPU or MPU) of the system or apparatus stores the storage medium. Needless to say, this can also be achieved by reading out and executing the program code for realizing the above-described flowchart stored in (1). In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the storage medium storing the program code constitutes the present invention.

プログラムコードを供給するための記憶媒体としては、例えば、フロッピー(登録商標)ディスク、ハードディスク、光ディスク、光磁気ディスク、CD−ROM、CD−R、磁気テープ、不揮発性のメモリカード、ROMなどを用いることができる。   As a storage medium for supplying the program code, for example, a floppy (registered trademark) disk, hard disk, optical disk, magneto-optical disk, CD-ROM, CD-R, magnetic tape, nonvolatile memory card, ROM, or the like is used. be able to.

第一の実施形態に係る色処理装置において、入力色の写像を彩度−明度平面上で示す図。The figure which shows the mapping of an input color on the saturation-lightness plane in the color processing apparatus which concerns on 1st embodiment. 第一の実施形態に係る色処理装置の構成を示すブロック図。1 is a block diagram showing a configuration of a color processing apparatus according to a first embodiment. 色処理装置1における処理の流れを示す図。FIG. 3 is a diagram showing a flow of processing in the color processing apparatus 1. 色域データの保存形式の例を示す図。The figure which shows the example of the preservation | save format of color gamut data. 焦点範囲算出部103における処理の流れを示す図。The figure which shows the flow of a process in the focus range calculation part 103. 判定部104における処理の流れを示す図。The figure which shows the flow of the process in the determination part 104. FIG. 焦点算出部105における処理の流れを示す図。The figure which shows the flow of a process in the focus calculation part. 写像部106における処理の流れを示す図。The figure which shows the flow of a process in the mapping part. 従来の写像の例をa−b平面上に示す図。The figure which shows the example of the conventional mapping on ab plane. 写像の例をa−b平面上に示す図。The figure which shows the example of a mapping on ab plane. 出力色域表面に凹凸がある場合における先行技術による写像の例をL*−C*平面上に示す図。The figure which shows the example of the mapping by a prior art in case there exists an unevenness | corrugation in the output color gamut surface on a L * -C * plane. 第二の実施形態に係る色処理装置の構成を示すブロック図。The block diagram which shows the structure of the color processing apparatus which concerns on 2nd embodiment. 色処理装置2における処理の流れを示す図。FIG. 4 is a diagram showing a flow of processing in the color processing apparatus 2. 判定部204における処理の流れを示す図。The figure which shows the flow of the process in the determination part 204. FIG. 写像部206における処理の流れを示す図。The figure which shows the flow of a process in the mapping part. 従来の写像の例をL*−C*平面上に示す図。The figure which shows the example of the conventional mapping on the L * -C * plane.

Claims (5)

入力色を出力色域内に写像する色処理装置であって、
前記出力色域に基づき、前記入力色に応じた焦点の移動範囲として、前記出力色域において前記入力色と等しい色相を有する色相面における最大彩度点と等明度を有する点と、無彩色軸上に位置する点とで規定される線分を算出する焦点範囲算出手段と、
前記入力色と前記線分とに基づき、前記入力色が前記線分より前記出力色域の内部に存在するか否かを判定する判定部と、
前記判定部による判定の結果、前記入力色が前記線分より前記出力色域の外部に存在する場合、前記入力色から前記線分に垂直に降ろした垂線と前記線分との交点該入力色に対する焦点として算出する焦点算出部と、
前記算出された焦点を用いて前記入力色を出力色域へ写像する写像部と
を具備することを特徴とする色処理装置。
A color processing device that maps an input color into an output color gamut,
Based on the output color gamut, as a moving range of the focus according to the input color, a point having the same saturation as the maximum saturation point in the hue plane having the same hue as the input color in the output color gamut, and an achromatic color axis A focal range calculation means for calculating a line segment defined by the point located above,
A determination unit that determines whether the input color is present in the output color gamut from the line segment based on the input color and the line segment;
As a result of the determination by the determination unit, when the input color exists outside the output color gamut from the line segment, an intersection of the perpendicular line dropped from the input color perpendicular to the line segment and the line segment is input to the input color. A focus calculation unit that calculates the focus for the color;
A color processing apparatus comprising: a mapping unit that maps the input color to an output color gamut using the calculated focus.
前記線分を規定する点の1つは、前記出力色域の白色点および黒点から求められることを特徴とする請求項1に記載の色処理装置。   The color processing apparatus according to claim 1, wherein one of the points defining the line segment is obtained from a white point and a black point of the output color gamut. 前記写像は、前記出力色域外の入力色を前記出力色域の表面に貼り付けることを特徴とする請求項1又は請求項2に記載の色処理装置。   The color processing apparatus according to claim 1, wherein the mapping pastes an input color outside the output color gamut onto a surface of the output color gamut. 請求項1乃至3のいずれかに記載の色処理装置をコンピュータを用いて実現するために、コンピュータが読み取り可能に記憶媒体に記憶されたプログラム。   A program stored in a storage medium so as to be readable by a computer in order to realize the color processing apparatus according to claim 1 using the computer. 入力色を出力色域内に写像する色処理方法であって、
前記出力色域に基づき、前記入力色に応じた焦点の移動範囲として、前記出力色域において前記入力色と等しい色相を有する色相面における最大彩度点と等明度を有する点と、無彩色軸上に位置する点とで規定される線分を算出し、
前記入力色と前記線分とに基づき、前記入力色が前記線分より前記出力色域の内部に存在するか否かを判定し、
前記判定部による判定の結果、前記入力色が前記線分より前記出力色域の外部に存在する場合、前記入力色から前記線分に垂直に降ろした垂線と前記線分との交点を該入力色に対する焦点として算出し、
前記算出された焦点を用いて前記入力色を出力色域へ写像することを特徴とする色処理方法。
A color processing method for mapping an input color into an output color gamut,
Based on the output color gamut, as a moving range of the focus according to the input color, a point having the same saturation as the maximum saturation point in the hue plane having the same hue as the input color in the output color gamut, and an achromatic color axis Calculate the line segment defined by the point located above,
Based on the input color and the line segment, determine whether the input color is present in the output color gamut from the line segment,
As a result of the determination by the determination unit, when the input color exists outside the output color gamut from the line segment, an intersection of the perpendicular line dropped from the input color perpendicular to the line segment and the line segment is input to the input color. Calculated as the focus on color,
A color processing method, wherein the input color is mapped to an output color gamut using the calculated focus.
JP2007140563A 2007-05-28 2007-05-28 Color processing apparatus and method Expired - Fee Related JP4974762B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007140563A JP4974762B2 (en) 2007-05-28 2007-05-28 Color processing apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007140563A JP4974762B2 (en) 2007-05-28 2007-05-28 Color processing apparatus and method

Publications (2)

Publication Number Publication Date
JP2008294930A JP2008294930A (en) 2008-12-04
JP4974762B2 true JP4974762B2 (en) 2012-07-11

Family

ID=40169185

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007140563A Expired - Fee Related JP4974762B2 (en) 2007-05-28 2007-05-28 Color processing apparatus and method

Country Status (1)

Country Link
JP (1) JP4974762B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0918727A (en) * 1995-06-27 1997-01-17 Ricoh Co Ltd Color reproducing processor
JP3502496B2 (en) * 1996-01-25 2004-03-02 株式会社リコー Color information conversion processing method and apparatus
JP2000278546A (en) * 1999-01-22 2000-10-06 Sony Corp Device and method for image processing, device and method for color gamut conversion table preparation, recording medium recording image processing program and recording medium recording color gamut conversion table preparation program
JP2002027263A (en) * 2000-07-04 2002-01-25 Matsushita Electric Ind Co Ltd Image processing method

Also Published As

Publication number Publication date
JP2008294930A (en) 2008-12-04

Similar Documents

Publication Publication Date Title
US7327875B2 (en) Method and apparatus for color conversion
JP5713727B2 (en) Profile creation method, profile creation apparatus, image processing apparatus and program for performing color conversion by profile
US8204304B2 (en) Color gamut mapping by forming curved cross-sectional surfaces
JP4623630B2 (en) Image processing apparatus, image processing method, program, image forming apparatus, and image forming system
JP4803666B2 (en) Image processing apparatus, image processing method, program, and recording medium
US7760398B2 (en) Color conversion table generation method and color conversion table generation device
US20050219585A1 (en) Color processing method and apparatus thereof
JP5043513B2 (en) Color processing apparatus and method
US6522427B1 (en) Color table manipulations for contour reduction
JP2012029276A (en) Image forming device, color adjustment method and color adjustment program
US8427696B2 (en) Color processing method and apparatus thereof
JP2006340105A (en) Image processing method, profile generating method, and image processing apparatus
US20020154326A1 (en) Image processing method and apparatus
US8773723B2 (en) Generating color separation table for printer having color forming materials with high and low relative densities using a gamut boundary to limit use of dark color material
US8111423B2 (en) Image processing device and image processing method
JP5882763B2 (en) Image processing apparatus and profile creation method
JP2005268982A (en) Method, apparatus and program for creating color conversion definition, and for forming profile
JP2010074317A (en) Image processor, image processing program, and image processing method
JP4974762B2 (en) Color processing apparatus and method
JP4533277B2 (en) Image processing apparatus, image processing method, and table creation method
US8330994B2 (en) Method for digital image adaption for printing an image on a printing apparatus
JP5267803B2 (en) Image processing apparatus, image processing method, program, and recording medium
JP5112234B2 (en) Image processing apparatus, image processing method, program, and recording medium
JP2017135683A (en) Generation device, and computer program
JP2009296139A (en) Image processor, image processing method and computer program

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20100201

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100520

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20100630

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20111130

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20111206

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120206

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120221

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120224

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20120313

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120410

R151 Written notification of patent or utility model registration

Ref document number: 4974762

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

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

Free format text: PAYMENT UNTIL: 20150420

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees