CN101170707B - Image format conversion and recovery method and device - Google Patents

Image format conversion and recovery method and device Download PDF

Info

Publication number
CN101170707B
CN101170707B CN 200710124443 CN200710124443A CN101170707B CN 101170707 B CN101170707 B CN 101170707B CN 200710124443 CN200710124443 CN 200710124443 CN 200710124443 A CN200710124443 A CN 200710124443A CN 101170707 B CN101170707 B CN 101170707B
Authority
CN
China
Prior art keywords
specific component
format
pattern data
picture
frame
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN 200710124443
Other languages
Chinese (zh)
Other versions
CN101170707A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN 200710124443 priority Critical patent/CN101170707B/en
Publication of CN101170707A publication Critical patent/CN101170707A/en
Application granted granted Critical
Publication of CN101170707B publication Critical patent/CN101170707B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The inventive embodiment provides an image format conversion and recovery method. The special element component of each frame of image of a first format is subjected to interlaced discard treatment (rows of the discarded special element components of the neighbor frames are opposite), to obtain an image data of a second format. When the image of the second format is recovered to the image data of the first format, the discarded and static special element component of each frame of the second format is subjected to interframe compensation treatment, and the motive special element component is subjected to in-frame compensation treatment. The inventive embodiment also provides an image format conversion and recovery device. The inventive method and device can compensate the current special element component by using the information of special element component obtained from the neighbor frames, particularly for the static image in the video image, so as to completely recover the discarded special element component and thus to improve the color image quality of the video image.

Description

The conversion of picture format and restoration methods and device
Technical field
The present invention relates to image processing field, relate in particular to conversion, restoration methods and the device of picture format.
Background technology
At present, along with the development of communication network technology, people are also more and more to the demand of video image, and video coding and decoding technology has obtained extensive use.The original image form of coming in through image capture device collections such as video cameras generally takies bigger memory space; For the ease of this locality storage or carry out Network Transmission; Need a kind of image format conversion be become another kind of picture format,, reduce the image transfer bandwidth to save memory space.The original image of for example gathering is the image of YUV422 form, just through chroma conversion, converts it the image of YUV420 form into, carries out the image encoding compression again; Compressed code flow reverts to the image of YUV420 the image of YUV422 again through being decoded into the image of YUV420 form after the wired or wireless transmission.Above-mentioned conversion and recovery process to image how under the situation that as far as possible improves compression ratio, make picture quality after recovering reach that effect is particularly important preferably.
With the example that converts between YUV422 form and the YUV420 form; Prior art is converting YUV422 in the process of YUV420; Be that odd-numbered line or even number line with each frame chromatic component in the YUV422 image abandons, abandon delegation, obtain the chromatic component of YUV420 image at a distance from delegation.When the YUV420 image is reverted to the YUV422 image; In order to compensate odd-numbered line or the even number line that originally was dropped; Employing is duplicated lastrow or next line in the same frame of YUV420 image as the value of the current line of needs compensation; Perhaps take the chromatic component mean value of the up-downgoing of current line to compensate current line, the YUV422 image that has been restored.
For the ease of understanding, combine accompanying drawing that the prior art scheme is explained in more detail at present.As shown in Figure 1, be the arrangement sketch map of the chromatic component of YUV422 image.The delegation of the colourity in first frame in the capable representative image of a, b is capable to represent another row of colourity, and each row comprises chromatic component of a plurality of picture elements, and second frame, the 3rd frame are similar.The YUV422 of prior art converts in the method for YUV420; Be in every two field picture in every line colourity abandon delegation's colourity; Abandon directly such as first frame among the figure that b is capable, d is capable, second frame abandons directly that f is capable, h is capable, and the 3rd frame abandons that j is capable, l is capable; The chromatic component Pareto diagram of the YUV420 image that obtains is as shown in Figure 2, and wherein dotted circle is represented the colourity row that is dropped.
When the YUV420 image was reverted to the YUV422 image, prior art was taked to duplicate the method for lastrow colourity usually or is got the average method of two row up and down (be compensation in the frame, obtain chrominance information in the same number of frames to compensate the chromatic component that is dropped).As shown in Figure 2, first frame for example recovers the former second row b when capable, takes the capable method of getting off of duplicating a; Perhaps take following method: b1=(a1+c1)/2, b2=(a2+c2)/2, b3=(a3+c3)/2, b4=(a4+c4)/2.Recover other row and also take same method.
Above-mentioned prior art scheme has following shortcoming:
1, abandoned half the chromatic component during format conversion, and the chromatic component that these are lost compensates to return when recovering.For the color detail abundant image, this method can influence the picture quality after the recovery, is insecure.
2, the phenomenon that has chroma offset or look string.Capable such as the f after over recovery among Fig. 2, it duplicates from former e is capable, no matter be the image of motion or the chroma offset that static image all has delegation.Obtain with capable the averaging of g through e is capable if f is capable, then possibly have the problem of look string, such as f capable be red, e is capable to be red, g is green, then f is capable after making even all is being not red, but by red and green other colors of mixing.
If to the extended formatting image, change and when recovering like RGB image and YUV image, lose row and reset mode to what prior art was taked in other yuan prime component such as brightness etc., also can there be the problem that similar component is lost, component squints.
Summary of the invention
The object of the invention is to provide a kind of image format conversion and restoration methods; Solving prior art when carrying out image format conversion, first prime component of being lost to the rest image in the video image can't full remuneration be returned and is reverted to the problem that has the component skew behind the original image form.
In order to achieve the above object, the present invention realizes through following technical scheme:
On the one hand, the embodiment of the invention provides a kind of image format conversion method, may further comprise the steps:
Obtain the first format-pattern data, the said first format-pattern data comprise at least two two field pictures, and every two field picture comprises at least two row picture elements;
Element-specific component to the said picture element of every two field picture carries out the interlacing discard processing, obtains the second format-pattern data;
The step of said interlacing discard processing comprises:
As if the element-specific component behavior odd-numbered line that consecutive frame abandons, then abandon the element-specific component of the even number line of present frame;
As if the element-specific component behavior even number line that consecutive frame abandons, then abandon the element-specific component of the odd-numbered line of present frame.
On the other hand, the embodiment of the invention also provides a kind of picture format restoration methods, may further comprise the steps:
Obtain the second format-pattern data; The said second format-pattern data comprise at least two two field pictures; Every two field picture comprises at least two row picture elements; And in every two field picture in every line picture element exist delegation need compensate the picture element of element-specific component, if the element-specific component behavior odd-numbered line that consecutive frame need compensate, the present frame element-specific component behavior even number line that need compensate then; If the consecutive frame element-specific component behavior even number line that need compensate, the present frame element-specific component behavior odd-numbered line that need compensate then;
It is motion or static that judgement needs the element-specific component of compensation;
Static element-specific component in the said element-specific component that needs to compensate is carried out the interframe compensation deals, the said element-specific component that needs to move in the element-specific component of compensation is carried out compensation deals in the frame, obtain the first format-pattern data.
The embodiment of the invention also provides a kind of image format converting apparatus, comprising:
First processing unit is used to obtain the first format-pattern data, and the said first format-pattern data comprise at least two two field pictures, and every two field picture comprises at least two row picture elements;
Converting unit; The element-specific component of the said picture element of the every two field picture of said first format-pattern that is used for said first processing unit is obtained carries out the interlacing discard processing; When the element-specific component behavior odd-numbered line that consecutive frame abandons, abandon the element-specific component of the even number line of present frame, or when the element-specific component behavior even number line that consecutive frame abandons; Abandon the element-specific component of the odd-numbered line of present frame, obtain the second format-pattern data.
The embodiment of the invention also provides a kind of picture format recovery device, comprising:
Second processing unit; Be used to obtain the second format-pattern data; The said second format-pattern data comprise at least two two field pictures, every two field picture comprise at least two the row picture elements, and in every two field picture in every line picture element exist delegation need compensate the picture element of element-specific component; If the element-specific component behavior odd-numbered line that consecutive frame need compensate; The present frame element-specific component behavior even number line that need compensate then, if the element-specific component behavior even number line that consecutive frame need compensate, the present frame element-specific component behavior odd-numbered line that need compensate then;
Decision unit is used to judge that the every element-specific component of going the needs compensation of every two field picture that said second processing unit obtains is motion or static;
Recovery unit; Be used for when said decision unit judges that the element-specific component of said needs compensation is static; Said static element-specific component is carried out the interframe compensation deals; Or when said decision unit is judged the said element-specific component that needs compensation for motion, the element-specific component of said motion is carried out compensation deals in the frame, obtain the first format-pattern data.
The present invention also provides a kind of picture format device for interchanging, comprising:
First processing unit is used to obtain the first format-pattern data, and the said first format-pattern data comprise at least two two field pictures, and every two field picture comprises at least two row picture elements;
Converting unit; The element-specific component of the said picture element of the every two field picture of said first format-pattern that is used for said first processing unit is obtained carries out the interlacing discard processing; When the element-specific component behavior odd-numbered line that consecutive frame abandons, abandon the element-specific component of the even number line of present frame, or when the element-specific component behavior even number line that consecutive frame abandons; Abandon the element-specific component of the odd-numbered line of present frame, obtain the second format-pattern data;
Second processing unit; Be used to obtain the said second format-pattern data that said converting unit obtains; The said second format-pattern data comprise at least two two field pictures; Every two field picture comprises at least two row picture elements, and in every two field picture in every line picture element exist delegation need compensate the picture element of element-specific component, the element-specific component that the said capable and said converting unit of element-specific component that needs compensation abandons is capable identical;
Decision unit is used for judging that the every element-specific component of going the needs compensation of every two field picture that said second processing unit obtains is motion or static;
Recovery unit; Be used for when said decision unit judges that the element-specific component of said needs compensation is static; Said static element-specific component is carried out the interframe compensation deals; Or when said decision unit is judged the said element-specific component that needs compensation for motion, the element-specific component of said motion is carried out compensation deals in the frame, obtain the said first format-pattern data.
Adopt technique scheme of the present invention; Beneficial effect is: technique scheme is when carrying out image format conversion; Abandon delegation in every line for the element-specific component in every two field picture; And it is number just the opposite that consecutive frame is lost the row of element-specific component, and the element-specific component behavior odd-numbered line that abandons of consecutive frame even then abandons the element-specific component of the even number line of present frame; As if the element-specific component behavior even number line that consecutive frame abandons, then abandon the element-specific component of the odd-numbered line of present frame.Like this when carrying out the picture format recovery; Static element-specific component (the element-specific component that promptly originally was dropped) for the needs compensation; Just can from consecutive frame, obtain the element-specific component (interframe compensation) that corresponding element-specific component information compensates present frame by corresponding line, so just can all compensate the element-specific that needs to be dropped in the rest image return; Owing to take interframe compensation, rather than the up-downgoing in the same number of frames obtains the element-specific component information and compensates, and the problem of skew of element-specific component or image color generation colour contamination just can not occur, improved the color image quality of video image.
Description of drawings
Fig. 1 is that each two field picture chromatic component of YUV422 image is arranged sketch map;
Fig. 2 is the arrangement sketch map of prior art after the colourity of each two field picture shown in Figure 1 is carried out interlacing and abandoned;
The flow chart of the image format conversion method that Fig. 3 provides for the embodiment of the invention;
Arrangement sketch map after in the image format conversion method that Fig. 4 provides for the embodiment of the invention colourity of each two field picture shown in Figure 1 being carried out interlacing and abandon;
After in the image format conversion method that Fig. 5 provides for the embodiment of the invention colourity of each two field picture shown in Figure 1 being carried out interlacing and abandon another arranged sketch map;
The flow chart of the picture format restoration methods that Fig. 6 provides for the embodiment of the invention;
In the picture format restoration methods that Fig. 7 provides for the embodiment of the invention chromatic component is carried out the compensation deals method sketch map after sound is judged;
The image format converting apparatus structural representation that Fig. 8 provides for the embodiment of the invention;
The structural representation of the image format converting apparatus that Fig. 9 provides for another embodiment of the present invention;
The structural representation of the picture format recovery device that Figure 10 provides for the embodiment of the invention;
The structural representation of the picture format recovery device that Figure 11 provides for another embodiment of the present invention;
The structural representation of the picture format recovery device that Figure 12 provides for further embodiment of this invention.
Embodiment
The embodiment of the invention provides a kind of image format conversion method; When carrying out image format conversion; For the element-specific component, take every two field picture is carried out the mode that interlacing abandons, promptly at a distance from delegation's element-specific component; Abandon delegation's element-specific component, and the row that abandons of consecutive frame is number just the opposite.For example the row lost of present frame number is an odd-numbered line; Then the row lost of next frame number is an even number line; Guarantee row that present frame abandons number; Can not be dropped at next frame, recover rest image like this and just can obtain the element-specific component information constantly and come the row that present frame is dropped is compensated complete recovery picture quality from consecutive frame.
The image format conversion method that the embodiment of the invention provides may further comprise the steps:
Obtain the first format-pattern data, the said first format-pattern data comprise at least two two field pictures, and every two field picture comprises at least two row picture elements;
Element-specific component to the said picture element of every two field picture carries out the interlacing discard processing, obtains the second format-pattern data;
The step of said interlacing discard processing comprises:
As if the element-specific component behavior odd-numbered line that consecutive frame abandons, then abandon the element-specific component of the even number line of present frame;
As if the element-specific component behavior even number line that consecutive frame abandons, then abandon the element-specific component of the odd-numbered line of present frame.
In order to make technical scheme of the present invention clearer, advantage is more outstanding, below in conjunction with accompanying drawing, explains with concrete embodiment.Before describing embodiment, at first the conventional images form is done some introductions.
Natural color is ever-changing; In order to give the criterion of a quantification of color; Just need set up the color space model and describe various colors; Because the people is a complex physical and psychological symphyogenetic process to the perception of color, thus in different applications for the better demand that satisfies more accurately separately, the description color that various color space models quantize has just appearred.We more often touch just comprises RGB/CMYK/YIQ/YUV/HSI or the like.
For digital and electronic multimedia field, the notion of the color space that we often touch mainly is RGB, and these two kinds of YUV (in fact; These two kinds of systems have comprised many kinds concrete color expression way and model, like sRGB, and Adobe RGB; YUV422, YUV420, YUV444 etc.; RGB describes color by the principle that three primary colors add photosystem, and YUV then is according to brightness, and the principle of aberration is described color.
The embodiment of the invention is mainly with the conversion between video image format YUV422 and the YUV420 with revert to example and set forth the present invention.
The image format conversion method that present embodiment provides (converting YUV420 to YUV422 is example), as shown in Figure 3, may further comprise the steps:
Steps A 1, obtain the YUV422 view data;
The image that image capture device is gathered into generally is the YUV422 format-pattern, and the memory space that this form takies is bigger, for the ease of storage or transmission, need convert it to the YUV420 format-pattern usually.At first to obtain YUV422 format-pattern data (the first format-pattern data) when therefore changing.The YUV422 video image is made up of at least two two field pictures, and every two field picture comprises at least two row picture elements.Because yuv image adopts brightness, aberration to describe color; Therefore its each picture element adopts YUV (corresponding to the YCrCb color space of expression RGB; Because of the YCbCr color space is a kind of color space that is derived from by the YUV color space) three components represent; Y representes luminance component, and UV is a chromatic component.When converting YUV422 to YUV420, image brightness is constant, but it is original half the to require chromatic component to reduce to.The chromatic component of each frame picture element of YUV422 image as shown in Figure 1 is arranged sketch map, for the ease of understanding, only shows a kind of arrangement sketch map of chromatic component among the figure, has omitted other components.
Steps A 2, the chromatic component of the said picture element of every two field picture is carried out the interlacing discard processing; Promptly abandon the chromatic component of delegation's corresponding pixel point at a distance from delegation's colourity; Promptly obtain the YUV420 view data thus, it is capable just the opposite that wherein consecutive frame is dropped the picture element of chromatic component.
Here take be in every line chromatic component to abandon the method for delegation's chromatic component and colourity row that consecutive frame is lost number be inequality, the colourity row that requires consecutive frame to abandon is opposite just.Such as, the former frame image abandons the chromatic component of odd-numbered line entirely, all keeps the chromatic component of even number line; Then present frame is all lost the chromatic component of even number line, all keeps the chromatic component of odd-numbered line; Next frame all abandons the chromatic component of odd-numbered line, all stays the chromatic component of even number line; Next frame abandons the chromatic component of even number line again; Every like this frame abandons down successively, forms the YUV420 image.YUV422 image chroma component Pareto diagram with Fig. 1 is an example; Adopt and of the present invention chromatic component is carried out the interlacing discard processing; The colourity line number that requires consecutive frame to lose is just the opposite, abandons b, d capable (even number line) such as the 1st frame (odd-numbered frame), and the 2nd frame (even frame) image abandons e, g capable (odd-numbered line); The 3rd two field picture is lost j, l is capable, and the YUV420 chromatic component Pareto diagram that obtains is as shown in Figure 4.
Certainly; To the chromatic component Pareto diagram among Fig. 1, also can take the 1st frame (odd-numbered frame) image to lose a, c capable (odd-numbered line), the 2nd frame (even frame) image f, h capable (odd-numbered line); The 3rd two field picture is lost i, k is capable; The YUV420 image chroma component Pareto diagram that obtains is as shown in Figure 5, and abandon chrominance information by this way and also be fine, number be opposite just passable just as long as satisfy colourity row that consecutive frame loses.Utilize this mode to lose colourity, be convenient to the recovery of colourity, particularly static image, colourity can be recovered fully.
Need to prove; For the ease of transmission or storage, the YUV422 image of collection becomes the YUV420 image through after the chroma conversion, also can the YUV420 image be carried out video image compression coding; Obtain compressed code flow, can transmit through wired or wireless network.
The picture format restoration methods that the embodiment of the invention provides may further comprise the steps:
Obtain the second format-pattern data; The said second format-pattern data comprise at least two two field pictures; Every two field picture comprises at least two row picture elements; And in every two field picture in every line picture element exist delegation need compensate the picture element of element-specific component, if the element-specific component behavior odd-numbered line that consecutive frame need compensate, the present frame element-specific component behavior even number line that need compensate then; If the consecutive frame element-specific component behavior even number line that need compensate, the present frame element-specific component behavior odd-numbered line that need compensate then;
It is motion or static that judgement needs the element-specific component of compensation;
Static element-specific component in the said element-specific component that needs to compensate is carried out the interframe compensation deals, the said element-specific component that needs to move in the element-specific component of compensation is carried out compensation deals in the frame, obtain the first format-pattern data.
The YUV422 image transitions of describing to embodiment one below becomes the method for YUV420 image, describes the method that corresponding YUV420 image reverts to the YUV422 image in detail, and is as shown in Figure 6, may further comprise the steps:
Step B1, obtain the YUV420 view data;
Carry out image and play when showing, need revert to the YUV422 image to YUV420 again, therefore need obtain the YUV420 image.If the YUV420 image is handled through video compression coding when conversion, then before obtaining the YUV420 image, earlier compressed bit stream to be decoded, obtain the YUV420 view data.
The YUV420 image comprises at least two two field pictures; Every two field picture comprise at least two the row picture elements, each picture element comprises chromatic component, and in every two field picture in every line colourity exist delegation need compensate the picture element of colourity; Promptly in the image format conversion method of embodiment one, be dropped the picture element of chromatic component; When recovering, need they be compensated, just can revert to the YUV422 image.Therefore the YUV420 image that the chromatic component Pareto diagram that needs compensation in every two field picture of YUV420 image here and embodiment one carry out obtaining after the format conversion is identical; It is just the opposite that wherein consecutive frame need compensate capable number of the picture element of chromatic component; If the chromatic component behavior odd-numbered line that consecutive frame need compensate; The present frame chromatic component behavior even number line that need compensate then, if the chromatic component behavior even number line that consecutive frame need compensate, the present frame chromatic component behavior odd-numbered line that need compensate then.
The chromatic component Pareto diagram of first three two field picture in the YUV420 video image as shown in Figure 4, solid line circle represent that the chromatic component that keeps, dashed circle represent to be dropped the chromatic component of (promptly needing compensation).The chromatic component that first frame need compensate is the 2nd, the 4th row; The chromatic component that second frame need compensate is the 1st row, the 3rd row; The chromatic component that the 3rd frame need compensate is the 2nd row, the 4th row; Later every frame by that analogy, the row at picture element place of chromatic component that satisfies the compensation of needs in the consecutive frame is number just the opposite.YUV420 is being reverted to the YUV422 image, need before colourity row (need compensation the colourity row) interpolation that is dropped compensate.
It is motion or static that step B2, judgement need the chromatic component of compensation;
The present invention finds that the colourity of losing in every frame can compensate (interframe compensation) through the colourity row interpolation that is retained of front and back frame fully for static image when realizing the present technique scheme.For the image of motion, then can be through the row interpolation compensation (compensation in the frame) of advancing of the colourity up and down of present frame.
Therefore before chromatic component is compensated; Elder generation's judgment object is (being each chromatic component static still motion) motion or static, carries out the corresponding compensation processing again, and is as shown in Figure 7; Chromatic component for motion; Then carry out compensation deals in the frame,, carry out the interframe compensation deals for static chromatic component.
Image motion and static determination methods are a lot, and the present invention does not limit the method for using which kind of sound to judge, as long as from image, detect moving object, and not static image, the image of particularly static texture-rich is judged to moving object and gets final product.
B3, static chromatic component in the chromatic component of needs compensation is carried out the interframe compensation deals, the chromatic component that moves in the chromatic component to the needs compensation carries out compensation deals in the frame, obtains the YUV422 view data.
After above-mentioned sound judgement, if the current chromatic component that needs to compensate is a rest image, can take the method for interframe compensation to this chromatic component, promptly from least one adjacent two field picture of front and back, obtain chrominance information and compensate.As shown in Figure 4; If the chromatic component that needs the compensation second frame g2 to order; Can take the method for coming, make g2=c2, need be about to the chromatic component of the g2 of compensation to be set to the chromatic component of former frame corresponding line corresponding pixel point from the 1st frame (former frame) dub chroma.The method that two frames are averaged before and after also can taking obtains the value of g2, i.e. g2=(c2+k2)/2.Perhaps can also obtain the current chroma component information that needs compensation from adjacent several two field pictures with other rules.
After judging through sound, if the current chromatic component of compensation that needs move, can take the method for compensation in the frame, promptly the chrominance information according to several row about in the same two field picture compensates.In Fig. 4, the chromatic value of compensation g2 can take to duplicate the method for the chromatic component of the corresponding pixel of lastrow, g2=f2.
Successively the chromatic component that needs compensation in each frame of YUV420 image is carried out above-mentioned compensation deals, the YUV422 image that promptly has been restored.
Image format conversion that the embodiment of the invention provides and restoration methods; Conversion with between YUV420 and the YUV422 reverts to example; Not only can solve because the problem of the chroma offset that chroma conversion is introduced; And can solve the problem that the colourity in chroma conversion and the colourity recovery process is lost; Detailed information to keeping color has tangible effect, at MPEG4, H.264 wait in pre-treatment and the reprocessing of image coding and decoding important use is arranged, the lifting of color image quality is had obvious effects.Need to prove; Image format conversion provided by the invention, restoration methods; Not only can be used for conversion, recovery between the yuv image; Can also be used for the conversion between YUV and the RGB picture format, i.e. the present invention can be used for conversion and the recovery between the different-format of same color space, also can be used for conversion and recovery between the different-format in different color space.
The embodiment of the invention also provides and can be used for the image format converting apparatus of the described image format conversion method of embodiment of the present invention embodiment, and is as shown in Figure 8, comprising:
First processing unit 801 is used to obtain the first format-pattern data, and the said first format-pattern data comprise at least two two field pictures, and every two field picture comprises at least two row picture elements;
Converting unit 802; The element-specific component of the said picture element of the every two field picture of said first format-pattern that is used for said first processing unit 801 is obtained carries out the interlacing discard processing; When the element-specific component behavior odd-numbered line that consecutive frame abandons, abandon the element-specific component of the even number line of present frame, or when the element-specific component behavior even number line that consecutive frame abandons; Abandon the element-specific component of the odd-numbered line of present frame, obtain the second format-pattern data.
As shown in Figure 9, according to actual needs, can also comprise first memory cell 800 for image format converting apparatus provided by the invention, be used to store the first format-pattern data to be converted.
If conveniently store or advance, need carry out video compression coding to second format-pattern through the Network Transmission second format-pattern data.The present invention increases coding unit 803 in above-mentioned image format converting apparatus for this reason, and is as shown in Figure 9.Coding unit 803 is used for second format-pattern that converting unit 802 is converted to is carried out video compression coding according to video compression standard, obtains compressed bit stream.
The present invention also provides and can be used for the picture format recovery device of the described picture format restoration methods of embodiment of the present invention embodiment, and an embodiment of the picture format recovery device that provides for the embodiment of the invention shown in figure 10 comprises:
Second processing unit 101; Be used to obtain the second format-pattern data; The said second format-pattern data comprise at least two two field pictures, every two field picture comprise at least two the row picture elements, and in every two field picture in every line picture element exist delegation need compensate the picture element of element-specific component; If the element-specific component behavior odd-numbered line that consecutive frame need compensate; The present frame element-specific component behavior even number line that need compensate then, if the element-specific component behavior even number line that consecutive frame need compensate, the present frame element-specific component behavior odd-numbered line that need compensate then;
Decision unit 102 is used to judge that the every element-specific component of going the needs compensation of every two field picture that said second processing unit 101 obtains is motion or static;
Recovery unit 103; Be used for when said decision unit 102 judges that the element-specific component of said needs compensation is static; Said static element-specific component is carried out the interframe compensation deals; Or when said decision unit 102 is judged the said element-specific component that needs compensation for motion, the element-specific component of said motion is carried out compensation deals in the frame, obtain the first format-pattern data.
Recovery unit 103 can further include information acquisition unit 1031 and compensating unit 1032.
Information acquisition unit 1031 is used for when decision unit 102 judges that the element-specific component of said needs compensation is static, from adjacent at least one two field picture, obtaining the element-specific component information of corresponding line corresponding pixel point; Or when decision unit 102 judgements need the element-specific component of compensation to be motion, from the adjacent picture element of delegation at least of present frame current line, obtain the element-specific component information of corresponding pixel point.
Compensating unit 1032; Be used for when decision unit 102 judges that the element-specific component of needs compensation is static; From adjacent at least one two field picture, obtain the element-specific component information of corresponding line corresponding pixel point according to information acquisition unit 1031, the element-specific component of needs compensation is carried out the interframe compensation; Or when decision unit 102 judgements need the element-specific component of compensation to be motion; According to the element-specific component information of obtaining corresponding pixel point the adjacent picture element of delegation at least of information acquisition unit 1031 current line in present frame, the element-specific component that needs are compensated carries out compensating in the frame.Successively each two field picture of second format-pattern is carried out the compensation deals of above-mentioned element-specific component, obtain the first format-pattern data.
Shown in figure 11; The picture format recovery device that the embodiment of the invention provides; Also comprise decoding unit 100; Be used for before second processing unit 101 obtains the second format-pattern data, the compressed bit stream through second format-pattern of video image compression coding is decoded, obtain the decoded second format-pattern data.
Picture format recovery device shown in figure 12, that the embodiment of the invention provides further comprises second memory cell 104, is used for before second format-pattern is recovered, storing the second format-pattern data.
The embodiment of the invention also provides a kind of picture format device for interchanging, can be used to implement above-mentioned image format conversion and restoration methods.This picture format device for interchanging comprises:
First processing unit is used to obtain the first format-pattern data, and the said first format-pattern data comprise at least two two field pictures, and every two field picture comprises at least two row picture elements;
Converting unit; The element-specific component of the said picture element of the every two field picture of said first format-pattern that is used for said first processing unit is obtained carries out the interlacing discard processing; When the element-specific component behavior odd-numbered line that consecutive frame abandons, abandon the element-specific component of the even number line of present frame, or when the element-specific component behavior even number line that consecutive frame abandons; Abandon the element-specific component of the odd-numbered line of present frame, obtain the second format-pattern data.
Second processing unit; Be used to obtain the said second format-pattern data that said converting unit obtains; The said second format-pattern data comprise at least two two field pictures; Every two field picture comprises at least two row picture elements, and in every two field picture in every line picture element exist delegation need compensate the picture element of element-specific component, the element-specific component that the said capable and said converting unit of element-specific component that needs compensation abandons is capable identical;
Decision unit is used for judging that the every element-specific component of going the needs compensation of every two field picture that said second processing unit obtains is motion or static;
Recovery unit; Be used for when said decision unit judges that the element-specific component of said needs compensation is static; Said static element-specific component is carried out the interframe compensation deals; Or when said decision unit is judged the said element-specific component that needs compensation for motion, the element-specific component of said motion is carried out compensation deals in the frame, obtain the said first format-pattern data.
The above; Be merely the preferable embodiment of the present invention; But protection scope of the present invention is not limited thereto; Any technical staff who is familiar with the present technique field is in the technical scope that the present invention discloses, and the variation that can expect easily or replacement or be equal to all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.

Claims (14)

1. an image format conversion method is characterized in that, may further comprise the steps:
Obtain the first format-pattern data, the said first format-pattern data comprise at least two two field pictures, and every two field picture comprises at least two row picture elements;
Element-specific component to the said picture element of every two field picture carries out the interlacing discard processing, obtains the second format-pattern data;
The step of said interlacing discard processing comprises:
As if the element-specific component behavior odd-numbered line that consecutive frame abandons, then abandon the element-specific component of the even number line of present frame;
As if the element-specific component behavior even number line that consecutive frame abandons, then abandon the element-specific component of the odd-numbered line of present frame;
Wherein, said element-specific is colourity or brightness.
2. image format conversion method according to claim 1 is characterized in that, the said first format-pattern data are YUV422 format-pattern data, and the said second format-pattern data are YUV420 format-pattern data.
3. image format conversion method according to claim 1 is characterized in that, the said first format-pattern data or the second format-pattern data are yuv format image or rgb format image.
4. image format conversion method according to claim 1; It is characterized in that, obtain after the said second format-pattern data, further comprising the steps of: that the said second format-pattern data are carried out video image compression coding; Obtain compressed bit stream, be used for local storage or Network Transmission.
5. a picture format restoration methods is characterized in that, may further comprise the steps:
Obtain the second format-pattern data; The said second format-pattern data comprise at least two two field pictures; Every two field picture comprises at least two row picture elements; And in every two field picture in every line picture element exist delegation need compensate the picture element of element-specific component, if the element-specific component behavior odd-numbered line that consecutive frame need compensate, the present frame element-specific component behavior even number line that need compensate then; If the consecutive frame element-specific component behavior even number line that need compensate, the present frame element-specific component behavior odd-numbered line that need compensate then;
It is motion or static that judgement needs the element-specific component of compensation;
Static element-specific component in the said element-specific component that needs to compensate is carried out the interframe compensation deals, the said element-specific component that needs to move in the element-specific component of compensation is carried out compensation deals in the frame, obtain the first format-pattern data;
Wherein, said element-specific is colourity or brightness.
6. picture format restoration methods according to claim 5; It is characterized in that the step that the said element-specific component that needs compensation is carried out the interframe compensation deals comprises: the element-specific component value that the element-specific component value of the corresponding pixel point of corresponding line in the consecutive frame image is compensated as said needs.
7. picture format restoration methods according to claim 5; It is characterized in that; The step that the said element-specific component that needs compensation is carried out the interframe compensation deals comprises: if the present frame at the element-specific component place of said needs compensation exists former frame and back one frame, with the mean value of the said former frame and the element-specific component of the corresponding pixel point of the corresponding line of the back one frame said element-specific component value that need compensate as present frame.
8. picture format restoration methods according to claim 5; It is characterized in that; Obtain before the said second format-pattern data; Also comprise step:, obtain the said second format-pattern data after the decoding if the said second format-pattern data are decoded to corresponding compressed bit stream through video image compression coding.
9. an image format converting apparatus is characterized in that, comprising:
First processing unit is used to obtain the first format-pattern data, and the said first format-pattern data comprise at least two two field pictures, and every two field picture comprises at least two row picture elements;
Converting unit; The element-specific component of the said picture element of the every two field picture of the said first format-pattern data that is used for said first processing unit is obtained carries out the interlacing discard processing; When the element-specific component behavior odd-numbered line that consecutive frame abandons, abandon the element-specific component of the even number line of present frame, or when the element-specific component behavior even number line that consecutive frame abandons; Abandon the element-specific component of the odd-numbered line of present frame, obtain the second format-pattern data; Wherein, said element-specific is colourity or brightness.
10. image format converting apparatus according to claim 9 is characterized in that, also comprises:
Coding unit is used for the said second format-pattern data that said converting unit obtains are carried out video image compression coding.
11. a picture format recovery device is characterized in that, comprising:
Second processing unit; Be used to obtain the second format-pattern data; The said second format-pattern data comprise at least two two field pictures, every two field picture comprise at least two the row picture elements, and in every two field picture in every line picture element exist delegation need compensate the picture element of element-specific component; If the element-specific component behavior odd-numbered line that consecutive frame need compensate; The present frame element-specific component behavior even number line that need compensate then, if the element-specific component behavior even number line that consecutive frame need compensate, the present frame element-specific component behavior odd-numbered line that need compensate then;
Decision unit is used to judge that the every element-specific component of going the needs compensation of every two field picture that said second processing unit obtains is motion or static;
Recovery unit; Be used for when said decision unit judges that the element-specific component of said needs compensation is static; Said static element-specific component is carried out the interframe compensation deals; Or when said decision unit is judged the said element-specific component that needs compensation for motion, the element-specific component of said motion is carried out compensation deals in the frame, obtain the first format-pattern data; Wherein, said element-specific is colourity or brightness.
12. picture format recovery device according to claim 11 is characterized in that, also comprises:
Decoding unit was used for before said second processing unit obtains the said second format-pattern data, and the compressed bit stream through the second format-pattern data of video image compression coding is decoded, and obtained the said second format-pattern data after the decoding.
13. picture format recovery device according to claim 11 is characterized in that, said recovery unit comprises:
Information acquisition unit is used for when said decision unit judges that the element-specific component of said needs compensation is static, from adjacent at least one two field picture, obtaining the element-specific component information of corresponding line corresponding pixel point; Or when said decision unit is judged the said element-specific component that need compensate for motion, from the adjacent picture element of delegation at least of present frame current line, obtain the element-specific component information of corresponding pixel point;
Compensating unit; Be used for when said decision unit judges that the element-specific component of said needs compensation is static; From adjacent at least one two field picture, obtain the element-specific component information of corresponding line corresponding pixel point according to said information acquisition unit, the said element-specific component of compensation that needs is carried out the interframe compensation; Or when said decision unit is judged the said element-specific component that need compensate for motion; According to the element-specific component information of obtaining corresponding pixel point the adjacent picture element of delegation at least of said information acquisition unit current line in present frame, the said element-specific component of compensation that needs is carried out compensating in the frame.
14. a picture format device for interchanging is characterized in that, comprising:
First processing unit is used to obtain the first format-pattern data, and the said first format-pattern data comprise at least two two field pictures, and every two field picture comprises at least two row picture elements;
Converting unit; The element-specific component of the said picture element of the every two field picture of the said first format-pattern data that is used for said first processing unit is obtained carries out the interlacing discard processing; When the element-specific component behavior odd-numbered line that consecutive frame abandons, abandon the element-specific component of the even number line of present frame, or when the element-specific component behavior even number line that consecutive frame abandons; Abandon the element-specific component of the odd-numbered line of present frame, obtain the second format-pattern data;
Second processing unit; Be used to obtain the said second format-pattern data that said converting unit obtains; The said second format-pattern data comprise at least two two field pictures; Every two field picture comprises at least two row picture elements, and in every two field picture in every line picture element exist delegation need compensate the picture element of element-specific component, the element-specific component that the said capable and said converting unit of element-specific component that needs compensation abandons is capable identical;
Decision unit is used for judging that the every element-specific component of going the needs compensation of every two field picture that said second processing unit obtains is motion or static;
Recovery unit; Be used for when said decision unit judges that the element-specific component of said needs compensation is static; Said static element-specific component is carried out the interframe compensation deals; Or when said decision unit is judged the said element-specific component that needs compensation for motion, the element-specific component of said motion is carried out compensation deals in the frame, obtain the said first format-pattern data; Wherein, said element-specific is colourity or brightness.
CN 200710124443 2007-11-08 2007-11-08 Image format conversion and recovery method and device Active CN101170707B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200710124443 CN101170707B (en) 2007-11-08 2007-11-08 Image format conversion and recovery method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200710124443 CN101170707B (en) 2007-11-08 2007-11-08 Image format conversion and recovery method and device

Publications (2)

Publication Number Publication Date
CN101170707A CN101170707A (en) 2008-04-30
CN101170707B true CN101170707B (en) 2012-08-08

Family

ID=39391141

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200710124443 Active CN101170707B (en) 2007-11-08 2007-11-08 Image format conversion and recovery method and device

Country Status (1)

Country Link
CN (1) CN101170707B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113395502A (en) * 2021-04-26 2021-09-14 龙靖 Cross chromaticity reduction method based on different color space sampling formats

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101873480A (en) * 2010-02-10 2010-10-27 宇龙计算机通信科技(深圳)有限公司 Color difference signal correction method and device of streaming medium live broadcast
CN102868871B (en) * 2012-10-24 2015-03-25 广东威创视讯科技股份有限公司 Method and device for converting video image format
CN103165092A (en) * 2013-02-25 2013-06-19 京东方科技集团股份有限公司 Method and device of liquid crystal display
CN105100803B (en) * 2014-04-29 2018-12-18 三星电子(中国)研发中心 Video decoding optimization method
CN105516702A (en) * 2015-12-18 2016-04-20 无锡天脉聚源传媒科技有限公司 Mapping method and device of color space
KR102582060B1 (en) * 2018-11-06 2023-09-25 삼성디스플레이 주식회사 Display device and method of driving the same
CN111683251A (en) * 2020-05-28 2020-09-18 浪潮(北京)电子信息产业有限公司 Video data storage method and device and computer readable storage medium
CN112672165A (en) * 2020-12-25 2021-04-16 咪咕文化科技有限公司 Image encoding method, image decoding method, electronic device, and readable storage medium
CN115396643B (en) * 2022-08-23 2023-08-29 中船重工(武汉)凌久电子有限责任公司 Automatic route image transformation method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1080453A (en) * 1992-05-26 1994-01-05 通用电气公司 Digital video signal processor apparatus
CN1086070A (en) * 1992-06-26 1994-04-27 索尼公司 The method and system of Code And Decode picture intelligence and relevant picture-signal recording media
CN1224977A (en) * 1998-01-31 1999-08-04 大宇电子株式会社 Method and apparatus for coding interlaced shape information
CN101043627A (en) * 2002-09-06 2007-09-26 富士通株式会社 Motion picture encoding and decoding devices

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1080453A (en) * 1992-05-26 1994-01-05 通用电气公司 Digital video signal processor apparatus
CN1086070A (en) * 1992-06-26 1994-04-27 索尼公司 The method and system of Code And Decode picture intelligence and relevant picture-signal recording media
CN1224977A (en) * 1998-01-31 1999-08-04 大宇电子株式会社 Method and apparatus for coding interlaced shape information
CN101043627A (en) * 2002-09-06 2007-09-26 富士通株式会社 Motion picture encoding and decoding devices

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
CN 1080453 A,全文.

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113395502A (en) * 2021-04-26 2021-09-14 龙靖 Cross chromaticity reduction method based on different color space sampling formats

Also Published As

Publication number Publication date
CN101170707A (en) 2008-04-30

Similar Documents

Publication Publication Date Title
CN101170707B (en) Image format conversion and recovery method and device
CN100581238C (en) System and method for video error concealment
CN102067592B (en) Time-shifted transport of multi-latticed video for resiliency from burst-error effects
US6952500B2 (en) Method and apparatus for visual lossless image syntactic encoding
US8660345B1 (en) Colorization-based image compression using selected color samples
CN101267563A (en) Adaptive variable length coding
CN109831668B (en) Data compression method and device, data coding/decoding method and device
MXPA06002837A (en) Digital video signature apparatus and methods for use with video program identification systems.
CN103458242A (en) Method for compressing and uncompressing image based on color classification and cluster
CN112995664B (en) Image sampling format conversion method, computer-readable storage medium, and encoder
EP3586509A1 (en) Method and device for decoding a high-dynamic range image
GB2452765A (en) Combining multiple image streams by reducing the colour depth of each bit stream combining them onto a single stream
CN102457722A (en) Processing method and device for Bayer image
CN102301712A (en) Image Compression Using Checkerboard Mosaic For Luminance And Chrominance Color Space Images
CN101404765B (en) Interactive multi-view point video encoding method
CN111654705B (en) Mosaic image compression method based on color space conversion
CN102300102B (en) Method and device for video transmission by color decoupling, and readable medium
CN111406404B (en) Compression method, decompression method, system and storage medium for obtaining video file
Lin et al. Adjusted 4: 2: 2 chroma subsampling strategy for compressing mosaic videos with arbitrary RGB color filter arrays in HEVC
US7257251B2 (en) Chrominance smoothing
CN110636304B (en) YCbCr444 and YCbCr422 conversion method
CN101753780A (en) Compression method of color image based on primary color extraction, segmentation and compression
CN1257443C (en) Printer for printing moving image data and its control method
CN103533322B (en) YUV frame is transcoded into method and the device of RGB frame
TWI673684B (en) Method and circuit for assignment rgb subpixels for selected depth values and recovery rgb subpixels to selected depth values for colored depth frame packing and depacking

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