CN105812761A - Image color reduction method and terminal - Google Patents

Image color reduction method and terminal Download PDF

Info

Publication number
CN105812761A
CN105812761A CN201510471554.4A CN201510471554A CN105812761A CN 105812761 A CN105812761 A CN 105812761A CN 201510471554 A CN201510471554 A CN 201510471554A CN 105812761 A CN105812761 A CN 105812761A
Authority
CN
China
Prior art keywords
image
color
pixel
chart picture
corrected
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
CN201510471554.4A
Other languages
Chinese (zh)
Other versions
CN105812761B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201510471554.4A priority Critical patent/CN105812761B/en
Publication of CN105812761A publication Critical patent/CN105812761A/en
Application granted granted Critical
Publication of CN105812761B publication Critical patent/CN105812761B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides an image color reduction method and terminal and relates to the photographing field. The image color reduction method comprises the following steps: an image which is taken is obtained; a plurality of colors of a first color system are taken as correction objects; each pixel in the image is corrected and therefore a first corrected image can be obtained after correction operation; a plurality of colors of a second color system are taken as correction objects, each pixel in the image is corrected, and therefore a second corrected image is obtained after correction operation; pixels corresponding to the first corrected image and the second corrected image are subjected to color combining operation, and a combined image is obtained after the combining operation. Reduction accuracy of each color is improved, color deviation is reduced, and user experience is improved.

Description

The method of reducing of a kind of color of image and terminal
Technical field
The present invention relates to shooting field, particularly relate to method of reducing and the terminal of a kind of color of image.
Background technology
Mobile phone has become as the requirement of people.Along with popularizing of smart mobile phone, people use intelligent terminal more and more frequent.The camera function that intelligent terminal is carried also becomes standard configuration.And mobile phone camera pixel is more and more higher, people are also more and more higher to photographic head effect requirements, and wish that photographic head can be intelligent as eyes, no matter are details, and the correcting deviation tolerance on color is also more and more lower.
Summary of the invention
The purpose of the embodiment of the present invention is in that to provide method of reducing and the terminal of a kind of color of image, to solve the problem that photographic head shooting photographic quality is difficult to reduction.
To achieve these goals, the method for reducing of a kind of color of image that the embodiment of the present invention provides, including:
Obtain the image of shooting;
With the multiple color of the first colour system for calibration object, each pixel in described image is corrected, the first correction chart picture after being corrected;
With the multiple color of the second colour system for calibration object, each pixel in described image is corrected, the second correction chart picture after being corrected;
Pixel corresponding in described first correction chart picture and described second correction chart picture is carried out color synthesis, the composograph after being synthesized.
Accordingly, a kind of terminal of the embodiment of the present invention, including:
Acquisition module, for obtaining the image of shooting;
First correction module, for the multiple color of the first colour system for calibration object, being corrected each pixel in described image, the first correction chart picture after being corrected;
Second correction module, for the multiple color of the second colour system for calibration object, being corrected each pixel in described image, the second correction chart picture after being corrected;
Synthesis module, for pixel corresponding in described first correction chart picture and described second correction chart picture is carried out color synthesis, the composograph after being synthesized.
Having the beneficial effect that of the technique scheme of the embodiment of the present invention:
In the scheme of the embodiment of the present invention, by to the image photographed, different colour system is utilized to perform twice at correction, then again the image of correction is synthesized, so by same image is performed twice at process according to different colour systems, it is possible to achieve pixel each in image is processed, the shades of colour of nature truly can be reduced, improve the reduction accuracy of shades of colour, decrease color error ratio, also improve the experience effect of user.
Accompanying drawing explanation
Fig. 1 is one of step schematic diagram of the method for reducing of the color of image of the embodiment of the present invention;
Fig. 2 is one of step schematic diagram of the method for reducing of the color of image of the embodiment of the present invention;
Fig. 3 is the structural representation between the terminal module of the embodiment of the present invention.
Detailed description of the invention
For making the technical problem to be solved in the present invention, technical scheme and advantage clearly, it is described in detail below in conjunction with the accompanying drawings and the specific embodiments.
The problem that the embodiment of the present invention is difficult to reduction for photographic head shooting photographic quality in prior art, method of reducing and the terminal of a kind of color of image are provided, the reduction accuracy of shades of colour can be improved, it is not necessary to reach to approach color of object by other means (increase and decrease of form and aspect hue).
First embodiment:
As it is shown in figure 1, the method for reducing of this kind of color of image, it is possible to including:
Step 11, obtains the image of shooting;
After obtaining the image (step 11) of shooting, it is necessary to first unwanted for image information processing is fallen.The method of reducing of this color of image also includes: to this image, be sequentially carried out optical current process, bad pixel compensation processes, shadow compensation processes and mosaic processing, image after being processed, again each pixel in the image after processing is corrected, correction chart picture after being corrected (step 12 and or step 13, this correction chart picture includes the first correction chart picture and the second correction chart picture).
Needing foregoing is illustrated: when unwanted for image information processing being fallen, photographic head should not have picture, and picture should be all black, if any stain, then needs to remove;It is that bad pixel is processed that bad pixel compensation processes, and disposes bad pixel;Shadow compensation processes and the order of mosaic processing can exchange processing sequence.
Step 12, with the multiple color of the first colour system for calibration object, is corrected each pixel in described image, the first correction chart picture after being corrected;
In step 12, above-mentioned first colour system refers to that a kind of colour system in red colour system, yellow system and blue series, above-mentioned second colour system refer in red colour system, yellow system and blue series, except a kind of colour system of above-mentioned first colour system.
Can for red colour system for above-mentioned first colour system, the color in this red colour system may include that darkskin is black, and lightskin is bright; yellowgreen is yellowish green; orangeyellow is orange, and red is red, and yellow is yellow; magenta is pinkish red; moderatered appropriateness is red, orange nine kinds of colors such as orange grade, and all colours in this red colour system differs at this citing certainly; but belong to the color assignment mode of red colour system, all within the protection domain of the embodiment of the present invention.
Step 13, with the multiple color of the second colour system for calibration object, is corrected each pixel in described image, the second correction chart picture after being corrected;
In step 13, above-mentioned second colour system can for blue series, and the color in this blue series may include that luesky blue sky; foliage leaf; blueflower indigo plant flower, purplishblue bluish violet, purple purple; blue is blue; nine kinds of colors such as green is green, cyan cyan, all colours in this blue series differs at this citing certainly; but belong to the color assignment mode of blue series, all within the protection domain of the embodiment of the present invention.
Further, above-mentioned first colour system or above-mentioned second colour system can be example for yellow system, and the color in this yellow system may include that light yellow; duckling, primrose yellow, apricot yellow; apricot pink, orange, Exocarpium Citri Rubrum; Rhizoma Curcumae Longae, pale yellow color is orange; dark brown, the colour of camel's hair is pale yellow; maroon, brown, brown green; dark brown, reddish brown, pale brown; reddish brown, brown, withered and yellow; autumn scenery, optional nine kinds of colors in Qiu Xiangse, all colours in this yellow system differs at this citing certainly; but belong to the color assignment mode of yellow system, all within the protection domain of the embodiment of the present invention.
Step 14, carries out color synthesis to pixel corresponding in described first correction chart picture and described second correction chart picture, the composograph after being synthesized.
In the embodiment of the present invention, by to the image (step 11) photographed, different colour system is utilized to perform twice at correction (step 12 and or step 13), then undertaken synthesizing (step 14) by the image of correction again, for tradition by increasing and decreasing hue (form and aspect) to reach desired value, easily produce color transition unsmooth, and the problem being difficult to cover all scenes, the embodiment of the present invention, by same image is performed twice at process according to different colour systems, can realize pixel each in image is processed, improve the reduction accuracy of shades of colour, also improve the experience effect of user.
In the embodiment of the present invention, for above-mentioned shooting image by terminal photographic head shoot image, the process implemented is as follows:
Step 101, when obtaining photographic head and photographing an image, reads the color of each pixel in described image;
Step 102, obtains the multiple color of the first colour system described in described image, it is determined that the 3rd correction matrix;
Step 103, obtains the multiple color of the second colour system described in described image, it is determined that the 4th correction matrix;
Step 104, according to described 3rd correction matrix and described 4th correction matrix, is corrected the color of pixel each in described image respectively, and correspondence generates described first correction chart picture and described second correction chart picture.
Second embodiment
The method of reducing of this color of image, it is possible to including:
Step 111, obtain by the first image of the first photographic head shooting in terminal, and the second image of second camera shooting, position and acquisition parameters that described first photographic head and described second camera wherein shoot image carry out angle modification in advance, described first image and described second image are described first photographic head and described second camera, the imaging to the sync pulse jamming of same destination object after being corrected with identical acquisition parameters.
Step 12, with the multiple color of the first colour system for calibration object, is corrected each pixel in described image, the first correction chart picture after being corrected;
In step 12, above-mentioned first colour system refers to that a kind of colour system in red colour system, yellow system and blue series, above-mentioned second colour system refer in red colour system, yellow system and blue series, except a kind of colour system of above-mentioned first colour system.
Can for red colour system for above-mentioned first colour system, the color in this red colour system may include that darkskin is black, and lightskin is bright; yellowgreen is yellowish green; orangeyellow is orange, and red is red, and yellow is yellow; magenta is pinkish red; moderatered appropriateness is red, orange nine kinds of colors such as orange grade, and all colours in this red colour system differs at this citing certainly; but belong to the color assignment mode of red colour system, all within the protection domain of the embodiment of the present invention.
Step 13, with the multiple color of the second colour system for calibration object, is corrected each pixel in described image, the second correction chart picture after being corrected;
In step 13, above-mentioned second colour system can for blue series, and the color in this blue series may include that luesky blue sky; foliage leaf; blueflower indigo plant flower, purplishblue bluish violet, purple purple; blue is blue; nine kinds of colors such as green is green, cyan cyan, all colours in this blue series differs at this citing certainly; but belong to the color assignment mode of blue series, all within the protection domain of the embodiment of the present invention.
Further, above-mentioned first colour system or above-mentioned second colour system can be example for yellow system, and the color in this yellow system may include that light yellow; duckling, primrose yellow, apricot yellow; apricot pink, orange, Exocarpium Citri Rubrum; Rhizoma Curcumae Longae, pale yellow color is orange; dark brown, the colour of camel's hair is pale yellow; maroon, brown, brown green; dark brown, reddish brown, pale brown; reddish brown, brown, withered and yellow; autumn scenery, optional nine kinds of colors in Qiu Xiangse, all colours in this yellow system differs at this citing certainly; but belong to the color assignment mode of yellow system, all within the protection domain of the embodiment of the present invention.
Step 14, carries out color synthesis to pixel corresponding in described first correction chart picture and described second correction chart picture, the composograph after being synthesized.
nullIn the embodiment of the present invention,Shooting image is carried out by two photographic head of the first photographic head and second camera,And the position that the first photographic head and second camera shoot image in advance and acquisition parameters by prior art carries out angle modification (step 111),And then to revised image,Different colour system is utilized to perform twice at correction (step 12 and or step 13),Then undertaken synthesizing (step 14) by the image of correction again,So can realize correcting and optimizing image for a photographic head in above-mentioned terminal for tradition,But owing to a photographic head performs twice at process,The inefficient problem processed,The embodiment of the present invention,By same image is performed twice at process according to different colour systems,Can realize pixel each in image is processed,Improve the reduction accuracy of shades of colour,Also improve the experience effect of user.
The above-mentioned steps of the embodiment of the present invention, achieve two photographic head and there is identical acquisition parameters, such that it is able to the imaging of the sync pulse jamming to same destination object, obtain the image of identical parameters, decrease because two photographic head arrange the deviation of position in terminal, and cause the first image and the second image situation devious of shooting, improve the accuracy of two photographic head shooting images, and then two photographic head are shot respectively to the first image and the second correct image, improve the efficiency of correction, accurate reproduction color of image, also improves Consumer's Experience effect.
3rd embodiment
The method of reducing of this color of image, it is possible to including:
Step 11, obtains the image of shooting;
After obtaining the image (step 11) of shooting, it is necessary to first unwanted for image information processing is fallen.The method of reducing of this color of image also includes: to this image, be sequentially carried out optical current process, bad pixel compensation processes, shadow compensation processes and mosaic processing, image after being processed, again each pixel in the image after processing is corrected, correction chart picture after being corrected (step 12 and or step 13, this correction chart picture includes the first correction chart picture and the second correction chart picture).
Needing foregoing is illustrated: when unwanted for image information processing being fallen, photographic head should not have picture, and picture should be all black, if any stain, then needs to remove;It is that bad pixel is processed that bad pixel compensation processes, and disposes bad pixel;Shadow compensation processes and the order of mosaic processing can exchange processing sequence.
Step 121, reads the color of each pixel in described image, and obtains the multiple color of the first colour system described in described image, it is determined that the first correction matrix;
Wherein above-mentioned first correction matrix is to obtain through conversion, and concrete formula is as follows:
ΔR i Δ G i ΔB i = R i i d e a l G i i d e a l B i i d e a l - a 11 a 12 a 13 a 21 a 22 a 23 a 31 a 32 a 33 R i c a m e r a G i c a m e r a B i c a m e r a
Wherein aiiMatrix be exactly the first correction matrix (the namely coefficient matrix of a 3*3, color accept or reject more, it is the same in order to what seen with human eye by color calibration that the matrix of 3 is multiplied by the 3 of 9 coefficients, a11,a22,a33It is cornerwise data, will be generally above 1, by the saturation boost of color, improve brightness, make color more bright-coloured, remaining 6 data, positive and negative, belong to auxiliary toning);
Wherein R refers to the redness in three primary colours;G refers to the green in three primary colours;B refers to the blueness in three primary colours;
WhereinRefer to red value in the desirable three primary colours of setting;Refer to the desirable three primary colours Green numerical value of setting;Refer to blue values in the desirable three primary colours of setting;
WhereinRefer to red value in the three primary colours of actual photographed;Refer to the three primary colours Green numerical value of actual photographed;Refer to blue values in the three primary colours of actual photographed;
Wherein above-mentioned i refers to the ith pixel in each image;
Wherein Δ RiRefer to difference red in the desirable three primary colours arranged with actual photographed;Δ Gi refers to the difference of the desirable three primary colours Green arranged with actual photographed;ΔBiRefer to difference blue in the desirable three primary colours arranged with actual photographed;The embodiment of the present invention requires that this difference is the smaller the better, it is desirable to for null matrix, such deviation will be minimum.
It should be understood that each pixel color is exactly three primary colours compositions, various Standard Colors are (Rideal,Gideal,Bideal)i
Step 122, according to described first correction matrix, is corrected the color of pixel each in described image, generates the first correction chart picture.
4th embodiment
The method of reducing of this color of image, it is possible to including:
Step 11, obtains the image of shooting;
After obtaining the image (step 11) of shooting, it is necessary to first unwanted for image information processing is fallen.The method of reducing of this color of image also includes: to this image, be sequentially carried out optical current process, bad pixel compensation processes, shadow compensation processes and mosaic processing, image after being processed, again each pixel in the image after processing is corrected, correction chart picture after being corrected (step 12 and or step 13, this correction chart picture includes the first correction chart picture and the second correction chart picture).
Needing foregoing is illustrated: when unwanted for image information processing being fallen, photographic head should not have picture, and picture should be all black, if any stain, then needs to remove;It is that bad pixel is processed that bad pixel compensation processes, and disposes bad pixel;Shadow compensation processes and the order of mosaic processing can exchange processing sequence.
Step 12, with the multiple color of the first colour system for calibration object, is corrected each pixel in described image, the first correction chart picture after being corrected;
In step 12, above-mentioned first colour system refers to that a kind of colour system in red colour system, yellow system and blue series, above-mentioned second colour system refer in red colour system, yellow system and blue series, except a kind of colour system of above-mentioned first colour system.
Can for red colour system for above-mentioned first colour system, the color in this red colour system may include that darkskin is black, and lightskin is bright; yellowgreen is yellowish green; orangeyellow is orange, and red is red, and yellow is yellow; magenta is pinkish red; moderatered appropriateness is red, orange nine kinds of colors such as orange grade, and all colours in this red colour system differs at this citing certainly; but belong to the color assignment mode of red colour system, all within the protection domain of the embodiment of the present invention.
Above-mentioned first colour system can for blue series; color in this blue series may include that luesky blue sky, foliage leaf, blueflower indigo plant flower; purplishblue bluish violet; purple purple, blue is blue, and green is green; nine kinds of colors such as cyan cyan; certainly all colours in this blue series differs at this citing, but belongs to the color assignment mode of blue series, all within the protection domain of the embodiment of the present invention.
Further, above-mentioned first colour system can also for yellow system, and the color in this yellow system may include that light yellow, duckling, primrose yellow; apricot yellow, apricot pink, orange, Exocarpium Citri Rubrum, Rhizoma Curcumae Longae; pale yellow color, orange, dark brown, the colour of camel's hair is pale yellow; maroon, brown, brown green, dark brown, reddish brown; pale brown, reddish brown, brown, withered and yellow, autumn scenery; optional nine kinds of colors in Qiu Xiangse, all colours in this yellow system differs at this citing certainly, but belongs to the color assignment mode of yellow system, all within the protection domain of the embodiment of the present invention.
Step 131, reads the color of each pixel in described image, and obtains the multiple color of the second colour system described in described image, it is determined that the second correction matrix;
Wherein, above-mentioned second correction matrix is to obtain through conversion, and concrete formula is as follows:
ΔR i Δ G i ΔB i = R i i d e a l G i i d e a l B i i d e a l - a 11 a 12 a 13 a 21 a 22 a 23 a 31 a 32 a 33 R i c a m e r a G i c a m e r a B i c a m e r a
Wherein aiiMatrix be exactly the second correction matrix, the namely coefficient matrix of a 3*3;
Wherein R refers to the redness in three primary colours;G refers to the green in three primary colours;B refers to the blueness in three primary colours;
WhereinRefer to red value in the desirable three primary colours of setting;Refer to the desirable three primary colours Green numerical value of setting;Refer to blue values in the desirable three primary colours of setting;
WhereinRefer to red value in the three primary colours of actual photographed;Refer to the three primary colours Green numerical value of actual photographed;Refer to blue values in the three primary colours of actual photographed;
Wherein above-mentioned i refers to the ith pixel in each image;
Wherein Δ RiRefer to difference red in the desirable three primary colours arranged with actual photographed;Δ Gi refers to the difference of the desirable three primary colours Green arranged with actual photographed;ΔBiRefer to difference blue in the desirable three primary colours arranged with actual photographed;The embodiment of the present invention requires that this difference is the smaller the better, it is desirable to for null matrix, such deviation will be minimum.
Further, each pixel color is exactly three primary colours compositions, and various Standard Colors are (Rideal,Gideal,Bideal)i
Step 132, according to described second correction matrix, is corrected the color of location of pixels each in described image, generates correction chart picture.
In the embodiment of the present invention, image to shooting, according to the multiple color of the first colour system in image, generate the first matrix to be corrected, according to the multiple color of the second colour system in image, generate the second matrix and be corrected, in the first correction chart picture obtained after correction and the second correction chart picture, corresponding pixel carries out color synthesis, the composograph after being synthesized.Relative to traditional mobile phone shooting photo adopting single camera, 3*3 matrix, the problem that 9 coefficients can not meet the accurate reproduction of all colours, by same image is performed twice at process according to different colour systems in the embodiment of the present invention, can realize all pixels of image are processed, improve the reduction accuracy of shades of colour, also improve the experience effect of user.
5th embodiment
The method of reducing of this color of image, it is possible to including:
Step 11, obtains the image of shooting;
After obtaining the image (step 11) of shooting, it is necessary to first unwanted for image information processing is fallen.The method of reducing of this color of image also includes: to this image, be sequentially carried out optical current process, bad pixel compensation processes, shadow compensation processes and mosaic processing, image after being processed, again each pixel in the image after processing is corrected, correction chart picture after being corrected (step 12 and or step 13, this correction chart picture includes the first correction chart picture and the second correction chart picture).
Needing foregoing is illustrated: when unwanted for image information processing being fallen, photographic head should not have picture, and picture should be all black, if any stain, then needs to remove;It is that bad pixel is processed that bad pixel compensation processes, and disposes bad pixel;Shadow compensation processes and the order of mosaic processing can exchange processing sequence.
Step 12, with the multiple color of the first colour system for calibration object, is corrected each pixel in described image, the first correction chart picture after being corrected;
In step 12, above-mentioned first colour system refers to that a kind of colour system in red colour system, yellow system and blue series, above-mentioned second colour system refer in red colour system, yellow system and blue series, except a kind of colour system of above-mentioned first colour system.
Can for red colour system for above-mentioned first colour system, the color in this red colour system may include that darkskin is black, and lightskin is bright; yellowgreen is yellowish green; orangeyellow is orange, and red is red, and yellow is yellow; magenta is pinkish red; moderatered appropriateness is red, orange nine kinds of colors such as orange grade, and all colours in this red colour system differs at this citing certainly; but belong to the color assignment mode of red colour system, all within the protection domain of the embodiment of the present invention.
Step 13, with the multiple color of the second colour system for calibration object, is corrected each pixel in described image, the second correction chart picture after being corrected;
In step 13, above-mentioned second colour system can for blue series, and the color in this blue series may include that luesky blue sky; foliage leaf; blueflower indigo plant flower, purplishblue bluish violet, purple purple; blue is blue; nine kinds of colors such as green is green, cyan cyan, all colours in this blue series differs at this citing certainly; but belong to the color assignment mode of blue series, all within the protection domain of the embodiment of the present invention.
Further, above-mentioned first colour system or above-mentioned second colour system can be example for yellow system, and the color in this yellow system may include that light yellow; duckling, primrose yellow, apricot yellow; apricot pink, orange, Exocarpium Citri Rubrum; Rhizoma Curcumae Longae, pale yellow color is orange; dark brown, the colour of camel's hair is pale yellow; maroon, brown, brown green; dark brown, reddish brown, pale brown; reddish brown, brown, withered and yellow; autumn scenery, optional nine kinds of colors in Qiu Xiangse, all colours in this yellow system differs at this citing certainly; but belong to the color assignment mode of yellow system, all within the protection domain of the embodiment of the present invention.
Step 141, obtains and judges the form and aspect of each pixel in described first correction chart picture, with multiple first difference value of the multiple color form and aspect of the first colour system in described first photographic head;
The form and aspect of described first photographic head, according to multiple first difference value, are distributed multiple first weighted values, and the corresponding form and aspect giving described second camera are distributed multiple second weighted values by step 142, and wherein said second weight is 1 numerical value deducting described first weighted value;
Step 143, obtains and judges the form and aspect of each pixel in described second correction chart picture, with multiple second difference value of the multiple color form and aspect of the second colour system in described second camera;
The form and aspect of described second camera, according to multiple second difference value, are distributed multiple 3rd weighted values, and the corresponding form and aspect giving described first photographic head are distributed multiple 4th weighted values by step 144, and wherein said 4th weight is 1 numerical value deducting described 3rd weighted value;
The concrete numerical value of above-mentioned image form and aspect is 0 degree, 30 degree, 60 degree, 90 degree, 120 degree, 150 degree, 180 degree, 210 degree and 240 degree etc..Obtain and calculate the color phase of each pixel in this first image, find 9 kinds of colors in the first photographic head, apart from the immediate color of these current pixel form and aspect (namely difference angle is minimum), to distribution first weight of the first photographic head, to should pixel corresponding second camera distribution weight be the second weight (1-the first weight), in like manner, obtain and calculate the color phase of each pixel in this second image, find 9 kinds of colors in second camera, apart from this immediate color of current pixel form and aspect, to distribution the 3rd weight of second camera, to should pixel corresponding first photographic head distribution weight be the 4th weight (1-the 3rd weight), this weight changes along with the hue difference of border color, difference is more remote, weight is more little.
Step 145, according to the weighted value that described first photographic head and described second camera distribute, pixel corresponding to described first correction chart picture and described second correction chart picture is carried out color synthesis, composograph after being synthesized, wherein said weighted value includes described first weighted value, described second weighted value, described 3rd weighted value and described 4th weighted value.
In the embodiment of the present invention, after obtaining image, then image performs twice at correction, and (the first photographic head, through the first correction matrix computing, carries out color correction, obtains the first correction chart picture;Second camera is through the second correction matrix computing, carry out color correction, obtain the second correction chart picture), (H (hues) represents color phase to be converted to HSB finally by judgement, S (saturation) represents saturation, B (brightness) represents brightness) format-pattern, and by the color phase of pixel each in this image, finally compare the first photographic head and second camera, form and aspect relation with each pixel, synthesize thus distributing different weights to the first photographic head and second camera, improve the reduction accuracy of shades of colour, also improve the experience effect of user.
After step 14, the method for reducing of the color of image of sixth embodiment of the invention also includes:
Step 15, carries out the ISP (ImageSignalprocessing, Digital Signal Processing) of rear end to described composograph, exports image.
The embodiment of the present invention can form complete image, facilitates user and checks and use, improves Consumer's Experience effect.
As in figure 2 it is shown, the entirety of the embodiment of the present invention to realize flow process as follows.
Step 201: opening the first photographic head, second camera starts preview;
Step 202: the first photographic head, second camera obtains original RAW data respectively;
Step 203: the first photographic head, second camera is through OB (the black compensation of opticalblackcompensation optics), BPC (badpixelcompensation) bad pixel compensation, Shading (shadingcompensation shadow compensation), Demosaic (demosaic, mosaic) enters colormatrixcorrection color correction matrix afterwards;
Step 204: the first photographic head: using the color of nine kinds of red colour systems as the target of color correction matrix, calculates the first correction matrix that satisfied nine kinds of color distortions are minimum;Second camera: using the color of nine kinds of blue series as the target of color correction, calculates the second correction matrix that satisfied nine kinds of color distortions are minimum.
Step 205: the first photographic head, through the matrix operations of the first correction matrix, carries out color correction and obtains the first correction chart picture;Second camera, through the matrix operations of the second correction matrix, carries out color correction and obtains the second correction chart picture.
Step 206: by the second image of the first image of the first photographic head and second camera, carry out image synthesis.
Step 207: carry out Digital Signal Processing below after synthesis again, obtain and export target image.
7th embodiment
Accordingly, this terminal as shown in Figure 3, it is possible to including:
Acquisition module 31, for obtaining the image of shooting;
First correction module 32, for the multiple color of the first colour system for calibration object, being corrected each pixel in described image, the first correction chart picture after being corrected;
Second correction module 33, for the multiple color of the second colour system for calibration object, being corrected each pixel in described image, the second correction chart picture after being corrected;
Synthesis module 34, for pixel corresponding in described first correction chart picture and described second correction chart picture is carried out color synthesis, the composograph after being synthesized.
In the embodiment of the present invention, by the image that acquisition module 31 photographs, through the first correction module 32 and the second correction module 33, different colour system is utilized to perform twice at correction, then again through synthesis module 34, the image of correction is synthesized, for tradition by increasing and decreasing hue (form and aspect) to reach desired value, easily produce color transition unsmooth, and the problem being difficult to cover all scenes, the embodiment of the present invention, by same image is performed twice at process according to different colour systems, can realize pixel each in image is processed, improve the reduction accuracy of shades of colour, also improve the experience effect of user.
8th embodiment
This terminal, it is possible to including:
Obtain submodule, for obtaining by the first image of the first photographic head shooting in terminal, and the second image of second camera shooting, position and acquisition parameters that described first photographic head and described second camera wherein shoot image carry out angle modification in advance, described first image and described second image are described first photographic head and described second camera, the imaging to the sync pulse jamming of same destination object after being corrected with identical acquisition parameters;
First correction module 32, for the multiple color of the first colour system for calibration object, being corrected each pixel in described image, the first correction chart picture after being corrected;
Second correction module 33, for the multiple color of the second colour system for calibration object, being corrected each pixel in described image, the second correction chart picture after being corrected;
Synthesis module 34, for pixel corresponding in described first correction chart picture and described second correction chart picture is carried out color synthesis, the composograph after being synthesized.
9th embodiment
This terminal, it is possible to including:
Acquisition module 31, for obtaining the image of shooting;
First determines submodule, for reading the color of each pixel in described image, and obtains the multiple color of the first colour system described in described image, it is determined that the first correction matrix;
First syndrome module, for according to described first correction matrix, being corrected the color of pixel each in described image, generate described first correction chart picture;
Second correction module 33, for the multiple color of the second colour system for calibration object, being corrected each pixel in described image, the second correction chart picture after being corrected;
Synthesis module 34, for pixel corresponding in described first correction chart picture and described second correction chart picture is carried out color synthesis, the composograph after being synthesized.
Tenth embodiment
This terminal, it is possible to including:
Acquisition module 31, for obtaining the image of shooting;
First correction module 32, for the multiple color of the first colour system for calibration object, being corrected each pixel in described image, the first correction chart picture after being corrected;
Second determines submodule, for reading the color of each pixel in described image, and obtains the multiple color of the second colour system described in described image, it is determined that the second correction matrix;
Second syndrome module, for according to described second correction matrix, being corrected the color of location of pixels each in described image, generate described second correction chart picture;
Synthesis module 34, for pixel corresponding in described first correction chart picture and described second correction chart picture is carried out color synthesis, the composograph after being synthesized.
11st embodiment
This terminal, it is possible to including:
Acquisition module 31, for obtaining the image of shooting;
First correction module 32, for the multiple color of the first colour system for calibration object, being corrected each pixel in described image, the first correction chart picture after being corrected;
Second correction module 33, for the multiple color of the second colour system for calibration object, being corrected each pixel in described image, the second correction chart picture after being corrected;
First processes submodule, for obtaining and judging the form and aspect of each pixel in described first correction chart picture, with multiple first difference value of the multiple color form and aspect of the first colour system in described first photographic head;
First distribution sub module, for according to multiple first difference value, distributing multiple first weighted values to the form and aspect of described first photographic head, and the corresponding form and aspect giving described second camera distribute multiple second weighted values, wherein said second weight is 1 numerical value deducting described first weighted value;
Second processes submodule, for obtaining and judging the form and aspect of each pixel in described second correction chart picture, with multiple second difference value of the multiple color form and aspect of the second colour system in described second camera;
Second distribution sub module, for according to multiple second difference value, distributing multiple 3rd weighted values to the form and aspect of described second camera, and the corresponding form and aspect giving described first photographic head distribute multiple 4th weighted values, wherein said 4th weight is 1 numerical value deducting described 3rd weighted value;
Synthon module, for the weighted value distributed according to described first photographic head and described second camera, pixel corresponding to described first correction chart picture and described second correction chart picture is carried out color synthesis, composograph after being synthesized, wherein said weighted value includes described first weighted value, described second weighted value, described 3rd weighted value and described 4th weighted value.
The terminal of twelveth embodiment of the invention, also includes:
Processing output module, for described composograph being carried out the ISP (ImageSignalprocessing, Digital Signal Processing) of rear end, exporting image.
The embodiment of the present invention can form complete image, facilitates user and checks and use, improves Consumer's Experience effect.
It should be noted that terminal provided by the invention is the terminal of the method for reducing applying above-mentioned color of image, then all embodiments of the method for reducing of above-mentioned color of image are all suitable in this terminal, and all can reach same or analogous beneficial effect.
The above is the preferred embodiment of the present invention; it should be pointed out that, for those skilled in the art, under the premise without departing from principle of the present invention; can also making some improvements and modifications, these improvements and modifications also should be regarded as protection scope of the present invention.

Claims (10)

1. the method for reducing of a color of image, it is characterised in that including:
Obtain the image of shooting;
With the multiple color of the first colour system for calibration object, each pixel in described image is corrected, the first correction chart picture after being corrected;
With the multiple color of the second colour system for calibration object, each pixel in described image is corrected, the second correction chart picture after being corrected;
Pixel corresponding in described first correction chart picture and described second correction chart picture is carried out color synthesis, the composograph after being synthesized.
2. the method for reducing of color of image according to claim 1, it is characterised in that
The described image obtaining shooting includes:
Obtain by the first image of the first photographic head shooting in terminal, and the second image of second camera shooting, position and acquisition parameters that described first photographic head and described second camera wherein shoot image carry out angle modification in advance, described first image and described second image are described first photographic head and described second camera, the imaging to the sync pulse jamming of same destination object after being corrected with identical acquisition parameters.
3. the method for reducing of color of image according to claim 1, it is characterised in that described with the multiple color of the first colour system for calibration object, is corrected each pixel in described image, and the first correction chart picture after being corrected includes:
Read the color of each pixel in described image, and obtain the multiple color of the first colour system described in described image, it is determined that the first correction matrix;
According to described first correction matrix, the color of pixel each in described image is corrected, generates described first correction chart picture.
4. the method for reducing of color of image according to claim 1, it is characterised in that described with the multiple color of the second colour system for calibration object, is corrected each pixel in described image, and the second correction chart picture after being corrected includes:
Read the color of each pixel in described image, and obtain the multiple color of the second colour system described in described image, it is determined that the second correction matrix;
According to described second correction matrix, the color of location of pixels each in described image is corrected, generates described second correction chart picture.
5. the method for reducing of the color of image according to any one of Claims 1-4, it is characterised in that described pixel corresponding in described first correction chart picture and described second correction chart picture is carried out color synthesis, the composograph after being synthesized includes:
Obtain and judge the form and aspect of each pixel in described first correction chart picture, with multiple first difference value of the multiple color form and aspect of the first colour system in described first photographic head;
According to multiple first difference value, distributing multiple first weighted values to the form and aspect of described first photographic head, and the corresponding form and aspect giving described second camera distribute multiple second weighted values, wherein said second weight is 1 numerical value deducting described first weighted value;
Obtain and judge the form and aspect of each pixel in described second correction chart picture, with multiple second difference value of the multiple color form and aspect of the second colour system in described second camera;
According to multiple second difference value, distributing multiple 3rd weighted values to the form and aspect of described second camera, and the corresponding form and aspect giving described first photographic head distribute multiple 4th weighted values, wherein said 4th weight is 1 numerical value deducting described 3rd weighted value;
According to the weighted value that described first photographic head and described second camera distribute, pixel corresponding to described first correction chart picture and described second correction chart picture is carried out color synthesis, composograph after being synthesized, wherein said weighted value includes described first weighted value, described second weighted value, described 3rd weighted value and described 4th weighted value.
6. a terminal, it is characterised in that including:
Acquisition module, for obtaining the image of shooting;
First correction module, for the multiple color of the first colour system for calibration object, being corrected each pixel in described image, the first correction chart picture after being corrected;
Second correction module, for the multiple color of the second colour system for calibration object, being corrected each pixel in described image, the second correction chart picture after being corrected;
Synthesis module, for pixel corresponding in described first correction chart picture and described second correction chart picture is carried out color synthesis, the composograph after being synthesized.
7. terminal according to claim 6, it is characterised in that described acquisition module includes:
Obtain submodule, for obtaining by the first image of the first photographic head shooting in terminal, and the second image of second camera shooting, position and acquisition parameters that described first photographic head and described second camera wherein shoot image carry out angle modification in advance, described first image and described second image are described first photographic head and described second camera, the imaging to the sync pulse jamming of same destination object after being corrected with identical acquisition parameters.
8. terminal according to claim 6, it is characterised in that described first correction module includes:
First determines submodule, for reading the color of each pixel in described image, and obtains the multiple color of the first colour system described in described image, it is determined that the first correction matrix;
First syndrome module, for according to described first correction matrix, being corrected the color of pixel each in described image, generate described first correction chart picture.
9. terminal according to claim 6, it is characterised in that described second correction module includes:
Second determines submodule, for reading the color of each pixel in described image, and obtains the multiple color of the second colour system described in described image, it is determined that the second correction matrix;
Second syndrome module, for according to described second correction matrix, being corrected the color of location of pixels each in described image, generate described second correction chart picture.
10. the terminal according to any one of claim 6 to 9, it is characterised in that described synthesis module includes:
First processes submodule, for obtaining and judging the form and aspect of each pixel in described first correction chart picture, with multiple first difference value of the multiple color form and aspect of the first colour system in described first photographic head;
First distribution sub module, for according to multiple first difference value, distributing multiple first weighted values to the form and aspect of described first photographic head, and the corresponding form and aspect giving described second camera distribute multiple second weighted values, wherein said second weight is 1 numerical value deducting described first weighted value;
Second processes submodule, for obtaining and judging the form and aspect of each pixel in described second correction chart picture, with multiple second difference value of the multiple color form and aspect of the second colour system in described second camera;
Second distribution sub module, for according to multiple second difference value, distributing multiple 3rd weighted values to the form and aspect of described second camera, and the corresponding form and aspect giving described first photographic head distribute multiple 4th weighted values, wherein said 4th weight is 1 numerical value deducting described 3rd weighted value;
Synthon module, for the weighted value distributed according to described first photographic head and described second camera, pixel corresponding to described first correction chart picture and described second correction chart picture is carried out color synthesis, composograph after being synthesized, wherein said weighted value includes described first weighted value, described second weighted value, described 3rd weighted value and described 4th weighted value.
CN201510471554.4A 2015-08-03 2015-08-03 The restoring method and terminal of a kind of color of image Active CN105812761B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510471554.4A CN105812761B (en) 2015-08-03 2015-08-03 The restoring method and terminal of a kind of color of image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510471554.4A CN105812761B (en) 2015-08-03 2015-08-03 The restoring method and terminal of a kind of color of image

Publications (2)

Publication Number Publication Date
CN105812761A true CN105812761A (en) 2016-07-27
CN105812761B CN105812761B (en) 2018-05-11

Family

ID=56466220

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510471554.4A Active CN105812761B (en) 2015-08-03 2015-08-03 The restoring method and terminal of a kind of color of image

Country Status (1)

Country Link
CN (1) CN105812761B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107734246A (en) * 2016-08-12 2018-02-23 深圳市易瞳科技有限公司 A kind of image processing method, device and interlock circuit
CN110969596A (en) * 2018-09-29 2020-04-07 科思创德国股份有限公司 Product color correction method and product color correction system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101061704A (en) * 2004-12-02 2007-10-24 松下电器产业株式会社 Color adjusting device and method
CN101877217A (en) * 2010-06-29 2010-11-03 彩虹集团公司 Color correction method for LED liquid crystal display device
CN102572449A (en) * 2012-02-28 2012-07-11 王锦峰 Image processing device and image processing method based on three primary colors of RGB (red, green and blue)
CN102572206A (en) * 2010-12-31 2012-07-11 比亚迪股份有限公司 Color correction method
JP2015065635A (en) * 2013-08-29 2015-04-09 株式会社Jvcケンウッド Imaging apparatus, and method for color correction of captured image

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101061704A (en) * 2004-12-02 2007-10-24 松下电器产业株式会社 Color adjusting device and method
CN101877217A (en) * 2010-06-29 2010-11-03 彩虹集团公司 Color correction method for LED liquid crystal display device
CN102572206A (en) * 2010-12-31 2012-07-11 比亚迪股份有限公司 Color correction method
CN102572449A (en) * 2012-02-28 2012-07-11 王锦峰 Image processing device and image processing method based on three primary colors of RGB (red, green and blue)
JP2015065635A (en) * 2013-08-29 2015-04-09 株式会社Jvcケンウッド Imaging apparatus, and method for color correction of captured image

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107734246A (en) * 2016-08-12 2018-02-23 深圳市易瞳科技有限公司 A kind of image processing method, device and interlock circuit
CN107734246B (en) * 2016-08-12 2020-09-15 深圳市易瞳科技有限公司 Image processing method, device and related circuit
CN110969596A (en) * 2018-09-29 2020-04-07 科思创德国股份有限公司 Product color correction method and product color correction system

Also Published As

Publication number Publication date
CN105812761B (en) 2018-05-11

Similar Documents

Publication Publication Date Title
CN107197225B (en) Color digital camera white balance correcting based on chromatic adaptation model
US8890974B2 (en) Methods and systems for automatic white balance
CN102204258B (en) Image inputting apparatus
EP2798831B1 (en) Spectral image processing
US8605164B2 (en) Image processing apparatus, control method therefor, and storage medium
Karaimer et al. Improving color reproduction accuracy on cameras
CN105847772A (en) Imaging system with clear filter pixels
CN111292246B (en) Image color correction method, storage medium, and endoscope
CN104363434B (en) Image processing apparatus
JP2003284084A (en) Image processing apparatus and method, and manufacturing method of image processing apparatus
EP3414890B1 (en) Devices and methods for high dynamic range video
CN113676628B (en) Image forming apparatus and image processing method
CN103004211A (en) Imaging device, captured image processing method, and captured image processing program
Pham et al. Color correction for an image sequence
CN113556526B (en) RGBW filter array-based color enhancement method for color night vision equipment
CN104796577A (en) Colored night vision imaging device and method based on EMCCD and single-color CCD
CN105809634A (en) Photograph generating method and mobile terminal
CN111107330B (en) Color cast correction method for Lab space
CN101473658B (en) Imaging system and imaging program
CN107231549A (en) AWB detecting system
CN102946501B (en) Color distortion correction method and device in imaging system or image output system
CN105812761A (en) Image color reduction method and terminal
Orava et al. Color errors of digital cameras
Heimann et al. Color filter array and color correction for high dynamic range CMOS image sensors
CN107622477A (en) A kind of RGBW images joint demosaicing and deblurring method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant