JP2009272865A - Video converter, video conversion method, and video conversion program - Google Patents

Video converter, video conversion method, and video conversion program Download PDF

Info

Publication number
JP2009272865A
JP2009272865A JP2008121313A JP2008121313A JP2009272865A JP 2009272865 A JP2009272865 A JP 2009272865A JP 2008121313 A JP2008121313 A JP 2008121313A JP 2008121313 A JP2008121313 A JP 2008121313A JP 2009272865 A JP2009272865 A JP 2009272865A
Authority
JP
Japan
Prior art keywords
conversion
video
histogram
value
region
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.)
Granted
Application number
JP2008121313A
Other languages
Japanese (ja)
Other versions
JP5227651B2 (en
Inventor
Kenji Hara
謙治 原
Atsuhiko Maeda
篤彦 前田
Hiroto Inagaki
博人 稲垣
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone 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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2008121313A priority Critical patent/JP5227651B2/en
Publication of JP2009272865A publication Critical patent/JP2009272865A/en
Application granted granted Critical
Publication of JP5227651B2 publication Critical patent/JP5227651B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

<P>PROBLEM TO BE SOLVED: To convert colors while suppressing excess conversion of contrast in color conversion of a video image. <P>SOLUTION: The video image is divided into areas of a plurality of objects by an area division part 22, histogram of each area is created by a conversion suppression parameter creation part 23, and a conversion suppression parameter for suppressing that the histogram is greatly converted when the histogram of each area is distributed to a target distribution range is created. Furthermore, a color conversion function is created using the conversion suppression parameter by an RGB conversion function creation part 25, and the color conversion function is applied to the video image by a video image conversion part 27. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、映像の階調を自動で変換する技術に関するものであり、特に、デジタル映像処理装置において、入力された映像の階調を変換する技術に関する。   The present invention relates to a technique for automatically converting the gradation of an image, and more particularly to a technique for converting the gradation of an input image in a digital image processing apparatus.

映像のヒストグラムは、映像内の各ピクセルに対する明暗値の分布を示したものである。コントラストストレッチングは、明暗値の分布が偏った画像について明暗値を低い値から高い値まで広く分布させることによって映像のコントラストを向上させる手法である。コントラストストレッチングを通して暗すぎる映像は明るくなり、明るすぎる映像は暗くなって適当な明暗値を維持する。すなわち、映像の輝度値分布を修正することによって、映像の全体的なコントラストバランスが改善される。   The histogram of the video shows the distribution of light and dark values for each pixel in the video. Contrast stretching is a technique for improving the contrast of an image by widely distributing the light and dark values from a low value to a high value for an image with a skewed light and dark value distribution. Through contrast stretching, an image that is too dark becomes brighter, and an image that is too bright becomes darker to maintain an appropriate brightness value. That is, the overall contrast balance of the video is improved by correcting the luminance value distribution of the video.

図16は、従来のコントラストストレッチング装置の構成を示すブロック図である。同図に示すように、従来のコントラストストレッチング装置は、分布計算部42及びストレッチング部43を有する。   FIG. 16 is a block diagram showing a configuration of a conventional contrast stretching apparatus. As shown in the figure, the conventional contrast stretching apparatus has a distribution calculation unit 42 and a stretching unit 43.

分布計算部42は、入力された映像から明暗値を計数してヒストグラム値またはヒストグラム関数を求める。目標値入力部は目標最低値と目標最高値とが入力され、入力された値をストレッチング部43に出力する。ストレッチング部43は、分布計算部42で求めたヒストグラム関数を用いて最低値と最高値を有する明暗値を求め、入力映像の明度の最低値と最高値が目標分布入力部に入力された目標最低値と目標最高値とに一致するようにヒストグラムを変換する。ストレッチング部43の処理において、目標最低値が0であり、目標最高値が255であれば、映像は0から255までの明暗値を有し映像のコントラストが増加する。   The distribution calculation unit 42 counts the brightness value from the input video to obtain a histogram value or a histogram function. The target value input unit receives the target minimum value and the target maximum value, and outputs the input values to the stretching unit 43. The stretching unit 43 obtains a light / dark value having a minimum value and a maximum value using the histogram function obtained by the distribution calculation unit 42, and a target value in which the minimum value and the maximum value of the brightness of the input video are input to the target distribution input unit. Transform the histogram to match the lowest and target highest values. In the processing of the stretching unit 43, if the target minimum value is 0 and the target maximum value is 255, the image has brightness values from 0 to 255, and the contrast of the image increases.

また、上述したヒストグラムの拡大処理を映像のR成分とG成分とB成分とに対して同様に施すことで色味を保ったままコントラストを増加させることが可能となる。或いは、R成分とG成分とB成分とに対してそれぞれ独立にヒストグラムの拡大処理を施すことで、色味の偏りが少ないコントラストが増加した映像を作成することが可能となる。なお、本願に関連する先行技術文献としては、次のものがある。
特開平4−257082号公報
Further, the above-described histogram enlarging process is similarly applied to the R component, the G component, and the B component of the video, so that the contrast can be increased while maintaining the color. Alternatively, it is possible to create a video with an increased contrast with little color bias by performing histogram enlargement processing independently on the R component, the G component, and the B component. As prior art documents related to the present application, there are the following.
Japanese Patent Laid-Open No. 4-257082

しかし、従来の技術に係るコントラストストレッチングの場合、過剰にコントラストを向上させてしまい画質に悪影響を与えてしまうことがあった。   However, in the case of contrast stretching according to the conventional technique, the contrast is excessively improved, and the image quality may be adversely affected.

本発明は、上記各問題を解決するためになされたものであり、その課題とするところは、映像の色変換の際に過剰なコントラストの変換を抑えながら色を変換する方法を提供することにある。   The present invention has been made to solve the above-described problems, and an object of the present invention is to provide a method of converting colors while suppressing excessive contrast conversion during color conversion of an image. is there.

第1の本発明に係る映像変換装置は、入力された映像を記憶する記憶手段と、前記映像を読み出し、複数の対象物の領域に分割して記憶手段に記憶させる領域分割手段と、所望の色成分における前記各領域のヒストグラムを作成するヒストグラム作成手段と、前記各ヒストグラムに対して目標とする分布範囲を指定する目標範囲指定手段と、前記各ヒストグラムを前記目標の分布範囲に分布させるように前記映像を変換する際に当該映像のコントラストが予め設定された程度より大きく変換されるのを抑制するための変換抑制パラメタを作成する変換抑制パラメタ作成手段と、前記変換抑制パラメタを用いて色変換関数を作成する色変換関数作成手段と、前記色変換関数を前記映像に適用して映像を変換する映像変換手段と、を有することを特徴とする。   According to a first aspect of the present invention, there is provided a video conversion device, a storage unit that stores an input video, a region division unit that reads the video, divides it into a plurality of target object regions, and stores the divided regions in a storage unit; Histogram creating means for creating a histogram of each region in the color component, target range designating means for designating a target distribution range for each histogram, and each histogram being distributed in the target distribution range Conversion suppression parameter creating means for creating a conversion suppression parameter for suppressing the contrast of the video from being larger than a preset level when converting the video, and color conversion using the conversion suppression parameter A color conversion function creating means for creating a function; and a video conversion means for converting the video by applying the color conversion function to the video. And butterflies.

本発明にあっては、映像を複数の対象物の領域に分割し、各領域のヒストグラムを目標の分布範囲に分布させるべく変換抑制パラメタを作成し、変換抑制パラメタを用いて色変換関数を作成し、色変換関数を映像に適用することで、コントラストが過剰に変換されるのを抑制する。   In the present invention, the image is divided into a plurality of object regions, a conversion suppression parameter is created to distribute the histogram of each region in the target distribution range, and a color conversion function is created using the conversion suppression parameter Then, applying the color conversion function to the video suppresses excessive conversion of the contrast.

上記映像変換装置において、前記領域分割手段は、顔の領域を検出することを特徴とする。   In the video conversion apparatus, the area dividing unit detects a face area.

本発明にあっては、検出された顔の領域について、コントラストが過剰に変換されるのを抑制する。   In the present invention, the contrast of the detected face area is prevented from being excessively converted.

上記映像変換装置において、前記ヒストグラム作成手段は、前記各領域についてR成分、G成分、B成分のヒストグラムを作成する。   In the video conversion apparatus, the histogram creating means creates a histogram of R component, G component, and B component for each region.

本発明にあっては、分割された各領域についてR成分、G成分、B成分のヒストグラムのそれぞれについて変換抑制パラメタを作成し、変換抑制パラメタを用いて色変換関数を作成し、色変換関数を映像に適用することで、コントラストが過剰に変換されるのを抑制する。   In the present invention, a conversion suppression parameter is generated for each of the R component, G component, and B component histograms for each of the divided regions, a color conversion function is generated using the conversion suppression parameter, and the color conversion function is By applying it to the video, it is possible to suppress excessive conversion of contrast.

第2の本発明に係る映像変換方法は、映像変換装置により行う映像変換方法であって、
入力された映像を記憶手段に記憶させるステップと、前記映像を読み出し、複数の対象物の領域に分割して記憶手段に記憶させるステップと、所望の色成分における前記各領域のヒストグラムを作成するステップと、前記各ヒストグラムに対して目標とする分布範囲を指定するステップと、前記各ヒストグラムを前記目標の分布範囲に分布させるように前記映像を変換する際に当該映像のコントラストが予め設定された程度より大きく変換されるのを抑制するための変換抑制パラメタを作成するステップと、前記変換抑制パラメタを用いて色変換関数を作成するステップと、前記色変換関数を前記映像に適用して映像を変換するステップと、を有することを特徴とする。
A video conversion method according to a second aspect of the present invention is a video conversion method performed by a video conversion device,
A step of storing the input video in a storage unit; a step of reading the video, dividing the video into a plurality of target object regions and storing it in the storage unit; and a step of creating a histogram of each region in a desired color component Specifying a target distribution range for each histogram, and a degree to which the contrast of the video is set in advance when converting the video so that each histogram is distributed in the target distribution range Generating a conversion suppression parameter for suppressing a larger conversion; creating a color conversion function using the conversion suppression parameter; and converting the image by applying the color conversion function to the image And a step of performing.

第3の本発明に係る映像変換プログラムは、映像変換装置により、入力された映像を記憶手段に記憶させる処理と、前記映像を読み出し、複数の対象物の領域に分割して記憶手段に記憶させる処理と、所望の色成分における前記各領域のヒストグラムを作成する処理と、前記各ヒストグラムに対して目標とする分布範囲を指定する処理と、前記各ヒストグラムを前記目標の分布範囲に分布させるように前記映像を変換する際に当該映像のコントラストが予め設定された程度より大きく変換されるのを抑制するための変換抑制パラメタを作成する処理と、前記変換抑制持パラメタを用いて色変換関数を作成する処理と、前記色変換関数を前記映像に適用して映像を変換する処理と、をコンピュータに実行させることを特徴とする。   According to a third aspect of the present invention, there is provided a video conversion program for processing a storage unit to store an input video by a video conversion device, reading the video, dividing it into a plurality of object areas, and storing the division into a storage unit. Processing, processing for creating a histogram of each region in a desired color component, processing for designating a target distribution range for each histogram, and distributing each histogram in the target distribution range A process for creating a conversion suppression parameter for suppressing the contrast of the video from being converted larger than a preset level when converting the video, and creating a color conversion function using the conversion suppression parameter And a process of converting the video by applying the color conversion function to the video.

本発明によれば、色変換の際に過剰なコントラスト変換を抑制することが可能になり、例えば顔領域の明るさ、色味の変換の際にコントラストが大きく変換されることを抑制することが可能になる。   According to the present invention, it is possible to suppress excessive contrast conversion at the time of color conversion. For example, it is possible to suppress a large conversion of contrast at the time of conversion of brightness and color of a face area. It becomes possible.

図1は、本実施形態における映像変換装置の全体的な構成を示すブロック図である。同図に示すように、本映像変換装置は、入力装置1、中央処理制御装置2、記憶装置3を有する。入力装置1は、映像信号入力部11、シャッター入力部12、目標分布選択部13を有し、中央処理制御装置2は、フレーム抽出部21、領域分割部22、変換抑制パラメタ作成部23、目標RGB分布作成部24、RGB変換関数作成部25、変換LUT(ルックアッフ゜テーフ゛ル)作成部26、映像変換部27を有し、記憶装置3は、各部が出力する情報を記憶する記憶部の他、RGB分布記憶部31、変換LUT記憶部32を有する。   FIG. 1 is a block diagram showing an overall configuration of a video conversion apparatus according to this embodiment. As shown in FIG. 1, the video conversion apparatus includes an input device 1, a central processing control device 2, and a storage device 3. The input device 1 includes a video signal input unit 11, a shutter input unit 12, and a target distribution selection unit 13. The central processing control device 2 includes a frame extraction unit 21, a region division unit 22, a conversion suppression parameter creation unit 23, a target. The storage device 3 includes an RGB distribution creation unit 24, an RGB conversion function creation unit 25, a conversion LUT (look-up table) creation unit 26, and a video conversion unit 27. The storage device 3 stores information output by each unit, An RGB distribution storage unit 31 and a conversion LUT storage unit 32 are included.

本映像変換装置は、専用のハードウェアとして構成してもよいし、汎用的なコンピュータを用いて構成し、各部の処理をコンピュータプログラムによって実行させるようにしてもよい。尚、各部が処理した結果は、記憶部に読み出し可能に記憶される。   The video conversion apparatus may be configured as dedicated hardware, or may be configured using a general-purpose computer so that the processing of each unit is executed by a computer program. The results processed by each unit are stored in the storage unit so as to be readable.

映像信号入力部11は、映像信号が入力されると、これをフレーム抽出部21と映像変換部27に出力する。ここでは、映像信号入力部11が出力する映像を入力映像と呼ぶ。   When the video signal is input, the video signal input unit 11 outputs the video signal to the frame extraction unit 21 and the video conversion unit 27. Here, the video output from the video signal input unit 11 is referred to as an input video.

本実施形態で扱う入力映像は、複数のフレームによって構成される動画であり、各フレームは、複数のピクセルによって構成される静止画像である。入力映像の幅をwidth、高さをheightで表すと、各フレームは、width×height個のピクセルによって構成される。各ピクセルは、RGBカラーモデルで色を表現するデータであり、フレームにおけるx座標値とy座標値とR値とG値とB値によって構成され、x座標値は1以上width以下の整数値であり、y座標値は1以上height以下の整数値であり、R値とG値とB値はそれぞれ0以上255以下の整数値である。   The input video handled in the present embodiment is a moving image composed of a plurality of frames, and each frame is a still image composed of a plurality of pixels. When the width of the input video is represented by width and the height is represented by height, each frame is composed of width × height pixels. Each pixel is data representing a color in the RGB color model, and is composed of an x coordinate value, a y coordinate value, an R value, a G value, and a B value in the frame. The x coordinate value is an integer value of 1 or more and width or less. Yes, the y-coordinate value is an integer value between 1 and height, and the R value, G value, and B value are integer values between 0 and 255, respectively.

目標分布選択部13では、ユーザが選択した目標RGB分布名を目標RGB分布作成部24に出力する。   The target distribution selection unit 13 outputs the target RGB distribution name selected by the user to the target RGB distribution creation unit 24.

目標RGB分布作成部24は、目標RGB分布名とRGB分布情報群が入力され、目標RGB分布情報を作成し、作成された目標RGB分布情報は変換抑制パラメタ作成部23に出力される。なお、RGB分布情報群は、RGB分布記憶部31から読み出すことで入力される。   The target RGB distribution creation unit 24 receives the target RGB distribution name and the RGB distribution information group, creates target RGB distribution information, and the created target RGB distribution information is output to the conversion suppression parameter creation unit 23. Note that the RGB distribution information group is input by reading from the RGB distribution storage unit 31.

シャッター入力部12は、ユーザによりシャッター操作が行われると、フレーム抽出部21にシャッター操作を伝えるシャッター信号を出力する。   When a shutter operation is performed by the user, the shutter input unit 12 outputs a shutter signal that tells the frame extraction unit 21 of the shutter operation.

フレーム抽出部21は、映像信号とシャッター信号が入力され、静止画像を出力する。フレーム抽出部21が出力する静止画像は入力映像から取り出した1フレームの静止画像である。   The frame extraction unit 21 receives a video signal and a shutter signal and outputs a still image. The still image output from the frame extraction unit 21 is a one-frame still image extracted from the input video.

領域分割部22は、入力映像を複数の対象物の領域に分割する。
変換抑制パラメタ作成部23は、R成分・G成分・B成分における各領域のヒストグラムを作成すると共に目標RGB分布作成部24が出力する目標値を入力として受け取り、変換抑制パラメタを作成する。
The area dividing unit 22 divides the input image into a plurality of object areas.
The conversion suppression parameter creation unit 23 creates a histogram of each region in the R component, G component, and B component, receives the target value output from the target RGB distribution creation unit 24 as an input, and creates a conversion suppression parameter.

RGB変換関数作成部25は、変換抑制パラメタが入力され、R成分・G成分・B成分のヒストグラムが変換抑制パラメタに合致する分布範囲となるように各ヒストグラムに対応したR変換関数とG変換関数とB変換関数とを作成する。   The RGB conversion function creation unit 25 receives the conversion suppression parameter, and the R conversion function and the G conversion function corresponding to each histogram so that the histograms of the R component, the G component, and the B component are in a distribution range that matches the conversion suppression parameter. And B conversion function.

領域分割部22は、静止画像が入力され、領域情報群を出力する。領域情報群は、複数の領域情報によって構成され、各領域情報は領域名Rと領域集合RegionR によって構成される。ピクセルpのx座標値をxp 、y座標値をyp とすると領域集合RegionR
The region dividing unit 22 receives a still image and outputs a region information group. The area information group includes a plurality of area information, and each area information includes an area name R and an area set Region R. If the x coordinate value of pixel p is xp and the y coordinate value is yp, the region set Region R is

と表される。領域分割部22では、静止画像の被写体が人物である場合は、全体領域情報と顔領域情報と黒目領域情報を検出してもよい。或いは静止画像の被写体が物体である場合には、全体領域情報と被写体領域情報と背景領域情報を検出してもよい。以下では被写体が人物である場合に、全体領域情報と顔領域情報と黒目領域情報を検出するときの例について説明する。   It is expressed. The area dividing unit 22 may detect the entire area information, the face area information, and the black eye area information when the subject of the still image is a person. Alternatively, when the subject of the still image is an object, the entire region information, the subject region information, and the background region information may be detected. Hereinafter, an example in which the entire area information, the face area information, and the black eye area information are detected when the subject is a person will be described.

ここでは、全体領域情報は領域名WHOLEと全体領域集合RegionWHOLEによって構成され、顔領域集合は領域名FACEと顔領域集合RegionFACEによって構成され、黒目領域集合は領域名EYEと黒目領域集合RegionEYEによって構成されるものとする。なお、全体領域集合RegionWHOLEとは、入力された静止画像に含まれるすべてのピクセルを含む集合である。 Here, the whole area information is composed of the area name WHOLE and the whole area set Region WHOLE , the face area set is composed of the area name FACE and the face area set Region FACE , and the black eye area set is the area name EYE and the black eye area set Region EYE. It shall be comprised by. The whole region set Region WHOLE is a set including all pixels included in the input still image.

図2は、顔領域情報と黒目領域情報を検出し、入力映像を顔領域と黒目領域に分割するための領域分割部22の構成を示すブロック図である。領域分割部22は、画像スケール変換部221と、検出対象領域切出部222と、空間周波数分析部223と、顔候補判定部224と、顔候補選択部225と、肌領域抽出部226と、黒目領域抽出部227と、によって構成される。   FIG. 2 is a block diagram showing a configuration of the area dividing unit 22 for detecting face area information and black eye area information and dividing an input image into a face area and a black eye area. The region dividing unit 22 includes an image scale converting unit 221, a detection target region extracting unit 222, a spatial frequency analyzing unit 223, a face candidate determining unit 224, a face candidate selecting unit 225, a skin region extracting unit 226, And a black eye region extraction unit 227.

領域分割部22における顔候補の選択はHaar型の特徴量を用い、AdaBoost学習法、及びカスケード構造検出器による方法を用いる(例えば、特開2006−293720号公報参照)。   Selection of face candidates in the region dividing unit 22 uses Haar-type feature values, and uses an AdaBoost learning method and a method using a cascade structure detector (see, for example, JP-A-2006-293720).

検出対象領域切出部222では、スケール変換された画像から既定のサイズの領域の切り出しを行う。ただし、ここで扱う領域の形状は、任意形状であってよいものとする。   The detection target region cutout unit 222 cuts out a region having a predetermined size from the scale-converted image. However, the shape of the region handled here may be an arbitrary shape.

空間周波数分析部223では、切り出された領域に対し空間周波数フィルタリングを行う。例えば、AdaBoost学習法、及びカスケード検出器構造をもつ、Haar型の特徴量検出による手法を用いてもよい。この手法は、P. Viola, M. Jones, "Rapid object Detection using a Boosted Cascade of Simple Features", In Proc. IEEE Conf. on Computer Vision and Pattern Recognition, kauai, USA, 2001に詳しいので、ここでは詳細な説明は省略する。   The spatial frequency analysis unit 223 performs spatial frequency filtering on the cut out region. For example, an AdaBoost learning method and a Haar type feature amount detection method having a cascade detector structure may be used. This method is detailed in P. Viola, M. Jones, "Rapid object Detection using a Boosted Cascade of Simple Features", In Proc. IEEE Conf. On Computer Vision and Pattern Recognition, kauai, USA, 2001. The detailed explanation is omitted.

顔候補判定部224では、空間周波数分析部223の出力値をもとに、領域が顔領域候補となり得るかを判定する。   The face candidate determination unit 224 determines whether the region can be a face region candidate based on the output value of the spatial frequency analysis unit 223.

顔候補選択部225では、顔候補となり得ると判断された顔領域候補のうち面積が最大となる顔領域候補を選択し、出力する。   The face candidate selection unit 225 selects and outputs a face area candidate having the maximum area among face area candidates determined to be face candidates.

肌領域抽出部226では、顔領域候補を入力として顔領域集合RegionFACEを出力する。顔領域集合RegionFACEは、顔領域候補内に含まれるピクセルのうち、ピクセルの色が肌色であるものによって構成される。すなわちRegionFACEは、ピクセルpのx座標値をxp 、y座標値をyp 、R値をrp、G値をgp 、B値をbp とすると
The skin area extraction unit 226 receives a face area candidate and outputs a face area set Region FACE . The face area set Region FACE is composed of pixels included in face area candidates whose pixel color is skin color. In other words, the Region FACE has xp as the x coordinate value of pixel p, yp as the y coordinate value, rp as the R value, gp as the G value, and bp as the B value.

と表される。なお、肌色として扱うRGB値は予め設定してあるものとする。例えばYUVカラーモデルにおいてCb 値が−40以上−20以下でありCb 値が15以上35以下の値を肌色とするなどの手法を用いる。   It is expressed. Note that the RGB values handled as skin color are set in advance. For example, in the YUV color model, a method is used in which the Cb value is -40 or more and -20 or less and the Cb value is 15 or more and 35 or less as skin color.

黒目領域抽出部227では、顔領域候補を入力として黒目領域集合RegionEYEを出力する。黒目領域集合RegionEYEは、顔領域候補内に含まれるピクセルのうち、輝度値が低いピクセルによって構成される。より具体的には顔領域候補内に含まれるピクセルのうち輝度値の低い順に1%のピクセル群を黒目領域集合とする。図3は、領域分割部22で人の顔を検出する際の処理の一例を示す図である。 The black eye region extraction unit 227 outputs a black eye region set Region EYE with the face region candidate as an input. The black eye region set Region EYE is composed of pixels with low luminance values among the pixels included in the face region candidate. More specifically, among the pixels included in the face area candidate, a 1% pixel group is set as a black eye area set in order of increasing luminance value. FIG. 3 is a diagram illustrating an example of processing when the area dividing unit 22 detects a human face.

目標RGB分布作成部24は、目標RGB分布名とRGB分布情報群が入力され、目標RGB分布情報を出力する。RGB分布情報群はRGB分布記憶部31より読み出される。RGB分布情報群は複数のRGB分布情報によって構成され、各RGB分布情報はRGB分布名を持ち、複数のRGB分布レコードによって構成される。図4は、RGB分布情報の一例を示す図である。各RGB分布レコードはレコード番号と領域名と累積割合値と最小伸縮率と最大伸縮率と目標色によって構成される。ここで累積割合値は0以上1以下の少数値である。ここで最小伸縮率及び最大伸縮率は0以上の少数値である。   The target RGB distribution creation unit 24 receives the target RGB distribution name and the RGB distribution information group and outputs target RGB distribution information. The RGB distribution information group is read from the RGB distribution storage unit 31. The RGB distribution information group includes a plurality of RGB distribution information, and each RGB distribution information has an RGB distribution name and includes a plurality of RGB distribution records. FIG. 4 is a diagram illustrating an example of RGB distribution information. Each RGB distribution record includes a record number, a region name, a cumulative ratio value, a minimum expansion / contraction rate, a maximum expansion / contraction rate, and a target color. Here, the cumulative ratio value is a decimal value between 0 and 1. Here, the minimum expansion ratio and the maximum expansion ratio are small values of 0 or more.

本実施形態において扱う色成分について説明すると、Luminance(輝度:YCb CrカラーモデルにおけるY成分)、Cb(YCbCrカラーモデルにおけるCb成分)、Cr(YCbCrカラーモデルにおけるCr成分)、墨(CMYKカラーモデルにおけるK成分)、レッド(RGBカラーモデルにおけるR成分)、グリーン(RGBカラーモデルにおけるG成分)、ブルー(RGBカラーモデルにおけるB成分)、色相(HSVカラーモデルにおけるH成分)、彩度(HSVカラーモデルにおけるS成分)、明度(HSVカラーモデルにおけるV成分)の10種類であり、全ての色成分において最小値は0、最大値は255とする。   The color components handled in this embodiment will be described. Luminance (luminance: Y component in the YCbCr color model), Cb (Cb component in the YCbCr color model), Cr (Cr component in the YCbCr color model), black (in the CMYK color model) K component), red (R component in RGB color model), green (G component in RGB color model), blue (B component in RGB color model), hue (H component in HSV color model), saturation (HSV color model) S component) and brightness (V component in the HSV color model), and the minimum value is 0 and the maximum value is 255 in all color components.

