CN106507081B - A kind of image processing method and device - Google Patents
A kind of image processing method and device Download PDFInfo
- Publication number
- CN106507081B CN106507081B CN201610889575.2A CN201610889575A CN106507081B CN 106507081 B CN106507081 B CN 106507081B CN 201610889575 A CN201610889575 A CN 201610889575A CN 106507081 B CN106507081 B CN 106507081B
- Authority
- CN
- China
- Prior art keywords
- image
- black
- color
- white
- colour
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/10—Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from different wavelengths
- H04N23/13—Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from different wavelengths with multiple sensors
- H04N23/16—Optical arrangements associated therewith, e.g. for beam-splitting or for colour correction
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N9/00—Details of colour television systems
- H04N9/64—Circuits for processing colour signals
- H04N9/73—Colour balance circuits, e.g. white balance circuits or colour temperature control
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N9/00—Details of colour television systems
- H04N9/77—Circuits for processing the brightness signal and the chrominance signal relative to each other, e.g. adjusting the phase of the brightness signal relative to the colour signal, correcting differential gain or differential phase
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
- Processing Of Color Television Signals (AREA)
- Color Television Image Signal Generators (AREA)
Abstract
The invention discloses a kind of image processing method and device, method is the following steps are included: record black and white camera is directed to the luminance compensation table of different-colour different colours;Obtain current environment colour temperature;Color-brightness offset value according to current environment colour temperature, needed for black white image is obtained from the luminance compensation table under current environment colour temperature;By black and white camera and color camera, the black and white and color image under Same Scene are obtained;According to black white image color-brightness offset value required under current environment colour temperature, black white image brightness is modified;And the revised black white image is merged with the color image.For the present invention by under different-colour, the color sensitive to black and white camera makees corresponding compensation, and the brightness for correcting these color regions is abnormal, alleviates black and white camera because of the problem of brightness exception caused by Color-sensitive.
Description
Technical field
The present invention relates to technical field of image processing, more particularly to a kind of image processing method and device.
Background technique
With the fast development of mobile phone camera function in recent years, consumer is to possessing the camera demand of more power gradually
Rise.Night scene can effectively promote the user experience that camera is taken pictures, mesh as the common photographed scene of user, its effect optimization
Before, night scene shooting style commonly used in the trade are as follows: (MNO is imaged using a colour imagery shot (RGB camera) and black and white camera
Head), the shooting effect of night scene is promoted by the image of fusion two cameras shooting.Since in night scene photographer, black and white is taken the photograph
As the brightness of head, details, noise can be better than colour imagery shot, because during image co-registration, so that colour imagery shot provides
Color, black and white camera provide brightness, details etc., so that one Zhang Liangdu of synthesis, details and noise are all than colour imagery shot original image
As good picture.But in current technique, black and white camera leads in certain colors, black and white ambient color temperature sensitive
The brightness of image can be partially dark or partially bright, and causing fused image to occur respectively in corresponding color, brightness is partially bright, is saturated
Spend the situation that relatively low or brightness is partially dark, saturation degree is higher;When environment colour temperature changes from high color temperature to low color temperature, black and white
In camera, blue region brightness changes to partially dark from overexposure, and red area from secretly changing to overexposure partially.
Summary of the invention
It is an object of the invention to overcome the deficiencies of the prior art and provide a kind of image processing method and device, methods
For by the way that under different-colour, the color sensitive to black and white camera makees corresponding compensation, the brightness for correcting these color regions is different
Often, black and white camera is alleviated because of the problem of brightness exception caused by Color-sensitive.
The purpose of the present invention is achieved through the following technical solutions: a kind of image processing method, comprising the following steps:
Record the luminance compensation table that black and white camera is directed to different-colour different colours;Obtain current environment colour temperature;According to current environment color
Temperature, color-brightness offset value needed for black white image is obtained from the luminance compensation table under current environment colour temperature;By black
Bai Xiangji and color camera obtain black and white and color image under Same Scene;According to the black white image in current environment color
Required color-brightness offset value, is modified black white image brightness under temperature;And it is the revised black white image is same
The color image is merged.
Color-the brightness offset value is by obtaining after carrying out curve fitting to the data in the luminance compensation table.
According to current environment colour temperature, find closest to data in luminance compensation table as the color-brightness offset value.
The method also includes generating luminance compensation table, generating luminance compensation table includes following sub-step: for of the same colour
Card obtains colored and black and white colour atla image respectively under multiple and different colour temperatures;According to colored colour atla image and black and white colour chart
Picture obtains the corresponding brightness offset value of black and white card graphic under different-colour.
The method also includes being carried out curve fitting according to obtained brightness offset value.
The step of calculating brightness offset value according to colored colour atla image and black and white card graphic includes: by the colored colour atla
Image switchs to grayscale colour atla image;The grayscale colour atla image and the black and white card graphic are compared, it is each to calculate colour atla picture
The corresponding brightness offset value of black and white card graphic in color block.
It include the compensation Value Data of following color temperature light sources: D75 light source, D65 light source, D50 light in the luminance compensation table
Source, TL84 light source, CWF light source, A light source and tengsten lamp.
Obtaining current environment colour temperature includes following sub-step: reading current environment light by colour imagery shot and is irradiated to ash
Red green value and blue green value on card;According to red green value and blue green value, current environment is obtained by inquiring corresponding color meter
Colour temperature.
The black white image brightness is modified including following sub-step: judging each pixel in the color image
Color;According to the colouring information of corresponding pixel points in the color-brightness offset value and the color image, the black and white is obtained
The intensity modifier value of each pixel in image;Gamma correction is carried out to night scene black white image according to intensity modifier value.
The method also includes: the color image and the black white image are matched;During brightness correction,
It is modified only for matched region is completed, ignoring can not matched region;And by the black white image with the colour
When image is merged, merged only for matched region is completed, ignoring can not matched region.
The step of obtaining current environment colour temperature is completed at the same time with the step of obtaining the black white image and the color image.
A kind of image processing apparatus, comprising: logging modle, for recording black and white camera for different-colour different colours
Luminance compensation table;Colour temperature obtains module, obtains current environment colour temperature;Offset obtains module, according to current environment colour temperature, from institute
State color-brightness offset value needed for obtaining black white image in luminance compensation table under current environment colour temperature;Image collection module,
By black and white camera and color camera, the black and white and color image under Same Scene are obtained;Correction module, according to the artwork master
Color-brightness offset value as needed under current environment colour temperature, is modified black white image brightness;And Fusion Module,
Black white image is merged with color image.
The beneficial effects of the present invention are: method in the present invention is by under different-colour environment, it is sensitive to black and white camera
Color make corresponding compensation, so that the brightness for correcting these color regions is abnormal, largely alleviate black and white camera
Because of the problem of brightness exception caused by Color-sensitive.
Detailed description of the invention
Fig. 1 is the flow chart of one embodiment of image processing method in the present invention;
Fig. 2 is the schematic diagram of image processing apparatus in the present invention.
Specific embodiment
Technical solution of the present invention is described in further detail with reference to the accompanying drawing, but protection scope of the present invention is not limited to
It is as described below.
Embodiment one
As shown in Figure 1, a kind of image processing method, comprising the following steps:
Record the luminance compensation table that black and white camera is directed to different-colour different colours.
Generating luminance compensation table includes following sub-step: being directed to same colour atla, obtains respectively under multiple and different colour temperatures color
The colour atla image of color and black and white;According to colored colour atla image and black and white card graphic, black and white card graphic under different-colour is obtained
Corresponding brightness offset value.
The step of calculating brightness offset value according to colored colour atla image and black and white card graphic includes: by the colored colour atla
Image switchs to grayscale colour atla image;The grayscale colour atla image and the black and white card graphic are compared, it is each to calculate colour atla picture
The corresponding brightness offset value of black and white card graphic in color block.
The method also includes being carried out curve fitting according to obtained brightness offset value.
It include the compensation Value Data of following color temperature light sources: D75 light source, D65 light source, D50 light in the luminance compensation table
Source, TL84 light source, CWF light source, A light source and tengsten lamp.
Obtain current environment colour temperature.
Obtaining current environment colour temperature includes following sub-step: reading current environment light by colour imagery shot and is irradiated to ash
Red green value and blue green value on card;According to red green value and blue green value, current environment is obtained by inquiring corresponding color meter
Colour temperature.
The method that current environment colour temperature can also obtain environment colour temperature using other automatic or manuals is obtained, such as can be adopted
Current environment colour temperature is obtained with color temperature sensor.
According to current environment colour temperature, needed for black white image is obtained from the luminance compensation table under current environment colour temperature
Color-brightness offset value.
Color-the brightness offset value is by obtaining after carrying out curve fitting to the data in the luminance compensation table.
When obtaining color-brightness offset value, according to current environment colour temperature, finds in luminance compensation table closest to data and make
For the color-brightness offset value.
By black and white camera and color camera, the black and white and color image under Same Scene are obtained.
The step of acquisition current environment colour temperature, holds earlier than the step of obtaining the black white image and the color image
Row.
According to black white image color-brightness offset value required under current environment colour temperature, to black white image brightness
It is modified;And the revised black white image is merged with the color image.
The black white image brightness is modified including following sub-step: judging each pixel in the color image
Color;According to the colouring information of corresponding pixel points in the color-brightness offset value and the color image, the black and white is obtained
The intensity modifier value of each pixel in image;Gamma correction is carried out to night scene black white image according to intensity modifier value.
The method also includes: the color image and the black white image are matched;During brightness correction,
It is modified only for matched region is completed, ignoring can not matched region;And by the black white image with the colour
When image is merged, merged only for matched region is completed, ignoring can not matched region.
Embodiment two
The present embodiment with embodiment one the difference is that obtain current environment colour temperature the step of be later than obtain it is described black
The step of white image and the color image, executes.
Embodiment three
The present embodiment and embodiment one are the difference is that the step of obtaining current environment colour temperature and the acquisition black and white
The step of image and the color image, is performed simultaneously.
As shown in Fig. 2, a kind of image processing apparatus, comprising: logging modle, for recording black and white camera for different-colour
The luminance compensation table of different colours;Colour temperature obtains module, obtains current environment colour temperature;Offset obtains module, according to working as front ring
Border colour temperature, color-brightness offset value needed for black white image is obtained from the luminance compensation table under current environment colour temperature;Figure
As obtaining module, by black and white camera and color camera, the black and white and color image under Same Scene are obtained;Correction module, root
According to black white image color-brightness offset value required under current environment colour temperature, black white image brightness is modified;With
And Fusion Module, black white image is merged with color image.
The above is only a preferred embodiment of the present invention, it should be understood that the present invention is not limited to described herein
Form should not be regarded as an exclusion of other examples, and can be used for other combinations, modifications, and environments, and can be at this
In the text contemplated scope, modifications can be made through the above teachings or related fields of technology or knowledge.And those skilled in the art institute into
Capable modifications and changes do not depart from the spirit and scope of the present invention, then all should be in the protection scope of appended claims of the present invention
It is interior.
Claims (11)
1. a kind of image processing method, it is characterised in that: the following steps are included:
Record the luminance compensation table that black and white camera is directed to different-colour different colours;
Obtain current environment colour temperature;
Face according to current environment colour temperature, needed for black white image is obtained from the luminance compensation table under current environment colour temperature
Color-brightness offset value;
By black and white camera and color camera, the black and white and color image under Same Scene are obtained;
According to black white image color-brightness offset value required under current environment colour temperature, black white image brightness is carried out
Amendment;And the revised black white image is merged with the color image;
The black white image brightness is modified including following sub-step:
Judge the color of each pixel in the color image;
According to the colouring information of corresponding pixel points in the color-brightness offset value and the color image, the black and white is obtained
The intensity modifier value of each pixel in image;
Gamma correction is carried out to night scene black white image according to intensity modifier value.
2. image processing method according to claim 1, which is characterized in that the color-brightness offset value is by right
Data in the luminance compensation table obtain after carrying out curve fitting.
3. image processing method according to claim 1, which is characterized in that according to current environment colour temperature, in luminance compensation
It finds closest to data in table as the color-brightness offset value.
4. image processing method according to claim 1, it is characterised in that: the method also includes generating luminance compensation
Table, generating luminance compensation table includes following sub-step:
For same colour atla, colored and black and white colour atla image is obtained respectively under multiple and different colour temperatures;
According to colored colour atla image and black and white card graphic, the corresponding luminance compensation of black and white card graphic under different-colour is obtained
Value.
5. image processing method according to claim 4, it is characterised in that: the method also includes according to obtained bright
Degree offset carries out curve fitting.
6. image processing method according to claim 4, which is characterized in that according to colored colour atla image and black and white colour chart
As the step of calculating brightness offset value includes:
The colored colour atla image is switched into grayscale colour atla image;
The grayscale colour atla image and the black and white card graphic are compared, black and white colour chart in each color block of colour atla picture is calculated
As corresponding brightness offset value.
7. image processing method according to claim 1, it is characterised in that: include following colour temperatures in the luminance compensation table
The compensation Value Data of light source: D75 light source, D65 light source, D50 light source, TL84 light source, CWF light source, A light source and tengsten lamp.
8. image processing method according to claim 1, it is characterised in that: obtaining current environment colour temperature includes following sub-step
It is rapid:
Current environment light, which is read, by colour imagery shot is irradiated to red green value and blue green value in gray card;
According to red green value and blue green value, current environment colour temperature is obtained by inquiring corresponding color meter.
9. image processing method according to claim 1, which is characterized in that the black white image brightness is modified also
Include:
The color image and the black white image are matched;
During brightness correction, it is modified only for matched region is completed, ignoring can not matched region;
When the black white image is merged with the color image, is merged, ignored only for matched region is completed
It can not matched region.
10. image processing method according to claim 1, which is characterized in that obtain current environment colour temperature the step of with obtain
The step of taking the black white image and the color image is completed at the same time.
11. a kind of image processing apparatus characterized by comprising
Logging modle, the luminance compensation table for being directed to different-colour different colours for recording black and white camera;
Colour temperature obtains module, obtains current environment colour temperature;
Offset obtains module and obtains black white image in current environment from the luminance compensation table according to current environment colour temperature
Color-brightness offset value needed under colour temperature;
Image collection module obtains the black and white and color image under Same Scene by black and white camera and color camera;
Correction module, according to black white image color-brightness offset value required under current environment colour temperature, to black white image
Brightness is modified;
Fusion Module merges black white image with color image;
The black white image brightness is modified including following sub-step:
Judge the color of each pixel in the color image;
According to the colouring information of corresponding pixel points in the color-brightness offset value and the color image, the black and white is obtained
The intensity modifier value of each pixel in image;
Gamma correction is carried out to night scene black white image according to intensity modifier value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610889575.2A CN106507081B (en) | 2016-10-12 | 2016-10-12 | A kind of image processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610889575.2A CN106507081B (en) | 2016-10-12 | 2016-10-12 | A kind of image processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106507081A CN106507081A (en) | 2017-03-15 |
CN106507081B true CN106507081B (en) | 2019-04-19 |
Family
ID=58295272
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610889575.2A Active CN106507081B (en) | 2016-10-12 | 2016-10-12 | A kind of image processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106507081B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107846583B (en) * | 2017-10-27 | 2020-09-01 | 维沃移动通信有限公司 | Image shadow compensation method and mobile terminal |
CN110033412B (en) * | 2018-01-12 | 2023-12-15 | 华为技术有限公司 | Image processing method and device |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6803949B1 (en) * | 1995-12-27 | 2004-10-12 | Canon Kabushiki Kaisha | Image sensing apparatus and method |
CN1988628A (en) * | 2006-12-28 | 2007-06-27 | 上海广电(集团)有限公司中央研究院 | Self adaptive image display method for environment light |
CN101080025A (en) * | 2007-06-18 | 2007-11-28 | 东莞黄江达裕科技电子厂 | A white balance adjustment method and system |
CN103986875A (en) * | 2014-05-29 | 2014-08-13 | 宇龙计算机通信科技(深圳)有限公司 | Image acquiring device, method and terminal and video acquiring method |
CN104486609A (en) * | 2015-01-26 | 2015-04-01 | 南京巨鲨显示科技有限公司 | Color temperature and GAMMA curve tuning and measuring integrated machine-by-machine correction flow |
CN104581099A (en) * | 2014-12-04 | 2015-04-29 | 广东欧珀移动通信有限公司 | Shooting method and terminal |
CN105336307A (en) * | 2015-11-18 | 2016-02-17 | 深圳创维-Rgb电子有限公司 | Method and system for correcting gamma curve of display based on color temperature |
TW201613336A (en) * | 2014-09-23 | 2016-04-01 | Hon Hai Prec Ind Co Ltd | Control system and method for taking pictures |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20090020784A (en) * | 2007-08-24 | 2009-02-27 | 엘지전자 주식회사 | Apparatus and method of display |
JP6148497B2 (en) * | 2013-02-27 | 2017-06-14 | キヤノン株式会社 | Image processing apparatus, image processing method, program, and storage medium |
CN105049718A (en) * | 2015-07-06 | 2015-11-11 | 深圳市金立通信设备有限公司 | Image processing method and terminal |
CN105208360B (en) * | 2015-09-23 | 2017-07-25 | 青岛海信移动通信技术股份有限公司 | Image preview method, device and the terminal of a kind of intelligent terminal |
-
2016
- 2016-10-12 CN CN201610889575.2A patent/CN106507081B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6803949B1 (en) * | 1995-12-27 | 2004-10-12 | Canon Kabushiki Kaisha | Image sensing apparatus and method |
CN1988628A (en) * | 2006-12-28 | 2007-06-27 | 上海广电(集团)有限公司中央研究院 | Self adaptive image display method for environment light |
CN101080025A (en) * | 2007-06-18 | 2007-11-28 | 东莞黄江达裕科技电子厂 | A white balance adjustment method and system |
CN103986875A (en) * | 2014-05-29 | 2014-08-13 | 宇龙计算机通信科技(深圳)有限公司 | Image acquiring device, method and terminal and video acquiring method |
TW201613336A (en) * | 2014-09-23 | 2016-04-01 | Hon Hai Prec Ind Co Ltd | Control system and method for taking pictures |
CN104581099A (en) * | 2014-12-04 | 2015-04-29 | 广东欧珀移动通信有限公司 | Shooting method and terminal |
CN104486609A (en) * | 2015-01-26 | 2015-04-01 | 南京巨鲨显示科技有限公司 | Color temperature and GAMMA curve tuning and measuring integrated machine-by-machine correction flow |
CN105336307A (en) * | 2015-11-18 | 2016-02-17 | 深圳创维-Rgb电子有限公司 | Method and system for correcting gamma curve of display based on color temperature |
Also Published As
Publication number | Publication date |
---|---|
CN106507081A (en) | 2017-03-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11699219B2 (en) | System, method, and computer program for capturing an image with correct skin tone exposure | |
CN105208281B (en) | A kind of night scene image pickup method and device | |
EP3520390B1 (en) | Recolorization of infrared image streams | |
US20180332239A1 (en) | Background replacement utilizing infrared light and visible light | |
CN106570838B (en) | A kind of brightness of image optimization method and device | |
CN104717432A (en) | Method for processing input image, image processing equipment, and digital camera | |
CN103716547A (en) | Smart mode photographing method | |
CN111738970A (en) | Image fusion method and device and computer readable storage medium | |
JP2010504664A (en) | Imaging method and apparatus for photographing color images with a monochrome camera | |
CN106412534B (en) | A kind of brightness of image adjusting method and device | |
US9167174B1 (en) | Systems and methods for high-dynamic range images | |
CN106534677A (en) | Image overexposure optimization method and device | |
CN105827988A (en) | Light control method and device in mobile terminal shooting | |
CN108156369A (en) | Image processing method and device | |
CN108337446A (en) | High-dynamic-range image acquisition method, device based on dual camera and equipment | |
US11445127B2 (en) | Leveraging HDR sensors for handling mixed illumination auto white balance | |
CN104243793A (en) | Image-capturing device having image identification mechanism and method | |
CN107682611B (en) | Focusing method and device, computer readable storage medium and electronic equipment | |
CN106507081B (en) | A kind of image processing method and device | |
CN106550227B (en) | A kind of image saturation method of adjustment and device | |
TWI536830B (en) | Measuring an exposure parameter art high dynamic range image generating method | |
CN109300186B (en) | Image processing method and device, storage medium and electronic equipment | |
CN112532872B (en) | Method and device for adjusting camera parameters, storage medium and electronic equipment | |
CN111567038B (en) | Imaging device, electronic apparatus, and recording medium | |
JP2019216409A (en) | Image processing apparatus, image processing method, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |