Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5701010B2 - Image processing apparatus and control method thereof - Google Patents
[go: Go Back, main page]

JP5701010B2 - Image processing apparatus and control method thereof - Google Patents

Image processing apparatus and control method thereof Download PDF

Info

Publication number
JP5701010B2
JP5701010B2 JP2010237467A JP2010237467A JP5701010B2 JP 5701010 B2 JP5701010 B2 JP 5701010B2 JP 2010237467 A JP2010237467 A JP 2010237467A JP 2010237467 A JP2010237467 A JP 2010237467A JP 5701010 B2 JP5701010 B2 JP 5701010B2
Authority
JP
Japan
Prior art keywords
gradation
image
value
divided image
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.)
Expired - Fee Related
Application number
JP2010237467A
Other languages
Japanese (ja)
Other versions
JP2012090230A (en
Inventor
裕紀 進藤
裕紀 進藤
金井 泉
泉 金井
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2010237467A priority Critical patent/JP5701010B2/en
Publication of JP2012090230A publication Critical patent/JP2012090230A/en
Application granted granted Critical
Publication of JP5701010B2 publication Critical patent/JP5701010B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Description

本発明は、画像を複数の領域に分割して処理を行う画像処理装置に関するものである。   The present invention relates to an image processing apparatus that performs processing by dividing an image into a plurality of regions.

画像や表示装置の高解像度化に伴い、画像を複数の領域に分割して複数の画像処理部を用いて画像補正する技術がある。下記の特許文献1には、複数の領域に分割された各画像から各画像処理部が検出したヒストグラムなどの総和データを用いて画像処理を行う技術が開示されている。複数の画像処理部が検出した複数の総和データを統計値算出部が取得し、取得した総和データから作成した統計値に基づいて各画像処理部が画像処理を行う。   As the resolution of an image or a display device increases, there is a technique in which an image is divided into a plurality of regions and image correction is performed using a plurality of image processing units. Patent Document 1 below discloses a technique for performing image processing using total data such as a histogram detected by each image processing unit from each image divided into a plurality of regions. The statistical value calculation unit acquires a plurality of total data detected by the plurality of image processing units, and each image processing unit performs image processing based on the statistical values created from the acquired total data.

特開2006−71938号公報JP 2006-71938 A

しかし、特許文献1では、各画像処理部から統計値算出部へ送信するデータは、各画像から検出した値そのものであるヒストグラムなどの総和データであるため、送信するデータ量が多いのでデータ送信に時間がかかってしまう。データ送信に時間がかかると、画像処理を行うための時間が削減されたり、実時間での画像処理が難しくなったりするという問題があった。   However, in Patent Document 1, the data transmitted from each image processing unit to the statistical value calculation unit is total data such as a histogram that is a value itself detected from each image, and therefore the amount of data to be transmitted is large. It takes time. When data transmission takes time, there is a problem that time for image processing is reduced, or image processing in real time becomes difficult.

よって本発明においては、複数の領域に分割された各画像の画像処理を行う各画像処理部から送信するデータ量を削減することでデータ送信時間を削減し、画像処理を行うための時間を確保することを可能とすることを目的とする。   Therefore, in the present invention, the data transmission time is reduced by reducing the amount of data transmitted from each image processing unit that performs image processing of each image divided into a plurality of regions, and the time for performing image processing is secured. It aims to make it possible to do.

上記目的を達成するために、本発明の画像処理装置は、入力画像を複数の領域に分割して得られた複数の分割画像に対して画像処理を行う複数の画像処理部と、各分割画像の階調を補正するための各分割画像の補正用データを作成する補正用データ作成手段と、を備え、各画像処理部は、前記複数の分割画像の各々におけるヒストグラムを作成するヒストグラム作成手段と、前記ヒストグラムから、各分割画像における階調の代表値と、各分割画像内で他の分割画像と接する領域に関する階調の境界値とを含む中間データを作成する中間データ作成手段と、前記補正用データ作成手段により作成された前記補正用データに基づいて各分割画像の階調を補正する処理を行うための補正処理手段と、を有し、前記補正用データ作成手段は、前記中間データ作成手段により作成された、前記複数の分割画像の各々における前記中間データから、各分割画像の階調を補正するための各分割画像の補正用データを作成することを特徴とする。 In order to achieve the above object, the image processing apparatus of the present invention includes a plurality of image processing unit for performing image processing for a plurality of divided images obtained by dividing an input image into a plurality of regions, each divided image Correction data creating means for creating correction data for each divided image for correcting the gradation of each of the plurality of divided images , and each image processing unit comprises a histogram creating means for creating a histogram in each of the plurality of divided images; , from the histogram, and the intermediate data generating means for generating intermediate data including the representative value of the gradation in each divided image, a boundary value of the gradation of a region which is in contact with the other divided image in each divided image, before Symbol have a, a correction processing means for performing processing for correcting the gradation of each of the divided image based on the correction data generated by the correction data forming means, the correction data generation means, said in It created by the data creation means, from the intermediate data in each of the plurality of divided images, characterized by creating correction data for each divided image in order to correct the gradation of each divided image.

本発明によれば、複数の領域に分割された各画像の画像処理を行う各画像処理部から送信するデータ量を削減することでデータ送信時間を削減し、画像処理を行うための時間を確保することができる。   According to the present invention, the data transmission time is reduced by reducing the amount of data transmitted from each image processing unit that performs image processing of each image divided into a plurality of regions, and the time for performing image processing is ensured. can do.

実施例1にかかる画像処理装置のブロック図である。1 is a block diagram of an image processing apparatus according to Embodiment 1. FIG. 入力画像と分割画像の関係を示す図である。It is a figure which shows the relationship between an input image and a divided image. 実施例1にかかる画像処理部のブロック図である。1 is a block diagram of an image processing unit according to Embodiment 1. FIG. 分割画像と単位領域の関係を示す図である。It is a figure which shows the relationship between a divided image and a unit area. 注目階調の検出方法を説明する図である。It is a figure explaining the detection method of an attention gradation. 分割画像Saの代表値及び分割画像Saの境界値を示す図である。It is a figure which shows the representative value of divided image Sa, and the boundary value of divided image Sa. 実施例1にかかる補正用データ作成部のブロック図である。3 is a block diagram of a correction data creation unit according to Embodiment 1. FIG. 補正用データに含まれる補正用境界値の単位領域を説明する図である。It is a figure explaining the unit area | region of the boundary value for correction | amendment contained in the data for correction | amendment. 全画面γカーブの変換特性を示す図である。It is a figure which shows the conversion characteristic of a full screen gamma curve. 画素Pにおける局所補正値をバイリニア補間により求める処理を説明する図である。It is a figure explaining the process which calculates | requires the local correction value in the pixel P by bilinear interpolation. 局所γカーブの変換特性を示す図である。It is a figure which shows the conversion characteristic of a local (gamma) curve. 実施例2にかかる画像処理装置のブロック図である。FIG. 3 is a block diagram of an image processing apparatus according to a second embodiment. 実施例2にかかる画像処理部のブロック図である。FIG. 6 is a block diagram of an image processing unit according to a second embodiment.

以下、添付図面を参照して、本発明の実施例を説明する。   Embodiments of the present invention will be described below with reference to the accompanying drawings.

(実施例1)
図1は本実施例のブロック図である。図1に示す画像処理装置100は、画像分割部102と、画像処理部103a、103b、103c、103dと、補正用データ作成部104、画像結合部105から構成されている。本実施例では、一つの画像処理部は一つのIC(Integrated Circuit)に実装されているものとする。以上のように構成された画像処理装置100の動作を以下で説明する。
Example 1
FIG. 1 is a block diagram of this embodiment. An image processing apparatus 100 illustrated in FIG. 1 includes an image dividing unit 102, image processing units 103a, 103b, 103c, and 103d, a correction data creating unit 104, and an image combining unit 105. In this embodiment, it is assumed that one image processing unit is mounted on one IC (Integrated Circuit). The operation of the image processing apparatus 100 configured as described above will be described below.

画像分割部102は、入力画像を複数の領域に分割して複数の分割画像を作成する。図2は画像分割部102による入力画像の分割方法を説明する図である。図2(a)は画像分割部102に入力される入力画像Sを示している。本実施例では、入力画像Sの解像度は、3840×2160画素とする。図2(b)は、画像分割部102により作成される分割画像を示すものであり、本実施例では入力画像Sを4つの分割画像Sa、Sb、Sc、Sdに分割する。分割画像Sa、Sb、Sc、Sdは画像処理部103a、103b、103c、103dにそれぞれ出力されて、各画像処理部で画像処理される。分割画像Sa、Sb、Sc、Sdの解像度は1920×1080画素とする。   The image dividing unit 102 divides the input image into a plurality of regions and creates a plurality of divided images. FIG. 2 is a diagram for explaining a method of dividing an input image by the image dividing unit 102. FIG. 2A shows an input image S input to the image dividing unit 102. In this embodiment, the resolution of the input image S is 3840 × 2160 pixels. FIG. 2B shows a divided image created by the image dividing unit 102. In this embodiment, the input image S is divided into four divided images Sa, Sb, Sc, and Sd. The divided images Sa, Sb, Sc, and Sd are output to the image processing units 103a, 103b, 103c, and 103d, respectively, and are subjected to image processing by each image processing unit. The resolution of the divided images Sa, Sb, Sc, and Sd is 1920 × 1080 pixels.

次に、画像処理部103aについて説明する。画像処理部103b、103c、103dは画像処理部103aと同様の構成であり、同様の処理を行うため、本実施例では画像処理部103aについてのみ説明する。   Next, the image processing unit 103a will be described. Since the image processing units 103b, 103c, and 103d have the same configuration as the image processing unit 103a and perform the same processing, only the image processing unit 103a will be described in the present embodiment.

図3は、画像処理部103aの内部構成を示すブロック図である。画像処理部103aは、ヒストグラム作成部10a、注目階調検出部11a、中間データ作成部12a、差分値算出部13a、全画面γ生成部14a、局所γ生成部15a、γ補正処理部16a、IF(インターフェース)部17aから構成されている。また、注目階調検出部11a、中間データ作成部12a、差分値算出部13a、全画面γ生成部14aは、マイコン18aの内部にあるものとする。全画面γ生成部14aは、マイコン18aの外部にあってもよい。   FIG. 3 is a block diagram showing an internal configuration of the image processing unit 103a. The image processing unit 103a includes a histogram creation unit 10a, a target gradation detection unit 11a, an intermediate data creation unit 12a, a difference value calculation unit 13a, a full screen γ generation unit 14a, a local γ generation unit 15a, a γ correction processing unit 16a, an IF (Interface) part 17a is comprised. In addition, it is assumed that the target gradation detection unit 11a, the intermediate data creation unit 12a, the difference value calculation unit 13a, and the full screen γ generation unit 14a are inside the microcomputer 18a. The full screen γ generation unit 14a may be outside the microcomputer 18a.

ヒストグラム作成部10aは、分割画像Saを複数に分割した各単位領域における輝度ヒストグラムHa(i)を検出する。本実施例では例えば、図4のように分割画像Saを横5×縦3=15個の単位領域a0〜a14に分割する。従って、ヒストグラム作成部10aからは15個の輝度ヒストグラムHa(0)〜Ha(14)が検出される。輝度ヒストグラムHa(i)は例えば輝度を0〜255の256階調で各階調の画素数をカウントしたものとする。ヒストグラム作成部10aで検出された輝度ヒストグラムHa(0)〜Ha(14)は、注目階調検出部11aに出力される。   The histogram creation unit 10a detects a luminance histogram Ha (i) in each unit region obtained by dividing the divided image Sa. In the present embodiment, for example, as shown in FIG. 4, the divided image Sa is divided into 5 × 3 × 15 unit areas a0 to a14. Accordingly, fifteen luminance histograms Ha (0) to Ha (14) are detected from the histogram creation unit 10a. In the luminance histogram Ha (i), for example, the number of pixels of each gradation is counted with 256 gradations of 0 to 255. The luminance histograms Ha (0) to Ha (14) detected by the histogram creation unit 10a are output to the target gradation detection unit 11a.

注目階調検出部11aは、各輝度ヒストグラムHa(i)から暗部注目階調Nba(i)及び明部注目階調Nwa(i)を検出する。図5は、輝度ヒストグラムHa(i)から暗部注目階調Nba(i)及び明部注目階調Nwa(i)を検出する方法について説明する図である。   The attention gradation detecting unit 11a detects the dark part attention gradation Nba (i) and the bright part attention gradation Nwa (i) from each luminance histogram Ha (i). FIG. 5 is a diagram for explaining a method of detecting the dark part attention gradation Nba (i) and the bright part attention gradation Nwa (i) from the luminance histogram Ha (i).

輝度ヒストグラムHa(i)における注目階調とは、階調性を高めることが望ましい階調値である。注目階調とは輝度ヒストグラムHa(i)において(1)度数が所定の閾値以上かつ(2)極大値となる階調値で、かつ(3)該階調値を含む所定範囲内の度数の変動量が所定の基準より小さい階調値であり、以上(1)〜(3)の3つの条件を満たす階調値である。ここで(2)の条件での度数が極大値か否かは、例えば、注目階調か否かの対象とする階調値の度数と、その前後それぞれm個の階調値(mは1以上の整数)の度数とを比較することにより判断すればよい。比較する階調値の度数の中での最大値を極大値とする。なお、対象とする階調値の前後それぞれm個の階調値とは、対象とする階調値よりも小さなm個の階調値と、対象とする階調値よりも大きなm個の階調値を意味する。(3)の条件は、画像が同一色(同一の階調値)の領域(例えば、レターボックスや、データ放送などの図形や文字)を含む場合に局所的に度数の変動量が大きくなる階調値を除外するための条件である。(3)の条件を満たすか否かは、注目階調か否かの対象とする階調値の度数と、その階調値を除く±nの階調値(nは1以上の整数)の度数の総和に所定値を乗算した値とを比較することなどにより判断すればよい。   The target gradation in the luminance histogram Ha (i) is a gradation value for which it is desirable to improve gradation. The target gradation is (1) a gradation value in which the frequency is equal to or greater than a predetermined threshold and (2) a maximum value in the luminance histogram Ha (i), and (3) a frequency within a predetermined range including the gradation value. The variation value is a gradation value smaller than a predetermined reference, and is a gradation value satisfying the above three conditions (1) to (3). Here, whether or not the frequency under the condition (2) is a maximum value is, for example, the frequency of the target gradation value whether or not it is the target gradation and m gradation values before and after that (m is 1). What is necessary is just to judge by comparing with the frequency of the above integer). The maximum value among the frequencies of the gradation values to be compared is set as the maximum value. Note that m tone values before and after the target tone value are m tone values smaller than the target tone value and m levels larger than the target tone value. Means the key value. The condition (3) is that when the image includes an area of the same color (same gradation value) (for example, a letterbox or a graphic or character such as data broadcasting), the frequency variation amount is locally increased. This is a condition for excluding key values. Whether or not the condition of (3) is satisfied is determined by the frequency of the target gradation value as to whether or not it is the target gradation, and the gradation value of ± n excluding the gradation value (n is an integer of 1 or more) The determination may be made by comparing with a value obtained by multiplying the sum of frequencies by a predetermined value.

輝度ヒストグラムHa(i)における暗部注目階調は、階調値が低階調側の注目階調である。本実施例では、輝度ヒストグラムが256階調の場合、階調値が2〜126の範囲で上記の条件を満たす注目階調の中の最小注目階調を暗部注目階調とする。階調値が2〜126の範囲に注目階調がない場合は、暗部注目階調は128とする。輝度ヒストグラムHa(i)における明部注目階調は、階調値が高階調側の注目階調である。本実施例は、輝度ヒストグラムが256階調の場合、階調値が130〜253の範囲で上記の条件を満たす注目階調の中の最大注目階調を明部注目階調とする。階調値が130〜253の範囲に注目階調がない場合は、明部注目階調は128とする。階調値0、1、127、128、129、254、255は、上下それぞれ2つの階調値の度数を注目階調の検出に用いるために注目階調の範囲から除外している。   The dark part attention gradation in the luminance histogram Ha (i) is an attention gradation whose gradation value is on the low gradation side. In this embodiment, when the luminance histogram is 256 gradations, the minimum attention gradation among the attention gradations satisfying the above condition in the range of gradation values from 2 to 126 is set as the dark part attention gradation. When there is no attention gradation in the range of gradation values 2 to 126, the dark part attention gradation is set to 128. The bright part attention gradations in the luminance histogram Ha (i) are attention gradations whose gradation values are on the higher gradation side. In this embodiment, when the luminance histogram is 256 gradations, the maximum attention gradation among the attention gradations satisfying the above condition in the gradation value range of 130 to 253 is set as the bright part attention gradation. When there is no target gradation in the range of gradation values 130 to 253, the bright part attention gradation is set to 128. In the gradation values 0, 1, 127, 128, 129, 254, and 255, the frequencies of the two upper and lower gradation values are excluded from the attention gradation range in order to use the attention gradation detection.

図4のように分割画像Saを単位領域に分割した場合、注目階調検出部11aは、輝度ヒストグラムHa(0)〜Ha(14)から暗部注目階調Nba(0)〜Nba(14)及び明部注目階調Nwa(0)〜Nwa(14)をそれぞれ検出する。検出した暗部注目階調Nba(0)〜Nba(14)及び明部注目階調Nwa(0)〜Nwa(14)は中間データ作成部12aおよび差分値算出部13aに出力される。   When the divided image Sa is divided into unit areas as shown in FIG. 4, the attention gradation detecting unit 11a determines the dark part attention gradations Nba (0) to Nba (14) and the luminance histograms Ha (0) to Ha (14) and Bright part attention gradations Nwa (0) to Nwa (14) are detected. The detected dark part attention gradations Nba (0) to Nba (14) and bright part attention gradations Nwa (0) to Nwa (14) are output to the intermediate data creation unit 12a and the difference value calculation unit 13a.

中間データ作成部12aは、暗部注目階調Nba(0)〜Nba(14)及び明部注目階調Nwa(0)〜Nwa(14)から分割画像Saの中間データMaを作成する。分割画像Saの中間データMaとは、以下で述べる分割画像Saの代表値と境界値からなるデータである。   The intermediate data creation unit 12a creates the intermediate data Ma of the divided image Sa from the dark part attention gradations Nba (0) to Nba (14) and the bright part attention gradations Nwa (0) to Nwa (14). The intermediate data Ma of the divided image Sa is data including a representative value and a boundary value of the divided image Sa described below.

代表値とは、複数の暗部注目階調Nba(0)〜Nba(14)の中の最小値mina、及び、複数の明部注目階調Nwa(0)〜Nwa(14)の中の最大値maxaからなる。図4のように分割画像Saを単位領域に分割した場合、最小値mina及び最大値maxaは以下の式1,2により求められる。
mina=min[Nba(0)〜Hba(14)](式1)
min[ ]:[ ]内の最小値
maxa=max[Nwa(0)〜Nwa(14)](式2)
max[ ]:[ ]内の最大値
一方境界値とは、分割画像Sa内で、他の分割画像Sb、Sc、Sdと接している単位領域の暗部注目階調Nba(i)及び明部注目階調Nwa(i)のことである。
The representative values are the minimum value mina of the plurality of dark part attention gradations Nba (0) to Nba (14) and the maximum value of the plurality of bright part attention gradations Nwa (0) to Nwa (14). It consists of maxa. When the divided image Sa is divided into unit areas as shown in FIG. 4, the minimum value mina and the maximum value maxa are obtained by the following expressions 1 and 2.
mina = min [Nba (0) to Hba (14)] (Formula 1)
min []: Minimum value in [] maxa = max [Nwa (0) to Nwa (14)] (Formula 2)
max []: Maximum value in [] On the other hand, the boundary value is the dark part attention gradation Nba (i) and the bright part attention of the unit area in contact with the other divided images Sb, Sc, Sd in the divided image Sa. This is the gradation Nwa (i).

図6を用いて分割画像Saの代表値と境界値について説明する。図6は、図4のように単位領域a0〜a14に分割された分割画像Saの各単位領域の暗部注目階調Nba(i)及び明部注目階調Nwa(i)を表した例である。図6(a)の例において15個の暗部注目階調Nba(0)〜Nba(14)の最小値minaは36である。また、図6(b)において15個の明部注目階調Nwa(0)〜Nwa(14)の最大値maxaは225である。以上より、最小値mina=36および、最大値maxa=225が分割画像Saの代表値となる。   The representative value and boundary value of the divided image Sa will be described with reference to FIG. FIG. 6 is an example showing the dark part attention gradation Nba (i) and the bright part attention gradation Nwa (i) of each unit area of the divided image Sa divided into the unit areas a0 to a14 as shown in FIG. . In the example of FIG. 6A, the minimum value mina of the 15 dark part attention gradations Nba (0) to Nba (14) is 36. In FIG. 6B, the maximum value maxa of the 15 bright part attention gradations Nwa (0) to Nwa (14) is 225. From the above, the minimum value mina = 36 and the maximum value maxa = 225 are the representative values of the divided image Sa.

また、分割画像Saは、図2(b)に示すように右に分割画像Sb、右下に分割画像Sd、下に分割画像Scがあり、図6の灰色で塗りつぶした単位領域a4、a9〜a14が他の分割画像Sb、Sc、Sdと接している。よって分割画像Saの境界値は、単位領域a4、a9〜a14各々の暗部注目階調Nba(i)及び明部注目階調Nwa(i)からなる。入力画像が分割画像Sa及び分割画像Sbからなる場合(入力画像を2つに分割し、分割画像Saの右に分割画像Sbがある場合)、分割画像Saの境界値は単位領域a4、a9、a14各々の暗部注目階調Nba(i)及び明部注目階調Nwa(i)からなる。   As shown in FIG. 2B, the divided image Sa has a divided image Sb on the right, a divided image Sd on the lower right, and a divided image Sc on the lower side. The unit areas a4, a9 to. a14 is in contact with the other divided images Sb, Sc, and Sd. Therefore, the boundary value of the divided image Sa is composed of the dark part attention gradation Nba (i) and the bright part attention gradation Nwa (i) of each of the unit regions a4 and a9 to a14. When the input image is composed of the divided image Sa and the divided image Sb (when the input image is divided into two and the divided image Sb is on the right of the divided image Sa), the boundary values of the divided image Sa are unit regions a4, a9, Each of a14 includes a dark part attention gradation Nba (i) and a bright part attention gradation Nwa (i).

中間データ作成部12aで作成された、分割画像Saの代表値及び分割画像Saの境界値からなる分割画像Saの中間データMaは、IF部17aを通して補正用データ作成部104へ出力される。   The intermediate data Ma of the divided image Sa made up of the representative value of the divided image Sa and the boundary value of the divided image Sa created by the intermediate data creating unit 12a is output to the correction data creating unit 104 through the IF unit 17a.

補正用データ作成部104は、画像処理部103a、103b、103c、103dの各々の中間データ作成部で作成された中間データMa、Mb、Mc、Mdから補正用データUa、Ub、Uc、Udを作成する。中間データMbは分割画像Sbの代表値(minb,maxb)及び境界値からなり、中間データMcは分割画像Scの代表値(minc,maxc)及び境界値からなり、中間データMdは分割画像Sdの代表値(mind,maxd)及び境界値からなる。補正用データ作成部104における動作について図7を用いて説明する。   The correction data creation unit 104 obtains correction data Ua, Ub, Uc, Ud from the intermediate data Ma, Mb, Mc, Md created by the intermediate data creation unit of each of the image processing units 103a, 103b, 103c, 103d. create. The intermediate data Mb is composed of the representative values (minb, maxb) and boundary values of the divided image Sb, the intermediate data Mc is composed of the representative values (minc, maxc) and boundary values of the divided image Sc, and the intermediate data Md is the divided image Sd. It consists of representative values (mind, maxd) and boundary values. The operation in the correction data creation unit 104 will be described with reference to FIG.

本実施例において補正用データUa、Ub、Uc、Udはそれぞれ、以下で述べる全画面補正値と補正用境界値を含む。全画面補正値は、全画面暗部値B及び全画面明部値Wからなり、補正用データUa、Ub、Uc、Udにそれぞれ含まれる全画面補正値の全画面暗部値B及び全画面明部値Wは、いずれも同じ値で共通の値である。補正用境界値とは、任意の分割画像に接する他の分割画像内の単位領域における暗部注目階調及び明部注目階調である。   In this embodiment, the correction data Ua, Ub, Uc, and Ud each include a full-screen correction value and a correction boundary value described below. The full screen correction value includes a full screen dark portion value B and a full screen bright portion value W, and the full screen dark portion value B and the full screen bright portion of the full screen correction values included in the correction data Ua, Ub, Uc, Ud, respectively. The value W is the same value and a common value. The boundary value for correction is a dark part attention gradation and a bright part attention gradation in a unit region in another divided image in contact with an arbitrary divided image.

補正用データ作成部104において中間データ受信部71は、画像処理部103a、103b、103c、103dから送信された中間データMa、Mb、Mc、Mdを受信する。分離部72は各中間データから代表値と境界値とを分離し、各中間データの代表値を全画面補正値算出部73に送信し、各中間データの境界値を補正用境界値決定部74に送信する。   In the correction data creation unit 104, the intermediate data receiving unit 71 receives the intermediate data Ma, Mb, Mc, and Md transmitted from the image processing units 103a, 103b, 103c, and 103d. The separation unit 72 separates the representative value and the boundary value from each intermediate data, transmits the representative value of each intermediate data to the full-screen correction value calculation unit 73, and the boundary value of each intermediate data is determined as the correction boundary value determination unit 74. Send to.

全画面補正値算出部73は、全画面暗部値B及び全画面明部値Wからなる全画面補正値を算出する。全画面暗部値Bとは、中間データMa、Mb、Mc、Mdに含まれる各分割画像の代表値のうち最小値mina、minb、minc、mindの中の最小値である。また全画面明部値Wとは、各分割画像の代表値のうち最大値maxa、maxb、maxc、maxdの中の最大値である。つまり、全画面暗部値B及び全画面明部値Wは以下の式3,4により求められる。
B=min[mina、minb、minc、mind](式3)
W=max[maxa、maxb、maxc、maxd](式4)
The full screen correction value calculation unit 73 calculates a full screen correction value including the full screen dark part value B and the full screen bright part value W. The full screen dark area value B is the minimum value among the minimum values mina, minb, minc, and mind among the representative values of the divided images included in the intermediate data Ma, Mb, Mc, and Md. The full screen bright part value W is the maximum value among the maximum values maxa, maxb, maxc, and maxd among the representative values of each divided image. That is, the full screen dark part value B and the full screen bright part value W are obtained by the following equations 3 and 4.
B = min [mina, minb, minc, mind] (Formula 3)
W = max [maxa, maxb, maxc, maxd] (Formula 4)

補正用データに含まれる補正用境界値を、補正用データUaを例に説明する。補正用データUaに含まれる補正用境界値は、分割画像Saに接する他の分割画像の単位領域における暗部注目階調及び明部注目階調である。図8は、補正用データUaに含まれる補正用境界値について説明する図である。分割画像Saに接する他の分割画像の単位領域は、図8に灰色で示した分割画像Sbのb0、b5、b10及び分割画像Scのc0〜c4、及び分割画像Sdのd0である。よって、補正用データUaに含まれる分割画像Saの補正用境界値は、単位領域b0、b5、b10、c0〜c4、d0各々における暗部注目階調及び明部注目階調である。入力画像が分割画像Sa及び分割画像Sbからなる場合、補正用データUaに含まれる分割画像Saの補正用境界値は、単位領域b0、b5、b10各々における暗部注目階調及び明部注目階調である。   The correction boundary value included in the correction data will be described using the correction data Ua as an example. The correction boundary values included in the correction data Ua are the dark part attention gradation and the bright part attention gradation in the unit area of another divided image in contact with the divided image Sa. FIG. 8 is a diagram illustrating the correction boundary value included in the correction data Ua. The unit areas of the other divided images in contact with the divided image Sa are b0, b5, and b10 of the divided image Sb shown in gray in FIG. 8, c0 to c4 of the divided image Sc, and d0 of the divided image Sd. Therefore, the boundary values for correction of the divided image Sa included in the correction data Ua are the dark part attention gradation and the bright part attention gradation in each of the unit areas b0, b5, b10, c0 to c4, and d0. When the input image is composed of the divided image Sa and the divided image Sb, the correction boundary values of the divided image Sa included in the correction data Ua are the dark part attention gradation and the bright part attention gradation in each of the unit regions b0, b5, and b10. It is.

以上のように補正用データUaに含まれる分割画像Saの補正用境界値を、補正用境界値決定部74において分離部72から送信された境界値の中から決定する。同様の処理で、補正用データUbに含まれる分割画像Sbの補正用境界値、補正用データUcに含まれる分割画像Scの補正用境界値、補正用データUdに含まれる分割画像Sdの補正用境界値をそれぞれ決定する。   As described above, the correction boundary value of the divided image Sa included in the correction data Ua is determined from the boundary values transmitted from the separation unit 72 by the correction boundary value determination unit 74. In the same process, the correction boundary value of the divided image Sb included in the correction data Ub, the correction boundary value of the divided image Sc included in the correction data Uc, and the correction of the divided image Sd included in the correction data Ud. Each boundary value is determined.

補正用データ出力部は、全画面補正値算出部73で算出された全画面補正値と、補正用境界値決定部74で決定された各分割画像の補正用境界値とを各分割画像の補正用データUa、Ub、Uc、Udとして、各画像処理部に出力する。例えば分割画像Saの補正用データUaは、全画面補正値である全画面暗部値B及び全画面明部値Wと、分割画像Saの補正用境界値である単位領域b0、b5、b10、c0〜c4、d0における各暗部注目階調及び明部注目階調からなる。   The correction data output unit corrects each divided image by using the full screen correction value calculated by the full screen correction value calculation unit 73 and the correction boundary value of each divided image determined by the correction boundary value determination unit 74. The data is output to each image processing unit as use data Ua, Ub, Uc, Ud. For example, the correction data Ua for the divided image Sa includes the full-screen dark value B and the full-screen bright value W that are full-screen correction values, and unit areas b0, b5, b10, and c0 that are correction boundary values for the divided image Sa. ˜c4, d0 each dark portion attention gradation and bright portion attention gradation.

補正用データ作成部104から出力された補正用データUa、Ub、Uc、Udは、それぞれ画像処理部103a、103b、103c、103dへ転送される。画像処理部103aのIF部17aは、補正用データ作成部104が出力した補正用データUaを受信する。   The correction data Ua, Ub, Uc, Ud output from the correction data creation unit 104 are transferred to the image processing units 103a, 103b, 103c, 103d, respectively. The IF unit 17a of the image processing unit 103a receives the correction data Ua output from the correction data creation unit 104.

以上のように本実施例では、中間データと補正用データを複数の画像処理部と補正用データ作成部との間で転送する。複数の画像処理部と補正用データ作成部との間でデータを転送するバスとしては、例えばPCI(Peripheral Component Interconnect)などがある。中間データ、補正用データはヒストグラムなどの統計量と比較してデータ量が少ないため、データ転送に要する時間を低減することが可能である。   As described above, in this embodiment, intermediate data and correction data are transferred between the plurality of image processing units and the correction data creation unit. As a bus for transferring data between a plurality of image processing units and a correction data creation unit, for example, there is a PCI (Peripheral Component Interconnect). Since the intermediate data and the correction data have a smaller data amount than a statistical amount such as a histogram, the time required for data transfer can be reduced.

IF部17aで受信した補正用データUaは差分値算出部13aに出力される。このとき、補正用データUaのうち全画面補正値である全画面暗部値B及び全画面明部値Wは、差分値算出部13aだけでなく全画面γ生成部14aにも出力される。   The correction data Ua received by the IF unit 17a is output to the difference value calculation unit 13a. At this time, the full screen dark value B and the full screen bright value W, which are the full screen correction values in the correction data Ua, are output not only to the difference value calculation unit 13a but also to the full screen γ generation unit 14a.

本実施例でのγ補正は、全画面γ生成部14aにおいて補正用データUaに含まれる全画面補正値から求められる全画面γカーブで入力画像全体を一律に補正する。更に、差分値算出部13a及び局所γ生成部15aから求められる局所γカーブで入力画像内の各画素に応じた局所補正を行う。   In the γ correction in the present embodiment, the entire input image is uniformly corrected by the full screen γ curve obtained from the full screen correction value included in the correction data Ua in the full screen γ generation unit 14a. Furthermore, local correction corresponding to each pixel in the input image is performed with the local γ curve obtained from the difference value calculation unit 13a and the local γ generation unit 15a.

まず、全画面γカーブの生成方法について説明する。全画面γ生成部14aは、IF部17aで受信した補正用データUaに含まれる全画面補正値の全画面暗部値B及び全画面明部値Wから全画面γカーブを生成する。本実施例の全画面γカーブは、低階調データを補正する暗部カーブγB、高階調データを補正する明部カーブγWと、中間階調を補正する中間カーブγMから成る。   First, a method for generating a full screen γ curve will be described. The full screen γ generation unit 14a generates a full screen γ curve from the full screen dark part value B and the full screen bright part value W of the full screen correction value included in the correction data Ua received by the IF unit 17a. The full-screen γ curve of this embodiment includes a dark part curve γB for correcting low gradation data, a bright part curve γW for correcting high gradation data, and an intermediate curve γM for correcting intermediate gradations.

図9は全画面γカーブの元となる暗部カーブγB(g)及び明部カーブγW(g)の変換特性を示している。本実施例では画像データの階調分解能は8bit(0〜255階調)であるものとする。暗部カーブγB(g)は階調値0〜128の入力データをγ補正するカーブであり、明部カーブγW(g)は階調値192〜255の入力データをγ補正するカーブである。暗部カーブγB(g)及び明部カーブγW(g)のデータは、画像処理部103a内の不図示のメモリにあらかじめ格納してある。   FIG. 9 shows the conversion characteristics of the dark part curve γB (g) and the bright part curve γW (g) which are the basis of the full screen γ curve. In this embodiment, it is assumed that the gradation resolution of the image data is 8 bits (0 to 255 gradations). The dark part curve γB (g) is a curve for γ-correcting input data having a gradation value of 0 to 128, and the bright part curve γW (g) is a curve for γ-correcting input data having a gradation value of 192 to 255. The data of the dark part curve γB (g) and the bright part curve γW (g) are stored in advance in a memory (not shown) in the image processing unit 103a.

図9に示すように、暗部カーブγB(g)は126種類(g:2〜126、128)用意されている。式3により求められた全画面暗部値Bに応じて126種類の暗部カーブγB(g)(g:2〜126,128)の中から一つの暗部カーブγB(B)が選択される。全画面暗部値Bは、式3で求められるように各分割画像の代表値における暗部注目階調の最小値であるので、2〜126、128のいずれかの値をとる。暗部カーブγB(B)は、全画面暗部値B周辺の範囲の階調値における階調性を高めるための階調補正パラメータである。   As shown in FIG. 9, 126 types (g: 2 to 126, 128) of dark part curves γB (g) are prepared. One dark part curve γB (B) is selected from 126 types of dark part curves γB (g) (g: 2 to 126, 128) according to the full screen dark part value B obtained by Expression 3. Since the full screen dark area value B is the minimum value of the dark area attention gradation in the representative value of each divided image as calculated by Equation 3, it takes one of values from 2 to 126 or 128. The dark part curve γB (B) is a gradation correction parameter for enhancing the gradation in the gradation value in the range around the full screen dark part value B.

図9に示すように、明部カーブγW(g)は125種類(g:128、130〜253)用意されている。式4により求められた全画面明部値Wに応じて125種類の明部カーブγW(g)(g:128、130〜253)から一つの明部カーブγW(W)が選択される。全画面明部値Wは、式4で求められるように各分割画像の代表値における明部注目階調の最大値であるので、128、130〜253のいずれかの値をとる。明部カーブγW(W)は、全画面明部値W周辺の範囲の階調値における階調性を高めるための階調補正パラメータである。   As shown in FIG. 9, 125 types (g: 128, 130 to 253) of bright portion curves γW (g) are prepared. One bright part curve γW (W) is selected from 125 kinds of bright part curves γW (g) (g: 128, 130 to 253) according to the full screen bright part value W obtained by Expression 4. Since the full-screen bright part value W is the maximum value of the bright part attention gradation in the representative value of each divided image as calculated by Expression 4, it takes one of 128, 130 to 253. The bright part curve γW (W) is a gradation correction parameter for enhancing the gradation in the gradation value in the range around the full screen bright part value W.

このように低階調データ及び高階調データを補正するγカーブを選択することにより、全画面暗部値Bが低い場合ほど暗部に階調を割り付けるカーブが生成され、全画面明部値Wが高い場合ほど明部に階調を割り付けるカーブが生成される。以上のように決定したγカーブを用いて補正をすることで暗部と明部の視認性を上げることが可能である。   By selecting the γ curve for correcting the low gradation data and the high gradation data in this way, a curve for assigning gradation to the dark part is generated as the full screen dark part value B is low, and the full screen bright part value W is high. A curve for assigning gradation to the bright part is generated as the case goes. By correcting using the γ curve determined as described above, it is possible to improve the visibility of the dark part and the bright part.

中間カーブγMは階調値129〜191の入力データをγ補正するカーブである。中間γカーブγMは選択された暗部カーブγB(B)と明部カーブγW(W)の間の階調を直線補間により補間した変換特性とする。以上のように全画面γ生成部14aにおいて、暗部カーブγB、明部カーブγW及び中間カーブγMにより全画面γカーブが生成される。   The intermediate curve γM is a curve for γ-correcting input data with gradation values 129 to 191. The intermediate γ curve γM has a conversion characteristic obtained by interpolating the gradation between the selected dark portion curve γB (B) and the bright portion curve γW (W) by linear interpolation. As described above, in the full screen γ generation unit 14a, the full screen γ curve is generated by the dark part curve γB, the bright part curve γW, and the intermediate curve γM.

次に局所γカーブの生成方法について説明する。差分値算出部13aは、IF部17aから補正用データUaを受信し、注目階調検出部11aから分割画像Saの各単位領域における暗部注目階調Nba(i)及び明部注目階調Nwa(i)を受信する。つまり、差分値算出部13aは、全画面暗部値B及び全画面明部値Wからなる全画面補正値と、分割画像Saの各単位領域及び分割画像Saと接している他の分割画像内の単位領域のそれぞれにおける暗部注目階調及び明部注目階調とを受信する。そして受信した値を用いて、各単位領域の暗部注目階調と全画面暗部値Bとの差分である暗部差分値と、各単位領域の明部注目階調と全画面明部値Wとの差分である明部差分値とを求める。   Next, a method for generating a local γ curve will be described. The difference value calculation unit 13a receives the correction data Ua from the IF unit 17a, and receives the dark part attention gradation Nba (i) and the bright part attention gradation Nwa (in each unit area of the divided image Sa from the attention gradation detection unit 11a. i) is received. That is, the difference value calculation unit 13a includes the full-screen correction value including the full-screen dark part value B and the full-screen bright part value W, and each unit area of the divided image Sa and the other divided images in contact with the divided image Sa. The dark part attention gradation and the light part attention gradation in each of the unit areas are received. Then, using the received value, a dark part difference value that is a difference between the dark part attention gradation of each unit area and the full screen dark part value B, and a bright part attention gradation and full screen bright part value W of each unit area A bright part difference value which is a difference is obtained.

暗部差分値及び明部差分値は、分割画像Saの各単位領域a0〜a14、及び補正用データUaに補正用境界値が含まれる単位領域b0、b5、b10、c0〜c4、d0の計24の各単位領域で求められる。補正用データUaに補正用境界値が含まれる単位領域b0、b5、b10、c0〜c4、d0は、分割画像Saに接する他の分割画像の単位領域である。以下の説明において、a0〜a14それぞれの単位領域で求められる暗部差分値及び明部差分値は、暗部差分値dba(j)及び明部差分値dwa(j)(j=0〜14)とする。また、b0、b5、b10、c0〜c4、d0それぞれの単位領域で求められる暗部差分値及び明部差分値は、暗部差分値dba(j)及び明部差分値dwa(j)(j=15〜23)とする。   The dark part difference value and the bright part difference value are a total of 24 unit areas a0 to a14 of the divided image Sa and unit areas b0, b5, b10, c0 to c4, and d0 in which the correction boundary value is included in the correction data Ua. It is obtained in each unit area. The unit areas b0, b5, b10, c0 to c4, and d0 in which the correction data Ua includes the correction boundary value are unit areas of other divided images in contact with the divided image Sa. In the following description, the dark part difference value and the bright part difference value obtained in each unit area of a0 to a14 are the dark part difference value dba (j) and the bright part difference value dwa (j) (j = 0 to 14). . Further, the dark part difference value and the bright part difference value obtained in the unit areas of b0, b5, b10, c0 to c4, and d0 are the dark part difference value dba (j) and the bright part difference value dwa (j) (j = 15). To 23).

まず、暗部差分値dba(j)として、分割画像Saの各単位領域a0〜a14及び単位領域b0、b5、b10、c0〜c4、d0における暗部注目階調Nba(i)、Nbb(i)、Nbc(i)、Nbd(i)と全画面暗部値Bとのそれぞれの差分を求める。分割画像Sa内の単位領域a0〜a14における暗部差分値dba(0)〜dba(14)は、下記の式で求められる。分割画像Sa内の各単位領域における暗部注目階調Nba(i)は、注目階調検出部11aから送信された値である。
dba(j)=Nba(i)−B,j=0〜14,i:0〜14 (式5)
First, as the dark part difference value dba (j), dark part attention gradations Nba (i), Nbb (i) in the unit areas a0 to a14 and the unit areas b0, b5, b10, c0 to c4, and d0 of the divided image Sa. Each difference between Nbc (i), Nbd (i) and the full screen dark area value B is obtained. The dark part difference values dba (0) to dba (14) in the unit areas a0 to a14 in the divided image Sa are obtained by the following equations. The dark part attention gradation Nba (i) in each unit area in the divided image Sa is a value transmitted from the attention gradation detection section 11a.
dba (j) = Nba (i) -B, j = 0 to 14, i: 0 to 14 (Formula 5)

次に、分割画像Saに接する分割画像Sbの単位領域b0、b5、b10における暗部差分値dba(15)〜dba(17)は式6で求められる。分割画像Scの単位領域c0〜c4における暗部差分値dba(18)〜dba(22)、分割画像Sdの単位領域d0における暗部差分値dba(23)はそれぞれ下記の式7、式8で求められる。単位領域b0、b5、b10、c0〜c4、d0における暗部注目階調Nbb(i),Nbc(i),Nbd(i)は、補正用データ作成部104より送信された補正用データUaに含まれる各分割画像の補正用境界値を用いる。
dba(j)=Nbb(i)−B,j=15〜17,i:0、5、10 (式6)
dba(j)=Nbc(i)−B,j=18〜22,i:0〜4 (式7)
dba(j)=Nbd(i)−B,j=23, i:0 (式8)
暗部差分値dba(j)(j:0〜23)は24個のデータである。また、全画面暗部値Bは式3より全画面における暗部注目階調の最小値であるため、暗部差分値dba(j)のいずれの暗部差分値も必ず0以上の値となる。
Next, dark part difference values dba (15) to dba (17) in the unit areas b0, b5, and b10 of the divided image Sb in contact with the divided image Sa are obtained by Expression 6. The dark part difference values dba (18) to dba (22) in the unit areas c0 to c4 of the divided image Sc and the dark part difference value dba (23) in the unit area d0 of the divided image Sd are obtained by the following expressions 7 and 8, respectively. . The dark part attention gradations Nbb (i), Nbc (i), and Nbd (i) in the unit areas b0, b5, b10, c0 to c4, and d0 are included in the correction data Ua transmitted from the correction data generation unit 104. The boundary value for correction of each divided image is used.
dba (j) = Nbb (i) −B, j = 15 to 17, i: 0, 5, 10 (Equation 6)
dba (j) = Nbc (i) −B, j = 18 to 22, i: 0 to 4 (Expression 7)
dba (j) = Nbd (i) −B, j = 23, i: 0 (formula 8)
The dark part difference value dba (j) (j: 0 to 23) is 24 pieces of data. Further, since the full screen dark area value B is the minimum value of the dark area attention gradation in the entire screen from Equation 3, any dark area difference value of the dark area difference value dba (j) is always 0 or more.

明部差分値dwa(j)も暗部差分値dba(j)と同様に求める。明部差分値dwa(j)として、各単位領域における明部注目階調Nwa(i)、Nwb(i)、Nwc(i)、Nwd(i)と全画面明部値Wとのそれぞれの差分を求める。分割画像Sa内の単位領域a0〜a14における、明部差分値dwa(0)〜dwa(14)は、下記の式で求められる。分割画像Sa内の各単位領域における明部注目階調Nwa(i)は、注目階調検出部11aから送信された値である。
dwa(j)=W−Nwa(i),j=0〜14,i:0〜14 (式9)
The bright portion difference value dwa (j) is also obtained in the same manner as the dark portion difference value dba (j). As the bright portion difference value dwa (j), the respective differences between the bright portion attention gradations Nwa (i), Nwb (i), Nwc (i), Nwd (i) and the full screen bright portion value W in each unit region. Ask for. The bright part difference values dwa (0) to dwa (14) in the unit areas a0 to a14 in the divided image Sa are obtained by the following expression. The bright part attention gradation Nwa (i) in each unit area in the divided image Sa is a value transmitted from the attention gradation detection section 11a.
dwa (j) = W−Nwa (i), j = 0 to 14, i: 0 to 14 (Equation 9)

次に、分割画像Saに接する分割画像Sbの単位領域b0、b5、b10における明部差分値dwa(15)〜dwa(17)は式10で求められる。分割画像Scの単位領域c0〜c4における明部差分値dwa(18)〜dwa(22)、分割画像Sdの単位領域d0における明部差分値dwa(23)はそれぞれ下記の式11、式12で求められる。単位領域b0、b5、b10、c0〜c4、d0における、明部注目階調Nwb(i),Nwc(i),Nwd(i)は、補正用データ作成部104より送信された補正用データUaに含まれる各分割画像の補正用境界値を用いる。
dwa(j)=W−Nwb(i),j=15〜17,i:0、5、10 (式10)
dwa(j)=W−Nwc(i),j=18〜22,i:0〜4 (式11)
dwa(j)=W−Nwd(i),j=23,i:0 (式12)
明部差分値dwa(j)(j:0〜23)は24個のデータである。また、全画面明部値Wは式4より全画面における明部注目階調の最大値であるため、明部差分値dwa(j)のいずれの明部差分値も必ず0以上の値となる。
Next, the bright part difference values dwa (15) to dwa (17) in the unit areas b0, b5, and b10 of the divided image Sb that is in contact with the divided image Sa are obtained by Expression 10. The bright part difference values dwa (18) to dwa (22) in the unit areas c0 to c4 of the divided image Sc and the bright part difference value dwa (23) in the unit area d0 of the divided image Sd are respectively expressed by the following expressions 11 and 12. Desired. The bright part attention gradations Nwb (i), Nwc (i), and Nwd (i) in the unit areas b0, b5, b10, c0 to c4, and d0 are the correction data Ua transmitted from the correction data generation unit 104. The boundary value for correction of each divided image included in is used.
dwa (j) = W−Nwb (i), j = 15 to 17, i: 0, 5, 10 (Equation 10)
dwa (j) = W−Nwc (i), j = 18 to 22, i: 0 to 4 (Formula 11)
dwa (j) = W−Nwd (i), j = 23, i: 0 (formula 12)
The bright part difference value dwa (j) (j: 0 to 23) is 24 pieces of data. Further, since the full screen bright part value W is the maximum value of the bright part noticeable gradation in the whole screen from Equation 4, any bright part difference value of the bright part difference value dwa (j) is always 0 or more. .

差分値算出部13aは求めた暗部差分値dba(j)及び明部差分値dwa(j)を局所γ生成部15aに送信する。局所γ生成部15aは、差分値算出部13aで算出した暗部差分値dba(j)及び明部差分値dwa(j)から、分割画像Saの局所補正を行う局所γカーブを生成するための局所補正値を算出し、局所補正値を用いて局所γカーブを求める。局所γ生成部15aでの、分割画像Sa内の各画素における局所補正値の算出方法を説明する。局所補正値は、分割画像Sa内の各画素における局所暗部値dbaP(x、y)及び局所明部値dwaP(x、y)からなる。   The difference value calculation unit 13a transmits the obtained dark part difference value dba (j) and bright part difference value dwa (j) to the local γ generation unit 15a. The local γ generation unit 15a generates a local γ curve for performing local correction of the divided image Sa from the dark part difference value dba (j) and the bright part difference value dwa (j) calculated by the difference value calculation unit 13a. A correction value is calculated, and a local γ curve is obtained using the local correction value. A method for calculating the local correction value in each pixel in the divided image Sa in the local γ generation unit 15a will be described. The local correction value includes a local dark part value dbaP (x, y) and a local bright part value dwaP (x, y) in each pixel in the divided image Sa.

各画素における局所補正値である局所暗部値dbaP(x、y)及び局所明部値dwaP(x、y)は、差分値算出部13aにおいて算出された各単位領域における暗部差分値dba(j)及び明部差分値dwa(j)から求める。各単位領域境界において、局所暗部値dbaP(x、y)及び局所明部値dwaP(x、y)が急激な変化をすると、局所γ補正後の画像に不連続な部分が発生する。そのため本実施例では、局所暗部値dbaP(x、y)及び局所明部値dwaP(x、y)が滑らかに変化するように、画素位置に応じてバイリニア補間を行って局所暗部値dbaP(x、y)及び局所明部値dwaP(x、y)を求める。   The local dark part value dbaP (x, y) and the local bright part value dwaP (x, y), which are local correction values in each pixel, are the dark part difference value dba (j) in each unit region calculated by the difference value calculation unit 13a. And the bright part difference value dwa (j). When the local dark portion value dbaP (x, y) and the local bright portion value dwaP (x, y) change suddenly at each unit region boundary, a discontinuous portion occurs in the image after the local γ correction. Therefore, in this embodiment, the local dark part value dbaP (x is obtained by performing bilinear interpolation according to the pixel position so that the local dark part value dbaP (x, y) and the local bright part value dwaP (x, y) change smoothly. , Y) and the local bright part value dwaP (x, y).

図10は、画素P(x、y)における局所暗部値dbaP(x、y)をバイリニア補間により求める処理を説明する図である。図10は分割領域Sa内の単位領域a0、a1、a5、a6を示している。差分値算出部13aから出力された暗部差分値dba(0)、dba(1)、dba(5)、dba(6)がそれぞれ、各単位領域a0、a1、a5、a6の中央の画素P0、P1、P5、P6の局所暗部値dbaP(x、y)であるとしてバイリニア補間を行う。暗部差分値dbaP(x、y)は暗部差分値dba(0)、dba(1)、dba(5)、dba(6)を、距離x0、x1、y0、y1に応じてバイリニア補間した値である。つまり、局所暗部値dbaP(x、y)は以下の式13により求められる。
dbaP(x、y)=(dba(0)×x1+dba(1)×x0)×y1
+(dba(5)×x1+dba(6)×x0)×y0 (式13)
但し、x0+x1=1、y0+y1=1とする。
FIG. 10 is a diagram for explaining processing for obtaining the local dark part value dbaP (x, y) in the pixel P (x, y) by bilinear interpolation. FIG. 10 shows unit areas a0, a1, a5, and a6 in the divided area Sa. The dark part difference values dba (0), dba (1), dba (5), and dba (6) output from the difference value calculation unit 13a are respectively the central pixels P0 of the unit regions a0, a1, a5, and a6. Bilinear interpolation is performed assuming that the local dark part values dbaP (x, y) of P1, P5, and P6. The dark part difference value dbaP (x, y) is a value obtained by bilinear interpolation of the dark part difference values dba (0), dba (1), dba (5), and dba (6) according to the distances x0, x1, y0, and y1. is there. That is, the local dark part value dbaP (x, y) is obtained by the following Expression 13.
dbaP (x, y) = (dba (0) × x1 + dba (1) × x0) × y1
+ (Dba (5) × x1 + dba (6) × x0) × y0 (Formula 13)
However, x0 + x1 = 1 and y0 + y1 = 1.

局所明部値dwaP(x、y)も、局所暗部値dbaP(x、y)と同様に式14を用いてバイリニア補間により画素ごとに求められる。単位領域a0、a1、a5、a6の各明部差分値はそれぞれdwa(0)、dwa(1)、dwa(5)、dwa(6)である。
dwaP(x、y)=(dwa0×x1+dwa1×x0)×y1
+(dwa5×x1+dwa6×x0)×y0 (式14)
但し、x0+x1=1、y0+y1=1とする。
The local bright part value dwaP (x, y) is also obtained for each pixel by bilinear interpolation using Expression 14 in the same manner as the local dark part value dbaP (x, y). The bright part difference values of the unit areas a0, a1, a5, and a6 are dwa (0), dwa (1), dwa (5), and dwa (6), respectively.
dwaP (x, y) = (dwa0 × x1 + dwa1 × x0) × y1
+ (Dwa5 × x1 + dwa6 × x0) × y0 (Formula 14)
However, x0 + x1 = 1 and y0 + y1 = 1.

以上のように、局所γ生成部15aにおいて、各画素P(x、y)における局所補正値として局所暗部値dbaP(x、y)及び局所明部値dwaP(x、y)が算出される。   As described above, the local gamma generation unit 15a calculates the local dark part value dbaP (x, y) and the local bright part value dwaP (x, y) as the local correction value in each pixel P (x, y).

局所γ生成部15aにおいて、算出された局所補正値に基づいて画素毎に補正する局所γカーブを生成する。局所γカーブは、低階調データを補正する暗部カーブγBp(h)、高階調データを補正する明部カーブγWp(h)と、中間階調を補正する中間カーブγMp(h)から成る。   The local γ generation unit 15a generates a local γ curve to be corrected for each pixel based on the calculated local correction value. The local γ curve includes a dark part curve γBp (h) for correcting low gradation data, a bright part curve γWp (h) for correcting high gradation data, and an intermediate curve γMp (h) for correcting intermediate gradations.

図11は局所γカーブの元となる暗部カーブγBp(h)及び明部カーブγWp(h)の変換特性を示している。暗部カーブγBp(h)及び明部カーブγWp(h)のデータは、画像処理部103a内の不図示のメモリにあらかじめ格納してある。   FIG. 11 shows the conversion characteristics of the dark part curve γBp (h) and the bright part curve γWp (h) that are the basis of the local γ curve. Data of the dark part curve γBp (h) and the bright part curve γWp (h) are stored in advance in a memory (not shown) in the image processing unit 103a.

図11に示すように、暗部カーブγBp(h)は127種類(h:0〜126)用意されている。式13により求められた局所暗部値dbaP(x、y)に応じて127種類の暗部カーブγBp(h)(h:0〜126)の中から一つの暗部カーブγBp(dbaP(x、y))が選択される。局所暗部値dbaP(x、y)は、各単位領域における暗部差分値dba(j)から求められるので、0〜126のいずれかの値をとる。   As shown in FIG. 11, 127 types (h: 0 to 126) of dark part curves γBp (h) are prepared. One dark part curve γBp (dbaP (x, y)) out of 127 types of dark part curves γBp (h) (h: 0 to 126) according to the local dark part value dbaP (x, y) obtained by Expression 13 Is selected. Since the local dark part value dbaP (x, y) is obtained from the dark part difference value dba (j) in each unit region, it takes any value from 0 to 126.

図11に示すように、明部カーブγWp(h)は126種類(h:0〜125)用意されている。式14により求められた局所明部値dwaP(x、y)に応じて126種類の明部カーブγWp(h)(h:0〜125)から一つの明部カーブγWp(dwaP(x、y))が選択される。局所明部値dwaP(x、y)は、各単位領域における明部差分値dwa(j)から求められるので、0〜125のいずれかの値をとる。   As shown in FIG. 11, 126 types (h: 0 to 125) of bright portion curves γWp (h) are prepared. One bright part curve γWp (dwaP (x, y)) from 126 kinds of bright part curves γWp (h) (h: 0 to 125) according to the local bright part value dwaP (x, y) obtained by Expression 14 ) Is selected. Since the local bright part value dwaP (x, y) is obtained from the bright part difference value dwa (j) in each unit region, it takes one of 0 to 125.

このように低階調データ及び高階調データを補正するγカーブを選択することにより、各画素の暗部注目階調と全画面暗部値Bとの差分である局所暗部値dbaP(x、y)が大きい画素ほど、暗部の階調を圧縮するカーブが選択される。一方、明部注目階調とW全画面明部値Wとの差分である局所明部値dwaP(x、y)が大きい画素ほど、明部の階調を圧縮するカーブが選択される。中間カーブγMpは選択された暗部カーブγBp(dbaP(x、y))と明部カーブγWp(dwaP(x、y))の間の階調を直線補間によりつないだ変換特性とする。以上のように暗部カーブγBp、明部カーブγWp及び中間カーブγMpから局所γカーブは作成される。   As described above, by selecting the γ curve for correcting the low gradation data and the high gradation data, the local dark portion value dbaP (x, y) that is the difference between the dark portion attention gradation of each pixel and the full screen dark portion value B is obtained. The larger the pixel, the more the curve that compresses the gradation of the dark part is selected. On the other hand, a curve for compressing the gradation of the bright portion is selected for a pixel having a larger local bright portion value dwaP (x, y), which is the difference between the bright portion attention gradation and the W full-screen bright portion value W. The intermediate curve γMp has a conversion characteristic in which the gradation between the selected dark portion curve γBp (dbaP (x, y)) and the bright portion curve γWp (dwaP (x, y)) is connected by linear interpolation. As described above, the local γ curve is created from the dark curve γBp, the bright curve γWp, and the intermediate curve γMp.

全画面γ生成部14aで生成された全画面γカーブ、及び局所γ生成部15aで生成された局所γカーブを用いて、γ補正処理部16aにおいて分割画像Saのγ補正処理を行う。γ補正処理部16aにおけるγ補正処理は、まず全画面γカーブで入力画像全体を一律に補正した後、局所γカーブで入力画像内の各画素応じた局所補正を行う。γ補正処理部16aは、γ補正処理を行った分割画像Saを分割出力画像Taとして画像結合部105に出力する。   Using the full screen γ curve generated by the full screen γ generation unit 14a and the local γ curve generated by the local γ generation unit 15a, the γ correction processing unit 16a performs γ correction processing of the divided image Sa. In the γ correction processing in the γ correction processing unit 16a, first, the entire input image is uniformly corrected with the full screen γ curve, and then the local correction corresponding to each pixel in the input image is performed with the local γ curve. The γ correction processing unit 16a outputs the divided image Sa subjected to the γ correction processing to the image combining unit 105 as a divided output image Ta.

以上、画像処理部103aでの処理について説明したが、画像処理部103b、103c、103dでも画像処理部103aと同様の構成であり、同様の処理を行うものとする。   The processing in the image processing unit 103a has been described above, but the image processing units 103b, 103c, and 103d have the same configuration as the image processing unit 103a, and perform similar processing.

画像結合部105は、画像処理部103a、103b、103c、103dから出力されるγ補正処理された分割出力画像Ta、Tb、Tc、Tdを結合した出力画像を表示装置等に出力する。   The image combining unit 105 outputs an output image obtained by combining the divided output images Ta, Tb, Tc, and Td, which have been subjected to the γ correction processing, output from the image processing units 103a, 103b, 103c, and 103d to a display device or the like.

本実施例は画像処理部を4つ用いた例を記載したが、本発明の画像処理部は4つに限られるものではない。また、局所γカーブは画素毎に求める構成で説明を行ったが、各画素における局所暗部値dbaP(x、y)及び局所明部値dwaP(x、y)が、急激に変化しない程度に設けた複数の画素からなる小ブロックごとに局所γカーブを求めてγ補正してもよい。また、各分割画像の代表値及び境界値を求める際に、暗部注目階調及び明部注目階調を用いる方法について説明を行ったが、各分割画像の代表値及び境界値として各分割画像のヒストグラムの最大階調値または平均値を用いてもよい。   Although the present embodiment describes an example in which four image processing units are used, the number of image processing units of the present invention is not limited to four. In addition, the local γ curve has been described with the configuration obtained for each pixel, but the local dark portion value dbaP (x, y) and the local bright portion value dwaP (x, y) in each pixel are set so as not to change rapidly. Alternatively, a local γ curve may be obtained for each small block including a plurality of pixels and γ correction may be performed. In addition, the method of using the dark part attention gradation and the bright part attention gradation when obtaining the representative value and boundary value of each divided image has been described. The maximum gradation value or average value of the histogram may be used.

以上のように本発明によれば、各画像処理部及び補正用データ作成部間のデータ転送時間を低減することにより画像補正処理を行う時間を確保することが可能になる。さらに本発明によれば、複数の画像処理部を用いて局所γ補正を行う場合において、他の画像処理部が補正処理を行う分割画像に接する一部の単位領域の境界値を転送することにより、領域毎の画像処理の不連続性を低減することが可能となる。   As described above, according to the present invention, it is possible to secure time for performing image correction processing by reducing the data transfer time between each image processing unit and the correction data generation unit. Furthermore, according to the present invention, when local γ correction is performed using a plurality of image processing units, by transferring boundary values of some unit regions that are in contact with the divided images on which other image processing units perform correction processing, It is possible to reduce the discontinuity of the image processing for each area.

(実施例2)
本実施例では実施例1と異なり、図1の補正用データ作成部104を用いない画像処理装置について説明を行う。実施例1では、各画像処理部は各分割画像の代表値及び境界値を補正用データ作成部104に送信したのに対し、本実施例では、各画像処理部は各分割画像の代表値及び境界値を他の画像処理部に送信する。
(Example 2)
In this embodiment, unlike the first embodiment, an image processing apparatus that does not use the correction data creation unit 104 of FIG. 1 will be described. In the first embodiment, each image processing unit transmits the representative value and boundary value of each divided image to the correction data creating unit 104, whereas in this embodiment, each image processing unit displays the representative value and the boundary value of each divided image. The boundary value is transmitted to another image processing unit.

図12は本実施例の回路ブロック図である。図12に示す画像処理装置1100は、画像分割部1102と、画像処理部1103a、1103b、1103c、1103dと、画像結合部1105から構成されている。実施例1と同様に、一つの画像処理部は一つのIC(Integrated Circuit)に実装されているものとする。画像処理装置1100の動作を以下で説明する。   FIG. 12 is a circuit block diagram of the present embodiment. An image processing apparatus 1100 illustrated in FIG. 12 includes an image dividing unit 1102, image processing units 1103 a, 1103 b, 1103 c, and 1103 d, and an image combining unit 1105. As in the first embodiment, it is assumed that one image processing unit is mounted on one IC (Integrated Circuit). The operation of the image processing apparatus 1100 will be described below.

画像分割部1102は、入力画像を複数の領域に分割して複数の分割画像を作成する。本実施例においても実施例1と同様に図2に示す入力画像Sを用いて説明する。入力画像Sの解像度は、3840×2160画素とする。画像分割部1102は図2(b)に示すように入力画像Sを4つの分割画像Sa、Sb、Sc、Sdに分割し、それぞれ画像処理部1103a、1103b、1103c、1103dに出力する。分割画像Sa、Sb、Sc、Sdの解像度は1920×1080画素とする。   The image dividing unit 1102 divides the input image into a plurality of areas and creates a plurality of divided images. This embodiment will be described using the input image S shown in FIG. The resolution of the input image S is 3840 × 2160 pixels. The image dividing unit 1102 divides the input image S into four divided images Sa, Sb, Sc, and Sd as shown in FIG. 2B, and outputs them to the image processing units 1103a, 1103b, 1103c, and 1103d, respectively. The resolution of the divided images Sa, Sb, Sc, and Sd is 1920 × 1080 pixels.

次に、画像処理部1103aについて説明する。画像処理部1103b、1103c、1103dは画像処理部1103aと同様の構成であり、同様の処理を行うため、本実施例では画像処理部1103aについてのみ説明する。   Next, the image processing unit 1103a will be described. Since the image processing units 1103b, 1103c, and 1103d have the same configuration as the image processing unit 1103a and perform similar processing, only the image processing unit 1103a will be described in the present embodiment.

図13は、画像処理部1103aの内部構成を示すブロック図である。実施例1の画像処理部103aに対して、中間データ作成部131aの処理が中間データ作成部12aの処理と異なり、全画面補正値算出部132aが追加されている点で異なる。図13において図2と同符号のブロックは実施例1と同様の処理を行うため詳細は省略して説明を行う。   FIG. 13 is a block diagram illustrating an internal configuration of the image processing unit 1103a. The image processing unit 103a according to the first embodiment is different from the image processing unit 103a in that the intermediate data generation unit 131a is different from the processing of the intermediate data generation unit 12a in that a full screen correction value calculation unit 132a is added. In FIG. 13, blocks having the same reference numerals as those in FIG. 2 perform the same processing as in the first embodiment, and thus will not be described in detail.

実施例1と同様に、注目階調検出部11aは図4のように分割された分割画像Saの各単位領域の輝度ヒストグラムHa(i)(i:0〜14)から各暗部注目階調Nba(i)及び明部注目階調Nwa(i)を検出する。注目階調検出部11aは検出した暗部注目階調Nba(i)及び明部注目階調Nwa(i)を中間データ作成部131a及び差分値算出部13aに出力する。   As in the first embodiment, the target gradation detection unit 11a calculates each dark part target gradation Nba from the luminance histogram Ha (i) (i: 0 to 14) of each unit area of the divided image Sa divided as shown in FIG. (I) and bright part attention gradation Nwa (i) are detected. The attention gradation detecting unit 11a outputs the detected dark part attention gradation Nba (i) and the bright part attention gradation Nwa (i) to the intermediate data creation unit 131a and the difference value calculation unit 13a.

中間データ作成部131aでは、暗部注目階調Nba(0)〜Nba(14)及び明部注目階調Nwa(0)〜Nwa(14)から画像処理部1103b、1103c、1103dに出力する中間データMab、Mac、Madを作成する。   In the intermediate data creation unit 131a, intermediate data Mab output from the dark part attention gradations Nba (0) to Nba (14) and the bright part attention gradations Nwa (0) to Nwa (14) to the image processing units 1103b, 1103c, and 1103d. , Mac, Mad.

本実施例における中間データ作成部131aで作成する中間データMabは画像処理部1103bに、中間データMacは画像処理部1103cに、中間データMadは画像処理部1103dにそれぞれ送信される。つまり中間データMab、Mac、Madは他の分割画像用中間データである。中間データMab、Mac、Madはそれぞれ、分割画像Saの代表値および境界値からなる。分割画像Saの代表値とは、実施例1と同様に、暗部注目階調Nba(0)〜Nba(14)の中の最小値mina、及び、複数の明部注目階調Nwa(0)〜Nwa(14)の中の最大値maxaからなり、式1及び2により求められる。   In the present embodiment, the intermediate data Mab created by the intermediate data creation unit 131a is transmitted to the image processing unit 1103b, the intermediate data Mac is transmitted to the image processing unit 1103c, and the intermediate data Mad is transmitted to the image processing unit 1103d. That is, the intermediate data Mab, Mac, and Mad are other divided image intermediate data. The intermediate data Mab, Mac, and Mad are respectively composed of representative values and boundary values of the divided image Sa. As in the first embodiment, the representative value of the divided image Sa is the minimum value mina of the dark part attention gradations Nba (0) to Nba (14) and the plurality of bright part attention gradations Nwa (0) to It consists of the maximum value maxa in Nwa (14), and is obtained by equations 1 and 2.

本実施例における中間データMab、Mac、Madに含まれる境界値は実施例1と異なる。中間データMabに含まれる境界値は、分割画像Sbと接している分割画像Sa内の単位領域の暗部注目階調Nba(i)及び明部注目階調Nwa(i)からなる。入力画像Sが図7のように分割画像Sa〜Sdそれぞれが単位領域a0〜a14、b0〜b14、c0〜c14、d0〜d14に分割されているとする。この場合中間データMabに含まれる境界値は単位領域a4、a9、a14の暗部注目階調Nba(i)及び明部注目階調Nwa(i)である。   The boundary values included in the intermediate data Mab, Mac, and Mad in this embodiment are different from those in the first embodiment. The boundary value included in the intermediate data Mab is composed of a dark part attention gradation Nba (i) and a bright part attention gradation Nwa (i) of a unit area in the divided image Sa in contact with the divided image Sb. Assume that the input image S is divided into unit areas a0 to a14, b0 to b14, c0 to c14, and d0 to d14 as shown in FIG. In this case, the boundary values included in the intermediate data Mab are the dark part attention gradation Nba (i) and the light part attention gradation Nwa (i) of the unit areas a4, a9, and a14.

同様に、中間データMacに含まれる境界値は分割画像Scと接している単位領域a10〜a14の暗部注目階調Nba(i)及び明部注目階調Nwa(i)である。中間データMadに含まれる境界値は分割画像Sdと接している単位領域a14における暗部注目階調Nba(i)及び明部注目階調Nwa(i)である。   Similarly, the boundary values included in the intermediate data Mac are the dark part attention gradation Nba (i) and the bright part attention gradation Nwa (i) of the unit areas a10 to a14 in contact with the divided image Sc. The boundary values included in the intermediate data Mad are the dark part attention gradation Nba (i) and the bright part attention gradation Nwa (i) in the unit region a14 in contact with the divided image Sd.

入力画像が分割画像Sa及び分割画像Sbからなる場合(入力画像を2つに分割し、分割画像Saの右に分割画像Sbがある場合)、中間データ作成部131aは中間データMabを作成する。中間データMabに含まれる境界値は、分割画像Sbと接している分割画像Sa内の単位領域a4、a9、a14各々の暗部注目階調Nba(i)及び明部注目階調Nwa(i)からなる。   When the input image includes the divided image Sa and the divided image Sb (when the input image is divided into two and the divided image Sb is on the right of the divided image Sa), the intermediate data creation unit 131a creates the intermediate data Mab. The boundary values included in the intermediate data Mab are derived from the dark part attention gradation Nba (i) and the light part attention gradation Nwa (i) of each of the unit areas a4, a9, and a14 in the divided image Sa in contact with the divided image Sb. Become.

中間データ作成部131aは作成した中間データMab、Mac、Madを、IF部17aを通してそれぞれ画像処理部1103b、1103c、1103dに出力し、分割画像Saの代表値を差分値算出部13a及び全画面補正値算出部132aに送信する。   The intermediate data creation unit 131a outputs the created intermediate data Mab, Mac, and Mad to the image processing units 1103b, 1103c, and 1103d through the IF unit 17a, respectively, and the representative values of the divided images Sa are corrected by the difference value calculation unit 13a and the full screen correction. It transmits to the value calculation part 132a.

画像処理部1103b内の中間データ作成部131bは、画像処理部1103aと同様に中間データMba、Mbc、Mbdを作成する。画像処理部1103c内の中間データ作成部131cは、中間データMca、Mcb、Mcdを作成し、画像処理部1103d内の中間データ作成部131dは、中間データMda、Mdb、Mdcを作成する。各画像処理部は作成した中間データを、中間データに含まれる境界値を有する単位領域が接している分割画像の処理を行う画像処理部に送信する。   The intermediate data creation unit 131b in the image processing unit 1103b creates intermediate data Mba, Mbc, and Mbd in the same manner as the image processing unit 1103a. The intermediate data creation unit 131c in the image processing unit 1103c creates intermediate data Mca, Mcb, and Mcd, and the intermediate data creation unit 131d in the image processing unit 1103d creates intermediate data Mda, Mdb, and Mdc. Each image processing unit transmits the created intermediate data to an image processing unit that processes a divided image that is in contact with a unit area having a boundary value included in the intermediate data.

画像処理部1103aはIF部17aを通して、画像処理部1103b、1103c、1103dから中間データMba、Mca、Mdaを受信する。受信した中間データMba、Mca、Mdaは差分算出部13aに出力される。中間データMba、Mca、Mdaのそれぞれに含まれる、分割画像Sbの代表値、分割画像Scの代表値、分割画像Sdの代表値は全画面補正値算出部132aにも送信される。   The image processing unit 1103a receives the intermediate data Mba, Mca, and Mda from the image processing units 1103b, 1103c, and 1103d through the IF unit 17a. The received intermediate data Mba, Mca, Mda is output to the difference calculation unit 13a. The representative value of the divided image Sb, the representative value of the divided image Sc, and the representative value of the divided image Sd included in each of the intermediate data Mba, Mca, and Mda are also transmitted to the full-screen correction value calculation unit 132a.

以上の処理により全画面補正値算出部132aは、中間データ作成部131a及びIF部17aから、分割画像Saの代表値、分割画像Sbの代表値、分割画像Scの代表値、分割画像Sdの代表値を受信する。全画面補正値算出部132aは実施例1における図7の全画面補正値算出部73と同様に、全画面暗部値B及び全画面明部値Wからなる全画面補正値を算出する。全画面補正値算出部132aは算出した全画面補正値を全画面γ生成部14a及び差分値算出部13aに送信する。   Through the above processing, the full-screen correction value calculation unit 132a receives the representative value of the divided image Sa, the representative value of the divided image Sb, the representative value of the divided image Sc, and the representative value of the divided image Sd from the intermediate data creation unit 131a and the IF unit 17a. Receive value. Similar to the full screen correction value calculation unit 73 of FIG. 7 in the first embodiment, the full screen correction value calculation unit 132a calculates a full screen correction value including the full screen dark part value B and the full screen bright part value W. The full screen correction value calculation unit 132a transmits the calculated full screen correction value to the full screen γ generation unit 14a and the difference value calculation unit 13a.

以上の処理により差分値算出部13aは分割画像Saの各単位領域における暗部注目階調Nba(i)及び明部注目階調Nwa(i)(i:0〜14)を注目階調検出部11aから受信する。また、分割画像Saと接している他の分割画像内の単位領域のそれぞれにおける暗部注目階調Nba(i)及び明部注目階調Nwa(i)を、IF部17aから受信した中間データMba、Mca、Mdaそれぞれに含まれている境界値から取得する。更に、全画面補正値を全画面補正値算出部132aから受信する。つまり差分値算出部13aは実施例1と同様に、分割画像Saの各単位領域、及び分割画像Saと接している他の分割画像内の単位領域のそれぞれにおける暗部注目階調Nba(i)及び明部注目階調Nwa(i)と全画面補正値を受信する。   Through the above processing, the difference value calculation unit 13a calculates the dark part attention gradation Nba (i) and the bright part attention gradation Nwa (i) (i: 0 to 14) in each unit area of the divided image Sa as the attention gradation detection unit 11a. Receive from. Further, the intermediate data Mba received from the IF unit 17a, the dark part attention gradation Nba (i) and the bright part attention gradation Nwa (i) in each of the unit areas in the other divided images in contact with the division image Sa. Obtained from boundary values included in Mca and Mda. Further, the full screen correction value is received from the full screen correction value calculation unit 132a. That is, the difference value calculation unit 13a, like the first embodiment, the dark part attention gradation Nba (i) and the unit area of the divided image Sa and the unit area in the other divided images that are in contact with the divided image Sa. The bright part attention gradation Nwa (i) and the full screen correction value are received.

全画面補正値算出部132aと全画面γ生成部14aとにおいて、分割画像Saの階調の補正処理を行う全画面階調補正パラメータを生成する。また、差分値算出部13aと局所γ生成部15aとにおいて、前記任意の分割画像の各画素の階調を補正するための局所階調補正パラメータを生成する。   The full screen correction value calculation unit 132a and the full screen γ generation unit 14a generate full screen gradation correction parameters for performing gradation correction processing of the divided image Sa. Further, the difference value calculation unit 13a and the local γ generation unit 15a generate a local gradation correction parameter for correcting the gradation of each pixel of the arbitrary divided image.

差分値算出部13aは実施例1と同様に、各単位領域の暗部注目階調と全画面暗部値Bとの差分である暗部差分値dba(j)と、各単位領域の明部注目階調と全画面明部値Wとの差分である明部差分値dwa(j)とを算出する。差分値算出部13aは算出した暗部差分値dba(j)及び明部差分値dwa(j)を局所γ生成部15aに出力する。   Similar to the first embodiment, the difference value calculation unit 13a performs the dark portion difference value dba (j) that is the difference between the dark portion attention gradation of each unit region and the full screen dark portion value B, and the bright portion attention gradation of each unit region. And the bright part difference value dwa (j), which is the difference between the full screen bright part value W, and the like. The difference value calculation unit 13a outputs the calculated dark part difference value dba (j) and bright part difference value dwa (j) to the local γ generation unit 15a.

実施例1と同様に局所γ生成部15aでは局所γカーブを生成する。γ補正処理部16aでは、全画面γ生成部14aで生成された全画面γカーブ及び局所γ生成部15aで生成された局所γカーブを用いて分割画像Saのγ補正処理を行い、分割出力画像Taを画像結合部1105に出力する。   As in the first embodiment, the local γ generation unit 15a generates a local γ curve. The γ correction processing unit 16a performs γ correction processing of the divided image Sa using the full screen γ curve generated by the full screen γ generation unit 14a and the local γ curve generated by the local γ generation unit 15a, and outputs a divided output image. Ta is output to the image combining unit 1105.

以上、画像処理部1103aでの処理について説明したが、画像処理部1103b、1103c、1103dでも画像処理部1103aと同様の構成であり、同様の処理を行うものとする。画像結合部1105は、画像処理部1103a、1103b、1103c、1103dから出力されるγ補正された分割出力画像Ta、Tb、Tc、Tdを結合し、出力画像を表示装置等に出力する。   The processing in the image processing unit 1103a has been described above, but the image processing units 1103b, 1103c, and 1103d have the same configuration as the image processing unit 1103a, and the same processing is performed. The image combining unit 1105 combines the γ-corrected divided output images Ta, Tb, Tc, and Td output from the image processing units 1103a, 1103b, 1103c, and 1103d, and outputs the output image to a display device or the like.

以上のように本発明によれば、データ転送時間を低減することにより画像補正処理を行う時間を確保することが可能になる。さらに、複数の画像処理部を用いて局所γ補正を行う場合において、複数の画像処理部間で他の画像処理部が補正処理を行う分割画像に接する一部の単位領域の境界値を転送することにより、領域毎の画像処理の不連続性を低減することが可能となる。   As described above, according to the present invention, it is possible to secure time for performing image correction processing by reducing the data transfer time. Further, when local γ correction is performed using a plurality of image processing units, the boundary values of some unit areas that are in contact with the divided images on which other image processing units perform correction processing are transferred between the plurality of image processing units. This makes it possible to reduce the discontinuity of image processing for each region.

102 画像分割部
103a〜103d 画像処理部
104 補正用データ作成部
105 画像結合部
11a 注目階調検出部
12a 中間データ作成部
13a 差分値算出部
14a 全画面γ生成部
15a 局所γ生成部
DESCRIPTION OF SYMBOLS 102 Image division part 103a-103d Image processing part 104 Correction data creation part 105 Image connection part 11a Attention gradation detection part 12a Intermediate data creation part 13a Difference value calculation part 14a Full screen gamma generation part 15a Local gamma production part

Claims (10)

入力画像を複数の領域に分割して得られた複数の分割画像に対して画像処理を行う複数の画像処理部と、
各分割画像の階調を補正するための各分割画像の補正用データを作成する補正用データ作成手段と、を備え、
各画像処理部は、
記複数の分割画像の各々におけるヒストグラムを作成するヒストグラム作成手段と
記ヒストグラムから、各分割画像における階調の代表値と、各分割画像内で他の分割画像と接する領域に関する階調の境界値とを含む中間データを作成する中間データ作成手段と
記補正用データ作成手段により作成された前記補正用データに基づいて各分割画像の階調を補正する処理を行うための補正処理手段と、を有し、
前記補正用データ作成手段は、前記中間データ作成手段により作成された、前記複数の分割画像の各々における前記中間データから、各分割画像の階調を補正するための各分割画像の補正用データを作成することを特徴とする画像処理装置。
A plurality of image processing units for performing image processing on a plurality of divided images obtained by dividing an input image into a plurality of regions ;
Correction data creating means for creating correction data for each divided image for correcting the gradation of each divided image,
Each image processing unit
A histogram creation means for creating a histogram in each of the previous SL plurality of divided images,
Before Symbol histogram, the intermediate data generation means for generating intermediate data including the representative value of the gradation in each divided image, a boundary value of the gradation of a region which is in contact with the other divided image in each divided image,
Have a, a correction processing means for performing processing for correcting the gradation of each of the divided image based on the correction data created by the previous SL correction data creating means,
The correction data creating means generates correction data for each divided image for correcting the gradation of each divided image from the intermediate data in each of the plurality of divided images created by the intermediate data creating means. An image processing apparatus characterized by being created .
前記ヒストグラム作成手段で作成されたヒストグラムにおいて、度数が所定の閾値以上かつ極大値である階調値であって、局所的な度数の変動量が所定の基準よりも小さい階調値である注目階調を検出する注目階調検出手段を有し、
前記ヒストグラム作成手段は、分割画像を複数に分割した単位領域の各々におけるヒストグラムを作成し、
前記注目階調検出手段は、前記分割画像の各単位領域における前記ヒストグラムの注目階調のうち階調値が低階調側の暗部注目階調及び高階調側の明部注目階調を検出し、
前記中間データ作成手段が作成する各分割画像における中間データは、前記分割画像の各単位領域における前記暗部注目階調及び明部注目階調に基づいた、前記分割画像における階調の代表値と、前記分割画像内で他の分割画像と接する単位領域における暗部注目階調及び明部注目階調からなる、前記分割画像における階調の境界値とを含むことを特徴とする請求項1に記載の画像処理装置。
In the histogram created by the histogram creating means, the frequency of interest is a gradation value that is equal to or greater than a predetermined threshold and has a maximum value, and the local frequency variation amount is a gradation value that is smaller than a predetermined reference. It has attention gradation detection means for detecting the tone,
The histogram creating means creates a histogram in each of the unit areas obtained by dividing the divided image into a plurality of parts,
The attention gradation detection unit detects a dark part attention gradation on a low gradation side and a bright part attention gradation on a high gradation side among the attention gradations of the histogram in each unit area of the divided image. ,
The intermediate data in each divided image created by the intermediate data creating means is a representative value of the gradation in the divided image based on the dark part attention gradation and the bright part attention gradation in each unit area of the division image, and The boundary value of the gradation in the said divided image which consists of the dark part attention gradation and the bright part attention gradation in the unit area | region which touches another division image in the said division image, The said division image is characterized by the above-mentioned. Image processing device.
前記注目階調検出手段は、前記分割画像の各単位領域における前記ヒストグラムの注目階調のうち階調値が低階調側の中の最小値を暗部注目階調とし、高階調側の中の最大値を明部注目階調として検出し、
前記中間データ作成手段により作成される各分割画像における中間データに含まれる前記代表値は、前記分割画像の各単位領域における前記暗部注目階調の中の最小値及び前記明部注目階調の中の最大値であり、
前記補正用データ作成手段が作成する各分割画像の補正用データは、全画面補正値及び各分割画像の補正用境界値を含み、
前記全画面補正値は、前記複数の分割画像の各々における前記中間データの代表値の中から、階調値が最小の全画面暗部値及び階調値が最大の全画面暗部値であり、
前記分割画像の補正用データは、前記複数の中間データの境界値の中から、各分割画像に接する他の分割画像内の単位領域における前記暗部注目階調及び明部注目階調からなることを特徴とする請求項に記載の画像処理装置。
The attention gradation detecting means sets the minimum value on the low gradation side among the attention gradations of the histogram in each unit area of the divided image as a dark portion attention gradation, The maximum value is detected as the bright part attention gradation,
The representative value included in the intermediate data in each divided image created by the intermediate data creating means is the minimum value in the dark part attention gradation and the bright part attention gradation in each unit area of the divided image. Is the maximum value of
The correction data for each divided image created by the correction data creating means includes a full-screen correction value and a correction boundary value for each divided image,
The full-screen correction value is a full-screen dark value having a minimum gradation value and a full-screen dark value having a maximum gradation value, from among the representative values of the intermediate data in each of the plurality of divided images.
The correction data of the divided image includes the dark part attention gradation and the bright part attention gradation in a unit region in another division image that is in contact with each division image from among the boundary values of the plurality of intermediate data. The image processing apparatus according to claim 2 .
前記補正処理手段は、前記補正用データ作成手段により作成された前記補正用データの前記全画面補正値に含まれる前記全画面暗部値及び全画面明部値の周辺の範囲の階調性を高めるための全画面階調補正パラメータを用いて、前記分割画像の階調の補正処理を行うことを特徴とする請求項3に記載の画像処理装置。   The correction processing means enhances the gradation of the range around the full-screen dark value and full-screen light value included in the full-screen correction value of the correction data created by the correction data creation means. The image processing apparatus according to claim 3, wherein a gradation correction process of the divided image is performed using a full-screen gradation correction parameter for the display. 前記補正処理手段は、前記注目階調検出手段で検出された分割画像の各単位領域における暗部注目階調及び明部注目階調と、前記補正用データ作成手段で作成された前記補正用データに含まれる全画面補正値及び各分割画像の補正用境界値と、から作成された前記分割画像の各画素の階調を補正する局所階調補正パラメータを用いて、前記分割画像の各画素の階調の補正処理を行うことを特徴とする請求項4に記載の画像処理装置。   The correction processing means includes a dark part attention gradation and a bright part attention gradation in each unit area of the divided image detected by the attention gradation detection means, and the correction data created by the correction data creation means. By using a local gradation correction parameter for correcting the gradation of each pixel of the divided image created from the full-screen correction value and the correction boundary value of each divided image included, the scale of each pixel of the divided image is calculated. The image processing apparatus according to claim 4, wherein tone correction processing is performed. 入力画像を複数の領域に分割して得られた複数の分割画像を複数の画像処理部を用いて画像処理を行う画像処理装置において、
各画像処理部は、
対応する分割画像のヒストグラムを作成するヒストグラム作成手段と、
前記ヒストグラムから、前記分割画像における階調の代表値と、前記分割画像内で他の分割画像と接する領域に関する階調の境界値とを含む中間データを作成する中間データ作成手段と、
前記中間データを他の画像処理部に送信する送信手段と、
前記分割画像における階調の代表値と、前記他の画像処理部の送信手段から送信された前記他の分割画像の中間データとから、前記分割画像の階調の補正処理を行う全画面階調補正パラメータを作成する全画面階調補正パラメータ生成手段と、
前記全画面階調補正パラメータに基づいて前記分割画像の階調を補正する処理を行うための補正処理手段と、を有することを特徴とする画像処理装置。
In an image processing apparatus that performs image processing on a plurality of divided images obtained by dividing an input image into a plurality of regions using a plurality of image processing units,
Each image processing unit
A histogram creating means for creating a histogram of the corresponding divided image;
Intermediate data creating means for creating, from the histogram, intermediate data including a representative value of gradation in the divided image and a boundary value of gradation relating to a region in contact with another divided image in the divided image;
Transmitting means for transmitting the intermediate data to another image processing unit;
Full-screen gradation that performs gradation correction processing of the divided image from the representative value of gradation in the divided image and intermediate data of the other divided image transmitted from the transmission unit of the other image processing unit Full-screen gradation correction parameter generating means for generating correction parameters;
An image processing apparatus comprising: correction processing means for performing processing for correcting gradation of the divided image based on the full-screen gradation correction parameter.
前記ヒストグラム作成手段で作成されたヒストグラムにおいて、度数が所定の閾値以上かつ極大値である階調値であって、局所的な度数の変動量が所定の基準よりも小さい階調値である注目階調を検出する注目階調検出手段を有し、
前記ヒストグラム作成手段は、分割画像を複数に分割した単位領域の各々におけるヒストグラムを作成し、
前記注目階調検出手段は、前記分割画像の各単位領域における前記ヒストグラムの注目階調のうち階調値が低階調側の暗部注目階調及び高階調側の明部注目階調を検出し、
前記中間データ作成手段が作成する前記中間データは、前記分割画像の各単位領域における前記暗部注目階調及び明部注目階調に基づいた、前記分割画像における階調の代表値と、前記分割画像内で他の分割画像と接する単位領域における暗部注目階調及び明部注目階調からなる、前記分割画像における階調の境界値とを含むことを特徴とする請求項6に記載の画像処理装置。
In the histogram created by the histogram creating means, the frequency of interest is a gradation value that is equal to or greater than a predetermined threshold and has a maximum value, and the local frequency variation amount is a gradation value that is smaller than a predetermined reference. It has attention gradation detection means for detecting the tone,
The histogram creating means creates a histogram in each of the unit areas obtained by dividing the divided image into a plurality of parts,
The attention gradation detection unit detects a dark part attention gradation on a low gradation side and a bright part attention gradation on a high gradation side among the attention gradations of the histogram in each unit area of the divided image. ,
The intermediate data created by the intermediate data creating means includes a representative value of gradation in the divided image based on the dark part attention gradation and bright part attention gradation in each unit area of the divided image, and the divided image. 7. The image processing apparatus according to claim 6, further comprising: a gradation boundary value in the divided image, which includes a dark part attention gradation and a light part attention gradation in a unit area in contact with another divided image. .
前記分割画像の各単位領域における暗部注目階調及び明部注目階調、及び前記送信手段により他の画像処理部から送信された他の分割画像の中間データに含まれる前記境界値、及び前記全画面階調補正パラメータ生成手段で生成された前記全画面階調補正パラメータから、前記分割画像の各画素の階調を補正するための局所階調補正パラメータを作成する局所階調補正パラメータ生成手段と、を有し、
前記補正処理手段は、前記全画面階調補正パラメータ及び前記局所階調補正パラメータに基づいて前記分割画像の階調を補正することを特徴とする請求項7に記載の画像処理装置。
The dark part attention gradation and the bright part attention gradation in each unit area of the divided image, the boundary value included in the intermediate data of another divided image transmitted from the other image processing unit by the transmission unit, and all Local gradation correction parameter generation means for creating a local gradation correction parameter for correcting the gradation of each pixel of the divided image from the full-screen gradation correction parameter generated by the screen gradation correction parameter generation means; Have
The image processing apparatus according to claim 7, wherein the correction processing unit corrects the gradation of the divided image based on the full-screen gradation correction parameter and the local gradation correction parameter.
入力画像を複数の領域に分割して得られた複数の分割画像に対して画像処理を行う複数の画像処理部と、各分割画像の階調を補正するための各分割画像の補正用データを作成する補正用データ作成手段と、を備える画像処理装置の制御方法であって、
各画像処理部は、
記複数の分割画像の各々におけるヒストグラムを作成するヒストグラム作成工程と
記ヒストグラムから、各分割画像における階調の代表値と、各分割画像内で他の分割画像と接する領域に関する階調の境界値とを含む中間データを作成する中間データ作成工程と
記補正用データ作成手段により作成された前記補正用データに基づいて各分割画像の階調を補正する処理を行うための補正処理工程と、を有し、
前記補正用データ作成手段は、前記中間データ作成工程で作成された、前記複数の分割画像の各々における前記中間データから、各分割画像の階調を補正するための各分割画像の補正用データを作成する工程を有することを特徴とする画像処理装置の制御方法。
A plurality of image processing units that perform image processing on a plurality of divided images obtained by dividing an input image into a plurality of regions, and correction data for each divided image for correcting the gradation of each divided image A correction data creating means for creating an image processing apparatus comprising:
Each image processing unit
A histogram generation step of generating a histogram in each of the previous SL plurality of divided images,
Before Symbol histogram, the intermediate data generation step of generating intermediate data including a representative value of the gradation in each divided image, a boundary value of the gradation of a region which is in contact with the other divided image in each divided image,
Have a, a correction processing step for performing a process of correcting the tone of each divided image based on the correction data created by the previous SL correction data creating means,
The correction data creation means generates correction data for each divided image for correcting the gradation of each divided image from the intermediate data in each of the plurality of divided images created in the intermediate data creation step. method of controlling an image processing apparatus characterized by have a step of creating.
入力画像を複数の領域に分割して得られた複数の分割画像を複数の画像処理部を用いて画像処理を行う画像処理装置の制御方法において、
各画像処理部は、
対応する分割画像のヒストグラムを作成するヒストグラム作成工程と、
前記ヒストグラムから、前記分割画像における階調の代表値と、前記分割画像内で他の分割画像と接する領域に関する階調の境界値とを含む中間データを作成する中間データ作成工程と、
前記中間データを他の画像処理部に送信する送信工程と、
前記分割画像における階調の代表値と、前記他の画像処理部から送信された前記他の分割画像の中間データとから、前記分割画像の階調の補正処理を行う全画面階調補正パラメータを作成する全画面階調補正パラメータ生成工程と、
前記全画面階調補正パラメータに基づいて前記分割画像の階調を補正する処理を行うための補正処理工程と、を有することを特徴とする画像処理装置の制御方法。
In a control method for an image processing apparatus that performs image processing on a plurality of divided images obtained by dividing an input image into a plurality of regions using a plurality of image processing units,
Each image processing unit
A histogram creation step for creating a histogram of the corresponding divided image;
An intermediate data creating step for creating intermediate data including a representative value of gradation in the divided image and a boundary value of gradation relating to a region in contact with another divided image in the divided image from the histogram;
A transmission step of transmitting the intermediate data to another image processing unit;
A full-screen gradation correction parameter for performing gradation correction processing of the divided image from a representative value of gradation in the divided image and intermediate data of the other divided image transmitted from the other image processing unit. A full-screen gradation correction parameter generation step to be created;
And a correction processing step for performing a process of correcting the gradation of the divided image based on the full-screen gradation correction parameter.
JP2010237467A 2010-10-22 2010-10-22 Image processing apparatus and control method thereof Expired - Fee Related JP5701010B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010237467A JP5701010B2 (en) 2010-10-22 2010-10-22 Image processing apparatus and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010237467A JP5701010B2 (en) 2010-10-22 2010-10-22 Image processing apparatus and control method thereof

Publications (2)

Publication Number Publication Date
JP2012090230A JP2012090230A (en) 2012-05-10
JP5701010B2 true JP5701010B2 (en) 2015-04-15

Family

ID=46261331

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010237467A Expired - Fee Related JP5701010B2 (en) 2010-10-22 2010-10-22 Image processing apparatus and control method thereof

Country Status (1)

Country Link
JP (1) JP5701010B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5121675B2 (en) * 2008-11-13 2013-01-16 キヤノン株式会社 Image processing apparatus, video display apparatus, imaging apparatus, and image processing method
JP5183440B2 (en) * 2008-11-26 2013-04-17 パナソニック株式会社 Gradation correction apparatus and imaging apparatus
JP4386959B1 (en) * 2009-02-06 2009-12-16 正浩 小林 Image processing device

Also Published As

Publication number Publication date
JP2012090230A (en) 2012-05-10

Similar Documents

Publication Publication Date Title
US8098256B2 (en) Video acquisition with integrated GPU processing
JP3956887B2 (en) Image processing apparatus, image processing method, and image processing program
JP4424386B2 (en) Image display device, image processing device, and image processing method
US8189941B2 (en) Image processing device, display device, image processing method, and program
JPWO2014064916A1 (en) Image processing apparatus and image processing method
CN113596573A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
JP2011030191A (en) Image processing apparatus and control method therefor
JP5669599B2 (en) Image processing apparatus and control method thereof
JP6365355B2 (en) Image generating apparatus and image generating method
JP2017174311A (en) Edge detection apparatus and edge detection method
JP5152203B2 (en) Image processing apparatus, image processing method, image processing program, and image correction apparatus
JP5089797B2 (en) Image processing apparatus and control method thereof
JP2006086965A (en) Image processor and its method, image transmitting device and its method, and display unit
JP5701010B2 (en) Image processing apparatus and control method thereof
JP4232831B2 (en) Image processing apparatus, image processing method, and image processing program
US10109077B2 (en) Image generation device and display device
JP4930845B2 (en) Image processing apparatus, image processing method, and image processing program
US10388021B2 (en) Image processing apparatus, image forming apparatus and program
JP4312944B2 (en) Image processing device
JP5312171B2 (en) Image processing apparatus and method
WO2018216280A1 (en) Image processing apparatus, image processing program, recording medium, and image processing method
JP2010220030A (en) Video correction circuit, and video display device
JP7755110B2 (en) Image processing device, image processing method, and computer program
JP6701687B2 (en) Image processing apparatus, image processing method, and image processing program
KR100808200B1 (en) Image quality improvement device and method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20131021

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140905

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140916

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20141112

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20150120

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150217

R151 Written notification of patent or utility model registration

Ref document number: 5701010

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees