JP2009268011A - Image processing apparatus - Google Patents
Image processing apparatus Download PDFInfo
- Publication number
- JP2009268011A JP2009268011A JP2008118258A JP2008118258A JP2009268011A JP 2009268011 A JP2009268011 A JP 2009268011A JP 2008118258 A JP2008118258 A JP 2008118258A JP 2008118258 A JP2008118258 A JP 2008118258A JP 2009268011 A JP2009268011 A JP 2009268011A
- Authority
- JP
- Japan
- Prior art keywords
- hue
- pixel
- correction amount
- calculation unit
- correction
- 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
Links
Images
Landscapes
- Color Image Communication Systems (AREA)
- Image Processing (AREA)
- Processing Of Color Television Signals (AREA)
- Facsimile Image Signal Circuits (AREA)
Abstract
Description
本発明は、プラズマディスプレイ又は液晶などのカラー画像表示装置に関するものであり、着目画素と近傍領域内の画素との色相差と、近傍領域よりも大きな距離を持つ周辺領域内の画素との色相差の2つの情報から色相補正量を求め、人間の視覚特性に合わせたコントラスト調整を実現させるための画像処理装置に関するものである。 The present invention relates to a color image display device such as a plasma display or a liquid crystal, and a hue difference between a pixel of interest and a pixel in a neighboring area and a hue difference between a pixel in a peripheral area having a larger distance than the neighboring area. The present invention relates to an image processing apparatus for obtaining a hue correction amount from the two pieces of information and realizing contrast adjustment in accordance with human visual characteristics.
高齢者などの年齢経過や個人差による視覚機能の低下を補償するために、色相の変化に対してトランジェント部分の強調処理を行う。また、カラー画像の隣接するピクセル間のカラーバランスから人間の視覚特性に合致するよう色再現範囲を変換する技術がある(例えば、特許文献1及び特許文献2)。
上記従来の手法によれば、色相変化のみに着目した強調処理であるので、例えば様々な色相を含んだテクスチャを多く含む画像などでは全てのピクセルにおいて色相が強調処理されてしまい、処理画像が原画像の色再現性を大きく損なう可能性がある。
本手法では上記問題点を解決するために、着目画素と隣接する近傍領域内の画素との情報に加えて、前記の近傍領域内画素より距離の大きい周辺領域内の画素との情報も考慮することで、シーンによって強調処理を行わない等、適切な強調処理を行うことを可能とすることを目的とする。
According to the above-described conventional method, since the emphasis process focuses only on the hue change, for example, in an image including many textures including various hues, the hue is emphasized in all pixels, and the processed image is the original. There is a possibility that the color reproducibility of the image is greatly impaired.
In this method, in order to solve the above-mentioned problem, in addition to information on the pixel of interest and pixels in the neighboring area, information on pixels in the peripheral area having a larger distance than the pixels in the neighboring area is also considered. Accordingly, an object is to enable appropriate enhancement processing, such as not performing enhancement processing depending on the scene.
第1の発明は、カラー画像において入力データから得られる色相値を補正する画像補正装置であって、入力信号のRGB信号またはYUV信号から色相空間へ変換する第1の関数により変換する色相空間変換部と、前記色相空間変換部により変換された色相値において、着目画素と近傍画素との色相角差と色相変化の向きを表す第2の関数を算出する近傍画素色相角計算部と、前記色相空間変換部により変換された色相値において、着目画素と前記近傍画素とは異なる周辺画素との色相角差と色相変化の向きを表す第3の関数を算出する周辺画素色相角計算部と、前記第2、第3の関数から着目画素に対する色相補正量を算出する第4の関数を計算する色相補正量計算部と、前記色相補正量計算部により計算された第4の関数で求められた補正量を元の色相値と合成する第5の関数を有する色相補正部とを備えることを特徴とする。
第2の発明は、前記近傍画素色相角計算部及び周辺画素色相角計算部では、前記第2、第3の関数において、着目画素と対象領域内における任意の数の画素の色相角をそれぞれ比較し、色相差と色相変化の方向を考慮した色相変化量を算出し、着目画素と対象領域内の画素に対する色変化を求めることを特徴とする。
第3の発明は、前記第4の関数において、m<nが成り立つ、着目画素から距離mを持つ近傍画素との色相変化量をHmとし、着目画素から距離nを持つ周辺画素との色相変化量をHnとすると、HmとHnの値から着目画素に対する色相補正量を算出することを特徴とする。
第4の発明は、前記色相補正量算出において、Hm、Hnの値がある程度小さい場合に、着目画素と周辺画素との色相値に基づいて色相補正量を算出することを特徴とする。
第5の発明は、前記色相補正量算出において、Hm、Hnの値が大きい、または着目画素と周辺画素との色相が近い程、色相補正量を小さくすることを特徴とする。
第6の発明は、前記色相補正量計算について、補正する割合が強い程、着目画素と周辺領域との色相角の相対距離を大きくする補正量を算出することを特徴とする。
A first invention is an image correction apparatus for correcting a hue value obtained from input data in a color image, and is a hue space conversion that is converted by a first function that converts an RGB signal or YUV signal of an input signal into a hue space. And a neighboring pixel hue angle calculating unit that calculates a second function representing a hue angle difference between the pixel of interest and a neighboring pixel and a direction of a hue change in the hue value converted by the hue space converting unit, and the hue A peripheral pixel hue angle calculation unit that calculates a third function representing a hue angle difference and a direction of hue change between a pixel of interest and a neighboring pixel different from the neighboring pixel in the hue value converted by the space conversion unit; A hue correction amount calculation unit that calculates a fourth function for calculating a hue correction amount for the pixel of interest from the second and third functions, and a complement obtained by the fourth function calculated by the hue correction amount calculation unit. Characterized in that it comprises a hue correction portion having a fifth function for synthesizing the quantity and the original hue value.
In the second invention, the neighboring pixel hue angle calculation unit and the neighboring pixel hue angle calculation unit compare hue angles of an arbitrary number of pixels in the target region and the target region in the second and third functions, respectively. Then, the hue change amount is calculated in consideration of the hue difference and the direction of the hue change, and the color change with respect to the pixel of interest and the pixel in the target region is obtained.
In a fourth aspect of the present invention, in the fourth function, the hue change amount with a neighboring pixel having a distance m from the target pixel, where m <n, is Hm, and the hue change with a peripheral pixel having the distance n from the target pixel When the amount is Hn, the hue correction amount for the target pixel is calculated from the values of Hm and Hn.
According to a fourth aspect of the present invention, in the hue correction amount calculation, when the values of Hm and Hn are small to some extent, the hue correction amount is calculated based on the hue values of the pixel of interest and the surrounding pixels.
In a fifth aspect of the invention, the hue correction amount is decreased as the values of Hm and Hn are larger or the hues of the pixel of interest and the surrounding pixels are closer in the calculation of the hue correction amount.
The sixth invention is characterized in that the hue correction amount calculation calculates a correction amount that increases the relative distance of the hue angle between the pixel of interest and the peripheral region as the correction ratio increases.
以上のように、本発明によれば、画像内に一定のテクスチャが存在し、着目画素に隣接する近傍領域内、または周辺領域内での画素の色相変化が激しい場合には色相補正を施さず、近傍または周辺領域においてそれぞれ色相変化が少なく、近傍領域と周辺領域の色相差がある程度の距離を持つ場合にのみに着目画素に対して色相補性を施すことができる。 As described above, according to the present invention, when a certain texture exists in an image and the hue change of a pixel in a neighboring region adjacent to the target pixel or a peripheral region is severe, hue correction is not performed. Color complementarity can be applied to the pixel of interest only when there is little change in hue in the vicinity or the peripheral area and the hue difference between the vicinity area and the peripheral area has a certain distance.
本発明の具体的な例について図を用いて説明する。図1は入力カラー画像に対してシーンに適応した色相調整を行う画像補正装置のブロック図である。この画像補正装置は、図1に示すように、カラー映像信号であるRGB信号またはYUV信号の入力1から色相値に変換する色相空間変換部2、色相空間変換部により変換された色相値から着目画素に対する近傍画素との色相変化量を算出する近傍画素色相角計算部3と、着目画素に対する周辺画素との色相変化量を算出する周辺画素色相角計算部4を有する。
さらに、近傍画素色相角計算部3、周辺画素色相角計算部4で算出された色相角と領域内の色相変化量情報から着目画素に対しての色相補正量を算出する色相補正量計算部5、色相補正量計算部5で算出された補正量と色相空間変換部2を通った補正前データと合成する色相補正部6で構成されている。
近傍画素色相角計算部3は、着目画素の色相値から着目画素の近傍に配置された近傍画素の色相角を差分し、近傍領域内の画素との色相変化量を算出する。図2は着目画素と着目画素の近傍に配置された近傍領域内画素の関係を示す図である。
例として、着目画素に対して右下の画素に注目した場合、着目画素をX(i,j)、着目画素からの距離mを持つ近傍画素をX(i+m,j+m)とすると、2つの画素の色相角の差分をHm1とした場合、次式で表される。これを対象とするk箇所の近傍画素に対してそれぞれHm1からHmkまで求める。
Specific examples of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram of an image correction apparatus that performs hue adjustment adapted to a scene on an input color image. As shown in FIG. 1, this image correction apparatus focuses on a hue space conversion unit 2 that converts an input 1 of an RGB signal or a YUV signal, which is a color video signal, into a hue value, and a hue value converted by the hue space conversion unit. It has a neighboring pixel hue angle calculation unit 3 that calculates a hue change amount with a neighboring pixel with respect to a pixel, and a peripheral pixel hue
Further, a hue correction amount calculation unit 5 that calculates a hue correction amount for the pixel of interest from the hue angle calculated by the neighboring pixel hue angle calculation unit 3 and the peripheral pixel hue
The neighboring pixel hue angle calculation unit 3 calculates a hue change amount with a pixel in the neighboring region by subtracting the hue angle of the neighboring pixel arranged in the vicinity of the pixel of interest from the hue value of the pixel of interest. FIG. 2 is a diagram showing the relationship between the pixel of interest and the pixels in the vicinity area arranged in the vicinity of the pixel of interest.
As an example, when attention is paid to the lower right pixel with respect to the target pixel, if the target pixel is X (i, j) and a neighboring pixel having a distance m from the target pixel is X (i + m, j + m), two pixels When the difference in hue angle is Hm1, it is expressed by the following equation. Hm1 to Hmk are obtained for k neighboring pixels for this.
次に、前記で算出されたHm1からHmkの色相差分値に対して次式を適応し、各近傍画素同士の色相変化量Hmを算出する。このHmが小さいほど近傍領域内での色相変化が少ないとする。 Next, the following equation is applied to the hue difference values from Hm1 to Hmk calculated above to calculate the hue change amount Hm between the neighboring pixels. It is assumed that the smaller the Hm, the smaller the hue change in the vicinity region.
同様に、図3に示すように、m<nである距離nを持つ周辺画素に対しても次式にて色相角の差分と、周辺領域内画素の色相変化量Hnを求める。 Similarly, as shown in FIG. 3, the difference in hue angle and the hue change amount Hn of the pixels in the peripheral area are also obtained for the peripheral pixels having the distance n where m <n.
Hm、Hnの値が小さいほど、該当領域では色相変化が小さいと判断できるため、図4に示すように、近傍画素の色相値の平均値を色相角−180°〜180°で正規化した値をHam、周辺画素の色相値の平均を同様に正規化した値をHanとし、HamとHanの色相角差をHangとすると、着目画素に対する色相補正量を次式で定義することで色相補正量ΔHを算出する。 Since it can be determined that the hue change is small in the corresponding region as the values of Hm and Hn are small, as shown in FIG. 4, the average value of the hue values of neighboring pixels is normalized by a hue angle of −180 ° to 180 °. Is defined as the following equation, and the hue correction amount for the pixel of interest is defined by the following equation, where Han is the normalized value of the hue value of the surrounding pixels in the same manner, and Han is the hue angle difference between Ham and Han. ΔH is calculated.
図1の色相補正部6にて補正前の色相値XにΔHを加算したものを補正後の色相値X’として出力データとする。例として、着目画素Xの色相角を120、Ham=120、Han=20、Hm=0.1、Hn=0.3、Hang=100とした場合、下記の補正量が算出される。
ΔH=(1 − 0.1) * (1 − 0.3) * (180 - 100) * (100 / 180) ≒28
得られた補正量ΔH=28を、着目画素Xの色相値120に対して加算し着目画素の色相値を148とする。この補正により、周辺画素に対して、着目画素の色相角の相対距離を広げる。
このような処理により、本発明においては、領域内の色相変化が大きい場合はテクスチャが多いと判断し着目画素に対して色相補正を弱め、色相変化が少なく近傍領域と周辺領域との色相差が大きい場合は、周辺画素に対して色相角の相対距離が広がるように色相補正を行うことが可能である。
A value obtained by adding ΔH to the hue value X before correction in the hue correction unit 6 in FIG. As an example, when the hue angle of the pixel of interest X is 120, Ham = 120, Han = 20, Hm = 0.1, Hn = 0.3, Hang = 100, the following correction amount is calculated.
ΔH = (1−0.1) * (1−0.3) * (180−100) * (100/180) ≈28
The obtained correction amount ΔH = 28 is added to the hue value 120 of the target pixel X to set the hue value of the target pixel to 148. By this correction, the relative distance of the hue angle of the pixel of interest is expanded with respect to the surrounding pixels.
By such processing, in the present invention, if the hue change in the area is large, it is determined that there are many textures, and the hue correction is weakened for the pixel of interest, and there is little hue change and the hue difference between the neighboring area and the surrounding area is small. If it is larger, the hue correction can be performed so that the relative distance of the hue angle with respect to the surrounding pixels is widened.
本発明による画像処理装置では、多くのテクスチャから構成されるような高周波成分の多い画像に対しては画像補正を施さず、ある程度の領域を持ちその領域内にて低周波成分で構成される画像に対してのみ画質補正を施すため、画質補正が有効なシーンに対してのみ補正を施すことができる。また色相に対する補正のため、人間の視覚特性に合わせた補正量の調整が容易となるため、デジタルテレビなどの画質設定メニューなどと連動させた画質補正に有効である。 The image processing apparatus according to the present invention does not perform image correction on an image with a lot of high-frequency components, such as a lot of textures, and has a certain area and is composed of low-frequency components within that area. Since the image quality correction is performed only on the image, the correction can be performed only on the scene for which the image quality correction is effective. Further, since the correction for the hue makes it easy to adjust the correction amount according to the human visual characteristics, it is effective for the image quality correction linked with the image quality setting menu of a digital television or the like.
1 入力データ
2 色相空間変換部
3 周辺画素色相角計算部
4 周辺領域色相角計算部
5 色相補正量計算部
6 色相補正部
7 出力データ
DESCRIPTION OF SYMBOLS 1 Input data 2 Hue space conversion part 3 Peripheral pixel hue
Claims (6)
入力信号のRGB信号またはYUV信号から色相空間へ変換する色相空間変換部と、
前記色相空間変換部により変換された色相値において、着目画素と近傍画素との色相角差と色相変化の向きを算出する近傍画素色相角計算部と、
前記色相空間変換部により変換された色相値において、着目画素と前記近傍画素とは異なる周辺画素との色相角差と色相変化の向きを算出する周辺画素色相角計算部と、
前記近傍画素色相角計算部と周辺画素色相角計算部の算出結果から着目画素に対する色相補正量を計算する色相補正量計算部と、
前記色相補正量計算部により計算された結果から補正量を元の色相値と合成する色相補正部とを備えることを特徴とする画像補正装置。 An image correction apparatus for correcting a hue value obtained from input data in a color image,
A hue space conversion unit for converting an RGB signal or YUV signal of the input signal into a hue space;
In the hue value converted by the hue space conversion unit, a neighboring pixel hue angle calculation unit that calculates a hue angle difference between the target pixel and a neighboring pixel and a direction of hue change;
In the hue value converted by the hue space conversion unit, a peripheral pixel hue angle calculation unit that calculates the hue angle difference and the direction of the hue change between the pixel of interest and the neighboring pixels different from the neighboring pixels;
A hue correction amount calculation unit that calculates a hue correction amount for the pixel of interest from the calculation results of the neighboring pixel hue angle calculation unit and the peripheral pixel hue angle calculation unit;
An image correction apparatus comprising: a hue correction unit that combines a correction amount with an original hue value based on a result calculated by the hue correction amount calculation unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008118258A JP2009268011A (en) | 2008-04-30 | 2008-04-30 | Image processing apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008118258A JP2009268011A (en) | 2008-04-30 | 2008-04-30 | Image processing apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2009268011A true JP2009268011A (en) | 2009-11-12 |
Family
ID=41393247
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008118258A Pending JP2009268011A (en) | 2008-04-30 | 2008-04-30 | Image processing apparatus |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2009268011A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10560673B2 (en) | 2018-06-20 | 2020-02-11 | Samsung Electronics Co., Ltd. | Method and apparatus for recovering image |
-
2008
- 2008-04-30 JP JP2008118258A patent/JP2009268011A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10560673B2 (en) | 2018-06-20 | 2020-02-11 | Samsung Electronics Co., Ltd. | Method and apparatus for recovering image |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6381215B2 (en) | Image processing apparatus, image processing method, display apparatus, display apparatus control method, and program | |
JP4894595B2 (en) | Image processing apparatus and method, and program | |
JP4290193B2 (en) | Image processing device | |
JP4869959B2 (en) | Video signal processing device and video display device | |
CN110378859A (en) | A kind of new high dynamic range images generation method | |
CN101141595A (en) | Image correction method and apparatus | |
JP5392560B2 (en) | Image processing apparatus and image processing method | |
KR20070111389A (en) | Image correction circuit, image correction method, and image display | |
JP4992433B2 (en) | Image processing apparatus, image processing method, program for image processing method, and recording medium recording program for image processing method | |
JP5089783B2 (en) | Image processing apparatus and control method thereof | |
JP2006114005A (en) | Gradation conversion apparatus, program, electronic camera, and method therefor | |
JP2006115444A (en) | Method, device, program for image processing, and electronic camera | |
JP5410378B2 (en) | Video signal correction apparatus and video signal correction program | |
JP2010152518A (en) | Image processor and image processing method | |
CN101790101B (en) | Method and device for adjusting image saturation | |
TW200931947A (en) | Image processing apparatus and image processing method | |
KR101279576B1 (en) | Method for generating panorama image within digital image processing apparatus | |
JP2008033592A (en) | Image processing apparatus, image processing method, and program | |
WO2007097125A1 (en) | Image processing device for correcting image massive feeling, image processing program, image processing method, and electronic camera | |
JP2006114006A (en) | Gradation conversion apparatus, program, electronic camera, and method therefor | |
JP2011120299A (en) | Gradation conversion apparatus, program, electronic camera, and method therefor | |
JP5365881B2 (en) | Image processing apparatus and image processing method | |
JP2009268011A (en) | Image processing apparatus | |
KR101634652B1 (en) | Method and apparatus for intensificating contrast in image | |
JP5111310B2 (en) | Image processing method and image processing apparatus |