JP2007013415A - 画像処理装置および画像処理方法 - Google Patents
画像処理装置および画像処理方法 Download PDFInfo
- Publication number
- JP2007013415A JP2007013415A JP2005189916A JP2005189916A JP2007013415A JP 2007013415 A JP2007013415 A JP 2007013415A JP 2005189916 A JP2005189916 A JP 2005189916A JP 2005189916 A JP2005189916 A JP 2005189916A JP 2007013415 A JP2007013415 A JP 2007013415A
- Authority
- JP
- Japan
- Prior art keywords
- light source
- pixel
- value
- pixel value
- white balance
- 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
- 238000003672 processing method Methods 0.000 title claims description 3
- 238000001514 detection method Methods 0.000 claims description 24
- 239000000872 buffer Substances 0.000 description 16
- 238000000034 method Methods 0.000 description 11
- 230000014509 gene expression Effects 0.000 description 8
- 239000013598 vector Substances 0.000 description 6
- 238000009825 accumulation Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000003384 imaging method Methods 0.000 description 3
- 230000001788 irregular Effects 0.000 description 2
- 239000012536 storage buffer Substances 0.000 description 2
- 238000012935 Averaging Methods 0.000 description 1
- 239000003795 chemical substances by application Substances 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000010606 normalization Methods 0.000 description 1
- 102220047090 rs6152 Human genes 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Landscapes
- Facsimile Image Signal Circuits (AREA)
- Color Image Communication Systems (AREA)
- Image Processing (AREA)
- Color Television Image Signal Generators (AREA)
Abstract
【解決手段】 画像処理装置は、画像に照射された光源色を検出する光源色検出部1と、光源色検出部1で検出した光源色の各色値に基づいてホワイトバランスを算出するホワイトバランス算出部2と、算出したホワイトバランスに基づいてホワイトバランスの調整を行うホワイトバランス補正部3とを備えている。入力画像中の近接した2点A,Bの画素値の差分を取ることで光源色を検出し、その光源色を用いてホワイトバランス調整を行うため、画像の色に左右されずに、きわめて簡易かつ精度よくホワイトバランス調整を行うことができる。
【選択図】 図1
Description
A=fa*S+D …(1)
B=fb*S+D …(2)
ここで、faはAの位置での乱反射に対する鏡面反射の比率を表し、fbはBの位置での乱反射に対する鏡面反射の比率を表している。
A=(A.R,A.G,A.B) …(3)
B=(B.R,B.G,B.B) …(4)
D=(D.R,D.G,D.B) …(5)
S=(S.R,S.G,S.B) …(6)
なお、光線を4刺激値C,M,Y,Gでサンプルした場合、A値、B値、D値およびS値は四次元ベクトルになる。
GainR=20/10=2.0 …(7)
GainB=20/40=0.5 …(8)
A=fs*S+fd*D …(9)
ここで、fa=fs/fdとおいて、fd=1となるように正規化を行うと、(1)式と同じ式が得られる。B値も同様に正規化を行うことにより、(2)式が得られる。
A−B=(fa−fb)*S …(11)
GainR=(fa−fb)*S.G/(fa−fb)*S.R …(12)
GainB=(fa−fb)*S.G/(fa−fb)*S.B …(13)
(12)および(13)式とも、分母と分子の(fa−fb)が打ち消されて、(14)および(15)式のようになる。
GainR=S.G/S.R …(14)
GainB=S.G/S.B …(15)
これら(14)および(15)式は、以下の(16)および(17)式と等価である。
GainR=(A.G−B.G)/(A.R−B.R) …(16)
GainB=(A.G−B.G)/(A.B−B.B) …(17)
これら(16)および(17)式からわかるように、ホワイトバランスゲインには、光源色の明るさは関係ないため、上述した(fa−fb)を無視することができる。
A.R = 最も明るい段階のSum.R/Cnt …(18)
A.G =最も明るい段階のSum.G/Cnt …(19)
A.B =最も明るい段階のSum.B/Cnt …(20)
B.R = 二番目に明るい段階のSum.R/Cnt …(21)
B.G =二番目に明るい段階のSum.G/Cnt …(22)
B.B =二番目に明るい段階のSum.B/Cnt …(23)
R値のホワイトバランスゲイン=0.9*Gc*Rc …(25)
G値のホワイトバランスゲイン=Gc/Gc=1 …(26)
B値のホワイトバランスゲイン=1.1*Gc/Bc …(27)
R値のホワイトバランスゲイン=Gc/Rc …(28)
G値のホワイトバランスゲイン=Gc/Gc=1 …(29)
B値のホワイトバランスゲイン=Gc/Bc …(30)
R値=R値*(R値のホワイトバランスゲイン) …(31)
B値=B値*(B値のホワイトバランスゲイン) …(32)
これにより、ホワイトバランス調整を行った最終的な画像データが得られる。
2 ホワイトバランス算出部
3 ホワイトバランス補正部
11 スキャン結果蓄積バッファ
12 AB値バッファ
Claims (7)
- 画像の中で平均よりも明るい第1の画素位置での画素値を検出する第1画素値検出手段と、
前記第1の領域に近接し前記第1の画素位置よりも暗い第2の画素位置での画素値を検出する第2画素値検出手段と、
前記第1画素値検出手段にて検出された画素値と前記第2画素値検出手段にて検出された画素値との差分に基づいて、前記画像に照射される光源の光源色を検出する光源色検出手段と、を備えることを特徴とする画像処理装置。 - 画像をそれぞれが複数画素からなる複数のブロックに分割して、各ブロック内の各画素の輝度を複数段階に分類する輝度分類手段を備え、
前記第1画素値検出手段は、各ブロックごとに、最も明るい段階に分類された画素の平均画素値をそれぞれ検出し、
前記第2画素値検出手段は、各ブロックごとに、二番目に明るい段階に分類された画素の平均画素値をそれぞれ検出し、
前記光源色検出手段は、前記第1画素値検出手段にて検出されたブロックごとの画素値の平均値の少なくとも一部と、前記第2画素値検出手段にて検出されたブロックごとの画素値の平均値の少なくとも一部との差分に基づいて、前記光源色を検出することを特徴とする請求項1に記載の画像処理装置。 - 前記第1画素値検出手段にて検出されたブロックごとの画素値の平均値のうち、平均値の大きい所定個の画素値の平均値を検出する第1の画素平均値検出手段と、
前記第2画素値検出手段にて検出されたブロックごとの画素値の平均値のうち、平均値の大きい所定個の画素値の平均値を検出する第2の画素平均値検出手段と、を備え、
前記光源色検出手段は、前記第1の画素平均値検出手段にて検出された平均値と前記第2の画素平均値検出手段にて検出された平均値との差分に基づいて、前記光源色を検出することを特徴とする請求項2に記載の画像処理装置。 - 各ブロックごとに、前記第1画素値検出手段にて検出された平均画素値と前記第2画素値検出手段にて検出された平均画素値との差分を検出する差分検出手段と、
前記差分検出手段にて検出された差分と実際の光源色との偏差を検出する偏差検出手段と、を備え、
前記光源色検出手段は、前記偏差の逆数に基づいて、前記画像に照射される光源色を検出することを特徴とする請求項2に記載の画像処理装置。 - 前記光源色検出手段にて検出された光源色に基づいてホワイトバランス調整を行うホワイトバランス調整手段を備えることを特徴とする請求項1乃至4のいずれかに記載の画像処理装置。
- 前記光源色検出手段にて検出された光源色を構成する複数の色成分に基づいて、ホワイトバランス調整を行うためのホワイトバランスゲインを算出するホワイトバランス算出手段を備え、
前記ホワイトバランス調整手段は、前記ホワイトバランスゲインに基づいてホワイトバランス調整を行うことを特徴とする請求項5に記載の画像処理装置。 - 画像の中で平均よりも明るい第1の画素位置での画素値を検出するステップと、
前記第1の領域に近接し前記第1の画素位置よりも暗い第2の画素位置での画素値を検出するステップと、
前記第1画素位置で検出された画素値と前記第2画素位置で検出された画素値との差分に基づいて、前記画像に照射される光源の光源色を検出するステップと、を備えることを特徴とする画像処理方法。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005189916A JP4447520B2 (ja) | 2005-06-29 | 2005-06-29 | 画像処理装置および画像処理方法 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005189916A JP4447520B2 (ja) | 2005-06-29 | 2005-06-29 | 画像処理装置および画像処理方法 |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2007013415A true JP2007013415A (ja) | 2007-01-18 |
JP4447520B2 JP4447520B2 (ja) | 2010-04-07 |
Family
ID=37751352
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005189916A Active JP4447520B2 (ja) | 2005-06-29 | 2005-06-29 | 画像処理装置および画像処理方法 |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4447520B2 (ja) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014007528A (ja) * | 2012-06-22 | 2014-01-16 | Canon Inc | 画像処理装置およびその制御方法 |
JP2014006745A (ja) * | 2012-06-25 | 2014-01-16 | Canon Inc | 画像処理装置及びその制御方法 |
JP2014007530A (ja) * | 2012-06-22 | 2014-01-16 | Canon Inc | 画像処理装置およびその制御方法 |
JP2014007611A (ja) * | 2012-06-25 | 2014-01-16 | Canon Inc | 画像処理装置及びその制御方法 |
US9129188B2 (en) | 2012-06-22 | 2015-09-08 | Canon Kabushiki Kaisha | Image processing apparatus and control method thereof |
JP2016014753A (ja) * | 2014-07-02 | 2016-01-28 | キヤノン株式会社 | 焦点検出装置、撮像装置、焦点検出方法および焦点検出プログラム |
US9712798B2 (en) | 2014-04-01 | 2017-07-18 | Canon Kabushiki Kaisha | Imaging apparatus and image processing system processing image based on detection result of partial region |
US10574960B2 (en) | 2017-10-30 | 2020-02-25 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | White balance processing method, electronic device and computer readable storage medium |
US10609352B2 (en) | 2017-10-30 | 2020-03-31 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | White balance processing method, electronic device and computer readable storage medium |
US10616544B2 (en) | 2017-10-30 | 2020-04-07 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | White balance processing method, electronic device and computer readable storage medium |
CN112150563A (zh) * | 2019-06-28 | 2020-12-29 | 浙江宇视科技有限公司 | 光源颜色的确定方法、装置、存储介质及电子设备 |
CN113709438A (zh) * | 2020-05-22 | 2021-11-26 | 浙江宇视科技有限公司 | 一种图像的白平衡校正方法、装置、存储介质及设备 |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013258675A (ja) | 2012-05-16 | 2013-12-26 | Canon Inc | 画像処理装置、画像処理方法およびプログラム、並びに撮像装置 |
JP6203467B1 (ja) | 2015-12-14 | 2017-09-27 | オリンパス株式会社 | 光源装置 |
-
2005
- 2005-06-29 JP JP2005189916A patent/JP4447520B2/ja active Active
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014007528A (ja) * | 2012-06-22 | 2014-01-16 | Canon Inc | 画像処理装置およびその制御方法 |
JP2014007530A (ja) * | 2012-06-22 | 2014-01-16 | Canon Inc | 画像処理装置およびその制御方法 |
US9129188B2 (en) | 2012-06-22 | 2015-09-08 | Canon Kabushiki Kaisha | Image processing apparatus and control method thereof |
US9338419B2 (en) | 2012-06-22 | 2016-05-10 | Canon Kabushiki Kaisha | Image processing apparatus and control method therefor |
JP2014006745A (ja) * | 2012-06-25 | 2014-01-16 | Canon Inc | 画像処理装置及びその制御方法 |
JP2014007611A (ja) * | 2012-06-25 | 2014-01-16 | Canon Inc | 画像処理装置及びその制御方法 |
US9712798B2 (en) | 2014-04-01 | 2017-07-18 | Canon Kabushiki Kaisha | Imaging apparatus and image processing system processing image based on detection result of partial region |
JP2016014753A (ja) * | 2014-07-02 | 2016-01-28 | キヤノン株式会社 | 焦点検出装置、撮像装置、焦点検出方法および焦点検出プログラム |
US10574960B2 (en) | 2017-10-30 | 2020-02-25 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | White balance processing method, electronic device and computer readable storage medium |
US10609352B2 (en) | 2017-10-30 | 2020-03-31 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | White balance processing method, electronic device and computer readable storage medium |
US10616544B2 (en) | 2017-10-30 | 2020-04-07 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | White balance processing method, electronic device and computer readable storage medium |
US10674128B2 (en) | 2017-10-30 | 2020-06-02 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | White balance processing method, electronic device and computer readable storage medium |
US10798356B2 (en) | 2017-10-30 | 2020-10-06 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | White balance processing method, electronic device and computer readable storage medium |
US10812767B2 (en) | 2017-10-30 | 2020-10-20 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | White balance processing method, electronic device and computer readable storage medium |
CN112150563A (zh) * | 2019-06-28 | 2020-12-29 | 浙江宇视科技有限公司 | 光源颜色的确定方法、装置、存储介质及电子设备 |
CN112150563B (zh) * | 2019-06-28 | 2024-03-26 | 浙江宇视科技有限公司 | 光源颜色的确定方法、装置、存储介质及电子设备 |
CN113709438A (zh) * | 2020-05-22 | 2021-11-26 | 浙江宇视科技有限公司 | 一种图像的白平衡校正方法、装置、存储介质及设备 |
CN113709438B (zh) * | 2020-05-22 | 2024-02-27 | 浙江宇视科技有限公司 | 一种图像的白平衡校正方法、装置、存储介质及设备 |
Also Published As
Publication number | Publication date |
---|---|
JP4447520B2 (ja) | 2010-04-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4447520B2 (ja) | 画像処理装置および画像処理方法 | |
US11080831B2 (en) | Image data conversion device, image data conversion method, image data conversion program, POS terminal device, and server | |
US10291823B2 (en) | Apparatus and method for color calibration | |
JP4707450B2 (ja) | 画像処理装置及びホワイトバランス調整装置 | |
US8169504B2 (en) | Image processing device and image processing method | |
US20120008005A1 (en) | Image processing apparatus, image processing method, and computer-readable recording medium having image processing program recorded thereon | |
JP2008035518A (ja) | シャドウ領域補償方法、媒体およびシステム | |
JP4406443B2 (ja) | 画像補正装置 | |
WO2015145917A1 (ja) | 画像補正装置、画像補正方法およびプログラム記録媒体 | |
WO2016114148A1 (ja) | 画像処理装置、画像処理方法、及び記録媒体 | |
JP7114431B2 (ja) | 画像処理方法、画像処理装置およびプログラム | |
US10097736B2 (en) | Image processing device and image processing method | |
US20180176528A1 (en) | Light locus generation for automatic white balance | |
US7532755B2 (en) | Image classification using concentration ratio | |
JP4539964B2 (ja) | 画像の領域分割 | |
JP4851624B2 (ja) | 指定色領域画定回路、検出回路及びそれを用いた画像処理装置 | |
JP2005283197A (ja) | 画面のスジ欠陥検出方法及び装置 | |
WO2018189772A1 (ja) | 相関値演算装置 | |
JP2008035069A (ja) | 映像信号処理装置 | |
JP2010198476A (ja) | 欠陥検出装置、欠陥検出方法および欠陥検出プログラム | |
WO2019116975A1 (ja) | 画像処理方法、画像処理装置およびプログラム | |
KR101491334B1 (ko) | 영상에서 컬러차트 검출 방법 및 장치 | |
JP3801177B2 (ja) | 画像処理装置、画像処理プログラム、および画像処理方法 | |
JP6774004B2 (ja) | 変化度合い導出装置、変化度合い導出方法及びプログラム | |
CN111492399A (zh) | 图像处理装置、图像处理方法以及图像处理程序 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20080509 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20091002 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20091201 |
|
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: 20091222 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20100120 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130129 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 Ref document number: 4447520 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130129 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140129 Year of fee payment: 4 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |