JP2010220116A - Image processing apparatus, image processing method, image processing program, and computer readable storage medium - Google Patents

Image processing apparatus, image processing method, image processing program, and computer readable storage medium Download PDF

Info

Publication number
JP2010220116A
JP2010220116A JP2009067034A JP2009067034A JP2010220116A JP 2010220116 A JP2010220116 A JP 2010220116A JP 2009067034 A JP2009067034 A JP 2009067034A JP 2009067034 A JP2009067034 A JP 2009067034A JP 2010220116 A JP2010220116 A JP 2010220116A
Authority
JP
Japan
Prior art keywords
lightness
image data
color
output device
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.)
Pending
Application number
JP2009067034A
Other languages
Japanese (ja)
Inventor
Keitoku Ito
敬徳 伊東
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2009067034A priority Critical patent/JP2010220116A/en
Publication of JP2010220116A publication Critical patent/JP2010220116A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To determine a mapping direction for each of pixels even while performing lightness conversion on image data. <P>SOLUTION: The present invention relates to an image processing apparatus for converting source image data including pixels out of a color gamut of an image output device into output image data within the color gamut of the image output device. The image processing apparatus comprises at least: a lightness converting section 104 for converting lightness of the source image data within a lightness range of the image output device based on at least lightness range that the source image data can represent and lightness range that the image output device can output, and outputting lightness converted image data; a mapping direction determining section 106 for determining a mapping direction of pixels that are the lightness converted image data and become pixels out of the color gamut of the image output device, based on at least the lightness converted image data and the color gamut that the image output device can output; and a color gamut converting section 107 for converting the lightness converted image data into image data within the color gamut of the image output device based on the mapping direction determined by the mapping direction determining section. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、画像処理装置、画像処理方法、画像処理プログラム、コンピュータ読み取り可能な記憶媒体に関するものである。   The present invention relates to an image processing apparatus, an image processing method, an image processing program, and a computer-readable storage medium.

従来から、カラースキャナやデジタルカメラ等の画像入力装置により表現される色域よりも、カラープリンタやディスプレイ等の画像出力装置により表現される色域が狭いため、画像入力装置により表現される画像データが、画像出力装置で表現できないという問題点がある。そのため、画像入力装置の表現可能な色域から、画像出力装置の表現可能な色域に変換する色変換方法の技術がある。   Conventionally, since the color gamut expressed by an image output device such as a color printer or display is narrower than the color gamut expressed by an image input device such as a color scanner or digital camera, the image data expressed by the image input device However, there is a problem that it cannot be expressed by the image output apparatus. Therefore, there is a technology of a color conversion method for converting a color gamut that can be expressed by the image input apparatus into a color gamut that can be expressed by the image output apparatus.

例えば、まず、明度変換により明度を補正してから、彩度変換により彩度を補正する方法が知られている(特許文献1参照)。また、例えば、画像データの色分布の方向を検出してマッピング方向を決定し、そのマッピング方向に画像変換を実行することで、画像を補正する技術が知られている(特許文献2、特許文献3参照)。   For example, a method is known in which lightness is first corrected by lightness conversion and then saturation is corrected by saturation conversion (see Patent Document 1). In addition, for example, a technique for correcting an image by detecting a color distribution direction of image data, determining a mapping direction, and executing image conversion in the mapping direction is known (Patent Document 2, Patent Document 2). 3).

しかしながら、特許文献1に開示された発明では、画像データを補正するマッピング方向があらかじめ定められているため、彩度低下や階調つぶれが発生しやすいという問題がある。   However, the invention disclosed in Patent Document 1 has a problem that saturation and gradation loss are likely to occur because a mapping direction for correcting image data is predetermined.

また、特許文献2と特許文献3に開示された発明では、一般的に画像変換に有効とされている明度変換を実行していないため、彩度低下や階調つぶれが発生しやすいという問題がある。   In addition, in the inventions disclosed in Patent Document 2 and Patent Document 3, since lightness conversion that is generally effective for image conversion is not executed, there is a problem that saturation reduction and gradation collapse are likely to occur. is there.

本発明は、上記に鑑みてなされたものであって、画像データに対して、明度変換を実行しながらも、それぞれの画素に対してマッピング方向を決定することのできる画像処理装置、画像処理方法、画像処理プログラム、コンピュータ読み取り可能な記憶媒体を提供することを目的とする。   The present invention has been made in view of the above, and an image processing apparatus and an image processing method capable of determining a mapping direction for each pixel while performing brightness conversion on image data. An object of the present invention is to provide an image processing program and a computer-readable storage medium.

上述した課題を解決し、目的を達成するために、本発明は、画像出力装置の色域外の画素を含む原画像データを、前記画像出力装置の色域内の出力画像データに変換する画像処理装置であって、前記原画像データが表現可能な明度域と前記画像出力装置が出力可能な明度域に少なくとも基づいて、前記原画像データの明度を前記画像出力装置の明度域内に変換し、明度変換画像データを出力する明度変換手段と、前記明度変換画像データと前記画像出力装置が出力可能な色域に少なくとも基づいて、前記明度変換画像データであり前記画像出力装置の色域外画素である画素の変換方向となるマッピング方向を決定するマッピング方向決定手段と、前記マッピング方向決定手段で決定されたマッピング方向に基づいて、前記明度変換画像データを、前記画像出力装置の色域内の画像データに変換する色域変換手段とを少なくとも備えることを特徴とする。   In order to solve the above-described problems and achieve the object, the present invention provides an image processing device that converts original image data including pixels outside the color gamut of the image output device into output image data within the color gamut of the image output device. The lightness of the original image data is converted into the lightness region of the image output device based on at least the lightness region that can be expressed by the original image data and the lightness region that can be output by the image output device. Lightness conversion means for outputting image data; and at least a lightness-converted image data and a pixel that is an out-of-gamut pixel of the image output device based on the lightness-converted image data and a color gamut that can be output by the image output device. Mapping direction determining means for determining a mapping direction as a conversion direction, and the lightness converted image data based on the mapping direction determined by the mapping direction determining means , Characterized in that it comprises at least a color gamut conversion means for converting the image data in the color gamut of the image output device.

本発明は、上記に鑑みてなされたものであって、画像データに対して、明度変換を実行しながらも、それぞれの画素に対してマッピング方向を決定することができるため、彩度低下や階調つぶれが低減された良好な画像を安定して得ることのできるという効果を奏する。   The present invention has been made in view of the above, and it is possible to determine the mapping direction for each pixel while performing lightness conversion on image data. There is an effect that it is possible to stably obtain a good image with reduced gradation.

図1は、本実施の形態にかかる画像処理装置の構成を示すブロック図である。FIG. 1 is a block diagram showing the configuration of the image processing apparatus according to this embodiment. 図2は、明度変換の処理の一例を示す説明図である。FIG. 2 is an explanatory diagram illustrating an example of lightness conversion processing. 図3は、マッピング方向決定部の構成を示すブロック図である。FIG. 3 is a block diagram illustrating a configuration of the mapping direction determination unit. 図4は、色差最小方向判定部が行う処理の一例を示す説明図である。FIG. 4 is an explanatory diagram illustrating an example of processing performed by the color difference minimum direction determination unit. 図5は、CIELAB色空間を明度軸で切断した一例を示す断面図である。FIG. 5 is a cross-sectional view showing an example of the CIELAB color space cut along the brightness axis. 図6は、色分布判定部の構成を示すブロック図である。FIG. 6 is a block diagram illustrating a configuration of the color distribution determination unit. 図7は、特定の色相領域に分類された色域外画素の色分布の一例を示す説明図である。FIG. 7 is an explanatory diagram illustrating an example of a color distribution of pixels outside the color gamut classified into a specific hue region. 図8は、高明度張り付き判定部の処理の一例を示す説明図である。FIG. 8 is an explanatory diagram illustrating an example of processing of the high-lightness sticking determination unit. 図9は、高彩度側分布判定部の処理の一例を示す説明図である。FIG. 9 is an explanatory diagram illustrating an example of processing of the high saturation side distribution determination unit. 図10は、本実施の形態にかかる画像処理装置における画像データの色域変換の処理の手順を示すフローチャートである。FIG. 10 is a flowchart showing the procedure of color gamut conversion processing of image data in the image processing apparatus according to the present embodiment. 図11は、明度変換部の原画像データの明度変換の処理の手順を示すフローチャートである。FIG. 11 is a flowchart showing a procedure of lightness conversion processing of original image data in the lightness conversion unit. 図12は、マッピング方向決定部のマッピング方向を決定する処理の手順を示すフローチャートである。FIG. 12 is a flowchart illustrating a processing procedure for determining the mapping direction of the mapping direction determination unit. 図13は、色域変換部の色域変換の処理の手順を示すフローチャートである。FIG. 13 is a flowchart illustrating the procedure of the color gamut conversion process of the color gamut conversion unit. 図14は、色分布重心検出部の色分布重心の検出処理の手順を示すフローチャートである。FIG. 14 is a flowchart illustrating a procedure of color distribution centroid detection processing of the color distribution centroid detection unit. 図15は、マッピング方向選択部のマッピング方向を選択する処理の手順を示すフローチャートである。FIG. 15 is a flowchart illustrating a processing procedure for selecting a mapping direction by the mapping direction selection unit. 図16は、第1の実施の形態にかかる画像処理装置のハードウェア構成を示すブロック図である。FIG. 16 is a block diagram of a hardware configuration of the image processing apparatus according to the first embodiment.

以下に添付図面を参照して、この発明にかかる画像処理装置、画像処理方法および画像処理プログラム、コンピュータ読み取り可能な記憶媒体の最良な実施の形態を詳細に説明する。   Exemplary embodiments of an image processing apparatus, an image processing method and an image processing program, and a computer-readable storage medium according to the present invention are explained in detail below with reference to the accompanying drawings.

(第1の実施の形態)
図1は、第1の実施の形態にかかる画像処理装置の構成を示すブロック図である。画像入力装置は画像処理装置に画像を送出し、画像処理装置は画像出力装置に出力画像を送出する。また、画像処理装置は、明度変換部と画像記憶部とマッピング方向決定部と色域変換部とを主に備えている。
(First embodiment)
FIG. 1 is a block diagram illustrating a configuration of the image processing apparatus according to the first embodiment. The image input device sends an image to the image processing device, and the image processing device sends an output image to the image output device. The image processing apparatus mainly includes a brightness conversion unit, an image storage unit, a mapping direction determination unit, and a color gamut conversion unit.

画像入力装置101は、画像データ(以下、「原画像データ」という)を画像処理装置102に出力する。原画像データは、表色形式が、原画像データに埋め込まれているICCプロファイルや、画像入力装置101と画像処理装置102との通信等によって、明示的に決められている。または、sRGBやAdobeRGB等の標準的な表色形式が、その表色形式として暗黙のうちに決められている。そして、画像入力装置101は画像処理装置102に、互いに表色形式が明確になっている原画像データを出力する。   The image input device 101 outputs image data (hereinafter referred to as “original image data”) to the image processing device 102. The color format of the original image data is explicitly determined by an ICC profile embedded in the original image data, communication between the image input device 101 and the image processing device 102, or the like. Alternatively, a standard color specification format such as sRGB or AdobeRGB is implicitly determined as the color specification format. Then, the image input apparatus 101 outputs original image data whose color formats are clear to each other to the image processing apparatus 102.

本実施の形態では、画像入力装置101は、原画像データの表色形式としてAdobeRGBが通信により決められているものとするが、その他の表色形式を使用しても良い。   In the present embodiment, it is assumed that Adobe RGB is determined by communication as the color format of the original image data in the image input apparatus 101, but other color formats may be used.

画像入力装置101は、例えば、風景や人物を撮影して画像データとして記憶するデジタルスチルカメラや、原稿を走査して画像データを生成するカラースキャナや、画像データを記憶したSDメモリやHDD等の記憶媒体と記憶媒体の読み書きを制御する制御部からなるストレージ等である。   The image input device 101 is, for example, a digital still camera that captures a landscape or a person and stores it as image data, a color scanner that scans a document to generate image data, an SD memory or HDD that stores image data, and the like. The storage is composed of a storage medium and a control unit that controls reading and writing of the storage medium.

画像出力装置103は、画像処理装置102が出力した画像データ(以下、「出力画像データ」という)を可視化して出力する。画像出力装置103は、例えば、画像データを画面上に表示するLCDディスプレイや、画像データを紙等の記録媒体に記録するカラープリンタ等である。本実施の形態では、一例として、画像出力装置103をカラープリンタとして説明する。   The image output device 103 visualizes and outputs the image data output from the image processing device 102 (hereinafter referred to as “output image data”). The image output device 103 is, for example, an LCD display that displays image data on a screen, or a color printer that records image data on a recording medium such as paper. In this embodiment, as an example, the image output apparatus 103 will be described as a color printer.

明度変換部104は、原画像データが表現可能な明度域と画像出力装置103が出力可能な明度域等に基づいて、画像出力装置103の明度域内に原画像データの明度を変換する。なお、原画像データが表現可能な明度域は、上述の表色形式によって定まる。例えばAdobeRGBでは明度L*は0から100の値を取る。   The lightness conversion unit 104 converts the lightness of the original image data into the lightness region of the image output device 103 based on the lightness region in which the original image data can be expressed and the lightness region in which the image output device 103 can output. It should be noted that the brightness range that can represent the original image data is determined by the color specification format described above. For example, in AdobeRGB, the lightness L * takes a value from 0 to 100.

画像出力装置103が出力可能な明度域は、画像出力装置103が出力可能な色域によって定まる。例えばカラープリンタでは、明度域の上限はカラープリンタで使用する記録媒体で、明度域の下限はコンポジットブラック等を記録媒体に記録した時の明度で定まる。本実施の形態では、画像出力装置103が出力可能な色域が、画像出力装置103から画像処理装置102に通信によって通知されており、明度変換部104は、画像出力装置103が出力可能な色域から、出力可能な明度域である明度の上限と下限を抽出して使用する。なお、例えば、画像出力装置103のICCプロファイルを画像処理装置102に直接供給する等の方法を用いることにより、画像出力装置103が出力可能な色域を、画像処理装置102に通知する方法を用いても良い。   The brightness range that can be output by the image output device 103 is determined by the color gamut that the image output device 103 can output. For example, in a color printer, the upper limit of the brightness range is determined by the recording medium used in the color printer, and the lower limit of the brightness range is determined by the brightness when composite black or the like is recorded on the recording medium. In this embodiment, the color gamut that can be output by the image output apparatus 103 is notified from the image output apparatus 103 to the image processing apparatus 102 by communication, and the lightness conversion unit 104 can output colors that the image output apparatus 103 can output. The upper and lower limits of lightness that can be output are extracted from the range and used. Note that, for example, a method of notifying the image processing apparatus 102 of the color gamut that can be output by the image output apparatus 103 by using a method such as directly supplying the ICC profile of the image output apparatus 103 to the image processing apparatus 102 is used. May be.

明度変換部104が行う明度変換を、詳細に説明する。図2は、明度変換の処理の一例を示す説明図である。図2(a)は、CIELAB色空間を明度軸で切断した一例を示す断面図である。これによると、原画像データが表現可能な色域と画像出力装置103が出力可能な色域との関係の一例を示している。図2(a)で示している通りであるが、原画像データが表現可能な色域は、画像出力装置103が出力可能な色域よりも大きく、特に明度軸方向の範囲である明度範囲は、包含関係になることが一般的である。このため、明度変換部104は、画像出力装置103の明度域内に原画像データの明度を変換して、画像出力装置で、その画像データ(以下、「明度変換画像データ」という)の明度を再現できるようにする。図2(b)は、その明度変換特性の一例を示す説明図である。この場合、原画像データが表現可能な明度域を、画像出力装置103が出力可能な明度域に直線的に変換している。図2(c)は、上述した変換を施した後の画像データである明度変換画像データが表現可能な色域と、画像出力装置103とが出力可能な色域との関係を示す。これによると、原画像データの明度が、画像出力装置103の明度域内に変換されている。しかし、明度変換画像データの彩度域は、画像出力装置103の彩度域よりも広い。   The brightness conversion performed by the brightness conversion unit 104 will be described in detail. FIG. 2 is an explanatory diagram illustrating an example of lightness conversion processing. FIG. 2A is a cross-sectional view showing an example of the CIELAB color space cut along the brightness axis. This shows an example of the relationship between the color gamut that can represent the original image data and the color gamut that the image output device 103 can output. As shown in FIG. 2A, the color gamut that can represent the original image data is larger than the color gamut that can be output by the image output apparatus 103. In particular, the brightness range that is the range in the brightness axis direction is In general, it is an inclusive relationship. Therefore, the lightness conversion unit 104 converts the lightness of the original image data within the lightness range of the image output device 103 and reproduces the lightness of the image data (hereinafter referred to as “lightness converted image data”) in the image output device. It can be so. FIG. 2B is an explanatory diagram showing an example of the brightness conversion characteristic. In this case, the brightness range that can represent the original image data is linearly converted to the brightness range that the image output apparatus 103 can output. FIG. 2C shows the relationship between a color gamut that can express lightness-converted image data, which is image data after the above-described conversion, and a color gamut that the image output device 103 can output. According to this, the brightness of the original image data is converted into the brightness range of the image output device 103. However, the saturation range of the brightness converted image data is wider than the saturation range of the image output device 103.

また、上記では明度変換を直線的に行ったが、明度範囲の上下限が一致して中間部が単純増加になっている場合、本実施の形態で行う処理は上記に限るものでなく、例えば図2(b)のS字曲線変換等に代表される非線形な変換を用いても良い。   Further, in the above, the brightness conversion is performed linearly, but when the upper and lower limits of the brightness range coincide and the middle part is simply increased, the processing performed in the present embodiment is not limited to the above, for example Nonlinear conversion represented by S-curve conversion or the like in FIG. 2B may be used.

画像記憶部は、明度変換部104が出力した明度変換画像データを記憶すると共に、必要に応じてマッピング方向決定部106と色域変換部107に送出する。   The image storage unit stores the lightness-converted image data output from the lightness conversion unit 104 and sends it to the mapping direction determination unit 106 and the color gamut conversion unit 107 as necessary.

マッピング方向決定部106は、明度変換部104が明度を変換し画像記憶部105が記憶している明度変換画像データと、画像出力装置103が出力可能な色域とを参照して、明度変換画像データであり画像出力装置103の色域外画素(以下、「色域外画素」という)のマッピング方向を決定する。本実施の形態では、上述した通り、画像出力装置103の色域は、画像出力装置103から画像処理装置102に通信により通知される。   The mapping direction determination unit 106 refers to the lightness converted image data converted by the lightness conversion unit 104 and stored in the image storage unit 105, and the color gamut that can be output by the image output device 103, and the lightness converted image. The mapping direction of the data and the out-of-gamut pixels (hereinafter referred to as “out-of-gamut pixels”) of the image output apparatus 103 is determined. In the present embodiment, as described above, the color gamut of the image output apparatus 103 is notified from the image output apparatus 103 to the image processing apparatus 102 by communication.

図3は、第1の実施の形態にかかるマッピング方向決定部106の構成を示すブロック図である。マッピング方向決定部106は、色分布重心検出部301と色差最小方向判定部302とマッピング方向生成部303と色分布判定部304とマッピング方向選択部305とを主に備えている。   FIG. 3 is a block diagram illustrating a configuration of the mapping direction determination unit 106 according to the first embodiment. The mapping direction determination unit 106 mainly includes a color distribution centroid detection unit 301, a color difference minimum direction determination unit 302, a mapping direction generation unit 303, a color distribution determination unit 304, and a mapping direction selection unit 305.

色分布重心検出部401は、色相領域毎に色域外画素の重心を検出する。例えば、明度変換画像データが示す色相を12等分して、その領域毎に色域外がその重心検出を行う。つまり、画像出力装置103が出力可能な色域である出力可能色域が入力されており、入力された明度変換画像データが画像出力装置103の色域外か否かを判定し、色域外であれば、該明度変換画像データが属する色相領域に応じて集計を行い、色相領域毎の明度変換画像データ全体の重心を検出する。   The color distribution centroid detection unit 401 detects the centroid of the pixels outside the color gamut for each hue region. For example, the hue indicated by the lightness-converted image data is divided into 12 equal parts, and the center of gravity is detected outside the color gamut for each area. That is, an outputable color gamut that is a color gamut that can be output by the image output device 103 is input, and it is determined whether or not the input brightness converted image data is out of the color gamut of the image output device 103. For example, aggregation is performed according to the hue area to which the brightness-converted image data belongs, and the center of gravity of the entire brightness-converted image data for each hue area is detected.

また、色分布重心検出部401の処理について説明する。画像出力装置103が出力可能な色域を取得し、画像記憶部105から明度変換画像データを取得した場合、取得した画像データが、画像出力装置103の色域外か否かを判定し、色域外であれば、該画像データが属する色相領域に応じて画像データを集計する。集計は、例えば以下の(1)式で表される。なお、該色相領域の画素数は、集計された数の総和である。

Figure 2010220116
そして、色相領域別の集計値に基づいて、それぞれの重心を算出する。それぞれの重心は、以下の(2)式で表される。これにより、色相領域毎の明度変換画像データ全体の重心が検出される。
Figure 2010220116
なお、色分布重心検出部401の処理手順の詳細は後述する。 The processing of the color distribution centroid detection unit 401 will be described. When the color gamut that can be output by the image output device 103 is acquired and the brightness conversion image data is acquired from the image storage unit 105, it is determined whether or not the acquired image data is out of the color gamut of the image output device 103. If so, the image data is totaled according to the hue region to which the image data belongs. Aggregation is expressed by the following equation (1), for example. Note that the number of pixels in the hue area is the sum of the totals.
Figure 2010220116
Then, the center of gravity is calculated based on the total value for each hue region. Each center of gravity is expressed by the following equation (2). Thereby, the center of gravity of the entire brightness-converted image data for each hue region is detected.
Figure 2010220116
Details of the processing procedure of the color distribution centroid detection unit 401 will be described later.

色差最小方向判定部402は、色分布重心検出部401が検出した色域外画素の重心を、画像出力装置103の色域内にマッピングした場合、同色相で色差最小となる方向を、色相領域毎に判定する。図4は、色差最小方向判定部402が行う処理の一例を示す説明図である。図4(a)は、CIELAB色空間を明度軸で切断した一例を示す断面図である。ここでは、画像出力装置103が出力可能な色域と色域外画素の重心の例が示されている。図4(a)に示したとおり、画像出力装置103が出力可能な色域は、正確な四辺形を表していない。そのため、明度軸で切断した断面である等色相面に着目した場合、色域外画素を同色相で色差最小方向にマッピングする際の方向は、その画素位置に応じて異なる。従って、第1の実施の形態では、検出した色域外画素の重心で色差最小方向の判定を行っている。具体的には、図4(a)のA点やB点やC点のそれぞれの場合で、色差最小方向となるユークリッド距離最小方向の判定を行っている。なお、色差最小方向は、ユークリッド距離最小方向に限らず、改良されたCIE94,CIEDE2000等の色差式を用いて判定を行っても良い。   The minimum color difference direction determination unit 402 determines, for each hue region, the direction in which the color difference is minimum with the same hue when the center of gravity of the pixels outside the color gamut detected by the color distribution center of gravity detection unit 401 is mapped in the color gamut of the image output device 103. judge. FIG. 4 is an explanatory diagram illustrating an example of processing performed by the color difference minimum direction determination unit 402. FIG. 4A is a cross-sectional view showing an example of the CIELAB color space cut along the brightness axis. Here, an example of the color gamut that can be output by the image output device 103 and the center of gravity of the pixels outside the color gamut are shown. As shown in FIG. 4A, the color gamut that can be output by the image output apparatus 103 does not represent an accurate quadrilateral. Therefore, when attention is paid to the equi-hue plane which is a cross section cut along the lightness axis, the direction when mapping out-of-gamut pixels to the minimum color difference direction with the same hue varies depending on the pixel position. Therefore, in the first embodiment, the determination of the minimum color difference direction is performed based on the center of gravity of the detected out-of-gamut pixels. Specifically, the determination of the Euclidean distance minimum direction, which is the minimum color difference direction, is performed in each of the points A, B, and C in FIG. Note that the minimum color difference direction is not limited to the minimum Euclidean distance direction, and determination may be made using an improved color difference formula such as CIE94 or CIEDE2000.

なお、マッピング方向を決定して、色域外画素を画像出力装置103が出力可能な色域内にマッピングする場合は、画像出力装置103が出力可能な最高彩度点の明度を境界として、高明度側と低明度側に分けて取り扱う必要がある。図4(b)は、高明度側と低明度側に分けてマッピングする一例を示す説明図である。図4(b)に示した通り、通常、高明度側に比べて低明度側で色域外となる領域は、極めて狭くなる。これは出力装置がカラープリンタの場合に、特に顕著である。低明度側ではマッピング方向を変えても、マッピング先が殆ど変わらない。このため、第一の実施の形態では、低明度側のマッピング方向を固定している。また、高明度側と低明度側に分けずに検出した分布の重心が、低明度側に位置した場合は、重心が高明度側と低明度側の明度境界上にあるものとして、色差最小となる方向を判定する。なお、本実施の形態で行うマッピング方向を決定する処理は、上記に限るものではなく、高明度側と同様に低明度側の色域外画素の重心を検出し、マッピング方向を決定しても良い。   Note that when the mapping direction is determined and the out-of-gamut pixels are mapped in the color gamut that can be output by the image output device 103, the brightness level of the highest saturation point that can be output by the image output device 103 is used as a boundary. It is necessary to handle it separately on the low brightness side. FIG. 4B is an explanatory diagram showing an example of mapping separately on the high brightness side and the low brightness side. As shown in FIG. 4B, the area outside the color gamut on the low lightness side is usually extremely narrow compared to the high lightness side. This is particularly noticeable when the output device is a color printer. Even if the mapping direction is changed on the low brightness side, the mapping destination is hardly changed. For this reason, in the first embodiment, the mapping direction on the low brightness side is fixed. In addition, if the center of gravity of the distribution detected without dividing the high brightness side and the low brightness side is located on the low brightness side, it is assumed that the center of gravity is on the brightness boundary between the high brightness side and the low brightness side, and the color difference is minimum. Determine the direction. Note that the process for determining the mapping direction performed in the present embodiment is not limited to the above, and the mapping direction may be determined by detecting the center of gravity of the pixels outside the color gamut on the low lightness side as with the high lightness side. .

マッピング方向生成部403は、色差最小方向判定部402が判定した色差最小となる方向に基づいて、色相領域毎に明度優先と色差優先と彩度優先のマッピング方向を生成する。図5は、CIELAB色空間を明度軸で切断した一例を示す断面図である。図5に示したとおり、色差最小方向判定部402が判定した色差最小方向と、生成される明度優先と色差優先と彩度優先のマッピング方向の一例を示しているが、図示したように、生成する色差優先方向は、色差最小方向と一致させる。また、明度軸に向かう方向は明度保存方向、明度軸に平行な方向は彩度保存方向である。そして、生成した明度優先方向は明度保存方向と色差最小方向との間、生成した彩度優先方向は彩度保存方向と色差最小方向との間に設定する。   The mapping direction generation unit 403 generates a mapping direction of lightness priority, color difference priority, and saturation priority for each hue area based on the direction that minimizes the color difference determined by the minimum color difference direction determination unit 402. FIG. 5 is a cross-sectional view showing an example of the CIELAB color space cut along the brightness axis. As shown in FIG. 5, an example of the minimum color difference direction determined by the minimum color difference direction determination unit 402 and the mapping directions of the brightness priority, the color difference priority, and the saturation priority generated are shown. The color difference priority direction to be made coincides with the minimum color difference direction. The direction toward the lightness axis is the lightness preservation direction, and the direction parallel to the lightness axis is the saturation preservation direction. The generated brightness priority direction is set between the brightness storage direction and the minimum color difference direction, and the generated saturation priority direction is set between the saturation storage direction and the minimum color difference direction.

明度優先と彩度優先のマッピング方向の生成は、上述したように色差最小方向を参照して行われる。ここで、明度保存方向を0度として定義すると、明度優先と彩度優先のマッピング方向は、例えば、色差最小方向および明度保存方向あるいは彩度保存方向を参照し、以下の(3)式で表される。

Figure 2010220116
The generation of the lightness priority and saturation priority mapping directions is performed with reference to the minimum color difference direction as described above. Here, if the lightness preservation direction is defined as 0 degree, the lightness priority and saturation priority mapping directions are expressed by the following equation (3) with reference to, for example, the minimum color difference direction and the lightness preservation direction or the saturation preservation direction. Is done.
Figure 2010220116

また、明度および彩度優先のマッピング方向は、上記の方式や係数に限定されることなく、例えば、色差最小方向を参照し、以下の(4)式により生成しても良い。

Figure 2010220116
Further, the lightness and saturation priority mapping directions are not limited to the above-described methods and coefficients, and may be generated by, for example, the following equation (4) with reference to the minimum color difference direction.
Figure 2010220116

色分布判定部404は、上述した色相領域毎に、色域外画素の色分布の特徴を判定する。色分布判定部404には、画像出力装置103が出力可能な色域である出力可能色域が入力されており、入力された明度変換画像データが画像出力装置103の色域外か否かを判定し、色域外であれば、該明度変換画像データが属する色相領域の評価対象に加える。   The color distribution determination unit 404 determines the characteristics of the color distribution of the pixels outside the color gamut for each hue area described above. An outputable color gamut that is a color gamut that can be output by the image output device 103 is input to the color distribution determination unit 404, and it is determined whether the input lightness-converted image data is outside the color gamut of the image output device 103. If it is out of the color gamut, it is added to the evaluation target of the hue region to which the lightness-converted image data belongs.

図6は、第1の実施の形態にかかる色分布判定部404の構成を示すブロック図である。色分布判定部404は、色分布方向性判定部601と低明度張り付き判定部602と高明度張り付き判定部603と占有面積率判定部604と高彩度側分布判定部605とを主に備えている。   FIG. 6 is a block diagram illustrating a configuration of the color distribution determination unit 404 according to the first embodiment. The color distribution determination unit 404 mainly includes a color distribution directionality determination unit 601, a low lightness sticking determination unit 602, a high lightness sticking determination unit 603, an occupation area ratio determination unit 604, and a high saturation side distribution determination unit 605.

色分布方向性判定部801は、色域外画素の色分布の方向性が小さいか否かを判定する。方向性の判定は、例えば、色相領域毎に上記評価対象に加えられた色域外画素を主成分分析して実施する。図7は、特定の色相領域に分類された色域外画素の色分布の一例を示す説明図である。図7に示したとおり、色域外画素を主成分分析することによって、3つの固有値ベクトルと各固有ベクトルが色分布の分散にどのくらい寄与しているかを表わす寄与率を得ることができる。従って、寄与率が大きい順に、固有値ベクトルをV1,V2,V3と定めた場合、固有値ベクトルV1と固有値ベクトルV2の寄与率の差が小さければ、色域外画素の色分布の方向性が小さいと判定できる。よって、例えば所定の閾値αを0.5と定めて、以下の(5)式により、色域外画素の色分布の方向性を判定する。

Figure 2010220116
The color distribution directionality determination unit 801 determines whether the directionality of the color distribution of the pixels outside the color gamut is small. The directionality determination is performed, for example, by performing principal component analysis on the out-of-gamut pixels added to the evaluation target for each hue region. FIG. 7 is an explanatory diagram illustrating an example of a color distribution of pixels outside the color gamut classified into a specific hue region. As shown in FIG. 7, by performing principal component analysis on the out-of-gamut pixels, it is possible to obtain a contribution rate indicating how much each of the three eigenvalue vectors and each eigenvector contributes to the dispersion of the color distribution. Accordingly, when the eigenvalue vectors are defined as V1, V2, and V3 in descending order of the contribution rate, if the difference between the contribution rates of the eigenvalue vector V1 and the eigenvalue vector V2 is small, it is determined that the directionality of the color distribution of the pixels outside the color gamut is small. it can. Therefore, for example, the predetermined threshold value α is set to 0.5, and the directionality of the color distribution of the pixels outside the color gamut is determined by the following equation (5).
Figure 2010220116

なお、本実施の形態では、固有値ベクトルV1と固有値ベクトルV2の寄与率の差を評価したが、これは色分布の一方向性の強さを評価するためである。そのため、2次元的な広がりを評価したい場合は、固有値ベクトルV1と固有値ベクトルV3の寄与率の差を評価しても良い。   In the present embodiment, the difference in the contribution ratio between the eigenvalue vector V1 and the eigenvalue vector V2 is evaluated. This is because the unidirectional strength of the color distribution is evaluated. Therefore, when it is desired to evaluate the two-dimensional spread, the difference between the contribution rates of the eigenvalue vector V1 and the eigenvalue vector V3 may be evaluated.

低明度張り付き判定部802は、色域外画素が、画像データの表現可能な色域の最外郭低明度側に張り付いて分布しているか否か判定する。   The low-lightness sticking determination unit 802 determines whether or not the pixels outside the color gamut are sticking to the outermost low-lightness side of the color gamut that can represent the image data.

高明度張り付き判定部803は、色域外画素が、画像データの表現可能な色域の最外郭高明度側に張り付いて分布しているか否か判定する。最外郭に張り付いて分布しているか否かの判定処理を下記に示す。   The high-lightness sticking determination unit 803 determines whether or not the pixels outside the color gamut are attached to the outermost high-lightness side of the color gamut that can represent the image data. Processing for determining whether or not the distribution is attached to the outermost shell is shown below.

図8は、高明度張り付き判定部803の処理の一例を示す説明図である。図8には、上述した明度変換画像データが表現可能な色域と、明度軸上の所定の定点Fに向けて該色域を縮小して生成した色域(以下、「縮小色域」という)を示している。具体的には、例えば、L*が50である定点Fに向けて該色域を縮率90%で縮小して縮小色域を生成する。なお、2つの色域の差に該当する領域(以下、「差分領域」という)は、明度変換画像データが表現可能な色域の最外郭近傍と見なすことができる。従って、明度変換画像データが表現可能な色域の該色相最高彩度点であるAまたはBの明度を参照し、下側の差分領域に色域外画素が分布していれば最外郭低明度側に張り付いていると判定し、上側の差分領域に色域外画素が分布していれば最外郭高明度側に張り付いていると判定する。   FIG. 8 is an explanatory diagram illustrating an example of processing of the high-lightness sticking determination unit 803. FIG. 8 shows a color gamut that can express the lightness-converted image data described above and a color gamut generated by reducing the color gamut toward a predetermined fixed point F on the lightness axis (hereinafter referred to as “reduced color gamut”). ). Specifically, for example, the reduced color gamut is generated by reducing the color gamut at a reduction ratio of 90% toward the fixed point F where L * is 50. An area corresponding to the difference between the two color gamuts (hereinafter referred to as “difference area”) can be regarded as the outermost neighborhood of the color gamut that can express the brightness converted image data. Therefore, referring to the lightness of A or B which is the highest hue saturation point of the color gamut that can be represented by the lightness-converted image data, and if the out-of-gamut pixels are distributed in the lower difference area, the outermost low-lightness side If pixels outside the color gamut are distributed in the upper difference area, it is determined that the pixel is stuck to the outermost high brightness side.

このため、低明度張り付き判定部802や高明度張り付き判定部803は、上述した明度変換画像データが表現可能な色域を、例えば上述した明度変換部104から入手して、下側あるいは上側差分領域を設定する。そして、入力された明度変換画像データが該差分領域内か否かを判定し、領域内外の画素数をそれぞれ算出し、領域内の比率が大きければ、張り付いていると判定する。よって、所定の閾値βを1と定め、以下の(6)式により、最外郭低明度側か最外郭高明度側に張り付いると判定する。

Figure 2010220116
For this reason, the low-lightness sticking determination unit 802 and the high-lightness sticking determination unit 803 obtains a color gamut that can express the lightness-converted image data described above from, for example, the lightness conversion unit 104 described above, and the lower or upper difference region. Set. Then, it is determined whether or not the input brightness-converted image data is within the difference area, the number of pixels inside and outside the area is calculated, and if the ratio within the area is large, it is determined that the area is sticking. Therefore, the predetermined threshold value β is set to 1, and it is determined that it sticks to the outermost low brightness side or the outermost high brightness side according to the following equation (6).
Figure 2010220116

占有面積率判定部804は、色域外画素が占有面積率が小さいか否かを判定する。占有面積率の判定は、例えば、色相領域毎に色域外画素と色域内画素を含む全画素を算出して、その比率を評価する。即ち、所定の閾値γを例えばγ=1/1000と定めて、以下の(7)式により、占有面積率が小さいか否かを判定する。

Figure 2010220116
The occupied area ratio determination unit 804 determines whether or not the pixels outside the color gamut have a small occupied area ratio. For example, the occupation area ratio is determined by calculating all pixels including out-gamut pixels and in-gamut pixels for each hue region, and evaluating the ratio. That is, the predetermined threshold γ is set to γ = 1/1000, for example, and it is determined whether or not the occupation area ratio is small according to the following equation (7).
Figure 2010220116

高彩度側分布判定部805は、色域外画素の主力が画像出力装置103の出力可能な最高彩度より高彩度側に分布しているか否かを判定する。図9は、高彩度側分布判定部805の処理の一例を示す説明図である。高彩度側に分布しているか否かは、例えば、上述の色分布重心検出部401で検出したような色相領域毎の重心が、図9で示したような画像出力装置103が出力可能な最高彩度点よりも高彩度側の高彩度領域に位置するか否かで判定する。なお、高彩度側分布判定部805で行う判定を、色分布重心検出部401で行うようにしても良い。   The high saturation side distribution determination unit 805 determines whether or not the main power of the pixels outside the color gamut is distributed on the high saturation side from the maximum saturation that can be output by the image output apparatus 103. FIG. 9 is an explanatory diagram illustrating an example of processing of the high saturation side distribution determination unit 805. Whether or not the image is distributed on the high saturation side is determined by, for example, the highest chroma that can be output by the image output device 103 as shown in FIG. The determination is made based on whether or not the pixel is located in a high saturation area on the higher saturation side than the degree point. Note that the determination performed by the high saturation side distribution determination unit 805 may be performed by the color distribution centroid detection unit 401.

マッピング方向選択部405は、マッピング方向生成部403が生成した明度優先と色差優先と彩度優先のマッピング方向を、色分布判定部404の判定結果に応じて選択する。色分布判定部404で行われる色分布判定処理の詳細は後述する。   The mapping direction selection unit 405 selects the mapping direction of brightness priority, color difference priority, and saturation priority generated by the mapping direction generation unit 403 according to the determination result of the color distribution determination unit 404. Details of the color distribution determination process performed by the color distribution determination unit 404 will be described later.

色域変換部107は、マッピング方向決定部が決定したマッピング方向と画像出力装置103が出力可能な色域に基づいて、明度変換部104が明度を変換した画像データである明度変換画像データを、画像出力装置103の色域内の画像データに変換する。なお、画像出力装置103の色域は、上述したように画像出力装置103から画像処理装置102に通知される。色分布変換部107で行われる色分布変換の処理の詳細は後述する。   The color gamut conversion unit 107 converts lightness-converted image data, which is image data obtained by converting the lightness by the lightness conversion unit 104, based on the mapping direction determined by the mapping direction determination unit and the color gamut that can be output by the image output device 103. The image data is converted into image data in the color gamut of the image output device 103. Note that the color gamut of the image output apparatus 103 is notified from the image output apparatus 103 to the image processing apparatus 102 as described above. Details of the color distribution conversion processing performed by the color distribution conversion unit 107 will be described later.

次に、以上のように構成された第1の実施の形態にかかる画像処理装置102による画像入力装置からの画像データを画像出力装置の色域内に色域変換するまでの色域変換処理について説明する。図10は、画像処理装置における画像データの色域変換の処理の手順を示すフローチャートである。   Next, the gamut conversion processing until the image data from the image input apparatus by the image processing apparatus 102 according to the first embodiment configured as described above is gamut converted into the gamut of the image output apparatus will be described. To do. FIG. 10 is a flowchart showing a procedure of color gamut conversion processing of image data in the image processing apparatus.

まず、明度変換部104は、画像出力装置の明度域内に、画像入力装置101から取得した原画像データの明度を変換する(ステップS1001)。明度変換部104の原画像データの明度変換の処理の詳細は後述する。   First, the lightness conversion unit 104 converts the lightness of the original image data acquired from the image input device 101 into the lightness range of the image output device (step S1001). Details of the lightness conversion processing of the original image data in the lightness conversion unit 104 will be described later.

そして、画像記憶部105は、明度変換部104から取得した明度変換画像データを記憶する(ステップS1002)。   Then, the image storage unit 105 stores the lightness conversion image data acquired from the lightness conversion unit 104 (step S1002).

次に、マッピング方向決定部106は、画像記憶部105から取得した明度変換画像データにおける画像出力装置の色域外画素のマッピング方向を決定する(ステップS1003)。マッピング方向決定部106のマッピング方向を決定する処理の詳細は後述する。   Next, the mapping direction determination unit 106 determines the mapping direction of the out-of-gamut pixels of the image output device in the brightness-converted image data acquired from the image storage unit 105 (step S1003). Details of the process of determining the mapping direction by the mapping direction determination unit 106 will be described later.

そして、色域変換部107は、マッピング方向決定部106で決定したマッピング方向に、明度変換画像データを変換する(ステップ1004)。色域変換部107の色域変換の処理の詳細は後述する。   Then, the color gamut conversion unit 107 converts the lightness converted image data in the mapping direction determined by the mapping direction determination unit 106 (step 1004). Details of the color gamut conversion processing of the color gamut conversion unit 107 will be described later.

上述した処理手順により、画像入力装置からの画像データを画像出力装置の色域内に色域変換することが可能となる。   According to the processing procedure described above, the image data from the image input device can be color gamut converted into the color gamut of the image output device.

次に、明度変換部104の原画像データの明度変換の処理について説明する。図11は、本実施の形態の画像処理装置における明度変換部104の原画像データの明度変換の処理の手順を示すフローチャートである。   Next, the lightness conversion processing of the original image data in the lightness conversion unit 104 will be described. FIG. 11 is a flowchart showing a procedure of lightness conversion processing of original image data in the lightness conversion unit 104 in the image processing apparatus according to the present embodiment.

まず、明度変換部104は、原画像データが表現可能な明度域および画像出力装置103が出力可能な明度域を取得する(ステップS1101)。これは、原画像データの表色形式や画像出力装置103から通知された色域を参照し、実行される。   First, the lightness conversion unit 104 acquires a lightness region that can represent the original image data and a lightness region that can be output by the image output apparatus 103 (step S1101). This is executed with reference to the color specification format of the original image data and the color gamut notified from the image output apparatus 103.

次に、明度変換部104は、取得した明度域を参照し、明度変換方法を決定する(ステップS1102)。具体的には、図2(b)に示した明度変換特性である直線変換を決定する。   Next, the lightness conversion unit 104 refers to the acquired lightness range and determines a lightness conversion method (step S1102). Specifically, the linear transformation that is the lightness transformation characteristic shown in FIG.

次に、明度変換部104は、画像入力装置101から画像データの出力が開始されて、出力された画像データを取得する(ステップS1103)。なお、取得する画像データの表色形式は、本実施の形態ではAdobeRGBである。   Next, the lightness conversion unit 104 starts outputting image data from the image input device 101, and acquires the output image data (step S1103). Note that the color specification format of the acquired image data is Adobe RGB in the present embodiment.

次に、明度変換部104は、取得した画像データを、CIELABに変換する(ステップS1104)。   Next, the lightness conversion unit 104 converts the acquired image data into CIELAB (step S1104).

次に、明度変換部104は、変換されたCIELABの明度L*を、上記決定した明度変換特性により変換する(ステップS1105)。   Next, the lightness conversion unit 104 converts the converted lightness L * of CIELAB according to the lightness conversion characteristics determined above (step S1105).

次に、明度変換部104は、明度L*が変換されたCIELABを、画像記憶部105に出力する(ステップS1106)。   Next, the lightness conversion unit 104 outputs CIELAB whose lightness L * has been converted to the image storage unit 105 (step S1106).

そして、明度変換部104は、原画像データの処理が全て終了したか否かを判断する(ステップS1107)。ここで、明度変換部104は、原画像データの処理が全て終了していないと判断した場合(ステップS1107:No)、ステップS1103の処理に戻る。   Then, the lightness conversion unit 104 determines whether or not all the processing of the original image data has been completed (step S1107). If the lightness conversion unit 104 determines that the processing of all of the original image data has not been completed (step S1107: No), the process returns to step S1103.

明度変換部104は、原画像データの処理が全て終了したと判断した場合(ステップS1107:Yes)、この明度変換部104の明度変換の処理を終了する。   If the lightness conversion unit 104 determines that all the processing of the original image data has been completed (step S1107: Yes), the lightness conversion unit 104 ends the lightness conversion processing.

上述した処理手順により、明度変換部104の原画像データの明度変換の処理を行うことができる。   The lightness conversion processing of the original image data in the lightness conversion unit 104 can be performed by the above-described processing procedure.

次に、マッピング方向決定部106のマッピング方向を決定する処理について説明する。図12は、本実施の形態の画像処理装置におけるマッピング方向決定部106のマッピング方向を決定する処理の手順を示すフローチャートである。   Next, processing for determining the mapping direction of the mapping direction determination unit 106 will be described. FIG. 12 is a flowchart illustrating a procedure of processing for determining the mapping direction of the mapping direction determination unit 106 in the image processing apparatus according to the present embodiment.

まず、色分布重心検出部301は、明度変換画像データから色分布の重心を検出する(ステップS1201)。色分布重心検出部の処理の詳細は、後述する。   First, the color distribution centroid detection unit 301 detects the centroid of the color distribution from the brightness conversion image data (step S1201). Details of the processing of the color distribution centroid detection unit will be described later.

次に、色差最小方向決定部302は、色差最小方向を決定する(ステップS1202)。   Next, the color difference minimum direction determination unit 302 determines the color difference minimum direction (step S1202).

そして、マッピング方向生成部303は、マッピング方向を生成する(ステップS1203)。   Then, the mapping direction generation unit 303 generates a mapping direction (step S1203).

次に、色分布判定部304は、明度変換画像データから、色分布を判定する(ステップS1204)。   Next, the color distribution determination unit 304 determines the color distribution from the lightness conversion image data (step S1204).

そして、マッピング方向選択部305は、マッピング方向を選択する(ステップS1205)。マッピング方向選択部305のマッピング方向選択の処理の詳細は、後述する。   Then, the mapping direction selection unit 305 selects a mapping direction (step S1205). Details of the mapping direction selection processing of the mapping direction selection unit 305 will be described later.

上述した処理手順により、マッピング方向決定部106のマッピング方向を決定する処理を行うことができる。   With the processing procedure described above, the mapping direction determination unit 106 can perform the process of determining the mapping direction.

次に、色域変換部107の色域変換の処理について説明する。図13は、本実施の形態の画像処理装置における色域変換部107の色域変換の処理の手順を示すフローチャートである。   Next, the color gamut conversion process of the color gamut conversion unit 107 will be described. FIG. 13 is a flowchart showing the procedure of the color gamut conversion process of the color gamut conversion unit 107 in the image processing apparatus according to the present embodiment.

まず、色域変換部107は、画像出力装置103が出力可能な色域を取得する(ステップS1301)。これは、画像出力装置103から通知された色域に基づいて、実施される。   First, the color gamut conversion unit 107 acquires a color gamut that can be output by the image output apparatus 103 (step S1301). This is performed based on the color gamut notified from the image output device 103.

次に、色域変換部107は、マッピング方向決定部が決定したマッピング方向に基づいて色変換テーブルを作成する(ステップS1302)。ここで、色変換テーブルは、明度変換画像データを代表する代表値に対応する出力画像データを求めたものであり、それぞれの代表値に対し、画像出力装置103の色域外か否かを判定し、色域外であれば、対応する色相領域のマッピング方向に基づいて、マッピング先を算出する。また、色域内であればそのままの値を対応させる。   Next, the color gamut conversion unit 107 creates a color conversion table based on the mapping direction determined by the mapping direction determination unit (step S1302). Here, the color conversion table is obtained for output image data corresponding to a representative value representing lightness-converted image data, and it is determined whether or not each representative value is out of the color gamut of the image output device 103. If it is out of the color gamut, the mapping destination is calculated based on the mapping direction of the corresponding hue region. If the color gamut is satisfied, the value as it is is made to correspond.

次に、画像記憶部105からの明度変換画像データの読み出しが開始され、色域変換部107は、読み出された画像データを、上述した色変換テーブルを用いて、出力画像データに変換する(ステップS1303)。   Next, reading of lightness conversion image data from the image storage unit 105 is started, and the color gamut conversion unit 107 converts the read image data into output image data using the above-described color conversion table ( Step S1303).

そして、色域変換部107は、明度変換画像データの処理が全て終了したか否かを判定する(ステップS1304)。色域変換部107が、明度変換画像データの処理が全て終了していないと判断した場合(ステップS1304:No)、ステップS1303の処理に移る。   Then, the color gamut conversion unit 107 determines whether or not the processing of the lightness conversion image data has been completed (step S1304). If the color gamut conversion unit 107 determines that the processing of all the brightness converted image data has not been completed (step S1304: NO), the process proceeds to step S1303.

色域変換部107が、明度変換画像データの処理が全て終了したと判断した場合(ステップS1304:Yes)、色域変換部107の色域変換の処理を終了する。   When the color gamut conversion unit 107 determines that all of the lightness conversion image data processing has been completed (step S1304: Yes), the color gamut conversion processing of the color gamut conversion unit 107 ends.

上述した処理手順により、色域変換部107の色域変換の処理を行うことができる。   The color gamut conversion process of the color gamut conversion unit 107 can be performed by the processing procedure described above.

次に、色分布重心検出部301の色分布重心の検出処理について説明する。図14は、本実施の形態の画像処理装置における色分布重心検出部301の色分布重心の検出処理の手順を示すフローチャートである。   Next, the color distribution centroid detection process of the color distribution centroid detection unit 301 will be described. FIG. 14 is a flowchart illustrating a procedure of color distribution centroid detection processing of the color distribution centroid detection unit 301 in the image processing apparatus according to the present embodiment.

まず、色分布重心検出部301は、画像出力装置103が出力可能な色域を取得する(ステップS1401)。これは、上述の画像出力装置103から通知された色域に基づいて、実施する。   First, the color distribution centroid detection unit 301 acquires a color gamut that can be output by the image output apparatus 103 (step S1401). This is performed based on the color gamut notified from the image output device 103 described above.

次に、色分布重心検出部301は、画像記憶部105から明度変換画像データの読み出しが開始され、読み出された画像データを取得する(ステップS1402)。   Next, the color distribution centroid detection unit 301 starts reading the brightness conversion image data from the image storage unit 105 and acquires the read image data (step S1402).

そして、色分布重心検出部301は、取得した画像データが、画像出力装置103の色域外か否かを判断する(ステップS1403)。色分布重心検出部301が、取得した画像データが画像出力装置103の色域外であると判断した場合(ステップS1403:Yes)、色分布重心検出部301は、該画像データが属する色相領域に応じて画像データを集計する(ステップS1404)。なお、色分布重心検出部301が、取得した画像データが画像出力装置103の色域外でないと判断した場合(ステップS1403:No)、後述するステップS1405の処理を行う。   Then, the color distribution center-of-gravity detection unit 301 determines whether the acquired image data is outside the color gamut of the image output device 103 (step S1403). When the color distribution centroid detection unit 301 determines that the acquired image data is outside the color gamut of the image output device 103 (step S1403: Yes), the color distribution centroid detection unit 301 responds to the hue region to which the image data belongs. The image data is totaled (step S1404). If the color distribution centroid detection unit 301 determines that the acquired image data is not out of the color gamut of the image output device 103 (step S1403: No), the process of step S1405 described below is performed.

次に、色分布重心検出部301は、明度変換画像データの処理が全て終了したか判断する(ステップS1405)。ここで、色分布重心検出部301が、明度変換画像データの処理が全て終了していないと判断した場合(ステップS1405:No)、ステップS1402の処理を行う。   Next, the color distribution center-of-gravity detection unit 301 determines whether or not the processing of the brightness conversion image data has been completed (step S1405). If the color distribution center-of-gravity detection unit 301 determines that the processing of all the brightness-converted image data has not been completed (step S1405: No), the process of step S1402 is performed.

ここで、色分布重心検出部301は、明度変換画像データの処理が全て終了したと判断した場合(ステップS1405:Yes)、色分布重心検出部301は、色相領域別の集計値を参照し、それぞれの重心を算出する(ステップS1406)。そして色分布重心検出部301の処理を終了する。   Here, when the color distribution centroid detection unit 301 determines that all the processing of the lightness conversion image data has been completed (step S1405: Yes), the color distribution centroid detection unit 301 refers to the total value for each hue region, Each center of gravity is calculated (step S1406). Then, the process of the color distribution centroid detection unit 301 is terminated.

上述した処理手順により、色分布重心検出部301の色分布重心の検出処理を行うことができる。   The color distribution centroid detection process of the color distribution centroid detection unit 301 can be performed by the processing procedure described above.

次に、マッピング方向選択部305のマッピング方向を選択する処理について説明する。図15は、本実施の形態の画像処理装置におけるマッピング方向選択部305のマッピング方向を選択する処理の手順を示すフローチャートである。   Next, processing for selecting a mapping direction by the mapping direction selection unit 305 will be described. FIG. 15 is a flowchart illustrating a processing procedure for selecting the mapping direction of the mapping direction selection unit 305 in the image processing apparatus according to the present embodiment.

まず、マッピング方向選択部305は、色相領域の設定を行う(ステップS1501)。前述したように、マッピング方向生成部403および色分布判定部404は、それぞれ色相領域ごとに明度優先と色差優先と彩度優先のマッピング方向の生成と、色分布の判定を実施し、マッピング方向の選択も色相領域毎に実施する。   First, the mapping direction selection unit 305 sets a hue area (step S1501). As described above, the mapping direction generation unit 403 and the color distribution determination unit 404 generate the mapping direction of lightness priority, color difference priority, and saturation priority for each hue region, and determine the color distribution. Selection is also performed for each hue region.

そして、マッピング方向選択部305は、それぞれの色相領域において、色域外画素の色分布の方向性が小さいか否かを判断する(ステップS1502)。ここで、マッピング方向選択部305が、それぞれの色相領域において色域外画素の色分布の方向性が小さいと判断した場合(ステップS1502:Yes)、マッピング方向選択部305は、色差優先のマッピング方向を選択する(ステップS1507)。   Then, the mapping direction selection unit 305 determines whether or not the directionality of the color distribution of the pixels outside the color gamut is small in each hue region (step S1502). Here, when the mapping direction selection unit 305 determines that the directionality of the color distribution of the out-of-gamut pixel is small in each hue region (step S1502: Yes), the mapping direction selection unit 305 selects the mapping direction with the color difference priority. Select (step S1507).

また、マッピング方向選択部305が、それぞれの色相領域において色域外画素の色分布の方向性が小さくないと判断した場合(ステップS1502:No)、マッピング方向選択部305は、色域外画素が最外郭低明度側に張り付いているか否かを判断する(ステップS1503)。   If the mapping direction selection unit 305 determines that the directionality of the color distribution of the out-of-gamut pixel is not small in each hue region (step S1502: No), the mapping-direction selection unit 305 determines that the out-of-gamut pixel is the outermost contour. It is determined whether or not it is stuck to the low brightness side (step S1503).

ここで、マッピング方向選択部305が、色域外画素が最外郭低明度側に張り付いていると判断した場合(ステップS1503:Yes)、マッピング方向選択部305は、明度優先のマッピング方向を選択する(ステップS1508)。   Here, when the mapping direction selection unit 305 determines that the out-of-gamut pixels are stuck on the outermost low brightness side (step S1503: Yes), the mapping direction selection unit 305 selects the brightness priority mapping direction. (Step S1508).

また、マッピング方向選択部305が、色域外画素が最外郭低明度側に張り付いていないと判断した場合(ステップS1503:No)、マッピング方向選択部305は、色域外画素が最外郭高明度側に張り付いているか否かを判断する(ステップS1504)。   When the mapping direction selection unit 305 determines that the out-of-gamut pixel is not attached to the outermost low brightness side (step S1503: No), the mapping direction selection unit 305 determines that the out-of-gamut pixel is the outermost high brightness side. It is determined whether or not it sticks to (step S1504).

ここで、マッピング方向選択部305が、色域外画素が最外郭高明度側に張り付いていると判断した場合(ステップS1504:Yes)、マッピング方向選択部305は、彩度優先のマッピング方向を選択する(ステップS1509)。   Here, when the mapping direction selection unit 305 determines that the out-of-gamut pixel is attached to the outermost high brightness side (step S1504: Yes), the mapping direction selection unit 305 selects the mapping direction with priority on saturation. (Step S1509).

また、マッピング方向選択部305が、色域外画素が最外郭高明度側に張り付いていないと判断した場合(ステップS1504:No)、マッピング方向選択部305は、色域外画素の占有面積率が小さいか否かを判断する(ステップS1505)。   If the mapping direction selection unit 305 determines that the pixels outside the color gamut are not attached to the outermost high brightness side (step S1504: No), the mapping direction selection unit 305 has a small occupation area ratio of the pixels outside the color gamut. Whether or not (step S1505).

ここで、マッピング方向選択部305が、色域外画素の占有面積率が小さいと判断した場合(ステップS1505:Yes)、マッピング方向選択部305は、彩度優先のマッピング方向を選択する(ステップS1509)。   If the mapping direction selection unit 305 determines that the occupied area ratio of the pixels outside the color gamut is small (step S1505: Yes), the mapping direction selection unit 305 selects a mapping direction with priority on saturation (step S1509). .

また、マッピング方向選択部305が、色域外画素の占有面積率が小さくないと判断した場合(ステップS1505:No)、マッピング方向選択部305は、色域外画素の主力が高彩度側に分布しているか否かを判断する(ステップS1506)。   If the mapping direction selection unit 305 determines that the occupied area ratio of the out-of-gamut pixels is not small (step S1505: No), the mapping-direction selection unit 305 determines whether the main power of the out-of-gamut pixels is distributed on the high saturation side. It is determined whether or not (step S1506).

ここで、マッピング方向選択部305が、色域外画素の主力が高彩度側に分布していると判断した場合(ステップS1506:Yes)、マッピング方向選択部305は、明度優先のマッピング方向を選択する(ステップS1508)。   Here, when the mapping direction selection unit 305 determines that the main force of the out-of-gamut pixels is distributed on the high saturation side (step S1506: Yes), the mapping direction selection unit 305 selects a lightness priority mapping direction ( Step S1508).

また、マッピング方向選択部305が、色域外画素の主力が高彩度側に分布していないと判断した場合(ステップS1506:No)、マッピング方向選択部305は、色差優先のマッピング方向を選択する(ステップS1507)。   If the mapping direction selection unit 305 determines that the main color of the out-of-gamut pixels is not distributed on the high saturation side (step S1506: No), the mapping direction selection unit 305 selects a mapping direction with color difference priority (step S1506). S1507).

そして、マッピング方向選択部305が、全ての色相領域の選択が終了したかを判断する(ステップS1510)。マッピング方向選択部305が、全ての色相領域の選択が終了していないと判断した場合(ステップS1510:No)、ステップS1501の処理を実行する。   Then, the mapping direction selection unit 305 determines whether selection of all hue regions has been completed (step S1510). When the mapping direction selection unit 305 determines that selection of all the hue regions is not completed (step S1510: No), the process of step S1501 is executed.

また、マッピング方向選択部305が、全ての色相領域の選択が終了したと判断した場合(ステップS1510:Yes)、このマッピング方向選択部305の処理を終了する。これにより、全ての色相領域で優先されるマッピング方向が確定し、マッピング方向が決定されたことになる。   Further, when the mapping direction selection unit 305 determines that selection of all the hue regions has been completed (step S1510: Yes), the processing of the mapping direction selection unit 305 is ended. As a result, the mapping direction prioritized in all the hue regions is determined, and the mapping direction is determined.

上述した処理手順により、マッピング方向選択部305のマッピング方向を選択する処理を行うことができる。   With the processing procedure described above, the mapping direction selection unit 305 can select the mapping direction.

このように、本実施の形態では、画像データに対して、明度変換を行い、彩度変換を実行するときに各画素に対してマッピング方向を決定することができるため、彩度低下や階調つぶれが低減された良好な画像を安定して得ることができる。   As described above, in this embodiment, since the brightness conversion is performed on the image data and the mapping direction can be determined for each pixel when the saturation conversion is performed, the saturation reduction and the gradation are determined. A good image with reduced collapse can be stably obtained.

図16は、第1の実施の形態にかかる画像処理装置のハードウェア構成を示すブロック図である。本図に示すように、この画像処理装置は、コントローラ10とエンジン部(Engine)60とをPCI(Peripheral Component Interface)バスで接続した構成となる。コントローラ10は、画像処理装置全体の制御と描画、通信、図示しない操作部からの入力を制御するコントローラである。エンジン部60は、PCIバスに接続可能なプリンタエンジンなどであり、たとえば白黒プロッタ、1ドラムカラープロッタ、4ドラムカラープロッタ、スキャナまたはファックスユニットなどである。なお、このエンジン部60には、プロッタなどのいわゆるエンジン部分に加えて、誤差拡散やガンマ変換などの画像処理部分が含まれる。   FIG. 16 is a block diagram of a hardware configuration of the image processing apparatus according to the first embodiment. As shown in the figure, this image processing apparatus has a configuration in which a controller 10 and an engine unit (Engine) 60 are connected by a PCI (Peripheral Component Interface) bus. The controller 10 is a controller that controls the entire image processing apparatus and controls drawing, communication, and input from an operation unit (not shown). The engine unit 60 is a printer engine that can be connected to a PCI bus, and is, for example, a monochrome plotter, a one-drum color plotter, a four-drum color plotter, a scanner, or a fax unit. The engine unit 60 includes an image processing part such as error diffusion and gamma conversion in addition to a so-called engine part such as a plotter.

コントローラ10は、CPU11と、ノースブリッジ(NB)13と、システムメモリ(MEM−P)12と、サウスブリッジ(SB)14と、ローカルメモリ(MEM−C)17と、ASIC(Application Specific Integrated Circuit)16と、ハードディスクドライブ(HDD)18とを有し、ノースブリッジ(NB)13とASIC16との間をAGP(Accelerated Graphics Port)バス15で接続した構成となる。また、MEM−P12は、ROM(Read Only Memory)12aと、RAM(Random Access Memory)12bと、をさらに有する。   The controller 10 includes a CPU 11, a north bridge (NB) 13, a system memory (MEM-P) 12, a south bridge (SB) 14, a local memory (MEM-C) 17, and an ASIC (Application Specific Integrated Circuit). 16 and a hard disk drive (HDD) 18, and the north bridge (NB) 13 and the ASIC 16 are connected by an AGP (Accelerated Graphics Port) bus 15. The MEM-P 12 further includes a ROM (Read Only Memory) 12a and a RAM (Random Access Memory) 12b.

CPU11は、画像処理装置の全体制御をおこなうものであり、NB13、MEM−P12およびSB14からなるチップセットを有し、このチップセットを介して他の機器と接続される。   The CPU 11 performs overall control of the image processing apparatus. The CPU 11 includes a chip set including the NB 13, the MEM-P 12, and the SB 14, and is connected to other devices via the chip set.

NB13は、CPU11とMEM−P12、SB14、AGP15とを接続するためのブリッジであり、MEM−P12に対する読み書きなどを制御するメモリコントローラと、PCIマスタおよびAGPターゲットとを有する。   The NB 13 is a bridge for connecting the CPU 11 to the MEM-P 12, SB 14, and AGP 15, and includes a memory controller that controls reading and writing to the MEM-P 12, a PCI master, and an AGP target.

MEM−P12は、プログラムやデータの格納用メモリ、プログラムやデータの展開用メモリ、プリンタの描画用メモリなどとして用いるシステムメモリであり、ROM12aとRAM12bとからなる。ROM12aは、プログラムやデータの格納用メモリとして用いる読み出し専用のメモリであり、RAM12bは、プログラムやデータの展開用メモリ、プリンタの描画用メモリなどとして用いる書き込みおよび読み出し可能なメモリである。   The MEM-P 12 is a system memory used as a memory for storing programs and data, a memory for developing programs and data, a memory for drawing a printer, and the like, and includes a ROM 12a and a RAM 12b. The ROM 12a is a read-only memory used as a program / data storage memory, and the RAM 12b is a writable / readable memory used as a program / data development memory, a printer drawing memory, or the like.

SB14は、NB13とPCIデバイス、周辺デバイスとを接続するためのブリッジである。このSB14は、PCIバスを介してNB13と接続されており、このPCIバスには、ネットワークインターフェース(I/F)部なども接続される。   The SB 14 is a bridge for connecting the NB 13 to a PCI device and peripheral devices. The SB 14 is connected to the NB 13 via a PCI bus, and a network interface (I / F) unit and the like are also connected to the PCI bus.

ASIC16は、画像処理用のハードウェア要素を有する画像処理用途向けのIC(Integrated Circuit)であり、AGP15、PCIバス、HDD18およびMEM−C17をそれぞれ接続するブリッジの役割を有する。このASIC16は、PCIターゲットおよびAGPマスタと、ASIC16の中核をなすアービタ(ARB)と、MEM−C17を制御するメモリコントローラと、ハードウェアロジックなどにより画像データの回転などをおこなう複数のDMAC(Direct Memory Access Controller)と、エンジン部60との間でPCIバスを介したデータ転送をおこなうPCIユニットとからなる。このASIC16には、PCIバスを介してFCU(Facsimile Control Unit)30、USB(Universal Serial Bus)40、IEEE1394(the Institute of Electrical and Electronics Engineers 1394)インターフェース50が接続される。操作表示部20はASIC16に直接接続されている。   The ASIC 16 is an IC (Integrated Circuit) for image processing applications having hardware elements for image processing, and has a role of a bridge for connecting the AGP 15, PCI bus, HDD 18, and MEM-C 17. The ASIC 16 includes a PCI target and an AGP master, an arbiter (ARB) that forms the core of the ASIC 16, a memory controller that controls the MEM-C 17, and a plurality of DMACs (Direct Memory) that rotate image data using hardware logic. (Access Controller) and a PCI unit that performs data transfer between the engine unit 60 via the PCI bus. The ASIC 16 is connected to an FCU (Facsimile Control Unit) 30, a USB (Universal Serial Bus) 40, and an IEEE 1394 (the Institute of Electrical Engineering 50 interface) via a PCI bus. The operation display unit 20 is directly connected to the ASIC 16.

MEM−C17は、コピー用画像バッファ、符号バッファとして用いるローカルメモリであり、HDD(Hard Disk Drive)18は、画像データの蓄積、プログラムの蓄積、フォントデータの蓄積、フォームの蓄積を行うためのストレージである。   The MEM-C 17 is a local memory used as a copy image buffer and a code buffer, and an HDD (Hard Disk Drive) 18 is a storage for storing image data, programs, font data, and forms. It is.

AGP15は、グラフィック処理を高速化するために提案されたグラフィックスアクセラレーターカード用のバスインターフェースであり、MEM−P12に高スループットで直接アクセスすることにより、グラフィックスアクセラレーターカードを高速にするものである。   The AGP 15 is a bus interface for a graphics accelerator card proposed for speeding up graphics processing. The AGP 15 speeds up the graphics accelerator card by directly accessing the MEM-P 12 with high throughput. .

さらなる効果や変形例は、当業者によって容易に導き出すことができる。本発明の実施態様は、以上に説明したような特定の実施形態に限定されるものではない。   Further effects and modifications can be easily derived by those skilled in the art. The embodiments of the present invention are not limited to the specific embodiments as described above.

101 画像入力装置
102 画像処理装置
103 画像出力装置
104 明度変換部
105 画像記憶部
106 マッピング方向決定部
107 色域変換部
DESCRIPTION OF SYMBOLS 101 Image input device 102 Image processing device 103 Image output device 104 Lightness conversion part 105 Image storage part 106 Mapping direction determination part 107 Color gamut conversion part

特開平04−196675号公報Japanese Patent Laid-Open No. 04-196675 特開2002−027263号公報Japanese Patent Laid-Open No. 2002-027263 特許第3502496号Japanese Patent No. 3502496

Claims (10)

