CN106507081A - A kind of image processing method and device - Google Patents

A kind of image processing method and device Download PDF

Info

Publication number
CN106507081A
CN106507081A CN201610889575.2A CN201610889575A CN106507081A CN 106507081 A CN106507081 A CN 106507081A CN 201610889575 A CN201610889575 A CN 201610889575A CN 106507081 A CN106507081 A CN 106507081A
Authority
CN
China
Prior art keywords
black
white
image
colour
color
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610889575.2A
Other languages
Chinese (zh)
Other versions
CN106507081B (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.)
Chengdu Science And Technology Co Ltd
Original Assignee
Chengdu Science And Technology 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 Chengdu Science And Technology Co Ltd filed Critical Chengdu Science And Technology Co Ltd
Priority to CN201610889575.2A priority Critical patent/CN106507081B/en
Publication of CN106507081A publication Critical patent/CN106507081A/en
Application granted granted Critical
Publication of CN106507081B publication Critical patent/CN106507081B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/10Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from different wavelengths
    • H04N23/13Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from different wavelengths with multiple sensors
    • H04N23/16Optical arrangements associated therewith, e.g. for beam-splitting or for colour correction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • H04N9/73Colour balance circuits, e.g. white balance circuits or colour temperature control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/77Circuits 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, its method is comprised the following steps:Luminance compensation table of the record black and white camera for different-colour different colours;Obtain current environment colour temperature;According to current environment colour temperature, the colour brightness offset for obtaining black white image from the luminance compensation table needed under current environment colour temperature;By black and white camera and color camera, the black and white under Same Scene and coloured image is obtained;Colour brightness offset according to needed for the black white image is under current environment colour temperature, is modified to black white image brightness;And the revised black white image is merged with the coloured image.The present invention passes through, under different-colour, the sensitive color of black and white camera to be made to compensate accordingly, corrects the brightness exception of these color regions, alleviates black and white camera because to the abnormal problem of brightness caused by Color-sensitive.

Description

A kind of image processing method and device
Technical field
The present invention relates to technical field of image processing, more particularly to a kind of image processing method and device.
Background technology
With the fast development of mobile phone camera function in recent years, consumer to have more power camera demand gradually Rise.The photographed scene that night scene is commonly used as user, its effect optimization can effectively lift the Consumer's Experience that camera is taken pictures, mesh Before, night scene shooting style commonly used in the trade is:Using a colour imagery shot(RGB cameras)With black and white camera(MNO is imaged Head), the shooting effect of night scene is lifted by the image of two cameras shootings of fusion.As 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 is provided Color, black and white camera provide brightness, details etc., so as to synthesize brightness, details and a noise all than colour imagery shot artwork As good picture.But in current technique, black and white camera causes in some colors, black and white to ambient color temp. sensitive The brightness of image can be partially dark or partially bright, and the image after causing to merge occurs in corresponding color that brightness is partially bright, saturation respectively Degree is low, or the brightness higher situation of dark, saturation degree partially;When environment colour temperature changes from high color temperature to low colour temperature, black and white In camera, blue region brightness changes to partially dark from overexposure, and red area is from secretly changing to partially overexposure.
Content of the invention
It is an object of the invention to overcoming the deficiencies in the prior art, there is provided a kind of image processing method and device, its method It is that the brightness for correcting these color regions is different by, under different-colour, making corresponding compensation to the sensitive color of black and white camera Often, black and white camera is alleviated because to the abnormal problem of brightness caused by Color-sensitive.
The purpose of the present invention is achieved through the following technical solutions:A kind of image processing method, comprises the following steps: Luminance compensation table of the record black and white camera for different-colour different colours;Obtain current environment colour temperature;According to current environment color Temperature, the color-brightness offset value for obtaining black white image from the luminance compensation table needed under current environment colour temperature;By black Bai Xiangji and color camera, obtain the black and white under Same Scene and coloured image;According to the black white image in current environment color Color-brightness offset value needed for temperature is lower, is modified to black white image brightness;And the revised black white image is same The coloured image is merged.
Color-the brightness offset value be by carrying out curve fitting to the data in the luminance compensation table after obtain.
According to current environment colour temperature, find in luminance compensation table closest to data as the color-brightness offset value.
Methods described also includes generating luminance compensation table, and generating luminance compensation table includes following sub-step:For with of the same colour Card, obtains the colour chart picture of colored and black and white under multiple different-colours respectively;According to colored colour chart picture and black and white colour chart Picture, draws the corresponding brightness offset value of black and white card graphic under different-colour.
Methods described also includes being carried out curve fitting according to obtained brightness offset value.
Included the step of calculating brightness offset value according to colored colour chart picture and black and white card graphic:By the colored colour atla Image switchs to GTG colour chart picture;Contrast the GTG colour chart picture and the black and white card graphic, calculate colour atla picture each The corresponding brightness offset value of black and white card graphic in color block.
Compensation Value Data comprising following color temperature light sources in the luminance compensation table:D75 light sources, D65 light sources, D50 light Source, TL84 light sources, CWF light sources, A light sources and tengsten lamp.
Obtaining current environment colour temperature includes following sub-step:Current environment light is read 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 about corresponding color meter Colour temperature.
The black white image brightness is modified including following sub-step:Judge each pixel in the coloured image Color;According to the colouring information of corresponding pixel points in the color-brightness offset value and the coloured 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.
Methods described also includes:The coloured image and the black white image are mated;During brightness correction, It is modified only for the region for completing to mate, ignores the region that cannot mate;And by the black white image with the colour When image is merged, merged only for the region for completing to mate, ignored the region that cannot mate.
The step of obtaining current environment colour temperature is completed simultaneously with the step of obtaining the black white image and the coloured image.
A kind of image processing apparatus, including:Logging modle, for recording black and white camera for different-colour different colours Luminance compensation table;Colour temperature acquisition module, obtains current environment colour temperature;Offset acquisition module, according to current environment colour temperature, from institute State;Image collection module, By black and white camera and color camera, the black and white under Same Scene and coloured image is obtained;Correcting module, according to the artwork master Color-brightness offset value as needed under current environment colour temperature, is modified to black white image brightness;And Fusion Module, Black white image is merged with coloured image.
The invention has the beneficial effects as follows:Method in the present invention passes through under different-colour environment, sensitive to black and white camera Color make corresponding compensate, so as to correct the brightness exception of these color regions, alleviate black and white camera to a great extent Because to the abnormal problem of brightness caused by Color-sensitive.
Description of the drawings
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 scheme is described in further detail below in conjunction with the accompanying drawings, but protection scope of the present invention is not limited to Described below.
Embodiment one
As shown in figure 1, a kind of image processing method, comprises the following steps:
Luminance compensation table of the record black and white camera for different-colour different colours.
Generating luminance compensation table includes following sub-step:For same colour atla, obtained under multiple different-colours respectively color The colour chart picture of color and black and white;According to colored colour chart picture and black and white card graphic, black and white card graphic under different-colour is drawn Corresponding brightness offset value.
Included the step of calculating brightness offset value according to colored colour chart picture and black and white card graphic:By the colored colour atla Image switchs to GTG colour chart picture;Contrast the GTG colour chart picture and the black and white card graphic, calculate colour atla picture each The corresponding brightness offset value of black and white card graphic in color block.
Methods described also includes being carried out curve fitting according to obtained brightness offset value.
Compensation Value Data comprising following color temperature light sources in the luminance compensation table:D75 light sources, D65 light sources, D50 light Source, TL84 light sources, CWF light sources, A light sources and tengsten lamp.
Obtain current environment colour temperature.
Obtaining current environment colour temperature includes following sub-step:Current environment light is read 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 about corresponding color meter Colour temperature.
The method that current environment colour temperature can also adopt other automatic or manuals to obtain environment colour temperature is obtained, for example, can be adopted Current environment colour temperature is obtained with color temperature sensor.
According to current environment colour temperature, black white image is obtained from the luminance compensation table needed under current environment colour temperature Color-brightness offset value.
Color-the brightness offset value be by carrying out curve fitting to the data in the luminance compensation table after obtain.
When obtaining color-brightness offset value, according to current environment colour temperature, find 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 under Same Scene and coloured image is obtained.
The step of the step of acquisition current environment colour temperature is early than the acquisition black white image and the coloured image is held OK.
Color-brightness offset value according to needed for the black white image is under current environment colour temperature, to black white image brightness It is modified;And the revised black white image is merged with the coloured image.
The black white image brightness is modified including following sub-step:Judge each pixel in the coloured image Color;According to the colouring information of corresponding pixel points in the color-brightness offset value and the coloured 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.
Methods described also includes:The coloured image and the black white image are mated;During brightness correction, It is modified only for the region for completing to mate, ignores the region that cannot mate;And by the black white image with the colour When image is merged, merged only for the region for completing to mate, ignored the region that cannot mate.
Embodiment two
With the difference of embodiment one, the present embodiment is that the step of obtaining current environment colour temperature is later than the acquisition artwork master The step of picture and the coloured image, executes.
Embodiment three
The present embodiment is the step of obtaining current environment colour temperature with the difference of embodiment one and obtains the black white image Executed with the step of the coloured image simultaneously.
As shown in Fig. 2 a kind of image processing apparatus, including:Logging modle, for recording black and white camera for different-colour The luminance compensation table of different colours;Colour temperature acquisition module, obtains current environment colour temperature;Offset acquisition module, according to working as front ring Border colour temperature, the color-brightness offset value for obtaining black white image from the luminance compensation table needed under current environment colour temperature;Figure As acquisition module, by black and white camera and color camera, the black and white under Same Scene and coloured image is obtained;Correcting module, root According to the required color-brightness offset value under current environment colour temperature of the black white image, black white image brightness is modified;With And Fusion Module, black white image is merged with coloured image.
The above is only the preferred embodiment of the present invention, it should be understood that the present invention is not limited to described herein Form, is not to be taken as the exclusion to other embodiment, and can be used for various other combinations, modification and environment, and can be at this In the text contemplated scope, it is modified by the technology or knowledge of above-mentioned teaching or association area.And those skilled in the art are entered Capable change and change, then all should be in the protection domains of claims of the present invention without departing from the spirit and scope of the present invention Interior.

Claims (12)

1. a kind of image processing method, it is characterised in that:Comprise the following steps:
Luminance compensation table of the record black and white camera for different-colour different colours;
Obtain current environment colour temperature;
According to current environment colour temperature, the face for obtaining black white image from the luminance compensation table needed under current environment colour temperature Color-brightness offset value;
By black and white camera and color camera, the black and white under Same Scene and coloured image is obtained;
Color-brightness offset value according to needed for the black white image is under current environment colour temperature, is carried out to black white image brightness Revise;And the revised black white image is merged with the coloured image.
2. image processing method according to claim 1, it is characterised in that the color-brightness offset value is by right Data in the luminance compensation table are obtained after carrying out curve fitting.
3. image processing method according to claim 1, it is characterised in that according to current environment colour temperature, in luminance compensation Find in table closest to data as the color-brightness offset value.
4. image processing method according to claim 1, it is characterised in that:Methods described also includes generating luminance compensation Table, generating luminance compensation table includes following sub-step:
For same colour atla, the colour chart picture of colored and black and white is obtained under multiple different-colours respectively;
According to colored colour chart picture and black and white card graphic, the corresponding luminance compensation of black and white card graphic under different-colour is drawn Value.
5. image processing method according to claim 4, it is characterised in that:Methods described is also included according to obtained bright Degree offset carries out curve fitting.
6. image processing method according to claim 4, it is characterised in that according to colored colour chart picture and black and white colour chart As including the step of calculating brightness offset value:
The colored colour chart picture is switched to GTG colour chart picture;
Contrast the GTG colour chart picture and the black and white card graphic, calculate black and white colour chart in colour atla picture each color block 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 sources, D65 light sources, D50 light sources, TL84 light sources, CWF light sources, A light sources 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 Suddenly:
Current environment light is read by colour imagery shot and is irradiated to the red green value in gray card and blue green value;
According to red green value and blue green value, current environment colour temperature is obtained by inquiring about corresponding color meter.
9. image processing method according to claim 1, it is characterised in that:Bag is modified to the black white image brightness Include following sub-step:
Judge the color of each pixel in the coloured image;
According to the colouring information of corresponding pixel points in the color-brightness offset value and the coloured 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.
10. image processing method according to claim 9, it is characterised in that methods described also includes:
The coloured image and the black white image are mated;
During brightness correction, it is modified only for the region for completing to mate, ignores the region that cannot mate;And
When the black white image is merged with the coloured image, merged only for the region for completing to mate, ignored The region that cannot mate.
11. image processing methods according to claim 1, it is characterised in that obtain current environment colour temperature the step of with obtain The step of taking the black white image and the coloured image is while complete.
12. a kind of image processing apparatus, it is characterised in that include:
Logging modle, for recording luminance compensation table of the black and white camera for different-colour different colours;
Colour temperature acquisition module, obtains current environment colour temperature;
Offset acquisition module, according to current environment colour temperature, obtains black white image in current environment from the luminance compensation table Color-brightness offset value needed under colour temperature;
Image collection module, by black and white camera and color camera, obtains the black and white under Same Scene and coloured image;
Correcting module, the color-brightness offset value according to needed for the black white image is under current environment colour temperature, to black white image Brightness is modified;And Fusion Module, black white image is merged with coloured image.
CN201610889575.2A 2016-10-12 2016-10-12 A kind of image processing method and device Active CN106507081B (en)

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 true CN106507081A (en) 2017-03-15
CN106507081B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107846583A (en) * 2017-10-27 2018-03-27 维沃移动通信有限公司 A kind of image shadow compensating method and mobile terminal
WO2019137396A1 (en) * 2018-01-12 2019-07-18 华为技术有限公司 Image processing method and device

Citations (12)

* Cited by examiner, † Cited by third party
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
KR20090020784A (en) * 2007-08-24 2009-02-27 엘지전자 주식회사 Apparatus and method of display
CN103986875A (en) * 2014-05-29 2014-08-13 宇龙计算机通信科技(深圳)有限公司 Image acquiring device, method and terminal and video acquiring method
JP2014165865A (en) * 2013-02-27 2014-09-08 Canon Inc Image processing device and image processing method, program and recording medium
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
CN105049718A (en) * 2015-07-06 2015-11-11 深圳市金立通信设备有限公司 Image processing method and terminal
CN105208360A (en) * 2015-09-23 2015-12-30 青岛海信移动通信技术股份有限公司 Image preview method and device of intelligent terminal 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

Patent Citations (12)

* Cited by examiner, † Cited by third party
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
KR20090020784A (en) * 2007-08-24 2009-02-27 엘지전자 주식회사 Apparatus and method of display
JP2014165865A (en) * 2013-02-27 2014-09-08 Canon Inc Image processing device and image processing method, program and recording medium
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
CN105049718A (en) * 2015-07-06 2015-11-11 深圳市金立通信设备有限公司 Image processing method and terminal
CN105208360A (en) * 2015-09-23 2015-12-30 青岛海信移动通信技术股份有限公司 Image preview method and device of intelligent terminal and terminal
CN105336307A (en) * 2015-11-18 2016-02-17 深圳创维-Rgb电子有限公司 Method and system for correcting gamma curve of display based on color temperature

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107846583A (en) * 2017-10-27 2018-03-27 维沃移动通信有限公司 A kind of image shadow compensating method and mobile terminal
CN107846583B (en) * 2017-10-27 2020-09-01 维沃移动通信有限公司 Image shadow compensation method and mobile terminal
WO2019137396A1 (en) * 2018-01-12 2019-07-18 华为技术有限公司 Image processing method and device

Also Published As

Publication number Publication date
CN106507081B (en) 2019-04-19

Similar Documents

Publication Publication Date Title
EP3520390B1 (en) Recolorization of infrared image streams
CN101242476B (en) Automatic correction method of image color and digital camera system
CN101600121B (en) Computing method of white balance correct value
CN103686100A (en) Mobile communication apparatus and flashlight controlling method
CN104113743B (en) Colour TV camera AWB processing method and processing device under low-light (level)
KR102158844B1 (en) Apparatus and method for processing image, and computer-readable recording medium
CN105578063A (en) Image processing method and terminal
CN103716547A (en) Smart mode photographing method
CN103200409B (en) Color correction method of multi-projector display system
CN108712608A (en) Terminal device image pickup method and device
CN113556526B (en) RGBW filter array-based color enhancement method for color night vision equipment
CN106570838A (en) Image brightness optimization method and device
CN106506950A (en) A kind of image processing method and device
US20180332239A1 (en) Background replacement utilizing infrared light and visible light
CN106534677A (en) Image overexposure optimization method and device
CN105635532B (en) imaging method, image sensor, imaging device and electronic device
CN108156369A (en) Image processing method and device
CN106550227B (en) A kind of image saturation method of adjustment and device
US20180025476A1 (en) Apparatus and method for processing image, and storage medium
CN107396079A (en) White balance adjustment method and device
CN108270952B (en) Method and system for correcting image chromatic aberration of binocular camera
CN104243793A (en) Image-capturing device having image identification mechanism and method
CN110807735A (en) Image processing method, image processing device, terminal equipment and computer readable storage medium
CN106507081B (en) A kind of image processing method and device
JP2014220815A (en) Image color adjusting method and electronic device using the same

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