CN103259960A - Data interpolation method and device and image output method and device - Google Patents

Data interpolation method and device and image output method and device Download PDF

Info

Publication number
CN103259960A
CN103259960A CN2013101403081A CN201310140308A CN103259960A CN 103259960 A CN103259960 A CN 103259960A CN 2013101403081 A CN2013101403081 A CN 2013101403081A CN 201310140308 A CN201310140308 A CN 201310140308A CN 103259960 A CN103259960 A CN 103259960A
Authority
CN
China
Prior art keywords
difference
pixel
pixels
interpolation
chromatic component
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
CN2013101403081A
Other languages
Chinese (zh)
Other versions
CN103259960B (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.)
Chongqing Jinshan Science and Technology Group Co Ltd
Chongqing Jinshan Science and Technology Co Ltd
Original Assignee
Chongqing Jinshan Science and Technology Group 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 Chongqing Jinshan Science and Technology Group Co Ltd filed Critical Chongqing Jinshan Science and Technology Group Co Ltd
Priority to CN201310140308.1A priority Critical patent/CN103259960B/en
Publication of CN103259960A publication Critical patent/CN103259960A/en
Application granted granted Critical
Publication of CN103259960B publication Critical patent/CN103259960B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a data interpolation method and device and an image output method and device. Pixels containing first type chrominance components in eight neighbor pixels of pixels needing interpolation are divided into the diagonal direction and the vertical direction, a first differential value and a second differential value of the first type chrominance components in the diagonal direction are computed, and a third differential value of the first type chrominance components in the vertical direction is computed respectively, first pixels corresponding to the smallest value of the three values are selected, and the average value of the first pixels are used as the first type chrominance components of the defaults of the pixels needing the interpolation. According to the data interpolation method and device, gradients of the first type chrominance components of the pixels needing the interpolation in each direction are considered, the average value of the first pixels are used as the first type chrominance components of the defaults of the pixels needing the interpolation, wherein the gradient values of the first pixels are the smallest, therefore, edges of images obtained after the interpolation are clearer, the phenomenon that the images become bright or dark can not happen, and consequently image quality is better.

Description

The interpolation method of data and device, image output method and device
The technology neighborhood
The present invention relates to the Digital Image Processing neighborhood, relate in particular to a kind of data interpolating method and device, image output method and device.
Background technology
Charge coupled device (Charge-Coupled Device, CCD) be widely used in digital camera and the Digital Video, the ccd image sensor of being made up of CCD comprises light-sensitive element and the color filter array that is arranged on the light-sensitive element, light-sensitive element only can detect the brightness that catches image, therefore colourity that can not detected image be arranged on color filter array on the light-sensitive element to obtain the color of image.The light-sensitive element of ccd image sensor and the arrayed of colour filter as mosaic, pixel one by one in the corresponding digital picture, digital camera activates CCD by shutter, light signal is converted to the signal of telecommunication, pass through analog-to-digital conversion, the signal of telecommunication is converted into digital signal, is kept in the memory according to array order each value with digital signal, each pixel value in the memory is original digital picture.
At present colour filter mainly contains two kinds of RGB primary color filter sheet and CMYG complementary color colour filters, and the CMYG colour filter can detect the color that catches image more accurately than RGB colour filter, and therefore, the CMYG color filter array has widely to be used.When pixel being exported demonstration, at each pixel two chromatic values should be arranged, but when using the CMYG colour filter, be a chromatic value in each pixel, therefore need carry out interpolation processing to pixel, so that each pixel all contains two chromatic values.
Interpolation method commonly used is the bilinearity Orthogonal Method, at the pixel of default chromatic value, obtain default chromatic value in these pixel eight neighborhood territory pixels, and get the mean value of each chromatic value, with this mean value as the default chromatic value of this pixel.
But only be the pixel itself from default chromatic value in the prior art, the method of averaging because of employing, the pixel of default colourity and the aberration gradient of surrounding pixel chromatic value have been ignored, the aberration gradient represents the marginal information of this pixel, when therefore using the method for averaging to calculate chromatic value, the soft edge that obtains after the processing, unclear, accompanying image the problem that color becomes bright or deepening can occur in the time of fuzzy, therefore uses the picture quality after above method is handled not good.
Summary of the invention
The invention provides a kind of data interpolating method and device, image output method and device, the present invention can solve image after the processing and color occur and become bright or deepening, and the not good problem of picture quality such as edge blurry is unclear.
In order to address the above problem, the present invention adopts following technological means:
A kind of data interpolating method comprises:
When the interpolation pixel satisfies when pre-conditioned, determine the first kind chromatic component that described interpolation pixel is default;
Obtain in eight neighborhood territory pixels of described interpolation pixel first difference of the described first kind chromatic component of two pixels on first diagonal;
Obtain in eight neighborhood territory pixels of described interpolation pixel second difference of the described first kind chromatic component of two pixels on second diagonal;
Obtain in the neighbours territory pixel of described interpolation pixel the 3rd difference of the described first kind chromatic component of two pixels up and down;
Obtain described first difference, described second difference first pixel corresponding with minimum value in described the 3rd difference;
With the mean value of described first pixel as the default first kind chromatic component of described interpolation pixel.
Preferably, describedly obtain described first difference, described second difference first pixel corresponding with minimum value in described the 3rd difference comprises:
If contain a minimum value in described first difference, described second difference and described the 3rd difference, then obtain with corresponding two pixels of described minimum value as described first pixel;
If contain two minimum values in described first difference, described second difference and described the 3rd difference, then obtain with corresponding four pixels of described two minimum values as described first pixel;
If described first difference, described second difference are big or small consistent with described the 3rd difference, then obtain with corresponding six pixels of described first difference, described second difference and described the 3rd difference as described first pixel.
Preferably, described pre-conditioned comprising:
Empty condition; Or
Described interpolation pixel is non-edge pixel.
A kind of data interpolation device comprises:
Determining unit is used for satisfying when pre-conditioned when the interpolation pixel, determines the first kind chromatic component that described interpolation pixel is default;
First acquiring unit is for first difference of the first kind chromatic component of two pixels on eight neighborhood territory pixels, first diagonal that obtains described interpolation pixel;
Second acquisition unit is for second difference of the first kind chromatic component of two pixels on eight neighborhood territory pixels, second diagonal that obtains described interpolation pixel;
The 3rd acquiring unit is for the 3rd difference of the first kind chromatic component of two pixels about the neighbours territory pixel of obtaining described interpolation pixel;
The 4th acquiring unit is used for obtaining described first difference, described second difference first pixel corresponding with described the 3rd difference minimum value;
Computing unit is used for mean value with described first pixel as the default first kind chromatic component of described interpolation pixel.
Preferably, described the 4th acquiring unit comprises:
First performance element is used for then obtaining with corresponding two pixels of described minimum value as described first pixel if described first difference, described second difference and described the 3rd difference contain a minimum value;
Second performance element is used for then obtaining with corresponding four pixels of described two minimum values as described first pixel if described first difference, described second difference and described the 3rd difference contain two minimum values;
The 3rd performance element is used for then obtaining with corresponding six pixels of described first difference, described second difference and described the 3rd difference as described first pixel if described first difference, described second difference are big or small consistent with described the 3rd difference.
A kind of image output method comprises:
When the interpolation pixel satisfies when pre-conditioned, determine the first kind chromatic component that described interpolation pixel is default;
Obtain in eight neighborhood territory pixels of described interpolation pixel first difference of the first kind chromatic component of two pixels on first diagonal;
Obtain in eight neighborhood territory pixels of described interpolation pixel second difference of the first kind chromatic component of two pixels on second diagonal;
Obtain in the neighbours territory pixel of described interpolation pixel the 3rd difference of the first kind chromatic component of two pixels up and down;
Obtain described first difference, described second difference first pixel corresponding with minimum value in described the 3rd difference;
With the mean value of described first pixel as the default first kind chromatic component of described interpolation pixel;
Travel through each interpolation pixel as stated above, and obtain each pixel after the interpolation;
With the data of described each pixel transitions for default form;
The data of described default form are exported.
Preferably, the data of described default form comprise:
Yuv format data or rgb format data.
Preferably, described pre-conditioned comprising:
Empty condition; Or
Described interpolation pixel is non-edge pixel.
Preferably, when adopting the neighbor method during for edge pixel, described interpolation pixel carries out interpolation.
A kind of image output device comprises:
Interpolating unit, be used for satisfying when pre-conditioned when the interpolation pixel, determine the first kind chromatic component that described interpolation pixel is default, obtain in eight neighborhood territory pixels of described interpolation pixel first difference of the first kind chromatic component of two pixels on first diagonal, obtain in eight neighborhood territory pixels of described interpolation pixel second difference of the first kind chromatic component of two pixels on second diagonal, obtain in the neighbours territory pixel of described interpolation pixel the 3rd difference of the first kind chromatic component of two pixels up and down, obtain described first difference, first pixel that described second difference is corresponding with minimum value in described the 3rd difference, with the mean value of described first pixel as the default first kind chromatic component of described interpolation pixel, travel through each interpolation pixel as stated above, and obtain each pixel after the interpolation;
Converting unit is used for the data of described each pixel transitions for default form;
Output unit is used for the data of described default form are exported.
The present invention is directed to the default first kind chromatic component of interpolation pixel, obtain first difference of the first kind chromatic component on first diagonal in interpolation pixel eight neighborhood territory pixels respectively, second difference of the first kind chromatic component on second diagonal, the 3rd difference of first kind chromatic component in two pixels up and down in the pixel of interpolation pixel neighbours territory, and obtain first difference, second difference, first pixel corresponding with minimum value in the 3rd difference, with the mean value of first pixel as the default first kind chromatic component of interpolation pixel.
The present invention is divided into diagonal and vertical direction with the pixel that contains first kind chromatic component in eight neighborhood territory pixels of interpolation pixel, calculate first difference of the first kind chromatic component on the diagonal and second difference of first kind chromatic component respectively, with first kind chromatic component the 3rd difference (eight neighborhood vertical direction are neighbours territory above-below direction in the present invention) on the vertical direction, choose corresponding first pixel of minimum value in three differences, and with the mean value of first pixel as the default first kind chromatic component of interpolation pixel.
Not only considered the gradient (i.e. first difference, second difference and the 3rd difference) of first kind chromatic component on all directions of interpolation pixel among the present invention, also choose the mean value of first pixel of Grad minimum as the default first kind chromatic component of interpolation pixel, therefore make and carry out the clearer of the edge of image that obtains after the interpolation, and the situation that image becomes bright or deepening can not occur, and then make that the quality of image is more excellent.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for this neighborhood those of ordinary skill, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the structural representation of image processing system in the prior art;
Fig. 2 is the schematic diagram of the inner implementation of data outputting module in the prior art;
Fig. 3 is through parity field data output schematic diagram behind brightness calculation unit and the colourity computing unit in the prior art;
Fig. 4 is parity field data output coordinate schematic diagram in the prior art;
Fig. 5 is the flow chart of the disclosed data interpolating method of the embodiment of the invention;
Fig. 6 is the disclosed another parity field data output coordinate schematic diagram of the embodiment of the invention;
Fig. 7 is the structural representation of the disclosed data interpolation device of the embodiment of the invention;
Fig. 8 is the structural representation of the 4th acquiring unit in the disclosed data interpolation device of the embodiment of the invention;
Fig. 9 is the flow chart of the disclosed image output method of the embodiment of the invention;
Figure 10 is the structural representation of the disclosed image output device of the embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, this neighborhood those of ordinary skill all belongs to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
Be described in detail in the application scenarios that the present invention is answered below:
As shown in Figure 1, the structural representation for image processing system comprises: data outputting module 100, and analog-to-digital conversion module 200, processing module 300, wherein processing module 300 comprises brightness calculation unit 301, colourity computing unit 302, interpolating unit 303.
As shown in Figure 2, schematic diagram for data outputting module inside implementation, after ccd image sensor is gathered image chroma, the signal that obtains the CMYG color filter array comprises: the G green, Cy is dark green, the Ye yellow, the Mg pink has (G+Cy), (Mg+Ye), (Mg+Cy) and (G+Ye) through the signal of exporting behind the horizontal shifting register in the ccd image sensor.Wherein first odd-numbered line is got and obtained to the row of two shown in the A1 among Fig. 2, two line displays shown in the A2 get and after obtain second odd-numbered line, first even number line is got and obtained to shown in the B1 two row, two line displays shown in the B2 get and after obtain second even number line, by that analogy, obtain each odd-numbered line and each even number line, all odd-numbered line pixels are formed strange, all even number line pixels are formed the idol field, and the output of odd-numbered line pixel and even number line pixel is the raw image data output of ccd image sensor.
The view data of data outputting module 100 outputs obtains accessible digital signal through behind the analog-to-digital conversion module 200, digital signal is input in the processing module 300 handles.
In processing module 300: brightness calculation unit 301 calculates the brightness signal Y of each pixel according to formula Y=((Cy+G)+(Ye+Mg))/2, and colourity computing unit 302 calculates the carrier chrominance signal of each pixel respectively according to R-Y=((Ye+Mg)-(Cy+G)) with (B-Y)=((Cy+Mg)-(G+Ye)).
Concrete computational process is: second element (Ye+Mg) adjacent with this row as first element (Cy+G) of first odd-numbered line among Fig. 2, obtain (R-Y) component of first pixel according to R-Y=((Ye+Mg)-(Cy+G)), equally, for (R-Y) component of second pixel of this row also by this point with it adjacent next element value adopt identical account form to obtain, obtain (R-Y) component of this each pixel of row successively; And for second odd-numbered line, adopt the processing mode identical with first odd-numbered line according to (B-Y)=((Cy+Mg)-(G+Ye)), obtain (B-Y) value of each pixel.The dual field data are also adopted and are obtained carrier chrominance signal in a like fashion.
After the processing by described brightness calculation unit 301 and colourity computing unit 302, data processed result as shown in Figure 3, strange first row all lacks the B-Y component among Fig. 3, and strange second row all lacks the R-Y component, and be same, idol first row all lacks the B-Y component, second row lacks the R-Y component, for convenience, and as shown in Figure 4, to strange field and even occasion also, and adopt the form of coordinate to represent each pixel.
For the chromatic value that lacks in each pixel, therefore the chromatic value that must adopt interpolation method to obtain to lack in the data input interpolating unit 303 with each pixel among Fig. 4, obtains the chromatic value that lacks in each pixel.
As shown in Figure 5, the invention provides a kind of interpolation method, comprising:
Step S101: when the interpolation pixel satisfies when pre-conditioned, determine the first kind chromatic component that described interpolation pixel is default;
For clear description implementation of the present invention, the present invention carries out detailed presentations with specific embodiment.As shown in Figure 6, in the present embodiment the interpolation pixel be (x y), contains the B-Y component in this pixel, default colourity is R-Y, thus the interpolation pixel (x, y) default first kind chromatic component is R-Y.Be understandable that, and if the interpolation pixel (x contains the R-Y component in y), default colourity B-Y component, and then (x, y) default first kind chromatic component is B-Y to the interpolation pixel.
Step S102: obtain in eight neighborhood territory pixels of described interpolation pixel first difference of the described first kind chromatic component of two pixels on first diagonal;
The interpolation pixel (x, eight neighborhood territory pixels y) be respectively (x-1, y+1), (x, y+1), (x+1, y+1), (x-1, y), (x+1, y), (x-1, y-1), (x, y-1), (x+1, y-1).As shown in Figure 6, pixel (x-1, y), (x+1 does not contain pixel R-Y component in y), therefore not considered pixel (x-1, y), (x+1, y).
Two diagonal are arranged in eight neighborhood territory pixels, and first diagonal is that (x-1 is y+1) with (second diagonal is that (x+1 is y+1) with (x-1, y-1) two pixels for x+1, y-1) two pixels.
Obtain two pixel (x-1 on first diagonal in this step, y+1) and (x+1, y-1) first kind chromatic component R-Y, it is poor the first kind chromatic component R-Y of two pixels to be got again, and with the absolute value of difference first difference as first kind chromatic component.
Step S103: obtain in eight neighborhood territory pixels of described interpolation pixel second difference of the described first kind chromatic component of two pixels on second diagonal;
Obtain two pixel (x+1 on second diagonal in this step, y+1) and (x-1, y-1) first kind chromatic component R-Y, it is poor the first kind chromatic component R-Y of two pixels to be got again, and with the absolute value of difference second difference as first kind chromatic component.
Step S104: obtain in the neighbours territory pixel of described interpolation pixel the 3rd difference of the described first kind chromatic component of two pixels up and down;
Interpolation pixel (x, y) neighbours territory pixel is (x, y+1), (x-1, y), (x+1, y) and (x, y-1), because of (x-1, y) and (x+1, y) do not contain the R-Y component in two pixels, therefore do not consider this two pixels, only consider two the pixel (x up and down in the pixel of neighbours territory, y+1) and (x, y-1), as shown in Figure 6, two pixels up and down in the pixel of neighbours territory, be identical pixel with pixel on the vertical orientation in eight neighborhood territory pixels, so the above-below direction of neighbours territory pixel can be seen as eight neighborhood vertical orientation.
Obtain (x, y+1) and (it is poor the first kind chromatic component R-Y of two pixels to be got again for x, the y-1) first kind chromatic component R-Y in the pixel, and with the absolute value of difference the 3rd difference as first kind chromatic component.
Above-mentioned steps has been obtained interpolation pixel aberration gradient on diagonal and the vertical orientation in eight neighborhoods, and the aberration gradient is above-mentioned first difference that calculates, second difference and the 3rd difference.
Step S105: obtain described first difference, described second difference first pixel corresponding with minimum value in described the 3rd difference;
First difference is only considered minimum value in second difference and the 3rd difference, and three kinds of situations are arranged, first kind of situation: a minimum value is arranged, second kind among the three: two minimum values are arranged among the three, the third: the size of three differences is consistent.The first pixel difference under the different situations, therefore separately treat:
First kind of situation:
If contain a minimum value in described first difference, described second difference and described the 3rd difference, then obtain with corresponding two pixels of described minimum value as described first pixel;
Second kind of situation:
If contain two minimum values in described first difference, described second difference and described the 3rd difference, then obtain with corresponding four pixels of described two minimum values as described first pixel;
The third situation:
If described first difference, described second difference are big or small consistent with described the 3rd difference, then obtain with corresponding six pixels of described first difference, described second difference and described the 3rd difference as described first pixel.
First difference, second difference or the 3rd difference, no matter but be which difference, there are two pixels corresponding with this difference (in step S102-step S103, corresponding description to be arranged, namely calculate first difference, the pixel of second difference and the 3rd difference), therefore when minimum value has one, choose two pixels corresponding with this minimum value as first pixel, when minimum value has two, choose with corresponding four pixels of these two minimum values as first pixel, when minimum value has three, when namely three difference sizes are consistent, then directly choose with three corresponding six pixels of difference as first pixel.
What comprise in first pixel all is first kind chromatic component.
Step S106: with the mean value of described first pixel as the default first kind chromatic component of described interpolation pixel.
First pixel of obtaining among the step S105 is averaged, with average as interpolation pixel (x, y) default first kind chromatic component R-Y.
Among the present invention pre-conditioned for empty condition or described interpolation pixel be non-edge pixel.
Employed method has certain pre-conditioned among the present invention, be because because using eight neighborhood territory pixels of interpolation pixel among the present invention, when if the interpolation pixel is edge pixel, then eight neighborhood territory pixels are incomplete, but do not influence the interpolation pixel and use the present invention, but in order to guarantee the quality of interpolation image afterwards, the non-edge pixel of prior applicability of the present invention (generally all containing eight neighborhood territory pixels in the non-edge pixel).
Among the present invention the pixel that contains first kind chromatic component in eight neighborhood territory pixels of interpolation pixel is divided into diagonal and vertical direction in fact, calculate first difference of the first kind chromatic component on the diagonal and second difference of first kind chromatic component respectively, with first kind chromatic component the 3rd difference (eight neighborhood vertical direction are neighbours territory above-below direction in the present invention) on the vertical direction, choose corresponding first pixel of minimum value in three differences, and with the mean value of first pixel as the default first kind chromatic component of interpolation pixel.
Not only considered the gradient (i.e. first difference, second difference and the 3rd difference) of first kind chromatic component on all directions of interpolation pixel among the present invention, also choose the mean value of first pixel of Grad minimum as the default first kind chromatic component of interpolation pixel, therefore make and carry out the clearer of the edge of image that obtains after the interpolation, and the situation that image becomes bright or deepening can not occur, and then make that the quality of image is more excellent.
As shown in Figure 7, the present invention also provides a kind of data interpolation device, comprising:
Determining unit 101 is used for satisfying when pre-conditioned when the interpolation pixel, determines the first kind chromatic component that described interpolation pixel is default;
First acquiring unit 102 is for first difference of the first kind chromatic component of two pixels on eight neighborhood territory pixels, first diagonal that obtains described interpolation pixel;
Second acquisition unit 103 is for second difference of the first kind chromatic component of two pixels on eight neighborhood territory pixels, second diagonal that obtains described interpolation pixel;
The 3rd acquiring unit 104 is for the 3rd difference of the first kind chromatic component of two pixels about the neighbours territory pixel of obtaining described interpolation pixel;
The 4th acquiring unit 105 is used for obtaining described first difference, described second difference first pixel corresponding with described the 3rd difference minimum value;
Computing unit 106 is used for mean value with described first pixel as the default first kind chromatic component of described interpolation pixel.
Described pre-conditioned comprising:
Empty condition or described interpolation pixel are non-edge pixel.
Further, as shown in Figure 8, described the 4th acquiring unit 105 comprises:
First performance element 1051 is used for then obtaining with corresponding two pixels of described minimum value as described first pixel if described first difference, described second difference and described the 3rd difference contain a minimum value;
Second performance element 1052 is used for then obtaining with corresponding four pixels of described two minimum values as described first pixel if described first difference, described second difference and described the 3rd difference contain two minimum values;
The 3rd performance element 1053 is used for then obtaining with corresponding six pixels of described first difference, described second difference and described the 3rd difference as described first pixel if described first difference, described second difference are big or small consistent with described the 3rd difference.
As shown in Figure 9, the present invention also provides a kind of image output method, comprising:
Step S201: when the interpolation pixel satisfies when pre-conditioned, determine the first kind chromatic component that described interpolation pixel is default;
Step S202: obtain in eight neighborhood territory pixels of described interpolation pixel first difference of the first kind chromatic component of two pixels on first diagonal;
Step S203: obtain in eight neighborhood territory pixels of described interpolation pixel second difference of the first kind chromatic component of two pixels on second diagonal;
Step S204: obtain in the neighbours territory pixel of described interpolation pixel the 3rd difference of the first kind chromatic component of two pixels up and down;
Step S205: obtain described first difference, described second difference first pixel corresponding with minimum value in described the 3rd difference;
Step S206: with the mean value of described first pixel as the default first kind chromatic component of described interpolation pixel;
Step S207: S201-step S206 method travels through each interpolation pixel set by step, and obtains each pixel after the interpolation;
Described by above-mentioned steps S201-step S206, travel through required each interpolation pixel of carrying out interpolation, and obtain the pixel after each interpolation, contain brightness signal Y, R-Y component and B-Y component in each pixel after the interpolation.
Step S208: with the data of described each pixel transitions for default form;
The data of default form include but not limited to the data of following three kinds of forms: yuv format data or rgb format data.
A kind of colour coding method that YUV is adopted by the eurovision system, by the brightness signal Y that obtains among the step S207, R-Y component (being U), B-Y component (being V), Y, R-Y and B-Y are the yuv format data of 4:4:4.
Rgb format is a kind of color standard of industrial quarters, and wherein R represents the Red redness, and G represents the Green green, B represents the Blue blueness, by the brightness signal Y that obtains among the step S207, and the R-Y component, the B-Y component can be converted to the rgb format data through known computing formula, does not repeat them here.
Step S209: the data of described default form are exported.
With the output of the data of described default form, carry out for the external interface of back that image shows and other images are handled.
Among the present invention pre-conditioned for empty condition or described interpolation pixel be non-edge pixel.
Employed method has certain pre-conditioned among the present invention, be because because using eight neighborhood territory pixels of interpolation pixel among the present invention, when if the interpolation pixel is edge pixel, then eight neighborhood territory pixels are incomplete, but do not influence the interpolation pixel and use the present invention, but in order to guarantee the quality of interpolation image afterwards, the non-edge pixel of prior applicability of the present invention (generally all containing eight neighborhood territory pixels in the non-edge pixel), carry out interpolation when described interpolation pixel adopts the neighbor method during for edge pixel, thereby guaranteed the quality of pixel.
Neighbor method: for certain pixel, its carrier chrominance signal that lacks obtains from the carrier chrominance signal of neighbor, as the R-Y signal of the R-Y signal in first row of strange field among Fig. 3 as next line, the pixel of up-downgoing is corresponding mutually, equally, the B-Y signal of strange second row is as the B-Y signal of first row, and even processing method is with strange.
The present invention is carrying out interpolation with each pixel, and each pixel transitions after the interpolation exported for default form, because having adopted novel interpolation method in the interpolation, not only considered gradient (i.e. first difference of first kind chromatic component on all directions of interpolation pixel, second difference and the 3rd difference), also choose the mean value of first pixel of Grad minimum as the default first kind chromatic component of interpolation pixel, therefore make and carry out the clearer of the edge of image that obtains after the interpolation, and the situation that image becomes bright or deepening can not occur, and then make that the quality of image is more excellent.
As shown in figure 10, the invention provides a kind of image output device, comprising:
Interpolating unit 400, be used for satisfying when pre-conditioned when the interpolation pixel, determine the first kind chromatic component that described interpolation pixel is default, obtain in eight neighborhood territory pixels of described interpolation pixel first difference of the first kind chromatic component of two pixels on first diagonal, obtain in eight neighborhood territory pixels of described interpolation pixel second difference of the first kind chromatic component of two pixels on second diagonal, obtain in the neighbours territory pixel of described interpolation pixel the 3rd difference of the first kind chromatic component of two pixels up and down, obtain described first difference, first pixel that described second difference is corresponding with minimum value in described the 3rd difference, with the mean value of described first pixel as the default first kind chromatic component of described interpolation pixel, travel through each interpolation pixel as stated above, and obtain each pixel after the interpolation;
Converting unit 500 is used for the data of described each pixel transitions for default form;
Output unit 600 is used for the data of described default form are exported.
Described pre-conditioned comprising:
Empty condition; Or described interpolation pixel is non-edge pixel.
If the described function of present embodiment method realizes with the form of SFU software functional unit and during as independently production marketing or use, can be stored in the computing equipment read/write memory medium.Based on such understanding, the part that the embodiment of the invention contributes to prior art or the part of this technical scheme can embody with the form of software product, this software product is stored in the storage medium, comprise that some instructions are with so that a computing equipment (can be personal computer, server, mobile computing device or the network equipment etc.) carry out all or part of step of the described method of each embodiment of the present invention.And aforesaid storage medium comprises: various media that can be program code stored such as USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD.
Each embodiment adopts the mode of going forward one by one to describe in this specification, and what each embodiment stressed is and the difference of other embodiment that same or similar part is mutually referring to getting final product between each embodiment.
To the above-mentioned explanation of the disclosed embodiments, make this neighborhood professional and technical personnel can realize or use the present invention.Multiple modification to these embodiment will be apparent concerning the professional and technical personnel of this neighborhood, and defined General Principle can realize under the situation that does not break away from the spirit or scope of the present invention in other embodiments herein.Therefore, the present invention will can not be restricted to these embodiment shown in this article, but will meet the wideest scope consistent with principle disclosed herein and features of novelty.

Claims (10)

1. a data interpolating method is characterized in that, comprising:
When the interpolation pixel satisfies when pre-conditioned, determine the first kind chromatic component that described interpolation pixel is default;
Obtain in eight neighborhood territory pixels of described interpolation pixel first difference of the described first kind chromatic component of two pixels on first diagonal;
Obtain in eight neighborhood territory pixels of described interpolation pixel second difference of the described first kind chromatic component of two pixels on second diagonal;
Obtain in the neighbours territory pixel of described interpolation pixel the 3rd difference of the described first kind chromatic component of two pixels up and down;
Obtain described first difference, described second difference first pixel corresponding with minimum value in described the 3rd difference;
With the mean value of described first pixel as the default first kind chromatic component of described interpolation pixel.
2. the method for claim 1 is characterized in that, describedly obtains described first difference, described second difference first pixel corresponding with minimum value in described the 3rd difference comprises:
If contain a minimum value in described first difference, described second difference and described the 3rd difference, then obtain with corresponding two pixels of described minimum value as described first pixel;
If contain two minimum values in described first difference, described second difference and described the 3rd difference, then obtain with corresponding four pixels of described two minimum values as described first pixel;
If described first difference, described second difference are big or small consistent with described the 3rd difference, then obtain with corresponding six pixels of described first difference, described second difference and described the 3rd difference as described first pixel.
3. the method for claim 1 is characterized in that, described pre-conditioned comprising:
Empty condition; Or
Described interpolation pixel is non-edge pixel.
4. a data interpolation device is characterized in that, comprising:
Determining unit is used for satisfying when pre-conditioned when the interpolation pixel, determines the first kind chromatic component that described interpolation pixel is default;
First acquiring unit is for first difference of the first kind chromatic component of two pixels on eight neighborhood territory pixels, first diagonal that obtains described interpolation pixel;
Second acquisition unit is for second difference of the first kind chromatic component of two pixels on eight neighborhood territory pixels, second diagonal that obtains described interpolation pixel;
The 3rd acquiring unit is for the 3rd difference of the first kind chromatic component of two pixels about the neighbours territory pixel of obtaining described interpolation pixel;
The 4th acquiring unit is used for obtaining described first difference, described second difference first pixel corresponding with described the 3rd difference minimum value;
Computing unit is used for mean value with described first pixel as the default first kind chromatic component of described interpolation pixel.
5. device as claimed in claim 4 is characterized in that, described the 4th acquiring unit comprises:
First performance element is used for then obtaining with corresponding two pixels of described minimum value as described first pixel if described first difference, described second difference and described the 3rd difference contain a minimum value;
Second performance element is used for then obtaining with corresponding four pixels of described two minimum values as described first pixel if described first difference, described second difference and described the 3rd difference contain two minimum values;
The 3rd performance element is used for then obtaining with corresponding six pixels of described first difference, described second difference and described the 3rd difference as described first pixel if described first difference, described second difference are big or small consistent with described the 3rd difference.
6. an image output method is characterized in that, comprising:
When the interpolation pixel satisfies when pre-conditioned, determine the first kind chromatic component that described interpolation pixel is default;
Obtain in eight neighborhood territory pixels of described interpolation pixel first difference of the first kind chromatic component of two pixels on first diagonal;
Obtain in eight neighborhood territory pixels of described interpolation pixel second difference of the first kind chromatic component of two pixels on second diagonal;
Obtain in the neighbours territory pixel of described interpolation pixel the 3rd difference of the first kind chromatic component of two pixels up and down;
Obtain described first difference, described second difference first pixel corresponding with minimum value in described the 3rd difference;
With the mean value of described first pixel as the default first kind chromatic component of described interpolation pixel;
Travel through each interpolation pixel as stated above, and obtain each pixel after the interpolation;
With the data of described each pixel transitions for default form;
The data of described default form are exported.
7. method as claimed in claim 6 is characterized in that, the data of described default form comprise:
Yuv format data or rgb format data.
8. method as claimed in claim 6 is characterized in that, described pre-conditioned comprising:
Empty condition; Or
Described interpolation pixel is non-edge pixel.
9. method as claimed in claim 8 is characterized in that, carries out interpolation when described interpolation pixel adopts the neighbor method during for edge pixel.
10. an image output device is characterized in that, comprising:
Interpolating unit, be used for satisfying when pre-conditioned when the interpolation pixel, determine the first kind chromatic component that described interpolation pixel is default, obtain in eight neighborhood territory pixels of described interpolation pixel first difference of the first kind chromatic component of two pixels on first diagonal, obtain in eight neighborhood territory pixels of described interpolation pixel second difference of the first kind chromatic component of two pixels on second diagonal, obtain in the neighbours territory pixel of described interpolation pixel the 3rd difference of the first kind chromatic component of two pixels up and down, obtain described first difference, first pixel that described second difference is corresponding with minimum value in described the 3rd difference, with the mean value of described first pixel as the default first kind chromatic component of described interpolation pixel, travel through each interpolation pixel as stated above, and obtain each pixel after the interpolation;
Converting unit is used for the data of described each pixel transitions for default form;
Output unit is used for the data of described default form are exported.
CN201310140308.1A 2013-04-22 2013-04-22 The interpolation method of data and device, image output method and device Active CN103259960B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310140308.1A CN103259960B (en) 2013-04-22 2013-04-22 The interpolation method of data and device, image output method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310140308.1A CN103259960B (en) 2013-04-22 2013-04-22 The interpolation method of data and device, image output method and device

Publications (2)

Publication Number Publication Date
CN103259960A true CN103259960A (en) 2013-08-21
CN103259960B CN103259960B (en) 2016-02-17

Family

ID=48963636

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310140308.1A Active CN103259960B (en) 2013-04-22 2013-04-22 The interpolation method of data and device, image output method and device

Country Status (1)

Country Link
CN (1) CN103259960B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104952049A (en) * 2015-06-23 2015-09-30 浙江工商大学 Image inpainting method based on domain divergence interpolation
CN105631802A (en) * 2014-10-30 2016-06-01 炬芯(珠海)科技有限公司 Digital image format conversion method and device
CN107465847A (en) * 2016-06-03 2017-12-12 柯尼卡美能达株式会社 Printer and color conversion and control program and color switching control method
CN114205572A (en) * 2021-11-04 2022-03-18 西安诺瓦星云科技股份有限公司 Image format conversion method and device and video processing equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1281313A (en) * 1999-07-15 2001-01-24 夏普株式会社 Image insertion device
US20060284989A1 (en) * 2005-06-08 2006-12-21 Samsung Electronics Co., Ltd. Method and apparatus for interpolation of interlaced CMYG color format
CN1964500A (en) * 2006-12-12 2007-05-16 北京中星微电子有限公司 An interpolation method and device for color filter array
CN101977328A (en) * 2010-11-09 2011-02-16 杭州爱威芯科技有限公司 Color complementary mode based color interpolation method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1281313A (en) * 1999-07-15 2001-01-24 夏普株式会社 Image insertion device
US20060284989A1 (en) * 2005-06-08 2006-12-21 Samsung Electronics Co., Ltd. Method and apparatus for interpolation of interlaced CMYG color format
CN1964500A (en) * 2006-12-12 2007-05-16 北京中星微电子有限公司 An interpolation method and device for color filter array
CN101977328A (en) * 2010-11-09 2011-02-16 杭州爱威芯科技有限公司 Color complementary mode based color interpolation method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105631802A (en) * 2014-10-30 2016-06-01 炬芯(珠海)科技有限公司 Digital image format conversion method and device
CN105631802B (en) * 2014-10-30 2018-11-30 炬芯(珠海)科技有限公司 A kind of method and device of digital image format conversion
CN104952049A (en) * 2015-06-23 2015-09-30 浙江工商大学 Image inpainting method based on domain divergence interpolation
CN104952049B (en) * 2015-06-23 2018-02-23 浙江工商大学 Based on the image repair method for facing domain diverging interpolation
CN107465847A (en) * 2016-06-03 2017-12-12 柯尼卡美能达株式会社 Printer and color conversion and control program and color switching control method
CN107465847B (en) * 2016-06-03 2019-11-01 柯尼卡美能达株式会社 Printer and color conversion and control program and color switching control method
CN114205572A (en) * 2021-11-04 2022-03-18 西安诺瓦星云科技股份有限公司 Image format conversion method and device and video processing equipment

Also Published As

Publication number Publication date
CN103259960B (en) 2016-02-17

Similar Documents

Publication Publication Date Title
USRE48444E1 (en) High resolution thin multi-aperture imaging systems
CN101006731B (en) Image processing device and method, and imaging device
US8295595B2 (en) Generating full color images by demosaicing noise removed pixels from images
JP5045421B2 (en) Imaging apparatus, color noise reduction method, and color noise reduction program
US8059169B2 (en) Apparatus and method for compensating color, and image processor, digital processing apparatus, recording medium using it
US20050185836A1 (en) Image data processing in color spaces
US20070159542A1 (en) Color filter array with neutral elements and color image formation
KR102224851B1 (en) Image Processing Device and Image Processing System performing sub-pixel interpolation
CN108122201A (en) A kind of Bayer interpolation slide fastener effect minimizing technology
US20130077858A1 (en) Image processing module and image processing method
TW201526646A (en) Image processing method and module
TW201633214A (en) Edge detection system and methods
CN103259960B (en) The interpolation method of data and device, image output method and device
CN105389786B (en) Image processing method and device
EP3275169B1 (en) Downscaling a digital raw image frame
KR101257946B1 (en) Device for removing chromatic aberration in image and method thereof
CN103270757B (en) Imaging device and method for controlling operation thereof
US20150055861A1 (en) Methods and Systems for Image Demosaicing
US20130322755A1 (en) Image processing method and apparatus
US7885488B2 (en) Image processing apparatus, method and medium
US20140037207A1 (en) System and a method of adaptively suppressing false-color artifacts
US20160277721A1 (en) Color filtered area processing method for improving image processing
CN105049820B (en) IMAGE PROCESSING APPARATUS, IMAGING APPARATUS, and IMAGE PROCESSING METHOD
CN101827273A (en) A color rendition method of image
KR100869134B1 (en) Image processing apparatus and 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
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Data interpolation method and device, image output method and device

Effective date of registration: 20210126

Granted publication date: 20160217

Pledgee: Agricultural Bank of China Limited Chongqing Yubei sub branch

Pledgor: CHONGQING JINSHAN SCIENCE & TECHNOLOGY (GROUP) Co.,Ltd.

Registration number: Y2021500000004

PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20220214

Granted publication date: 20160217

Pledgee: Agricultural Bank of China Limited Chongqing Yubei sub branch

Pledgor: CHONGQING JINSHAN SCIENCE & TECHNOLOGY (GROUP) Co.,Ltd.

Registration number: Y2021500000004

PC01 Cancellation of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Data interpolation method and device, image output method and device

Effective date of registration: 20220627

Granted publication date: 20160217

Pledgee: Agricultural Bank of China Limited Chongqing Yubei sub branch

Pledgor: CHONGQING JINSHAN SCIENCE & TECHNOLOGY (GROUP) Co.,Ltd.

Registration number: Y2022500000034

PE01 Entry into force of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20231020

Granted publication date: 20160217

Pledgee: Agricultural Bank of China Limited Chongqing Yubei sub branch

Pledgor: Chongqing Jinshan Medical Technology Research Institute Co.,Ltd.|BEIJING ZHONGJIN SILICON VALLEY TECHNOLOGY CO.,LTD.|CHONGQING JINSHAN SCIENCE & TECHNOLOGY (GROUP) Co.,Ltd.

Registration number: Y2022500000034

PC01 Cancellation of the registration of the contract for pledge of patent right