JP2007042033A - Color correction apparatus and image display device - Google Patents

Color correction apparatus and image display device Download PDF

Info

Publication number
JP2007042033A
JP2007042033A JP2005228191A JP2005228191A JP2007042033A JP 2007042033 A JP2007042033 A JP 2007042033A JP 2005228191 A JP2005228191 A JP 2005228191A JP 2005228191 A JP2005228191 A JP 2005228191A JP 2007042033 A JP2007042033 A JP 2007042033A
Authority
JP
Japan
Prior art keywords
color
coordinate
movement amount
weight
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
JP2005228191A
Other languages
Japanese (ja)
Inventor
Tomoyuki Saito
朋之 齊藤
Hideaki Kawamura
秀昭 川村
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2005228191A priority Critical patent/JP2007042033A/en
Publication of JP2007042033A publication Critical patent/JP2007042033A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a color correction apparatus for suppressing abrupt changes in color, and correcting the color of an image to be more preferable. <P>SOLUTION: A color-weighting calculating part 3 calculates a color weighting signal 301 that, gradually decreases from the predetermined color region to outside the color region. The first coordinate movement calculating part 4 calculates a first coordinate movement for keeping the color coordinate values of the image data close to the color coordinate values of the specific color, based on the movement corresponding to the preset color coordinate values. Next, the second coordinate movement calculating part 8 calculates a second coordinate movement by multiplying the color weighting signal 301 with the first color coordinate movement. A coordinate-moving part 9 moves the color coordinate values, by adding the second coordinate movement to the color coordinate values of the image data. As a result, abrupt change in color is suppressed, and an inputted image data can be corrected to the specific colored image data. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、色補正装置および画像表示装置に関し、特に、画像の色をより好ましく補正することができるようにする色補正装置および画像表示装置に関するものである。   The present invention relates to a color correction apparatus and an image display apparatus, and more particularly to a color correction apparatus and an image display apparatus that can correct the color of an image more preferably.

従来のカラーテレビジョンなどに搭載される色補正装置および画像表示装置では、表示デバイス特性による色の誤差を補正し、できるだけ原画像に忠実になるように色再現を行っていた。   In a color correction apparatus and an image display apparatus mounted on a conventional color television or the like, a color error due to display device characteristics is corrected and color reproduction is performed so as to be as faithful as possible to the original image.

一方、人間は特定の色に対して敏感である。例えば、空の色、人物の顔の色、草木の色、桜の色、花の色、土の色、野菜の色などは現実のものと結びついて連想可能な、思い起こせる色といわれ、記憶色と呼ばれている。その中で、特に、人間の肌の肌色、風景画の空の空色、草木の緑色の色には敏感といわれている。一般に、記憶色では、実際の色よりもその特徴が強調され、より鮮やかに記憶されるため、実際の色とは異なることが知られている。よって、忠実な色の再現よりも、記憶色に近い色の再現を行う方がより人間にとって好ましく感じられるといわれている。   On the other hand, humans are sensitive to specific colors. For example, sky color, human face color, plant color, cherry blossom color, flower color, soil color, vegetable color, etc. are said to be reminiscent colors that can be associated with the real thing, memory colors is called. Among them, it is said that it is particularly sensitive to the skin color of human skin, the sky sky color of landscapes, and the green color of plants. In general, it is known that a memory color is different from an actual color because its characteristics are emphasized and stored more vividly than an actual color. Therefore, it is said that it is more preferable for human beings to reproduce colors close to memory colors than to reproduce faithful colors.

この記憶色は、国、地方、年齢などにより異なるため、装置の使用対象となる国、地方、年齢のデータが収集され、主観評価から得られるデータを統計処理し、予め決定される色である。通常は、記憶色はある色領域に分布するものであり、その代表色を目標色として色補正を行っている。   Since this memory color varies depending on the country, region, age, etc., data on the country, region, and age that the device is to be used for is collected, and the data obtained from the subjective evaluation is statistically processed and determined in advance. . Normally, memory colors are distributed in a certain color area, and color correction is performed using the representative colors as target colors.

本明細書において、「特定の色」とは、記憶色のように、予め個別に決定される色領域の代表色であり、目標色である。   In this specification, the “specific color” is a representative color of a color region that is individually determined in advance, such as a memory color, and is a target color.

一般的に、記憶色補正では、画像中に含まれる記憶色に近い色をより記憶色に近づくように補正する。そこで、記憶色以外の色に対する影響を抑えるため、記憶色に近い色の領域を抽出し、その領域のみ補正を行っていた。例えば、画像中の風景画では、風景にある青空の領域の色が、記憶色の空色に補正されて出力される。   In general, in the memory color correction, a color close to the memory color included in the image is corrected so as to be closer to the memory color. Therefore, in order to suppress the influence on colors other than the memory color, a color area close to the memory color is extracted and only the area is corrected. For example, in the landscape image in the image, the color of the blue sky region in the landscape is corrected to the sky blue of the memory color and output.

しかし、記憶色の領域を抽出し、その領域のみ局所的な補正を行う場合、補正を行っていない領域との色の変化が急激なものとなり、その境界部分に擬似輪郭が発生するといった問題点があった。   However, when a memory color area is extracted and local correction is performed only on that area, the color change from the area that has not been corrected becomes abrupt and a pseudo contour is generated at the boundary. was there.

この問題を回避するために、画像全体に含まれる記憶色の領域の統計量を算出し、主な被写体が何かを判断し、画像を「ポートレート画像」、「風景画像」、「小人物画像」などのカテゴリに分類して、このカテゴリ毎に色補正を切り替える方法が開発されている。   To avoid this problem, calculate the statistic of the memory color area included in the entire image, determine what the main subject is, and define the image as a “portrait image”, “landscape image”, “small person image” And a method of switching color correction for each category has been developed.

具体的には、人物が比較的広い範囲に映っている「ポートレート画像」に対し、記憶色の領域(例えば、人物の肌の領域)のみを抽出し、人物の肌色領域の輝度のみを補正した場合、肌色の領域とその周辺の輝度の差が急激なものとなり、擬似輪郭が目立つ。   Specifically, for a “portrait image” in which a person appears in a relatively wide range, only the memory color area (for example, the person's skin area) is extracted, and only the brightness of the person's skin color area is corrected. In this case, the difference in brightness between the skin color area and the surrounding area becomes abrupt, and the pseudo contour is conspicuous.

そこで、人物の肌の領域(肌色領域)、風景の空の領域(空色領域)、草木の緑の領域(緑色領域)など所定の記憶色に近似している領域(以下、単に「記憶色領域」と記す)の画像全体に占める割合を算出し、カテゴリに分類する。次に、カテゴリに応じて、局所的な領域に記憶色補正を実行するか、実行しないかを判定し処理を切り替え、これにより、擬似輪郭の発生を抑えていた(例えば特許文献1)。
特開2003−216941号公報
Therefore, an area that approximates a predetermined memory color, such as a human skin area (skin color area), a landscape sky area (sky blue area), a green area of green grass (green area) (hereinafter simply referred to as “memory color area”). ")" In the entire image is calculated and classified into categories. Next, depending on the category, whether or not to perform memory color correction on a local area is determined and the process is switched, thereby suppressing the occurrence of pseudo contours (for example, Patent Document 1).
JP 2003-216951 A

しかしながら、上記従来の構成では、記憶色補正を行う場合、記憶色領域と記憶色領域以外の境界付近で色の変化が発生する。さらに、動画像ではこの変化が目立ちやすい。また、記憶色補正では補正効果をより高めるため、記憶色から離れるほどより記憶色に近づけるように補正量を増やし、領域の境界付近で急激な色の変化が起こりやすいといった課題がある。   However, in the above-described conventional configuration, when memory color correction is performed, a color change occurs near the boundary between the memory color area and the memory color area. Further, this change is conspicuous in moving images. Further, in memory color correction, in order to further improve the correction effect, there is a problem that the amount of correction is increased so as to be closer to the memory color as the distance from the memory color increases, and a rapid color change is likely to occur near the boundary of the region.

本発明は、急激な色の変化を抑え、画像の色をより好ましく補正するための色補正装置および画像表示装置を提供することを目的とする。   An object of the present invention is to provide a color correction apparatus and an image display apparatus for suppressing an abrupt color change and more preferably correcting an image color.

上記目的を達成するために、本発明の色補正装置は、色座標値に対応して予め設定した座標移動量に基づいて、入力した画像データの色座標値を移動させるための第1の座標移動量を算出する第1座標移動量算出部と、予め定められた色領域から色領域外に向けて減少する重み関数に基づいて、色座標値に応じて色重みを算出する色重み算出部と、第1の座標移動量に色重みを乗じて第2の座標移動量を算出する第2座標移動量算出部と、第2の座標移動量に基づいて色座標値を移動させる座標移動部とを備えたことを特徴とする。   In order to achieve the above object, the color correction apparatus according to the present invention includes a first coordinate for moving the color coordinate value of the input image data based on a coordinate movement amount set in advance corresponding to the color coordinate value. A first coordinate movement amount calculation unit that calculates a movement amount, and a color weight calculation unit that calculates a color weight according to a color coordinate value based on a weight function that decreases from a predetermined color region toward the outside of the color region A second coordinate movement amount calculation unit that calculates a second coordinate movement amount by multiplying the first coordinate movement amount by a color weight, and a coordinate movement unit that moves a color coordinate value based on the second coordinate movement amount It is characterized by comprising.

このような構成により、予め定められた色領域と色領域外の境界付近の急激な色の変化を抑え、画像中の色座標値を移動させることができる。   With such a configuration, it is possible to suppress a rapid color change near a boundary between a predetermined color area and the color area, and to move a color coordinate value in the image.

また、予め定められた色領域が複数あり、色重み算出部は、色領域毎に重みを算出する構成であってもよい。   Further, there may be a plurality of predetermined color regions, and the color weight calculation unit may be configured to calculate weights for each color region.

このような構成により、予め定められた色領域毎に重みを算出でき、色領域毎に最適な重みを算出できる。   With such a configuration, a weight can be calculated for each predetermined color area, and an optimum weight can be calculated for each color area.

また、色座標値は色相値、彩度値、明度値より指定する構成であってもよい。   Further, the color coordinate value may be specified from a hue value, a saturation value, and a brightness value.

このような構成により、色相値、彩度値、明度値を独立に処理できる。   With such a configuration, the hue value, saturation value, and brightness value can be processed independently.

また、座標移動部は、色座標値と第2の座標移動量を加算することで、色座標値を移動させる構成としてもよい。   Further, the coordinate moving unit may be configured to move the color coordinate value by adding the color coordinate value and the second coordinate movement amount.

このような構成により、回路規模を抑えて、色座標値を移動させることができる。   With such a configuration, the color coordinate value can be moved while suppressing the circuit scale.

また、入力した画像データの色相値を変更するオフセット値を設定可能とした記憶部を備えた構成であってもよい。   Moreover, the structure provided with the memory | storage part which enabled the setting of the offset value which changes the hue value of the input image data may be sufficient.

このような構成により、予め定められた色領域の検出範囲を変更でき、画像の色の特徴に合わせて色座標値を移動できる。   With such a configuration, the detection range of a predetermined color area can be changed, and the color coordinate value can be moved in accordance with the color characteristics of the image.

また、色補正装置は、更に、画像データをフレーム単位またはフィールド単位で記憶する画像メモリと、画像メモリに記憶された画像データから所定の条件の色成分を検出する色成分検出部と、検出した色成分のうち、色相成分のヒストグラムを作成し、ヒストグラムの分布に基づいてオフセット値を算出するオフセット算出部と、算出されたオフセット値を記憶部に設定する設定部とを備えた構成であってもよい。   The color correction apparatus further detects an image memory that stores image data in units of frames or fields, and a color component detection unit that detects a color component of a predetermined condition from the image data stored in the image memory. Among the color components, a configuration is provided that includes an offset calculation unit that creates a hue component histogram and calculates an offset value based on the distribution of the histogram, and a setting unit that sets the calculated offset value in a storage unit. Also good.

このような構成により、予め定められた色領域と色領域外の境界付近の急激な色の変化をより目立たないようにできる。   With such a configuration, it is possible to make an abrupt color change near a predetermined color region and a boundary outside the color region less noticeable.

また、所定の条件の色成分は、所定の彩度領域内で、かつ所定の明度領域内にある色成分であることが好ましい。   Moreover, it is preferable that the color component of the predetermined condition is a color component in a predetermined saturation region and in a predetermined lightness region.

このような構成により、所定の彩度領域内で、かつ所定の明度領域内にある色成分を検出でき、より特定の色に近い色成分のみを検出できる。   With such a configuration, it is possible to detect color components within a predetermined saturation region and within a predetermined lightness region, and it is possible to detect only color components closer to a specific color.

また、設定された色温度に基づいてオフセット値を決定する構成であってもよい。   Further, the offset value may be determined based on the set color temperature.

このような構成により、設定される色温度に合わせて色領域の検出範囲を変更でき、画像の特徴に合わせて色座標値を移動できる。   With such a configuration, the detection range of the color area can be changed according to the set color temperature, and the color coordinate value can be moved according to the feature of the image.

また、本発明の画像表示装置は、通信または放送された画像データを受信するデータ受信部と、受信された画像データの色座標値を移動させる色補正装置と、色補正装置により移動された色座標値の画像データを表示する表示部とを備えたことを特徴とする。   The image display device of the present invention includes a data receiving unit that receives image data transmitted or broadcasted, a color correction device that moves a color coordinate value of the received image data, and a color moved by the color correction device. And a display unit for displaying image data of coordinate values.

このような構成により、予め定められた色領域と色領域外の境界付近の急激な色の変化を抑え、画像中の色座標値を移動できる画像表示装置ができる。   With such a configuration, an image display apparatus that can suppress a rapid color change near a boundary between a predetermined color area and the outside of the color area and move a color coordinate value in the image can be provided.

本発明によれば、急激な色の変化を抑え、画像の色をより好ましく補正するための色補正装置および画像表示装置を提供できる。   ADVANTAGE OF THE INVENTION According to this invention, the color correction apparatus and image display apparatus for suppressing the rapid color change and correcting the color of an image more preferably can be provided.

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

(第1の実施の形態)
まず、第1の実施の形態である色補正装置について説明する。図1は、第1の実施の形態における色補正装置1のブロック図である。
(First embodiment)
First, the color correction apparatus according to the first embodiment will be described. FIG. 1 is a block diagram of a color correction apparatus 1 according to the first embodiment.

図1において、色空間変換部5は、Ri(赤)、Gi(緑)、Bi(青)で指定されるRGB色座標の画像データ(Ri、Gi、Bi)を、色相、彩度、明度で指定されるHSV色座標の画像データ(H、S、V)に変換する。ここで、Hは色相、Sは彩度、Vは明度であり、色相データ101、彩度データ102、明度データ103を出力する。変換の詳細は後述する。   In FIG. 1, a color space conversion unit 5 converts image data (Ri, Gi, Bi) of RGB color coordinates specified by Ri (red), Gi (green), and Bi (blue) into hue, saturation, and brightness. Is converted into image data (H, S, V) of the HSV color coordinates specified in. Here, H is the hue, S is the saturation, and V is the lightness, and the hue data 101, the saturation data 102, and the lightness data 103 are output. Details of the conversion will be described later.

次に、色領域判定部2は、色相データ101から予め定めた色領域を検出し、判定信号202を出力する。例えば、人物の顔の肌色領域、風景画の空の空色領域、草木の緑色領域などの色領域を予め定め、その色領域を判定する。また、検出する色相を変更するための色相変更データ203を出力する。色相変更データ203の詳細は後述する。   Next, the color area determination unit 2 detects a predetermined color area from the hue data 101 and outputs a determination signal 202. For example, color regions such as a skin color region of a person's face, a sky sky region of a landscape image, and a green region of plants are determined in advance, and the color region is determined. Also, hue change data 203 for changing the detected hue is output. Details of the hue change data 203 will be described later.

次に、色重み算出部3は、判定信号202と色相変更データ203とを入力し、色相軸、彩度軸、明度軸のそれぞれに対して予め設定した重み関数に基づいて、入力した画像データの色座標値に応じた重みを算出し、色重み信号301(Kg)を出力する。色重み信号301(Kg)は、色座標値を移動させるための移動量の大きさを変更する重み信号である。   Next, the color weight calculation unit 3 inputs the determination signal 202 and the hue change data 203, and inputs the input image data based on weight functions set in advance for each of the hue axis, the saturation axis, and the brightness axis. A weight corresponding to the color coordinate value is calculated, and a color weight signal 301 (Kg) is output. The color weight signal 301 (Kg) is a weight signal for changing the amount of movement for moving the color coordinate value.

次に、第1座標移動量算出部4は、判定信号202と色相変更データ203と色重み信号301を入力し、色相データ101、彩度データ102、明度データ103に対し予め定めた特定の色の色座標値に近づけるため移動方向と大きさを決定し、第1の座標移動量を算出し、移動量δh、移動量δs、移動量δvを出力する。   Next, the first coordinate movement amount calculation unit 4 inputs the determination signal 202, the hue change data 203, and the color weight signal 301, and a specific color predetermined for the hue data 101, saturation data 102, and lightness data 103. In order to approximate the color coordinate value, the movement direction and size are determined, the first coordinate movement amount is calculated, and the movement amount δh, the movement amount δs, and the movement amount δv are output.

ここで、特定の色とは、例えば、人間が印象として記憶している代表的な色合いを実験的に求め、予め定めた色である。例えば、人物の肌の代表的な色、風景の空の代表的な色、草木の緑の代表的な色のデータを収集し、主観評価データを統計処理し決定した代表色であり、目標色である。   Here, the specific color is, for example, a color determined in advance by experimentally obtaining a representative color that is stored as an impression by human beings. For example, it is a representative color that is determined by collecting data of representative colors of human skin, representative colors of the sky in landscapes, and representative colors of greenery of plants and statistically processing subjective evaluation data. It is.

次に、第2座標移動量算出部8は、色重み信号301(Kg)と第1の座標移動量である移動量δh、移動量δs、移動量δvとを入力し、色相データ101、彩度データ102、明度データ103に対し予め定めた特定の色の色座標値に近づけるための第2の座標移動量を算出し、色相移動量401(Δh)、彩度移動量402(Δs)、明度移動量403(Δv)を出力する。   Next, the second coordinate movement amount calculation unit 8 inputs the color weight signal 301 (Kg) and the first coordinate movement amount, that is, the movement amount δh, the movement amount δs, and the movement amount δv. A second coordinate movement amount for approximating the color coordinate value of a specific color determined in advance with respect to the degree data 102 and the lightness data 103 is calculated, and a hue movement amount 401 (Δh), a saturation movement amount 402 (Δs), The brightness shift amount 403 (Δv) is output.

次に、座標移動部9は、色相移動量401(Δh)、彩度移動量402(Δs)、明度移動量403(Δv)と、色相データ101、彩度データ102、明度データ103とをそれぞれ加算処理し、入力された画像データの色座標値を特定の色の色座標値に近づけるように移動させる。   Next, the coordinate moving unit 9 stores the hue movement amount 401 (Δh), the saturation movement amount 402 (Δs), the lightness movement amount 403 (Δv), the hue data 101, the saturation data 102, and the lightness data 103, respectively. Addition processing is performed, and the color coordinate value of the input image data is moved so as to approach the color coordinate value of a specific color.

具体的には、加算器11は色相データ101と色相移動量401(Δh)を加算し、加算器12は彩度データ102と彩度移動量402(Δs)を加算し、加算器13は明度データ103と明度移動量403(Δv)を加算する。   Specifically, the adder 11 adds the hue data 101 and the hue shift amount 401 (Δh), the adder 12 adds the saturation data 102 and the saturation shift amount 402 (Δs), and the adder 13 sets the brightness. Data 103 and brightness shift amount 403 (Δv) are added.

ここで、色座標値が移動すると色が変化する。よって、移動量が大きいほど色の変化が大きい。よって、特定の色の色座標値に近づけるように移動するということは、特定の色に近づくように色補正することと同じである。   Here, the color changes as the color coordinate value moves. Therefore, the greater the amount of movement, the greater the color change. Therefore, moving so as to approach the color coordinate value of a specific color is the same as performing color correction so as to approach the specific color.

次に、色空間逆変換部6は、HSV色座標で指定される画像データ(H、S、V)をRGB色座標で指定される画像データ(Ro、Go、Bo)に逆変換し、出力する。逆変換の詳細は後述する。   Next, the color space inverse transform unit 6 inversely transforms the image data (H, S, V) designated by the HSV color coordinates into image data (Ro, Go, Bo) designated by the RGB color coordinates, and outputs them. To do. Details of the inverse transformation will be described later.

次に、第1の実施の形態における色補正装置1について、さらに詳しく説明する。   Next, the color correction apparatus 1 in the first embodiment will be described in more detail.

まず、図2、図3を用いて色領域判定部2を説明する。図2は、色領域判定部2のブロック図、図3は、色選択部21の説明図である。図2において、色選択部21は、人物の顔の肌色領域、風景画の空の空色領域、草木の緑色領域などの色領域を予め定め、色相データ101から肌色領域、空色領域、緑色領域などの色領域を検出し、判定信号202を出力する。判定信号202は、図3に示すように、色相に対して、判定信号が設定される。ここで、例えば、色相の位相で0≦θ<60は肌色領域とし、判定信号202として「0」を割り当てる。同様に、判定信号202の割り当てとして、60≦θ<180は緑色領域とし「1」を割り当て、180≦θ<300は空色領域とし「2」を割り当て、300≦θ<360は肌色領域とし「0」を割り当てる。   First, the color area determination unit 2 will be described with reference to FIGS. FIG. 2 is a block diagram of the color area determination unit 2, and FIG. 3 is an explanatory diagram of the color selection unit 21. In FIG. 2, a color selection unit 21 predetermines color areas such as a skin color area of a person's face, a sky sky area of a landscape image, and a green area of plants, and a skin color area, a sky color area, a green area, and the like from the hue data 101. And the determination signal 202 is output. As shown in FIG. 3, the determination signal 202 is set for the hue. Here, for example, 0 ≦ θ <60 in the hue phase is a skin color region, and “0” is assigned as the determination signal 202. Similarly, as the assignment of the determination signal 202, 60 ≦ θ <180 is assigned a green region “1”, 180 ≦ θ <300 is assigned a sky blue region, “2” is assigned, and 300 ≦ θ <360 is assigned a skin color region. Assign “0”.

なお、色選択部21は色相データ101をそのまま入力することで、色相の任意の角度で色領域を検出するようにしたが、予め固定した角度を単位に検出してもよい。例えば、色相を30度単位で12の領域に分割しもよい。この場合、色相データ101の上位4ビットのみ検出すればよい。   Note that the color selection unit 21 inputs the hue data 101 as it is to detect the color area at an arbitrary angle of the hue, but may detect a fixed angle as a unit. For example, the hue may be divided into 12 regions in units of 30 degrees. In this case, only the upper 4 bits of the hue data 101 need be detected.

次に、検出する色領域の範囲を変更する場合について説明する。位相変更部22は、判定信号202に従って、レジスタ24、レジスタ25、レジスタ26の出力を選択し、各レジスタに設定されている色相のオフセット値を出力する。これにより、独立に色領域毎の色の検出範囲を変更できる。例えば、レジスタ24には肌色領域に対するオフセット値を設定し信号241を出力する。同様に、レジスタ25には緑色領域に対するオフセット値を設定し信号242を出力する。レジスタ26には空色領域に対するオフセット値を設定し信号243を出力する。位相変更部22は、各レジスタからの出力を判定信号202に従って選択し、変更データ244を出力する。また、加算器23は、色相データ101から位相変更部22の変更データ244を減算した色相変更データ203を出力する。   Next, the case where the range of the color area to be detected is changed will be described. The phase changing unit 22 selects the outputs of the register 24, the register 25, and the register 26 in accordance with the determination signal 202, and outputs the hue offset value set in each register. Thereby, the color detection range for each color region can be changed independently. For example, an offset value for the skin color region is set in the register 24 and a signal 241 is output. Similarly, an offset value for the green region is set in the register 25 and a signal 242 is output. An offset value for the sky blue area is set in the register 26 and a signal 243 is output. The phase changing unit 22 selects an output from each register according to the determination signal 202 and outputs changed data 244. Further, the adder 23 outputs hue change data 203 obtained by subtracting the change data 244 of the phase change unit 22 from the hue data 101.

なお、レジスタに必要なビット数は、色相の検出範囲、分解能によって決定する。例えば、0〜127まで1ステップ単位で検出する場合は、7ビット必要となる。この場合、レジスタの上位ビットは符号ビットとなり、色相をシフトさせる色方向を決定する。   The number of bits required for the register is determined by the hue detection range and resolution. For example, when detecting from 0 to 127 in units of 1 step, 7 bits are required. In this case, the upper bits of the register are sign bits and determine the color direction in which the hue is shifted.

また、色相変更データ203には、色相データ101のデータ精度がNビットの分解能で表現されるとき、下位Lビット(N>L)を用いるようにした。必要なビット数は、色相の検出範囲、分解能によって決定する。例えば、0〜255まで1ステップ単位で検出する場合は、8ビット必要となる。   The hue change data 203 uses lower L bits (N> L) when the data accuracy of the hue data 101 is expressed with a resolution of N bits. The required number of bits is determined by the hue detection range and resolution. For example, when detecting from 0 to 255 in units of one step, 8 bits are required.

次に、図4、図5、図6を用いて色重み算出部3について説明する。色重み算出部3は、色相軸に沿った重みKhと、彩度軸に沿った重みKsと、明度軸に沿った重みKvとに基づいて、色座標値に対応した移動量の大きさを変更する色重み信号301(Kg)を出力する。   Next, the color weight calculation unit 3 will be described with reference to FIGS. 4, 5, and 6. Based on the weight Kh along the hue axis, the weight Ks along the saturation axis, and the weight Kv along the lightness axis, the color weight calculation unit 3 determines the amount of movement corresponding to the color coordinate value. The color weight signal 301 (Kg) to be changed is output.

まず、図4において、色相重み算出部31は、色相軸に対して、特定の色との近似度に応じてどの程度の移動量で処理するかを予め決定した重み関数に基づいて、移動量の大きさを変える重みKhを画像データの色相に対応して算出する。   First, in FIG. 4, the hue weight calculation unit 31 is based on a weight function that is determined in advance based on a weight function that determines how much the hue axis is processed according to the degree of approximation with a specific color. The weight Kh for changing the size of the image data is calculated corresponding to the hue of the image data.

具体的には、色相軸に対して、図5(a)に示すように、肌色領域の中心Psにおいて重みKhは最大値「1」を出力し、Psから離れた下限であるP1と上限であるP3で最小値「0」を出力する。ここで、縦軸は重みKhを表すものとし、横軸は色相を表すものである。色相は0から360度まで値が変化する。   Specifically, with respect to the hue axis, as shown in FIG. 5A, the weight Kh outputs the maximum value “1” at the center Ps of the flesh color region, and the lower limit P1 and the upper limit away from Ps. The minimum value “0” is output at a certain P3. Here, the vertical axis represents the weight Kh, and the horizontal axis represents the hue. The hue value varies from 0 to 360 degrees.

同様に、図5(d)に示すように、空色領域の中心Pbにおいて重みKhは最大値「1」を出力し、Pbから離れた下限であるP6と上限であるP9で最小値「0」を出力する。ここで、縦軸は重みKhを表すものとし、横軸は色相を表すものである。ここで、縦軸は重みKhを表すものとし、横軸は色相を表すものである。色相は0から360度まで値が変化する。   Similarly, as shown in FIG. 5D, the weight Kh outputs the maximum value “1” at the center Pb of the sky blue region, and the minimum value “0” at the lower limit P6 and the upper limit P9. Is output. Here, the vertical axis represents the weight Kh, and the horizontal axis represents the hue. Here, the vertical axis represents the weight Kh, and the horizontal axis represents the hue. The hue value varies from 0 to 360 degrees.

また、図5(g)に示すように、緑色領域の中心Pgにおいて重みKhは最大値「1」を出力し、Pgから離れた下限値のP3と上限値のP6で最小値「0」を出力する。ここで、縦軸は重みKhを表すものとし、横軸は色相を表すものである。色相は0から360度まで値が変化する。   Further, as shown in FIG. 5G, the weight Kh outputs the maximum value “1” at the center Pg of the green region, and the minimum value “0” is set between the lower limit value P3 and the upper limit value P6 that are separated from Pg. Output. Here, the vertical axis represents the weight Kh, and the horizontal axis represents the hue. The hue value varies from 0 to 360 degrees.

即ち、色相について、予め決定した特定の色と一致する色相Ps、Pb、Pgで最大となり、Ps、Pb、Pgから離れるに従って減少するようにしている。Ps、Pb、Pgは、国、地方、年齢などにより異なるため、装置の使用対象となる国、地方、年齢などのデータを収集し、主観評価データを統計処理し、予め目標色を決定する。   That is, the hue is maximized at hues Ps, Pb, and Pg that match a predetermined specific color, and decreases with distance from Ps, Pb, and Pg. Since Ps, Pb, and Pg differ depending on the country, region, age, and the like, data such as the country, region, age, etc., to which the apparatus is to be used is collected, subject evaluation data is statistically processed, and a target color is determined in advance.

また、判定信号202に従って、どの特定の色の領域に対する重みKhを出力するかを決定する。例えば、判定信号202が「0」であれば、肌色領域の重みKhを出力する。同様に、判定信号202が「1」であれば、緑色領域の重みKh、判定信号202が「2」であれば、空色領域の重みKhを出力する。   In addition, according to the determination signal 202, it is determined which specific color region the weight Kh is to be output. For example, if the determination signal 202 is “0”, the skin color area weight Kh is output. Similarly, if the determination signal 202 is “1”, the green region weight Kh is output, and if the determination signal 202 is “2”, the light blue region weight Kh is output.

ここで、色相重み算出部31の動作について図6を用いて説明する。図6において、重み関数は、予め定めた色領域から色領域外に向けて連続して減少するように設定している。例えば、予め定めた色領域は記憶色領域に基づく領域であり、肌色領域としてはP1からP2が通常設定される領域である。しかし、本発明では重みの変化範囲を下限値はP1からP9にし、上限値はP2からP3に拡大する。よって、重みKhが肌色Psで最大値「1」とし、下限値のP9側、上限値のP3側で減少するようにしている。   Here, the operation of the hue weight calculation unit 31 will be described with reference to FIG. In FIG. 6, the weighting function is set so as to continuously decrease from a predetermined color area toward the outside of the color area. For example, the predetermined color area is an area based on the memory color area, and P1 to P2 are normally set as the skin color area. However, in the present invention, the weight change range is expanded from P1 to P9 for the lower limit value and from P2 to P3 for the upper limit value. Therefore, the weight Kh is set to the maximum value “1” for the skin color Ps and decreases on the lower limit P9 side and the upper limit P3 side.

同様に、通常設定される緑色領域はP4からP5であるが、緑色領域の色相の下限値をP4からP3に拡大し、上限値をP5からP6に拡大する。重みKhが緑色Pgで最大値「1」とし、下限値のP3側、上限値のP6側で減少するようにしている。   Similarly, the normally set green region is P4 to P5, but the lower limit value of the hue of the green region is expanded from P4 to P3, and the upper limit value is expanded from P5 to P6. The weight Kh is green Pg and has a maximum value “1”, and decreases on the lower limit P3 side and the upper limit P6 side.

また、通常設定される空色領域の色相の範囲はP7からP8であるが、空色領域の下限値をP7からP6にし、上限値をP8からP9に拡大し、重みKhが空色Pbで最大値「1」とし、下限値のP6側、上限値のP9側で減少するようにしている。   Further, the hue range of the normally set sky blue area is P7 to P8, but the lower limit value of the sky blue area is increased from P7 to P6, the upper limit value is increased from P8 to P9, the weight Kh is the maximum value “ 1 ”, and decreases on the P6 side of the lower limit value and the P9 side of the upper limit value.

以上のように、重みKhは、予め定めた色領域から色領域外に向けて連続して減少するように設定しているので、特定の色への補正あり、補正なしの2値的な変化がなくなる。また、色相軸における重みの変化範囲を拡大することで、重みKhの変化をなだらかにできる。よって、予め定めた色領域と色領域外との境界付近での急激な色の変化を抑えることができる。   As described above, the weight Kh is set so as to continuously decrease from a predetermined color area toward the outside of the color area, and therefore, a binary change with correction to a specific color and without correction. Disappears. Further, the change in the weight Kh can be made gentle by expanding the change range of the weight on the hue axis. Therefore, it is possible to suppress a rapid color change near the boundary between the predetermined color area and the outside of the color area.

次に、彩度重み算出部32は、各特定の色毎に、彩度軸に対して、移動量の大きさを変更する重みKsを画像データの色座標値の彩度に対応して算出する。具体的には、図5(b)、図5(e)、図5(h)に示すように、重みKsを定める。ここで、縦軸は重みKsを表すものとし、横軸は彩度を表すものとする。彩度は0から255まで値が変化する。   Next, the saturation weight calculation unit 32 calculates a weight Ks for changing the amount of movement with respect to the saturation axis for each specific color corresponding to the saturation of the color coordinate value of the image data. To do. Specifically, the weight Ks is determined as shown in FIGS. 5B, 5E, and 5H. Here, the vertical axis represents the weight Ks, and the horizontal axis represents the saturation. The value of saturation changes from 0 to 255.

また、判定信号202に従って、どの特定の色の領域に対する重みを出力するかを決定する。例えば、判定信号202が「0」であれば、肌色領域の重みKsを出力する。同様に、判定信号202が「1」であれば、緑色領域の重みKs、判定信号202が「2」であれば、空色領域の重みKsを出力する。   Further, in accordance with the determination signal 202, it is determined which specific color region to output the weight. For example, if the determination signal 202 is “0”, the skin color area weight Ks is output. Similarly, if the determination signal 202 is “1”, the green region weight Ks is output, and if the determination signal 202 is “2”, the light blue region weight Ks is output.

次に、明度重み算出部33は、各特定の色毎に、明度軸に対して、移動量の大きさを変更する重みKvを画像データの色座標値の明度に対応して算出する。具体的には、図5(c)、図5(f)、図5(i)に示すように、重みKvを定める。ここで、縦軸は重みKvを表すものとし、横軸は明度を表すものとする。明度は0から255まで値が変化する。   Next, the lightness weight calculation unit 33 calculates, for each specific color, a weight Kv for changing the amount of movement with respect to the lightness axis, corresponding to the lightness of the color coordinate value of the image data. Specifically, the weight Kv is determined as shown in FIGS. 5C, 5F, and 5I. Here, the vertical axis represents the weight Kv, and the horizontal axis represents the lightness. The brightness changes from 0 to 255.

また、判定信号202に従って、どの特定の色の領域に対する重みを出力するかを決定する。例えば、判定信号202が「0」であれば、肌色領域の重みKvを出力する。同様に、判定信号202が「1」であれば、緑色領域の重みKv、判定信号202が「2」であれば、空色領域の重みKvを出力する。   Further, in accordance with the determination signal 202, it is determined which specific color region to output the weight. For example, if the determination signal 202 is “0”, the skin color region weight Kv is output. Similarly, if the determination signal 202 is “1”, the green region weight Kv is output, and if the determination signal 202 is “2”, the light blue region weight Kv is output.

以上のように定められた各重みKh、重みKs、重みKvは、それぞれ乗算器34、乗算器35で乗算され、色座標値の移動量の大きさを変更する色重み信号301(Kg)は、次の式により算出される。   The weights Kh, weights Ks, and weights Kv determined as described above are multiplied by the multiplier 34 and the multiplier 35, respectively, and the color weight signal 301 (Kg) that changes the magnitude of the movement amount of the color coordinate value is obtained. Is calculated by the following equation.

Figure 2007042033
Figure 2007042033

なお、色重み信号301(Kg)は、重みKh、重みKs、重みKvの最小値としてもよく、同様に移動量の大きさ変更することができる。これにより、回路規模の大きい乗算器を削減できるので、ハードウェアの回路規模を小さくできる。   The color weight signal 301 (Kg) may be the minimum value of the weight Kh, the weight Ks, and the weight Kv, and the amount of movement can be changed similarly. As a result, multipliers having a large circuit scale can be reduced, and the hardware circuit scale can be reduced.

このように、色重み信号301(Kg)は、色相軸に沿った重みKhと、彩度軸に沿った重みKsと、明度軸に沿った重みKvとに基づいて、定められる。   In this way, the color weight signal 301 (Kg) is determined based on the weight Kh along the hue axis, the weight Ks along the saturation axis, and the weight Kv along the lightness axis.

なお、重みKh、重みKs、重みKvの各色相軸、彩度軸、明度軸上での減少度合いは、一定であってもよいし、n次の曲線で近似した非線形な重みの変化であってもよい。   The degree of decrease of the weight Kh, the weight Ks, and the weight Kv on the hue axis, the saturation axis, and the brightness axis may be constant or may be a non-linear change in weight approximated by an nth-order curve. May be.

なお、色相重み算出部31、彩度重み算出部32、明度重み算出部33は、ハードウェア・ロジックで構成してもよいし、ルックアップテーブル(以下、「LUT」と記す)で構成してもよい。LUTで構成することで、複雑な重みも予め作成することができ、リード・オンリー・メモリ(以下、「ROM」と記す)で提供することができる。また、重みを更新できるようにするため、書き換え可能なメモリ、例えば、ランダム・アクセス・メモリ(以下、「RAM」と記す)で構成してもよい。   The hue weight calculation unit 31, the saturation weight calculation unit 32, and the lightness weight calculation unit 33 may be configured by hardware logic or a lookup table (hereinafter referred to as “LUT”). Also good. By configuring with an LUT, complex weights can be created in advance and can be provided in a read-only memory (hereinafter referred to as “ROM”). In order to update the weight, a rewritable memory such as a random access memory (hereinafter referred to as “RAM”) may be used.

次に、図4、図7を用いて第1座標移動量算出部4について説明する。   Next, the first coordinate movement amount calculation unit 4 will be described with reference to FIGS. 4 and 7.

図4において、色相移動量算出部41は、入力した画像データの色座標値の色相が各特定の色に近づくように、移動量δhを算出する。具体的には、図7(a)に示すように、色相軸において、肌色領域の色座標値がPsに近づくように移動量δhを算出する。ここで、符号が異なると移動方向が反対になる。同様に、図7(d)に示すように、空色領域の色座標値がPbに近づくように移動量δhを算出する。また、図7(g)に示すように、緑色領域の色座標値がPgに近づくように移動量δhを算出する。   In FIG. 4, a hue movement amount calculation unit 41 calculates a movement amount δh so that the hue of the color coordinate value of the input image data approaches each specific color. Specifically, as shown in FIG. 7A, the movement amount δh is calculated so that the color coordinate value of the flesh color region approaches Ps on the hue axis. Here, if the signs are different, the moving direction is opposite. Similarly, as shown in FIG. 7D, the movement amount δh is calculated so that the color coordinate value of the sky blue region approaches Pb. Further, as shown in FIG. 7G, the movement amount δh is calculated so that the color coordinate value of the green region approaches Pg.

ここで、縦軸は移動量δhを表すものとし、横軸は色相を表すものとする。色相は0から360度まで値が変化する。   Here, the vertical axis represents the movement amount δh, and the horizontal axis represents the hue. The hue value varies from 0 to 360 degrees.

なお、それぞれ肌色領域をPs、空色領域をPb、緑色領域をPgの特定の色に近づくように移動量を算出したが、例えば、空色をより青く見せるように空色領域全体の色相を一方向に回転する移動量を算出してもよく、草木の緑色の印象を強めるために緑色領域全体の色相を一方向に回転する移動量を算出してもよい。いずれも、より人間の印象に近い色合いを再現することができる。   Note that the movement amount was calculated so as to approach the specific colors of Ps for the flesh-color area, Pb for the sky-color area, and Pg for the green-color area, but for example, the hue of the entire sky-blue area is unidirectional to make the sky blue appear more blue. The amount of movement that rotates may be calculated, or the amount of movement that rotates the hue of the entire green region in one direction may be calculated in order to enhance the green impression of plants. In both cases, it is possible to reproduce a hue closer to a human impression.

また、どの特定の色に対する移動量δhを出力するかは、判定信号202に従って決定する。例えば、判定信号202が「0」であれば、肌色領域の移動量δhを出力する。同様に、判定信号202が「1」であれば、緑色領域の移動量δh、判定信号202が「2」であれば、空色領域の移動量δhを出力する。   Further, which specific color the movement amount δh is output to is determined according to the determination signal 202. For example, if the determination signal 202 is “0”, the movement amount δh of the skin color region is output. Similarly, if the determination signal 202 is “1”, the movement amount δh of the green region is output, and if the determination signal 202 is “2”, the movement amount δh of the sky blue region is output.

また、色相が肌色Ps、空色Pb、緑色Pgから離れるほど移動量を増加するようにしている。このため、特定の色から離れた色ほど特定の色に近づくように移動量が大きくなっている、色補正の効果がより強くなるようにしている。結果、より人間にとって好ましい色再現を実現している。   Further, the movement amount is increased as the hue is separated from the skin color Ps, sky blue Pb, and green Pg. For this reason, the amount of movement is increased so that the color farther from the specific color approaches the specific color, and the effect of color correction is made stronger. As a result, color reproduction that is more favorable for human beings is realized.

次に、彩度移動量算出部42は、各特定の色の領域毎に、彩度の軸に対して、移動量δsを算出する。具体的には、図7(b)、図7(e)、図7(h)に示すように、移動量δsを定める。ここで、縦軸は移動量δsを表すものとし、横軸は彩度を表すものとする。彩度は0から255まで値が変化する。   Next, the saturation movement amount calculation unit 42 calculates a movement amount δs with respect to the saturation axis for each specific color region. Specifically, as shown in FIGS. 7B, 7E, and 7H, the movement amount δs is determined. Here, the vertical axis represents the movement amount δs, and the horizontal axis represents the saturation. The value of saturation changes from 0 to 255.

また、どの特定の色に対する移動量δsを出力するかは、判定信号202に従って決定する。例えば、判定信号202が「0」であれば、肌色領域の移動量δsを出力する。同様に、判定信号202が「1」であれば、緑色領域の移動量δs、判定信号202が「2」であれば、空色領域の移動量δsを出力する。   Further, which specific color the movement amount δs is output is determined according to the determination signal 202. For example, if the determination signal 202 is “0”, the movement amount δs of the skin color region is output. Similarly, if the determination signal 202 is “1”, the movement amount δs of the green region is output, and if the determination signal 202 is “2”, the movement amount δs of the sky blue region is output.

次に、明度移動量算出部43は、各特定の色の領域毎に、明度の軸に対して、移動量δvを算出する。具体的には、図7(c)、図7(f)、図7(i)に示すように、移動量δvを定める。ここで、縦軸は移動量δvを表すものとし、横軸は明度を表すものとする。明度は0から255まで値が変化する。   Next, the lightness movement amount calculation unit 43 calculates a movement amount δv with respect to the lightness axis for each specific color region. Specifically, the movement amount δv is determined as shown in FIGS. 7C, 7F, and 7I. Here, the vertical axis represents the movement amount δv, and the horizontal axis represents the brightness. The brightness changes from 0 to 255.

また、どの特定の色に対する移動量δvを出力するかは、判定信号202に従って決定する。例えば、判定信号202が「0」であれば、肌色領域の移動量δvを出力する。同様に、判定信号202が「1」であれば、緑色領域の移動量δv、判定信号202が「2」であれば、空色領域の移動量δvを出力する。   Further, which specific color the movement amount δv is output is determined according to the determination signal 202. For example, if the determination signal 202 is “0”, the movement amount δv of the skin color region is output. Similarly, if the determination signal 202 is “1”, the movement amount δv of the green region is output, and if the determination signal 202 is “2”, the movement amount δv of the sky blue region is output.

以上のように、第1座標移動量算出部4は、入力される画像データの色相、彩度、明度に応じて、予め設定している、色座標値を移動させるための第1の座標移動量である移動量δh、移動量δs、移動量δvを出力する。   As described above, the first coordinate movement amount calculation unit 4 performs the first coordinate movement for moving the color coordinate value set in advance according to the hue, saturation, and brightness of the input image data. A movement amount δh, a movement amount δs, and a movement amount δv, which are amounts, are output.

次に、第2座標移動量算出部8は、乗算器44〜46により、入力した各移動量δh、移動量δs、移動量δvにそれぞれ色重み信号301(Kg)を乗算し、第2の座標移動量である色相移動量401(Δh)、彩度移動量402(Δs)、明度移動量403(Δv)を出力する。このように色重み信号301によって、色座標値の移動の大きさを変更できる。即ち、色補正の効き方、強さが変更できる。これにより、予め定めた色領域から色領域外までを連続的に色補正しても、予め定めた色領域外では、色座標値の移動量はなだらかに、かつ、十分に減少しているため、色補正が、画像中の予め定めた色領域外の色に与える影響を抑えられる。   Next, the second coordinate movement amount calculation unit 8 uses the multipliers 44 to 46 to multiply the input movement amounts δh, movement amounts δs, and movement amounts δv by the color weight signal 301 (Kg), respectively. A hue movement amount 401 (Δh), a saturation movement amount 402 (Δs), and a lightness movement amount 403 (Δv), which are coordinate movement amounts, are output. In this way, the magnitude of the movement of the color coordinate value can be changed by the color weight signal 301. That is, the effect and strength of color correction can be changed. As a result, even if the color correction is continuously performed from the predetermined color area to the outside of the color area, the movement amount of the color coordinate value is gently and sufficiently reduced outside the predetermined color area. The influence of the color correction on the color outside the predetermined color area in the image can be suppressed.

よって、予め定めた色領域から色領域外の境界付近で、特定の色への補正あり、補正なしの2値的な処理の切り替えをなくすことができ、急激な色の変化を抑えることができる。   Therefore, it is possible to eliminate binary processing switching with or without correction to a specific color in the vicinity of the boundary outside the color area from a predetermined color area, and abrupt color change can be suppressed. .

なお、色相移動量算出部41、彩度移動量算出部42、明度移動量算出部43は、ハードウェア・ロジックで構成してもよいし、LUTで構成してもよい。LUTで構成することで、複雑な移動量も予め作成することができ、ROMなどで提供することができる。   The hue movement amount calculation unit 41, the saturation movement amount calculation unit 42, and the lightness movement amount calculation unit 43 may be configured by hardware logic or an LUT. By configuring with the LUT, a complicated movement amount can be created in advance, and can be provided in a ROM or the like.

また、移動量の大きさを更新できるようにするため、書き換え可能なメモリ、例えば、RAMで構成してもよい。   Moreover, in order to be able to update the magnitude | size of movement amount, you may comprise by rewritable memory, for example, RAM.

第1座標移動量算出部4の第1の座標移動量を、色重み信号301で重み付けするようにしたことで、色座標値の移動方向と移動量の大きさをそれぞれ独立に設定可能になり、個々の機能を簡易な関数で近似できるようになる。従って、回路を簡素化できる。   Since the first coordinate movement amount of the first coordinate movement amount calculation unit 4 is weighted by the color weight signal 301, the movement direction of the color coordinate value and the magnitude of the movement amount can be set independently. Individual functions can be approximated with simple functions. Therefore, the circuit can be simplified.

また、色重み算出部3と第1座標移動量算出部4と第2座標移動量算出部8の演算を予め処理し、画像データ(H、S、V)を入力し、出力データ(Δh、Δs、Δv)を出力する1つのLUTで構成してもよい。これにより、複雑な演算を予め行うことができ、高速化できる。   Further, the operations of the color weight calculation unit 3, the first coordinate movement amount calculation unit 4 and the second coordinate movement amount calculation unit 8 are processed in advance, image data (H, S, V) is input, and output data (Δh, You may comprise by one LUT which outputs (DELTA) s and (DELTA) v). Thereby, complicated calculations can be performed in advance and the speed can be increased.

次に、座標移動部9は、色相移動量401(Δh)、彩度移動量402(Δs)、明度移動量(Δv)と、色相データ101、彩度データ102、明度データ103とをそれぞれ加算処理し、入力された画像データの色座標値を特定の色の色座標値に移動する。   Next, the coordinate moving unit 9 adds the hue movement amount 401 (Δh), the saturation movement amount 402 (Δs), the lightness movement amount (Δv), and the hue data 101, saturation data 102, and lightness data 103, respectively. Then, the color coordinate value of the input image data is moved to the color coordinate value of the specific color.

具体的には、加算器11は色相データ101と色相移動量401(Δh)を加算し、加算器12は彩度データ102と彩度移動量402(Δs)を加算し、加算器13は明度データ103と明度移動量403(Δv)を加算する。   Specifically, the adder 11 adds the hue data 101 and the hue shift amount 401 (Δh), the adder 12 adds the saturation data 102 and the saturation shift amount 402 (Δs), and the adder 13 sets the brightness. Data 103 and brightness shift amount 403 (Δv) are added.

これにより、入力した画像データ(H、S、V)は、補正後の画像データ(H’、S’、V’)に変換される。変換は、次の3つの式で表される。   As a result, the input image data (H, S, V) is converted into corrected image data (H ′, S ′, V ′). The conversion is expressed by the following three expressions.

Figure 2007042033
Figure 2007042033

Figure 2007042033
Figure 2007042033

Figure 2007042033
Figure 2007042033

ここで、δh、δs、δvは第1の座標移動量、Kgは色重み、Δh、Δs、Δvは第2の座標移動量である。   Here, δh, δs, and δv are first coordinate movement amounts, Kg is a color weight, and Δh, Δs, and Δv are second coordinate movement amounts.

次に、色空間逆変換部6は、HSV色座標で指定される画像データをRGB色座標で指定される画像データに逆変換する。これにより、画像データ(Ro、Go、Bo)が出力される。   Next, the color space inverse transform unit 6 inversely transforms the image data designated by the HSV color coordinates into image data designated by the RGB color coordinates. Thereby, image data (Ro, Go, Bo) is output.

以上のように第1の実施の形態によれば、色相が肌色Ps、緑色Pg、空色Pbから離れるほど移動量を増加するようにしている。このため、特定の色から離れた色ほど特定の色に近づくように移動され、色補正の効果がより強くなるようにしている。結果、より人間にとって好ましい色再現を実現している。   As described above, according to the first embodiment, the amount of movement increases as the hue moves away from the skin color Ps, green Pg, and sky blue Pb. For this reason, as the color is farther from the specific color, the color is moved closer to the specific color, so that the effect of color correction becomes stronger. As a result, color reproduction that is more favorable for human beings is realized.

また、移動量の大きさを変更する色重み信号301(Kg)は、予め設定される重み関数に基づき、予め定めた色領域から色領域外に向けて連続的に減少するように設定している。これによって、境界付近で、特定の色への補正あり、補正なしの2値的な処理の切り替えをなくすことができ、境界付近での急激な色の変化を抑えることができる。   Further, the color weight signal 301 (Kg) for changing the magnitude of the movement amount is set so as to continuously decrease from a predetermined color area toward the outside of the color area based on a preset weight function. Yes. As a result, it is possible to eliminate binary processing switching with or without correction to a specific color near the boundary, and abrupt color change near the boundary can be suppressed.

また、重み関数の変化は、予め定めた色領域から色領域外に向けてなだらかに、かつ、減少しているので、画像中の予め定めた色領域以外の色に与える影響は抑えられている。   Further, since the change of the weight function is gradually and decreasing from the predetermined color area toward the outside of the color area, the influence on the color other than the predetermined color area in the image is suppressed. .

(第2の実施の形態)
次に、第2の実施の形態について、図8から図10を用いて説明する。以下、第1の実施の形態と同様の点については、重複を避けるため、説明を省略する。
(Second Embodiment)
Next, a second embodiment will be described with reference to FIGS. Hereinafter, in order to avoid duplication about the point similar to 1st Embodiment, description is abbreviate | omitted.

第2の実施の形態が第1の実施の形態と異なる点は、色領域判定部2に対して、色相の変更に用いるオフセット値701を画像解析部7を用いて求める点である。   The second embodiment is different from the first embodiment in that an offset value 701 used for changing the hue is obtained from the color region determination unit 2 using the image analysis unit 7.

図8において、画像解析部7は、画像データ(H、S、V)から所定の彩度領域内で、かつ所定の明度領域内の色相データ101を検出する検出部と、検出した色相データ101を記録するフレームメモリと、記録した色相データのヒストグラムを作成するヒストグラム作成部と、作成されたヒストグラムの分布から予め定めた色領域と色領域外との境界付近の分布量を検出し、境界付近の分布量が小さくなるようにオフセット値を算出し、レジスタ24、レジスタ25、レジスタ26にオフセット値701(ΔX1、ΔX2、ΔX3)を設定する設定部より構成される。この構成により、色座標値の移動によって境界付近に発生しやすい急激な色の変化を抑える。   In FIG. 8, the image analysis unit 7 detects a hue data 101 within a predetermined saturation area and within a predetermined brightness area from the image data (H, S, V), and detected hue data 101. A frame memory that records the color, a histogram creation unit that creates a histogram of the recorded hue data, and a distribution amount in the vicinity of the boundary between the predetermined color area and the outside of the color area is detected from the distribution of the created histogram, The offset value is calculated so as to reduce the distribution amount, and the setting unit sets offset values 701 (ΔX1, ΔX2, ΔX3) in the registers 24, 25, and 26. With this configuration, a rapid color change that tends to occur near the boundary due to the movement of the color coordinate value is suppressed.

なお、画像の解析をフレーム単位でなく、フィールド単位とすることで、フレームメモリをフィールドメモリとしてもよい。つまり所定の画像領域が確保できればよい。   Note that the frame memory may be a field memory by analyzing an image in units of fields instead of in units of frames. That is, it is only necessary to secure a predetermined image area.

また、他の機能として、色補正装置10がCRT、プラズマディスプレイパネル、液晶パネルなどの表示部を備えるデジタルテレビに組み込まれた場合、画像解析部7は、外部より設定される色温度に基づいて色座標値の移動の目標値を変更する。例えば、操作ボタンにより色温度が高く設定されると、デジタルテレビに表示される色は青み方向にシフトする。そのため、オフセット値701(ΔX1、ΔX2、ΔX3)を大きくする。   As another function, when the color correction device 10 is incorporated in a digital television including a display unit such as a CRT, a plasma display panel, or a liquid crystal panel, the image analysis unit 7 is based on a color temperature set from the outside. Change the target value for moving the color coordinate values. For example, when the color temperature is set high by the operation button, the color displayed on the digital television shifts in the blue direction. Therefore, the offset value 701 (ΔX1, ΔX2, ΔX3) is increased.

これにより、色温度に合わせて、移動の目標となる色を青み方向に移動できる。例えば、色領域判定部2はオフセット値701を入力し、図10に示すように、オフセット値(ΔX3)により、空色領域の検出の中心を青み方向へシフトしている。同様に、オフセット値ΔX1、オフセット値ΔX2により、肌色領域、緑色領域の検出の中心を青み方向へシフトできる。   As a result, the target color can be moved in the blue direction in accordance with the color temperature. For example, the color area determination unit 2 receives the offset value 701 and shifts the detection center of the sky blue area in the blue direction by the offset value (ΔX3) as shown in FIG. Similarly, the center of detection of the skin color region and the green region can be shifted in the blue direction by the offset value ΔX1 and the offset value ΔX2.

なお、各オフセット値は同じでもよいし、異なってもよい。独立に色を調整するためには、図9に示すレジスタ24、レジスタ25、レジスタ26にΔX1、ΔX2、ΔX3をそれぞれ設定すればよい。   Each offset value may be the same or different. In order to independently adjust the colors, ΔX1, ΔX2, and ΔX3 may be set in the registers 24, 25, and 26 shown in FIG.

これにより、色温度に基づいて目標値も変更でき、色温度に最適な色再現が実現できる。   As a result, the target value can also be changed based on the color temperature, and color reproduction optimal for the color temperature can be realized.

また、デジタルカメラなどの撮影データのホワイトバランスを検出することで、カラーバランスがずれていると判断したときに、オフセット値を調整してもよい。   Further, the offset value may be adjusted when it is determined that the color balance is shifted by detecting the white balance of the photographing data of a digital camera or the like.

これにより、夕焼け、照明光などの外光の影響による色の偏りを補正できる。   As a result, it is possible to correct color deviation due to the influence of external light such as sunset and illumination light.

次に、図11、図12を用いて、図1に示す色空間変換部5、色空間逆変換部6について詳細に説明する。   Next, the color space conversion unit 5 and the color space inverse conversion unit 6 shown in FIG. 1 will be described in detail with reference to FIGS.

画像データは、Red(R)、Green(G)、Blue(B)の光源を発光させる表示デバイス信号として、図11のようなRGB色座標で表現される画像データであることが多い。   The image data is often image data represented by RGB color coordinates as shown in FIG. 11 as a display device signal that emits light from Red (R), Green (G), and Blue (B).

そこで、RGB色座標で表現される画像データを、HSV色座標で表現される画像データに変換する。HSV座標系は正確には円柱座標系であるが、図12に示すように色空間はRGBCMYを頂点とする六角錐で表されることが多い。Hは色相であり、Rの方向を「0」として反時計周りに0度から360度で表される。Sは色鮮やかさを示す彩度であり、中心線の部分が「0」で、円周方向に向かうに従って増加する。Vは明るさを示す明度である。角錐の頂点の部分が黒であり、底面(図12では上部の六角形)の中心が白である。   Therefore, the image data expressed by RGB color coordinates is converted into image data expressed by HSV color coordinates. The HSV coordinate system is exactly a cylindrical coordinate system, but as shown in FIG. 12, the color space is often represented by a hexagonal pyramid having RGBCMY as its apex. H is a hue, and is represented by 0 to 360 degrees counterclockwise with the direction of R being “0”. S is the saturation indicating the vividness, and the center line portion is “0” and increases as it goes in the circumferential direction. V is lightness indicating brightness. The apex of the pyramid is black, and the center of the bottom surface (upper hexagon in FIG. 12) is white.

色空間変換部5において、RGB色座標で指定される画像データからHSV色座標で指定される画像データへの変換は、次の3つの式によって行われる。ただし、0≦R、G、B≦MAX、0≦S、V≦MAX、0≦V≦360、nは入力するRGB色座標で表現される画像データのビット数とする。   In the color space conversion unit 5, conversion from image data specified by RGB color coordinates to image data specified by HSV color coordinates is performed by the following three expressions. However, 0 ≦ R, G, B ≦ MAX, 0 ≦ S, V ≦ MAX, 0 ≦ V ≦ 360, and n are the number of bits of image data expressed by input RGB color coordinates.

Figure 2007042033
Figure 2007042033

Figure 2007042033
Figure 2007042033

Figure 2007042033
Figure 2007042033

色空間逆変換部6の逆変換式については、次の通りである。   The inverse transformation formula of the color space inverse transformation unit 6 is as follows.

Figure 2007042033
Figure 2007042033

Figure 2007042033
Figure 2007042033

一般に、RGB色空間の定義閾とHSV色空間の定義閾は等しく、その定義閾内の補正であれば、1対1に写像することができる。   In general, the definition threshold of the RGB color space is equal to the definition threshold of the HSV color space, and if the correction is within the definition threshold, one-to-one mapping can be performed.

一方、RGBでもHSVでもない色空間、例えば、YCbCr色空間は、彩度の高い領域でRGBの定義閾をオーバーしており、補正後にRGB空間に戻すと色がクリップしてしまうことがある。よって、YCbCr色空間を用いる場合は、RGBの定義閾をオーバーしないように、検出するようにすればよい。   On the other hand, a color space that is neither RGB nor HSV, for example, the YCbCr color space, exceeds the RGB definition threshold in a high-saturation region, and the color may be clipped if it is returned to the RGB space after correction. Therefore, when the YCbCr color space is used, detection may be performed so as not to exceed the RGB definition threshold.

以上のように第2の実施の形態によれば、画像解析部7は、フレーム単位またはフィールド単位でメモリに記録した画像データ(H、S、V)から所定の彩度領域内で、かつ、所定の明度領域内の色相データ101を検出し、色相データのヒストグラムを作成する。例えば、明度領域が50から255であり、かつ、彩度領域内が50から255である。そして、その分布から予め定めた色領域と色領域外との境界付近の分布量を検出し、境界付近の分布量が小さくなるようにオフセット値を算出し、レジスタ24、レジスタ25、レジスタ26にオフセット値701(ΔX1、ΔX2、ΔX3)を設定する。この構成により、色補正によって境界付近に発生しやすい急激な色の変化を抑えることができる。   As described above, according to the second embodiment, the image analysis unit 7 is within a predetermined saturation region from the image data (H, S, V) recorded in the memory in units of frames or fields, and Hue data 101 in a predetermined brightness area is detected, and a histogram of the hue data is created. For example, the lightness region is 50 to 255, and the saturation region is 50 to 255. Then, a distribution amount in the vicinity of the boundary between the predetermined color region and the outside of the color region is detected from the distribution, an offset value is calculated so that the distribution amount in the vicinity of the boundary becomes small, and the register 24, the register 25, and the register 26 are stored. Offset values 701 (ΔX1, ΔX2, ΔX3) are set. With this configuration, it is possible to suppress a rapid color change that is likely to occur near the boundary due to color correction.

また、色補正装置1または色補正装置10をCRT、プラズマディスプレイパネル、液晶パネルなどの表示部を備えるデジタルテレビに組み込んでもよい。デジタルテレビでは、通信あるいは放送された画像データを受信するデータ受信部と、受信された画像データの色座標値を色補正装置1または色補正装置10で移動し、移動された色座標値の画像データを表示部で表示する。   Further, the color correction device 1 or the color correction device 10 may be incorporated in a digital television including a display unit such as a CRT, a plasma display panel, or a liquid crystal panel. In digital television, a data receiving unit that receives image data transmitted or broadcasted, and the color coordinate value of the received image data are moved by the color correction device 1 or the color correction device 10, and the image of the moved color coordinate value is obtained. Display the data on the display.

これにより、予め定めた色領域と色領域以外の境界付近の急激な色の変化を抑え、人間にとってより好ましい色補正を実現できる。また、色補正装置10のデジタルテレビへの組み込みによって、画像解析部7は、外部より設定される色温度に基づいてオフセット値701を変更し、色座標値を移動させる目標値を変更する。これにより、より好ましい色再現が実現できる。   As a result, a rapid color change near a predetermined color region and a boundary other than the color region can be suppressed, and color correction more preferable for human beings can be realized. Further, by incorporating the color correction device 10 into the digital television, the image analysis unit 7 changes the offset value 701 based on the color temperature set from the outside, and changes the target value for moving the color coordinate value. Thereby, more preferable color reproduction can be realized.

また、デジタルテレビに代えて、携帯端末、情報処理装置、デジタルスチルカメラなどの画像表示装置、プリンタなどの画像出力装置に本発明の色補正装置1または色補正装置10を組み込み、色補正しても同様により好ましい色再現が実現できる。   Further, the color correction device 1 or the color correction device 10 of the present invention is incorporated in an image output device such as a portable terminal, an information processing device, a digital still camera, or a printer instead of a digital television, and color correction is performed. Similarly, more preferable color reproduction can be realized.

なお、上述した色補正装置1、色補正装置10の一連の処理は、集積回路などのハードウェアにより実行させてもよいし、CPU、DSPなどによるソフトウェアにより実行してもよい。ソフトウェアにより実行する場合、そのソフトウェアを実行させる装置は、例えば、図13に示されるようなコンピュータにより構成される。   The series of processes of the color correction device 1 and the color correction device 10 described above may be executed by hardware such as an integrated circuit, or may be executed by software such as a CPU or DSP. When executed by software, an apparatus that executes the software is configured by a computer as shown in FIG. 13, for example.

図13において、CPU81はROM82に記憶されているプログラム、または、記録部86からRAM83にロードされたプログラムに従って各種の処理を実行する。RAM83には、またCPU81が各種の処理を実行する上において必要なデータなどが適宜記憶される。   In FIG. 13, the CPU 81 executes various processes according to a program stored in the ROM 82 or a program loaded from the recording unit 86 to the RAM 83. The RAM 83 also appropriately stores data necessary for the CPU 81 to execute various processes.

CPU81、ROM82、およびRAM83はバス91を介して相互に接続されている。このバス91には、キーボード、マウスなどの入力部84、CRT、プラズマディスプレイパネル、液晶パネルなどのディスプレイよりなる出力部85、ハードディスクなどより構成される記憶部86、モデム、ターミナル・アダプタなどにより構成される通信部87が接続されている。通信部87は、ネットワークを介して通信処理を行う。   The CPU 81, ROM 82, and RAM 83 are connected to each other via a bus 91. The bus 91 includes an input unit 84 such as a keyboard and a mouse, an output unit 85 including a display such as a CRT, a plasma display panel, and a liquid crystal panel, a storage unit 86 including a hard disk, a modem, a terminal adapter, and the like. The communication unit 87 to be connected is connected. The communication unit 87 performs communication processing via a network.

また、通信部87に放送用画像データの受信部を備え、通信または放送された符号化画像データを受信部で復号化して、色補正装置1または色補正装置10が処理できる画像データに変換してもよい。これにより、入力した画像データをCPU81で色補正装置1、もしくは、色補正装置10の処理ステップを実行し、出力部85で表示することで、デジタルテレビが実現できる。   Also, the communication unit 87 includes a broadcast image data reception unit, and the encoded image data communicated or broadcast is decoded by the reception unit and converted into image data that can be processed by the color correction device 1 or the color correction device 10. May be. As a result, the input image data is displayed on the output unit 85 by executing the processing steps of the color correction device 1 or the color correction device 10 with the CPU 81 and realizing the digital television.

ここで、色補正装置1の処理ステップとは、色座標値に対応して予め設定した座標移動量に基づいて、入力した画像データの色座標値を移動させるための第1の座標移動量を算出する第1座標移動量算出ステップと、予め定められた色領域から色領域外に向けて減少する重み関数に基づいて、色座標値に応じて色重みを算出する色重み算出ステップと、第1の座標移動量に色重みを乗じて第2の座標移動量を算出する第2座標移動量算出ステップと、第2の座標移動量に基づいて色座標値を移動させる座標移動ステップとを実行する。   Here, the processing step of the color correction apparatus 1 refers to the first coordinate movement amount for moving the color coordinate value of the input image data based on the coordinate movement amount set in advance corresponding to the color coordinate value. A first coordinate movement amount calculating step for calculating, a color weight calculating step for calculating a color weight according to a color coordinate value based on a weight function that decreases from a predetermined color region toward the outside of the color region, A second coordinate movement amount calculation step of calculating a second coordinate movement amount by multiplying the coordinate movement amount of 1 by a color weight, and a coordinate movement step of moving a color coordinate value based on the second coordinate movement amount To do.

また、同様に、色補正装置10の処理ステップとは、色補正装置1の実行ステップに、更に、画像データをフレーム単位、またはフィールド単位で画像メモリに記憶するステップと、画像メモリに記憶された画像データから所定の条件の色成分を検出する色成分検出ステップと、検出した色成分のうち、色相成分のヒストグラムを作成し、ヒストグラムの分布に基づいてオフセット値を算出するオフセット値算出ステップと、算出されたオフセット値を記憶部に設定する設定ステップとを実行すればよい。   Similarly, the processing steps of the color correction device 10 are the execution step of the color correction device 1, the step of storing image data in the image memory in units of frames or fields, and the step of storing in the image memory. A color component detection step of detecting a color component of a predetermined condition from the image data; an offset value calculation step of creating a histogram of a hue component among the detected color components and calculating an offset value based on the distribution of the histogram; A setting step of setting the calculated offset value in the storage unit may be executed.

以上の処理ステップは、ROM82、記録部86に格納されたプログラムにより、逐次CPU81で実行される。ここで、オフセット値の記憶などはRAM83を用いるようにすればよい。   The above processing steps are sequentially executed by the CPU 81 by programs stored in the ROM 82 and the recording unit 86. Here, the RAM 83 may be used for storing the offset value.

また、バス91にはドライブ88が接続され、磁気ディスク、光磁気ディスク、光ディスクなどのディスク89または半導体メモリ90などが適宜接続され、それらから読み出されたコンピュータプログラムが、必要に応じて記録部86にインストールされる。   Also, a drive 88 is connected to the bus 91, and a disk 89 such as a magnetic disk, a magneto-optical disk, an optical disk, or a semiconductor memory 90 is appropriately connected, and a computer program read therefrom is recorded as necessary. 86.

なお、一連の処理をソフトウェアにより実行させる場合には、そのソフトウェアを構成するプログラムは、予めコンピュータに専用のハードウェアで組み込んでもよい。   When a series of processing is executed by software, a program constituting the software may be incorporated in advance in a computer with dedicated hardware.

また、各種プログラムをコンピュータにインストールして各種の機能を実行してもよい。例えば、汎用のパーソナルコンピュータなどは、各種プログラムがネットワークを経由してインストールされる。または、各種プログラムが記録媒体により提供され、パーソナルコンピュータにインストールされる。   Various programs may be installed in a computer to execute various functions. For example, in a general-purpose personal computer, various programs are installed via a network. Alternatively, various programs are provided by a recording medium and installed in a personal computer.

この記録媒体として、図13に示すように、装置本体とは別に、プログラムが記録されているディスク89または半導体メモリ90などを用いてもよいし、装置本体のROM82、記録部86に予め組み込んで提供してもよい。   As this recording medium, as shown in FIG. 13, a disc 89 or a semiconductor memory 90 in which a program is recorded may be used separately from the apparatus main body, or it is incorporated in advance in the ROM 82 and recording unit 86 of the apparatus main body. May be provided.

また、本発明の実施の形態において、色空間として、HSV色空間を用いたが、RGB、CMYK、CIE−LAB、YCbCrなどの色空間であってもよい。例えば、CIE−LAB色空間の場合、色空間上の距離と人間が感じる色の差異の度合いが比例するため、色重み関数、移動量などの決定が容易となる。   In the embodiment of the present invention, the HSV color space is used as the color space. However, a color space such as RGB, CMYK, CIE-LAB, YCbCr may be used. For example, in the case of the CIE-LAB color space, since the distance in the color space is proportional to the degree of color difference perceived by humans, it is easy to determine the color weight function, the amount of movement, and the like.

また、HSV色空間は六角錐モデルを用いたが、双六角錐モデルなどの他の近似モデルを用いてもよい。   The HSV color space uses a hexagonal pyramid model, but other approximate models such as a bihexagonal pyramid model may be used.

本発明に係る色補正装置および画像表示装置によれば、急激な色の変化を抑え、画像の色をより好ましく補正することができ、カラーテレビジョン装置、携帯端末、情報処理装置、デジタルスチルカメラなどの画像表示装置、プリンタなどの画像出力装置に利用することができる。   According to the color correction device and the image display device of the present invention, it is possible to suppress an abrupt color change and more preferably correct the color of an image. A color television device, a portable terminal, an information processing device, a digital still camera It can be used for image display devices such as printers and image output devices such as printers.

本発明の第1の実施の形態における色補正装置のブロック図1 is a block diagram of a color correction apparatus according to a first embodiment of the present invention. 同実施の形態における色領域判定部のブロック図Block diagram of the color area determination unit in the embodiment 同実施の形態における色選択部の説明図Explanatory drawing of the color selection part in the embodiment 同実施の形態における色重み算出部と第1座標移動量算出部と第2座標移動量算出部のブロック図Block diagram of a color weight calculation unit, a first coordinate movement amount calculation unit, and a second coordinate movement amount calculation unit in the same embodiment (a)同実施の形態における重みKh(色相−肌色)の例示図(b)同実施の形態における重みKs(彩度−肌色)の例示図(c)同実施の形態における重みKv(明度−肌色)の例示図(d)同実施の形態における重みKh(色相−空色)の例示図(e)同実施の形態における重みKs(彩度−空色)の例示図(f)同実施の形態における重みKv(明度−空色)の例示図(g)同実施の形態における重みKh(色相−緑色)の例示図(h)同実施の形態における重みKs(彩度−緑色)の例示図(i)同実施の形態における重みKv(明度−緑色)の例示図(A) Illustration of weight Kh (hue−skin color) in the embodiment (b) Illustration of weight Ks (saturation—skin color) in the embodiment (c) Weight Kv (brightness− in the embodiment) (D) Illustration of weight Kh (hue-sky blue) in the same embodiment (e) Illustration of weight Ks (saturation-sky blue) in the same embodiment (f) In the same embodiment Illustration of weight Kv (lightness-sky blue) (g) Illustration of weight Kh (hue-green) in the embodiment (h) Illustration of weight Ks (saturation-green) in the embodiment (i) Illustration of weight Kv (lightness-green) in the same embodiment 同実施の形態における色相重み算出部の説明図Explanatory drawing of the hue weight calculation unit in the same embodiment (a)同実施の形態における移動量δh(色相−肌色)の例示図(b)同実施の形態における移動量δs(彩度−肌色)の例示図(c)同実施の形態における移動量δv(明度−肌色)の例示図(d)同実施の形態における移動量δh(色相−空色)の例示図(e)同実施の形態における移動量δs(彩度−空色)の例示図(f)同実施の形態における移動量δv(明度−空色)の例示図(g)同実施の形態における移動量δh(色相−緑色)の例示図(h)同実施の形態における移動量δs(彩度−緑色)の例示図(i)同実施の形態における移動量δv(明度−緑色)の例示図(A) Illustration of movement amount δh (hue−skin color) in the embodiment (b) Illustration of movement amount δs (saturation—skin color) in the embodiment (c) Movement amount δv in the embodiment (D) Illustrated diagram of movement amount δh (hue-sky blue) in the embodiment (e) Illustrated diagram of displacement amount δs (saturation-sky blue) in the embodiment (f) Illustration of movement amount δv (brightness-sky blue) in the same embodiment (g) Illustration of movement amount δh (hue-green) in the same embodiment (h) Movement amount δs (saturation-in the same embodiment) (I) Illustrative diagram of movement amount δv (lightness-green) in the same embodiment 本発明の第2の実施の形態における色補正装置のブロック図The block diagram of the color correction apparatus in the 2nd Embodiment of this invention 同実施の形態における色領域判定部のブロック図Block diagram of the color area determination unit in the embodiment 同実施の形態における位相変更部の説明図Explanatory drawing of the phase change part in the same embodiment 同実施の形態におけるRGB色空間の説明図Illustration of RGB color space in the embodiment 同実施の形態におけるHSV色空間の説明図Explanatory drawing of HSV color space in the same embodiment コンピュータの構成を示すブロック図Block diagram showing the configuration of the computer

符号の説明Explanation of symbols

1,10 色補正装置
2 色領域判定部
3 色重み算出部
4 第1座標移動量算出部
5 色空間変換部
6 色空間逆変換部
7 画像解析部
8 第2座標移動量算出部
9 座標移動部
21 色選択部
22 位相変更部
24,25,26 レジスタ
31 色相重み算出部
32 彩度重み算出部
33 明度重み算出部
41 色相移動量算出部
42 彩度移動量算出部
43 明度移動量算出部
DESCRIPTION OF SYMBOLS 1,10 Color correction apparatus 2 Color area | region determination part 3 Color weight calculation part 4 1st coordinate movement amount calculation part 5 Color space conversion part 6 Color space reverse conversion part 7 Image analysis part 8 2nd coordinate movement amount calculation part 9 Coordinate movement Unit 21 Color selection unit 22 Phase change unit 24, 25, 26 Register 31 Hue weight calculation unit 32 Saturation weight calculation unit 33 Lightness weight calculation unit 41 Hue movement amount calculation unit 42 Saturation movement amount calculation unit 43 Lightness movement amount calculation unit

Claims (9)

色座標値に対応して予め設定した座標移動量に基づいて、入力した画像データの色座標値を移動させるための第1の座標移動量を算出する第1座標移動量算出部と、
予め定められた色領域から色領域外に向けて減少する重み関数に基づいて、前記色座標値に応じて色重みを算出する色重み算出部と、
前記第1の座標移動量に前記色重みを乗じて第2の座標移動量を算出する第2座標移動量算出部と、
前記第2の座標移動量に基づいて前記色座標値を移動させる座標移動部とを備えた色補正装置。
A first coordinate movement amount calculation unit for calculating a first coordinate movement amount for moving the color coordinate value of the input image data based on a coordinate movement amount set in advance corresponding to the color coordinate value;
A color weight calculation unit that calculates a color weight according to the color coordinate value based on a weight function that decreases from a predetermined color region toward the outside of the color region;
A second coordinate movement amount calculation unit for calculating a second coordinate movement amount by multiplying the first coordinate movement amount by the color weight;
A color correction apparatus comprising: a coordinate moving unit that moves the color coordinate value based on the second coordinate movement amount.
色領域が複数あり、前記色重み算出部は、前記色領域毎に前記色重みを算出することを特徴とする請求項1記載の色補正装置。 The color correction apparatus according to claim 1, wherein there are a plurality of color areas, and the color weight calculation unit calculates the color weight for each color area. 前記色座標値は色相値、彩度値、明度値より指定されることを特徴とする請求項1または請求項2記載の色補正装置。 The color correction apparatus according to claim 1, wherein the color coordinate value is specified from a hue value, a saturation value, and a brightness value. 前記座標移動部は、前記色座標値と前記第2の座標移動量を加算することにより、前記色座標値を移動させることを特徴とする請求項3記載の色補正装置。 The color correction apparatus according to claim 3, wherein the coordinate movement unit moves the color coordinate value by adding the color coordinate value and the second coordinate movement amount. 入力した画像データの色相値を変更するオフセット値を設定可能とした記憶部を備えたことを特徴とする請求項3記載の色補正装置。 4. The color correction apparatus according to claim 3, further comprising a storage unit that can set an offset value for changing a hue value of input image data. 前記画像データをフレーム単位またはフィールド単位で記憶する画像メモリ
と、
前記画像メモリに記憶された画像データから所定の条件の色成分を検出する色成分検出部と、
検出した前記色成分のうち、色相成分のヒストグラムを作成し、前記ヒストグラムの分布に基づいて前記オフセット値を算出するオフセット算出部と、
前記オフセット値を前記記憶部に設定する設定部とを備えたことを特徴とする請求項5記載の色補正装置。
An image memory for storing the image data in frame units or field units;
A color component detection unit for detecting a color component of a predetermined condition from the image data stored in the image memory;
Among the detected color components, an offset calculation unit that creates a histogram of hue components and calculates the offset value based on the distribution of the histogram;
The color correction apparatus according to claim 5, further comprising: a setting unit that sets the offset value in the storage unit.
前記所定の条件の色成分とは、所定の彩度領域内で、かつ所定の明度領域内にある色成分であることを特徴とする請求項6記載の色補正装置。 The color correction apparatus according to claim 6, wherein the color component of the predetermined condition is a color component in a predetermined saturation region and in a predetermined lightness region. 設定された色温度に基づいて前記オフセット値を決定することを特徴とする請求項5記載の色補正装置。 6. The color correction apparatus according to claim 5, wherein the offset value is determined based on a set color temperature. 通信または放送された画像データを受信するデータ受信部と、
受信された前記画像データの色座標値を移動させる請求項1記載の色補正装置と、
前記色補正装置により移動された前記色座標値の画像データを表示する表示部とを備えた画像表示装置。
A data receiving unit for receiving image data transmitted or broadcast;
The color correction device according to claim 1, wherein the color coordinate value of the received image data is moved.
An image display device comprising: a display unit that displays image data of the color coordinate value moved by the color correction device.
JP2005228191A 2005-08-05 2005-08-05 Color correction apparatus and image display device Pending JP2007042033A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005228191A JP2007042033A (en) 2005-08-05 2005-08-05 Color correction apparatus and image display device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005228191A JP2007042033A (en) 2005-08-05 2005-08-05 Color correction apparatus and image display device

Publications (1)

Publication Number Publication Date
JP2007042033A true JP2007042033A (en) 2007-02-15

Family

ID=37799924

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005228191A Pending JP2007042033A (en) 2005-08-05 2005-08-05 Color correction apparatus and image display device

Country Status (1)

Country Link
JP (1) JP2007042033A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009170966A (en) * 2008-01-10 2009-07-30 Canon Inc Image processing apparatus, image processing method, and program
JP2009225424A (en) * 2008-02-18 2009-10-01 Fuji Xerox Co Ltd Color correction coefficient generator and program
JP2009296113A (en) * 2008-06-03 2009-12-17 Mitsubishi Electric Corp Image display device
JP2009302922A (en) * 2008-06-13 2009-12-24 Seiko Epson Corp Image processor, integrated circuit device, and electronic appliance
JP2010021990A (en) * 2008-06-13 2010-01-28 Seiko Epson Corp Image processor, integrated circuit device, and electronic apparatus
JP2014102511A (en) * 2007-08-13 2014-06-05 Samsung Electronics Co Ltd Rgb-to-rgbw color separation method, system, and conversion system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014102511A (en) * 2007-08-13 2014-06-05 Samsung Electronics Co Ltd Rgb-to-rgbw color separation method, system, and conversion system
JP2009170966A (en) * 2008-01-10 2009-07-30 Canon Inc Image processing apparatus, image processing method, and program
JP2009225424A (en) * 2008-02-18 2009-10-01 Fuji Xerox Co Ltd Color correction coefficient generator and program
JP4666069B2 (en) * 2008-02-18 2011-04-06 富士ゼロックス株式会社 Color correction coefficient generating apparatus and program
JP2009296113A (en) * 2008-06-03 2009-12-17 Mitsubishi Electric Corp Image display device
JP2009302922A (en) * 2008-06-13 2009-12-24 Seiko Epson Corp Image processor, integrated circuit device, and electronic appliance
JP2010021990A (en) * 2008-06-13 2010-01-28 Seiko Epson Corp Image processor, integrated circuit device, and electronic apparatus
US8300932B2 (en) 2008-06-13 2012-10-30 Seiko Epson Corporation Image processor, integrated circuit device, and electronic apparatus

Similar Documents

Publication Publication Date Title
JP3880553B2 (en) Image processing method and apparatus
US8600154B2 (en) Image processing apparatus and image processing method
JP4870617B2 (en) Image data automatic mapping method and image processing device
JP4375781B2 (en) Image processing apparatus, image processing method, program, and recording medium
JP4117284B2 (en) Color space conversion method, color image color adjustment device, color adjustment method, and computer-readable recording medium recording the program
JP4870618B2 (en) Image data automatic mapping method and image processing device
US8290259B2 (en) Device adaptively switching color emphasis processing for image
JP5107355B2 (en) Method, apparatus, and program for gamut mapping to reproduction gamut narrower than input gamut
KR101927968B1 (en) METHOD AND DEVICE FOR DISPLAYING IMAGE BASED ON METADATA, AND RECORDING MEDIUM THEREFOR
JP2006033382A (en) Image processing apparatus and method thereof
JP2007042033A (en) Color correction apparatus and image display device
JP2000123164A (en) Image processor and its method
JP2740409B2 (en) Sharpness processing device
JP2000207548A (en) Method for controlling tone scale of digital image
JP3673092B2 (en) Image quality adjusting apparatus, image quality adjusting method, and recording medium recording image adjusting program
JP2008072604A (en) Image processing system, apparatus, medium, and program
KR20160001897A (en) Image Processing Method and Apparatus for Integrated Multi-scale Retinex Based on CIELAB Color Space for Preserving Color
JP4708866B2 (en) Lookup table creation device and method, and lookup table creation program
JP2004080100A (en) Method and apparatus for creating color conversion table, method and apparatus for converting colors, and imaging apparatus
US20140327695A1 (en) Image processing apparatus and control method therefor
JP2006203431A (en) Image processing apparatus and method of processing image
JP5069599B2 (en) Video conversion apparatus, video conversion method, and video conversion program
JP2000123165A (en) Image processor and its method
JP4100848B2 (en) Image processing method and image processing apparatus
JP7028062B2 (en) Image correction program, image correction method, and image correction device