CN101827273B - A color rendition method of image - Google Patents

A color rendition method of image Download PDF

Info

Publication number
CN101827273B
CN101827273B CN 200910118111 CN200910118111A CN101827273B CN 101827273 B CN101827273 B CN 101827273B CN 200910118111 CN200910118111 CN 200910118111 CN 200910118111 A CN200910118111 A CN 200910118111A CN 101827273 B CN101827273 B CN 101827273B
Authority
CN
China
Prior art keywords
color
pixels
value
comparison
pixel
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.)
Expired - Fee Related
Application number
CN 200910118111
Other languages
Chinese (zh)
Other versions
CN101827273A (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.)
Altek Corp
Original Assignee
Altek Corp
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 Altek Corp filed Critical Altek Corp
Priority to CN 200910118111 priority Critical patent/CN101827273B/en
Publication of CN101827273A publication Critical patent/CN101827273A/en
Application granted granted Critical
Publication of CN101827273B publication Critical patent/CN101827273B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a color rendition method of an image, which is applied to reappearing the color of target pixel in the interpolation process of a color filter array, and comparison pixels different from the target pixel encircle around the target pixel so as to form an operation matrix of interpolation. The color rendition method comprises the steps of calculating horizontal variation values, vertical variation values and difference of the brightness and chroma of all comparison pixels, and comparing the calculated values with a threshold value, wherein when the difference is smaller than the threshold value, multiple surrounding color pixels are selected both from the horizontal and the vertical directions to calculate one color difference value respectively contained by each comparison pixel relative to the target pixel; and then, the color difference value contained by each comparison pixel relative to the target pixel is used to carry out color difference interpolation calculation, so that the target color value of the target pixel can be calculated.

Description

The color rendition method of image
Technical field
The present invention is about the color rendition method of a kind of color rendition method, particularly a kind of image.
Background technology
Digital camera utilizes Charged Coupled Device (Charge Coupled Device, CCD) or CMOS transducer (CMOS sensor) to come sensing image at present.When digital camera is wanted to have the ability of color image sensing, must add that in the front of Charged Coupled Device or CMOS transducer colored filter (Color Filter, CF) carries out the action of color separation.And colored filter all is to adopt RGB (RGB) three primary colors to carry out color separation usually, general digital camera uses the pixel (pixel) of single Charged Coupled Device to carry out the color acquisition usually, so will be so that each pixel can only directly capture a certain color-values in RGB (RGB) three primary colors, cause the loss of other two color-values on the co-located.
(the Color Filter Array of modal colour filter array in the present digital camera, CFA), its Green (G), blue (B) are 2: 1: 1 with the pixel quantity ratio of red (R), and this kind arrangement mode is commonly called Bayer pattern (Bayer pattern).Via the mathematical operation of method of color interpolation, reconstruct other color-values that each pixel is lost so as to supposition.
And it is very many about the kind of method of color interpolation, but basically can be divided into two classes, the first kind is called fixed image interpolation, and belonging to first kind method has neighbor point (nearest) interpolation method, bilinearity (bilinear) interpolation method and color to change gently (Smooth Hue Transition) interpolation method etc.But because of first kind method carry out interpolation arithmetic with obtain in a certain pixel to lose fall color-values the time, the neighbor point of getting is fixed with respect to the relative position of pixel, so itself does not detect the ability at edge first kind method, so its image border lines part of rebuilding out can produce image blurring phenomenon.
And be to improve above-mentioned disappearance, the Equations of The Second Kind method that is called the free-standing image interpolation just is developed, this Equations of The Second Kind method carry out interpolative operation obtain in a certain pixel to lose fall color-values the time, its neighbor point of getting is unfixed with respect to the relative position of this pixel, meaning is the ability that the Equations of The Second Kind method itself has the detecting edge, therefore can reduce ill-defined phenomenon.For example in the 3*3 colour filter array, compared by difference and the threshold value of the green color pixel of different lines, judge that whether the photosensitive unit place is zone, edge (edge), determines that according to this this photosensitive unit place is original value, interpolate value or mean value.
Yet, if only according to the green color pixel when judging the reference value at edge, the green offset that calculates in the position that lacks the green color pixel often can obtain incorrect offset.If when carrying out the interpolation calculating of other location of pixels according to incorrect green offset again, then other location of pixels can obtain wrong red offset and blue offset.
In addition, if use larger interpolation arithmetic matrix, for example 5*7 colour filter array or 7*7 colour filter array are processed, and then can obtain more green offset.But when using larger interpolation arithmetic matrix, then hardware cost then can improve (memory size that for example, needs to increase digital camera).In addition, when using larger interpolation arithmetic matrix, although can obtain more green offset, because the quantity of the pixel of processing also increases, process so need the long time to carry out image, and then improve time cost.
Summary of the invention
In view of above problem, main purpose of the present invention is to provide a kind of color rendition method of image, do not needing to increase in the situation of hardware cost and time cost, according to the colored pixels of different passages (channel), utilize interpolation calculation to produce its different color value to each pixel in the color filter lens array.So as to solve known technology only according to the green color pixel as the reference value of judging the edge, and calculate incorrect offset, and solve the shortcoming that known technology need increase hardware cost and time cost.
Therefore, the color rendition method of the disclosed image of the present invention, be applied to interpolation processing (the Color Filter Array Interploation of color filter lens array, CFAi) color of reproduced image in the process, color rendition method comprises: determine the interpolation arithmetic matrix, it carries out the interpolation calculation to a plurality of colored pixels of image institute's tool in the default position range of image, the color of colored pixels include the first color, the second color, with the 3rd color; From colored pixels, select the object pixel with first color, and be a plurality of comparison pixels with all the other definitions of color except the first color in the colored pixels; Carry out the first interpolation procedure, calculate respectively the brightness of each comparison pixels and horizontal changing value, vertical change value and the difference value of colourity; Set threshold values, and utilize threshold values to horizontal changing value, the vertical change value of each comparison pixels, compare with difference value; When difference value during less than threshold values, then the change color trend of comparison pixels is level and smooth trend, and the horizontal direction of selection comparison pixels and a plurality of ambient color pixels of vertical direction, utilize respectively the ambient color pixel that corresponding comparison pixels is carried out the interpolation calculation of different color, so that each comparison pixels all has different color value to object pixel; And carry out the second interpolation procedure, utilize different color value that each comparison pixels has respectively that object pixel is carried out the interpolation calculation of different color, to calculate the color of object value of object pixel.
Wherein, the color of above-mentioned colored pixels, the green of serving as reasons, the red and blue group that forms.
In addition, the variable quantity of the ambient color pixel of the horizontal direction that above-mentioned horizontal changing value is each comparison pixels, the vertical change value is the variable quantity of ambient color pixel of the vertical direction of each comparison pixels, and difference value is the horizontal changing value of each comparison pixels and the difference between the vertical change value.
Like this, above-mentioned threshold values is in order to as the foundation of judging: when difference value greater than threshold values, and horizontal changing value is during less than the vertical change value, then the change color trend of comparison pixels is horizontal trend, and the ambient color pixel of the horizontal direction of selection comparison pixels, utilize respectively the ambient color pixel that corresponding comparison pixels is carried out the interpolation calculation of different color, so that each comparison pixels all has different color value to object pixel.
In addition, above-mentioned threshold values is in order to as the foundation of judging: when difference value greater than threshold values, and horizontal changing value is during greater than the vertical change value, then the change color trend of comparison pixels is vertical trend, and the ambient color pixel of the vertical direction of selection comparison pixels, utilize respectively the ambient color pixel that corresponding comparison pixels is carried out the interpolation calculation of different color, so that each comparison pixels all has different color value to object pixel.
According to the color rendition method of image provided by the present invention, be applied to each pixel in the color filter battle array of digital photographic device, utilize interpolation calculation to produce in its different color value process to each pixel.Do not needing to increase in the situation of hardware cost and time cost, can calculate by software the different color value of different colours pixel in the digital picture.And then reduce in method of color interpolation, only use the solid color pixel to carry out interpolation arithmetic and produce incorrect color value.
Describe the present invention below in conjunction with the drawings and specific embodiments, but not as a limitation of the invention.
Description of drawings
Fig. 1 is the color filter lens array according to one embodiment of the invention;
Fig. 2 is the flow chart according to the color rendition method of the image of one embodiment of the invention;
Fig. 3 is the calculation flow chart of horizontal changing value, vertical change value and difference value according to one embodiment of the invention;
Fig. 4 is the flow chart according to the horizontal trend of one embodiment of the invention;
Fig. 5 is the flow chart according to the vertical trend of one embodiment of the invention;
Fig. 6 is the color filter lens array according to another embodiment of the present invention;
Fig. 7 is the flow chart according to the color rendition method of the image of another embodiment of the present invention;
Fig. 8 is the calculation flow chart of horizontal changing value, vertical change value and difference value according to another embodiment of the present invention;
Fig. 9 is another calculation flow chart of horizontal changing value, vertical change value and difference value according to another embodiment of the present invention;
Figure 10 is the flow chart according to the horizontal trend of another embodiment of the present invention;
Figure 11 is the flow chart according to the vertical trend of another embodiment of the present invention;
Figure 12 is another flow chart according to the horizontal trend of another embodiment of the present invention;
Figure 13 is another flow chart according to the vertical trend of another embodiment of the present invention.
Wherein, Reference numeral
10 color filter lens arrays
20 interpolation arithmetic matrixes
30 central point colored pixels
40 color filter lens arrays
50 interpolation arithmetic matrixes
60 central point colored pixels
Embodiment
According to the color rendition method of image of the present invention, be applied to have the electronic installation of image acquisition function.This method can be by being built in software or the firmware program in the storage device of electronic installation, carries out built-in software or firmware program collocation image acquisition function by the processor of electronic installation again and realize bearing calibration according to digital picture color distortion of the present invention.At this, electronic installation can be the computer (Computer) of tool image acquisition function, the mobile phone (Mobile Phone) of tool image acquisition function or personal digital assistant (the Personal Digital Assistant of tool image acquisition function, but not only be confined to above-mentioned electronic installation PDA) etc..
Please refer to shown in the figure, it is the color filter lens array according to one embodiment of the invention.Have an interpolation arithmetic matrix 20 in the color filter lens array 10, interpolation arithmetic matrix 20 is in order to define the position range of the colored pixels of carrying out interpolation calculation.Wherein R, G and B represent respectively redness, green and blue three kinds of colors, and its subscript represents the coordinate of location of pixels, for example at the G of central point colored pixels 30 positions 12Only there is green pixel originally in expression.
Please refer to shown in Figure 2ly, it is the flow chart according to the color rendition method of the image of one embodiment of the invention.Please cooperate with reference to figure 1, flow process of the present invention may further comprise the steps:
S100, setting 3*5 interpolation arithmetic matrix are in order to define the position range of the colored pixels of carrying out interpolation calculation;
S110, from colored pixels, select the viridescent object pixel G of tool 12, the colored pixels that all the other are red with blue is defined as comparison pixels (B 11, B 13, R 02With R 22);
S120, execution the first interpolation procedure are calculated comparison pixels B 11Horizontal changing value Δ HB 11, vertical change value Δ VB 11With difference value Δ B 11
S130, utilize threshold values Δ T to the comparison pixel B 11Horizontal changing value Δ HB 11, vertical change value Δ VB 11With difference value Δ B 11Compare;
S140, as difference value Δ B 11During less than threshold values Δ T, comparison pixels B then 11Change color trend be level and smooth trend, and select the horizontal direction of comparison pixels and the ambient color pixel (G of vertical direction 10, G 12, G 01With G 21), utilize respectively ambient color pixel (G 10, G 12, G 01With G 21) to the comparison pixel B 11Carry out the interpolation calculation of different color, so that comparison pixels B 11To object pixel G 12Has green color value G 11, G wherein 11=(G 10+ G 12+ G 01+ G 21)/4;
S150, repeat the step of above-mentioned S130 to S140, in order to calculate all the other comparison pixels (B 13, R 02With R 22) to object pixel G 12The green color value (G of correspondence 13, G 02With G 22); And
S160, execution the second interpolation procedure are utilized respectively comparison pixels (B 11, B 13, R 02With R 22) affiliated green color value (G 11, G 13, G 02With G 22) to object pixel G 12Carry out the interpolation calculation of different color, so that object pixel G 12Has color of object value (R 12With B 12).
Wherein, the color of above-mentioned colored pixels serve as reasons green, red and group that blueness forms.
In addition, set 3*5 interpolation arithmetic matrix at this and process, then can not needing to improve under the hardware cost, also can reach the effect of the color rendition of image.
In addition, electronic installation is predeterminable threshold values, with in carrying out the interpolation calculation process, as a comparison in the program with the relatively use of horizontal changing value, vertical change value and difference value.
At this, please refer to shown in Figure 3ly, it is the calculation flow chart of horizontal changing value, vertical change value and difference value according to one embodiment of the invention.Please cooperate with reference to figure 1, at first, with comparison pixels (B 11, B 13, R 02With R 22) in B 11Describe.For step S120, can comprise following implementation step:
S122, calculating comparison pixels B 11Ambient color pixel (R 00With G 01) the horizontal changing value Δ HB of horizontal direction 11, Δ HB wherein 11=| R 00-G 01|;
S124, calculating comparison pixels B 11Ambient color pixel (R 00With G 10) the vertical change value Δ VB of vertical direction 11, Δ VB wherein 11=| R 00-G 10|; And
S126, calculated level changing value Δ HB 11With vertical change value Δ VB 11Between difference value Δ B 11, Δ B wherein 11=| Δ HB 11-Δ VB 11|.
In addition, above-mentioned with B 11Describe, at B 13, R 02With R 22Can distinguish repeated execution of steps S122, S124 and S126 in the hope of affiliated horizontal changing value (Δ HB 13, Δ HR 02With Δ HR 22), vertical change value (Δ VB 13, Δ VR 02With Δ VR 22) and difference value (Δ B 13, Δ R 02With Δ R 22).
At this, please refer to shown in Figure 4ly, it is the flow chart according to the horizontal trend of one embodiment of the invention.Please cooperate with reference to figure 1, for after the step S130 with step S150 before, can comprise following implementation step:
S142, as difference value Δ B 11Greater than threshold values Δ T, and horizontal changing value Δ HB 11Less than vertical change value Δ VB 11The time, comparison pixels B then 11Change color trend be horizontal trend, and select comparison pixels B 11The ambient color pixel (G of horizontal direction 10With G 12), utilize respectively ambient color pixel (G 10With G 12) to the comparison pixel B 11Carry out the interpolation calculation of different color, so that comparison pixels B 11To object pixel G 12Has green color value G 11, G wherein 11=(G 10+ G 12)/2; And
S144, repeat the step of above-mentioned S142, in order to calculate all the other comparison pixels (B 13, R 02With R 22) to object pixel G 12The green color value (G of correspondence 13, G 02With G 22).
In addition, please refer to shown in Figure 5ly, it is the flow chart according to the vertical trend of one embodiment of the invention.Please cooperate with reference to figure 1, for after the step S130 with step S150 before, can comprise following implementation step:
S146, as difference value Δ B 11Greater than threshold values Δ T, and horizontal changing value Δ HB 11Greater than vertical change value Δ VB 11The time, comparison pixels B then 11Change color trend be vertical trend, and select comparison pixels B 11The ambient color pixel (G of vertical direction 01With G 21), utilize respectively ambient color pixel (G 01With G 21) to the comparison pixel B 11Carry out the interpolation calculation of different color, so that comparison pixels B 11To object pixel G 12Has green color value G 11, G wherein 11=(G 01+ G 21)/2; And
S148, repeat the step of above-mentioned S146, in order to calculate all the other comparison pixels (B 13, R 02With R 22) to object pixel G 12The green color value (G of correspondence 13, G 02With G 22).
Wherein, above-mentioned horizontal changing value can be in the horizontal direction of ambient color pixel, the brightness of adjacent different colored pixels and the difference value of colourity.The vertical change value can be in the vertical direction of ambient color pixel, the brightness of adjacent different colored pixels and the difference value of colourity.
At this, above-described embodiment carries out color interpolation for when the central point of color filter lens array is green pixel with red pixel on every side and the change color trend of blue pixel.Yet by another viewpoint, (be red pixel and blue pixel) when the central point of color filter lens array is non-green pixel, the change color trend of the different color around also can central point is carried out color interpolation.
Please refer to shown in Figure 6ly, it is the color filter lens array according to another embodiment of the present invention.Have an interpolation arithmetic matrix 50 in the color filter lens array 40, interpolation arithmetic matrix 50 is in order to define the position range of the colored pixels of carrying out interpolation calculation.Wherein R, G and B represent respectively redness, green and blue three kinds of colors, and its subscript represents the coordinate of location of pixels, for example at the R of central point colored pixels 60 positions 12Only there is red pixel originally in expression.
Please refer to shown in Figure 7ly, it is the flow chart according to the color rendition method of the image of another embodiment of the present invention.Please cooperate with reference to figure 6, flow process of the present invention may further comprise the steps:
S200, setting 3*5 interpolation arithmetic matrix are in order to define the position range of the colored pixels of carrying out interpolation calculation;
S210, from colored pixels, select and have red object pixel R 12, the colored pixels that all the other are blue is defined as comparison pixels (B 01, B 03, B 21With B 23);
S220, execution the first interpolation procedure are calculated object pixel R 12Horizontal changing value Δ HR 12, vertical change value Δ VR 12With difference value Δ R 12
S230 also utilizes threshold values Δ T to object pixel R 12Horizontal changing value Δ HR 12, vertical change value Δ VR 12With difference value Δ R 12Compare;
S240, as difference value Δ R 12During less than threshold values Δ T, object pixel R then 12Change color trend be level and smooth trend, and the ambient color pixel (G of the horizontal direction of select target pixel and vertical direction 11, G 13, G 02With G 22), utilize respectively ambient color pixel (G 11, G 13, G 02With G 22) to object pixel R 12Carry out the interpolation calculation of different color, so that object pixel R 12Has green color value G 12, G wherein 12=(G 11+ G 13+ G 02+ G 22)/4;
S250, carry out the first interpolation procedure again, calculate comparison pixels B 01Horizontal changing value Δ HB 01, vertical change value Δ VB 01With difference value Δ B 01
S260 also utilizes threshold values Δ T to the comparison pixel B 01Horizontal changing value Δ HB 01, vertical change value Δ VB 01With difference value Δ B 01Compare;
S270, as difference value Δ B 01During less than threshold values Δ T, comparison pixels B then 01Change color trend be level and smooth trend, and select the horizontal direction of comparison pixels and the ambient color pixel (G of vertical direction 00, G 02, G -11With G 11), utilize respectively ambient color pixel (G 00, G 02, G -11With G 11) to the comparison pixel B 01Carry out the interpolation calculation of different color, so that comparison pixels B 01To object pixel R 12Has green color value G 01, G wherein 01=(G 00+ G 02+ G -11+ G 11)/4;
S280, repeat the step of above-mentioned S260 to S270, in order to calculate all the other comparison pixels (B 03, B 21With B 23) to object pixel R 12The green color value (G of correspondence 03, G 21With G 23); And
S290, execution the second interpolation procedure are utilized respectively comparison pixels (B 01, B 03, B 21With B 23) affiliated green color value (G 01, G 03, G 21With G 23) to object pixel R 12Carry out the interpolation calculation of different color, so that object pixel R 12Has color of object value B 12
Wherein, the color of above-mentioned colored pixels can serve as reasons green, red and group that blueness forms.
In addition, set 3*5 interpolation arithmetic matrix at this and process, then can not needing to improve under the hardware cost, also can reach the effect of the color rendition of image.
In addition, electronic installation is predeterminable threshold values, with in carrying out the interpolation calculation process, as a comparison in the program with the relatively use of horizontal changing value, vertical change value and difference value.
At this, please refer to shown in Figure 8ly, it is the calculation flow chart of horizontal changing value, vertical change value and difference value according to another embodiment of the present invention.Please cooperate with reference to figure 6, at first, with object pixel R 12Describe.For step S220, can comprise following implementation step:
S222, calculating object pixel R 12Ambient color pixel (B 01With G 02) the horizontal changing value Δ HR of horizontal direction 12, Δ HR wherein 12=| B 01-G 02|;
S224, calculating object pixel R 12Ambient color pixel (B 01With G 11) the vertical change value Δ VR of vertical direction 12, Δ VR wherein 12=| B 01-G 11|; And
S226, calculated level changing value Δ HR 12With vertical change value Δ VR 12Between difference value Δ R 12, Δ R wherein 12=| Δ HR 12-Δ VR 12|.
In addition, please refer to shown in Figure 9ly, it is another calculation flow chart of horizontal changing value, vertical change value and difference value according to another embodiment of the present invention.Please cooperate with reference to figure 6, at first, with comparison pixels (B 01, B 03, B 21With B 23) in B 01Describe.For step S250, can comprise following implementation step:
S252, calculating comparison pixels B 01Ambient color pixel (G 00With G 02) the horizontal changing value Δ HB of horizontal direction 01, Δ HB wherein 01=| G 00-G 02|;
S254, calculating comparison pixels B 01Ambient color pixel (G -11With G 11) the vertical change value Δ VB of vertical direction 01, Δ VR wherein 01=| G -11-G 11|; And
S256, calculated level changing value Δ HB 01With vertical change value Δ VB 01Between difference value Δ B 01, Δ B wherein 01=| Δ HB 01-Δ VB 01|.
In addition, above-mentioned with B 01Describe, at B 03, B 21With B 23Can distinguish repeated execution of steps S252, S254 and S256 in the hope of affiliated horizontal changing value (Δ HB 03, Δ HB 21With Δ HB 23), vertical change value (Δ VB 03, Δ VB 21With Δ VB 23) and difference value (Δ B 03, Δ B 21With Δ B 23).
At this, please refer to shown in Figure 10ly, it is the flow chart according to the horizontal trend of another embodiment of the present invention.Please cooperate with reference to figure 6, for after the step S230 with step S250 before, can comprise following implementation step:
S242, as difference value Δ R 12Greater than threshold values Δ T, and horizontal changing value Δ HR 12Less than vertical change value Δ VR 12The time, object pixel R then 12Change color trend be horizontal trend, and select target pixel R 12The ambient color pixel (G of horizontal direction 11With G 13), utilize respectively ambient color pixel (G 11With G 13) to object pixel R 12Carry out the interpolation calculation of different color, so that object pixel R 12Has green color value G 12, G wherein 12=(G 11+ G 13)/2.
In addition, please refer to shown in Figure 11ly, it is the flow chart according to the vertical trend of another embodiment of the present invention.Please cooperate with reference to figure 6, for after the step S230 with step S250 before, can comprise following implementation step:
S244, as difference value Δ R 12Greater than threshold values Δ T, and horizontal changing value Δ HR 12Greater than vertical change value Δ VR 12The time, object pixel R then 12Change color trend be vertical trend, and select target pixel R 12The ambient color pixel (G of vertical direction 02With G 22), utilize respectively ambient color pixel (G 02With G 22) to object pixel R 12Carry out the interpolation calculation of different color, so that object pixel R 12Has green color value G 12, G wherein 12=(G 02+ G 22)/2.
In addition, please refer to shown in Figure 12ly, it is another flow chart according to the horizontal trend of another embodiment of the present invention.Please cooperate with reference to figure 6, for after the step S260 with step S280 before, can comprise following implementation step:
S272, as difference value Δ B 01Greater than threshold values Δ T, and horizontal changing value Δ HB 01Less than vertical change value Δ VB 01The time, comparison pixels B then 01Change color trend be horizontal trend, and select comparison pixels B 01The ambient color pixel (G of horizontal direction 00With G 02), utilize respectively ambient color pixel (G 00With G 02) to the comparison pixel B 01Carry out the interpolation calculation of different color, so that comparison pixels B 01To object pixel R 12Has green color value G 01, G wherein 01=(G 00+ G 02)/2; And
S274, repeat the step of above-mentioned S272, in order to calculate all the other comparison pixels (B 03, B 21With B 23) to object pixel R 12The green color value (G of correspondence 03, G 21With G 23).
In addition, please refer to shown in Figure 13ly, it is another flow chart according to the vertical trend of another embodiment of the present invention.Please cooperate with reference to figure 6, for after the step S260 with step S280 before, can comprise following implementation step:
S276, as difference value Δ B 01Greater than threshold values Δ T, and horizontal changing value Δ HB 01Greater than vertical change value Δ VB 01The time, comparison pixels B then 01Change color trend be vertical trend, and select comparison pixels B 01The ambient color pixel (G of vertical direction -11With G 11), utilize respectively ambient color pixel (G -11With G 11) to the comparison pixel B 01Carry out the interpolation calculation of different color, so that comparison pixels B 01To object pixel R 12Has green color value G 01, G wherein 01=(G -11+ G 11)/2; And
S278, repeat the step of above-mentioned S276, in order to calculate all the other comparison pixels (B 03, B 21With B 23) to object pixel R 12The green color value (G of correspondence 03, G 21With G 23).
Wherein, above-mentioned horizontal changing value can be in the horizontal direction of ambient color pixel, the brightness of adjacent different colored pixels and the difference value of colourity.The vertical change value can be in the vertical direction of ambient color pixel, the brightness of adjacent different colored pixels and the difference value of colourity.
In addition, electronic installation is predeterminable threshold values, with in carrying out the interpolation calculation process, as a comparison in the program with the relatively use of horizontal changing value, vertical change value and difference value.
At this, above-mentioned another embodiment carries out color interpolation for when the central point of color filter lens array is red pixel with blue pixel on every side and the change color trend of green pixel.Yet by another viewpoint, when the central point of color filter lens array is blue pixel, also can carry out color interpolation according to the flow process of another embodiment of the present invention, seldom tire out at this and state.
According to the color rendition method of image provided by the present invention, cooperate aforesaid preferred embodiment, be applied to each pixel in the color filter battle array of digital photographic device, utilize interpolation calculation to produce in its different color value process to each pixel.Do not needing to increase in the situation of hardware cost and time cost, can calculate by software the different color value of different colours pixel in the digital picture.And then reduce in method of color interpolation, only use the solid color pixel to carry out interpolation arithmetic and produce incorrect color value.
Certainly; the present invention also can have other various embodiments; in the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make according to the present invention various corresponding changes and distortion, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.

Claims (2)

1. the color rendition method of an image is applied to reappear in the interpolation processing process of color filter lens array the color of an image, it is characterized in that this color rendition method comprises:
Determine an interpolation arithmetic matrix, it carries out the interpolation calculation to a plurality of colored pixels of this image institute's tool in the default position range of this image one, the color of those colored pixels include one first color, one second color, with one the 3rd color;
From those colored pixels, select the object pixel with this first color, and be a plurality of comparison pixels with all the other definitions of color except this first color in those colored pixels;
Carry out one first interpolation procedure, calculate respectively the brightness of this comparison pixels respectively and colourity a horizontal changing value, a vertical change value, with a difference value;
Set a threshold values, and utilize this threshold values to this horizontal changing value, this vertical change value of this comparison pixels respectively, compare with this difference value, when this difference value during less than this threshold values, then the change color trend of this comparison pixels is a level and smooth trend, and select the horizontal direction of this comparison pixels and a plurality of ambient color pixels of vertical direction, utilize respectively those ambient color pixels that corresponding this comparison pixels is carried out the interpolation calculation of different color, so that respectively this comparison pixels all has a different color value to this object pixel; And
Carry out one second interpolation procedure, utilize this different color value that this comparison pixels respectively has respectively that this object pixel is carried out the interpolation calculation of different color, calculating a color of object value of this object pixel,
Wherein, the variable quantity of those ambient color pixels of the horizontal direction that this horizontal changing value is respectively this comparison pixels, the variable quantity of those ambient color pixels of the vertical direction that this vertical change value is respectively this comparison pixels, this difference value are this horizontal changing value of respectively this comparison pixels and the difference between this vertical change value; And
This threshold values is in order to as the foundation of judging: when this difference value greater than this threshold values, and this horizontal changing value is during less than this vertical change value, then the change color trend of this comparison pixels is a horizontal trend, and select those ambient color pixels of the horizontal direction of this comparison pixels, utilize respectively those ambient color pixels that corresponding this comparison pixels is carried out the interpolation calculation of different color, so that respectively this comparison pixels all has this different color value to this object pixel; And work as this difference value greater than this threshold values, and this horizontal changing value is during greater than this vertical change value, then the change color trend of this comparison pixels is a vertical trend, and select those ambient color pixels of the vertical direction of this comparison pixels, utilize respectively those ambient color pixels that corresponding this comparison pixels is carried out the interpolation calculation of different color, so that respectively this comparison pixels all has this different color value to this object pixel.
2. the color rendition method of image according to claim 1 is characterized in that, the color of those colored pixels, the green of serving as reasons, the red and blue group that forms.
CN 200910118111 2009-03-02 2009-03-02 A color rendition method of image Expired - Fee Related CN101827273B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910118111 CN101827273B (en) 2009-03-02 2009-03-02 A color rendition method of image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910118111 CN101827273B (en) 2009-03-02 2009-03-02 A color rendition method of image

Publications (2)

Publication Number Publication Date
CN101827273A CN101827273A (en) 2010-09-08
CN101827273B true CN101827273B (en) 2013-03-20

Family

ID=42690936

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910118111 Expired - Fee Related CN101827273B (en) 2009-03-02 2009-03-02 A color rendition method of image

Country Status (1)

Country Link
CN (1) CN101827273B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103313066B (en) * 2013-05-08 2015-07-08 华为技术有限公司 Interpolation method and device
CN103559849B (en) 2013-11-15 2016-08-17 北京京东方光电科技有限公司 The display packing of display floater
CN103544901B (en) * 2013-11-15 2016-04-13 北京京东方光电科技有限公司 Display panel and display packing, display device
CN108701353B (en) * 2018-04-13 2021-12-10 深圳市锐明技术股份有限公司 Method and device for inhibiting false color of image
CN110858894B (en) * 2018-08-23 2021-11-26 瑞昱半导体股份有限公司 Color reconstruction device and method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1678078A (en) * 2004-03-31 2005-10-05 三星电子株式会社 Image interpolation method
CN1700775A (en) * 2004-05-17 2005-11-23 华晶科技股份有限公司 Method and apparatus for determining edge trend of an interested pixel
CN1913576A (en) * 2005-08-10 2007-02-14 展讯通信(上海)有限公司 Color filter lens array interpolation method
CN1964500A (en) * 2006-12-12 2007-05-16 北京中星微电子有限公司 An interpolation method and device for color filter array
CN1988591A (en) * 2005-12-21 2007-06-27 比亚迪股份有限公司 Color interpolation method for realizing abnormal point numerical value correction

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1678078A (en) * 2004-03-31 2005-10-05 三星电子株式会社 Image interpolation method
CN1700775A (en) * 2004-05-17 2005-11-23 华晶科技股份有限公司 Method and apparatus for determining edge trend of an interested pixel
CN1913576A (en) * 2005-08-10 2007-02-14 展讯通信(上海)有限公司 Color filter lens array interpolation method
CN1988591A (en) * 2005-12-21 2007-06-27 比亚迪股份有限公司 Color interpolation method for realizing abnormal point numerical value correction
CN1964500A (en) * 2006-12-12 2007-05-16 北京中星微电子有限公司 An interpolation method and device for color filter array

Also Published As

Publication number Publication date
CN101827273A (en) 2010-09-08

Similar Documents

Publication Publication Date Title
KR100782812B1 (en) Method and apparatus for edge adaptive color interpolation
JP5642653B2 (en) Adaptive color interpolation
KR101444013B1 (en) Systems and methods for image processing
CN101827273B (en) A color rendition method of image
US10356315B2 (en) Image processing method and apparatus, and electronic device
CN102055988B (en) Image processing apparatus and control method therefor
KR100992362B1 (en) Color interpolation apparatus
KR100818447B1 (en) Method of interpolating color detected using color filter
KR20060043650A (en) High-quality gradient-corrected linear interpolation for demosaicing of color images
US8379977B2 (en) Method for removing color fringe in digital image
US20060262196A1 (en) Image processor
US8385642B2 (en) Method for removing color fringe in digital image
KR20060133773A (en) Method and apparatus for reducing color artifact and noise cosidering color channel correlation
KR20070103229A (en) Method and apparatus for color interpolation
WO2013022113A1 (en) Image processing apparatus and control method therefor
CN101399996A (en) Color filter lens array interpolation method
JP2005056374A (en) Apparatus for and method of edge enhancement in image processing
US20100302416A1 (en) Image processing apparatus, imaging apparatus, and image processing method
KR101650842B1 (en) Image processing apparatus, image processing method and recording medium storing program to execute the method
CN103841388A (en) Mosaic removing method and device
CN101815220B (en) Method for correcting image color distortion
CN103259960B (en) The interpolation method of data and device, image output method and device
US11501412B2 (en) Image processing apparatus, imaging apparatus, image processing method, and image processing program
JP5740888B2 (en) Image processing apparatus, electronic camera, and program
TWI441523B (en) Image color reproduction 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
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130320

Termination date: 20150302

EXPY Termination of patent right or utility model