変換抑制パラメタ作成部23は静止画像と領域情報群と目標RGB分布情報が入力され、変換抑制パラメタを作成し、出力する。変換抑制パラメタは、以下の手順によって作成される。   The conversion suppression parameter creation unit 23 receives a still image, a region information group, and target RGB distribution information, and creates and outputs a conversion suppression parameter. The conversion suppression parameter is created by the following procedure.

まず、色成分Componentにおけるピクセルpの色値を返す色値算出関数を
First, a color value calculation function that returns the color value of the pixel p in the color component Component

とする。ここでg(Component,p,x)を
And Where g (Component, p, x)

と定義すると、ピクセルの集合Pにおいて領域集合RegionR にも含まれるピクセルpを取り出したとき、色成分Componentにおけるピクセルpの色値がxとなる確率、すなわちcolor(p,Component)=xとなる確率を表す確率密度関数(ヒストグラム関数)frequency(P,RegionR,Component,x)は
If the pixel p included in the region set Region R in the pixel set P is extracted, the probability that the color value of the pixel p in the color component Component is x, that is, color (p, Component) = x. Probability density function (histogram function) frequency (P, Region R , Component, x)

と定義される。   Is defined.

例えば、画像全体領域情報(領域名WHOLE、領域集合RegionWHOLE)と、顔領域情報(領域名FACE、領域集合RegionFACE)と、黒目領域情報(領域名EYE、領域集合RegionEYE)との領域情報があったとしたとき、ある画像を表すピクセルの集合をPyとし、輝度の色成分をYとすると、全体領域の輝度のヒストグラムは、frequency(Py,RegionWHOLE,Y,x)と表され、同様に顔領域の輝度のヒストグラムは、frequency(P,RegionFACE,Y,x)と表され、黒目領域の輝度のヒストグラムは、frequency(P,RegionEYE,Y,x)と表される。 For example, region information of whole image region information (region name WHOLE, region set Region WHOLE ), face region information (region name FACE, region set Region FACE ), and black eye region information (region name EYE, region set Region EYE ) If the set of pixels representing an image is Py and the luminance color component is Y, the luminance histogram of the entire area is expressed as frequency (Py, Region WHOLE , Y, x). In addition, the luminance histogram of the face region is represented as frequency (P, Region FACE , Y, x), and the luminance histogram of the black eye region is represented as frequency (P, Region EYE , Y, x).

また、色成分Componentのヒストグラムを表す確立密度関数frequency(P,RegionR,Component,x)から導き出される累積分布関数cumulative(P,RegionR,Component,x)は
The cumulative distribution function cumulative (P, Region R , Component, x) derived from the probability density function frequency (P, Region R , Component, x) representing the histogram of the color component Component is

と表される。   It is expressed.

確率密度関数が図5の曲線で表されたとすると、その累積分布関数は、図6のように表される曲線となる。さらに、累積分布関数のxに関する逆関数は
If the probability density function is represented by the curve of FIG. 5, the cumulative distribution function is a curve represented as shown in FIG. Furthermore, the inverse function of the cumulative distribution function with respect to x is

と表される。ただし、ここで、yはy=cumulative(P,RegionR,Component,x)の関係を満たす値である。 It is expressed. Here, y is a value satisfying the relationship y = cumulative (P, Region R , Component, x).

ここで、制御値算出関数control(P,RegionR,Component,A)を前記累積分布関数cumulativeを用いて下記のように定義する。
Here, the control value calculation function control (P, Region R , Component, A) is defined as follows using the cumulative distribution function cumulative.

ただし、ここでは入力された静止画像に含まれるピクセルの集合をP、目標のRGB分布レコードにおける領域名をR、静止画像を領域分割して作成した領域名Rに対応する領域集合をRegionR、色成分をComponent、累積割合値をAとしている。 However, here, the set of pixels included in the input still image is P, the region name in the target RGB distribution record is R, the region set corresponding to the region name R created by dividing the still image into regions is Region R , The color component is Component, and the cumulative ratio value is A.

この制御値算出関数を累積割合値Aに適用することによって、図7に示されるように、
By applying this control value calculation function to the cumulative ratio value A, as shown in FIG.

より、累積割合値Aに対応する制御値Cが算出される。   Thus, the control value C corresponding to the cumulative ratio value A is calculated.

上記制御値算出関数controlを用いて各RGB分布レコードに対応して、ある色成分における制御値が算出される。また、各RGB分布レコードについて、ある色成分における目標色の値を算出することで目標値Tが設定可能となる。R成分において各RGB分布レコードに対応して制御値及び目標値を算出した例を図8に示す。   A control value for a certain color component is calculated corresponding to each RGB distribution record using the control value calculation function control. For each RGB distribution record, the target value T can be set by calculating the target color value for a certain color component. FIG. 8 shows an example in which the control value and the target value are calculated corresponding to each RGB distribution record in the R component.

ここで、制御値C1,C2の範囲を目標値T1,T2の範囲に変換した際の伸縮率算出関数stretchを
Here, the stretch rate calculation function stretch when the range of the control values C 1 and C 2 is converted into the range of the target values T 1 and T 2 is expressed as

と定義する。すなわち伸縮率算出関数stretch(C1,C2,T1,T2)はT1,T2間の距離がC1,C2間の距離の何倍に伸縮されているかを算出する。 It is defined as That is, the stretch rate calculation function stretch (C 1 , C 2 , T 1 , T 2 ) calculates how many times the distance between T 1 and T 2 is stretched or contracted between the distances between C 1 and C 2 .

さらに、制御直列を{Ck}k=1,2,…,n(ただしC1≦C2≦…≦Cn)、目標値列を{Tk}k=1,2,…,n、最小伸縮率数列を{ak}k=1,2,…,n、最大伸縮率数列を{bk}k=1,2,…,nとして、初期伸縮率数列{dk}k=1,2,…,n、制御伸縮率数列{ek}k=1,2,…,n、変換抑制制御値列{Lk}k=1,2,…,n、変換抑制目標値列{Mk}k=1,2,…,nをそれぞれ
Furthermore, the control series is {C k } k = 1,2, ..., n (where C 1 ≤C 2 ≤ ... ≤C n ), and the target value sequence is {T k } k = 1,2, ..., n , The initial expansion rate sequence {d k } k = 1 , where {a k } k = 1,2, ..., n and the maximum expansion rate sequence {b k } k = 1,2, ..., n , 2, ..., n , control expansion / contraction rate sequence {e k } k = 1,2, ..., n , conversion suppression control value sequence {L k } k = 1,2, ..., n , conversion suppression target value sequence { M k } k = 1,2, ..., n

によって求める。ただし
Ask for. However,

とする。   And

以上の手順で制御値列{Ck}k=1,2,…,n、目標値列{Tk}k=1,2,…,n、最小伸縮率数列{ak}k=1,2,…,n、最大伸縮率数列{bk}k=1,2,…,nから、変換抑制制御値列{Lk}k=1,2,…,nを算出する変換抑制制御値列算出関数restrainControlおよび変換抑制目標値列{Mk}k=1,2,…,nを算出する変換抑制目標値列算出関数restrainTargetをそれぞれ
The control value sequence {C k } k = 1,2, ..., n , the target value sequence {T k } k = 1,2, ..., n , the minimum expansion / contraction rate sequence {a k } k = 1, 2, ..., n , conversion suppression control value for calculating conversion suppression control value sequence {L k } k = 1,2, ..., n from maximum expansion / contraction rate sequence {b k } k = 1,2, ..., n The column calculation function restrainControl and the conversion suppression target value sequence {M k } k = 1,2, ..., n are calculated respectively.

と定義する。   It is defined as

このように定めた変換抑制制御値列{Lk}k=1,2,…,n、変換抑制目標値列{Mk}k=1,2,…,n
The conversion suppression control value sequence {L k } k = 1, 2,..., N and the conversion suppression target value sequence {M k } k = 1, 2,.

を満たす。すなわちk番目の伸縮率がekであり、k+1番目の伸縮率をstretch(Ck,Ck+1,Tk,Tk+1)のまま変化させない変換抑制制御値Lkおよび変換抑制目標値Mkが算出される。 Meet. That is, the k-th expansion rate e k, k + 1 th stretch ratio stretch (C k, C k + 1, T k, T k + 1) does leave alter translation suppression control value L k and conversion The suppression target value Mk is calculated.

例えば、図9に示すようにLk-1=60、Mk-1=90、Ck=80、Tk=160、Ck+1=240、Tk+1=240、ak=0.5、bk=2.0であったとすると、初期伸縮率dkおよび抑制伸縮率ek
For example, as shown in FIG. 9, L k-1 = 60, M k-1 = 90, C k = 80, T k = 160, C k + 1 = 240, T k + 1 = 240, a k = 0.5 , B k = 2.0, the initial expansion ratio d k and the suppression expansion ratio e k are

となる。ここで上記に示した手順によりLkおよびMkを求めると
It becomes. Here, when L k and M k are obtained by the procedure shown above,

となる。ここで求めたLkおよびMk
It becomes. L k and M k obtained here are

を満たし、Lk-1-Lk間の伸縮率を抑制伸縮率ek=2.0に抑え、Lk-Ck+1間の伸縮率は抑制前のCk-Ck+1間の伸縮率stretch(Ck,Ck+1,Tk,Tk+1)=0.5と同じ値にしている。 The expansion ratio between L k-1 and L k is suppressed to the suppression expansion ratio e k = 2.0, and the expansion ratio between L k -C k + 1 is the expansion / contraction between C k -C k + 1 before suppression. The rate stretch (C k , C k + 1 , T k , T k + 1 ) = 0.5 is set to the same value.

上記手順により各RGB分布レコードに対応して、ある色成分における変換抑制制御値及び変換抑制目標値を算出した例を図10に示す。   FIG. 10 shows an example in which the conversion suppression control value and the conversion suppression target value for a certain color component are calculated in accordance with the above procedure, corresponding to each RGB distribution record.

ここで色値xの変換を行う色変換関数convert({Lk}k=1,2,…,n,{Mk}k=1,2,…,n,x)を
Here, the color conversion function convert ({L k } k = 1, 2,..., N , {M k } k = 1, 2,..., N , x) for converting the color value x is

と定義する。   It is defined as

ここで、例えば静止画像の輝度ヒストグラムが図11のように分布しており、変換抑制制御値{L1,L2,L3,L4}と変換抑制目標値{M1,M2,M3,M4}が図のように定められていたとすると、色変換関数convert({L1,L2,L3,L4},{M1,M2,M3,M4},x)を適用して輝度値の変換を行った後のヒストグラムは図12のようになる。同図に示すように、色変換関数convertは変換抑制制御値と変換抑制目標値が合致するようにヒストグラムを変換する。 Here, for example, the luminance histogram of the still image is distributed as shown in FIG. 11, and the conversion suppression control values {L 1 , L 2 , L 3 , L 4 } and the conversion suppression target values {M 1 , M 2 , M 3 , M 4 } is defined as shown in the figure, the color conversion function convert ({L 1 , L 2 , L 3 , L 4 }, {M 1 , M 2 , M 3 , M 4 }, x FIG. 12 shows the histogram after the luminance value is converted by applying (). As shown in the figure, the color conversion function convert converts the histogram so that the conversion suppression control value matches the conversion suppression target value.

ここで図13に示すように各目標RGB分布レコードに対して目標色のR値をR目標値、G値をG目標値、B値をB目標値として設定する。   Here, as shown in FIG. 13, the R value of the target color is set as the R target value, the G value as the G target value, and the B value as the B target value for each target RGB distribution record.

また、静止画像のピクセルの集合をP、ある目標RGB分布レコードRecordの領域名をAREA、累積割合値をAとすると、制御値算出関数controlを用いて、R制御値CR
Also, P a set of still image pixels, AREA the area name of a target RGB distribution records Record, when the cumulative percentage value A, using the control value calculation function Control, R control value C R is

と算出され、全RGB分布レコードについて制御値を算出することでR制御値列{CR,k}k=1,2,…,n(ただしC1≦C2≦…≦Cn)を算出できる。 Calculated to the total RGB distribution records R control value column {C R, k} by calculating the control values for k = 1, 2, ..., calculates n (provided that C 1 ≦ C 2 ≦ ... ≦ C n) it can.

ここでさらにCR,kを算出したRGB分布レコードにおけるR目標値をTR,k、最小伸縮率をak、最大伸縮率をbkとしてR目標値列{TR,k}k=1,2,…,nを、最小伸縮率{ak}k=1,2,…,n、R最大伸縮率{bk}k=1,2,…,nを定義する。 Wherein further C R, the R target value in the RGB distribution records to calculate the k T R, k, a minimum stretch ratio of a k, R target sequence up stretch ratio as b k {T R, k} k = 1 , 2,..., N define a minimum expansion / contraction rate {a k } k = 1, 2,..., N and an R maximum expansion / contraction rate {b k } k = 1, 2,.

すると前記変換抑制制御値列算出関数restrainControlおよび変換抑制目標値列算出関数restrainTargetを用いて、R変換抑制制御値列{LR,k}k=1,2,…,nおよびR変換抑制目標値列{MR,k}k=1,2,…,n
Then, using the conversion suppression control value sequence calculation function restrainControl and the conversion suppression target value sequence calculation function restrainTarget, the R conversion suppression control value sequence {L R, k } k = 1, 2,. The sequence {M R, k } k = 1,2, ..., n is

と算出される。   Is calculated.

同様に、RecordのG制御値CG
Similarly, the G control value C G of Record is

と算出され、G制御値列を{CG,k}k=1,2,…,n、G目標値列を{TG,k}k=1,2,…,nとするとG変換抑制制御値列{LG,k}k=1,2,…,nおよびG変換抑制目標値列{MG,k}k=1,2,…,n
If the G control value sequence is {C G, k } k = 1,2,..., N and the G target value sequence is {T G, k } k = 1,2 ,. The control value sequence {L G, k } k = 1, 2,..., N and the G conversion suppression target value sequence {M G, k } k = 1, 2,.

と算出される。また、RecordのB制御値CB
Is calculated. The B control value C B of Record is

と算出され、B制御値列を{CB,k}k=1,2,…,n、B目標値列を{TB,k}k=1,2,…,nとするとB変換抑制制御値列{LB,k}k=1,2,…,nおよびB変換抑制目標値列{MB,k}k=1,2,…,n
If the B control value string is {C B, k } k = 1,2,..., N and the B target value string is {T B, k } k = 1,2 ,. The control value sequence {L B, k } k = 1, 2,..., N and the B conversion suppression target value sequence {M B, k } k = 1, 2,.

と算出される。   Is calculated.

上記手順によって各分布レコードについてR変換抑制制御値、R変換抑制目標値、G変換抑制制御値、G変換抑制目標値、B変換抑制制御値、B変換抑制目標値を算出し、R変換抑制制御値について昇順に並べた表を図14に示す。なお、R変換抑制制御値とR変換抑制目標値以外については省略形とする。変換抑制パラメタ作成部23はここで作成した表を変換抑制パラメタとして出力する。   The R conversion suppression control value, the R conversion suppression target value, the G conversion suppression control value, the G conversion suppression target value, the B conversion suppression control value, and the B conversion suppression target value are calculated for each distribution record by the above procedure, and the R conversion suppression control is performed. FIG. 14 shows a table in which the values are arranged in ascending order. It should be noted that other than the R conversion suppression control value and the R conversion suppression target value are abbreviated. The conversion suppression parameter creation unit 23 outputs the table created here as a conversion suppression parameter.

RGB変換関数作成部25は、変換抑制パラメタが入力され、R変換関数、G変換関数、B変換関数を出力する。   The RGB conversion function creation unit 25 receives the conversion suppression parameter and outputs an R conversion function, a G conversion function, and a B conversion function.

ここで、R変換抑制制御値列{LR,k}k=1,2,…,n(ただしLR,1≦LR,2≦…≦LR,n)と、R変換抑制目標値列{MR,k}k=1,2,…,nを用いてR値の変換を行うR変換関数convertR(x)を
Here, the R conversion suppression control value sequence {L R, k } k = 1, 2,..., N (where L R, 1 ≦ L R, 2 ≦ ... ≦ L R, n ) and the R conversion suppression target value R conversion function convert R (x) for converting R values using the sequence {M R, k } k = 1, 2 ,.

と定義し、G変換抑制制御値列を{LG,k}k=1,2,…,nと、G変換抑制目標値列{MG,k}k=1,2,…,nを用いてG値の変換を行うG変換関数convertG(x)を
G conversion suppression control value sequence {L G, k } k = 1,2, ..., n and G conversion suppression target value sequence { MG, k } k = 1,2, ..., n Use G conversion function convert G (x) to convert G value using

B変換抑制制御値列を{LB,k}k=1,2,…,nと、B変換抑制目標値列{MB,k}k=1,2,…,nを用いてB値の変換を行うB変換関数convertB(x)を
B value using B conversion suppression control value sequence {L B, k } k = 1,2, ..., n and B conversion suppression target value sequence {MB , k } k = 1,2, ..., n B conversion function convert B (x)

と定義する。   It is defined as

RGB変換関数作成部25は、上記のR変換関数convertR(x)とG変換関数convertG(x)とB変換関数convertB(x)とを出力する。 The RGB conversion function creation unit 25 outputs the R conversion function convert R (x), the G conversion function convert G (x), and the B conversion function convert B (x).

変換LUT作成部26は、R変換関数とG変換関数とB変換関数とを入力としてR変換LUTとG変換LUTとB変換LUTを出力する。具体的には、値として取り得る全てのR値、G値、B値に対して、それぞれR変換関数、G変換関数、B変換関数を適用した値が対応する図15のようなLUTを作成し、変換LUT記憶部32に記憶させる。   The conversion LUT creation unit 26 receives the R conversion function, the G conversion function, and the B conversion function as inputs, and outputs an R conversion LUT, a G conversion LUT, and a B conversion LUT. Specifically, an LUT as shown in FIG. 15 is created in which R conversion functions, G conversion functions, and B conversion functions are respectively applied to all possible R, G, and B values. And stored in the conversion LUT storage unit 32.

映像変換部27は、入力映像と色変換LUTを入力として変換映像を出力する。具体的には、入力映像の各フレームの各ピクセルについて色変換LUTを参照してR値、G値、B値を変換して変換フレームを作成し、作成した変換フレームを順次出力することで最終的な変換映像を出力する。   The video conversion unit 27 receives the input video and the color conversion LUT and outputs a converted video. Specifically, with reference to the color conversion LUT for each pixel of each frame of the input video, the R value, the G value, and the B value are converted to create a converted frame, and the generated converted frame is sequentially output to finally A typical converted video.

以上、説明したように、本実施の形態によれば、映像を複数の対象物の領域に分割し、各領域のヒストグラムを目標の分布範囲に分布させるべく変換抑制パラメタを作成し、変換抑制パラメタを用いて色変換関数を作成し、色変換関数を映像に適用することで、コントラストが過剰に変換されるのを抑制することができる。   As described above, according to the present embodiment, a conversion suppression parameter is created to divide an image into a plurality of object regions, and to distribute a histogram of each region in a target distribution range. By creating a color conversion function using and applying the color conversion function to an image, it is possible to suppress excessive conversion of contrast.

また、顔の領域を検出することで、検出された顔の領域について、コントラストが過剰に変換されるのを抑制することができる。   Further, by detecting the face area, it is possible to prevent the contrast of the detected face area from being excessively converted.

また、分割された各領域についてR成分、G成分、B成分のヒストグラムのそれぞれについて変換抑制パラメタを作成し、変換抑制パラメタを用いて色変換関数を作成し、色変換関数を映像に適用することで、R成分、G成分、B成分のコントラストが過剰に変換されるのを抑制する。   Also, a conversion suppression parameter is created for each of the R component, G component, and B component histograms for each divided region, a color conversion function is created using the conversion suppression parameter, and the color conversion function is applied to the video. Thus, excessive conversion of the contrast of the R component, G component, and B component is suppressed.

一実施形態における映像変換装置の全体的な構成を示すブロック図である。It is a block diagram which shows the whole structure of the video converter in one Embodiment. 顔領域情報と黒目領域情報を検出し、入力映像を顔領域と黒目領域に分割するための領域分割部22の構成を示すブロック図である。It is a block diagram which shows the structure of the area division part 22 for detecting face area information and black eye area information, and dividing an input image | video into a face area and a black eye area. 領域分割部22で人の顔を検出する際の処理の一例を示す図である。It is a figure which shows an example of the process at the time of detecting a human face in the area | region division part. RGB分布情報の一例を示す図である。It is a figure which shows an example of RGB distribution information. ある色成分におけるピクセルpの色値がxとなる確率を表す確率密度関数(ヒストグラム関数)の一例を示す図である。It is a figure which shows an example of the probability density function (histogram function) showing the probability that the color value of the pixel p in a certain color component will be x. 図5に示す確率密度関数についての累積分布関数を示す図である。It is a figure which shows the cumulative distribution function about the probability density function shown in FIG. 累積割合値Aから制御値を算出するための制御値算出関数の一例を示す図である。It is a figure which shows an example of the control value calculation function for calculating a control value from the accumulation ratio value A. 図4の各RGB分布レコードに制御値と目標値を追加したものを示す図である。It is a figure which shows what added the control value and the target value to each RGB distribution record of FIG. 制御値と目標値から変換抑制制御値と変換抑制目標値を求める処理の具体例を示す図である。It is a figure which shows the specific example of the process which calculates | requires a conversion suppression control value and a conversion suppression target value from a control value and a target value. 図8の各RGB分布レコードに変換抑制制御値と変換抑制目標値を追加したものを示す図である。It is a figure which shows what added the conversion suppression control value and the conversion suppression target value to each RGB distribution record of FIG. 色変換関数による変換される前のヒストグラムを示す図である。It is a figure which shows the histogram before converting with a color conversion function. 色変換関数による変換された後のヒストグラムを示す図である。It is a figure which shows the histogram after conversion by a color conversion function. 図4の各RGB分布レコードにR目標値、G目標値、B目標値の情報を追加したものを示す図である。FIG. 5 is a diagram showing information obtained by adding R target value, G target value, and B target value information to each RGB distribution record of FIG. 4. R変換抑制制御値、R変換抑制目標値、G変換抑制制御値、G変換抑制目標値、B変換抑制制御値、B変換抑制目標値を、R変換抑制制御値について昇順に並べた表を示す図である。R conversion suppression control value, R conversion suppression target value, G conversion suppression control value, G conversion suppression target value, B conversion suppression control value, B conversion suppression target value are arranged in ascending order for R conversion suppression control values. FIG. R成分、G成分、B成分のそれぞれの色変換用のルックアップテーブルの一例を示す図である。It is a figure which shows an example of the look-up table for each color conversion of R component, G component, and B component. 従来のコントラストストレッチング装置の構成を示すブロック図である。It is a block diagram which shows the structure of the conventional contrast stretching apparatus.

符号の説明Explanation of symbols

1…入力装置
2…中央処理制御装置
3…記憶装置
11…映像信号入力部
12…シャッター入力部
13…目標分布選択部
21…フレーム抽出部
22…領域分割部
23…変換抑制パラメタ作成部
24…目標RGB分布作成部
25…RGB変換関数作成部
26…変換LUT作成部
27…映像変換部
31…RGB分布記憶部
32…変換LUT記憶部
42…分布計算部
43…ストレッチング部
221…画像スケール変換部
222…検出対象領域切出部
223…空間周波数分析部
224…顔候補判定部
225…顔候補選択部
226…肌領域抽出部
227…黒目領域抽出部
DESCRIPTION OF SYMBOLS 1 ... Input device 2 ... Central processing control device 3 ... Memory | storage device 11 ... Video signal input part 12 ... Shutter input part 13 ... Target distribution selection part 21 ... Frame extraction part 22 ... Area division part 23 ... Conversion suppression parameter creation part 24 ... Target RGB distribution creation unit 25 ... RGB conversion function creation unit 26 ... conversion LUT creation unit 27 ... video conversion unit 31 ... RGB distribution storage unit 32 ... conversion LUT storage unit 42 ... distribution calculation unit 43 ... stretching unit 221 ... image scale conversion Unit 222 ... detection target region extraction unit 223 ... spatial frequency analysis unit 224 ... face candidate determination unit 225 ... face candidate selection unit 226 ... skin region extraction unit 227 ... black eye region extraction unit

Claims (5)

入力された映像を記憶する記憶手段と、
前記映像を読み出し、複数の対象物の領域に分割して記憶手段に記憶させる領域分割手段と、
所望の色成分における前記各領域のヒストグラムを作成するヒストグラム作成手段と、
前記各ヒストグラムに対して目標とする分布範囲を指定する目標範囲指定手段と、
前記各ヒストグラムを前記目標の分布範囲に分布させるように前記映像を変換する際に当該映像のコントラストが予め設定された程度より大きく変換されるのを抑制するための変換抑制パラメタを作成する変換抑制パラメタ作成手段と、
前記変換抑制パラメタを用いて色変換関数を作成する色変換関数作成手段と、
前記色変換関数を前記映像に適用して映像を変換する映像変換手段と、
を有することを特徴とする映像変換装置。
Storage means for storing the input video;
An area dividing means for reading out the video and dividing it into areas of a plurality of objects and storing them in a storage means;
A histogram creating means for creating a histogram of each region in a desired color component;
Target range specifying means for specifying a target distribution range for each histogram;
Conversion suppression that creates a conversion suppression parameter for suppressing the contrast of the video from being converted to a degree greater than a preset level when converting the video so that each histogram is distributed in the target distribution range Parameter creation means;
A color conversion function creating means for creating a color conversion function using the conversion suppression parameter;
Video converting means for converting the video by applying the color conversion function to the video;
A video conversion apparatus comprising:
前記領域分割手段は、顔の領域を検出することを特徴とする請求項1記載の映像変換装置。   The video conversion apparatus according to claim 1, wherein the area dividing unit detects a face area. 前記ヒストグラム作成手段は、前記各領域についてR成分、G成分、B成分のヒストグラムを作成することを特徴とする請求項1または2記載の映像変換装置。   The video conversion apparatus according to claim 1, wherein the histogram creation unit creates a histogram of R component, G component, and B component for each region. 映像変換装置により行う映像変換方法であって、
入力された映像を記憶手段に記憶させるステップと、
前記映像を読み出し、複数の対象物の領域に分割して記憶手段に記憶させるステップと、
所望の色成分における前記各領域のヒストグラムを作成するステップと、
前記各ヒストグラムに対して目標とする分布範囲を指定するステップと、
前記各ヒストグラムを前記目標の分布範囲に分布させるように前記映像を変換する際に当該映像のコントラストが予め設定された程度より大きく変換されるのを抑制するための変換抑制パラメタを作成するステップと、
前記変換抑制パラメタを用いて色変換関数を作成するステップと、
前記色変換関数を前記映像に適用して映像を変換するステップと、
を有することを特徴とする映像変換方法。
A video conversion method performed by a video conversion device,
Storing the input video in a storage means;
Reading the video, dividing it into a plurality of object areas and storing it in a storage means;
Creating a histogram of each region in a desired color component;
Designating a target distribution range for each of the histograms;
Creating a conversion suppression parameter for preventing the contrast of the video from being converted to be larger than a preset level when converting the video so that each histogram is distributed in the target distribution range; ,
Creating a color conversion function using the conversion suppression parameter;
Applying the color conversion function to the video to convert the video;
A video conversion method characterized by comprising:
請求項1ないし3のいずれかに記載の映像変換装置としてのコンピュータに当該映像変換装置が行う処理を実行させることを特徴とする映像変換プログラム。   A video conversion program for causing a computer as the video conversion device according to any one of claims 1 to 3 to execute processing performed by the video conversion device.
JP2008121313A 2008-05-07 2008-05-07 Video conversion apparatus, video conversion method, and video conversion program Expired - Fee Related JP5227651B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008121313A JP5227651B2 (en) 2008-05-07 2008-05-07 Video conversion apparatus, video conversion method, and video conversion program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008121313A JP5227651B2 (en) 2008-05-07 2008-05-07 Video conversion apparatus, video conversion method, and video conversion program

Publications (2)

Publication Number Publication Date
JP2009272865A true JP2009272865A (en) 2009-11-19
JP5227651B2 JP5227651B2 (en) 2013-07-03

Family

ID=41439024

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008121313A Expired - Fee Related JP5227651B2 (en) 2008-05-07 2008-05-07 Video conversion apparatus, video conversion method, and video conversion program

Country Status (1)

Country Link
JP (1) JP5227651B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11005049B2 (en) 2013-08-20 2021-05-11 Merck Patent Gmbh Metal complexes

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001148785A (en) * 1999-11-18 2001-05-29 Canon Inc Image processing unit and image processing method and storage medium
JP2001251531A (en) * 1999-12-27 2001-09-14 Fuji Photo Film Co Ltd Method and device for image processing and recording medium
JP2001251530A (en) * 1999-12-27 2001-09-14 Fuji Photo Film Co Ltd Image processing method, image processor and recording medium
JP2006128986A (en) * 2004-10-28 2006-05-18 Matsushita Electric Ind Co Ltd Image processing apparatus
JP2006195651A (en) * 2005-01-12 2006-07-27 Sanyo Electric Co Ltd Gradation compensation device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001148785A (en) * 1999-11-18 2001-05-29 Canon Inc Image processing unit and image processing method and storage medium
JP2001251531A (en) * 1999-12-27 2001-09-14 Fuji Photo Film Co Ltd Method and device for image processing and recording medium
JP2001251530A (en) * 1999-12-27 2001-09-14 Fuji Photo Film Co Ltd Image processing method, image processor and recording medium
JP2006128986A (en) * 2004-10-28 2006-05-18 Matsushita Electric Ind Co Ltd Image processing apparatus
JP2006195651A (en) * 2005-01-12 2006-07-27 Sanyo Electric Co Ltd Gradation compensation device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11005049B2 (en) 2013-08-20 2021-05-11 Merck Patent Gmbh Metal complexes

Also Published As

Publication number Publication date
JP5227651B2 (en) 2013-07-03

Similar Documents

Publication Publication Date Title
US9569827B2 (en) Image processing apparatus and method, and program
JP5889431B2 (en) Image processing apparatus and image processing method
JP3959909B2 (en) White balance adjustment method and adjustment device
CN107507144B (en) Skin color enhancement processing method and device and image processing device
JP2013055712A (en) Gradation correction method, gradation correction device, gradation correction program and image apparatus
JP2005051407A (en) Image processing method and device
US7889280B2 (en) Image processing apparatus and method thereof
US9965881B2 (en) Method for generating image and image generation system
JP2000099717A (en) Picture quality adjusting device, its method and recording medium recorded with image adjusting program
JPH118768A (en) Image processor, image processing method and medium recording image processing control program
JP5227651B2 (en) Video conversion apparatus, video conversion method, and video conversion program
JP5069599B2 (en) Video conversion apparatus, video conversion method, and video conversion program
JP2009050035A (en) Image processing method, image processing system, and image processing program
JP2008312177A (en) Apparatus, method and program, for converting gradation of video image
JP2007243987A (en) Image processing method, image processing system, and image processing program
CN105631812B (en) Control method and control device for color enhancement of display image
JP4708866B2 (en) Lookup table creation device and method, and lookup table creation program
JP2001045303A (en) Image thresholding method
JP4838224B2 (en) Gradation conversion device and method, program
JP2010154484A (en) Device, method and program for video conversion
CN112837230A (en) Image processing apparatus, image processing method, and computer readable medium
US8559712B2 (en) Processing an image of a person&#39;s face
JP2008294969A (en) Video image conversion apparatus, method, and program
KR102215607B1 (en) Electronic device capable of correction to improve the brightness of dark images and operating method thereof
JP2010154494A (en) Device, method and program for video conversion

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100727

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20120509

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20120511

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120621

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120626

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120813

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20121009

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20121113

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: 20130312

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130318

R150 Certificate of patent or registration of utility model

Ref document number: 5227651

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20160322

Year of fee payment: 3

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees