JPH09147098A - Method and device for processing color image - Google Patents
Method and device for processing color imageInfo
- Publication number
- JPH09147098A JPH09147098A JP7301002A JP30100295A JPH09147098A JP H09147098 A JPH09147098 A JP H09147098A JP 7301002 A JP7301002 A JP 7301002A JP 30100295 A JP30100295 A JP 30100295A JP H09147098 A JPH09147098 A JP H09147098A
- Authority
- JP
- Japan
- Prior art keywords
- value
- black
- luminance
- white
- rgb
- 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
Links
- 238000000034 method Methods 0.000 title description 14
- 230000015654 memory Effects 0.000 claims abstract description 17
- 238000006243 chemical reaction Methods 0.000 claims description 27
- 238000000605 extraction Methods 0.000 claims description 24
- 238000003672 processing method Methods 0.000 claims description 5
- 238000001914 filtration Methods 0.000 claims description 3
- 235000019646 color tone Nutrition 0.000 claims description 2
- 102000058080 Glucose Transporter Type 5 Human genes 0.000 abstract description 4
- 108091006301 SLC2A5 Proteins 0.000 abstract description 4
- 230000001131 transforming effect Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 3
- 239000000284 extract Substances 0.000 description 3
- 238000012935 Averaging Methods 0.000 description 2
- 230000000873 masking effect Effects 0.000 description 2
- 239000003086 colorant Substances 0.000 description 1
Landscapes
- Image Input (AREA)
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、デジタル画像処理
装置において、複数の入力画像のホワイトバランスを補
正し、ばらばらの色調の統一を計る事により画像を高品
質にする技術に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a technique for improving the quality of an image in a digital image processing apparatus by correcting the white balance of a plurality of input images and unifying disparate color tones.
【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, each operator manually corrects the pixel value, and the operator interactively corrects the pixel value. However, for a single image, Japanese Patent Laid-Open No. 62-2810
Some devices, such as the device 70, perform automatic correction based on the maximum brightness value in the image. With reference 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からなる。An example of a conventional device is an image memory 10.
0, maximum brightness 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もそれぞれ平均をとる。From the input Y, RY and G-Y signals,
By the maximum brightness value extraction unit 101, the maximum brightness value in the image,
Alternatively, the average value Ymax of 10 points having high brightness is obtained. At the same time, in the correction amount calculation unit 102, the color components of the pixel having the maximum luminance value Ymax, R-Y and G-Y, are obtained as ΔRY and ΔGY, respectively. When Ymax is the luminance average, ΔRY and ΔGY are also averaged.
【0005】このようにして求めた補正量より、以下の
式を用いて、R−Y,G−Y信号を変換する。From the correction amount thus obtained, the RY and GY signals are converted 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) Obtained y, (R−Y) Based on the ', (G-Y)' signals,
The color is converted to CMY and output.
【0007】[0007]
【発明が解決しようとする課題】従来の画像処理装置で
は、複数の画像を統合的に色補正したり、ホワイトバラ
ンスを補正したりすることはできないという問題があっ
た。The conventional image processing apparatus has a problem that it is not possible to perform color correction or white balance correction for a plurality of images in an integrated manner.
【0008】また、従来の画像処理装置では、入力信号
として、Y,R−Y,G−Yというビデオ信号を対象に
しているが、例えばパソコン上のデジタル画像処理にお
いてはRGB信号が用いられる場合が多く、Y,R−
Y,G−Y信号からRGBへの変換の工程でしばしばオ
ーバーフロー(RGBのダイナミックレンジを越えてし
まうこと)が起こり、モニタなどに表示する際に色が不
自然になることがあった。In the conventional image processing apparatus, the video signals Y, RY, and GY are used as the input signals, but RGB signals are used in digital image processing on a personal computer, for example. Many, Y, R-
Overflow (of exceeding the RGB dynamic range) often occurs in the process of converting the Y, G-Y signals to RGB, and the colors may be unnatural when displayed on a monitor or the like.
【0009】また、従来の画像処理装置では、輝度の高
い部分の情報のみを基にして色変換していたので、輝度
の低い部分の品質を向上させることができなかった。Further, in the conventional image processing apparatus, since the color conversion is performed on the basis of only the information of the high brightness portion, the quality of the low brightness portion cannot be improved.
【0010】[0010]
【課題を解決するための手段】上述した問題点を解決す
るため、本発明のカラー画像処理方法は、入力画像デー
タから、画像中の白色画素と黒色画素の値を抽出するス
テップと、抽出された白色値と黒色値とあらかじめ与え
られた基準白色値と基準黒色値とを基に、変換用テーブ
ルを作成するステップと、作成したテーブルを基に全画
素にテーブル変換を施すステップとからなる色補正処理
を、複数の入力画像データに対し同時に施すことを特徴
とする。In order to solve the above-mentioned problems, the color image processing method of the present invention comprises the steps of extracting the values of white pixels and black pixels in an image from input image data, and extracting the values. A color that includes a step of creating a conversion table based on a white value, a black value, and a predetermined reference white value and a standard black value, and a step of performing table conversion on all pixels based on the created table. It is characterized in that the correction processing is simultaneously performed on a plurality of input image data.
【0011】また、本発明のカラー画像処理装置は、複
数の入力画像を保持する複数入力画像メモリと、複数の
出力画像を保持する複数出力画像メモリと、色補正処理
がすべての画像データに対して行われるように制御する
手段と、入力画像データを保持する入力画像バッファ
と、画像から白色画素と黒色画素のRGB値を抽出する
白色黒色抽出手段と、抽出する対象領域を指定する位置
指定手段と、基準白色を保持する基準白色バッファと、
基準黒色を保持する基準黒色バッファと、色変換のため
のルックアップテーブルを作成するテーブル作成手段
と、RGBそれぞれに対してテーブル変換を行う、RG
Bルックアップテーブル変換手段と、色変換後の画像デ
ータを保持する出力画像バッファとを備えたことを特徴
とする。Further, the color image processing apparatus of the present invention has a plurality of input image memories for holding a plurality of input images, a plurality of output image memories for holding a plurality of output images, and a color correction process for all image data. To control the input image data, an input image buffer that holds the input image data, a white-black extraction unit that extracts the RGB values of white pixels and black pixels from the image, and a position designation unit that designates the target area to be extracted. And a reference white buffer that holds the reference white,
A reference black buffer that holds a reference black, a table creating unit that creates a lookup table for color conversion, and a table conversion for each of RGB.
It is characterized in that it is provided with a B look-up table conversion means and an output image buffer for holding image data after color conversion.
【0012】本発明の画像処理装置の作用について説明
する。The operation of the image processing apparatus of 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. 3 and 4. This is to perform white correction on a plurality of images to be processed in an integrated manner.
【0014】オペレータは、まず基準白色値と基準黒色
値を指定し、システムはこれを記憶しておく(ステップ
S1)。複数の白色補正する画像データを保持してお
き、その中から画像を一つずつバッファに入力し(ステ
ップS2)、以下に示す白色補正処理を行って色補正を
行う(ステップS3〜S5)。1つの画像について処理
が終了すれば、判定処理(ステップS6)によって残り
の画像について逐次白色補正処理を行う。このようにし
て、処理すべき複数画像をすべて処理した後に終了す
る。白色補正処理は、まず入力画像データより、白色と
黒色のRGB値を抽出する(ステップS3)。白色と黒
色のRGB値を抽出する方法について、図4を用いて説
明する。The operator first specifies the reference white value and the reference black value, and the system stores them (step S1). A plurality of image data to be white-corrected is held, images are input one by one from the buffer to the buffer (step S2), and the following white correction processing is performed to perform color correction (steps S3 to S5). When the process for one image is completed, the white correction process is sequentially performed for the remaining images by the determination process (step S6). In this way, the processing is completed after processing all the plurality of images to be processed. In the white correction processing, first, RGB values of white and black are extracted from the input image data (step S3). A method for extracting white and black RGB values will be described with reference to FIG.
【0015】まず画像データに対し、低域濾過フィルタ
を作用させる(ステップA1)。低域濾過フィルタの例
として、近傍の画素の平均値を新しい画素値として採用
する局所平均フィルタがある。First, a low pass filter is applied to the image data (step A1). An example of the low pass filter is a local average filter that adopts the average value of neighboring 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)、ヒストグラムを作成
することができる。Pixel values at positions i and j are represented by I (i,
j), when a 3 × 3 local average filter is operated, its 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 high-speed processing is performed. Next, a histogram of the brightness of the image is created (step A3). The brightness here refers to a value indicating the brightness of the RGB pixel by a numerical value.
As a method of obtaining a luminance value from RGB values, CIE-XY
There is a method of using the Y value of the Z value. Assuming the RGB values are NTSC signals, 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 of the brightness Y is obtained, the value of the array hist [Y] is incremented. Further, in order to shorten the processing time, it is possible to create a histogram by thinning out pixels and searching every few pixels instead of searching all pixels (step A2).
【0017】画像中で輝度最大画素RGB値(Rma
x,Gmax,Bmax)を求め(ステップA4)、続
いて画像中で輝度最小画素RGB値(Rmin,Gmi
n,Bmin)を求める(ステップA5)。図5のヒス
トグラム50を参照すれば、画像中の輝度最大値と最小
画素を抽出することができる。輝度最大値Ymax51
が求められれば、輝度最大画素RGB値は、もう一度画
像を走査することによって輝度がYmax51のときの
RGB値として求めることができる。同様に輝度最小値
Ymin53が求められれば、輝度最小画素RGB値
は、もう一度画像を走査することによって輝度がYmi
n53のときのRGB値として求めることができる。Maximum luminance pixel RGB value (Rma
x, Gmax, Bmax) is calculated (step A4), and then the luminance minimum pixel RGB value (Rmin, Gmi) in the image is obtained.
n, Bmin) is obtained (step A5). By referring to the histogram 50 in FIG. 5, the maximum luminance value and the minimum pixel in the image can be extracted. Maximum brightness Ymax51
Then, the maximum luminance pixel RGB value can be obtained as the 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 once more, so that the luminance is Ymi.
It can be obtained as an RGB value when 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 RGB value of the maximum luminance pixel,
The number of pixels of α% (α = 0 to 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 is used.
x'52 is used as the maximum luminance value. Then, the image is scanned again, and the RGB value of the maximum luminance pixel can be determined by averaging the RGB values of the pixels of Ymax′52 or more. Even when determining the minimum luminance pixel RGB value,
First, if 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,
Brightness value Y that is higher from the histogram 50 by the number of β% pixels
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 brightness maximum pixel RGB value thus obtained is set as a white RGB value (Rw, Gw, Bw), and the brightness minimum pixel RGB value is set as a black RGB value (Rb, Gb, B).
b). As the black and white RGB values, R, G and B may be set to the same value and stored. As an example in which R, G, and B are the same, the maximum value of the luminance minimum pixel RGB values (Rmin, Gmin, Bmin) is represented by Rb, as shown in Expression (4).
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 (look-up table) is created based on the reference white and the reference black (step S4). FIG.
An example of the method for creating the LUT is shown in FIG. The reference white 60 and the reference black 61 are given 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, G conversion characteristic 65 and B conversion characteristic 66 are obtained. Taking the R conversion characteristic 64 as an example, an example of how to obtain it is shown in Expression (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 + b a = (Rw−Rb) / (Rw0−Rb0) (5) b = Rb0−a × Rb Next, each RGB conversion characteristic is stored as a lookup table (LUT). . Examples of LUTs for handling 8-bit pixel values are LUT67, LUT68, LUT
69.
【0022】最後に、作成したRGBの各LUTを用い
て全画素の画素値を変換することで白色補正処理が終了
する(ステップS5)。Finally, the white correction processing is completed by converting the pixel values of all the pixels using the created RGB LUTs (step S5).
【0023】[0023]
【発明の実施の形態】以下に、本発明の実施例であるカ
ラー画像処理装置を図面を用いて説明する。DETAILED DESCRIPTION OF THE INVENTION 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は本発明のカラー画像処理装
置の実施例を示すブロック図である。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 multi-input image memory 14 that holds a plurality of input images, a multi-output image memory 16 that holds a plurality of output images, and color correction processing are performed on all image data. 18 to control
And color correction means 19. The color correction unit 19 is an input image buffer 1 that holds input image data.
A white and black extraction means 2 for extracting RGB values of white and black pixels from the image, a reference white buffer 7 for holding a reference white, and a reference black buffer 8 for holding a reference black.
And R to create a lookup table for color conversion
It is composed of 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 extraction means 2 is a brightness value extraction means 35 for calculating a brightness value from RGB values, a pixel thinning search means 43 for thinning out pixel values when obtaining a histogram, and a histogram of image brightness. And a maximum brightness extracting means 36 for obtaining the maximum brightness from the histogram, and a minimum brightness extracting means 37 for obtaining the minimum brightness from the histogram.
【0027】スキャナなどの画像入力装置13から入力
された複数の画像データは、複数入力画像メモリ14に
保持される。CPU18により、複数入力画像メモリ1
4から一つずつ色補正手段19にデータが入力されて処
理される。A plurality of image data input from the image input device 13 such as a scanner is held in the multiple input image memory 14. Multiple input image memory 1 by CPU 18
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 correction means 19, the input image buffer 1
The white and black extraction means 2 obtains the white RGB value and the black RGB value based on the image data input to, and inputs them to the RGB table creation means 3.
【0029】白色黒色抽出手段2においては、入力画像
バッファ1のデータは画像データバッファ32に一時的
に保持され、ヒストグラム算出手段34によって、輝度
値のヒストグラムが算出される。In the white / black extraction means 2, the data of the input image buffer 1 is temporarily held in the image data buffer 32, and the histogram calculation means 34 calculates the histogram of the brightness values.
【0030】ヒストグラム算出手段34は、RGBから
輝度値を算出する輝度値算出手段35に接続されてい
る。The histogram calculating means 34 is connected to the brightness value calculating means 35 for calculating the brightness value from RGB.
【0031】ヒストグラムを算出する前に、画像データ
バッファ32の内容に対し、低域濾過フィルタ33によ
ってノイズ成分を除去し、再び画像データバッファ32
にデータを書きもどすことにより、ノイズを除去する構
成とすることもできる。Before the histogram is calculated, noise components are removed from the contents of the image data buffer 32 by the low pass filter 33, and the image data buffer 32 is again restored.
It is also possible to adopt a configuration in which noise is removed by rewriting the data in the.
【0032】さらに、ヒストグラムを算出する時に、画
素間引き探索手段43を用いて、画像全体を探索するの
ではなく数画素おきに画素値を取得しながら画像を探索
してヒストグラムを作成することもできる。Further, when the histogram is calculated, the pixel thinning-out searching means 43 may be used to search the image while acquiring pixel values every few pixels instead of searching the entire image to create a histogram. .
【0033】ヒストグラム算出手段34で得られたヒス
トグラムから、最大輝度抽出手段36によって、画像中
の最大輝度を持つ画素の輝度値Ymaxを抽出する。From the histogram obtained by the histogram calculating means 34, the maximum luminance extracting means 36 extracts the luminance value Ymax of the pixel having the maximum luminance in the image.
【0034】また課題を解決するための手段の項で述べ
たように、最大輝度抽出手段36の代わりに補正最大輝
度抽出手段44によって、全画素のα%の画素数をNa
とすると、Na番目に大きい輝度値を持つ画素の輝度値
を採用して出力することもできる。As described in the section of means for solving the problem, the corrected maximum luminance extracting means 44 is used instead of the maximum luminance extracting means 36 to change the number of α% of all pixels to Na.
Then, the luminance value of the pixel having the Nath largest luminance value can be adopted and output.
【0035】同様に、ヒストグラム算出手段34で得ら
れたヒストグラムから、最小輝度抽出手段37によっ
て、画像中の最小輝度を持つ画素の輝度値Yminを抽
出する。Similarly, from the histogram obtained by the histogram calculating means 34, the minimum luminance extracting means 37 extracts the luminance value Ymin of the pixel having the minimum luminance in the image.
【0036】また課題を解決するための手段の項で述べ
たように、最小輝度抽出手段37の代わりに補正最小輝
度抽出手段45によって、全画素のβ%の画素数をNb
とすると、Nb番目に小さい輝度値を持つ画素の輝度値
を採用して出力することもできる。As described in the section of means for solving the problem, the corrected minimum luminance extraction means 45 is used instead of the minimum luminance extraction means 37 to change the number of β% of all pixels to 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 brightness pixel RGB value calculation means 38 is used to calculate and output white RGB values. The maximum brightness pixel RGB value calculation means 38 scans the data in the image data buffer 32, and performs a process of obtaining an average of RGB values of pixels of Ymax or more.
【0038】Yminを元に、最小輝度画素RGB値算
出手段39を用いて、黒色RGB値を算出して出力す
る。最小輝度画素RGB値算出手段39は、画像データ
バッファ32のデータを走査し、Ymin以下の画素の
RGB値の平均を求める処理を行う。Based on Ymin, the minimum brightness pixel RGB value calculation means 39 is used to calculate and output a black RGB value. The minimum brightness pixel RGB value calculation means 39 scans the data in the image data buffer 32, and performs processing for obtaining the average of the RGB values of pixels of Ymin or less.
【0039】最後に黒色値補正手段42によって、黒色
値のRGB値を同一の値にする処理を行い、黒色RGB
値を出力する。黒色値補正手段42の例として課題を解
決するための手段の項の式(4)を実現する装置があ
る。あらかじめ、基準白色黒色指定手段15によって、
基準白色バッファ7に基準白色RGB値が保持されてお
り、基準黒色バッファ8に基準黒色RGB値が保持され
ている。Finally, the black value correcting means 42 performs a process of setting the RGB values of the black value to the same value to obtain the black RGB value.
Output the value. As an example of the black value correction means 42, there is a device that realizes the expression (4) in the term of means for solving the problem. In advance, by the reference white black designating means 15,
The reference white RGB value is held in the reference white buffer 7, and the reference black RGB value is held in the reference black buffer 8.
【0040】RGBテーブル作成手段3は、白色黒色抽
出手段2の出力値と、基準白色バッファ7と基準黒色バ
ッファ8の値を元に、RGBそれぞれのルックアップテ
ーブルを生成し、RLUT4、GLUT5、BLUT6
に保持する。The RGB table creating means 3 creates a lookup table for each of RGB based on the output value of the white / 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 is an RLUT.
The pixel value of the input image buffer 1 is converted into a table based on the data of 4, GLUT5, and BLUT6 and output to the output image buffer 12. The processed data is output image buffer 12
Is further output to and stored in the multiple-output image memory 16, but after one image data is processed, the CPU 18
Is checked to see if any unprocessed images remain in the multiple input image memory 14. If there is unprocessed data, that data is input to the color correction means 19. In this way, after all the data in the multi-input image memory 14 has been processed, the result in the multi-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 of the present invention has the effect that it is possible to correct the color balance of the image displayed in combination by simultaneously processing a plurality of image data. is there.
【0043】また、RGB画像データを他の色座標系に
変換することなく、色補正ができるので、高速に処理が
可能という効果がある。Further, since color correction can be performed without converting the RGB image data into another color coordinate system, there is an effect that processing can be performed at high speed.
【0044】また、輝度の高い点(白色点)のみを補正
するのではなく、輝度の低い点(黒色点)も補正するこ
とにより、従来よりも出力画像品質が向上するという効
果がある。Further, by correcting not only the high-luminance point (white point) but also the low-luminance point (black point), there is an effect that the output image quality is improved as compared with the prior art.
【図1】本発明のカラー画像処理装置の実施例を示すブ
ロック図。FIG. 1 is a block diagram showing an embodiment of a color image processing apparatus of the present invention.
【図2】本発明のカラー画像処理装置の実施例を示すブ
ロック図。FIG. 2 is a block diagram showing an embodiment of a color image processing apparatus of the present invention.
【図3】本発明のカラー画像処理方法の流れ図。FIG. 3 is a flowchart of a color image processing method of the present invention.
【図4】本発明のカラー画像処理方法の白色黒色抽出部
の流れ図。FIG. 4 is a flowchart of a white / black extraction unit of the color image processing method of the present invention.
【図5】最大輝度及び最小輝度抽出の説明図。FIG. 5 is an explanatory diagram of maximum brightness and minimum brightness 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 device.
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 マスキング回路 1 Input Image Buffer 2 White / Black Extracting Means 3 RGB Table Creating Means 4 RLUT 5 GLUT 6 BLUT 7 Standard White Buffer 8 Standard Black Buffer 9 LUT Converting Means 10 LUT Converting Means 11 LUT Converting Means 12 Output Image Buffer 13 Image Inputting Equipment 14 Multiple Input image memory 15 Reference white / black designation means 16 Multiple output image memory 17 Image output device 18 CPU 19 Color correction means 20 RGB table conversion means 30 White / black extraction means 31 Input RGB image data 32 Image data buffer 33 Low-pass filtering filter 34 Histogram Calculation means 35 Luminance value extraction means 36 Maximum luminance value extraction means 37 Minimum luminance value extraction means 38 Maximum luminance pixel RGB value calculation means 39 Minimum luminance pixel RGB value calculation means 40 White RGB value 41 Black RGB value 42 Black Value correction means 43 Pixel thinning search means 44 Corrected maximum brightness value extraction means 45 Corrected minimum brightness value extraction means 50 Histogram 51 Maximum brightness value Ymax 52 Corrected maximum brightness value Ymax '53 Minimum brightness value 54 Corrected minimum brightness 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
Claims (8)
黒色画素の値を抽出するステップと、抽出された白色値
と黒色値とあらかじめ与えられた基準白色値と基準黒色
値とを基に、変換用テーブルを作成するステップと、作
成したテーブルとを基に全画素にテーブル変換を施すス
テップとからなることを特徴とするカラー画像処理方
法。1. A step of extracting values of a white pixel and a black pixel in an image from input image data, based on the extracted white value and black value and a predetermined reference white value and reference black value. , A color image processing method comprising the steps of creating a conversion table and performing a table conversion for all pixels based on the created table.
とにより、色調の統一を行うことを特徴とする請求項1
記載のカラー画像処理方法。2. The color tones are unified by simultaneously applying to a plurality of input image data.
The described color image processing method.
ァと、画像から輝度のヒストグラムを算出するヒストグ
ラム算出手段と、画像から白色画素と黒色画素のRGB
値を抽出する白色黒色抽出手段と、基準白色を保持する
基準白色バッファと、基準黒色を保持する基準黒色バッ
ファと、色変換のためのルックアップテーブルを作成す
るRGBテーブル作成手段と、RGBそれぞれに対して
テーブル変換を行うRGBテーブル変換手段と、色変換
後の画像データを保持する出力画像バッファとを備えて
おり、白色黒色抽出手段の中には、RGB値から輝度値
を算出する輝度値抽出手段と、輝度のヒストグラムをと
るヒストグラム算出手段と、ヒストグラムから最大輝度
を得る最大輝度抽出手段と、ヒストグラムから最小輝度
を得る最小輝度抽出手段とを備えることを特徴とするカ
ラー画像処理装置。3. An input image buffer for holding input image data, a histogram calculating means for calculating a luminance histogram from the image, and RGB of white pixels and black pixels from the image.
White / black extraction means for extracting values, reference white buffer for holding reference white, reference black buffer for holding reference black, RGB table creation means for creating a lookup table for color conversion, and RGB for each An RGB table conversion means for performing table conversion and an output image buffer for holding image data after color conversion are provided, and a brightness value extraction for calculating a brightness value from RGB values is included in the white / black extraction means. A color image processing apparatus comprising: a means, a histogram calculating means for taking a histogram of luminance, a maximum luminance extracting means for obtaining a maximum luminance from the histogram, and a minimum luminance extracting means for obtaining a minimum luminance from the histogram.
モリと、複数の出力画像を保持する複数出力画像メモリ
と、色補正処理がすべての画像データに対して行われる
ように制御する手段とを更に備えることを特徴とする請
求項3記載のカラー画像処理装置。4. A multi-input image memory for holding a plurality of input images, a multi-output image memory for holding a plurality of output images, and means for controlling color correction processing to be performed on all image data. The color image processing apparatus according to claim 3, further comprising:
にする補正して黒色値とする黒色値補正手段とを更に備
えることを特徴とする請求項3又は4記載のカラー画像
処理装置。5. The color image according to claim 3, further comprising a black value correction unit that corrects R, G, and B values of the minimum luminance RGB values to the same value to obtain a black value. Processing equipment.
おきに探索するように制御する画素間引き探索手段を更
に備えることを特徴とする請求項3、4又は5記載のカ
ラー画像処理装置。6. The color image processing apparatus according to claim 3, further comprising pixel thinning-out search means for controlling so as to search every few pixels when calculating a luminance histogram.
大輝度抽出手段に替えて、Naを画素数のα%の数とす
ると、輝度の高いほうからNa番目の画素の輝度値を得
る補正最大輝度抽出手段を備え、ヒストグラムから最小
輝度値を抽出する最小輝度抽出手段に替えて、Nbを画素
数のβ%の数とすると、輝度の低いほうからNb番目の
画素の輝度値を得る補正最小輝度抽出手段を備えたこと
を特徴とする請求項3、4、5又は6記載のカラー画像
処理装置。7. A corrected maximum luminance for obtaining the luminance value of the Na-th pixel from the highest luminance, where Na is the number of α% of the number of pixels instead of the maximum luminance extraction means for extracting the maximum luminance value from the histogram. Corrected minimum luminance for obtaining the luminance value of the Nb-th pixel from the lowest luminance, where Nb is the number of β% of the number of pixels, instead of the minimum luminance extraction means for extracting the minimum luminance value from the histogram. 7. The color image processing apparatus according to claim 3, further comprising an extracting unit.
トグラムを算出精度を高めるために、低周波濾過フィル
タを更に備えることを特徴とする請求項3、4、5、6
又は7記載のカラー画像処理装置。8. A low-frequency filtering filter is further provided to remove noise from the image data and improve the accuracy of calculating the luminance histogram.
Alternatively, the color image processing device according to item 7.
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 true JPH09147098A (en) | 1997-06-06 |
JP2929983B2 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) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO1999000648A1 (en) * | 1997-06-27 | 1999-01-07 | Minnesota Mining And Manufacturing Company | Characterization of color imaging systems |
JP2008245096A (en) * | 2007-03-28 | 2008-10-09 | Sony Corp | Imaging apparatus, video signal processor and video signal processing method |
US7680325B2 (en) | 2004-05-17 | 2010-03-16 | Seiko Epson Corporation | Image processing method of detecting a correspondence between colors, image processing apparatus and program for detecting a correspondence between colors |
US7705919B2 (en) | 2001-02-28 | 2010-04-27 | Nec Corporation | Video processing device, video display device and video processing method therefor and program thereof |
US8634640B2 (en) | 2010-10-21 | 2014-01-21 | Hewlett-Packard Development Company, L.P. | Method and apparatus for selecting a color palette |
-
1995
- 1995-11-20 JP JP7301002A patent/JP2929983B2/en not_active Expired - Fee Related
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO1999000648A1 (en) * | 1997-06-27 | 1999-01-07 | Minnesota Mining And Manufacturing Company | Characterization of color imaging systems |
US7705919B2 (en) | 2001-02-28 | 2010-04-27 | Nec Corporation | Video processing device, video display device and video processing method therefor and program thereof |
US7680325B2 (en) | 2004-05-17 | 2010-03-16 | Seiko Epson Corporation | Image processing method of detecting a correspondence between colors, image processing apparatus and program for detecting a correspondence between colors |
JP2008245096A (en) * | 2007-03-28 | 2008-10-09 | Sony Corp | Imaging apparatus, video signal processor 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 |
---|---|
JP2929983B2 (en) | 1999-08-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
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 | |
JP4666274B2 (en) | Color image processing apparatus and method | |
JP3759761B2 (en) | Method and apparatus for changing sharpness | |
JP4677753B2 (en) | Moving image processing apparatus and method | |
JP3668014B2 (en) | Image processing method and apparatus | |
JP2002101422A (en) | Image processing unit, image processing method and computer-readable recording medium for recording image processing program | |
EP2360929B1 (en) | Image processing device | |
JPH0564229A (en) | Picture processor and method | |
JPH0832827A (en) | Gradation correction divice for digital image | |
JP3673092B2 (en) | Image quality adjusting apparatus, image quality adjusting method, and recording medium recording image adjusting program | |
JP2006229925A (en) | Dynamic image saturation processing device | |
JPH06339017A (en) | Saturation emphasizing method and device for color picture | |
JP2929983B2 (en) | Color image processing equipment | |
JP3614692B2 (en) | Image correction method | |
JPWO2006106750A1 (en) | Image processing apparatus, image processing method, and image processing program | |
JP2001045303A (en) | Image thresholding method | |
JPH09326941A (en) | Image processing unit | |
JP2000209437A (en) | Image correction method and storage medium storing image correction program | |
JPH10340332A (en) | Image processor, image processing method and medium recording image processing control program | |
JP4003037B2 (en) | White balance adjustment device, white balance adjustment program, white balance adjustment method, and digital camera | |
JP3664395B2 (en) | Image processing apparatus, image processing method, and medium on which image processing program is recorded | |
JP2843912B2 (en) | Image processing method | |
JPH0364192A (en) | Picture signal processor | |
JP2000078437A (en) | Video signal 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 |