画像出力装置の色域外の画素を含む原画像データを、前記画像出力装置の色域内の出力画像データに変換する画像処理装置であって、
前記原画像データが表現可能な明度域と前記画像出力装置が出力可能な明度域に少なくとも基づいて、前記原画像データの明度を前記画像出力装置の明度域内に変換し、明度変換画像データを出力する明度変換手段と、
前記明度変換画像データと前記画像出力装置が出力可能な色域に少なくとも基づいて、前記明度変換画像データであり前記画像出力装置の色域外画素となる画素の変換方向となるマッピング方向を決定するマッピング方向決定手段と、
前記マッピング方向決定手段で決定されたマッピング方向に基づいて、前記明度変換画像データを、前記画像出力装置の色域内の画像データに変換する色域変換手段と
を少なくとも備えることを特徴とする画像処理装置。
An image processing device that converts original image data including pixels outside the color gamut of the image output device into output image data within the color gamut of the image output device,
Based on at least the lightness range that the original image data can represent and the lightness range that the image output device can output, the lightness of the original image data is converted into the lightness region of the image output device, and lightness converted image data is output. Brightness conversion means to
Mapping that determines a mapping direction that is a conversion direction of a pixel that is the lightness-converted image data and is a pixel outside the color gamut of the image output device, based on at least the lightness-converted image data and a color gamut that can be output by the image output device Direction determining means;
Image processing comprising at least color gamut conversion means for converting the lightness-converted image data into image data within the color gamut of the image output device based on the mapping direction determined by the mapping direction determination means. apparatus.
前記マッピング方向決定手段は、
色相毎に、前記明度変換画像データの前記画像出力装置の色域外画素の重心を検出する色分布重心検出手段と、
前記検出した色域外画素の重心を、前記画像出力装置の色域内にマッピングした際に、色差最小となる方向を判定する色差最小方向判定手段と、
前記判定した色差最小となる方向に基づいて、少なくとも明度/色差/彩度優先のマッピング方向を生成するマッピング方向生成手段と、
色相毎に、前記明度変換画像データの前記画像出力装置の色域外画素の色分布を判定する色分布判定手段と、
前記生成した少なくとも明度/色差/彩度優先のマッピング方向を、前記判定した色分布に基づいて選択するマッピング方向選択手段と
を少なくとも備えることを特徴とする請求項1に記載の画像処理装置。
The mapping direction determining means includes
Color distribution centroid detection means for detecting the centroid of pixels outside the color gamut of the image output device of the lightness conversion image data for each hue;
A color difference minimum direction determining means for determining a direction in which the color difference is minimum when mapping the center of gravity of the detected out-of-gamut pixels within the color gamut of the image output device;
Mapping direction generation means for generating a mapping direction of at least lightness / color difference / saturation priority based on the determined direction of minimum color difference;
Color distribution determination means for determining a color distribution of pixels outside the color gamut of the image output device of the lightness conversion image data for each hue;
The image processing apparatus according to claim 1, further comprising: a mapping direction selection unit that selects the generated mapping direction of at least brightness / color difference / saturation priority based on the determined color distribution.
前記色分布判定手段は、前記明度変換画像データの前記画像出力装置の色域外画素の色分布の方向性が小さいか否かを判定し、
前記マッピング方向選択手段は、色域外画素の色分布の方向性が小さいと判定した場合に、前記生成した色差優先のマッピング方向を、前記色相のマッピング方向として選択すること
を特徴する請求項3に記載の画像処理装置。
The color distribution determination means determines whether or not the directionality of the color distribution of the out-of-gamut pixels of the image output device of the lightness-converted image data is small;
The mapping direction selection unit selects the generated color difference priority mapping direction as the hue mapping direction when it is determined that the directionality of the color distribution of the out-of-gamut pixels is small. The image processing apparatus described.
前記色分布判定手段は、前記明度変換画像データの前記画像出力装置の色域外画素が、 画像データの表現可能な色域の最外郭低明度側に張り付いて分布しているか否か判定し、
前記マッピング方向選択手段は、低明度側に張り付いて分布していると判定した場合に、前記生成した明度優先のマッピング方向を、前記色相のマッピング方向として選択する
こと
を特徴する請求項2または3に記載の画像処理装置。
The color distribution determination means determines whether or not pixels outside the color gamut of the image output device of the lightness-converted image data are distributed on the outermost low brightness side of the color gamut that can be represented by the image data,
The mapping direction selection unit selects the generated lightness priority mapping direction as the hue mapping direction when it is determined that the mapping direction selection unit is attached to the low lightness side and is distributed. The image processing apparatus according to 3.
前記色分布判定手段は、前記明度変換画像データの前記画像出力装置の色域外画素が、画像データの表現可能な色域の最外郭高明度側に張り付いて分布しているか判定し、
前記マッピング方向選択手段は、高明度側に張り付いて分布していると前記高明度張り付き判定手段が判定した場合に、前記生成した彩度優先のマッピング方向を、前記色相のマッピング方向として選択する
こと
を特徴する請求項2〜4のいずれか1つに記載の画像処理装置。
The color distribution determining means determines whether or not pixels outside the color gamut of the image output device of the lightness-converted image data are distributed on the outermost high brightness side of the color gamut that can be represented by the image data,
The mapping direction selection unit selects the generated saturation priority mapping direction as the hue mapping direction when the high lightness sticking determination unit determines that the high lightness sticking is determined to be distributed on the high lightness side. The image processing apparatus according to any one of claims 2 to 4, wherein
前記色分布判定手段は、前記明度変換画像データの前記画像出力装置の色域外画素の占有面積率を色相毎に判定し、
前記マッピング方向選択手段は、占有面積率が小さいと前記占有面積率手段が判定した場合に、前記生成した彩度優先のマッピング方向を、前記色相のマッピング方向として選択すること
を特徴する請求項2〜5のいずれか1つに記載の画像処理装置。
The color distribution determining means determines, for each hue, an occupation area ratio of pixels outside the color gamut of the image output device of the brightness converted image data,
The mapping direction selection unit selects the generated saturation priority mapping direction as the hue mapping direction when the occupied area rate unit determines that the occupied area rate is small. The image processing apparatus according to any one of?
前記色分布判定手段は、前記明度変換画像データの前記画像出力装置の色域外画素の主力がプリンタガマットの最高彩度より高彩度側に分布しているか判定し、
前記マッピング方向選択手段は、最高彩度より高彩度側に分布していると前記高彩度側分布判定手段が判定した場合に、前記生成した明度優先のマッピング方向を、前記色相のマッピング方向として選択すること
を特徴する請求項2〜6のいずれか1つに記載の画像処理装置。
The color distribution determining means determines whether the main force of the out-of-gamut pixels of the image output device of the lightness-converted image data is distributed on the higher saturation side than the highest saturation of the printer gamut;
The mapping direction selection means selects the generated lightness-priority mapping direction as the hue mapping direction when the high saturation side distribution determination means determines that the distribution is on the higher saturation side than the highest saturation. The image processing apparatus according to any one of claims 2 to 6.
画像出力装置の色域外の画素を含む原画像データを、前記画像出力装置の色域内の出力画像データに変換する画像処理方法であって、
前記原画像データが表現可能な明度域と前記画像出力装置が出力可能な明度域に少なくとも基づいて、前記画像出力装置の明度域内に前記原画像データの明度を変換し、明度変換画像データを出力する明度変換ステップと、
前記明度変換画像データと前記画像出力装置が出力可能な色域に少なくとも基づいて、前記明度変換画像データの前記画像出力装置の色域外画素のマッピング方向を決定するマッピング方向決定ステップと、
前記マッピング方向決定ステップで決定されたマッピング方向に基づいて、前記明度変換画像データを、前記画像出力装置の色域内の画像データに変換する色域変換ステップと
を少なくとも備えることを特徴とする画像処理方法。
An image processing method for converting original image data including pixels outside the color gamut of the image output device into output image data within the color gamut of the image output device,
Based on at least the lightness range that can be expressed by the original image data and the lightness range that can be output by the image output device, the lightness of the original image data is converted into the lightness range of the image output device, and lightness converted image data is output. A brightness conversion step to
A mapping direction determining step for determining a mapping direction of pixels outside the color gamut of the image output device of the lightness converted image data based on at least the lightness converted image data and a color gamut that can be output by the image output device;
A color gamut conversion step of converting the lightness-converted image data into image data within the color gamut of the image output device based on the mapping direction determined in the mapping direction determination step. Method.
請求項8に記載された画像処理方法をコンピュータで実行させることを特徴とする画像処理プログラム。   An image processing program causing a computer to execute the image processing method according to claim 8. 請求項9に記載のプログラムを記憶したコンピュータ読み取り可能な記録媒体。   A computer-readable recording medium storing the program according to claim 9.
JP2009067034A 2009-03-18 2009-03-18 Image processing apparatus, image processing method, image processing program, and computer readable storage medium Pending JP2010220116A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009067034A JP2010220116A (en) 2009-03-18 2009-03-18 Image processing apparatus, image processing method, image processing program, and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009067034A JP2010220116A (en) 2009-03-18 2009-03-18 Image processing apparatus, image processing method, image processing program, and computer readable storage medium

Publications (1)

Publication Number Publication Date
JP2010220116A true JP2010220116A (en) 2010-09-30

Family

ID=42978426

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009067034A Pending JP2010220116A (en) 2009-03-18 2009-03-18 Image processing apparatus, image processing method, image processing program, and computer readable storage medium

Country Status (1)

Country Link
JP (1) JP2010220116A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2023044689A (en) * 2021-09-18 2023-03-31 株式会社ツバサファクトリー Image processing unit
US11968347B2 (en) 2021-10-18 2024-04-23 Canon Kabushiki Kaisha Image processing apparatus, image processing method, and storage medium storing program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2023044689A (en) * 2021-09-18 2023-03-31 株式会社ツバサファクトリー Image processing unit
US11968347B2 (en) 2021-10-18 2024-04-23 Canon Kabushiki Kaisha Image processing apparatus, image processing method, and storage medium storing program

Similar Documents

Publication Publication Date Title
JP2007013551A (en) Image processing apparatus and image processing method
JP4974853B2 (en) Image processing apparatus, image processing method, and program
JP2011069864A (en) Image processing apparatus, image forming apparatus and image processing program
BR102013018265A2 (en) image processing apparatus, image processing method, and program
JP6241192B2 (en) Image processing apparatus, image processing system, image processing method, program, and recording medium
US20150178606A1 (en) Image processing apparatus
JP4840614B2 (en) Image processing apparatus and image processing program
JP6682867B2 (en) Image processing device
JP2010220116A (en) Image processing apparatus, image processing method, image processing program, and computer readable storage medium
JP5955822B2 (en) Color conversion apparatus, image forming apparatus, color conversion method, and color conversion program
JP2020072402A (en) Image processing apparatus, image processing method, and program
JP4814162B2 (en) Image processing apparatus and image processing method
US10523840B2 (en) Image processing apparatus, image processing method, and recording medium
US8531746B2 (en) Image processing apparatus
JP2016100682A (en) Image processing apparatus, control program of image processing apparatus, and control method of image processing apparatus
JP4983955B2 (en) Image processing apparatus and image processing program
JP2004096447A (en) Image processing apparatus and method thereof
JP6535222B2 (en) Image processing apparatus and image forming system
US8873109B2 (en) Printing apparatus and method for combining a document image with a copy-forgery-inhibited pattern image
JP6292061B2 (en) Information processing apparatus and program
JP7321885B2 (en) Image processing device, image processing method, and program
JP4740164B2 (en) Image processing apparatus, image processing method, and image processing program
JP2015114490A (en) Image processing apparatus and image processing method, and program
JP2018121222A (en) Image processing apparatus, and computer program
JP2009124562A (en) Color signal processor, image processor, color signal processing program, and image processing program