JP2010011299A - Image processor and image processing method - Google Patents

Image processor and image processing method Download PDF

Info

Publication number
JP2010011299A
JP2010011299A JP2008170564A JP2008170564A JP2010011299A JP 2010011299 A JP2010011299 A JP 2010011299A JP 2008170564 A JP2008170564 A JP 2008170564A JP 2008170564 A JP2008170564 A JP 2008170564A JP 2010011299 A JP2010011299 A JP 2010011299A
Authority
JP
Japan
Prior art keywords
reference line
hue
value
color space
pixel value
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
JP2008170564A
Other languages
Japanese (ja)
Inventor
Yoshie Imai
井 良 枝 今
Takeshi 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.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP2008170564A priority Critical patent/JP2010011299A/en
Publication of JP2010011299A publication Critical patent/JP2010011299A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To obtain reproduction of colors that a human being would feel preferable, by making an effective use of a color gamut. <P>SOLUTION: An image processor includes a maximum saturation point estimating portion for acquiring not only a contour to the extent pixel values are distributed on the subject hue surface expressed by the hue value for representing each interval, but also a maximum saturation point which the value that the saturation acquires becomes a maximum, with respect to each of the intervals where a color space expressed by the hue and saturation, as well as, the intensity is divided as to the hue; a reference line setting portion for setting the reference line such that the intensity increases as the saturation increases passing through the maximum saturation point and intensity axis of the color space; and a correction direction calculating portion for acquiring the correction direction of each pixel value, according to the distance between a point of the color space for representing each pixel value of the input image and the reference line of the intervals to which each pixel belongs. Furthermore, the image processor includes a correction portion for acquiring the corrected pixel value, by correcting each pixel value according to the distance from the point of the color space for representing each pixel value of the input image to the contour toward the correction direction, and an output portion for outputting the corrected pixel value. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、カラー画像を処理する画像処理装置および画像処理方法に関し、たとえば、外部から入力されたカラー画像信号を、表示装置において好ましい色再現となるように変換する技術に関する。   The present invention relates to an image processing apparatus and an image processing method for processing a color image. For example, the present invention relates to a technique for converting a color image signal input from the outside so as to achieve preferable color reproduction in a display device.

画像機器の特性は様々であり、同一のカラー画像信号を入力したとしても、画像機器により様々な色で表示される。これは、各画像機器が一般的に、同じ信号を同じ色で出力できるような仕様になっていないことに起因する。このような現象は、出力系の色再現領域、つまり色域が、入力系の色域よりも狭い場合に大きな問題になる。例えば、PC(Personal Computer)のモニタ等で表示される画像を、プリンタ等の出力系で表示するといったような場合に、再現できない範囲に存在する色をどのように表示するかが問題となる。   There are various characteristics of the image equipment, and even if the same color image signal is input, the image equipment displays in various colors. This is due to the fact that each image device is not generally designed to output the same signal in the same color. Such a phenomenon becomes a serious problem when the color reproduction area of the output system, that is, the color gamut is narrower than the color gamut of the input system. For example, when an image displayed on a monitor of a PC (Personal Computer) or the like is displayed on an output system such as a printer, how to display colors existing in a range that cannot be reproduced becomes a problem.

このように色域外の色が発生する場合、画像データの色域を圧縮する必要があり、これは古くから取り組まれている。色域圧縮には、色域範囲外の色を色域の最外郭にクリッピングすることが基本であるが、多くの色が同一の色に圧縮されて飽和してしまうため、階調性が悪化してしまう。そこで、線形圧縮や非線形圧縮等が用いられている。例えば、特許文献1には、色相を固定した上で、彩度を明度軸に向かって圧縮する方法が記載されている。また、特許文献2には同色相で、所定の色空間の明度軸の中間点に向かって圧縮する方法が記載されている。
特開平3−73672号公報 特開平4−196675号公報
When a color out of the color gamut occurs in this way, it is necessary to compress the color gamut of the image data, which has been addressed for a long time. Color gamut compression is basically clipping colors outside the gamut to the outermost gamut, but many colors are compressed into the same color and saturated, resulting in poor gradation. Resulting in. Therefore, linear compression, nonlinear compression, or the like is used. For example, Patent Document 1 describes a method of compressing the saturation toward the lightness axis while fixing the hue. Further, Patent Document 2 describes a method of compressing toward the middle point of the brightness axis of a predetermined color space with the same hue.
JP-A-3-73672 Japanese Patent Laid-Open No. 4-196675

ところで、画像機器の発達と共に、入力系の色域よりも出力系の色域が広い場合も増えてきた。このような場合においては、出力系の画像機器の色域を有効に使用することで、より好ましく画像を再現することが望まれている。一般的に、人間は鮮やかな画像を好む傾向がある。さらに、入力カラー画像信号が、色域の中心に近い、狭い範囲にしか存在しない場合にも、同様な要望がある。   By the way, with the development of image equipment, the number of cases where the output color gamut is wider than the input color gamut has increased. In such a case, it is desired to reproduce the image more preferably by effectively using the color gamut of the output image device. In general, humans tend to prefer vivid images. Further, there is a similar demand when the input color image signal exists only in a narrow range close to the center of the color gamut.

こういった画像機器に対しては、従来の色域の圧縮ではなく、色域の伸張が必要になる。そこで、従来技術を伸張に転換して適応することが考えられる。彩度を伸張する例を図11に示す。この場合は、彩度のみしか変化しないため、明度が変化せず、色変換の効果があまり出ない。より好ましい色再現を目指すためには、彩度だけではなく、明度も適切に変換する必要がある。   For such an image device, it is necessary to expand the color gamut instead of the conventional color gamut compression. Therefore, it can be considered that the conventional technology is adapted to expansion. An example of extending the saturation is shown in FIG. In this case, since only the saturation changes, the brightness does not change, and the effect of color conversion does not appear much. In order to achieve more preferable color reproduction, it is necessary to appropriately convert not only saturation but also lightness.

また別の伸張例として、明度軸の中間点を中心に伸張させる例を図12に示す。この場合、中間点より下に位置する色では、彩度が大きくなるものの明度が下がってしまう。中明度かつ中彩度の色のときには、色が暗くなって鈍った印象になってしまい、好ましく色再現が行えたとはいえない。   As another extension example, an example of extending around the middle point of the lightness axis is shown in FIG. In this case, the color located below the midpoint increases the saturation but decreases the lightness. In the case of a medium lightness and medium saturation color, the color becomes dark and dull, and it cannot be said that color reproduction can be preferably performed.

また、色域の伸張の際の問題として、人間の視覚の色域もデバイスの色域も、色相ごとに同一の形状ではないことがあげられる。例えば、モニタの標準となっているsRGB色空間を均等色空間のCIELABに変換した場合を考える。図13はsRGB色空間を均等色空間のCIELABに変換し、a*b*平面に射影した色度図である。CIELABは直方座標系であり、単純に円柱座標系に変換することで、明度、彩度、色相で色を表すことができるCIELChに変換できる。図14(a)〜図14(c)は、それぞれ図13のCIELABにおいて中心からある外郭方向に沿って切った断面に相当する。具体的に、図14(a)は青色の色相における色域形状、図14(b)は赤色の色相における色域形状、図14(c)は、黄色の色相における色域形状を示す。図14(c)に示すように、黄色の最外郭の頂点は、明度が高い(明るい)ところに位置するが、図14(a)の青色の色相の場合は、最外郭の頂点は、明度が低い(暗い)ところに位置している。また図14(b)の赤色の場合は、最外郭の頂点は、明度が中間的なところに位置している。このように、色相により色域の形状はさまざまである。   Further, as a problem when expanding the color gamut, the human visual color gamut and the device color gamut are not the same shape for each hue. For example, consider a case where the standard sRGB color space of a monitor is converted to CIELAB in a uniform color space. FIG. 13 is a chromaticity diagram obtained by converting the sRGB color space into CIELAB of the uniform color space and projecting it on the a * b * plane. CIELAB is a rectangular coordinate system, and can be converted into CIE Ch that can express a color with lightness, saturation, and hue by simply converting into a cylindrical coordinate system. 14A to 14C correspond to cross sections cut along the contour direction from the center in CIELAB in FIG. Specifically, FIG. 14A shows a gamut shape in a blue hue, FIG. 14B shows a gamut shape in a red hue, and FIG. 14C shows a gamut shape in a yellow hue. As shown in FIG. 14C, the vertex of the yellow outermost contour is located in a place where the lightness is high (bright). However, in the case of the blue hue in FIG. 14A, the vertex of the outermost contour is the lightness. Is located in a low (dark) place. In the case of red in FIG. 14B, the vertex of the outermost contour is located at an intermediate brightness level. Thus, the shape of the color gamut varies depending on the hue.

このような色域の形状を考慮して、色相ごとに、図15のように最外郭の頂点に向かって色を伸張することも考えられるが、頂点より明度が高い場合、彩度は大きくなるものの、明度が低くなって画像が暗くなってしまう。黄色の色相(図14(c)参照)の場合は、頂点が最大の明度に一致しているため、明度が低くなる問題は生じないが、赤色の色相(図14(b)参照)、および青色の色相(図14(a)参照)の場合には、明度の低下が顕著になってしまい、図12に示した例と同様に、好ましい色再現が得られなくなってしまう。   Considering the shape of such a color gamut, it may be possible to extend the color toward the outermost vertex as shown in FIG. 15 for each hue, but when the lightness is higher than the vertex, the saturation increases. However, the brightness becomes low and the image becomes dark. In the case of a yellow hue (see FIG. 14 (c)), since the vertex coincides with the maximum brightness, there is no problem that the brightness is lowered, but the red hue (see FIG. 14 (b)), and In the case of a blue hue (see FIG. 14A), the lightness is significantly lowered, and a preferable color reproduction cannot be obtained as in the example shown in FIG.

本発明は、上記事情を考慮してなされたものであって、画像の印象を暗くすることなく、人間が好ましいと感じる色再現を可能とする画像処理装置および画像処理方法を提供することを目的とする。   The present invention has been made in view of the above circumstances, and an object of the present invention is to provide an image processing apparatus and an image processing method that enable color reproduction that is perceived by humans without darkening the impression of the image. And

本発明の一態様としての画像処理装置は、
色相、彩度および明度で表される色空間を色相について分割した区間のそれぞれについて、各区間を代表する色相値で表される対象色相面で画素値が分布可能な範囲の外郭と彩度が取りうる値が最大になる最大彩度点とを求める最大彩度点推定部と、
前記区間のそれぞれについて、前記最大彩度点と前記色空間の明度軸とを通り彩度が上昇するほど明度が上昇する基準線を設定する基準線設定部と、
入力画像の各画素値を表す前記色空間の点と各画素が属する前記区間の前記基準線との間の距離に応じて各画素値の補正方向を求める補正方向算出部と、
前記入力画像の各画素値を表す前記色空間の点から、前記補正方向に向かって前記外郭までの距離に応じて各画素値を補正することにより補正画素値を得る補正部と、
前記補正画素値を出力する出力部と、
を備える。
An image processing apparatus according to an aspect of the present invention includes:
For each of the sections obtained by dividing the color space represented by hue, saturation, and lightness with respect to hue, the outline and saturation of the range in which pixel values can be distributed on the target hue plane represented by the hue value representing each section A maximum saturation point estimation unit for obtaining a maximum saturation point at which a possible value is maximized;
For each of the sections, a reference line setting unit that sets a reference line that increases in lightness as the saturation increases through the maximum saturation point and the lightness axis of the color space;
A correction direction calculation unit for obtaining a correction direction of each pixel value according to a distance between a point of the color space representing each pixel value of the input image and the reference line of the section to which each pixel belongs;
A correction unit that obtains a corrected pixel value by correcting each pixel value according to a distance from the point of the color space representing each pixel value of the input image to the outline in the correction direction;
An output unit for outputting the corrected pixel value;
Is provided.

本発明の一態様としての画像処理方法は、
色相、彩度および明度で表される色空間を色相について分割した区間のそれぞれについて、各区間を代表する色相値で表される対象色相面で画素値が分布可能な範囲の外郭と彩度が取りうる値が最大になる最大彩度点とを求める最大彩度点推定ステップと、
前記区間のそれぞれについて、前記最大彩度点と前記色空間の明度軸とを通り彩度が上昇するほど明度が上昇する基準線を設定する基準線設定ステップと、
入力画像の各画素値を表す前記色空間の点と各画素が属する前記区間の前記基準線との間の距離に応じて各画素値の補正方向を求める補正方向算出ステップと、
前記入力画像の各画素値を表す前記色空間の点から、前記補正方向に向かって前記外郭までの距離に応じて各画素値を補正することにより補正画素値を得る補正ステップと、
前記補正画素値を出力する出力ステップと、
を備える。
An image processing method as one aspect of the present invention includes:
For each of the sections obtained by dividing the color space represented by hue, saturation, and lightness with respect to hue, the outline and saturation of the range in which pixel values can be distributed on the target hue plane represented by the hue value representing each section A maximum saturation point estimation step for obtaining a maximum saturation point at which a possible value is maximized;
For each of the sections, a reference line setting step for setting a reference line that increases in brightness as the saturation increases through the maximum saturation point and the brightness axis of the color space;
A correction direction calculating step for obtaining a correction direction of each pixel value according to a distance between a point of the color space representing each pixel value of the input image and the reference line of the section to which each pixel belongs;
A correction step of obtaining a corrected pixel value by correcting each pixel value according to a distance from the point in the color space representing each pixel value of the input image to the outline in the correction direction;
An output step of outputting the corrected pixel value;
Is provided.

本発明によれば、色域を有効に活用することで、人間が好ましいと感じる色再現が可能なる。   According to the present invention, it is possible to reproduce colors that humans feel preferable by effectively utilizing the color gamut.

以下、図面を参照しながら、本発明の実施形態について説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

(第1実施形態)
図1は、本実施の第1実施形態に係るカラー画像処理装置の構成を概略的に示すブロック図である。
(First embodiment)
FIG. 1 is a block diagram schematically showing the configuration of the color image processing apparatus according to the first embodiment.

図1のブロック図は、本実施形態に関わるプログラムをマイクロプロセッサに実行させることによって得られる各機能の単位をブロックによって表したものである。本実施形態に関わるプログラムは、ディジタルカメラ、携帯電話およびテレビなど、表示デバイスを備えたコンピュータ用のアプリケーションソフトの画像処理モジュールの一モジュールとして含まれることができる。ここでは、画像処理装置をソフトウェアによって実現する構成を示したが、画像処理装置の各機能のうちの全部または一部がハードウェア装置によって構成することも可能である。   The block diagram of FIG. 1 represents the units of each function obtained by causing a microprocessor to execute a program according to this embodiment. The program according to the present embodiment can be included as a module of an image processing module of application software for a computer including a display device such as a digital camera, a mobile phone, and a television. Here, the configuration in which the image processing device is realized by software is shown, but all or a part of the functions of the image processing device can also be configured by a hardware device.

図2は、図1の画像処理装置により行われる処理の流れを示すフローチャートである。以下、図2を参照しながら、図1の画像処理装置の各要素の動作について説明する。   FIG. 2 is a flowchart showing a flow of processing performed by the image processing apparatus of FIG. The operation of each element of the image processing apparatus in FIG. 1 will be described below with reference to FIG.

図1の画像処理装置における入力部101は、コンピュータに内蔵の記憶装置から画像データを取得する(ステップS1)。取得される画像データは、横方向にM個の画素が配列され、縦方向にN個の画素が配列されたM×N画素の画像を表す。この画像はRGB画像であり、各画素は赤・緑・青の成分の階調データを持つ。各成分の階調データはたとえば8ビットで表現される。なお、処理が可能なデータは8ビットのRGBデータに限らず、sRGBデータやYCCデータ、XYZデータ等、視覚的に均等な空間にデータを変換できるデータであればよい。また、各チャネルも8ビットに限定されない。   The input unit 101 in the image processing apparatus of FIG. 1 acquires image data from a storage device built in the computer (step S1). The acquired image data represents an M × N pixel image in which M pixels are arranged in the horizontal direction and N pixels are arranged in the vertical direction. This image is an RGB image, and each pixel has gradation data of red, green, and blue components. The gradation data of each component is expressed by 8 bits, for example. The data that can be processed is not limited to 8-bit RGB data, but may be any data that can be converted into a visually uniform space, such as sRGB data, YCC data, and XYZ data. Each channel is not limited to 8 bits.

色空間変換部102は、ステップS1で入力部101により取得した画像データ(すなわちRGB空間の画像データ)を、明度、彩度、色相の三つの属性(成分)で表される色空間の画像データに変換する(ステップS2)。変換後の画素値は、測色値と称される。RGB空間は、複数の色成分で形成される第1の色空間の一例である。明度、彩度、色相の三つの属性で表される色空間は、色相、彩度および明度の成分で表される座標系上で定義された第2の色空間に相当する。   The color space conversion unit 102 converts the image data (that is, RGB space image data) acquired by the input unit 101 in step S1 into color space image data represented by three attributes (components) of brightness, saturation, and hue. (Step S2). The converted pixel value is referred to as a colorimetric value. The RGB space is an example of a first color space formed with a plurality of color components. A color space represented by three attributes of brightness, saturation, and hue corresponds to a second color space defined on a coordinate system represented by components of hue, saturation, and brightness.

明度、彩度、色相の三つの属性で表せる空間は種々あるが、後述するように色空間内で傾きを求める等の演算を行うため、視覚的に均等な空間であることが望まれる。ここでは、視覚的に均等な空間である、直交座標系のCIELAB色空間を円柱座標形式に表現したCIELCH色空間を用いる。CIELCH色空間は、どのような特性の色かを容易に判断できる色空間であると言える。ただし、処理する均等色空間として、本発明は、CIELAB色空間に限定されず、LUV色空間でもよく、色の三属性である、明度、彩度、色相で表せる空間であればHSVなども用いることができる。   Although there are various spaces that can be represented by the three attributes of brightness, saturation, and hue, it is desirable that the spaces be visually uniform because operations such as obtaining the inclination in the color space are performed as described later. Here, a CIEELCH color space, which is a visually equivalent space and which expresses the CIELAB color space of the orthogonal coordinate system in a cylindrical coordinate format, is used. It can be said that the CIELCH color space is a color space in which it is possible to easily determine what kind of characteristic the color is. However, as the uniform color space to be processed, the present invention is not limited to the CIELAB color space, but may be an LUV color space, and HSV or the like is also used as long as it is a space that can be represented by three attributes of color, brightness, saturation, and hue. be able to.

頂点決定部(最大彩度点推定部)103は、色相、彩度および明度で表される色空間を色相について分割した区間のそれぞれについて、各区間を代表する色相値で表される対象色相面で、画素値が分布可能な範囲の外郭と、彩度が取りうる値が最大になる最大彩度点(頂点)とを求める(ステップS3)。 本実施例では、色空間の色相において所定間隔で配置された所定数の色相値が利用可能であり、当該所定数と分割の区間数とが一致し、当該所定数の各色相値がそれぞれ区間を代表する色相値に一致するとする。   The vertex determination unit (maximum saturation point estimation unit) 103 is a target hue plane represented by a hue value representing each section for each of the sections obtained by dividing the color space represented by hue, saturation, and brightness with respect to hue. Thus, the outline of the range in which the pixel values can be distributed and the maximum saturation point (vertex) at which the value that the saturation can take are maximized (step S3). In this embodiment, a predetermined number of hue values arranged at predetermined intervals in the hue of the color space can be used, the predetermined number matches the number of divided sections, and the predetermined number of each hue value is a section. Is the same as the hue value representative of.

ここで、各区間(対象色相面)のそれぞれについての最外郭の頂点は、予めデータベースに登録しておいてもよい。または、データベースに、いくつかの区間(対象色相面)について、離散的に最外郭の頂点を登録しておいてもよい。この場合、登録されていない色相についての最外郭の頂点は、補間演算により決定するようにしてもよい。   Here, the outermost vertexes of each section (target hue plane) may be registered in the database in advance. Alternatively, the outermost vertexes may be discretely registered in the database for some sections (target hue planes). In this case, the outermost vertex for the unregistered hue may be determined by interpolation calculation.

基準傾き決定部104は、各区間のそれぞれについて、最外郭の頂点を通過し、かつ、彩度が増加するほど明度が増加する(正の傾きをもつ)基準線を決定する(ステップS4)。基準線は、後述する測色値の補正方向を決定する際の基準となる傾き(基準傾き)をもつ線である。   The reference inclination determination unit 104 determines, for each section, a reference line that passes through the outermost vertex and increases in brightness as the saturation increases (has a positive inclination) (step S4). The reference line is a line having an inclination (reference inclination) that serves as a reference when determining the correction direction of the colorimetric value described later.

図3は、ある1つの区間(対象色相面)に着目して、基準線を決定する処理を説明する模式図である。   FIG. 3 is a schematic diagram for explaining processing for determining a reference line by paying attention to a certain section (target hue plane).

当該ある1つの対象色相面に対応する彩度−明度域が示される。基準線は、最外郭の頂点(最大彩度点)Rを通り、かつ傾きが正の値となるように決定する。色空間において、最外郭の頂点Rの座標(三属性)は(LR,CR,HR)として表される。Lは明度、Cは彩度、Hは色相を表す。最外郭の頂点Rから明度軸に垂直に伸ばした直線との交点をPとすると、交点Pは(LR,0,HR)となる。また基準線と明度軸との交点をQとすると、交点Qは(LQ,0,HR)となる。したがって、基準線の傾きは(LR−LQ)/CR、切片はLQと表すことができる。 A saturation-lightness range corresponding to the one target hue plane is shown. The reference line is determined so as to pass through the outermost vertex (maximum saturation point) R and to have a positive slope. In the color space, the coordinates (three attributes) of the outermost vertex R are represented as (L R , C R , H R ). L represents lightness, C represents saturation, and H represents hue. If the intersection point with the straight line extending perpendicularly to the brightness axis from the outermost vertex R is P, the intersection point P is (L R , 0, H R ). If the intersection of the reference line and the lightness axis is Q, the intersection Q is (L Q , 0, H R ). Therefore, the slope of the reference line can be expressed as (L R −L Q ) / C R , and the intercept can be expressed as L Q.

一般的に、人間は色域内で色を広く分布させると階調に富んだ画像であると判断する傾向があり、また、適度に明るく鮮やかな画像を好む傾向がある。しかし、明るすぎたり、鮮やか過ぎたりすると、逆に色再現が悪くなったと判断する傾向もある。入力画像の色域を広げるとしても、色相によって色域の形状が大きく異なり、三属性(明度・彩度・色相)によって色域が広がる方向や量が異なる。例えば、黄色の色相で鮮やかな色は明度も高いが、青色の色相で鮮やかな色は明度が低い。伸張の際は、彩度方向への伸張とともに、好ましい色再現とするために、適度に明度を高くする必要がある。なお、彩度は、最外郭の頂点の彩度(最大彩度)まで伸張することができる。そこで、基準線は、どんな色相においても、この最外郭の頂点を通り、明度軸から彩度が大きくなる方向に向かうにつれて明度が大きくなるように、常に正の傾きとるように設定する。LR>LQであるので、(LR−LQ)/CR>0である。 In general, when a color is widely distributed in a color gamut, a person tends to determine that the image is rich in gradation, and tends to prefer a moderately bright and vivid image. However, if it is too bright or too vivid, there is a tendency to judge that the color reproduction is worse. Even if the color gamut of the input image is expanded, the shape of the color gamut varies greatly depending on the hue, and the direction and amount of the color gamut varies depending on the three attributes (lightness, saturation, hue). For example, a bright color with a yellow hue has high brightness, but a bright color with a blue hue has low brightness. At the time of expansion, it is necessary to moderately increase the brightness in order to achieve preferable color reproduction along with expansion in the saturation direction. Note that the saturation can be expanded to the saturation of the outermost vertex (maximum saturation). Therefore, the reference line is always set to have a positive inclination so that the brightness increases as it goes from the brightness axis toward the direction in which the saturation increases in any hue. Since L R > L Q , (L R −L Q ) / C R > 0.

ここで、切片LQの決定の仕方については、種々考えられる。色相毎に、任意の値とするのが一番単純な方法であるが、他の決定例としては、たとえば以下のものが考えられる。 Here, the method of determining the intercept L Q, are various. Although the simplest method is to set an arbitrary value for each hue, for example, the following can be considered as another determination example.

まず基準となる色相(基準色相)についての切片LQ0を決定する。基準色相は、たとえば最外郭の頂点が、明度幅の略中間に位置する赤色とすることができる。あらかじめ用意した画像(たとえばグラデーション画像)について切片LQの値をさまざまに変更して主観評価を行い、最適な値を決定する。あるいは、基準色相における最外郭の頂点の明度LR0を係数倍することにより切片LQ0を決定してもよい。基準色相と異なる他の色相については、基準色相について得た切片LQ0を用いた演算により算出する。たとえば、基準色相における最外郭の頂点R0(LR0,CR0,HR0)の明度LR0と、算出対象の色相における最外郭点Ri(LRi,CRi,HRi)の明度LRiとの比(LRi/LR0)と、基準色相に対応する基準線の傾き((LR0−LQ0)/CR0)を用いて、LQi=((LR0−LQ0)/CR0)×(LRi/LR0)として算出することができる。 First, an intercept L Q0 for a reference hue (reference hue) is determined. The reference hue may be red, for example, with the outermost apex positioned approximately in the middle of the brightness width. Subjective evaluation was variously changed value of the intercept L Q for previously prepared image (e.g. a gradation image), to determine the optimal value. Alternatively, the intercept L Q0 may be determined by multiplying the lightness L R0 of the outermost vertex in the reference hue by a coefficient. Other hues different from the reference hue are calculated by calculation using the intercept L Q0 obtained for the reference hue. For example, the lightness L R0 of the outermost vertex R 0 (L R0 , C R0 , H R0 ) in the reference hue and the lightness L of the outermost point R i (L Ri , C Ri , H Ri ) in the hue to be calculated. Using the ratio to Ri (L Ri / L R0 ) and the slope of the reference line corresponding to the reference hue ((L R0 −L Q0 ) / C R0 ), L Qi = ((L R0 −L Q0 ) / C R0 ) × (L Ri / L R0 ).

ここでは単純に明度の比(LRi/LR0)を乗算したが、明度の比(LRi/LR0)を乗算する代わりに、色空間の中央、つまりCIELCHの色空間での明度の中間値(たとえば最大値が100とすると50)と明度LR0の差と、該中間値と明度LRiの差との比を乗算してもよい。このように、各色相の最外郭の頂点の三属性が反映させて切片LQを算出することで、後述の変換値算出部106において、各色相の色域形状を考慮した色変換を行うことが可能になる。 Here, the lightness ratio (L Ri / L R0 ) is simply multiplied, but instead of multiplying the lightness ratio (L Ri / L R0 ), the lightness in the middle of the color space, that is, the CELELCH color space is intermediate. A difference between a value (for example, 50 when the maximum value is 100) and the brightness L R0 may be multiplied by a ratio between the difference between the intermediate value and the brightness L Ri . In this manner, the three-attributes of the vertices of the outermost of each color to calculate the intercept L Q to reflect, in the conversion value calculator 106 described later, to perform color conversion in consideration of the respective colors of the color gamut shape Is possible.

上記した切片LQの算出例は一例であり、他の例として、単純に、色相毎に、最外郭の頂点の明度の係数倍を切片LQとすることもできる。 Calculation Example of sections L Q described above is an example, as another example, simply, for each hue, a coefficient times the brightness of the apex of the outermost may be sectioned L Q.

また上記では、基準線として単調増加の直線(一次関数)を計算したが、基準線は直線に限られず、少なくとも明度軸と頂点との間で単調増加する関数であれば他の関数でもよい。   In the above description, a monotonically increasing straight line (linear function) is calculated as the reference line. However, the reference line is not limited to a straight line, and may be any other function as long as it is a function that monotonically increases at least between the brightness axis and the vertex.

傾き算出部105は、入力画像の各画素について、各画素の測色値を表す座標点と、各画素が属する区間の基準線との距離(本実施例では明度軸方向における距離を想定する)に応じて、各画素の測色値の補正方向(変換方向)を算出する(ステップS5)。後述のステップS6では、本ステップS5で決定した補正方向に、最外郭までの距離に基づいて、測色値を補正することを行う。   For each pixel of the input image, the inclination calculation unit 105 is the distance between the coordinate point representing the colorimetric value of each pixel and the reference line of the section to which each pixel belongs (this example assumes a distance in the lightness axis direction). Accordingly, the correction direction (conversion direction) of the colorimetric value of each pixel is calculated (step S5). In step S6, which will be described later, the colorimetric value is corrected based on the distance to the outermost contour in the correction direction determined in step S5.

図4は、ある画素の測色値の補正方向(変換方向)を算出する処理を説明する模式図である。   FIG. 4 is a schematic diagram illustrating processing for calculating a correction direction (conversion direction) of a colorimetric value of a certain pixel.

当該測色値の座標点が明度軸方向において基準線から遠ざかるに連れて、基準線よりも傾きが小さくなるように(彩度軸に平行に近づくように)、その補正方向を算出し、たとえば最大明度および最小明度では、傾きが一定(=0)になるようにする。補正方向の傾きは、基準線からの座標点の距離に応じて、基準傾きを最大基準として、滑らかに変化させる。具体的な算出方法としては、例えば、測色値(Li,Ci,Hi)が基準線の下側に位置する場合は、測色値の彩度Ciにおける基準線の明度L0Ciを求める。そして、基準傾きにLi/L0Ciを乗算することにより測色値の補正方向の傾きを求める。同様に、測色値(Li,Ci,Hi)が基準線の上側に位置する場合は、基準傾きに(Lmax−Li)/(Lmax−LR)を乗算することにより測色値の補正方向の傾きを求める。Lmaxは明度の最大値である。測色値が基準線上に位置するときは、その位置における基準線の傾きが補正方向の傾きとなる。なお、求めた傾きを用いることで、測直値を通過しかつ当該傾きをもつ直線の切片(明度軸との交点)も求めることもできる。 As the coordinate point of the colorimetric value moves away from the reference line in the brightness axis direction, the correction direction is calculated so that the inclination becomes smaller than the reference line (approaching parallel to the saturation axis), for example, The slope is constant (= 0) at the maximum brightness and the minimum brightness. The inclination in the correction direction is smoothly changed with the reference inclination as the maximum reference according to the distance of the coordinate point from the reference line. As a specific calculation method, for example, when the colorimetric values (L i , C i , H i ) are located below the reference line, the lightness L 0Ci of the reference line in the chroma C i of the colorimetric values. Ask for. Then, the inclination in the correction direction of the colorimetric value is obtained by multiplying the reference inclination by L i / L 0Ci . Similarly, when the colorimetric values (L i , C i , H i ) are located above the reference line, the reference inclination is multiplied by (L max −L i ) / (L max −L R ). The inclination of the colorimetric value correction direction is obtained. L max is the maximum value of brightness. When the colorimetric value is located on the reference line, the inclination of the reference line at that position becomes the inclination in the correction direction. In addition, by using the obtained inclination, it is also possible to obtain an intercept (intersection with the lightness axis) of a straight line that passes the measured value and has the inclination.

なお、図4では傾きが上記一定値(=0)より小さくなることはないが、例えば明度が小さいとき、すなわち低明度領域では、0より小さくすることも可能である。これは、低明度領域の場合は、明度が多少暗くなっても、好ましい色再現にはあまり影響を与えないからである。   In FIG. 4, the slope does not become smaller than the fixed value (= 0). However, for example, when the lightness is small, that is, in the low lightness region, it is possible to make it smaller than 0. This is because, in the low lightness region, even if the lightness is somewhat dark, the preferred color reproduction is not greatly affected.

変換値算出部106は、ステップS5において傾き算出部105により求めた補正方向において、測色値から最外郭までの距離に基づき、測色値に加えるべき補正量(色相は一定であるため、実際には明度と彩度の補正量)を演算し、当該補正量を測色値に加算し、これにより測色値の補正値を得る。つまり、補正方向において測色値の座標点の移動量を計算し、計算した移動量だけ当該座標点を移動させ、移動後の座標点の値が、求めるべき補正値になる。補正のポリシーとしてはたとえば以下に従う。   The conversion value calculation unit 106 corrects the correction amount to be added to the colorimetric value based on the distance from the colorimetric value to the outermost contour in the correction direction obtained by the inclination calculation unit 105 in step S5 (because the hue is constant, Is calculated), and the correction amount is added to the colorimetric value, thereby obtaining a correction value of the colorimetric value. That is, the movement amount of the coordinate point of the colorimetric value is calculated in the correction direction, the coordinate point is moved by the calculated movement amount, and the value of the coordinate point after the movement becomes a correction value to be obtained. For example, the correction policy is as follows.

無彩色とされる彩度の非常に小さい領域においては、色域内で色を広げる際に、色がついてしまうと(彩度が大きくなると)違和感が大きくなり画質が悪化するとされる。したがって、彩度の非常に小さい領域においては彩度が大きくならないようにするべきである。一方、高彩度領域は、表示できる色域からはみ出さないように、また色がつぶれないように(最外郭に集中しないように)すべきである。また、明度についても、高明度、あるいは低明度の領域では、変換により色があまり変化しないようにすることが望まれる。このようなポリシーを反映した計算式にしたがって各測色値を補正する。   In an area of very small saturation that is considered to be an achromatic color, when the color is widened in the color gamut (if the saturation increases), the sense of discomfort increases and the image quality deteriorates. Therefore, saturation should not be increased in a region where saturation is very small. On the other hand, the high saturation area should not protrude from the color gamut that can be displayed, and should not be crushed (not concentrated on the outermost contour). As for the lightness, it is desired that the color does not change so much due to the conversion in the high lightness or low lightness region. Each colorimetric value is corrected according to a calculation formula reflecting such a policy.

たとえば、次の項目(1)〜(4)
(1)測色値の座標から、その補正方向(変換方向)に沿った最外郭までの距離
(2)色相
(3)明度
(4)彩度
のメンバーシップ関数をそれぞれ用意し、各メンバーシップ関数の出力値を乗算することで、補正方向における移動量(補正量)を求める。そして測色値の座標点を、上記補正方向に沿って、求めた移動量だけ移動させ、移動後の座標点の値を、当該測色値の補正後の値として得る。これをすべての測色値について行う。このようにして複数のメンバーシップ関数からファジイに移動量(補正量)を決定することができる。ここでファジイに補正量を決定すると述べたが、重要なのは、空間的に連続するように変換が行われることであり、これが、トーンジャンプやアーティファクトが発生しないための重要な条件となる。ここでは、補正方向に沿った移動量(補正量)を取得したが、このほかにたとえば(1)〜(4)のメンバーシップ関数から、彩度方向の補正量を求めるようにし、明度方向の補正量は、測色値と、彩度方向の補正量と、補正方向の傾きとから計算により求めるようにしてもよい。あるいは、(1)〜(4)のメンバーシップ関数から、明度方向の補正量を求めるようにし、彩度方向の補正量は、測色値と、明度方向の補正量と、補正方向の傾きとから計算により求めるようにしてもよい。
For example, the following items (1) to (4)
(1) Distance from the coordinates of colorimetric values to the outermost contour along the correction direction (conversion direction)
(2) Hue
(3) Lightness
(4) Saturation
Each of the membership functions is prepared, and the amount of movement (correction amount) in the correction direction is obtained by multiplying the output values of the membership functions. Then, the coordinate point of the colorimetric value is moved by the calculated amount of movement along the correction direction, and the value of the coordinate point after movement is obtained as the value after correction of the colorimetric value. This is performed for all colorimetric values. In this way, the movement amount (correction amount) can be determined fuzzyly from a plurality of membership functions. Although it has been described here that the correction amount is determined fuzzy, what is important is that the conversion is performed so as to be spatially continuous, which is an important condition for preventing the occurrence of tone jumps and artifacts. Here, the movement amount (correction amount) along the correction direction is acquired, but in addition to this, for example, the correction amount in the saturation direction is obtained from the membership functions (1) to (4), and The correction amount may be obtained by calculation from the colorimetric value, the correction amount in the saturation direction, and the inclination in the correction direction. Alternatively, the correction amount in the lightness direction is obtained from the membership functions (1) to (4), and the correction amount in the saturation direction includes the colorimetric value, the correction amount in the lightness direction, and the inclination in the correction direction. You may make it obtain | require by calculation from.

色空間逆変換部107は、変換値算出部106により出力された各画素の補正された測色値を、均等な色空間から、元の色空間(ここではRGB色空間)へ逆変換する(ステップS7)。すなわち、均等な色空間における画像データを、元の色空間(ここではRGB色空間)へ逆変換する。   The color space reverse conversion unit 107 reversely converts the corrected colorimetric value of each pixel output from the conversion value calculation unit 106 from the uniform color space to the original color space (here, RGB color space) ( Step S7). That is, the image data in the uniform color space is inversely converted to the original color space (here, the RGB color space).

出力部108は、色空間逆変換部107により得られた逆変換後の画像データを出力する(ステップS8)。出力された画像データは、たとえば図示しない表示パネルにより表示される。   The output unit 108 outputs the image data after the inverse transformation obtained by the color space inverse transformation unit 107 (step S8). The output image data is displayed on a display panel (not shown), for example.

(第2実施形態)
本実施形態は、入力画像の色分布情報を用いて、基準線を決定することを特徴とする。本実施形態に係る画像処理装置のブロック図は図1と同様であるが、基準傾き決定部104の処理が拡張されている。
(Second Embodiment)
The present embodiment is characterized in that the reference line is determined using the color distribution information of the input image. The block diagram of the image processing apparatus according to the present embodiment is the same as that in FIG. 1, but the processing of the reference inclination determination unit 104 is extended.

図5は、本実施形態に係る画像処理装置により行われる処理の流れを示すフローチャートである。図5では、図2のフローチャートと比較して、ステップS2、S3の間にステップS10が追加されている。   FIG. 5 is a flowchart showing a flow of processing performed by the image processing apparatus according to the present embodiment. In FIG. 5, compared with the flowchart of FIG. 2, step S10 is added between steps S2 and S3.

まず、第1実施形態と同様に、ステップS1では画像データを取得し、ステップS2で、画像データを明度、彩度、色相の三属性で表される色空間のデータ(測色値のデータ)に変換する。   First, as in the first embodiment, image data is acquired in step S1, and in step S2, color space data (colorimetric value data) represented by three attributes of lightness, saturation, and hue is used. Convert to

ステップS2に続くステップS10では、基準傾き決定部104において、変換後の画像データを用いて、画像の色分布を求める。より詳細には、色相全体を所定の色相幅で複数の区間に分割し、区間毎に、各画素の平均値(重心値)または中間値などの統計値をそれぞれ色分布情報として求める。   In step S10 following step S2, the reference inclination determination unit 104 obtains the color distribution of the image using the converted image data. More specifically, the entire hue is divided into a plurality of sections with a predetermined hue width, and an average value (centroid value) or an intermediate value of each pixel is obtained as color distribution information for each section.

ステップS10に続くステップS3では、区間毎に、該統計値の色相で表される対象色相面で、それぞれ外郭と、最外郭の頂点を決定する。   In step S3 following step S10, for each section, the outline and the outermost vertex are determined on the target hue plane represented by the hue of the statistical value.

ステップS4では、各区間の統計値(重心値または中心値など)を表す点と、最外郭の頂点(最大再度点)とを通過するように基準線を決定する。   In step S4, a reference line is determined so as to pass a point representing a statistical value (such as a centroid value or a center value) of each section and an outermost vertex (maximum again point).

図6は、基準線を決定する処理を模式的に示す図を示す。ここでは色分布の統計値として、重心を用いた例を示すが、中心値など、他の統計値を用いてもよい。   FIG. 6 is a diagram schematically showing processing for determining a reference line. Here, an example in which the center of gravity is used as the statistical value of the color distribution is shown, but other statistical values such as a central value may be used.

ある区間についてステップS10で求められた重心Gを(LG,CG,HG)とする。また当該重心の色相における最外郭の頂点をRとし、その三属性を(L,C,H)とする。このとき、最外郭の頂点Rと重心Gを通過する線を、当該区間に含まれる各画素の共通基準線として決定する。このように基準線を決定することで、重心を一番彩度の大きい方向に色変換することから、色域を有効に活用した色変換を行うことができる。 The center of gravity G obtained in step S10 for a certain section is defined as (L G , C G , H G ). Also, let R be the vertex of the outermost contour in the hue of the center of gravity, and let its three attributes be (L R , C R , H R ). At this time, a line passing through the outermost vertex R and the center of gravity G is determined as a common reference line for each pixel included in the section. By determining the reference line in this way, color conversion is performed using the color gamut effectively because the center of gravity is color-converted in the direction of the highest saturation.

ただし、最外郭の頂点と重心とを結ぶ基準線が、常に傾きが正(つまりLG<L)になるとは限らない。画素値が暗くなる方向に変換すると、人間にとって好ましいと感じられる画像表示が得られないことはすでに述べたところである。したがってLG>Lとなる場合は、第1の実施形態に示した処理により、基準線を決定することが有効である。 However, the reference line connecting the outermost vertex and the center of gravity does not always have a positive slope (ie, L G <L R ). As described above, if the pixel value is converted to a darker direction, an image display that is preferable for human beings cannot be obtained. Therefore, when the L G> L R is, the process shown in the first embodiment, it is effective to determine the reference line.

ステップS5〜ステップS8は第1の実施形態と同様である。すなわち、ステップS5では、各画素の測色値の補正方向の傾きを算出し、ステップS6では、求めた補正方向に測色値を補正し、ステップS7では、補正された各画素の測色値を、元の画像データの色空間に逆変換し、ステップS8では、逆変換後の画像データを出力する。なお、色相範囲の幅が大きいときは、ステップS5で求めた補正方向の傾きの値を、補間演算により、調整してもよい。   Steps S5 to S8 are the same as in the first embodiment. That is, in step S5, the inclination in the correction direction of the colorimetric value of each pixel is calculated. In step S6, the colorimetric value is corrected in the obtained correction direction. In step S7, the corrected colorimetric value of each pixel. Are converted back to the color space of the original image data, and the image data after the reverse conversion is output in step S8. Note that when the width of the hue range is large, the value of the inclination in the correction direction obtained in step S5 may be adjusted by interpolation calculation.

以上のように、本実施形態によれば、画像データの色分布の特性を用いて基準線を決定することにより、画像データの内容を反映した色変換が可能になる。第1の実施形態では、各色相の色域形状を考慮した色変換は行っていたものの、入力する画像データの内容に拘わらず、同一の測色値は常に同一の色変換が行われていた。これに対し、本実施形態では、画像データの内容に応じて、同一の測色値であっても、異なる色変換が行われ、人間にとってより好ましい画像表示が可能となる。   As described above, according to the present embodiment, color conversion reflecting the content of image data is possible by determining the reference line using the color distribution characteristics of the image data. In the first embodiment, although color conversion is performed in consideration of the color gamut shape of each hue, the same color conversion is always performed for the same colorimetric value regardless of the contents of the input image data. . On the other hand, according to the present embodiment, even if the colorimetric value is the same, different color conversion is performed according to the content of the image data, and a more preferable image display for humans is possible.

(第3実施形態)
第1実施形態では、画像データを均等な色空間のデータへ変換して各画素の測色値を取得し、各画素の測色値を補正し、各補正後の測色値を元の色空間へ逆変換し、逆変換後の画像データを出力した。本実施形態では、画像データの測色値と、測色値を補正した補正値とを対応付けたデータベースを予め作成し、このデータベースを利用して色変換を行うことで、第1実施形態におけるステップS3〜S6を省略し、色変換のための演算量を削減しようとするものである。
(Third embodiment)
In the first embodiment, the image data is converted into data of a uniform color space, the colorimetric value of each pixel is acquired, the colorimetric value of each pixel is corrected, and the colorimetric value after each correction is converted to the original color. Inverted to space and output the image data after the inverse transformation. In this embodiment, a database in which colorimetric values of image data are associated with correction values obtained by correcting the colorimetric values is created in advance, and color conversion is performed using this database. Steps S3 to S6 are omitted, and the amount of calculation for color conversion is to be reduced.

図7は、本実施形態に係る画像処理装置(データベース作成装置)の構成を概略的に示すブロック図である。図1と同一名称の要素には、同一の符号を付し、拡張された処理を除き説明を省略する。   FIG. 7 is a block diagram schematically showing the configuration of the image processing apparatus (database creation apparatus) according to the present embodiment. Elements having the same names as those in FIG. 1 are denoted by the same reference numerals, and description thereof is omitted except for extended processing.

図8は、図7の装置により行われる処理の流れを示すフローチャートである。   FIG. 8 is a flowchart showing the flow of processing performed by the apparatus of FIG.

ステップS11では、入力部101が、測色値を取得する。測色値は、すでに述べたように、均等な色空間内での画素値のことである。   In step S11, the input unit 101 acquires colorimetric values. As described above, the colorimetric value is a pixel value in a uniform color space.

ステップS3〜S6は、第1実施形態で用いた図2のステップS3〜S6と同様であり、これらのステップによって、各画素について、補正された測色値が得られる。   Steps S3 to S6 are the same as steps S3 to S6 of FIG. 2 used in the first embodiment, and corrected colorimetric values are obtained for each pixel by these steps.

ステップS18では、出力部108が、補正前の測色値と、補正後の測色値とを対応付けることによりデータベース110を作成し、作成したデータベース110を図示しない記憶装置に格納する。   In step S18, the output unit 108 creates the database 110 by associating the colorimetric values before correction with the colorimetric values after correction, and stores the created database 110 in a storage device (not shown).

実際の画像データを処理する際には、図1における要素103から106までが、データベース検索111によって置き換えられる。図9にブロック図を、図10にフローチャートを示す。図1および図2と同一名称の要素には、同一の符号を付し、拡張された処理を除き説明を省略する。   When processing actual image data, the elements 103 to 106 in FIG. 1 are replaced by the database search 111. FIG. 9 is a block diagram, and FIG. 10 is a flowchart. Elements having the same names as those in FIGS. 1 and 2 are denoted by the same reference numerals, and description thereof will be omitted except for expanded processing.

ステップS21では、データベース検索部111において、入力された画像データの色空間変換された各画素値を検索し、補正後の画素値を出力する。ここでデータベース110は入力と出力が一対一の対応で記述することもできるが、その場合、データベースが膨大な容量になる。そこで、いくつかの点(画素値)についてのみ記述し、間の点については補間演算により計算することでデータベース規模を縮小するようにしてもよい。これにより、演算量を削減しながらも、人間にとってより好ましい画像表示が可能になる。   In step S21, the database retrieval unit 111 retrieves each pixel value that has undergone color space conversion of the input image data, and outputs the corrected pixel value. Here, the database 110 can be described in a one-to-one correspondence between input and output, but in that case, the database has a huge capacity. Therefore, only a few points (pixel values) may be described, and the database scale may be reduced by calculating the points between them by interpolation calculation. Thereby, it is possible to display an image more preferable for humans while reducing the amount of calculation.

本発明の第1実施形態に係る画像処理装置の構成を示す図。1 is a diagram showing a configuration of an image processing apparatus according to a first embodiment of the present invention. 図1の画像処理装置による処理の流れを示すフローチャート。2 is a flowchart showing a flow of processing by the image processing apparatus in FIG. 1. 基準傾き決定部の処理を説明する模式図。The schematic diagram explaining the process of a reference | standard inclination determination part. 傾き算出部の処理を説明する模式図。The schematic diagram explaining the process of an inclination calculation part. 本発明の第2実施形態に係る画像処理装置による処理の流れを示すフローチャート。9 is a flowchart showing a flow of processing by an image processing apparatus according to a second embodiment of the present invention. 第2実施形態における基準傾き決定部の処理を説明する模式図。The schematic diagram explaining the process of the reference | standard inclination determination part in 2nd Embodiment. 本発明の第3実施形態に係る画像処理装置(データベース作成装置)の構成を示す図。The figure which shows the structure of the image processing apparatus (database creation apparatus) which concerns on 3rd Embodiment of this invention. 図7の画像処理装置による処理の流れを示すフローチャート。8 is a flowchart showing a flow of processing by the image processing apparatus of FIG. 本発明の第3実施形態に係る画像処理装置の構成を示す図。The figure which shows the structure of the image processing apparatus which concerns on 3rd Embodiment of this invention. 図9の画像処理装置による処理の流れを示すフローチャート。10 is a flowchart showing a flow of processing by the image processing apparatus of FIG. 従来技術に係り、画素の彩度を伸張させる模式図。The schematic diagram which expands the saturation of a pixel in connection with a prior art. 従来技術に係り、明度軸の中間点を中心にして、画素値を伸張させる模式図。The schematic diagram which expands a pixel value centering | focusing on the intermediate point of a brightness axis in connection with a prior art. sRGB色空間を均等色空間のCIELAB色空間で表した場合のa*b*色度図。The a * b * chromaticity diagram when the sRGB color space is represented by the CIELAB color space of the uniform color space. sRGB色空間の黄、青、赤の各色相の色域形状。Color gamut shape of each hue of yellow, blue and red in the sRGB color space. 頂点方向に画素値を伸張させる模式図。The schematic diagram which expands a pixel value to the vertex direction.

符号の説明Explanation of symbols

101:入力部
102:色空間変換部
103:頂点決定部
104:基準傾き決定部
105:傾き算出部
106:変換値算出部
107:色空間逆変換部
108:出力部
101: input unit 102: color space conversion unit 103: vertex determination unit 104: reference inclination determination unit 105: inclination calculation unit 106: conversion value calculation unit 107: color space inverse conversion unit 108: output unit

Claims (8)

色相、彩度および明度で表される色空間を色相について分割した区間のそれぞれについて、各区間を代表する色相値で表される対象色相面で画素値が分布可能な範囲の外郭と彩度が取りうる値が最大になる最大彩度点とを求める最大彩度点推定部と、
前記区間のそれぞれについて、前記最大彩度点と前記色空間の明度軸とを通り彩度が上昇するほど明度が上昇する基準線を設定する基準線設定部と、
入力画像の各画素値を表す前記色空間の点と各画素が属する前記区間の前記基準線との間の距離に応じて各画素値の補正方向を求める補正方向算出部と、
前記入力画像の各画素値を表す前記色空間の点から、前記補正方向に向かって前記外郭までの距離に応じて各画素値を補正することにより補正画素値を得る補正部と、
前記補正画素値を出力する出力部と、
を備える画像処理装置。
For each of the sections obtained by dividing the color space represented by hue, saturation, and lightness with respect to hue, the outline and saturation of the range in which pixel values can be distributed on the target hue plane represented by the hue value representing each section A maximum saturation point estimation unit for obtaining a maximum saturation point at which a possible value is maximized;
For each of the sections, a reference line setting unit that sets a reference line that increases in lightness as the saturation increases through the maximum saturation point and the lightness axis of the color space;
A correction direction calculation unit for obtaining a correction direction of each pixel value according to a distance between a point of the color space representing each pixel value of the input image and the reference line of the section to which each pixel belongs;
A correction unit that obtains a corrected pixel value by correcting each pixel value according to a distance from the point of the color space representing each pixel value of the input image to the outline in the correction direction;
An output unit for outputting the corrected pixel value;
An image processing apparatus comprising:
前記補正方向算出部は、前記基準線までの距離が大きくなるほど、前記基準線よりも傾きが小さくなるように前記補正方向を算出する、
請求項1に記載の画像処理装置。
The correction direction calculation unit calculates the correction direction so that the inclination becomes smaller than the reference line as the distance to the reference line increases.
The image processing apparatus according to claim 1.
前記基準線設定部は、各区間に属する画素値の前記色空間での重心と前記最大彩度点とを通る前記基準線を求め、
前記各区間に属する前記画素値の前記重心は、前記各区間を代表する色相値に相当する
請求項1または請求項2のいずれか一項に記載の画像処理装置。
The reference line setting unit obtains the reference line passing through the center of gravity of the pixel values belonging to each section in the color space and the maximum saturation point,
The image processing apparatus according to claim 1, wherein the center of gravity of the pixel value belonging to each section corresponds to a hue value representing each section.
前記基準線設定部は、各区間に属する画素値の中間値に相当する前記色空間の点と前記最大彩度点とを通る前記基準線を求め、
前記各区間に属する前記画素値の前記中間値は、前記各区間を代表する色相値に相当する
請求項1または請求項2のいずれか一項に記載の画像処理装置。
The reference line setting unit obtains the reference line passing through the point of the color space corresponding to the intermediate value of the pixel values belonging to each section and the maximum saturation point;
The image processing apparatus according to claim 1, wherein the intermediate value of the pixel values belonging to each section corresponds to a hue value representing each section.
色相、彩度および明度で表される色空間を色相について分割した区間のそれぞれについて、各区間を代表する色相値で表される対象色相面で画素値が分布可能な範囲の外郭と彩度が取りうる値が最大になる最大彩度点とを求める最大彩度点推定ステップと、
前記区間のそれぞれについて、前記最大彩度点と前記色空間の明度軸とを通り彩度が上昇するほど明度が上昇する基準線を設定する基準線設定ステップと、
入力画像の各画素値を表す前記色空間の点と各画素が属する前記区間の前記基準線との間の距離に応じて各画素値の補正方向を求める補正方向算出ステップと、
前記入力画像の各画素値を表す前記色空間の点から、前記補正方向に向かって前記外郭までの距離に応じて各画素値を補正することにより補正画素値を得る補正ステップと、
前記補正画素値を出力する出力ステップと、
を備える画像処理方法。
For each of the sections obtained by dividing the color space represented by hue, saturation, and lightness with respect to hue, the outline and saturation of the range in which pixel values can be distributed on the target hue plane represented by the hue value representing each section A maximum saturation point estimation step for obtaining a maximum saturation point at which a possible value is maximized;
For each of the sections, a reference line setting step for setting a reference line that increases in brightness as the saturation increases through the maximum saturation point and the brightness axis of the color space;
A correction direction calculating step for obtaining a correction direction of each pixel value according to a distance between a point of the color space representing each pixel value of the input image and the reference line of the section to which each pixel belongs;
A correction step of obtaining a corrected pixel value by correcting each pixel value according to a distance from the point in the color space representing each pixel value of the input image to the outline in the correction direction;
An output step of outputting the corrected pixel value;
An image processing method comprising:
前記補正方向算出ステップは、前記基準線までの距離が大きくなるほど、前記基準線よりも傾きが小さくなるように前記補正方向を算出する、
請求項5に記載の画像処理方法。
The correction direction calculation step calculates the correction direction so that the inclination becomes smaller than the reference line as the distance to the reference line increases.
The image processing method according to claim 5.
前記基準線設定ステップは、各区間に属する画素値の前記色空間での重心と前記最大彩度点とを通る前記基準線を求め、
前記各区間に属する前記画素値の前記重心は、前記各区間を代表する色相値に相当する
請求項5または請求項6のいずれか一項に記載の画像処理方法。
The reference line setting step obtains the reference line passing through the center of gravity of the pixel value belonging to each section in the color space and the maximum saturation point,
The image processing method according to claim 5, wherein the center of gravity of the pixel value belonging to each section corresponds to a hue value representing each section.
前記基準線設定ステップは、各区間に属する画素値の中間値に相当する前記色空間の点と前記最大彩度点とを通る前記基準線を求め、
前記各区間に属する前記画素値の前記中間値は、前記各区間を代表する色相値に相当する
請求項5または請求項6のいずれか一項に記載の画像処理方法。
The reference line setting step obtains the reference line passing through the point of the color space corresponding to the intermediate value of the pixel values belonging to each section and the maximum saturation point,
The image processing method according to claim 5, wherein the intermediate value of the pixel values belonging to each section corresponds to a hue value representing each section.
JP2008170564A 2008-06-30 2008-06-30 Image processor and image processing method Pending JP2010011299A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008170564A JP2010011299A (en) 2008-06-30 2008-06-30 Image processor and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008170564A JP2010011299A (en) 2008-06-30 2008-06-30 Image processor and image processing method

Publications (1)

Publication Number Publication Date
JP2010011299A true JP2010011299A (en) 2010-01-14

Family

ID=41591205

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008170564A Pending JP2010011299A (en) 2008-06-30 2008-06-30 Image processor and image processing method

Country Status (1)

Country Link
JP (1) JP2010011299A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016047398A1 (en) * 2014-09-24 2016-03-31 株式会社Jvcケンウッド Color gamut conversion device, color gamut conversion method, and color gamut conversion program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016047398A1 (en) * 2014-09-24 2016-03-31 株式会社Jvcケンウッド Color gamut conversion device, color gamut conversion method, and color gamut conversion program
JP2016066195A (en) * 2014-09-24 2016-04-28 株式会社Jvcケンウッド Color gamut converter, color gamut conversion method, and color gamut conversion program

Similar Documents

Publication Publication Date Title
JP3583630B2 (en) Color data conversion method
JP5481021B2 (en) Heterogeneous color gamut mapping method and apparatus
KR100605164B1 (en) Gamut mapping apparatus and method thereof
KR101348369B1 (en) Color conversion method and apparatus for display device
JPH11341296A (en) Color area conversion method and color area converter
US8204304B2 (en) Color gamut mapping by forming curved cross-sectional surfaces
JP2009055465A (en) Image processing device and method
JPH11313219A (en) Color data conversion method
JP2005160086A (en) Color space converting method, color adjusting device of color image, color adjusting method, and computer readable recording medium with program recorded thereon
JPWO2005048583A1 (en) Color correction apparatus and color correction method
JP4068673B2 (en) Image processing apparatus and method
US20100129001A1 (en) Method, device and program for measuring image quality adjusting ability, and method, device and program for adjusting image quality
US8064693B2 (en) Methods of and apparatus for adjusting colour saturation in an input image
US20140240340A1 (en) Color profile generating apparatus, image processing apparatus, image processing system, method of generating color profile, and recording medium storing a program for generating color profile
JP2006229925A (en) Dynamic image saturation enhancement apparatus
JP4803122B2 (en) Color processing apparatus and program
KR20050098949A (en) Image processing device, method, and program
EP2375719A1 (en) Color gamut mapping method having one step preserving the lightness of the cusp colors
JP3954244B2 (en) Color reproduction space compression / decompression method
JP5341734B2 (en) Color processing apparatus and method, and image forming apparatus
JP4961962B2 (en) Color processing apparatus and program
US8861850B2 (en) Digital image color correction
US20100328343A1 (en) Image signal processing device and image signal processing program
JP4910557B2 (en) Color conversion apparatus, color conversion method, color conversion program, color conversion coefficient creation apparatus, color conversion coefficient creation method, and color conversion coefficient creation program
JP2010011299A (en) Image processor and image processing method