JP2929983B2 - Color image processing equipment - Google Patents

Color image processing equipment

Info

Publication number
JP2929983B2
JP2929983B2 JP7301002A JP30100295A JP2929983B2 JP 2929983 B2 JP2929983 B2 JP 2929983B2 JP 7301002 A JP7301002 A JP 7301002A JP 30100295 A JP30100295 A JP 30100295A JP 2929983 B2 JP2929983 B2 JP 2929983B2
Authority
JP
Japan
Prior art keywords
value
luminance
rgb
pixel
histogram
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
JP7301002A
Other languages
Japanese (ja)
Other versions
JPH09147098A (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.)
NEC Corp
Original Assignee
Nippon Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP7301002A priority Critical patent/JP2929983B2/en
Publication of JPH09147098A publication Critical patent/JPH09147098A/en
Application granted granted Critical
Publication of JP2929983B2 publication Critical patent/JP2929983B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、デジタル画像処理
装置において、複数の入力画像のホワイトバランスを補
正し、ばらばらの色調の統一を計る事により画像を高品
質にする技術に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a technique for correcting the white balance of a plurality of input images in a digital image processing apparatus so as to unify the disparate color tones to improve the quality of the images.

【0002】[0002]

【従来の技術】従来この種の画像処理装置は、画像のホ
ワイトバランスを補正するのに、一枚一枚手動で画素値
を補正し、オペレータが対話的に修正するものであっ
た。ただし単一画像については、特開昭62−2810
70の装置のように、画像中の最大輝度値をもとに自動
的に補正するものも存在した。図7を用いて特開昭62
−281070をもとに従来の画像処理装置の実施例に
ついて説明する。
2. Description of the Related Art Conventionally, in this type of image processing apparatus, in order to correct the white balance of an image, a pixel value is manually corrected one by one, and an operator interactively corrects the pixel value. However, for a single image, see JP-A-62-2810.
Some devices, such as the 70 device, automatically correct based on the maximum luminance value in an image. Referring to FIG.
An example of a conventional image processing apparatus will be described based on -281070.

【0003】従来の装置の実施例は、画像メモリ10
0、最大輝度値抽出部101、補正量算出部102、補
正ROM103、補正ROM104、マスキング回路1
05からなる。
[0003] An embodiment of a conventional device is an image memory 10.
0, maximum luminance value extraction unit 101, correction amount calculation unit 102, correction ROM 103, correction ROM 104, masking circuit 1
It consists of 05.

【0004】入力されたY,R−Y,G−Y信号より、
最大輝度値抽出部101により、画像中の最大輝度値、
あるいは輝度の大きい10点の平均値Ymaxを求め
る。同時に、補正量算出部102において、最大輝度値
Ymaxをもつ画素の色成分,R−Y,G−Yを、それ
ぞれΔRY,ΔGYとして求める。Ymaxが輝度平均
のときには、ΔRY,ΔGYもそれぞれ平均をとる。
[0004] From the input Y, RY, and GY signals,
The maximum luminance value in the image,
Alternatively, an average value Ymax of ten points with high luminance is obtained. At the same time, the correction amount calculation unit 102 obtains the color components, RY, and GY of the pixel having the maximum luminance value Ymax as ΔRY and ΔGY, respectively. When Ymax is the luminance average, ΔRY and ΔGY also average, respectively.

【0005】このようにして求めた補正量より、以下の
式を用いて、R−Y,G−Y信号を変換する。
The RY and GY signals are converted from the correction amounts thus obtained using the following equation.

【0006】 (R−Y)′=(R−Y)ΔRY×Y/Ymax (G−Y)′=(G−Y)ΔGY×Y/Ymax (1) 得られたy,(R−Y)′,(G−Y)′信号を元に、
CMY等の色に変換して出力する。
(R−Y) ′ = (R−Y) ΔRY × Y / Ymax (G−Y) ′ = (G−Y) ΔGY × Y / Ymax (1) The obtained y, (R−Y) ', (GY)' signal,
The image is converted into a color such as CMY and output.

【0007】[0007]

【発明が解決しようとする課題】従来の画像処理装置で
は、複数の画像を統合的に色補正したり、ホワイトバラ
ンスを補正したりすることはできないという問題があっ
た。
The conventional image processing apparatus has a problem that a plurality of images cannot be subjected to integrated color correction or white balance correction.

【0008】また、従来の画像処理装置では、入力信号
として、Y,R−Y,G−Yというビデオ信号を対象に
しているが、例えばパソコン上のデジタル画像処理にお
いてはRGB信号が用いられる場合が多く、Y,R−
Y,G−Y信号からRGBへの変換の工程でしばしばオ
ーバーフロー(RGBのダイナミックレンジを越えてし
まうこと)が起こり、モニタなどに表示する際に色が不
自然になることがあった。
In the conventional image processing apparatus, video signals Y, RY, and GY are used as input signals. For example, in a digital image processing on a personal computer, RGB signals are used. Many, Y, R-
Overflow (exceeding the dynamic range of RGB) often occurs in the process of converting the Y, G-Y signals to RGB, and the color may become unnatural when displayed on a monitor or the like.

【0009】また、従来の画像処理装置では、輝度の高
い部分の情報のみを基にして色変換していたので、輝度
の低い部分の品質を向上させることができなかった。
In the conventional image processing apparatus, since color conversion is performed based only on information of a portion having a high luminance, the quality of a portion having a low luminance cannot be improved.

【0010】[0010]

【課題を解決するための手段】本発明のカラー画像処理
装置は、複数の入力画像を保持する複数入力画像メモリ
と、複数の出力画像を保持する複数出力画像メモリと、
色補正処理がすべての画像データに対して行われるよう
に制御する手段と、入力画像データを保持する入力画像
バッファと、画像から白色画素と黒色画素のRGB値を
抽出する白色黒色抽出手段と、抽出する対象領域を指定
する位置指定手段と、基準白色を保持する基準白色バッ
ファと、基準黒色を保持する基準黒色バッファと、色変
換のためのルックアップテーブルを作成するテーブル作
成手段と、RGBそれぞれに対してテーブル変換を行
う、RGBルックアップテーブル変換手段と、色変換後
の画像データを保持する出力画像バッファとを備えてお
り、白色黒色抽出手段の中には、RGB値から輝度値を
算出する輝度値抽出手段と、輝度のヒストグラムをとる
ヒストグラム算出手段と、ヒストグラムから最大輝度を
得る最大輝度抽出手段と、ヒストグラムから最小輝度を
得る最小輝度抽出手段と、最大輝度を持つ画素のRGB
値を白色画素のRGB値として求める最大輝度RGB値
算出手段と、最小輝度を持つ画素のRGB値を黒色画素
のRGB値として求める最小輝度RGB値算出手段と
備えたことを特徴とする。
SUMMARY OF THE INVENTION Color image processing of the present invention
The apparatus includes a multi-input image memory for storing a plurality of input images.
A plurality of output image memories for holding a plurality of output images;
Color correction processing is performed on all image data.
And an input image holding input image data
Buffer and RGB values of white pixel and black pixel from image
Specify white and black extraction means to extract and target area to extract
And a reference white bag that holds the reference white.
And a reference black buffer for holding the reference black, and a color change
Create a lookup table for conversion
And table conversion for each of RGB
U, RGB lookup table conversion means and after color conversion
And an output image buffer for holding the
The white and black extracting means extracts the luminance value from the RGB value.
Take a luminance histogram to calculate the luminance value extraction means
Histogram calculation means and the maximum brightness from the histogram
The maximum luminance extraction means to obtain and the minimum luminance from the histogram
The minimum luminance extraction means to obtain and the RGB of the pixel having the maximum luminance
Maximum luminance RGB value to obtain the value as RGB value of white pixel
Calculating means for calculating the RGB value of the pixel having the minimum luminance to a black pixel
And a minimum luminance RGB value calculating means for calculating the RGB value of the minimum brightness .

【0011】[0011]

【0012】本発明の画像処理装置の作用について説明
する。
The operation of the image processing apparatus according to the present invention will be described.

【0013】図3と図4の流れ図を用いて、本発明の処
理内容を説明する。これは処理対象となる複数の画像を
統合的に白色補正するものである。
The processing contents of the present invention will be described with reference to the flowcharts of FIGS. In this method, a plurality of images to be processed are white-corrected in an integrated manner.

【0014】オペレータは、まず基準白色値と基準黒色
値を指定し、システムはこれを記憶しておく(ステップ
S1)。複数の白色補正する画像データを保持してお
き、その中から画像を一つずつバッファに入力し(ステ
ップS2)、以下に示す白色補正処理を行って色補正を
行う(ステップS3〜S5)。1つの画像について処理
が終了すれば、判定処理(ステップS6)によって残り
の画像について逐次白色補正処理を行う。このようにし
て、処理すべき複数画像をすべて処理した後に終了す
る。白色補正処理は、まず入力画像データより、白色と
黒色のRGB値を抽出する(ステップS3)。白色と黒
色のRGB値を抽出する方法について、図4を用いて説
明する。
The operator first specifies a reference white value and a reference black value, and the system stores them (step S1). A plurality of image data to be white-corrected are held, and images are input one by one to the buffer (step S2), and color correction is performed by performing the following white correction processing (steps S3 to S5). When the process is completed for one image, the white correction process is sequentially performed on the remaining images by the determination process (step S6). In this way, the process ends after all the plurality of images to be processed are processed. In the white correction process, first, white and black RGB values are extracted from input image data (step S3). A method of extracting white and black RGB values will be described with reference to FIG.

【0015】まず画像データに対し、低域濾過フィルタ
を作用させる(ステップA1)。低域濾過フィルタの例
として、近傍の画素の平均値を新しい画素値として採用
する局所平均フィルタがある。
First, a low-pass filter is applied to image data (step A1). An example of a low-pass filter is a local average filter that employs the average value of nearby pixels as a new pixel value.

【0016】位置i,jにおける画素値を、I(i,
j)とすると、3×3の局所平均フィルタを作用させた
場合、その出力I′(i,j)は、 I′(i,j)=(I(i−1,j−1)+I(i,j−1)+I(i+1, j−1)+I(i−1,j)+I(i,j)+I(i+1,j)+I(i−1, j+1)+I(i,j+1)+I(i+1,j+1))/9 (2) となる。画素値がRGBのように3つある場合には、
R、G、Bのそれぞれに局所平均フィルタを作用させれ
ばよい。低域濾過ステップ(ステップA1)の目的はノ
イズ低減であるが、高速処理を行う時にはこのステップ
A1を削除する。次に画像の輝度のヒストグラムを作成
する(ステップA3)。ここでいう輝度とは、RGB画
素の明るさを数値で示した値のことを指すものとする。
RGB値から輝度値を求める方法として、CIE−XY
Z値のY値を用いる方法がある。RGB値がNTSC信
号であると仮定すると、 Y=0.299×R+0.587×G+0.114×B (3) で得ることができる。その他にもR,G,Bの平均値、
あるいはR,G,Bの最大値などをその画素の輝度(明
るさ)Yとして採用することができる。ヒストグラム5
0を求めるには、画像データを端から走査していき、輝
度Yの値のときには配列hist[Y]の値をインクリ
メントしていけば良い。また、処理時間を短縮するた
め、全画素を探索するのではなく、画素を間引いて数画
素おきに探索し(ステップA2)、ヒストグラムを作成
することができる。
The pixel value at the position i, j is represented by I (i,
j), when a 3 × 3 local average filter is applied, the output I ′ (i, j) is I ′ (i, j) = (I (i−1, j−1) + I ( i, j-1) + I (i + 1, j-1) + I (i-1, j) + I (i, j) + I (i + 1, j) + I (i-1, j + 1) + I (i, j + 1) + I ( i + 1, j + 1)) / 9 (2) If there are three pixel values like RGB,
A local average filter may be applied to each of R, G, and B. The purpose of the low-pass filtering step (step A1) is to reduce noise, but this step A1 is deleted when performing high-speed processing. Next, a histogram of the luminance of the image is created (step A3). The luminance referred to here indicates a value indicating the brightness of the RGB pixel by a numerical value.
As a method of obtaining a luminance value from an RGB value, CIE-XY
There is a method using the Y value of the Z value. Assuming that the RGB values are NTSC signals, Y can be obtained as follows: Y = 0.299 × R + 0.587 × G + 0.114 × B (3) In addition, the average value of R, G, B,
Alternatively, the maximum value of R, G, B or the like can be adopted as the luminance (brightness) Y of the pixel. Histogram 5
In order to obtain 0, the image data is scanned from the end, and when the value is the luminance Y, the value of the array hist [Y] may be incremented. Further, in order to shorten the processing time, instead of searching for all pixels, pixels can be thinned out and searched every few pixels (step A2) to create a histogram.

【0017】画像中で輝度最大画素RGB値(Rma
x,Gmax,Bmax)を求め(ステップA4)、続
いて画像中で輝度最小画素RGB値(Rmin,Gmi
n,Bmin)を求める(ステップA5)。図5のヒス
トグラム50を参照すれば、画像中の輝度最大値と最小
画素を抽出することができる。輝度最大値Ymax51
が求められれば、輝度最大画素RGB値は、もう一度画
像を走査することによって輝度がYmax51のときの
RGB値として求めることができる。同様に輝度最小値
Ymin53が求められれば、輝度最小画素RGB値
は、もう一度画像を走査することによって輝度がYmi
n53のときのRGB値として求めることができる。
The maximum luminance pixel RGB value (Rma) in the image
x, Gmax, Bmax) (step A4), and subsequently, the minimum luminance pixel RGB value (Rmin, Gmi) in the image.
n, Bmin) (step A5). Referring to the histogram 50 of FIG. 5, the maximum luminance value and the minimum pixel in the image can be extracted. Brightness maximum value Ymax51
Is obtained, the maximum luminance pixel RGB value can be obtained as an RGB value when the luminance is Ymax51 by scanning the image again. Similarly, if the minimum luminance value Ymin53 is obtained, the minimum luminance pixel RGB value is determined by scanning the image again to obtain the luminance Ymi.
It can be obtained as an RGB value at the time of n53.

【0018】また輝度最大画素RGB値を決定する際、
全画素数のα%(α=0〜0.1程度)の画素数をNa
とすると、ノイズを考慮してNa番目の高輝度画素を輝
度最大値として求めることができる。このときは、ヒス
トグラム50からα%の画素数分だけ低い輝度値Yma
x′52を輝度最大値として用いる。そして、再び画像
を走査し、Ymax′52以上の画素のRGB値を平均
することによって、輝度最大画素RGB値を決定するこ
とができる。輝度最小画素RGB値を決定する際にも、
まず全画素数のβ%(β=0〜0.1程度)の画素数を
Nbとすると、ノイズを考慮してNb番目の低輝度画素
を輝度最小値として求めることができる。このときは、
ヒストグラム50からβ%の画素数分だけ高い輝度値Y
min′54を輝度最小値として用いる。そして、再び
画像を走査し、Ymin′54以下の画素のRGB値を
平均することによって、輝度最小画素RGB値を決定す
ることができる。
When determining the maximum luminance pixel RGB value,
The number of pixels of α% (α = 0 to about 0.1) of the total number of pixels is Na
Then, the Na-th high luminance pixel can be obtained as the maximum luminance value in consideration of noise. At this time, the luminance value Yma lower than the histogram 50 by the number of pixels of α%
x'52 is used as the maximum luminance value. Then, by scanning the image again and averaging the RGB values of the pixels of Ymax'52 or more, the maximum luminance pixel RGB value can be determined. When determining the minimum luminance pixel RGB value,
First, assuming that the number of pixels of β% (β = 0 to about 0.1) of the total number of pixels is Nb, the Nb-th low luminance pixel can be obtained as the minimum luminance value in consideration of noise. At this time,
A luminance value Y higher by the number of pixels of β% from the histogram 50
min'54 is used as the minimum luminance value. Then, by scanning the image again and averaging the RGB values of the pixels of Ymin'54 or less, the minimum luminance pixel RGB value can be determined.

【0019】このようにして求められた、輝度最大画素
RGB値を白色RGB値(Rw,Gw,Bw)とし、輝
度最小画素RGB値を黒色RGB値(Rb,Gb,B
b)とする。黒色RGB値としては、R,G,Bを同じ
値にして記憶することもできる。R,G,Bを同じにす
る例として、式(4)のように輝度最小画素RGB値
(Rmin,Gmin,Bmin)の最大の値をRb,
Gb,Bbとして採用する方法がある。
The maximum luminance pixel RGB value thus obtained is defined as a white RGB value (Rw, Gw, Bw), and the minimum luminance pixel RGB value is defined as a black RGB value (Rb, Gb, B).
b). As the black RGB values, R, G, and B can be stored with the same value. As an example in which R, G, and B are the same, the maximum value of the minimum luminance pixel RGB value (Rmin, Gmin, Bmin) is represented by Rb,
There is a method adopted as Gb and Bb.

【0020】 Rb=Gb=Bb=MAX(Rmin,Gmin,Bmin) (4) 次に、基準白色と基準黒色を元に変換用LUT(ルック
アップテーブル)を作成する(ステップS4)。図6
に、LUTの作成方法の一例を示す。あらかじめ基準白
色60と基準黒色61はユーザから与えられている。基
準白色60と基準黒色61と、画像から求めた白色RG
B値62と黒色RGB値63とを用いて、R変換特性6
4、G変換特性65、B変換特性66を求める。R変換
特性64を例として、求め方の一例を式(5)に示す。
Rb = Gb = Bb = MAX (Rmin, Gmin, Bmin) (4) Next, a conversion LUT (lookup table) is created based on the reference white and the reference black (step S4). FIG.
FIG. 1 shows an example of a method of creating an LUT. The reference white 60 and the reference black 61 are provided in advance by the user. Reference white 60, reference black 61, and white RG obtained from the image
Using the B value 62 and the black RGB value 63, the R conversion characteristic 6
4. The G conversion characteristic 65 and the B conversion characteristic 66 are obtained. Using the R conversion characteristic 64 as an example, an example of how to obtain it is shown in equation (5).

【0021】 R′=a×R+b a=(Rw−Rb)/(Rw0−Rb0) (5) b=Rb0−a×Rb 次にRGB各変換特性を、それぞれルックアップテーブ
ル(LUT)として記憶する。8bitの画素値を扱う
ときのLUTの例を、LUT67、LUT68、LUT
69に示す。
R ′ = a × R + ba a = (Rw−Rb) / (Rw0−Rb0) (5) b = Rb0−a × Rb Next, each conversion characteristic of RGB is stored as a lookup table (LUT). . Examples of LUTs for handling 8-bit pixel values include LUT67, LUT68, and LUT.
Shown at 69.

【0022】最後に、作成したRGBの各LUTを用い
て全画素の画素値を変換することで白色補正処理が終了
する(ステップS5)。
Finally, the whiteness correction processing is completed by converting the pixel values of all the pixels using the created RGB LUTs (step S5).

【0023】[0023]

【発明の実施の形態】以下に、本発明の実施例であるカ
ラー画像処理装置を図面を用いて説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS A color image processing apparatus according to an embodiment of the present invention will be described below with reference to the drawings.

【0024】図1及び図2は本発明のカラー画像処理装
置の実施例を示すブロック図である。
FIGS. 1 and 2 are block diagrams showing an embodiment of the color image processing apparatus of the present invention.

【0025】本発明の実施例は複数の入力画像を保持す
る複数入力画像メモリ14と、複数の出力画像を保持す
る複数出力画像メモリ16と、色補正処理がすべての画
像データに対して行われるように制御するCPU18
と、色補正手段19とから構成されている。色補正手段
19は、入力画像データを保持する入力画像バッファ1
と、画像から白色画素と黒色画素のRGB値を抽出する
白色黒色抽出手段2と、基準白色を保持する基準白色バ
ッファ7と、基準黒色を保持する基準黒色バッファ8
と、色変換のためのルックアップテーブルを作成するR
GBテーブル作成手段9と、RGBそれぞれに対してテ
ーブル変換を行うRGBテーブル変換手段20と、色変
換後の画像データを保持する出力画像バッファ12とか
ら構成されている。
In the embodiment of the present invention, a plurality of input image memories 14 for holding a plurality of input images, a plurality of output image memories 16 for holding a plurality of output images, and color correction processing is performed on all image data. 18 to control
And color correction means 19. The color correction means 19 includes an input image buffer 1 for holding input image data.
A white / black extracting unit 2 for extracting RGB values of white and black pixels from an image; a reference white buffer 7 for holding a reference white; and a reference black buffer 8 for holding a reference black
And R for creating a lookup table for color conversion
It comprises a GB table creating means 9, an RGB table converting means 20 for performing table conversion for each of RGB, and an output image buffer 12 for holding image data after color conversion.

【0026】さらに白色黒色抽出手段2は、RGB値か
ら輝度値を算出する輝度値抽出手段35と、ヒストグラ
ムをとる際に画素値を間引いて探索する画素間引き探索
手段43と、画像の輝度のヒストグラムをとるヒストグ
ラム算出手段34と、ヒストグラムから最大輝度を得る
最大輝度抽出手段36と、ヒストグラムから最小輝度を
得る最小輝度抽出手段37とを含んでいる。
Further, the white / black extracting means 2 includes a luminance value extracting means 35 for calculating a luminance value from the RGB values, a pixel thinning search means 43 for thinning out pixel values and searching for a histogram, and a histogram of image luminance. , A maximum luminance extracting means 36 for obtaining the maximum luminance from the histogram, and a minimum luminance extracting means 37 for obtaining the minimum luminance from the histogram.

【0027】スキャナなどの画像入力装置13から入力
された複数の画像データは、複数入力画像メモリ14に
保持される。CPU18により、複数入力画像メモリ1
4から一つずつ色補正手段19にデータが入力されて処
理される。
A plurality of image data input from an image input device 13 such as a scanner is stored in a multiple input image memory 14. Multiple input image memory 1
Data is input to the color correction means 19 one by one from 4 and processed.

【0028】色補正手段19では、入力画像バッファ1
に入力された画像データを元に、白色黒色抽出手段2に
よって白色RGB値と黒色RGB値を取得し、RGBテ
ーブル作成手段3に入力する。
In the color correcting means 19, the input image buffer 1
The white RGB value and the black RGB value are acquired by the white / black extracting means 2 based on the image data input to the RGB table creating means 3 and input to the RGB table creating means 3.

【0029】白色黒色抽出手段2においては、入力画像
バッファ1のデータは画像データバッファ32に一時的
に保持され、ヒストグラム算出手段34によって、輝度
値のヒストグラムが算出される。
In the white / black extracting means 2, the data of the input image buffer 1 is temporarily stored in the image data buffer 32, and the histogram of the luminance value is calculated by the histogram calculating means.

【0030】ヒストグラム算出手段34は、RGBから
輝度値を算出する輝度値算出手段35に接続されてい
る。
The histogram calculating means 34 is connected to a luminance value calculating means 35 for calculating a luminance value from RGB.

【0031】ヒストグラムを算出する前に、画像データ
バッファ32の内容に対し、低域濾過フィルタ33によ
ってノイズ成分を除去し、再び画像データバッファ32
にデータを書きもどすことにより、ノイズを除去する構
成とすることもできる。
Before calculating the histogram, a noise component is removed from the contents of the image data buffer 32 by a low-pass filter 33, and the image data buffer 32
By writing the data back to the memory, the noise can be removed.

【0032】さらに、ヒストグラムを算出する時に、画
素間引き探索手段43を用いて、画像全体を探索するの
ではなく数画素おきに画素値を取得しながら画像を探索
してヒストグラムを作成することもできる。
Furthermore, when calculating the histogram, it is also possible to use the pixel thinning-out search means 43 to search the image while obtaining pixel values every several pixels, instead of searching the entire image, and create a histogram. .

【0033】ヒストグラム算出手段34で得られたヒス
トグラムから、最大輝度抽出手段36によって、画像中
の最大輝度を持つ画素の輝度値Ymaxを抽出する。
The luminance value Ymax of the pixel having the maximum luminance in the image is extracted by the maximum luminance extracting means 36 from the histogram obtained by the histogram calculating means 34.

【0034】また課題を解決するための手段の項で述べ
たように、最大輝度抽出手段36の代わりに補正最大輝
度抽出手段44によって、全画素のα%の画素数をNa
とすると、Na番目に大きい輝度値を持つ画素の輝度値
を採用して出力することもできる。
As described in the section of the means for solving the problem, instead of the maximum luminance extracting means 36, the corrected maximum luminance extracting means 44 reduces the number of pixels of α% of all pixels to Na.
Then, the brightness value of the pixel having the Nath largest brightness value can be adopted and output.

【0035】同様に、ヒストグラム算出手段34で得ら
れたヒストグラムから、最小輝度抽出手段37によっ
て、画像中の最小輝度を持つ画素の輝度値Yminを抽
出する。
Similarly, the luminance value Ymin of the pixel having the minimum luminance in the image is extracted by the minimum luminance extracting means 37 from the histogram obtained by the histogram calculating means 34.

【0036】また課題を解決するための手段の項で述べ
たように、最小輝度抽出手段37の代わりに補正最小輝
度抽出手段45によって、全画素のβ%の画素数をNb
とすると、Nb番目に小さい輝度値を持つ画素の輝度値
を採用して出力することもできる。
Further, as described in the section of the means for solving the problems, the corrected minimum luminance extracting means 45 replaces the minimum luminance extracting means 37 with the number of pixels of β% of all the pixels being Nb.
Then, the luminance value of the pixel having the Nb-th smallest luminance value can be adopted and output.

【0037】Ymaxを元に、最大輝度画素RGB値算
出手段38を用いて、白色RGB値を算出して出力す
る。最大輝度画素RGB値算出手段38は、画像データ
バッファ32のデータを走査し、Ymax以上の画素の
RGB値の平均を求める処理を行う。
Based on Ymax, the maximum luminance pixel RGB value calculation means 38 is used to calculate and output a white RGB value. The maximum luminance pixel RGB value calculation means 38 performs a process of scanning data in the image data buffer 32 and calculating an average of RGB values of pixels equal to or more than Ymax.

【0038】Yminを元に、最小輝度画素RGB値算
出手段39を用いて、黒色RGB値を算出して出力す
る。最小輝度画素RGB値算出手段39は、画像データ
バッファ32のデータを走査し、Ymin以下の画素の
RGB値の平均を求める処理を行う。
Based on Ymin, black RGB values are calculated and output using the minimum luminance pixel RGB value calculating means 39. The minimum luminance pixel RGB value calculating unit 39 performs a process of scanning data in the image data buffer 32 and calculating an average of RGB values of pixels equal to or smaller than Ymin.

【0039】最後に黒色値補正手段42によって、黒色
値のRGB値を同一の値にする処理を行い、黒色RGB
値を出力する。黒色値補正手段42の例として課題を解
決するための手段の項の式(4)を実現する装置があ
る。あらかじめ、基準白色黒色指定手段15によって、
基準白色バッファ7に基準白色RGB値が保持されてお
り、基準黒色バッファ8に基準黒色RGB値が保持され
ている。
Finally, the black value correcting means 42 performs a process for setting the RGB values of the black value to the same value,
Output the value. As an example of the black value correcting means 42, there is a device for realizing the expression (4) in the term of means for solving the problem. In advance, by reference white black designation means 15,
The reference white buffer 7 holds reference white RGB values, and the reference black buffer 8 holds reference black RGB values.

【0040】RGBテーブル作成手段3は、白色黒色抽
出手段2の出力値と、基準白色バッファ7と基準黒色バ
ッファ8の値を元に、RGBそれぞれのルックアップテ
ーブルを生成し、RLUT4、GLUT5、BLUT6
に保持する。
The RGB table creating means 3 creates the look-up tables of the respective RGB based on the output values of the white and black extracting means 2 and the values of the reference white buffer 7 and the reference black buffer 8, and RLUT4, GLUT5, BLUT6
To hold.

【0041】RGBテーブル変換手段20は、RLUT
4、GLUT5、BLUT6のデータを元に、入力画像
バッファ1の画素値をテーブル変換し、出力画像バッフ
ァ12に出力する。処理データは出力画像バッファ12
からさらに複数出力画像メモリ16に出力されて保持さ
れるが、一つの画像データが処理された後、CPU18
によって、未処理の画像が複数入力画像メモリ14に残
っているかどうかを調べる。未処理データがあれば、そ
のデータを色補正手段19に入力する。このようにし
て、複数入力画像メモリ14のデータをすべて処理し終
った後に、複数出力画像メモリ16の結果を、ハードデ
ィスク、モニタなどの画像出力装置17に出力する。
The RGB table conversion means 20 uses the RLUT
4. Based on the data of the GLUT 5 and the BLUT 6, the pixel values of the input image buffer 1 are converted into a table and output to the output image buffer 12. Processing data is stored in the output image buffer 12
Are output to the multiple output image memory 16 and held there, but after one image data is processed, the CPU 18
To check whether or not an unprocessed image remains in the multiple input image memory 14. If there is unprocessed data, the data is input to the color correction unit 19. After all the data of the multiple input image memory 14 has been processed in this way, the result of the multiple output image memory 16 is output to the image output device 17 such as a hard disk or a monitor.

【0042】[0042]

【発明の効果】以上説明したように、本発明のカラー画
像処理装置は、複数の画像データを同時に処理すること
により、合成表示された画像の色バランスを補正するこ
とが可能であるという効果がある。
As described above, the color image processing apparatus according to the present invention has an effect that it is possible to correct the color balance of a combined and displayed image by simultaneously processing a plurality of image data. is there.

【0043】また、RGB画像データを他の色座標系に
変換することなく、色補正ができるので、高速に処理が
可能という効果がある。
Further, since the color correction can be performed without converting the RGB image data into another color coordinate system, there is an effect that high-speed processing can be performed.

【0044】また、輝度の高い点(白色点)のみを補正
するのではなく、輝度の低い点(黒色点)も補正するこ
とにより、従来よりも出力画像品質が向上するという効
果がある。
Further, by correcting not only the point having a high luminance (white point) but also the point having a low luminance (black point), there is an effect that the output image quality is improved as compared with the related art.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明のカラー画像処理装置の実施例を示すブ
ロック図。
FIG. 1 is a block diagram illustrating an embodiment of a color image processing apparatus according to the present invention.

【図2】本発明のカラー画像処理装置の実施例を示すブ
ロック図。
FIG. 2 is a block diagram showing an embodiment of the color image processing apparatus of the present invention.

【図3】本発明の作用を説明する流れ図。 FIG. 3 is a flowchart illustrating the operation of the present invention.

【図4】本発明の作用を説明する流れ図。 FIG. 4 is a flowchart illustrating the operation of the present invention.

【図5】最大輝度及び最小輝度抽出の説明図。FIG. 5 is an explanatory diagram of maximum luminance and minimum luminance extraction.

【図6】ルックアップテーブルの説明図。FIG. 6 is an explanatory diagram of a lookup table.

【図7】従来のカラー画像処理装置の実施例を示すブロ
ック図。
FIG. 7 is a block diagram showing an embodiment of a conventional color image processing apparatus.

【符号の説明】[Explanation of symbols]

1 入力画像バッファ 2 白色黒色抽出手段 3 RGBテーブル作成手段 4 RLUT 5 GLUT 6 BLUT 7 基準白色バッファ 8 基準黒色バッファ 9 LUT変換手段 10 LUT変換手段 11 LUT変換手段 12 出力画像バッファ 13 画像入力装置 14 複数入力画像メモリ 15 基準白色黒色指定手段 16 複数出力画像メモリ 17 画像出力装置 18 CPU 19 色補正手段 20 RGBテーブル変換手段 30 白色黒色抽出手段 31 入力RGB画像データ 32 画像データバッファ 33 低域濾過フィルタ 34 ヒストグラム算出手段 35 輝度値抽出手段 36 最大輝度値抽出手段 37 最小輝度値抽出手段 38 最大輝度画素RGB値算出手段 39 最小輝度画素RGB値算出手段 40 白色RGB値 41 黒色RGB値 42 黒色値補正手段 43 画素間引き探索手段 44 補正最大輝度値抽出手段 45 補正最小輝度値抽出手段 50 ヒストグラム 51 最大輝度値Ymax 52 補正最大輝度値Ymax′ 53 最小輝度値 54 補正最小輝度値Ymin′ 60 基準白色 61 基準黒色 62 白色RGB値 63 黒色RGB値 64 R変換特性 65 G変換特性 66 B変換特性 67 Rルックアップテーブル 68 Gルックアップテーブル 69 Bルックアップテーブル 100 画像メモリ 101 最大輝度値抽出部 102 補正量算出部 103 補正ROM 104 補正ROM 105 マスキング回路 DESCRIPTION OF SYMBOLS 1 Input image buffer 2 White-black extraction means 3 RGB table creation means 4 RLUT 5 GLUT 6 BLUT 7 Reference white buffer 8 Reference black buffer 9 LUT conversion means 10 LUT conversion means 11 LUT conversion means 12 Output image buffer 13 Image input device 14 Multiple Input image memory 15 Reference white / black designation unit 16 Multiple output image memory 17 Image output device 18 CPU 19 Color correction unit 20 RGB table conversion unit 30 White / black extraction unit 31 Input RGB image data 32 Image data buffer 33 Low pass filter 34 Histogram Calculation means 35 brightness value extraction means 36 maximum brightness value extraction means 37 minimum brightness value extraction means 38 maximum brightness pixel RGB value calculation means 39 minimum brightness pixel RGB value calculation means 40 white RGB value 41 black RGB value 42 black Value correction means 43 Pixel thinning search means 44 Correction maximum luminance value extraction means 45 Correction minimum luminance value extraction means 50 Histogram 51 Maximum luminance value Ymax 52 Correction maximum luminance value Ymax '53 Minimum luminance value 54 Correction minimum luminance value Ymin' 60 Reference white 61 Reference black 62 White RGB value 63 Black RGB value 64 R conversion characteristic 65 G conversion characteristic 66 B conversion characteristic 67 R lookup table 68 G lookup table 69 B lookup table 100 Image memory 101 Maximum luminance value extraction unit 102 Correction amount Calculation unit 103 Correction ROM 104 Correction ROM 105 Masking circuit

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭60−87594(JP,A) 特開 昭60−87595(JP,A) 特開 平5−342344(JP,A) 特開 平6−178111(JP,A) 特開 昭62−111570(JP,A) 特開 昭62−281070(JP,A) 特開 平1−221247(JP,A) 特開 平2−157758(JP,A) 特開 平4−248681(JP,A) 特開 平4−257082(JP,A) 特開 平6−245063(JP,A) 特開 平7−121681(JP,A) (58)調査した分野(Int.Cl.6,DB名) G06T 5/00 G06T 1/00 H04N 1/60 ────────────────────────────────────────────────── ─── Continuation of the front page (56) References JP-A-60-87594 (JP, A) JP-A-60-87595 (JP, A) JP-A-5-342344 (JP, A) JP-A-6-87544 178111 (JP, A) JP-A-62-111570 (JP, A) JP-A-62-281070 (JP, A) JP-A-1-221247 (JP, A) JP-A-2-157758 (JP, A) JP-A-4-248681 (JP, A) JP-A-4-257082 (JP, A) JP-A-6-245063 (JP, A) JP-A-7-121681 (JP, A) (58) Fields investigated (Int.Cl. 6 , DB name) G06T 5/00 G06T 1/00 H04N 1/60

Claims (6)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】入力画像データを保持する入力画像バッフ
ァと、画像から輝度のヒストグラムを算出するヒストグ
ラム算出手段と、画像から白色画素と黒色画素のRGB
値を抽出する白色黒色抽出手段と、基準白色を保持する
基準白色バッファと、基準黒色を保持する基準黒色バッ
ファと、色変換のためのルックアップテーブルを作成す
るRGBテーブル作成手段と、RGBそれぞれに対して
テーブル変換を行うRGBテーブル変換手段と、色変換
後の画像データを保持する出力画像バッファとを備えて
おり、 白色黒色抽出手段の中には、RGB値から輝度値を算出
する輝度値抽出手段と、輝度のヒストグラムをとるヒス
トグラム算出手段と、ヒストグラムから最大輝度を得る
最大輝度抽出手段と、ヒストグラムから最小輝度を得る
最小輝度抽出手段と、最大輝度を持つ画素のRGB値を
白色画素のRGB値として求める最大輝度RGB値算出
手段と、最小輝度を持つ画素のRGB値を黒色画素のR
GB値として求める最小輝度RGB値算出手段と を備え
ることを特徴とするカラー画像処理装置。
1. An input image buffer for holding input image data.
Histogram and a histogram for calculating the luminance histogram from the image
RAM calculation means, and RGB of white pixels and black pixels from an image
White-black extraction means to extract the value and hold the reference white
A reference white buffer and a reference black buffer that holds the reference black.
And a lookup table for color conversion
RGB table creation means for each of RGB
RGB table conversion means for performing table conversion, and color conversion
And an output image buffer for holding the subsequent image data.
Cage, in a white black extraction means calculates a luminance value from the RGB values
Luminance value extracting means, and hiss for taking a luminance histogram.
Obtain maximum brightness from histogram and histogram calculation means
Maximum luminance extraction means and obtain minimum luminance from histogram
The minimum luminance extracting means and the RGB value of the pixel having the maximum luminance
Calculation of maximum luminance RGB value obtained as RGB value of white pixel
Means and the RGB value of the pixel having the minimum luminance
A color image processing apparatus comprising: a minimum luminance RGB value calculating unit that obtains a RGB value .
【請求項2】複数の入力画像を保持する複数入力画像メ
モリと、複数の出力画像を保持する複数出力画像メモリ
と、色補正処理がすべての画像データに対して行われる
ように制御する手段とを更に備えることを特徴とする請
求項1記載のカラー画像処理装置。
2. A multi-input image method for storing a plurality of input images.
Memory and multiple output image memory to hold multiple output images
And color correction processing is performed on all image data
Control means for controlling the
The color image processing apparatus according to claim 1.
【請求項3】最小輝度RGB値のR,G,B値を同じ値
にする補正して黒色値とする黒色値補正手段とを更に備
えることを特徴とする請求項1又は2記載のカラー画像
処理装置。
3. The R, G, and B values of minimum luminance RGB values are set to the same value.
Black value correcting means for correcting the color value to a black value.
3. The color image according to claim 1, wherein the color image is obtained.
Processing equipment.
【請求項4】輝度のヒストグラムを算出する際に数画素
おきに探索するように制御する画素間引き探索手段を更
に備えることを特徴とする請求項1、2又は3記載のカ
ラー画像処理装置。
4. When calculating a luminance histogram, several pixels are used.
Pixel decimation search means for controlling the search every other
The power supply according to claim 1, 2, or 3, wherein
Image processing device.
【請求項5】ヒストグラムから最大輝度値を抽出する最
大輝度抽出手段に替えて、Naを画素数のα%の数とす
ると、輝度の高いほうからNa番目の画素の輝度値を得
る補正最大輝度抽出手段を備え、ヒストグラムから最小
輝度値を抽出する最小輝度抽出手段に替えて、Nbを画素
数のβ%の数とすると、輝度の低いほうか らNb番目の
画素の輝度値を得る補正最小輝度抽出手段を備え、 前記最大輝度RGB値算出手段が、補正最大輝度値以上
の画素群のRGB値の平均値を白色画素のRGB値とし
て求め、前記最小輝度RGB値算出手段が、補正最小輝
度値以下の画素群のRGB値の平均値を黒色画素のRG
B値として求めることを特徴とする請求項1、2、3又
は4記載のカラー画像処理装置。
5. A method for extracting a maximum luminance value from a histogram.
Let Na be the number of α% of the number of pixels instead of the high luminance extraction means.
Then, the luminance value of the Nath pixel is obtained from the higher luminance.
Correction maximum brightness extraction means, and
Instead of the minimum brightness extraction means for extracting the brightness value, Nb
When the number of beta% number, more or al Nb th low luminance
A corrected minimum luminance extracting unit for obtaining a luminance value of the pixel, wherein the maximum luminance RGB value calculating unit is equal to or more than the corrected maximum luminance value
The average value of the RGB values of the pixel group is defined as the RGB value of the white pixel.
The minimum luminance RGB value calculation means calculates the corrected minimum luminance.
The average value of the RGB values of the pixel group having a degree value or less is calculated as
3. The method according to claim 1, wherein the value is obtained as a B value.
Is a color image processing apparatus according to 4.
【請求項6】画像データのノイズを除去し、輝度のヒス
トグラムを算出精度を高めるために、低周波濾過フィル
タを更に備えることを特徴とする請求項1、2、3、4
又は5記載のカラー画像処理装置。
6. A method for removing noise from image data to obtain a luminance hysteresis.
Low-frequency filtration filter
5. The apparatus according to claim 1, further comprising a data processor.
Or the color image processing apparatus according to 5.
JP7301002A 1995-11-20 1995-11-20 Color image processing equipment Expired - Fee Related JP2929983B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7301002A JP2929983B2 (en) 1995-11-20 1995-11-20 Color image processing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7301002A JP2929983B2 (en) 1995-11-20 1995-11-20 Color image processing equipment

Publications (2)

Publication Number Publication Date
JPH09147098A JPH09147098A (en) 1997-06-06
JP2929983B2 true JP2929983B2 (en) 1999-08-03

Family

ID=17891654

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7301002A Expired - Fee Related JP2929983B2 (en) 1995-11-20 1995-11-20 Color image processing equipment

Country Status (1)

Country Link
JP (1) JP2929983B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6108442A (en) * 1997-06-27 2000-08-22 Minnesota Mining And Manufacturing Company Characterization of color imaging systems
JP4783985B2 (en) 2001-02-28 2011-09-28 日本電気株式会社 Video processing apparatus, video display apparatus, video processing method used therefor, and program thereof
EP1639807A4 (en) 2004-05-17 2008-12-03 Seiko Epson Corp Image processing method, image processing apparatus and program
JP4992507B2 (en) * 2007-03-28 2012-08-08 ソニー株式会社 Imaging apparatus, video signal processing apparatus, and video signal processing method
US8634640B2 (en) 2010-10-21 2014-01-21 Hewlett-Packard Development Company, L.P. Method and apparatus for selecting a color palette

Also Published As

Publication number Publication date
JPH09147098A (en) 1997-06-06

Similar Documents

Publication Publication Date Title
JP4154847B2 (en) Image processing apparatus, image processing method, and computer-readable recording medium storing image processing program
US8103119B2 (en) Image processing device, image processing method, image processing program product, and image-capturing device
US8199227B2 (en) Image-signal processing apparatus for performing space-variant image-signal processing
US7358988B1 (en) Image signal processor for performing image processing appropriate for an output device and method therefor
JP2000228747A (en) Picture processor
US20100303351A1 (en) Image processing apparatus, image processing method, and computer program
JP2002245446A (en) Color image processor and its method
EP0442369B1 (en) Gradation correcting apparatus
JP3074206B2 (en) Image processing apparatus and method
EP2360929B1 (en) Image processing device
JP3673092B2 (en) Image quality adjusting apparatus, image quality adjusting method, and recording medium recording image adjusting program
JP2929983B2 (en) Color image processing equipment
JP2921973B2 (en) Image extraction method and image extraction device for specific object
JPH118768A (en) Image processor, image processing method and medium recording image processing control program
US7352397B2 (en) Circuit and method for contour enhancement
JP4369030B2 (en) Image correction method and apparatus, and computer-readable recording medium storing image correction program
JP3614692B2 (en) Image correction method
JPH09326941A (en) Image processing unit
JP2001045303A (en) Image thresholding method
JPH1042191A (en) Method and device for correcting back light of picture
JP4207259B2 (en) Video signal processing device
JP2000209437A (en) Image correction method and storage medium storing image correction program
JP2002094810A (en) Picture processor, picture processing method and memory medium having stored programs for the method
JP2000165906A (en) Method and device for automatic white balance control
JPH11289468A (en) Picture processing method and picture processor

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19990420

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

Free format text: PAYMENT UNTIL: 20090521

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20100521

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20110521

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20110521

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20120521

Year of fee payment: 13

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

Free format text: PAYMENT UNTIL: 20120521

Year of fee payment: 13

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

Free format text: PAYMENT UNTIL: 20130521

Year of fee payment: 14

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

Free format text: PAYMENT UNTIL: 20140521

Year of fee payment: 15

LAPS Cancellation because of no payment of annual fees