CN101494718A - Method and apparatus for encoding image - Google Patents
Method and apparatus for encoding image Download PDFInfo
- Publication number
- CN101494718A CN101494718A CN 200910045710 CN200910045710A CN101494718A CN 101494718 A CN101494718 A CN 101494718A CN 200910045710 CN200910045710 CN 200910045710 CN 200910045710 A CN200910045710 A CN 200910045710A CN 101494718 A CN101494718 A CN 101494718A
- Authority
- CN
- China
- Prior art keywords
- coding
- coding region
- image
- original image
- unit
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 44
- 108091026890 Coding region Proteins 0.000 claims abstract description 137
- 238000001514 detection method Methods 0.000 claims description 36
- 108700026244 Open Reading Frames Proteins 0.000 claims description 18
- 230000000052 comparative effect Effects 0.000 claims description 6
- 238000012360 testing method Methods 0.000 claims description 5
- 238000007906 compression Methods 0.000 description 11
- 230000006835 compression Effects 0.000 description 11
- 238000005516 engineering process Methods 0.000 description 4
- 230000000007 visual effect Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 238000012937 correction Methods 0.000 description 2
- 238000011002 quantification Methods 0.000 description 2
- 230000002123 temporal effect Effects 0.000 description 2
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 238000013144 data compression Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000035800 maturation Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
An image coding method and device, wherein the image coding method includes: obtaining a first coding region of the current frame original image based on the current frame original image and the former frame original image; obtaining a second of the current frame original image based on the current frame original image and the coded image of the former frame after decoding; coding the collection of the first coding region and the second coding region to obtain the coded image of the current frame. The invention uses the first coding region to obtain the moving region of the current frame relative to the former frame, and uses the second coding region to obtain the distortion of the former frame image in the coding process, and adjust the coding of the current frame based on the distortion, thereby improving the image quality and improving the coding efficiency.
Description
Technical field
The present invention relates to image processing techniques, particularly the method for encoding images of wireless display apparatus data source end and device.
Background technology
Along with the development and maturation of wireless technology, wireless display apparatus has entered in people's the live and work more and more.Wireless display apparatus is eliminated the puzzlement of various lines, has improved operating efficiency effectively.Wherein, wireless display instrument especially.A kind of as in the wireless display apparatus of wireless display instrument, utilize wireless signal, receive the picture signal that the data source end sends, it is decoded and Projection Display, reduced the fixedly coupling between data source end that transmission line brought and the display device and be connected restriction such as distance.In concrete the application, a wireless display instrument can be connected with multiple computers, make this unlimited projecting apparatus select wherein one arbitrarily, its displaying contents is carried out projection, also many projectors and a computer can be carried out wireless connections, realize a plurality of projections of same displaying contents, compared to wired projecting apparatus, saved the trouble of thread-changing when changing the computer that is connected, also saved the time of pulling out line, plug wire, wait, realize image freely changing between computer and projecting apparatus, improved operating efficiency.
The key of wireless display instrument is the image compression encoding of data source end.Under the certain situation of transmission bandwidth, adopt suitable image compression encoding method, could on the wireless display instrument, obtain smoothness and distinct image.Usually, unlimited projecting apparatus data source end adopts the JPEG compressed encoding as image compression encoding method commonly used.
JPEG (Joint Photographic Experts Group, JPEG (joint photographic experts group)) is an expert group that constitutes jointly by ISO and two organizations of IEC, be responsible to define static digital image data compression coding standard, its algorithm of developing becomes general in the world standard, i.e. Joint Photographic Experts Group.Joint Photographic Experts Group is a kind of lossy compression method, utilized the characteristic of people's visual angle system, according to different compression ratios, the redundant information that use quantizes and lossless compression-encoding combines removes the visual angle and the redundant information of data itself can represent very abundant lively image thereby be implemented in when obtaining high compression ratio.
The data source end passes through Joint Photographic Experts Group, according to certain compression ratio, image to the data source end carries out discrete cosine transform, quantification and coding, acquisition can be for transmission and through image encoded, these are transmitted by wireless network through image encoded, the wireless display instrument receives these through image encoded, decodes and projection.When the image of data source end comprises a large amount of pixel, all pixels are carried out compressed encoding, will make through image encoded also to comprise mass data, owing to be subjected to the restriction of wireless bandwidth, the wireless display instrument can't obtain smooth image; And if by improving compression ratio the image of data source end is carried out compressed encoding, can lose image information again, have influence on the quality of wireless display image that instrument receives.
Summary of the invention
The problem that the present invention solves is that the picture quality that the wireless display instrument is obtained is relatively poor owing to be subjected to the restriction of wireless bandwidth and compressed encoding strategy.
For addressing the above problem, the invention provides a kind of method for encoding images, comprising:, obtain first coding region of current frame original image according to current frame original image and former frame original image; The coded image according to described current frame original image and former frame through decoding, second coding region of acquisition current frame original image; Set to described first coding region and described second coding region is encoded, and obtains the present frame coded image.
Optionally, described first coding region is the moving region of current frame original image with respect to the former frame original image.
Optionally, described according to current frame original image and former frame original image, first coding region that obtains current frame original image comprises: carry out motion detection by the image that the image and the former frame of current seizure are caught, obtain described first coding region.
Optionally, described by the image of current seizure and the image of former frame seizure are carried out motion detection, obtain first coding region and comprise: calculate in current frame original image and the former frame original image, have the RGB difference of the pixel of same position; Described difference and first threshold are compared, and according to comparative result, with all described differences greater than the set of the pixel of first threshold as described first coding region.
Optionally, described second coding region for having encoded by the former frame coded image but picture quality is undesirable and in current frame original image with respect to the zone in the non-moving region of former frame original image.
Optionally, described according to current frame original image and former frame coded image through decoding, second coding region that obtains current frame original image comprises: carry out motion detection by image and former frame to current seizure through the coded image of decoding, obtain described second coding region.
Optionally, it is described by the image of current seizure and the coded image of former frame process decoding are carried out motion detection, obtaining second coding region comprises: calculate in current frame original image and the former frame coded image through decoding, have the RGB difference of the pixel of same position; The described difference and second threshold value are compared, and according to comparative result, with all described differences greater than the set of the pixel of second threshold value as described second coding region.
Optionally, the coded image of described former frame through decoding obtains according to the former frame coded image being carried out local decode.
Optionally, described set to first coding region and described second coding region is encoded, and obtains the present frame coded image and comprises: obtain the set of described first coding region and described second coding region; Described set is encoded, obtain the present frame coded image.
Optionally, the set of described acquisition first coding region and second coding region comprises: determine each coding region corresponding codes parameter; According to described coding parameter and certain merging rule, merge described first coding region and described second coding region, obtain the set in described two zones.
Optionally, described coding parameter is the parameter of decision coding quality.
Optionally, describedly determine that each coding region corresponding codes parameter comprises:, adopt parameter corresponding to common coding quality for first coding region; For second coding region, adopt coding parameter corresponding to high coding quality.
Optionally, described merging rule comprises: with described first coding region and the described second coding region addition, be the set that is obtained with described first coding region and the described second coding region sum.
Optionally, described pair set is encoded, and obtains the present frame coded image and comprises: directly the set in described two zones is encoded, obtain the present frame coded image.
Optionally, described pair set is encoded, and obtains the present frame coded image and comprises: the set by calculating described first coding region and described second coding region obtains difference image with respect to the difference of former frame original image; Difference image is encoded, obtain the present frame coded image.
Optionally, described pair set is encoded, and obtains the present frame coded image and comprises: direct coding mode or differential coding mode are adopted in the described set of setting each two field picture; According to the coded system that sets, image to be encoded in each frame is encoded.
Optionally, the described coded system that the set of each two field picture is adopted is set and is comprised: for each two field picture, according to direct coding mode and differential coding mode, calculate the bit rate output of described set respectively; The bit rate output of two kinds of coded systems relatively is to have less a kind of as its coded system of bit rate output.
A kind of picture coding device comprises: decoding unit is used for coded image is decoded; Detecting unit is used for respectively according to current frame original image and former frame original image, and described current frame original image and former frame are through the coded image of decoding, corresponding first coding region and second coding region that obtains current frame original image; Merge cells, the set that is used to obtain described first coding region and described second coding region; Coding unit is used for described set is encoded, and obtains the present frame coded image.
Optionally, described decoding unit is the local decoder that is positioned at the data source end.
Optionally, described detecting unit comprises: first detecting unit, be used to receive current frame original image and former frame original image, and it is detected, obtain first coding region of current frame original image; Second detecting unit is used to receive current frame original image and former frame through the coded image of decoding, and it is detected, and obtains second coding region of current frame original image.
Optionally, described first detecting unit comprises: the first estimation detecting unit is used for current frame original image and former frame original image are carried out motion detection, and current frame original image and former frame is carried out motion detection through the coded image of decoding; First comparing unit is used for the testing result and the first threshold of described first motion detection unit are compared, and obtains first coding region.
Optionally, described second detecting unit comprises: the second estimation detecting unit is used for current frame original image and former frame original image are carried out motion detection, and current frame original image and former frame is carried out motion detection through the coded image of decoding; Second comparing unit is used for the testing result and second threshold value of described second motion detection unit are compared, and obtains second coding region.
Optionally, described detecting unit comprises: the estimation detecting unit is used for current frame original image and former frame original image are carried out motion detection, and current frame original image and former frame is carried out motion detection through the coded image of decoding; Comparing unit is used for the result of described estimation detecting unit is compared with the first threshold and second threshold value successively, obtains first coding region and second coding region respectively.
Optionally, described merge cells comprises: the coding parameter setup unit is used to set the coding parameter that is applied to described first coding region and described second coding region respectively; The set acquiring unit is used for according to described coding parameter and merging rule, the set of obtaining described first coding region and described second coding region.
Optionally, described set acquiring unit is an adder.
Optionally, described coding unit comprises: first coding unit, be used for directly described set being encoded, and obtain the present frame coded image.
Optionally, described first coding unit is a jpeg coder.
Optionally, described coding unit comprises: second coding unit, and be used to calculate the difference of the described set of first coding region and second coding region, and described difference image is encoded with respect to the former frame original image, obtain the present frame coded image.
Optionally, described second coding unit comprises: the difference acquiring unit, be used to calculate the difference of described set with respect to the former frame original image, and obtain difference image; The differential coding unit is used for described difference image is encoded, and obtains the present frame coded image.
Optionally, described coding unit comprises: first coding unit is used for directly described set being encoded; Second coding unit is used to calculate the difference of the described set of first coding region and second coding region with respect to the former frame original image, and described difference image is encoded; The coding mode selection unit is used for selecting to adopt described first coding unit, or described second coding unit, and described set is encoded.
Optionally, described coding mode selection unit is the both-end soft-touch control.
Optionally, described coding mode selection unit comprises: the code check computing unit, be used for described set for each two field picture, and calculate the pairing bit rate output of different coding; The code check comparing unit is used for the bit rate output that comparison code check computing unit is obtained; The coded system determining unit is used for the result according to the code check comparing unit, determines to have the less coded system of bit rate output.
Compared with prior art, the present invention not only obtains present frame to the moving region that produces for former frame by described first coding region, also by described second coding region, obtained the existing distortion in cataloged procedure of former frame image, and the coding of present frame is adjusted according to described distortion, improve picture quality, also improved code efficiency.
Description of drawings
Fig. 1 is the schematic flow sheet of method for encoding images execution mode of the present invention;
Fig. 2 is the schematic flow sheet that set is encoded to coding region in the method for encoding images execution mode of the present invention;
Fig. 3 is the structural representation of picture coding device execution mode of the present invention;
Fig. 4 is the structural representation of a kind of embodiment of detecting unit among Fig. 3;
Fig. 5 is the structural representation of the another kind of embodiment of detecting unit among Fig. 3;
Fig. 6 is the structural representation of a kind of embodiment of merge cells among Fig. 3;
Fig. 7 is the structural representation of a kind of embodiment of coding unit among Fig. 3;
Fig. 8 is the structural representation of picture coding device specific embodiment of the present invention.
Embodiment
As mentioning in the background technology, the JPEG compression coding technology is a kind of lossy compression method, and the redundancy that it utilizes the temporal correlation removal of images signal of interframe obtains higher compression ratio, realizes compressed encoding.Wherein, the redundancy of picture signal can comprise spatial redundancies (being visual redundant information), temporal redundancy (being the redundant information of data itself) and visual redundant information.In the specific coding process, can be by current frame original image be encoded with respect to the part that the former frame original image changes, to obtain the present frame coded image.
With reference to figure 1, the invention provides a kind of method for encoding images, comprising: step S1 according to current frame original image and former frame original image, obtains first coding region of current frame original image; Step S2, the coded image according to described current frame original image and former frame, second coding region of acquisition current frame original image through decoding; Step S3 encodes to the set of described first coding region and described second coding region, obtains the present frame coded image.
Below in conjunction with the drawings and specific embodiments, embodiment of the present invention is elaborated.
Wherein, described first coding region is the moving region of current frame original image with respect to the former frame original image.In specific embodiment, can carry out motion detection by the image that the image and the former frame of current seizure are caught, to obtain described first coding region.Specifically, can comprise: calculate in current frame original image and the former frame original image, have the RGB difference of the pixel of same position; Described difference and first threshold are compared, and judge according to comparative result: when described difference greater than first threshold, then the process from the former frame original image to current frame original image, motion has taken place in this pixel; Otherwise when described difference is not more than first threshold, then the process from the former frame original image to current frame original image, this pixel does not move.The set of the pixel of motion has taken place for these in described moving region.
Wherein, described second coding region for having encoded by the former frame coded image but picture quality is undesirable and in current frame original image with respect to the zone in the non-moving region of former frame original image, reflected the existing distortion of former frame coded image.In specific embodiment, can carry out motion detection through the coded image of decoding by image and former frame, to obtain described second coding region to current seizure.Specifically, can comprise: calculate in current frame original image and former frame the coded image, have the RGB difference of the pixel of same position through decoding; The described difference and second threshold value are compared, and judge according to comparative result: when described difference greater than second threshold value, then in the former frame coded image, undesirable to the coding result of this pixel; Otherwise when described difference is not more than first threshold, former frame coded image then is to the coding result ideal of this pixel.
In embodiment, step S2 also can comprise: the former frame coded image is decoded, to obtain the coded image of described former frame through decoding.
Obtain after first coding region and second coding region, execution in step S3 encodes to its set.
With reference to figure 2, step S3 specifically can comprise: step S310 obtains the set of first coding region and second coding region; Step S320 encodes to described set, obtains the present frame coded image.
Wherein, step S310 also can comprise: determine each coding region corresponding codes parameter; According to described coding parameter and certain merging rule, merge described first coding region and described second coding region, obtain its set.
Specifically, described coding parameter is the parameter of decision coding quality, for example, for first coding region, adopts the parameter corresponding to common coding quality, for second coding region, adopts the coding parameter corresponding to high coding quality.
Described merging rule can comprise the addition rule, is about to described first coding region and the described second coding region addition, is the set that is obtained with described first coding region and the described second coding region sum.
In a kind of embodiment, step S320 can comprise: the direct coding mode, promptly directly the set in described two zones is encoded, to obtain the present frame coded image.In another kind of embodiment, step S320 also can comprise: the differential coding mode, promptly pass through to calculate the difference of the set of first coding region and second coding region, and difference image is encoded, to obtain the present frame coded image with respect to the former frame original image.Wherein, described difference comprises the pixel in the set of first coding region and second coding region, and the RGB difference between the pixel of correspondence position in the former frame original image.Described cataloged procedure can adopt the Joint Photographic Experts Group coding method, promptly treats image encoded and carries out discrete cosine transform, quantification and coding.
In another embodiment, step S320 also can comprise: for the different frame image, select corresponding coding manner.Specifically: according to above-mentioned two kinds of coded systems, the coded system that the described set of each two field picture is adopted is set, according to the coded system that sets, image to be encoded in each frame is encoded then.
In specific embodiment, can set:, according to direct coding mode and differential coding mode, calculate the bit rate output of described set respectively for each two field picture by the coded system that following step adopts the set in each two field picture; The bit rate output of two kinds of coded systems relatively is to have less a kind of as its coded system of bit rate output.Wherein, the bit rate output of described coded system is to adopt after this kind coded system the bit number that is obtained.
The above-mentioned execution mode of method for encoding images of the present invention by with current frame original image respectively with the former frame original image, and former frame compares through the coded image of decoding, obtain first coding region and second coding region in the current frame original image accordingly, both considered that present frame produced the image-region of motion with respect to former frame, also previous frame had been carried out coding but the unfavorable zone of effect is revised.That is to say,, realized of the correction of the coded image of present frame, thereby improved picture quality the coded image of former frame by the set of described first coding region and second coding region.
With reference to figure 3, the present invention also provides a kind of picture coding device, comprising: decoding unit 101 is used for coded image is decoded; Detecting unit 102 is used for respectively according to current frame original image and former frame original image, and described current frame original image and former frame are through the coded image of decoding, corresponding first coding region and second coding region that obtains current frame original image; Merge cells 103, the set that is used to obtain described first coding region and described second coding region; Coding unit 104 is used for described set is encoded, and obtains the present frame coded image.
Specifically, decoding unit 101 can be the local decoder that is positioned at the data source end.
With reference to figure 4, detecting unit 102 can comprise: first detecting unit 210, be used to receive current frame original image and former frame original image, and it is detected, obtain first coding region of current frame original image; Second detecting unit 220 is used to receive current frame original image and former frame through the coded image of decoding, and it is detected, and obtains second coding region of current frame original image.
Wherein, first detecting unit 210 and second detecting unit 220 all comprise estimation detecting unit and comparing unit.
Specifically, first detecting unit 210 can comprise: the first estimation detecting unit 211, be used for current frame original image and former frame original image are carried out motion detection, and current frame original image and former frame are carried out motion detection through the coded image of decoding; First comparing unit 212 is used for the testing result and the first threshold of motion detection unit 211 are compared, and obtains first coding region.
Second detecting unit 220 can comprise: the second estimation detecting unit 221 is used for current frame original image and former frame original image are carried out motion detection, and current frame original image and former frame is carried out motion detection through the coded image of decoding; Second comparing unit 222, the result and second threshold value that are used for motion detection unit 221 is obtained compare, and obtain second coding region.
In other embodiments, with reference to figure 5, detecting unit 102 can comprise: estimation detecting unit 301 and comparing unit 302, by estimation detecting unit 301, current frame original image and former frame original image are carried out motion detection, and current frame original image and former frame carried out motion detection through the coded image of decoding, and multiplexing by comparing unit 302, the result who realizes described estimation detecting unit successively with the comparison of the first threshold and second threshold value, thereby obtain first coding region and second coding region respectively.
With reference to figure 6, merge cells 103 specifically can comprise: coding parameter setup unit 401 is used to set the coding parameter that is applied to described first coding region and described second coding region respectively; Set acquiring unit 402 is used for according to described coding parameter and merging rule, the set of obtaining described first coding region and described second coding region.Specifically, set acquiring unit 402 can be adder.
In a kind of embodiment, coding unit 104 can comprise: first coding unit, be used for directly described set being encoded, and obtain the present frame coded image.Specifically, first coding unit can comprise jpeg coder.
In another kind of embodiment, coding unit 104 can comprise: second coding unit, be used to calculate the difference of the described set of first coding region and second coding region, and described difference image is encoded, obtain the present frame coded image with respect to the former frame original image.Specifically, second coding unit can comprise: the difference acquiring unit, be used to calculate the difference of described set with respect to the former frame original image, and obtain difference image; The differential coding unit is used for described difference image is encoded, and obtains the present frame coded image.
In another embodiment, with reference to figure 7, coding unit 104 comprises first coding unit 501 and second coding unit 502, also can comprise: coding mode selection unit 503, be used for selecting to adopt first coding unit 501 or second coding unit 502, described set is encoded.
Wherein, coding mode selection unit 503 can be set the coding unit that it adopted according to the different frame image, determines the coded system of gathering described in the corresponding two field picture.In embodiment, the coding mode selection unit can be the both-end soft-touch control, according to the result who sets, for the different frame image, controls the open and close of described both-end soft-touch control.
In other embodiments, coding mode selection unit 503 can comprise: the code check computing unit, be used for described set for each two field picture, and calculate the pairing bit rate output of different coding; The code check comparing unit is used for the bit rate output that comparison code check computing unit is obtained; The coded system determining unit is used for the result according to the code check comparing unit, determines to have the less coded system of bit rate output.
With reference to figure 8, in the specific embodiment of picture coding device of the present invention, detecting unit 102 comprises moving region detector 901 and distortion zone detector 902; Merge cells 103 comprises and door 903 and coding parameter controller 904; Coding unit 104 comprises adder 910 and difference image encoder 908, encoder 905 and coding mode selector 907; Decoding unit 101 comprises difference image decoder 909 and adder 911 and local decoder 906.Coding mode selector 907 control switchs 921 and switch 922 are selected different coded systems.
In practical work process, moving region detector 901 carries out motion detection according to former frame original image and current frame original image, obtains the moving region of current frame original image with respect to the former frame original image; Distortion zone detector 902 carries out motion detection according to current frame original image and former frame through the coded image of decoding, and obtains the distortion zone in the former frame image encoding process.
The moving region that is obtained and distortion zone be through merging with door 903, and corresponding codes parameter when determining that by coding parameter controller 904 described moving regions and distortion zone are encoded.According to determined coding parameter, obtain set about described moving region and distortion zone.
Next, determine to adopt the differential coding mode, perhaps adopt the direct coding mode by coding mode selector 907.
When adopting the direct coding mode, coding mode selector 907 control switchs 921 and switch 922 are in B and B ' respectively.Described set is encoded by encoder 905, and coding result is exported by switch 921, and after through local decoder 906 decodings, by switch 922 output decoder results.
When adopting the differential coding mode, coding mode selector 907 control switchs 921 and switch 922 are in A and A ' respectively.Obtain difference image by adder 910, and encode by 908 pairs of difference images that obtained of difference image encoder.Coding result is exported by switch 921, and while input difference image decoder 909.Decoded result is by adder 911, carries out exporting by switch 922 after the addition through the coded image of decoding with former frame.
With respect to prior art, the above-mentioned execution mode of the present invention obtains present frame to the moving region that produces for former frame by described first coding region, and by described second coding region, obtained the existing distortion in cataloged procedure of former frame image, and on this basis, according to described distortion the coding of present frame is adjusted, improved picture quality, also improved code efficiency.
Though the present invention by the preferred embodiment explanation as above, these preferred embodiments are not in order to limit the present invention.Those skilled in the art without departing from the spirit and scope of the present invention, should have the ability various corrections and additional are made in this preferred embodiment, and therefore, protection scope of the present invention is as the criterion with the scope of claims.
Claims (32)
1. a method for encoding images is characterized in that, comprising:
According to current frame original image and former frame original image, obtain first coding region of current frame original image;
The coded image according to described current frame original image and former frame through decoding, second coding region of acquisition current frame original image;
Set to described first coding region and described second coding region is encoded, and obtains the present frame coded image.
2. method for encoding images as claimed in claim 1 is characterized in that, described first coding region is the moving region of current frame original image with respect to the former frame original image.
3. method for encoding images as claimed in claim 1, it is characterized in that, described according to current frame original image and former frame original image, first coding region that obtains current frame original image comprises: carry out motion detection by the image that the image and the former frame of current seizure are caught, obtain described first coding region.
4. method for encoding images as claimed in claim 3 is characterized in that, and is described by the image of current seizure and the image of former frame seizure are carried out motion detection, obtains first coding region and comprises:
Calculate in current frame original image and the former frame original image, have the RGB difference of the pixel of same position;
Described difference and first threshold are compared, and according to comparative result, with all described differences greater than the set of the pixel of first threshold as described first coding region.
5. method for encoding images as claimed in claim 1, it is characterized in that, described second coding region for having encoded by the former frame coded image but picture quality is undesirable and in current frame original image with respect to the zone in the non-moving region of former frame original image.
6. method for encoding images as claimed in claim 1, it is characterized in that, described according to current frame original image and former frame coded image through decoding, second coding region that obtains current frame original image comprises: carry out motion detection by image and former frame to current seizure through the coded image of decoding, obtain described second coding region.
7. method for encoding images as claimed in claim 6 is characterized in that, and is described by the image of current seizure and the coded image of former frame process decoding are carried out motion detection, obtains second coding region and comprises:
Calculate in current frame original image and former frame the coded image, have the RGB difference of the pixel of same position through decoding;
The described difference and second threshold value are compared, and according to comparative result, with all described differences greater than the set of the pixel of second threshold value as described second coding region.
8. method for encoding images as claimed in claim 1 is characterized in that, described former frame obtains according to the former frame coded image being carried out local decode through the coded image of decoding.
9. method for encoding images as claimed in claim 1 is characterized in that, described set to first coding region and described second coding region is encoded, and obtains the present frame coded image and comprises:
Obtain the set of described first coding region and described second coding region;
Described set is encoded, obtain the present frame coded image.
10. method for encoding images as claimed in claim 9 is characterized in that, the set of described acquisition first coding region and second coding region comprises:
Determine each coding region corresponding codes parameter;
According to described coding parameter and certain merging rule, merge described first coding region and described second coding region, obtain the set in described two zones.
11. method for encoding images as claimed in claim 10 is characterized in that, described coding parameter is the parameter of decision coding quality.
12. method for encoding images as claimed in claim 10 is characterized in that, described definite each coding region corresponding codes parameter comprises: for first coding region, adopt the parameter corresponding to common coding quality; For second coding region, adopt coding parameter corresponding to high coding quality.
13. method for encoding images as claimed in claim 10, it is characterized in that, described merging rule comprises: with described first coding region and the described second coding region addition, be the set that is obtained with described first coding region and the described second coding region sum.
14. method for encoding images as claimed in claim 10 is characterized in that, described pair set is encoded, and obtains the present frame coded image and comprises: directly the set in described two zones is encoded, obtain the present frame coded image.
15. method for encoding images as claimed in claim 10 is characterized in that, described pair set is encoded, and obtains the present frame coded image and comprises:
Set by calculating described first coding region and described second coding region obtains difference image with respect to the difference of former frame original image;
Difference image is encoded, obtain the present frame coded image.
16. method for encoding images as claimed in claim 10 is characterized in that, described pair set is encoded, and obtains the present frame coded image and comprises:
Set the described set of each two field picture and adopt direct coding mode or differential coding mode;
According to the coded system that sets, image to be encoded in each frame is encoded.
17. method for encoding images as claimed in claim 16 is characterized in that, the described coded system that the set of each two field picture is adopted is set and is comprised:
For each two field picture, according to direct coding mode and differential coding mode, calculate the bit rate output of described set respectively;
The bit rate output of two kinds of coded systems relatively is to have less a kind of as its coded system of bit rate output.
18. a picture coding device is characterized in that, comprising:
Decoding unit is used for coded image is decoded;
Detecting unit is used for respectively according to current frame original image and former frame original image, and described current frame original image and former frame are through the coded image of decoding, corresponding first coding region and second coding region that obtains current frame original image;
Merge cells, the set that is used to obtain described first coding region and described second coding region;
Coding unit is used for described set is encoded, and obtains the present frame coded image.
19. picture coding device as claimed in claim 18 is characterized in that, described decoding unit is the local decoder that is positioned at the data source end.
20. picture coding device as claimed in claim 18 is characterized in that, described detecting unit comprises:
First detecting unit is used to receive current frame original image and former frame original image, and it is detected, and obtains first coding region of current frame original image;
Second detecting unit is used to receive current frame original image and former frame through the coded image of decoding, and it is detected, and obtains second coding region of current frame original image.
21. picture coding device as claimed in claim 20 is characterized in that, described first detecting unit comprises:
The first estimation detecting unit is used for current frame original image and former frame original image are carried out motion detection, and current frame original image and former frame are carried out motion detection through the coded image of decoding;
First comparing unit is used for the testing result and the first threshold of described first motion detection unit are compared, and obtains first coding region.
22. picture coding device as claimed in claim 20 is characterized in that, described second detecting unit comprises:
The second estimation detecting unit is used for current frame original image and former frame original image are carried out motion detection, and current frame original image and former frame are carried out motion detection through the coded image of decoding;
Second comparing unit is used for the testing result and second threshold value of described second motion detection unit are compared, and obtains second coding region.
23. picture coding device as claimed in claim 18 is characterized in that, described detecting unit comprises:
The estimation detecting unit is used for current frame original image and former frame original image are carried out motion detection, and current frame original image and former frame are carried out motion detection through the coded image of decoding;
Comparing unit is used for the result of described estimation detecting unit is compared with the first threshold and second threshold value successively, obtains first coding region and second coding region respectively.
24. picture coding device as claimed in claim 18 is characterized in that, described merge cells comprises:
The coding parameter setup unit is used to set the coding parameter that is applied to described first coding region and described second coding region respectively;
The set acquiring unit is used for according to described coding parameter and merging rule, the set of obtaining described first coding region and described second coding region.
25. picture coding device as claimed in claim 24 is characterized in that, described set acquiring unit is an adder.
26. picture coding device as claimed in claim 18 is characterized in that, described coding unit comprises: first coding unit, be used for directly described set being encoded, and obtain the present frame coded image.
27. picture coding device as claimed in claim 26 is characterized in that, described first coding unit is a jpeg coder.
28. picture coding device as claimed in claim 18, it is characterized in that, described coding unit comprises: second coding unit, be used to calculate the difference of the described set of first coding region and second coding region with respect to the former frame original image, and described difference image encoded, obtain the present frame coded image.
29. picture coding device as claimed in claim 27 is characterized in that, described second coding unit comprises:
The difference acquiring unit is used to calculate the difference of described set with respect to the former frame original image, obtains difference image;
The differential coding unit is used for described difference image is encoded, and obtains the present frame coded image.
30. picture coding device as claimed in claim 18 is characterized in that, described coding unit comprises:
First coding unit is used for directly described set being encoded;
Second coding unit is used to calculate the difference of the described set of first coding region and second coding region with respect to the former frame original image, and described difference image is encoded;
The coding mode selection unit is used for selecting to adopt described first coding unit or described second coding unit, and described set is encoded.
31. picture coding device as claimed in claim 30 is characterized in that, described coding mode selection unit is the both-end soft-touch control.
32. picture coding device as claimed in claim 30 is characterized in that, described coding mode selection unit comprises:
The code check computing unit is used for the described set for each two field picture, calculates the pairing bit rate output of different coding;
The code check comparing unit is used for the bit rate output that comparison code check computing unit is obtained;
The coded system determining unit is used for the result according to the code check comparing unit, determines to have the less coded system of bit rate output.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200910045710 CN101494718B (en) | 2009-01-23 | 2009-01-23 | Method and apparatus for encoding image |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200910045710 CN101494718B (en) | 2009-01-23 | 2009-01-23 | Method and apparatus for encoding image |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101494718A true CN101494718A (en) | 2009-07-29 |
CN101494718B CN101494718B (en) | 2011-02-09 |
Family
ID=40925098
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200910045710 Active CN101494718B (en) | 2009-01-23 | 2009-01-23 | Method and apparatus for encoding image |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101494718B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109587480A (en) * | 2017-09-29 | 2019-04-05 | 佳能株式会社 | Image processing equipment, image processing method and recording medium |
WO2020034078A1 (en) * | 2018-08-14 | 2020-02-20 | Huawei Technologies Co., Ltd. | Event-based adaptation of coding parameters for video image encoding |
CN113573069A (en) * | 2020-04-29 | 2021-10-29 | 阿里巴巴集团控股有限公司 | Video encoding and decoding method, device and system and electronic equipment |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1187730A (en) * | 1996-12-13 | 1998-07-15 | 松下电器产业株式会社 | Apparatus and method for coding and decoding and coding image recording media and transfer method |
CN100423581C (en) * | 2002-12-30 | 2008-10-01 | Nxp股份有限公司 | Coding/decoding method and its device for dynamic image |
KR100539923B1 (en) * | 2003-02-10 | 2005-12-28 | 삼성전자주식회사 | A video encoder capable of encoding deferentially as distinguishing image of user and method for compressing a video signal using that |
US7689051B2 (en) * | 2004-04-15 | 2010-03-30 | Microsoft Corporation | Predictive lossless coding of images and video |
-
2009
- 2009-01-23 CN CN 200910045710 patent/CN101494718B/en active Active
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109587480A (en) * | 2017-09-29 | 2019-04-05 | 佳能株式会社 | Image processing equipment, image processing method and recording medium |
CN109587480B (en) * | 2017-09-29 | 2023-03-24 | 佳能株式会社 | Image processing apparatus, image processing method, and recording medium |
WO2020034078A1 (en) * | 2018-08-14 | 2020-02-20 | Huawei Technologies Co., Ltd. | Event-based adaptation of coding parameters for video image encoding |
US11490092B2 (en) | 2018-08-14 | 2022-11-01 | Huawei Technologies Co., Ltd. | Event-based adaptation of coding parameters for video image encoding |
CN113573069A (en) * | 2020-04-29 | 2021-10-29 | 阿里巴巴集团控股有限公司 | Video encoding and decoding method, device and system and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN101494718B (en) | 2011-02-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1098599C (en) | System for coding video signal in presence of image intensity gradient | |
CN101742319B (en) | Background modeling-based static camera video compression method and background modeling-based static camera video compression system | |
CN102124495B (en) | Method for encoding a sequence of digitized images | |
US9414086B2 (en) | Partial frame utilization in video codecs | |
US20130044183A1 (en) | Distributed video coding/decoding method, distributed video coding/decoding apparatus, and transcoding apparatus | |
KR100281463B1 (en) | Sub-data encoding apparatus in object based encoding system | |
CN103220511A (en) | Logical intra mode naming in HEVC video coding | |
JP2008219870A (en) | Moving picture coding method and moving picture encoder | |
US20130034151A1 (en) | Flexible codec switching | |
EP0985318B1 (en) | System for extracting coding parameters from video data | |
WO2014166338A1 (en) | Method and apparatus for prediction value derivation in intra coding | |
CN101883284A (en) | Video encoding/decoding method and system based on background modeling and optional differential mode | |
EP0924932A2 (en) | Apparatus and method of adaptively coding/decoding interlaced shape information | |
CN101494718B (en) | Method and apparatus for encoding image | |
US20110299605A1 (en) | Method and apparatus for video resolution adaptation | |
US20050089232A1 (en) | Method of video compression that accommodates scene changes | |
CN1126376C (en) | Method for eliminating error in bit data flow and apparatus thereof | |
JPH0879767A (en) | Moving vector coding and decoding system | |
KR100289054B1 (en) | Region segmentation and background mosaic composition | |
JPH05284368A (en) | Method and device for encoding/restoring image data | |
JPH07222173A (en) | Picture processor | |
CN108600751A (en) | Polygon information-distribution type Video coding based on JND, decoded method and system | |
JPH06233266A (en) | Video signal encoder and video signal decoder | |
CN101090500A (en) | Code-decode method and device for video fast forward | |
KR100209411B1 (en) | Method for processing image signals using contour information |
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 | ||
CP01 | Change in the name or title of a patent holder |
Address after: Zuchongzhi road in Zhangjiang High Tech Park of Shanghai City 887 201203 Lane 88, Room 301 Patentee after: Point By Point Semiconductor (Shanghai) Co.,Ltd. Address before: Zuchongzhi road in Zhangjiang High Tech Park of Shanghai City 887 201203 Lane 88, Room 301 Patentee before: PIXELWORKS SEMICONDUCTOR TECHNOLOGY CO.,LTD. |
|
CP01 | Change in the name or title of a patent holder |