JP2009212750A - Image processing apparatus and method - Google Patents

Image processing apparatus and method Download PDF

Info

Publication number
JP2009212750A
JP2009212750A JP2008052938A JP2008052938A JP2009212750A JP 2009212750 A JP2009212750 A JP 2009212750A JP 2008052938 A JP2008052938 A JP 2008052938A JP 2008052938 A JP2008052938 A JP 2008052938A JP 2009212750 A JP2009212750 A JP 2009212750A
Authority
JP
Japan
Prior art keywords
image
conversion table
gamma conversion
images
unit
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
JP2008052938A
Other languages
Japanese (ja)
Inventor
Kenichi Shimoyama
賢一 下山
Masahiro Baba
雅裕 馬場
Takeshi Ito
伊藤  剛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP2008052938A priority Critical patent/JP2009212750A/en
Publication of JP2009212750A publication Critical patent/JP2009212750A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Studio Devices (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processing apparatus and method capable of generating images in which wherever the part of an input image may be, has high visibility and will not be discontinuous. <P>SOLUTION: An area dividing part 101 divides the input image into a plurality of small area images of a prescribed size, a similarity-determining part 102 determines whether the plurality of divided small area images are, respectively similar to one another, on the basis of pixel values of the small area images; a gamma conversion table generating part 104 generates a gamma conversion table, on the basis of a pixel value of an intermediate area image composed of a plurality of small area images determined as being similar to one another; an image converting part 105 generates a conversion intermediate area image. obtained by converting the intermediate area image with the gamma conversion table; and a discontinuity correcting part 106 corrects the pixel value of pixels near a boundary between the conversion intermediate area images adjacent to one another, by using a conversion table weighted by a weighting coefficient, based on the relation of the pixel to the respective conversion intermediate area images. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、画像を補正する画像処理装置および方法に関する。   The present invention relates to an image processing apparatus and method for correcting an image.

近年、デジタルカメラや撮影機能付き携帯電話等の普及により、プロではなくアマチュアの人々も手軽にデジタル画像を撮影できるようになってきた。しかしながら、アマチュアの撮影した画像は、プロの撮影したものよりも撮影環境等に左右されやすく、撮影者の意図した画像が撮影されていない場合が多い。   In recent years, with the widespread use of digital cameras and mobile phones with photographing functions, it has become possible for amateurs, not professionals, to easily photograph digital images. However, images taken by amateurs are more susceptible to the shooting environment and the like than those taken by professionals, and images intended by the photographer are often not taken.

そのような場合に、撮影後に画像を高画質なものに変換する色々な方法が知られているが、例えば画像の階調性を向上させたい場合は、入力画像の信号の階調レベルを変換する技術として、ヒストグラム均等法が知られている。ヒストグラム均等法は、画像の輝度ヒストグラムを均一にするようなレベル変換を施すことで、画像の持つ輝度情報量を効率よく増やすことができる。   In such a case, various methods are known for converting an image to a high-quality image after shooting. For example, to improve the gradation of an image, the gradation level of the signal of the input image is converted. As a technique for performing this, a histogram equalization method is known. The histogram equalization method can efficiently increase the amount of luminance information held by an image by performing level conversion that makes the luminance histogram of the image uniform.

ここで、このようなレベル変換を画像の種類によらずに画面全体に一度に適用すると、例えば画像の左側は撮影者の意図した変換ができているが、画像の右側は雑音がひどく強調されてしまうなど、出力画像が部分によっては劣化してしまう場合があった。   Here, if such level conversion is applied to the entire screen at once regardless of the type of image, for example, the left side of the image can be converted as intended by the photographer, but the right side of the image is heavily emphasized by noise. In some cases, the output image may deteriorate depending on the part.

その解決法のひとつとして、画像のヒストグラムの分布から主要な被写体を探索し、その被写体が一番よく変換されるように変換することによって、出力画像の劣化を抑制する撮像装置が開示されている(特許文献1参照)。   As one of the solutions, an imaging apparatus is disclosed that suppresses degradation of an output image by searching for a main subject from the distribution of the histogram of the image and converting the subject so that it is most converted. (See Patent Document 1).

特開2007−221678号公報JP 2007-221678 A

しかしながら、特許文献1に記載された技術では、主要部分のみの補正を重視するため、他の領域では使用者の望まないレベルに変換されてしまうことがある。例えば、画像中に2つ以上の主要と思われる物体が存在している場合などである。このような場合、同じ変換で複数の主要部分のすべてに対して視認性が高くなる方向に変換される保障はなく、多くの場合は、一つの主要な被写体を含む画像の画質は向上しているが、他の被写体を含む画像の画質は劣化してしまうという問題があった。   However, since the technique described in Patent Document 1 places importance on correction of only the main part, it may be converted to a level not desired by the user in other areas. For example, there are cases where two or more main objects are present in the image. In such a case, there is no guarantee that all the main parts are converted in the same conversion in the direction of increasing visibility, and in many cases the image quality of an image including one main subject is improved. However, there is a problem that the image quality of an image including another subject deteriorates.

また、視認性を向上するために、画像全体に一律の画像変換を施すのではなく、画像の領域の画質に応じた画像変換を行うと、画像変換処理の違いから異なる画像変換を行った領域の境目が不連続な画像となってしまうという問題があった。   In addition, in order to improve visibility, instead of performing uniform image conversion on the entire image, if image conversion is performed according to the image quality of the area of the image, areas that have undergone different image conversion due to differences in image conversion processing There is a problem that the boundary of the image becomes a discontinuous image.

本発明は、上記に鑑みてなされたものであって、入力画像のどの部分においても視認性がよく、不連続とならない画像を生成することができる画像処理装置および方法を提供することを目的とする。   The present invention has been made in view of the above, and an object of the present invention is to provide an image processing apparatus and method that can generate an image that has good visibility and is not discontinuous in any part of an input image. To do.

上述した課題を解決し、目的を達成するために、本発明は、入力画像を所定のサイズの複数の小領域画像に分割する領域分割部と、前記小領域画像の画素値に基づいて、分割された複数の小領域画像それぞれが互いに類似するか否かを判定する類似判定部と、互いに類似すると判定された複数の小領域画像からなる中領域画像の画素値に基づいて、ガンマ変換テーブルを生成するガンマ変換テーブル生成部と、前記中領域画像を、前記ガンマ変換テーブルで変換した変換中領域画像を生成する画像変換部と、互いに隣接する前記変換中領域画像の境界近傍の画素の画素値を、当該画素と前記変換中領域画像それぞれとの関係に基づく重み係数によって重み付けした変換テーブルを用いて補正する補正部と、を備えることを特徴とする。   In order to solve the above-described problems and achieve the object, the present invention provides an area dividing unit that divides an input image into a plurality of small area images of a predetermined size, and a division based on the pixel values of the small area images. A similarity determination unit that determines whether or not each of the plurality of small region images is similar to each other, and a gamma conversion table based on the pixel values of the middle region image that is composed of the plurality of small region images determined to be similar to each other. A pixel value of a pixel in the vicinity of the boundary between the converted middle region images adjacent to each other, a gamma conversion table generating unit to generate, an image converting unit that generates the middle region image converted from the middle region image by the gamma conversion table And a correction unit that corrects the image using a conversion table weighted by a weighting coefficient based on the relationship between the pixel and each of the conversion-in-progress region images.

また、本発明は、入力画像を所定のサイズの複数の小領域画像に分割する領域分割部と、前記小領域画像の画素値に基づいて、分割された複数の小領域画像それぞれが互いに類似するか否かを判定する類似判定部と、互いに類似すると判定された複数の小領域画像からなる中領域画像の画素値に基づいて、ガンマ変換テーブルを生成するガンマ変換テーブル生成部と、生成された前記ガンマ変換テーブルに対応する中領域画像と、前記中領域画像それぞれとの関係に基づく重み係数によって重み付けしたガンマ変換テーブルを用いて補正ガンマ変換テーブルを生成する補正ガンマ変換テーブル生成部と、前記中領域画像を、生成された前記補正ガンマ変換テーブルで変換する画像変換部と、を備えることを特徴とする。   Further, according to the present invention, an area dividing unit that divides an input image into a plurality of small area images of a predetermined size and a plurality of divided small area images are similar to each other based on pixel values of the small area images. A similarity determination unit that determines whether or not, a gamma conversion table generation unit that generates a gamma conversion table based on pixel values of a middle region image composed of a plurality of small region images determined to be similar to each other, and A correction gamma conversion table generating unit that generates a correction gamma conversion table using a gamma conversion table weighted by a weighting coefficient based on a relationship between the middle region image corresponding to the gamma conversion table and each of the middle region images; An image conversion unit that converts the region image using the generated correction gamma conversion table.

また、本発明は、画像処置装置で実行される画像処理方法であって、領域分割部が、入力画像を所定のサイズの複数の小領域画像に分割する領域分割工程と、類似判定部が、前記小領域画像の画素値に基づいて、分割された複数の小領域画像それぞれが互いに類似するか否かを判定する類似判定工程と、ガンマ変換テーブル生成部が、互いに類似すると判定された複数の小領域画像からなる中領域画像の画素値に基づいて、ガンマ変換テーブルを生成するガンマ変換テーブル生成工程と、画像変換部が、前記中領域画像を、前記ガンマ変換テーブルで変換した変換中領域画像を生成する画像変換工程と、補正部が、互いに隣接する前記変換中領域画像の境界近傍の画素の画素値を、当該画素と前記変換中領域画像それぞれとの関係に基づく重み係数によって重み付けした変換テーブルを用いて補正する補正工程と、を含むことを特徴とする。   Further, the present invention is an image processing method executed by the image processing apparatus, wherein the region dividing unit divides the input image into a plurality of small region images of a predetermined size, and the similarity determining unit includes: A similarity determination step for determining whether or not each of the plurality of divided small area images is similar to each other based on a pixel value of the small area image, and a plurality of gamma conversion table generation units determined to be similar to each other A gamma conversion table generating step for generating a gamma conversion table based on the pixel value of the middle area image made up of the small area image, and a converted middle area image obtained by converting the middle area image by the gamma conversion table by the image conversion unit. And an image conversion step for generating a pixel value of a pixel in the vicinity of a boundary between the conversion target region images adjacent to each other based on a relationship between the pixel and the conversion target region image. Characterized in that it comprises a correction step of correcting by using a conversion table weighted by a factor.

また、本発明は、画像処置装置で実行される画像処理方法であって、領域分割部が、入力画像を所定のサイズの複数の小領域画像に分割する領域分割工程と、類似判定部が、前記小領域画像の画素値に基づいて、分割された複数の小領域画像それぞれが互いに類似するか否かを判定する類似判定工程と、ガンマ変換テーブル生成部が、互いに類似すると判定された複数の小領域画像からなる中領域画像の画素値に基づいて、ガンマ変換テーブルを生成するガンマ変換テーブル生成工程と、補正ガンマ変換テーブル生成部が、生成された前記ガンマ変換テーブルに対応する中領域画像と、前記中領域画像それぞれとの関係に基づく重み係数によって重み付けしたガンマ変換テーブルを用いて補正ガンマ変換テーブルを生成する補正ガンマ変換テーブル生成工程と、画像変換部が、前記中領域画像を、生成された前記補正ガンマ変換テーブルで変換する画像変換工程と、を含むことを特徴とする。   The present invention is also an image processing method executed by the image processing apparatus, wherein the region dividing unit divides the input image into a plurality of small region images of a predetermined size, and the similarity determining unit includes: A similarity determination step for determining whether or not each of the plurality of divided small area images is similar to each other based on the pixel value of the small area image, and a plurality of gamma conversion table generation units determined to be similar to each other A gamma conversion table generating step for generating a gamma conversion table based on the pixel value of the middle area image made up of the small area image, and a correction gamma conversion table generating unit includes a middle area image corresponding to the generated gamma conversion table, A correction gamma conversion table that generates a correction gamma conversion table using a gamma conversion table weighted by a weighting factor based on the relationship with each of the middle region images. And Bull generating step, the image conversion unit, said in region image, and an image conversion step of converting the generated said correction gamma conversion table, characterized in that it comprises a.

本発明によれば、類似する領域ごとに最適な画像変換を行い、領域の境界近傍の画素は補正されるため、入力画像のどの部分においても視認性がよく、不連続とならない画像を生成することができるという効果を奏する。   According to the present invention, optimal image conversion is performed for each similar region, and pixels in the vicinity of the boundary of the region are corrected. Therefore, an image that is highly visible in any part of the input image and does not become discontinuous is generated. There is an effect that can be.

また、本発明によれば、類似する領域ごとに適切で、かつ、領域の境界近傍の画像に不連続が生じない画像変換を行うため、入力画像のどの部分においても視認性がよく、不連続とならない画像を生成することができるという効果を奏する。   In addition, according to the present invention, since image conversion that is appropriate for each similar region and does not cause discontinuity in the image near the boundary of the region is performed, visibility is good in any part of the input image, and discontinuity is achieved. There is an effect that an image that does not become can be generated.

以下に添付図面を参照して、本発明にかかる画像処理装置および方法の最良な実施の形態を詳細に説明する。なお、本発明はこれらの実施の形態に限定されるものではない。   Exemplary embodiments of an image processing apparatus and method according to the present invention will be explained below in detail with reference to the accompanying drawings. The present invention is not limited to these embodiments.

(第1の実施の形態)
第1の実施の形態について、添付図面を参照して説明する。まず、本発明が適用される画像処理装置の構成例について説明する。
(First embodiment)
A first embodiment will be described with reference to the accompanying drawings. First, a configuration example of an image processing apparatus to which the present invention is applied will be described.

図1は、第1の実施の形態にかかる画像処理装置の構成を示すブロック図である。本実施の形態にかかる画像処理装置100は、領域分割部101と、類似判定部102と、中領域生成部103と、ガンマ変換テーブル生成部104と、画像変換部105と、不連続補正部106とを主に備えている。   FIG. 1 is a block diagram illustrating a configuration of the image processing apparatus according to the first embodiment. The image processing apparatus 100 according to the present embodiment includes an area dividing unit 101, a similarity determining unit 102, a middle region generating unit 103, a gamma conversion table generating unit 104, an image converting unit 105, and a discontinuous correcting unit 106. And mainly.

領域分割部101は、入力画像を小領域画像に分割する。なお、画像の分割方法に、特に制限はない。ただし、後述する類似判定部102において、類似度を算出するのに十分な大きさを持つ小領域画像とする。   The area dividing unit 101 divides the input image into small area images. There is no particular limitation on the image dividing method. However, the similarity determination unit 102, which will be described later, uses a small region image that is large enough to calculate the similarity.

図2は、入力画像を小領域画像に分割した一例を示す説明図である。ここで、説明のために、処理を行う画像の左上すみに原点22を設け、横方向にx軸、縦方向にy軸を設定する。図2に示す例では、入力画像21をx軸方向、y軸方向にそれぞれ8等分して、64の小領域画像23に分割している。なお、図2は一例であり、実際に入力画像を小領域画像に分割する場合は、等分割しなくともよいし、領域を矩形としなくてもよい。また、入力画像をすべて均一に同じ形に分割するといった制限もない。例えば、画像中に特に注目したい領域は細かく分割し、それ以外の範囲では荒く分割してもよい。   FIG. 2 is an explanatory diagram illustrating an example in which an input image is divided into small region images. Here, for explanation, the origin 22 is provided at the upper left corner of the image to be processed, and the x axis is set in the horizontal direction and the y axis is set in the vertical direction. In the example illustrated in FIG. 2, the input image 21 is divided into eight equal parts in the x-axis direction and the y-axis direction, and divided into 64 small region images 23. Note that FIG. 2 is an example, and when the input image is actually divided into small region images, it is not necessary to equally divide the region, and the region may not be rectangular. Further, there is no restriction that the input image is all uniformly divided into the same shape. For example, a region of particular interest in the image may be divided finely and roughly divided in other ranges.

類似判定部102は、領域分割部101で分割された小領域画像間の画素値の類似度を算出し、算出された類似度から小領域画像が類似しているか否かを判定する。ここで、類似度とは、小領域画像間の画素値(例えば輝度やRGBの値など画像の明るさ成分)の分布を比較し、それがどの程度似通っているかを表す指標である。類似度を求める手段は、一般に知られている例えば輝度などの分布を比較する方法であれば、どのようなものでもかまわない。   The similarity determination unit 102 calculates the similarity of the pixel values between the small region images divided by the region dividing unit 101, and determines whether the small region images are similar from the calculated similarity. Here, the degree of similarity is an index that indicates how similar pixel values (for example, brightness components of the image such as luminance and RGB values) are compared between the small region images. The means for obtaining the similarity may be any method as long as it is a generally known method of comparing distributions such as luminance.

例えば、輝度を用いて対比する画像の類似度を求める手段として、次のような方法(1)〜(9)がある。(1)対比する画像の輝度の平均値の差が小さいとき類似度を大とする。(2)対比する画像の輝度の最大値の差が小さいとき類似度を大とする。(3)対比する画像の輝度の最小値の距離の差が小さいとき類似度を大とする。(4)対比する画像の輝度の最大値を最小値の距離の差が小さいとき類似度を大とする。(5)輝度の分散の差が小さいとき類似度を大とする。(6)対比する画像の輝度の最頻値のレベルの差が小さいとき類似度を大とする。(7)対比する画像の輝度の中央値のレベルの差が小さいとき類似度を大とする。(8)対比する画像の輝度のヒストグラム同士を重ね合わせ、その重なりの面積が大きいとき類似度を大とする。(9)対比する画像の輝度のヒストグラムの最頻値を0にシフトしたシフトヒストグラム同士を重ね合わせ、その重なりの面積が大きいとき類似度を大とする。   For example, the following methods (1) to (9) are available as means for obtaining the similarity of images to be compared using luminance. (1) The degree of similarity is increased when the difference between the average values of the contrasted images is small. (2) The degree of similarity is increased when the difference between the maximum values of the brightness of the images to be compared is small. (3) When the difference in the distance between the minimum values of the brightness of the images to be compared is small, the similarity is increased. (4) When the difference in distance between the maximum value and the minimum value of the brightness of the contrasted images is small, the similarity is increased. (5) When the difference in luminance dispersion is small, the similarity is increased. (6) The degree of similarity is increased when the difference in the level of the mode of brightness of the compared images is small. (7) The degree of similarity is increased when the difference in the median level of the brightness of the images to be compared is small. (8) The brightness histograms of the images to be compared are overlapped, and the similarity is increased when the overlapping area is large. (9) The shift histograms obtained by shifting the mode of the histograms of the brightness of the contrasted images to 0 are overlapped, and the similarity is increased when the overlap area is large.

また、輝度を用いる比較に限らず、RGB値など明るさがわかる値を用いた比較であれば同様の手法が考えられる。また、上述した類似度の算出方法をいくつか組み合わせてもよい。このほかにも色、エッジの分布、コーナー点など画像の輝度分布がわかるような指標であればどのようなものを用いて類似度を求めてもよい。こうして求めた類似度と予め設定された閾値を比較して小領域が類似しているか否かを判定する。なお、対比する小領域は、隣接していてもよいし、していなくてもよい。   Further, not only the comparison using the luminance, but the same method can be considered as long as the comparison is performed using a value such as an RGB value that shows the brightness. Moreover, you may combine several calculation methods of the similarity mentioned above. In addition to this, any index may be used as long as it indicates the luminance distribution of the image, such as color, edge distribution, and corner point. The similarity obtained in this way is compared with a preset threshold value to determine whether or not the small areas are similar. Note that the small areas to be compared may or may not be adjacent to each other.

図3は、類似判定部102が行う類似判定処理手順の一例を示すフローチャートである。これは、上述した類似度を求める方法(6)と(9)を組み合わせたものである。   FIG. 3 is a flowchart illustrating an example of a similarity determination processing procedure performed by the similarity determination unit 102. This is a combination of the above methods (6) and (9) for obtaining the similarity.

まず、類似判定部102は、類似度を求める小領域の画像から輝度のヒストグラムを生成する(ステップS301)。図4−1、図4−2は、小領域画像から生成された輝度値のヒストグラムの一例を示す説明図である。図4−1に示すヒストグラムでは、輝度値K1でピーク41を示し、図4−2に示すヒストグラムでは、輝度値K2でピーク42を示している。   First, the similarity determination unit 102 generates a luminance histogram from an image of a small area whose similarity is to be obtained (step S301). 4A and 4B are explanatory diagrams illustrating an example of a histogram of luminance values generated from a small region image. In the histogram shown in FIG. 4A, the peak 41 is shown by the luminance value K1, and in the histogram shown in FIG. 4B, the peak 42 is shown by the luminance value K2.

類似判定部102は、生成したヒストグラムの最頻値を算出する(ステップS302)。図4−1で示した画像では、ヒストグラムの最頻値として輝度値K1が算出され、図4−2で示した画像では、ヒストグラムの最頻値として輝度値K2が算出される。次に、類似判定部102は、最頻値の差が閾値より小さいか否かを判断する(ステップS303)。最頻値の差が閾値より小さいと判断した場合は(ステップS303:Yes)、類似判定部102は輝度値のヒストグラムの最頻値を0にシフトしたヒストグラム同士を重ね合わせ、重なりの面積を算出する(ステップS304)。図5は、輝度値のヒストグラムの最頻値を0にシフトし、重ね合わせたヒストグラムの一例を示す説明図である。図5に示すような2つのヒストグラムが重なった部分51の面積は、同一の横軸の値において2つのヒストグラムのうち小さいほうの縦軸の値を積算していくことによって求められる。   The similarity determination unit 102 calculates the mode value of the generated histogram (step S302). In the image shown in FIG. 4A, the luminance value K1 is calculated as the mode value of the histogram, and in the image shown in FIG. 4B, the luminance value K2 is calculated as the mode value of the histogram. Next, the similarity determination unit 102 determines whether or not the mode value difference is smaller than the threshold (step S303). If it is determined that the difference between the mode values is smaller than the threshold value (step S303: Yes), the similarity determination unit 102 superimposes histograms obtained by shifting the mode value of the histogram of luminance values to 0, and calculates the area of overlap. (Step S304). FIG. 5 is an explanatory diagram showing an example of a histogram in which the mode value of the histogram of luminance values is shifted to 0 and superimposed. The area of the portion 51 where the two histograms overlap as shown in FIG. 5 is obtained by integrating the smaller vertical axis values of the two histograms with the same horizontal axis values.

類似判定部102は、重なり面積が所定の値より大きいか否かを判断する(ステップS305)。重なり面積が所定の値より大きいと判断した場合は(ステップS305:Yes)、類似判定部102は対比している小領域画像は類似していると判断する(ステップS306)。   The similarity determination unit 102 determines whether or not the overlapping area is larger than a predetermined value (step S305). When it is determined that the overlapping area is larger than the predetermined value (step S305: Yes), the similarity determination unit 102 determines that the compared small area images are similar (step S306).

ステップS303において、最頻値の差が閾値以上であると判断した場合は(ステップS303:No)、または、ステップS305において、重なり面積が所定の値以下であると判断した場合は(ステップS305:No)、類似判定部102は対比している小領域画像は類似していないと判断する(ステップS307)。   If it is determined in step S303 that the mode difference is greater than or equal to the threshold (step S303: No), or if it is determined in step S305 that the overlap area is less than or equal to a predetermined value (step S305: No), the similarity determination unit 102 determines that the compared small area images are not similar (step S307).

図1に戻り、中領域生成部103について説明する。中領域生成部103は、類似判定部102によって2つもしくは複数の小領域画像が類似しているか否かの判定結果に基づいて、類似している画像の小領域を1つにまとめた新たな領域を生成する。以下、2つもしくは複数の小領域画像を1つにまとめた新たな領域の画像を中領域画像という。なお、中領域画像は、類似判定部102によって類似していると判定された小領域画像であれば、注目する小領域画像と隣接していても離れていてもよい。   Returning to FIG. 1, the middle region generation unit 103 will be described. Based on the determination result of whether or not two or a plurality of small region images are similar by the similarity determination unit 102, the middle region generation unit 103 creates a new region in which the small regions of similar images are combined into one. Create a region. Hereinafter, an image of a new area obtained by combining two or a plurality of small area images into one is referred to as a middle area image. As long as the middle region image is a small region image determined to be similar by the similarity determination unit 102, the middle region image may be adjacent to or separated from the target small region image.

図6は、類似判定部102によって類似していると判定された小領域画像の一例を示す説明図である。図6に示す例では、小領域画像61それぞれに対して類似しているか否かを判定した結果として、類似している小領域画像間に、類似を示す双方向の矢印62を表している。図6に示す場合は、ある小領域画像に対して上下左右の4つの領域画像に対して類似判定部102で類似を判定している。   FIG. 6 is an explanatory diagram illustrating an example of a small region image determined to be similar by the similarity determination unit 102. In the example illustrated in FIG. 6, as a result of determining whether or not each of the small region images 61 is similar, a bidirectional arrow 62 indicating similarity is represented between the similar small region images. In the case shown in FIG. 6, the similarity determination unit 102 determines similarity for four region images (upper, lower, left, and right) for a certain small region image.

図7は、類似判定の結果から中領域生成部103が中領域画像を生成した結果の一例を示す説明図である。図7に示すように、図6に示した類似する複数の小領域画像は、中領域画像としてまとめられている。図7に示す例では、路面、空、山、建物、人、車といった被写体ごとに中領域画像71が生成されている。   FIG. 7 is an explanatory diagram illustrating an example of a result of the middle region generation unit 103 generating a middle region image from the similarity determination result. As shown in FIG. 7, a plurality of similar small area images shown in FIG. 6 are grouped as a middle area image. In the example illustrated in FIG. 7, a middle region image 71 is generated for each subject such as a road surface, sky, mountain, building, person, and car.

ガンマ変換テーブル生成部104は、中領域生成部103で生成した中領域画像それぞれに対し、中領域画像の画素値に基づいて信号変換用のガンマ変換テーブルを生成する。信号変換用のガンマ変換テーブルの生成方法は、一般に知られているどのような画像変換方法でもよい。例えば、ヒストグラム均等法や出力=(入力)^γなどといった変換方法があげられる。   The gamma conversion table generation unit 104 generates a signal conversion gamma conversion table for each of the middle region images generated by the middle region generation unit 103 based on the pixel values of the middle region image. As a method for generating a gamma conversion table for signal conversion, any generally known image conversion method may be used. For example, conversion methods such as a histogram equalization method and output = (input) ^ γ can be mentioned.

画像変換部105は、ガンマ変換テーブル生成部104で生成した信号変換用のガンマ変換テーブルを用いて中領域画像それぞれに対して信号変換を行う。なお、本実施の形態では、ガンマ変換テーブル生成部104で生成した信号変換用のガンマ変換テーブルを用いて信号変換を行う場合について説明するが、ガンマ変換テーブルを用いた信号変換に限る必要はなく、中領域画像ごとに全く異なる画像変換方法を用いてもよい。   The image conversion unit 105 performs signal conversion on each middle region image using the signal conversion gamma conversion table generated by the gamma conversion table generation unit 104. In this embodiment, a case where signal conversion is performed using a signal conversion gamma conversion table generated by the gamma conversion table generation unit 104 will be described. However, the present invention is not limited to signal conversion using a gamma conversion table. A completely different image conversion method may be used for each middle region image.

不連続補正部106は、画像変換部105で変換された中領域画像の境界近傍の画素を補正する。画像変換部105で変換された画像では、中領域画像ごとに画像変換が異なるため、中領域画像の境界に階調が不連続な画像が発生してしまう場合がある。そこで、不連続性補正部106では、この不連続な境界を除去する処理を行う。境界の除去は、一般に広く知られているデブロッキングの方法を境界部分あるいは画像全体に用いて不連続な画像を補正する。一例としては、ガウシアンフィルタなどを用いて境界をぼかすことにより画像の不連続性を除去することができる。   The discontinuity correction unit 106 corrects pixels near the boundary of the middle region image converted by the image conversion unit 105. In the image converted by the image conversion unit 105, the image conversion differs for each middle region image, so that an image having a discontinuous gradation may occur at the boundary of the middle region image. Therefore, the discontinuity correction unit 106 performs processing for removing this discontinuous boundary. In the boundary removal, a discontinuous image is corrected by using a generally known deblocking method for the boundary portion or the entire image. As an example, image discontinuity can be removed by blurring the boundary using a Gaussian filter or the like.

また、他の方法として、次のような方法によっても不連続な画像を補正することができる。ある画素A(座標(X,Y),画素値P)を変換する場合を例にとって説明する。ガンマ変換テーブル生成部104で生成された中領域画像i(i=1,2,・・・,I、I:生成された中領域画像の数)での入出力の変換テーブルをf(P)とする。このとき画素Aでの変換後の画素値P´は、次の数式(1)で表される重み付き線形補間で求められる。 As another method, a discontinuous image can be corrected by the following method. A case where a certain pixel A (coordinate (X, Y), pixel value P) is converted will be described as an example. An input / output conversion table in the middle region image i (i = 1, 2,..., I, I: the number of generated middle region images) generated by the gamma conversion table generation unit 104 is represented by f i (P ). At this time, the pixel value P ′ after conversion in the pixel A is obtained by weighted linear interpolation represented by the following formula (1).

Figure 2009212750
Figure 2009212750

ここで、W(P,X,Y)は、変換する画素Aの画素値、入力画像における画素Aの位置、画素Aと中領域画像それぞれとの距離、中領域画像それぞれの面積、中領域画像それぞれの輝度分布などによって決定する重み係数である。 Here, W i (P, X, Y) is the pixel value of the pixel A to be converted, the position of the pixel A in the input image, the distance between the pixel A and the middle region image, the area of each middle region image, the middle region This is a weighting coefficient determined by the luminance distribution of each image.

この重み係数は、変換しようとする画素と中領域画像それぞれとの関係によって決定される。重み係数には、様々な設計方法が考えられる。基本的な設計方針としては、中領域画像と画素Aとの距離や、中領域画像の面積を用いて重み係数にするのが好ましい。   This weight coefficient is determined by the relationship between the pixel to be converted and each of the middle region images. Various design methods can be considered for the weighting factor. As a basic design policy, it is preferable to use a weighting factor by using the distance between the middle region image and the pixel A and the area of the middle region image.

例えば、(1)中領域画像の重心Gと画素Aの距離に応じて重み付けする。具体的には、中領域画像の重心Gと画素Aとの距離が短い程重み係数を大きくし、長い程重み係数を小さくして重み付けする。(2)中領域画像の面積に応じて重み付けする。具体的には、中領域画像それぞれの面積の大きさに応じて、面積が大きい程重み係数を大きく、面積が小さい程重み係数を小さくして重み付けする。また、画素Aを中心とした半径R内の円内部に含まれる中領域画像の面積を用いた重み係数で重み付けする。また、(1)の例の場合は画素Aと各中領域画像の境界との最小距離を用いてもよいし、(2)の例の場合は円ではなく正方形や長方形などでもよい。さらに、(1)や(2)の方法に代えて、または加えて中領域画像の輝度分布に応じた重み係数を付け加えてもよい。例えば、中領域画像中に所定範囲の輝度値の画素を多く含む程重み係数を大きくし、所定範囲の輝度値の画素が少ない程重み係数を小さくするといったものである。これらの方法によって境界部の不連続性を補正することができる。   For example, (1) weighting is performed according to the distance between the center of gravity G of the middle region image and the pixel A. Specifically, the weighting factor is increased as the distance between the center of gravity G of the middle region image and the pixel A is shorter, and the weighting factor is decreased as the distance is longer. (2) Weighting is performed according to the area of the middle region image. Specifically, according to the size of each area of the middle region image, the weighting factor is increased as the area is larger, and the weighting factor is decreased as the area is smaller. In addition, weighting is performed with a weighting coefficient using the area of the middle region image included in the circle within the radius R with the pixel A as the center. In the case of the example (1), the minimum distance between the pixel A and the boundary of each middle region image may be used. In the case of the example (2), a square or a rectangle may be used instead of a circle. Furthermore, instead of or in addition to the methods (1) and (2), a weighting coefficient corresponding to the luminance distribution of the middle region image may be added. For example, the weight coefficient is increased as the number of pixels having a luminance value in a predetermined range is increased in the middle region image, and the weight coefficient is decreased as the number of pixels having a luminance value in the predetermined range is decreased. By these methods, the discontinuity at the boundary can be corrected.

このように、入力画像を分割して類似する画像をまとめた中領域画像ごとにガンマ変換を行うことにより、入力画像の各部分ごとに最適なガンマ変換を行うことができるとともに、さらに中領域画像の境界近傍の画素に対して変換テーブルで補正することにより、変換後の中領域画像の境界近傍の画素に対して画像の不連続性を低減する補正を行うため、入力画像のどの部分においても視認性がよく、不連続とならない画像を生成することができるという効果を奏する。   In this way, by performing gamma conversion for each middle region image obtained by dividing the input image and collecting similar images, optimal gamma conversion can be performed for each part of the input image, and further, the middle region image In order to perform correction to reduce the discontinuity of the image for the pixels near the boundary of the converted middle-region image by correcting the pixels near the boundary of the image in the conversion table, any part of the input image There is an effect that it is possible to generate an image that has good visibility and is not discontinuous.

(第2の実施の形態)
第2の実施の形態について、添付図面を参照して説明する。本発明が適用される画像処理装置の構成例について説明する。図8は、第2の実施の形態にかかる画像処理装置の構成を示すブロック図である。
(Second Embodiment)
A second embodiment will be described with reference to the accompanying drawings. A configuration example of an image processing apparatus to which the present invention is applied will be described. FIG. 8 is a block diagram illustrating a configuration of an image processing apparatus according to the second embodiment.

本実施の形態にかかる画像処理装置200は、領域分割部101と、類似判定部102と、中領域生成部103と、ガンマ変換テーブル生成部104と、補正ガンマ変換テーブル生成部207と、補正画像変換部208とを主に備えている。ここで、領域分割部101と、類似判定部102と、中領域生成部103と、ガンマ変換テーブル生成部104の構成、機能は、第1の実施の形態と同様であるので、説明を省略する。   The image processing apparatus 200 according to the present embodiment includes an area dividing unit 101, a similarity determining unit 102, a middle region generating unit 103, a gamma conversion table generating unit 104, a corrected gamma conversion table generating unit 207, and a corrected image. A conversion unit 208 is mainly provided. Here, the configurations and functions of the region dividing unit 101, the similarity determining unit 102, the middle region generating unit 103, and the gamma conversion table generating unit 104 are the same as those in the first embodiment, and thus the description thereof is omitted. .

補正ガンマ変換テーブル生成部207は、ガンマ変換テーブル生成部104で生成された信号変換用のガンマ変換テーブルを中領域画像間の境界部分に不連続性が発生しないようにそれぞれを補正し、補正ガンマ変換テーブルを生成する。このように、補正ガンマ変換テーブル生成部207では、ガンマ変換テーブル生成部104で生成されたガンマ変換テーブルをそのまま用いて画像変換した場合に発生してしまう中領域画像間の階調の不連続性を、ガンマ変換テーブルを補正することによって抑制する。ここで、補正されたガンマ変換テーブルを補正ガンマ変換テーブルという。   The correction gamma conversion table generation unit 207 corrects each of the signal conversion gamma conversion tables generated by the gamma conversion table generation unit 104 so that no discontinuity occurs in the boundary portion between the middle region images. Generate a conversion table. As described above, the corrected gamma conversion table generation unit 207 has a discontinuity of gradation between middle region images that occurs when image conversion is performed using the gamma conversion table generated by the gamma conversion table generation unit 104 as it is. Is suppressed by correcting the gamma conversion table. Here, the corrected gamma conversion table is referred to as a corrected gamma conversion table.

具体的には、ある注目する中領域画像のガンマ変換テーブルをそれぞれのレベルにおいて、注目する中領域画像および他の中領域画像のガンマ変換テーブルの同じレベルの出力値を使って平滑化を行い、補正された出力値を求める。すべてのレベルで求めることによって補正ガンマ変換テーブルを生成する。これを中領域画像のすべてで行うことによって、中領域画像間の階調の不連続性は抑制される。   Specifically, the gamma conversion table of a certain middle area image is smoothed using the output values at the same level of the gamma conversion table of the middle area image and other middle area images of interest at each level, Find the corrected output value. A correction gamma conversion table is generated by obtaining at all levels. By performing this operation for all of the middle region images, gradation discontinuity between the middle region images is suppressed.

ある注目する中領域のガンマ変換テーブルの平滑化の方法は、色々考えられる。ある中領域画像Bでの補正ガンマ変換テーブルF(X)を生成する場合を例にとって説明する。各中領域画像のガンマ変換テーブルをfi(X)(i=1,2,・・・,I、I:生成された中領域画像の数)とすると、F(X)は次の数式(2)で表される重み付き線形補間で求められる。 There are various methods for smoothing the gamma conversion table of a certain middle region of interest. A case where a corrected gamma conversion table F B (X) for a certain middle region image B is generated will be described as an example. If the gamma conversion table of each middle region image is fi (X) (i = 1, 2,..., I, I: number of generated middle region images), F B (X) is expressed by the following formula ( It is calculated | required by the weighted linear interpolation represented by 2).

Figure 2009212750
Figure 2009212750

ここで、W(B,i)は、中領域画像Bと中領域画像iの位置、面積、距離、輝度分布などによって決定する重み係数である。基本的な設計方針としては、中領域画像間の距離を用いて重み係数にするのが好ましい。   Here, W (B, i) is a weighting factor determined by the position, area, distance, luminance distribution, etc. of the middle region image B and the middle region image i. As a basic design policy, it is preferable to use a distance between middle region images as a weighting factor.

重み係数の設計方法は、たとえば中領域画像の重心Gと中領域画像iの重心Gとの距離に応じて設計する方法がある。中領域画像の重心Gと中領域画像iの重心Gとの距離が短い程重み係数を大きくし、長い程重み係数を小さくして重み付けする。さらに、これらの距離に代えて、または加えて中領域画像の面積の大きさや中領域画像の輝度分布の類似度等によって重み係数を補正してもよい。例えば、中領域画像Bと中領域画像iとの輝度分布の類似度が大きい程重み係数を大きくし、類似度が小さい程重み係数を小さくして重み付けする。類似度の算出方法は、類似判定部102で挙げた方法などを用いてもよい。これらの方法によってガンマ変換テーブルを補正し、補正された補正ガンマ変換テーブルを用いることにより、境界部の不連続性を補正することができる。 As a design method of the weighting factor, for example, there is a method of designing according to the distance between the center of gravity G B of the middle region image and the center of gravity G i of the middle region image i. The weighting factor is increased as the distance between the center of gravity G B of the middle region image and the center of gravity G i of the middle region image i is shorter, and the weighting factor is decreased as the distance is longer. Furthermore, instead of or in addition to these distances, the weighting factor may be corrected by the size of the area of the middle region image, the similarity of the luminance distribution of the middle region image, or the like. For example, the weighting factor is increased as the similarity of the luminance distribution between the middle region image B and the middle region image i is increased, and the weighting factor is decreased as the similarity is decreased. As a method for calculating the similarity, the method exemplified in the similarity determination unit 102 may be used. By correcting the gamma conversion table by these methods and using the corrected gamma conversion table corrected, the discontinuity at the boundary can be corrected.

補正画像変換部208は、補正ガンマ変換テーブル生成部207で生成した信号変換用の補正ガンマ変換テーブルを用い、中領域画像それぞれに対して信号変換を行う。   The corrected image conversion unit 208 performs signal conversion on each of the middle region images using the correction gamma conversion table for signal conversion generated by the correction gamma conversion table generation unit 207.

このように、入力画像を分割して類似する画像をまとめた中領域画像ごとにガンマ変換テーブルを生成し、さらに生成されたガンマ変換テーブルに対応する中領域画像と他の中領域画像との関係に基づく重み係数で重み付けされたガンマ変換テーブルを用いて補正ガンマ変換テーブルを生成し、補正ガンマ変換テーブルによって中領域画像を変換することにより、入力画像の各部分ごとによりよいガンマ変換を行われ、かつ、中領域画像それぞれが隣接する中領域画像と画質の不連続を低減されてガンマ変換されるため、入力画像のどの部分においても視認性がよく、不連続とならない画像を生成することができるという効果を奏する。   In this way, a gamma conversion table is generated for each intermediate region image in which similar images are divided by dividing the input image, and the relationship between the intermediate region image corresponding to the generated gamma conversion table and other intermediate region images By generating a correction gamma conversion table using a gamma conversion table weighted with a weighting coefficient based on the above, and converting the middle region image by the correction gamma conversion table, a better gamma conversion is performed for each part of the input image, In addition, since each of the middle region images is subjected to gamma conversion while reducing discontinuity in image quality with the adjacent middle region image, it is possible to generate an image that is highly visible in any part of the input image and does not become discontinuous. There is an effect.

図9は、上述した実施の形態にかかる画像処理装置のハードウェア構成の一例を示す説明図である。図9に示すように、上述した実施の形態の画像処理装置(100および200)は、ハードウェア構成として、上述した処理を行う画像処理プログラムなどが格納されているROM902と、ROM902内のプログラムに従って画像処理装置(100および200)の各部を制御するCPU901と、データの格納領域となるRAM903と、動画像の入出力を行うためにネットワークに接続して通信を行う通信I/F904と、各部を接続するバス905とを備えている。   FIG. 9 is an explanatory diagram illustrating an example of a hardware configuration of the image processing apparatus according to the above-described embodiment. As shown in FIG. 9, the image processing apparatuses (100 and 200) according to the above-described embodiments have a hardware configuration according to a ROM 902 that stores an image processing program for performing the above-described processing, and a program in the ROM 902. A CPU 901 that controls each unit of the image processing apparatus (100 and 200), a RAM 903 that is a data storage area, a communication I / F 904 that communicates by connecting to a network to input and output moving images, and each unit And a bus 905 to be connected.

画像処理プログラムは、インストール可能な形式又は実行可能な形式のファイルで光学ディスク、磁気ディスクおよびSSD(Solid State Disk)等のコンピュータで読み取り可能な記録媒体に記録されて提供されてもよい。   The image processing program may be provided by being recorded in a computer-readable recording medium such as an optical disk, a magnetic disk, and an SSD (Solid State Disk) in an installable or executable format file.

この場合には、画像処理プログラムは、画像処理装置(100および200)において上記記録媒体から読み出して実行することによりRAM903上にロードされ、上記ソフトウェア構成で説明した各部がRAM903上に生成されるようになっている。   In this case, the image processing program is loaded on the RAM 903 by being read from the recording medium and executed by the image processing apparatuses (100 and 200), and each unit described in the software configuration is generated on the RAM 903. It has become.

また、上述した実施の形態の画像処理プログラムを、インターネット等のネットワークに接続されたコンピュータ上に格納し、ネットワーク経由でダウンロードさせることにより提供するように構成してもよい。   Further, the image processing program according to the above-described embodiment may be provided by being stored on a computer connected to a network such as the Internet and downloaded via the network.

なお、本発明は、上述した実施の形態そのままに限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で構成要素を変形して具体化することができる。また、上述した実施の形態に開示されている複数の構成要素の適宜な組み合わせにより、種々の発明を形成することができる。例えば、実施の形態に示される全構成要素からいくつかの構成要素を削除してもよい。さらに、異なる実施の形態にわたる構成要素を適宜組み合わせてもよい。   Note that the present invention is not limited to the above-described embodiments as they are, and can be embodied by modifying the constituent elements without departing from the scope of the invention in the implementation stage. Various inventions can be formed by appropriately combining a plurality of constituent elements disclosed in the above-described embodiments. For example, some components may be deleted from all the components shown in the embodiment. Furthermore, constituent elements over different embodiments may be appropriately combined.

第1の実施の形態にかかる画像処理装置の構成を示すブロック図である。1 is a block diagram illustrating a configuration of an image processing apparatus according to a first embodiment. 入力画像を小領域に分割した一例を示す説明図である。It is explanatory drawing which shows an example which divided | segmented the input image into the small area | region. 類似判定部が行う類似判定処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the similarity determination process procedure which a similarity determination part performs. 小領域画像から生成された輝度値のヒストグラムの一例を示す説明図である。It is explanatory drawing which shows an example of the histogram of the luminance value produced | generated from the small area image. 小領域画像から生成された輝度値のヒストグラムの一例を示す説明図である。It is explanatory drawing which shows an example of the histogram of the luminance value produced | generated from the small area image. 輝度値のヒストグラムの最頻値を0にシフトし、重ね合わせたヒストグラムの一例を示す説明図である。It is explanatory drawing which shows an example of the histogram which shifted the mode value of the histogram of a luminance value to 0, and was superimposed. 類似判定部によって類似していると判定された小領域の一例を示す説明図である。It is explanatory drawing which shows an example of the small area | region determined with the similarity determination part being similar. 類似判定の結果から中領域生成部が中領域を生成した結果の一例を示す説明図である。It is explanatory drawing which shows an example of the result as which the middle region production | generation part produced | generated the middle region from the result of similarity determination. 第2の実施の形態にかかる画像処理装置の構成を示すブロック図である。It is a block diagram which shows the structure of the image processing apparatus concerning 2nd Embodiment. 上述した実施の形態にかかる画像処理装置のハードウェア構成の一例を示す説明図である。It is explanatory drawing which shows an example of the hardware constitutions of the image processing apparatus concerning embodiment mentioned above.

符号の説明Explanation of symbols

100 200 画像処理装置
101 領域分割部
102 類似判定部
103 中領域生成部
104 ガンマ変換テーブル生成部
105 画像変換部
106 不連続補正部
207 補正ガンマ変換テーブル生成部
208 補正画像変換部
DESCRIPTION OF SYMBOLS 100 200 Image processing apparatus 101 Area division part 102 Similarity determination part 103 Middle area | region production | generation part 104 Gamma conversion table production | generation part 105 Image conversion part 106 Discontinuous correction part 207 Correction | amendment gamma conversion table generation part 208 Correction | amendment image conversion part

Claims (9)

入力画像を所定のサイズの複数の小領域画像に分割する領域分割部と、
前記小領域画像の画素値に基づいて、分割された複数の小領域画像それぞれが互いに類似するか否かを判定する類似判定部と、
互いに類似すると判定された複数の小領域画像からなる中領域画像の画素値に基づいて、ガンマ変換テーブルを生成するガンマ変換テーブル生成部と、
前記中領域画像を、前記ガンマ変換テーブルで変換した変換中領域画像を生成する画像変換部と、
互いに隣接する前記変換中領域画像の境界近傍の画素の画素値を、当該画素と前記変換中領域画像それぞれとの関係に基づく重み係数によって重み付けした変換テーブルを用いて補正する補正部と、
を備えることを特徴とする画像処理装置。
An area dividing unit that divides an input image into a plurality of small area images of a predetermined size;
A similarity determination unit that determines whether or not each of the plurality of divided small region images is similar to each other based on the pixel value of the small region image;
A gamma conversion table generating unit that generates a gamma conversion table based on pixel values of a middle region image composed of a plurality of small region images determined to be similar to each other;
An image conversion unit that generates a converted middle region image obtained by converting the middle region image with the gamma conversion table;
A correction unit that corrects the pixel values of the pixels in the vicinity of the boundary between the conversion-target region images adjacent to each other using a conversion table weighted by a weighting factor based on the relationship between the pixel and each of the conversion-target region images;
An image processing apparatus comprising:
前記補正部は、前記変換中領域画像の境界近傍の画素の画素値を、当該画素と前記変換中領域画像それぞれとの距離が短い程重み係数を大きくして重み付けた変換テーブルを用いて補正すること、を特徴とする請求項1に記載の画像処理装置。   The correction unit corrects a pixel value of a pixel near a boundary of the mid-conversion image using a conversion table weighted by increasing a weighting factor as the distance between the pixel and the mid-conversion image is shorter. The image processing apparatus according to claim 1, wherein: 前記補正部は、前記変換中領域画像の境界近傍の画素を、前記変換中領域画像それぞれの面積の大きさに応じた重み係数で重み付けした変換テーブルを用いて補正すること、を特徴とする請求項1または請求項2に記載の画像処理装置。   The correction unit corrects a pixel in the vicinity of a boundary of the mid-conversion image using a conversion table weighted with a weighting factor corresponding to the size of each area of the mid-conversion image. The image processing apparatus according to claim 1 or 2. 前記補正部は、前記変換中領域画像の境界近傍の画素を、前記変換中領域画像それぞれの輝度の分布に応じた重み係数で重み付けした変換テーブルを用いて補正すること、を特徴とする請求項2または請求項3に記載の画像処理装置。   The correction unit corrects a pixel in the vicinity of a boundary of the mid-conversion image using a conversion table weighted with a weighting coefficient corresponding to a luminance distribution of each mid-conversion image. The image processing apparatus according to claim 2. 入力画像を所定のサイズの複数の小領域画像に分割する領域分割部と、
前記小領域画像の画素値に基づいて、分割された複数の小領域画像それぞれが互いに類似するか否かを判定する類似判定部と、
互いに類似すると判定された複数の小領域画像からなる中領域画像の画素値に基づいて、ガンマ変換テーブルを生成するガンマ変換テーブル生成部と、
生成された前記ガンマ変換テーブルに対応する中領域画像と、前記中領域画像それぞれとの関係に基づく重み係数によって重み付けしたガンマ変換テーブルを用いて補正ガンマ変換テーブルを生成する補正ガンマ変換テーブル生成部と、
前記中領域画像を、生成された前記補正ガンマ変換テーブルで変換する画像変換部と、
を備えることを特徴とする画像処理装置。
An area dividing unit that divides an input image into a plurality of small area images of a predetermined size;
A similarity determination unit that determines whether or not each of the plurality of divided small region images is similar to each other based on the pixel value of the small region image;
A gamma conversion table generating unit that generates a gamma conversion table based on pixel values of a middle region image composed of a plurality of small region images determined to be similar to each other;
A corrected gamma conversion table generating unit that generates a corrected gamma conversion table using a middle region image corresponding to the generated gamma conversion table and a gamma conversion table weighted by a weighting factor based on a relationship between each of the middle region images; ,
An image conversion unit for converting the middle region image with the generated correction gamma conversion table;
An image processing apparatus comprising:
前記補正ガンマ変換テーブル生成部は、生成された前記ガンマ変換テーブルに対応する前記中領域画像と、当該中領域画像以外の中領域画像との距離が短い程重み係数を大きくして重み付けしたガンマ変換テーブルを用いて補正ガンマ変換テーブルを生成すること、を特徴とする請求項5に記載の画像処理装置。   The correction gamma conversion table generation unit is configured to perform gamma conversion in which a weighting factor is increased and weighted as the distance between the intermediate region image corresponding to the generated gamma conversion table and the intermediate region image other than the intermediate region image is shorter. The image processing apparatus according to claim 5, wherein a correction gamma conversion table is generated using the table. 前記補正ガンマ変換テーブル生成部は、生成された前記ガンマ変換テーブルに対応する前記中領域画像と、当該中領域画像以外の中領域画像との輝度分布の類似度に応じた重み係数で重み付けしたガンマ変換テーブルを用いて補正ガンマ変換テーブルを生成すること、を特徴とする請求項5または請求項6に記載の画像処理装置。   The corrected gamma conversion table generation unit weights a gamma weighted with a weighting factor according to the similarity of luminance distribution between the middle area image corresponding to the generated gamma conversion table and a middle area image other than the middle area image. The image processing apparatus according to claim 5, wherein a correction gamma conversion table is generated using the conversion table. 画像処置装置で実行される画像処理方法であって、
領域分割部が、入力画像を所定のサイズの複数の小領域画像に分割する領域分割工程と、
類似判定部が、前記小領域画像の画素値に基づいて、分割された複数の小領域画像それぞれが互いに類似するか否かを判定する類似判定工程と、
ガンマ変換テーブル生成部が、互いに類似すると判定された複数の小領域画像からなる中領域画像の画素値に基づいて、ガンマ変換テーブルを生成するガンマ変換テーブル生成工程と、
画像変換部が、前記中領域画像を、前記ガンマ変換テーブルで変換した変換中領域画像を生成する画像変換工程と、
補正部が、互いに隣接する前記変換中領域画像の境界近傍の画素の画素値を、当該画素と前記変換中領域画像それぞれとの関係に基づく重み係数によって重み付けした変換テーブルを用いて補正する補正工程と、
を含むことを特徴とする画像処理方法。
An image processing method executed by an image processing apparatus,
An area dividing unit that divides the input image into a plurality of small area images of a predetermined size; and
A similarity determination step for determining whether or not each of the plurality of divided small region images is similar to each other based on a pixel value of the small region image;
A gamma conversion table generating unit that generates a gamma conversion table based on pixel values of a middle region image composed of a plurality of small region images determined to be similar to each other;
An image conversion step for generating a converted middle region image obtained by converting the middle region image with the gamma conversion table;
A correction step in which the correction unit corrects the pixel values of the pixels in the vicinity of the boundary between the conversion-in-progress region images adjacent to each other using a conversion table weighted by a weighting coefficient based on the relationship between the pixel and each of the conversion-in-progress region images. When,
An image processing method comprising:
画像処置装置で実行される画像処理方法であって、
領域分割部が、入力画像を所定のサイズの複数の小領域画像に分割する領域分割工程と、
類似判定部が、前記小領域画像の画素値に基づいて、分割された複数の小領域画像それぞれが互いに類似するか否かを判定する類似判定工程と、
ガンマ変換テーブル生成部が、互いに類似すると判定された複数の小領域画像からなる中領域画像の画素値に基づいて、ガンマ変換テーブルを生成するガンマ変換テーブル生成工程と、
補正ガンマ変換テーブル生成部が、生成された前記ガンマ変換テーブルに対応する中領域画像と、前記中領域画像それぞれとの関係に基づく重み係数によって重み付けしたガンマ変換テーブルを用いて補正ガンマ変換テーブルを生成する補正ガンマ変換テーブル生成工程と、
画像変換部が、前記中領域画像を、生成された前記補正ガンマ変換テーブルで変換する画像変換工程と、
を含むことを特徴とする画像処理方法。
An image processing method executed by an image processing apparatus,
An area dividing step of dividing the input image into a plurality of small area images of a predetermined size;
A similarity determination step for determining whether or not each of the plurality of divided small region images is similar to each other based on a pixel value of the small region image;
A gamma conversion table generating unit that generates a gamma conversion table based on pixel values of a middle region image composed of a plurality of small region images determined to be similar to each other;
A corrected gamma conversion table generation unit generates a corrected gamma conversion table using a gamma conversion table weighted by a weighting coefficient based on a relationship between the generated middle area image corresponding to the generated gamma conversion table and each of the middle area images. A correction gamma conversion table generation step to perform,
An image conversion step in which the image conversion unit converts the middle region image with the generated correction gamma conversion table;
An image processing method comprising:
JP2008052938A 2008-03-04 2008-03-04 Image processing apparatus and method Pending JP2009212750A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008052938A JP2009212750A (en) 2008-03-04 2008-03-04 Image processing apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008052938A JP2009212750A (en) 2008-03-04 2008-03-04 Image processing apparatus and method

Publications (1)

Publication Number Publication Date
JP2009212750A true JP2009212750A (en) 2009-09-17

Family

ID=41185484

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008052938A Pending JP2009212750A (en) 2008-03-04 2008-03-04 Image processing apparatus and method

Country Status (1)

Country Link
JP (1) JP2009212750A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020198476A (en) * 2019-05-30 2020-12-10 株式会社リコー Image processing device, program, and image processing method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020198476A (en) * 2019-05-30 2020-12-10 株式会社リコー Image processing device, program, and image processing method
JP7287118B2 (en) 2019-05-30 2023-06-06 株式会社リコー Image processing device, program, and image processing method

Similar Documents

Publication Publication Date Title
US8244054B2 (en) Method, apparatus and integrated circuit capable of reducing image ringing noise
JP6623832B2 (en) Image correction apparatus, image correction method, and computer program for image correction
JP6097588B2 (en) Image processing apparatus and image processing method
JP5367667B2 (en) Image processing device
JP5158202B2 (en) Image correction apparatus and image correction method
JP2009093323A (en) Image processing device and program
US10282830B2 (en) Apparatus for image contrast enhancement and method, electronic equipment
KR20090020917A (en) Method and apparatus for reducing various noises of image simultaneously
KR101517360B1 (en) Apparatus and method for enhancing image based on luminance information of pixel
JP5614550B2 (en) Image processing method, image processing apparatus, and program
JP2007336419A (en) Luminance conversion apparatus
JP6583008B2 (en) Image correction apparatus, image correction method, and computer program for image correction
JP6624061B2 (en) Image processing method, image processing device, and recording medium for storing image processing program
KR101101434B1 (en) Apparatus for improving sharpness of image
JP2017107366A (en) Image processing device and pogram
KR100882085B1 (en) Method for enhancing contrast of image
JP2009212750A (en) Image processing apparatus and method
JP2016201037A (en) Image processing device, image processing method, and program
JP2019045981A (en) Image processing apparatus, image processing method, and program
JP4771087B2 (en) Image processing apparatus and image processing program
JPWO2013161840A1 (en) Image processing method and image processing apparatus
JP2018128764A (en) Image processing device, image processing method and program
JP2008021219A (en) Image processing apparatus and method
TWI389571B (en) Image processing method and image processing apparatus
JP4930638B2 (en) Image correction apparatus and image correction method