WO2009074089A1 - Image or image mode coding or decoding method, apparatus and image coding and decoding ststem - Google Patents

Image or image mode coding or decoding method, apparatus and image coding and decoding ststem Download PDF

Info

Publication number
WO2009074089A1
WO2009074089A1 PCT/CN2008/073277 CN2008073277W WO2009074089A1 WO 2009074089 A1 WO2009074089 A1 WO 2009074089A1 CN 2008073277 W CN2008073277 W CN 2008073277W WO 2009074089 A1 WO2009074089 A1 WO 2009074089A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
mode
value
scene
scene mode
Prior art date
Application number
PCT/CN2008/073277
Other languages
French (fr)
Chinese (zh)
Inventor
Jianhua Zheng
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.
Publication of WO2009074089A1 publication Critical patent/WO2009074089A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/61Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with predictive coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/46Embedding additional information in the video signal during the compression process

Definitions

  • the value of the parameters makes it easier to take high-quality photos, even for those who are not experienced enough to take digital photos with certain quality assurance.
  • the digital camera When using landscape mode, the digital camera will adjust the aperture to the minimum to increase the depth of field, so that the photos get the clearest effect.
  • a 90-minute movie may include dozens of clips and scenes. Different scenes, lighting, background, movement of people or objects, etc., will result in different video sequences. The content characteristics of scenes or clips are different. It is obviously not suitable for the change of video content by using the same encoding method for the sequences of these different characteristics.
  • An image encoding method comprising:
  • Parsing the code stream of the decoded image to obtain an image mode value of the image to be decoded decoding the code stream of the image to be decoded by using the image mode value, and outputting the decoded image.
  • the image mode value is encoded and the encoded image mode value is written into the encoded code stream.
  • An image mode decoding method includes:
  • An image mode is determined based on the image mode value.
  • An image decoding device includes:
  • a fourth module configured to parse a code stream of the image to be decoded, to obtain an image mode value of the image to be decoded
  • An image mode encoding device includes:
  • a seventh module configured to encode the image mode value, and write the encoded image mode value into the encoded code stream.
  • An image mode decoding device includes:
  • an eighth module configured to parse and determine an image mode value of the currently decoded image from the image code stream; and a ninth module, configured to determine an image mode according to the image mode value.
  • An image coding system comprising:
  • an obtaining module configured to determine an image mode value corresponding to the image information according to image information of the image to be encoded
  • a first encoding module configured to encode the image information by using an image mode value determined by the acquiring module to form an encoded code stream
  • a second encoding module configured to encode an image mode value determined by the acquiring module, and store the image mode value in the encoded code stream;
  • a transmission module configured to output the encoded code stream carrying the image mode value.
  • An image decoding system comprising:
  • a parsing module configured to parse a code stream of the image to be decoded, to obtain an image mode value of the image to be decoded
  • an output module configured to output the decoded image of the decoding module.
  • An image coding and decoding system comprising:
  • a transmission module configured to output the coded code stream carrying the image mode value
  • a decoding module configured to decode the code stream according to an image mode value obtained by the parsing module
  • an output module configured to output the decoded image of the decoding module.
  • the embodiment of the present invention incorporates an encoding method of image mode characteristics in video coding, and provides a certain encoding and decoding of different scene images by encoding video images according to image mode values of different video image sequences.
  • FIG. 2 is a schematic diagram of a frame-type flow reference of an embodiment of an image encoding method according to the present invention
  • FIG. 6 is a schematic flow chart of an embodiment of an image mode encoding method according to the present invention.
  • FIG. 9 is a schematic diagram of a frame-type flow reference of a typical video image decoder corresponding to an inverse transform, a scaling/inverse quantization, and an entropy decoding according to an embodiment of an image decoding method according to the present invention.
  • Figure 10-a is a schematic diagram of a scene image band distribution template in a default scene mode
  • Figure 10-b is a schematic diagram of a scene image band distribution template in an infrared scene mode
  • Figure 10-C is a schematic diagram of a scene image band distribution template in a night scene mode
  • Figure 10-d is a schematic diagram of a scene image band distribution template in a moving scene mode
  • Embodiment 12 is a schematic structural diagram of Embodiment 2 of an image coding system according to the present invention.
  • Embodiment 13 is a schematic structural diagram of Embodiment 1 of an image decoding system according to the present invention.
  • FIG. 14 is a schematic structural diagram of Embodiment 2 of an image decoding system according to the present invention. detailed description
  • Definition 1 [Scenario of video sequence image] For consecutively captured image sequences of the same camera or the same object, define several contacts of the same camera from different angles or different cameras to the same location or the same object.
  • the sequence of images is a scene. There are large similarities between image features of the same scene, and image sequences of different scenes are quite different in image features.
  • Figure 1-a it is a schematic diagram of a sequence of video images, containing a series of images, and different images are taken in different scenes.
  • the features between the individual images labeled B also have a large similarity; but between the images labeled A and B.
  • the video image sequence is divided into different scene image sequences, that is, the image with similar image feature similarity, and the image sequence belonging to the mark A is divided into the scene A; similarly, the scene B can be obtained.
  • Sequence, scene C sequence such that the input image sequence of the image encoder consists of several different sequence of scenes.
  • the scene mode is a set of parameter values or sets of parameters corresponding to different scene image features, which represent common image features of the sequence of images contained in the scene or shot.
  • the image involved in the embodiment of the present invention includes a still image, a moving image, a residual image of two adjacent images of the moving image, a target image obtained by computing an arbitrary image in the moving image, and the like.
  • the first type, scene mode identification (scene mode identification codeword or scene mode index).
  • the identifier value of the scene mode is a codeword, and the codeword uniquely corresponds to a scene mode. When there are many scene modes, an index may be used to distinguish different scene modes.
  • scene mode parameters can include three categories:
  • the first type the feature parameter value representing the feature of the scene image obtained from the image information.
  • the values of the feature value parameters obtained from the image information include, but are not limited to, the illumination brightness of the image scene, the illumination chromaticity of the image scene, the coefficient band division manner of the transform domain in the image coding, the coefficient band parameter value of the transform domain, and the parameter values thereof. Distribution, the way the target or background moves in the image scene.
  • the second type the current image coding information obtained in image encoding or decoding.
  • image coding information calculated by other modules in the image coding or image decoding process, such as motion vectors, or statistically obtained image coding information, such as the type and number of coding blocks.
  • the third category image coding or decoding, exists and is used to control the control parameters of the encoder encoding process or the decoder decoding process.
  • the parameters include, but are not limited to, the size of the picture group (GOP), the coded picture quantization parameter QP, the number of reference frames, the motion vector search range, the loop filter control, the entropy coding control, and the like.
  • the above-mentioned scene mode parameter set is a form of one or more types of parameters or a combination thereof among the above three types of scene mode parameters.
  • FIG. 4 is a schematic flowchart diagram of an embodiment of an image encoding method according to the present invention.
  • the encoding method of this embodiment may include the following steps:
  • Step 402 Determine a scene mode value of an image corresponding to the image according to image information of the image to be encoded.
  • the scene mode value includes a scene mode identifier value; or includes a scene mode identifier value and a corresponding scene mode parameter value.
  • Step 403 Determine, according to the scene mode of the image to be encoded, whether the current scene mode being used in the encoding has changed.
  • the scene mode identification value changes in the scene mode, or the corresponding scene mode parameter value changes, the current scene mode may be changed.
  • Step 403 includes:
  • Step 4032 If the current scene mode is changed, use the scene mode determined in step 402. As the current scene mode, and update the corresponding scene mode identification value, and the corresponding scene mode parameters.
  • Step 404 Perform image coding on the image to be encoded by using the current scene mode.
  • the current scene mode can participate in the image encoding process as a control parameter in image encoding.
  • the current scene mode may participate in or determine the coding scheme and process including, but not limited to, the following, such as image block quantization method, image block band division method, image intra prediction method, image inter prediction method, and the like. .
  • image block quantization method image block band division method
  • image intra prediction method image inter prediction method
  • image inter prediction method and the like.
  • Step 405 Encode the scene mode value, and write the encoded scene mode value into the encoded code stream.
  • the coding can use a fixed length code, a variable length code, an entropy coding, and the like.
  • Encoding the scene mode values includes encoding the scene mode identification values, or encoding the scene mode parameters. The encoded result will be written to the video image encoded bitstream.
  • the steps 404 and 405 have no order and can be interchanged.
  • FIG. 2 is a schematic diagram of a frame-type flow reference of an embodiment of the image coding method of the present invention.
  • Step 501 Parsing an input image code stream to be decoded, and obtaining the decoded image.
  • Scene mode value The scene mode identifier value is included; or the scene mode identifier value and the corresponding scene mode parameter value are included.
  • Step 502 Determine, according to the parsed scene mode value of the image to be encoded, whether the current scene mode being used in the current decoding process has changed.
  • the scene mode identification value changes in the scene mode, or the corresponding scene mode parameter value changes, the current scene mode may be changed.
  • Step 5022 If the current scene mode is changed, use the scene mode parsed in step 502 as the current scene mode, and update the corresponding scene mode identifier value, and the corresponding scene mode parameter value.
  • Step 503 Perform image decoding on the image to be decoded by using the current scene mode value.
  • the current scene mode value may participate in or determine coding schemes and processes including, but not limited to, image block inverse quantization mode, image block band division method, image intraframe decoding, image interframe prediction compensation, and the like. Thereby a reconstructed image sequence of different image decoding qualities is obtained.
  • FIG. 3 is a schematic diagram of a frame-type flow reference of an embodiment of an image decoding method according to the present invention.
  • the scene mode information existing in the encoded code stream is parsed, and whether the scene mode in the decoding process is switched according to the current scene mode change or not, so that the decoding process switches the image sequence to the scene. Have a certain ability to adapt. And through the scene mode to participate in the process of image decoding, thereby improving the quality of the decoded reconstructed image.
  • Step 602 Determine a scene mode identifier value according to the scene mode value.
  • Each scene mode contains a unique scene mode identification value (identification codeword or index value) that is used to distinguish between different scene modes.
  • the scene mode parameter contains one or several of the three types of mode parameters.
  • mode parameters such as band distribution parameters, coded image quantization parameter QP, illumination brightness of image scene, illumination chromaticity of image scene, band division method, noise intensity, noise type, etc.
  • Determine the value of the scene mode parameter that is, determine the value of the different types of scene mode parameters.
  • the band distribution parameter value the coded image quantization parameter QP value, the scene illumination brightness level, the scene illumination chromaticity size, the band division type, the noise intensity level, the noise type value, and the like.
  • Step 606 Encode the scene mode parameter value, and write the encoded scene mode parameter value into the encoded code stream.
  • Step 607 Output a code stream that includes the result of the scene mode value encoding.
  • FIG. 7 is a schematic flowchart diagram of an embodiment of an image mode decoding method according to the present invention.
  • the image mode decoding of this embodiment may include the following steps:
  • Step 701 Determine a code stream header structure from the coded code stream.
  • Step 702 Parse and obtain a current scene mode identifier value from the code stream header structure.
  • the scene mode value is stored in the stream header structure, including the scene mode identifier value, or includes the scene mode identifier value and the scene mode parameter value.
  • the parsed stream header structure may include one or more of the following hierarchical stream header structures, namely
  • Image header or image extension header
  • Strip head or strip extension head are examples of strips head or strip extension head.
  • the scene mode of the current decoding sequence is obtained by parsing; when the image scene mode exists in the group header or the group extension header, Parsing the scene mode of the current decoded picture group; when the image scene mode exists in the image header or the image expansion header, parsing the scene mode of the current decoded image; when the image scene mode exists in the strip group (set) header or strip When the group (set) is extended in the header, the scene mode of the current decoded stripe group (set) is parsed; when the image scene mode exists in the strip header or the stripe extension header, the scene mode of the current decoded stripe is parsed;
  • the default mode of the scene mode when the scene mode does not exist is; if the image scene mode does not exist in the code stream header structure of the same level, the current scene mode defaults to the same level.
  • the scene mode in the previous stream header structure is the same. For example, if there is no image scene mode in the current decoded image header, the decoded image scene mode defaults to the same scene mode as in the previous decoded image header.
  • the current scene mode defaults to the same scene mode as the previous level stream header structure. For example, if there is no scene mode in all currently decoded image headers, the current scene mode defaults to the image level upper layer and the scene mode in the image group header structure; if there is no scene mode in the image group hierarchy, the current scene The mode defaults to the scene mode in the upper layer of the image group, the sequence header or the sequence extension header structure.
  • Step 703 Determine, by using the scene mode identifier value obtained in step 702, a current scene mode to be used in the image decoding process.
  • Step 704 Determine, according to the scene mode identifier value parsed in the code stream, whether the current scene mode is A change has occurred, and if no, go to step 708 to directly output the current scene mode; if yes, go to step 705.
  • the scene mode parameter value may not be analyzed.
  • the default method of the current scene mode parameter is the same as the default mode of the scene mode.
  • the scene mode identifier is changed in the code stream, it indicates that the scene mode is switched. Then, you need to continue to parse the scene mode parameter value in the stream, and update the current default value with the parsed value as the current scene mode parameter value.
  • Step 705 Determine, according to the code stream header structure, whether the scene mode includes a scene mode parameter value, and determine whether to continue to parse the scene mode parameter value. If not, go to step 708 to output the current scene mode. If there is a scene mode parameter, continue to parse the scene mode parameter value, and go to step 706.
  • Step 706 Determine, by the scene mode identifier value, a scene mode parameter value.
  • determining the scene mode parameter value comprises determining:
  • the type of the scene mode parameter corresponding to the encoding end is determined, that is, the scene mode parameter includes one or more of the three types of mode parameters.
  • mode parameters such as band distribution parameters, coded image quantization parameter QP, illumination brightness of image scene, illumination chromaticity of image scene, band division mode, noise intensity, noise type, etc.
  • the band distribution parameter value ie determining the values of different types of scene mode parameters. For example, the band distribution parameter value, the coded image quantization parameter QP value, the scene illumination brightness level, the scene illumination chromaticity size, the band division type, the noise intensity level, the noise type, and the like.
  • Step 707 Decode a set of scene mode parameter values (or parameter values) in the code stream.
  • Step 708 Output the determined scene mode, and the output result is used to participate in an image decoding process.
  • the scene mode identification value and the scene mode parameter value are decoded to determine a corresponding scene mode, thereby realizing decoding of the image scene mode.
  • Encoding mode can include but not limited to three methods, namely direct coding, indirect coding and entropy coding. among them, Direct encoding, that is, writing image scene mode identification values and/or scene mode parameter values directly into a video or image encoded code stream;
  • Indirect encoding which converts the transformed values of image scene mode identification values and/or scene mode parameter values into a video or image encoded code stream.
  • the above transformation methods include, but are not limited to, addition, subtraction, multiplication, division, AND, OR, and other mathematical or logical operations;
  • the entropy coding that is, the image scene mode identification value and/or the scene mode parameter value, or the conversion value of the two, is entropy encoded and written into the video or image coded code stream.
  • Entropy coding methods include, but are not limited to, fixed length code, variable length code, binarized adaptive coding, Huffman coding, run length coding, context-based variable length coding CAVLC, context-based arithmetic coding CABAC, and the like.
  • Decoding method uses the corresponding decoding method with the encoding end
  • the code stream value directly read from the code stream is the resolution result value of the scene mode identifier and its scene mode parameter.
  • the code stream value directly read from the code stream is obtained by the inverse transform method corresponding to the encoding end to obtain an image scene mode identifier and an analysis result value of the scene mode parameter.
  • the inverse transform method described above includes, but is not limited to, addition, subtraction, multiplication, division, AND, OR, and other mathematical or recurring operations.
  • the code stream value directly read from the code stream is obtained according to the entropy decoding method corresponding to the encoding end, and the image scene mode identifier and the resolution result value of the scene mode parameter are obtained.
  • the above entropy decoding methods include, but are not limited to, fixed length code decoding, variable length code decoding, decoding of binary adaptive decoding methods, Huffman coding, run length coding, context-based variable length coding CAVLC, context-based arithmetic coding. CAB AC, etc.
  • the scene pattern that has been determined in advance is 2 N
  • N is a positive integer
  • the scene mode is represented in the form of an index value.
  • the scene mode index value may be binary code.
  • the scene mode index value is represented by a 4-bit binary code.
  • the scene mode index is represented by U(N), which is a binary integer of N bits.
  • scene modes for example, can be:
  • Indoor scene mode outdoor scene mode, infrared mode, day mode, night mode, mode, rain and snow mode, image gradient mode, noise mode, distant mode, and the like.
  • the above index value may also represent a scene mode index value using a 1-Mbit binary variable length code.
  • a comparison table of generated scene mode binary codes and index values can be shown in Table 2.
  • Encoding end Writing the scene mode to the code stream includes writing the scene mode identification value to the code stream, and when the scene mode parameter is present, further including writing the scene mode parameter value to the code stream.
  • Parsing the scene mode from the code stream includes parsing the scene mode identifier value from the code stream. When the scene mode parameter value is present, the method further includes parsing the scene mode parameter value from the code stream.
  • the scene mode can exist in different code stream header structures.
  • a sequence header or a sequence extension header containing a scene mode is as follows, and the code stream syntax of the sequence header is shown in Table 3.
  • sequence- header() can also be replaced by the sequence ⁇ 'J extension header sequence- extention-header().
  • the current scene mode index scene_mode is represented by a 5-bit binary code u(5), and defines a scene mode parameter, scene noise intensity noise-intensity.
  • the scene noise intensity is encoded by entropy coding se(v).
  • the scene mode uses an Nbit integer and writes to the image header, such as the I image header or the PB image header.
  • the code stream syntax of the image header is shown in Table 4.
  • the scene mode parameter scene_freq_pattern corresponding to the current scene mode is written as a scene mode band distribution template, and the mode parameter is encoded by a 2-bit binary code.
  • Current scene mode scene mode is night scene mode
  • the strip is a network packing unit and also represents the image content.
  • FIG. 8 a schematic diagram of a frame-type flow reference using a typical video image encoder corresponding to transform, scaling/quantization, and entropy coding is used in the image coding method embodiment of the present invention; as shown in FIG. 9, the image of the present invention is shown in FIG.
  • FIG. 9 the image of the present invention is shown in FIG.
  • step 404 it is assumed that the scene mode identification value and the scene mode parameter value form defined in Table 4 are used.
  • the scene mode parameter corresponding to the scene mode scene-mode is scene_freq_pattern, which represents a transform coefficient band distribution template of the current scene image, and the template is represented by a binary integer U(N), as shown in Table 6 below.
  • Figure 10-a - Figure 10-d shows a schematic diagram of the scene freq pattern for the four scene image bands. among them,
  • Figure 10-a is a schematic diagram of the scene image band distribution template ( Default_ scene_freq _pattem ) in the default scene mode. It is suitable for fixed cameras. Most of the moving target objects in the scene are horizontal motion, such as moving from left to right, or from right. Move to the left;
  • Figure 10-b is a schematic diagram of the infrared scene mode distribution template (Infrared- scene-freq_pattern), which is suitable for camera fixation, and the shooting conditions are infrared imaging sequences;
  • Figure 10-c is a schematic diagram of the night scene scene distribution template (Night scene-freq_pattern) in the night scene mode, suitable for camera fixation, shooting scenes at night;
  • Figure 10-d is a schematic diagram of the scene image band distribution template (Moving-scene_freq_pattern) in the motion scene mode, suitable for camera fixation, the foreground object has dramatic horizontal motion (from left to right or right to left); The camera itself moves horizontally (from left to right or from right to left).
  • Scene_freq_pattern scene image band distribution template
  • the scene mode scene mode and the scene mode band distribution template parameter scene_freq_pattern are used in the scaling/quantization process in image encoding.
  • the scene mode that has been determined by the encoding end is night mode
  • find the corresponding band distribution template scene_freq_pattern night scene freq pattern according to scene_mode, and press the scene_freq_pattern , value to obtain the current scene band distribution template as Figure 10-c. Shown.
  • the data of the transformed quantized image block is 2232 1348 991 827 499 336 190 98
  • the current scene mode scene_mode is parsed from the image header shown in Table 4, and the scene mode parameter, the scene band distribution template scene_freq_pattern, and the band discard template parameter are further analyzed.
  • the image quantized coefficient block controlled by the frequency band is BQF, and the image transform domain coefficient block obtained by inverse quantization is B.
  • a first module configured to determine an image mode value corresponding to the image information according to image information of the image to be encoded
  • a second module configured to encode the image information by using the image mode value to obtain a coded code stream
  • a third module configured to encode the image mode value, and write the encoded image mode value into the encoded code stream.
  • the second module encodes the input image information by using the image mode value, that is, the scene mode characteristic, and when the scene switching occurs in the coding sequence, the method of the embodiment can be used. Adapting to the image characteristics of the transformed scene, improving the compression ratio of the image encoding.
  • Image decoding device embodiment
  • a fourth module configured to parse a code stream of the image to be decoded, to obtain an image mode value of the image to be decoded
  • a fifth module configured to decode the code stream of the image to be decoded by using the image mode value, and output the decoded image.
  • the fourth module parses the image mode information existing in the code stream, and the fifth module decodes the code stream according to the image mode, thereby improving the quality of the decoded reconstructed image.
  • the image encoding device and the image decoding device described in the above embodiments of the present invention may constitute a system.
  • a sixth module configured to determine an image mode value of the image to be encoded
  • a seventh module configured to encode the image mode value and write into the encoded code stream.
  • the encoded image mode value is written into the encoded code stream by the seventh module, thereby implementing encoding of the image mode.
  • the image mode here can be a scene mode, or other modes in an actual application.
  • Image mode decoding device embodiment
  • an eighth module configured to parse and determine an image mode value of the currently decoded image from the image code stream; and a ninth module, configured to determine an image mode according to the image mode value.
  • the ninth module determines the scene mode corresponding to the scene mode according to the scene mode identifier value or according to the scene mode identifier value and the scene mode parameter, thereby implementing Decoding the image scene mode.
  • Image coding system embodiment 1 The image mode encoding device and the image mode decoding device described in the above embodiments of the present invention may constitute a system.
  • Image coding system embodiment 1
  • FIG. 11 is a schematic structural diagram of Embodiment 1 of an image coding system according to the present invention.
  • the embodiment includes an obtaining module 1, a first encoding module 2 connected to the obtaining module 1, a second encoding module 3 respectively connected to the obtaining module 1 and the first encoding module 2, and a transmission module 4 connected to the second encoding module 3. .
  • the obtaining module 1 is configured to determine an image mode value corresponding to the image information according to the input image information of the image to be encoded; the first encoding module 2 is configured to encode the image information by using an image mode value determined by the acquiring module 1 Forming an encoded code stream; the second encoding module 3 is configured to encode the image mode value determined by the obtaining module 1 and store it in the encoded code stream; and the transmitting module 4 is configured to output the encoded code stream carrying the image mode value.
  • the image mode is a scene mode of an image, and the scene mode includes a scene mode identifier, or includes a scene mode identifier and a scene mode parameter.
  • FIG. 12 is a schematic structural diagram of Embodiment 2 of an image coding system according to the present invention.
  • the obtaining module 1 in this embodiment may further include a first storage unit 11, a second storage unit 12, a first matching unit 13 connected to the first storage unit 11, and a first matching unit respectively.
  • the first storage unit 11 is configured to store one or more scene mode identifier values;
  • the second storage unit 12 is configured to store a scene mode parameter value corresponding to the scene mode identifier value stored by the first storage unit 11;
  • 13 is configured to match the scene mode identifier value corresponding to the image information in the first storage unit 11 according to the input image information of the image to be encoded;
  • the second matching unit 14 is configured to match the scene mode according to the first matching unit 13
  • the identifier value matches the scene mode parameter value corresponding to the scene mode identifier value in the second storage unit 12;
  • the first encoding module encodes the image information by using the scene mode identifier value or the stored scene mode identifier value and the scene mode parameter value stored by the third storage unit to form an encoded code stream;
  • the module encodes the above scene mode value and stores it in the encoded code stream;
  • the transmission module is configured to output the encoded code stream carrying the scene mode value.
  • the first control unit may be further configured to determine, according to the parsed scene mode value of the image to be encoded, whether the current scene mode being used in the current decoding process has changed. When the scene mode identification value changes in the scene mode, or the corresponding scene mode parameter value changes, the current scene mode may be changed. If the current scene mode is changed, the first control unit notifies the third storage unit to update the stored corresponding scene mode identifier value, and the corresponding scene mode parameter value, that is, the first encoding module and the second encoding module use the new scenario.
  • the image encoding system of the embodiment of the present invention determines, by using the first control unit, whether the current scene mode being used in the current decoding process has changed in the video encoding, and if the current scene mode is changed, the first control unit notifies the third storage.
  • the unit updates the corresponding scene mode identifier value stored, and the corresponding scene mode parameter value, that is, the first encoding module and the second encoding module use the new scene mode value to perform image encoding on the image to be encoded; if the current scene mode has not changed, The first control unit notifies the third storage unit not to update the stored corresponding scene mode identifier value, and the corresponding scene mode parameter value, that is, the first encoding module and the second encoding module continue to use the current (ie, previous time) scene mode.
  • the image is encoded by the image to be encoded, so that when the scene is not switched in the encoding sequence, the scene mode used in the current encoding is not changed, the encoding time is shortened, and the encoding efficiency is improved.
  • Image decoding system embodiment 1
  • FIG. 13 is a schematic structural diagram of Embodiment 1 of an image decoding system according to the present invention.
  • This embodiment includes a parsing module 5, a decoding module 6, and an output module 7 which are sequentially connected.
  • the parsing module 5 is configured to parse the received code stream of the image to be decoded to obtain an image mode value of the decoded image; and the decoding module 6 is configured to decode the code stream according to the image mode value obtained by the parsing module 5;
  • the output module 7 is configured to output the decoded image of the decoding module.
  • the image mode is a scene mode of an image, and the scene mode includes a scene mode identifier, or includes a scene mode identifier and a scene mode parameter.
  • FIG. 14 is a schematic structural diagram of Embodiment 2 of an image decoding system according to the present invention.
  • the parsing module 5 in this embodiment may include: a first storage unit 11 and a second storage list.
  • the element 12 is a third matching unit 51 connected to the first storage unit 11 and the second storage unit 12, respectively, and a fourth storage unit 52 connected to the third matching unit 51.
  • the first storage unit 11 is configured to store one or more scene mode identifier values
  • the second storage unit 12 is configured to store a scene mode parameter value corresponding to the scene mode identifier value stored by the first storage unit 11
  • the 51 is configured to parse the encoded code stream of the received image to be decoded, match the scene mode identifier value in the first storage unit 11 or match the code stream in the first storage unit 11 and the second storage unit 12, respectively.
  • the fourth storage unit 52 is configured to store the scene mode identifier value matched by the third matching unit 51 or store the scene mode identifier value and the scene mode parameter matched by the third matching unit 51. value.
  • the decoding module is configured to decode the encoded code stream according to the scene mode identifier value stored by the fourth storage unit or according to the scene mode identifier and the scene mode parameter stored by the fourth storage unit.
  • the embodiment of the present invention may further include a second control unit, configured to determine, according to the parsed scene mode of the image to be encoded, whether the current scene mode being used in the current decoding process has changed.
  • the scene mode identification value changes in the scene mode, or the corresponding scene mode parameter changes
  • the current scene mode may be changed. If the current scene mode is changed, the second control unit notifies the fourth storage unit to update the stored corresponding scene mode identifier value, and the corresponding scene mode parameter value, that is, the code stream of the image to be decoded by the decoding module using the new scene mode.
  • the second control unit if the current scene mode has not changed, the second control unit notifies the fourth storage unit not to update the stored corresponding scene mode identifier value, and the corresponding scene mode parameter value, that is, the decoding module continues to use the current (ie, before Once)
  • the scene mode decodes the code stream of the decoded image.
  • the image decoding system of the embodiment of the present invention determines, by the second control unit, whether the current scene mode being used in the current decoding process has changed in the video image decoding. If the current scene mode changes, the second control unit notifies the fourth
  • the storage unit updates the stored corresponding scene mode identifier value, and the corresponding scene mode parameter value, that is, the decoding module decodes the code stream of the image to be decoded using the new scene mode; if the current scene mode has not changed, the second control unit
  • the fourth storage unit is notified not to update the stored corresponding scene mode identifier value, and the corresponding scene mode parameter value, that is, the decoding module continues to decode the code stream of the image to be decoded using the current (ie, previous time) scene mode.
  • the image decoding system of this embodiment can change and reject according to the current scene mode. Whether to switch the scene mode in the decoding process, so that the decoding process has a certain adaptive ability to the scene switching image sequence, shortening the encoding time and improving the encoding efficiency.
  • any of the above embodiments of the image coding system and the image decoding system may constitute an image coding and decoding system, and details are not described herein.
  • the method includes the steps of the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

Abstract

An image and image mode coding and decoding method, apparatus and an image coding and decoding system. The image coding method comprises making sure the image mode value corresponding to the image information according to the image information of image to be encoded; coding the image information to get the coded code stream with the image mode value; coding the image mode value and logging the coded image mode value in the coded code stream. The image decoding method comprises parsing the code stream of image to be decoded to get the image mode value of image to be decoded; decoding the code stream of image to be decoded with the image mode value; outputting the decoded image.

Description

图像及图像模式编码和解码方法及装置、 图像编解码系统 本申请要求了 2007 年 11 月 30 日提交的、 申请号为 CN 200710178532.4、 发明名称为"图像编 /解码方法、 装置和系统"的中国申请 的优先权, 其全部内容通过引用结合在本申请中。  BACKGROUND OF THE INVENTION 1. Field of the Invention Priority of the application, the entire contents of which are incorporated herein by reference.
技术领域 Technical field
本发明涉及图像编解码技术领域, 尤其是一种图像及图像模式编码和解 码方法及装置、 图像编解码系统。 背景技术  The present invention relates to the field of image coding and decoding technologies, and in particular, to an image and image mode coding and decoding method and apparatus, and an image coding and decoding system. Background technique
在视频图像编解码技术中, 输入信号通常为一个图像序列, 图像序列通 常划分为一幅一幅的图像, 也称图像帧输入到编码器中, 因此, 图像是编解 码器的处理信号的一种基本单元。  In the video image coding and decoding technology, the input signal is usually an image sequence, and the image sequence is usually divided into one image and one image, which is also referred to as an image frame input to the encoder. Therefore, the image is a processed signal of the codec. Basic unit.
实际应用中, 因为图像的拍摄环境情况不同, 所以拍摄的图像特性显著 不同。 不同的拍摄条件将直接影响到所拍摄的图像质量; 而拍摄场景不同, 拍摄得到的图像特性变化就很大, 要想获得较佳的拍摄图像质量, 对拍摄者 和摄像设备提出了较高的要求。要求摄像者根据拍摄对象和拍摄场景的不同, 来调整摄像机的光圈、 快门、 焦距、 测光方式及闪光灯等。 为了解决因拍摄 环境情况和拍摄场景条件不同, 对拍摄图像质量的影响, 数码相机等厂商在 数码相机内加入了数种场景模式, 并预先调节好光圈、 快门、 焦距、 测光方 式及闪光灯等参数值, 这样就更加方便拍出高质量的照片, 既使那些经验不 足的用户也能拍出有一定质量保证的数码相片。 目前, 数码相机内的场景模 式少则有四、 五种, 多则有二三十种, 例如: 使用风景模式时, 数码相机会 把光圈调到最小以增加景深, 使相片获得最清晰的效果; 使用人像模式时, 数码相机能调节色调、对比度或柔化效果使拍摄的人像表现更强的肤色效果; 使用夜景模式时, 数码相机延长快门曝光时间, 以保证相片充分曝光, 相片 画面也会比较亮; 使用动态模式(运动模式) 时, 数码相机会把快门速度调 到较快或提高 ISO感光值, 用来拍摄高速移动的物体。 数码相机中的场景模 式对应的是数码相机的光学特性参数, 如光圈、 快门、 焦距、 测光方式及闪 光灯等参数。 这些参数可以在拍摄时, 通过拍摄者选取来得到较佳的拍摄效 果。 但是对于视频序列, 拍摄者在拍摄完毕后, 得到的视频图像序列将是固 定的, 这些视频图像序列作为视频图像编码器的输入信号。 对于视频图像编 码器而言, 一般无法确定拍摄条件或拍摄环境, 更无法控制拍摄设备的光学 特性参数。 In practical applications, the characteristics of the captured images are significantly different because of the different shooting conditions of the images. Different shooting conditions will directly affect the quality of the captured image; while the shooting scene is different, the characteristics of the captured image will change greatly. In order to obtain better image quality, the photographer and camera equipment are higher. Claim. The photographer is required to adjust the aperture, shutter, focus, metering method, and flash of the camera according to the subject and the shooting scene. In order to solve the impact on the quality of the captured image due to different shooting conditions and shooting conditions, digital cameras and other manufacturers have added several scene modes to the digital camera, and pre-adjust the aperture, shutter, focal length, metering method and flash. The value of the parameters makes it easier to take high-quality photos, even for those who are not experienced enough to take digital photos with certain quality assurance. At present, there are four or five scene modes in digital cameras, and there are twenty or thirty kinds of scenes. For example: When using landscape mode, the digital camera will adjust the aperture to the minimum to increase the depth of field, so that the photos get the clearest effect. ; When using portrait mode, the digital camera can adjust the hue, contrast or softening effect to make the portrait of the person perform a stronger skin tone effect; when using the night scene mode, the digital camera extends the shutter exposure time to ensure that the photo is fully exposed, and the photo will also be Brighter; When using dynamic mode (sport mode), the digital camera adjusts the shutter speed to a faster or higher ISO sensitivity for shooting high-speed moving objects. Scene mode in a digital camera The format corresponds to the optical characteristics of the digital camera, such as aperture, shutter, focus, metering and flash. These parameters can be selected by the photographer to get better results when shooting. However, for the video sequence, the sequence of video images obtained by the photographer after the shooting is completed will be fixed, and these video image sequences are used as input signals of the video image encoder. For video image encoders, it is generally impossible to determine the shooting conditions or shooting conditions, and it is not possible to control the optical characteristics of the shooting device.
另外, 视频图像编码器所编码的是图像的像素值, 既使在拍摄时釆用了 类似数码相机的光学特性场景模式, 但是不同场景下拍摄的序列特性依然变 化很大, 这对视频图像编码器的编码性能有较大影响, 如: 不同场景下的电 影片段。 并且拍摄设备的光学特性参数与视频图像编码器并没有直接联系, 这些光学特性参数无法使用到视频图像编码器中。  In addition, the video image encoder encodes the pixel value of the image, even if a digital camera-like optical characteristic scene mode is used in shooting, but the sequence characteristics of shooting in different scenes still vary greatly, which encodes the video image. The encoding performance of the device has a great influence, such as: movie clips in different scenes. And the optical characteristic parameters of the shooting device are not directly related to the video image encoder. These optical characteristic parameters cannot be used in the video image encoder.
目前, 在联合图像专家组 ( joint photographic experts group, Jpeg ), 运动 图像专家组 ( moving picture experts grou , MPEG )规范 1 ( Mpegl )、 Mpeg2、 Mpeg4、 H.264、 AVS等图像编码标准或运动图像编码标准中, 均不对图像或 视频图像序列按照图像场景进行区分, 即对整个视频图像序列按照统一的编 码方法进行编码, 编码参数在编码前就设定好。 然而输入的视频图像序列因 为拍摄场景的不同而使得图像的特性差别很大, 无区分图像场景的编码方法 无法适合视频图像的变化。  Currently, in the joint photographic experts group (Jpeg), moving picture experts grou (MPEG) specification 1 (Mpegl), Mpeg2, Mpeg4, H.264, AVS and other image coding standards or moving images In the coding standard, the image or video image sequence is not distinguished according to the image scene, that is, the entire video image sequence is encoded according to a unified coding method, and the coding parameters are set before encoding. However, the input video image sequence differs greatly in the characteristics of the image due to the difference in the shooting scene, and the encoding method without distinguishing the image scene cannot be adapted to the change of the video image.
在影视应用中, 一部长 90分钟的电影, 就可能包括数十个片段和场景, 不同场景的拍摄情况、 光照、 背景、 人物或物体的运动等条件不同, 就会导 致拍摄的视频序列的各个场景或片段的内容特性不同, 对这些不同特性的序 列釆用同一种编码方法显然无法适合视频内容的变化。  In film and television applications, a 90-minute movie may include dozens of clips and scenes. Different scenes, lighting, background, movement of people or objects, etc., will result in different video sequences. The content characteristics of scenes or clips are different. It is obviously not suitable for the change of video content by using the same encoding method for the sequences of these different characteristics.
在视频监控应用中, 使用监控摄像的应用场景多种多样, 例如: 室内监 控, 室外监控, 红外监控等, 即使是同一监控场景, 因为环境光照变化, 拍 摄的监控序列特性变化也比较显著, 例如: 白天、 夜晚、 阴雨天、 雨雪天等。 这些监控的应用场合变化或环境光照的变化对视频编码器的编码性能影响比 较大, 使用同一种编码方法对这些不同场景的序列进行编码将导致视频编码 器的编码性能不高, 降低编码效率或者不同场景下的编码视频质量严重不平 衡导致图像编码主观质量下降。 发明内容 In video surveillance applications, there are many application scenarios for surveillance cameras, such as: indoor monitoring, outdoor monitoring, infrared monitoring, etc. Even in the same monitoring scene, the characteristics of the monitoring sequence are changed significantly due to changes in ambient lighting, for example. : Day, night, rainy days, rain and snow, etc. The application change of these monitors or the change of ambient illumination has a great influence on the coding performance of the video encoder. Using the same coding method to encode the sequences of these different scenes will result in low coding performance of the video encoder, reducing coding efficiency or The severe imbalance of coded video quality in different scenarios leads to a decrease in the subjective quality of image coding. Summary of the invention
提供一种图像编码方法、 装置和系统, 一种图像解码方法、 装置和系统, 一种图像模式编码方法和装置, 一种图像模式解码方法和装置, 以及一种图 像编解码系统, 可以在对场景变化的视频图像编解码过程中, 提高对不同场 景的视频图像编解码压缩性能。  Provided are an image coding method, apparatus and system, an image decoding method, apparatus and system, an image mode coding method and apparatus, an image mode decoding method and apparatus, and an image coding and decoding system, which may be In the video image encoding and decoding process of scene change, the video image encoding and decoding compression performance of different scenes is improved.
一种图像编码方法, 包括:  An image encoding method, comprising:
根据待编码图像的图像信息确定与所述图像信息对应的图像模式值; 利用所述图像模式值对所述图像信息进行编码, 得到编码码流; 对所述图像模式值进行编码, 并将编码后的所述图像模式值写入到所述 编码码流中。  Determining an image mode value corresponding to the image information according to image information of the image to be encoded; encoding the image information by using the image mode value to obtain an encoded code stream; encoding the image mode value, and encoding The latter image mode value is written into the encoded code stream.
一种图像解码方法, 包括:  An image decoding method includes:
对待解码图像的码流进行解析, 得到所述待解码图像的图像模式值; 利用所述图像模式值对所述待解码图像的码流进行解码, 输出解码后的 图像。  Parsing the code stream of the decoded image to obtain an image mode value of the image to be decoded; decoding the code stream of the image to be decoded by using the image mode value, and outputting the decoded image.
一种图像模式编码方法, 包括:  An image mode encoding method includes:
确定待编码图像的图像模式值;  Determining an image mode value of the image to be encoded;
对所述图像模式值进行编码, 并将编码后的所述图像模式值写入到编码 码流中。  The image mode value is encoded and the encoded image mode value is written into the encoded code stream.
一种图像模式解码方法, 包括:  An image mode decoding method includes:
从图像码流中解析并确定当前解码图像的图像模式值;  Parsing and determining an image mode value of the currently decoded image from the image code stream;
根据所述图像模式值, 确定图像模式。  An image mode is determined based on the image mode value.
一种图像编码装置, 包括:  An image encoding device comprising:
第一模块, 用于根据待编码图像的图像信息确定与所述图像信息对应的 图像模式值;  a first module, configured to determine an image mode value corresponding to the image information according to image information of the image to be encoded;
第二模块, 用于利用所述图像模式值对所述图像信息进行编码, 得到编 码码流;  a second module, configured to encode the image information by using the image mode value to obtain a coded code stream;
第三模块, 用于对所述图像模式值进行编码, 并将编码后的所述图像模 式值写入到所述编码码流中。 一种图像解码装置, 包括: And a third module, configured to encode the image mode value, and write the encoded image mode value into the encoded code stream. An image decoding device includes:
第四模块, 用于对待解码图像的码流进行解析, 得到所述待解码图像的 图像模式值;  a fourth module, configured to parse a code stream of the image to be decoded, to obtain an image mode value of the image to be decoded;
第五模块,用于利用所述图像模式值对所述待解码图像的码流进行解码, 输出解码后的图像。  And a fifth module, configured to decode the code stream of the image to be decoded by using the image mode value, and output the decoded image.
一种图像模式编码装置, 包括:  An image mode encoding device includes:
第六模块, 用于确定待编码图像的场景模式值;  a sixth module, configured to determine a scene mode value of the image to be encoded;
第七模块, 用于对所述图像模式值进行编码, 并将将编码后的图像模式 值写入到编码码流中。  And a seventh module, configured to encode the image mode value, and write the encoded image mode value into the encoded code stream.
一种图像模式解码装置, 包括:  An image mode decoding device includes:
第八模块, 用于从图像码流中解析并确定当前解码图像的图像模式值; 第九模块, 用于根据所述图像模式值, 确定图像模式。  And an eighth module, configured to parse and determine an image mode value of the currently decoded image from the image code stream; and a ninth module, configured to determine an image mode according to the image mode value.
一种图像编码系统, 包括:  An image coding system comprising:
获取模块, 用于根据待编码图像的图像信息确定与所述图像信息对应的 图像模式值;  And an obtaining module, configured to determine an image mode value corresponding to the image information according to image information of the image to be encoded;
第一编码模块, 用于利用所述获取模块确定的图像模式值对所述图像信 息进行编码, 形成编码码流;  a first encoding module, configured to encode the image information by using an image mode value determined by the acquiring module to form an encoded code stream;
第二编码模块, 用于对所述获取模块确定的图像模式值进行编码, 并存 储到所述编码码流中;  a second encoding module, configured to encode an image mode value determined by the acquiring module, and store the image mode value in the encoded code stream;
传输模块 , 用于输出所述携带有图像模式值的编码码流。  And a transmission module, configured to output the encoded code stream carrying the image mode value.
一种图像解码系统, 包括:  An image decoding system, comprising:
解析模块, 用于对待解码图像的码流进行解析, 得到所述待解码图像的 图像模式值;  a parsing module, configured to parse a code stream of the image to be decoded, to obtain an image mode value of the image to be decoded;
解码模块, 用于根据所述解析模块得到的图像模式值对所述码流进行解 码;  a decoding module, configured to decode the code stream according to an image mode value obtained by the parsing module;
输出模块, 用于输出所述解码模块解码后的图像。  And an output module, configured to output the decoded image of the decoding module.
一种图像编解码系统, 包括:  An image coding and decoding system, comprising:
获取模块, 用于根据待编码图像的图像信息确定与所述图像信息对应的 图像模式值; 第一编码模块, 用于利用所述获取模块确定的图像模式值对所述图像信 息进行编码, 形成编码码流; An acquiring module, configured to determine an image mode value corresponding to the image information according to image information of an image to be encoded; a first encoding module, configured to encode the image information by using an image mode value determined by the acquiring module to form an encoded code stream;
第二编码模块, 用于对所述获取模块确定的图像模式值进行编码, 并存 储到所述编码码流中;  a second encoding module, configured to encode an image mode value determined by the acquiring module, and store the image mode value in the encoded code stream;
传输模块 , 用于输出所述携带有图像模式值的编码码流;  a transmission module, configured to output the coded code stream carrying the image mode value;
解析模块, 用于对待解码图像的码流进行解析, 得到所述待解码图像的 图像模式值;  a parsing module, configured to parse a code stream of the image to be decoded, to obtain an image mode value of the image to be decoded;
解码模块, 用于根据所述解析模块得到的图像模式值对所述码流进行解 码;  a decoding module, configured to decode the code stream according to an image mode value obtained by the parsing module;
输出模块, 用于输出所述解码模块解码后的图像。  And an output module, configured to output the decoded image of the decoding module.
由上述技术方案可以看出, 本发明实施例在视频编码中融入了图像模式 特性的编码方法, 通过根据不同视频图像序列的图像模式值对视频图像进行 编码, 对不同场景图像编解码提供了一定的场景自适应能力, 进而提高在不 同场景下的编解码压缩性能。 附图说明  It can be seen from the above technical solution that the embodiment of the present invention incorporates an encoding method of image mode characteristics in video coding, and provides a certain encoding and decoding of different scene images by encoding video images according to image mode values of different video image sequences. The ability to adapt the scene to improve the codec compression performance in different scenarios. DRAWINGS
图 1-a为视频图像序列的示意图;  Figure 1-a is a schematic diagram of a sequence of video images;
图 1 -b为视频图像序列划分为不同场景图像序列的示意图;  Figure 1-b is a schematic diagram of a video image sequence divided into different scene image sequences;
图 2为本发明图像编码方法实施例的框架式流程参考示意图;  2 is a schematic diagram of a frame-type flow reference of an embodiment of an image encoding method according to the present invention;
图 3为本发明图像解码方法实施例的框架式流程参考示意图;  3 is a schematic diagram of a frame-type flow reference of an embodiment of an image decoding method according to the present invention;
图 4为本发明图像编码方法实施例的流程示意图;  4 is a schematic flow chart of an embodiment of an image encoding method according to the present invention;
图 5为本发明图像解码方法实施例的流程示意图;  FIG. 5 is a schematic flowchart diagram of an embodiment of an image decoding method according to the present invention; FIG.
图 6为本发明图像模式编码方法实施例的流程示意图;  6 is a schematic flow chart of an embodiment of an image mode encoding method according to the present invention;
图 Ί为本发明图像模式解码方法实施例的流程示意图;  Figure Ί is a schematic flowchart of an embodiment of an image mode decoding method according to the present invention;
图 8为本发明图像编码方法实施例中使用包含变换、 缩放 /量化、 熵编码 所对应的典型视频图像编码器的框架式流程参考示意图;  8 is a schematic diagram of a frame-type flow reference using a typical video image encoder corresponding to transform, scaling/quantization, and entropy coding in an embodiment of an image encoding method according to the present invention;
图 9为本发明图像解码方法实施例中使用包含反变换、 缩放 /反量化、 熵 解码所对应的典型视频图像解码器的框架式流程参考示意图;  FIG. 9 is a schematic diagram of a frame-type flow reference of a typical video image decoder corresponding to an inverse transform, a scaling/inverse quantization, and an entropy decoding according to an embodiment of an image decoding method according to the present invention; FIG.
图 10-a为默认场景模式下场景图像频带分布模板的示意图; 图 10-b为红外场景模式下场景图像频带分布模板的示意图; 图 10-C为夜间场景模式下场景图像频带分布模板的示意图; Figure 10-a is a schematic diagram of a scene image band distribution template in a default scene mode; Figure 10-b is a schematic diagram of a scene image band distribution template in an infrared scene mode; Figure 10-C is a schematic diagram of a scene image band distribution template in a night scene mode;
图 10-d为运动场景模式下场景图像频带分布模板的示意图;  Figure 10-d is a schematic diagram of a scene image band distribution template in a moving scene mode;
图 11为本发明图像编码系统实施例一的结构示意图;  11 is a schematic structural diagram of Embodiment 1 of an image coding system according to the present invention;
图 12为为本发明图像编码系统实施例二的结构示意图;  12 is a schematic structural diagram of Embodiment 2 of an image coding system according to the present invention;
图 13为本发明图像解码系统实施例一的结构示意图;  13 is a schematic structural diagram of Embodiment 1 of an image decoding system according to the present invention;
图 14为本发明图像解码系统实施例二的结构示意图。 具体实施方式  FIG. 14 is a schematic structural diagram of Embodiment 2 of an image decoding system according to the present invention. detailed description
为了便于对本发明具体实施方式的理解, 下面将结合具体例子对本发明 实施例方法的具体实现过程进行详细的说明。  In order to facilitate the understanding of the specific embodiments of the present invention, the specific implementation process of the method of the embodiments of the present invention will be described in detail below with reference to specific examples.
为了更好地描述本发明方法, 这里将拍摄于不同条件下的视频图像序列 做以下定义。  In order to better describe the method of the present invention, the sequence of video images taken under different conditions is defined as follows.
定义 1: [视频序列图像的场景】 对于同一摄像机对同一地点或同一对象 的连续拍摄的图像序列, 定义数个联系的由同一摄像机从不同的角度或不同 的摄像机对同一地点或同一对象的拍摄图像序列为一个场景。 同一场景的图 像特征之间具有较大的相似性, 而不同场景的图像序列在图像特征上有很大 的不同。  Definition 1: [Scenario of video sequence image] For consecutively captured image sequences of the same camera or the same object, define several contacts of the same camera from different angles or different cameras to the same location or the same object. The sequence of images is a scene. There are large similarities between image features of the same scene, and image sequences of different scenes are quite different in image features.
如图 1-a所示, 为视频图像序列的示意图, 包含一系列图像, 不同图像 拍摄于不同的场景。 标记为 A的各个图像的特征之间具有很大的相似性; 同 理标记为 B的各个图像之间的特征也具有艮大的相似性; 但是标记为 A和标 记为 B的图像之间的特征差距^ ί艮大。 如图 1-b所示, 为视频图像序列划分为 不同场景图像序列的示意图, 即将图像特征相似性比较大的图像, 同属于标 记 A的图像序列划分为场景 A;类似地,可以得到场景 B序列、场景 C序列, 这样图像编码器的输入图像序列就由若干个不同的场景序列组成。  As shown in Figure 1-a, it is a schematic diagram of a sequence of video images, containing a series of images, and different images are taken in different scenes. There is a great similarity between the features of the individual images labeled A; the features between the individual images labeled B also have a large similarity; but between the images labeled A and B. Feature gap ^ 艮 艮 big. As shown in FIG. 1-b, the video image sequence is divided into different scene image sequences, that is, the image with similar image feature similarity, and the image sequence belonging to the mark A is divided into the scene A; similarly, the scene B can be obtained. Sequence, scene C sequence, such that the input image sequence of the image encoder consists of several different sequence of scenes.
对于视频图像序列, 场景也表现为同一视频图像序列图像内容发生切换 前或后的一组图像, 或者称为一个视频镜头片段。 因此, 一个视频序列也可 以划分为若干个场景片段或视频镜头片段, 每个场景片段或视频镜头片段由 一组包含该场景或镜头的图像序列组成。 为了方便, 本发明以下描述中, 将 视频场景序列或视频镜头片段不加区分, 统称为场景序列。 For a sequence of video images, the scene also appears as a set of images before or after the switching of the image content of the same video image sequence, or a video footage segment. Therefore, a video sequence can also be divided into several scene segments or video footage segments, each of which is composed of a sequence of images containing the scene or lens. For convenience, the following description of the present invention will A sequence of video scenes or video footage is not distinguished, and is collectively referred to as a sequence of scenes.
很显然, 同一场景序列中各个图像的特征之间具有很大的相似性, 不同 场景序列之间其包含的图像特征差距较大。  Obviously, there is a great similarity between the features of each image in the same scene sequence, and the image features contained between different scene sequences are quite different.
定义 2: [图像的场景模式】 即场景序列图像的场景模式, 同一场景的图 像特征之间具有较大的相似性, 而不同场景的图像序列在图像特征上有^ ί艮大 的不同, 因此, 同一场景或镜头内的视频图像可以用一个聚类表示。 场景模 式即是和不同场景图像特征相对应的一组参数值或参数集合, 这些参数代表 场景或镜头包含的图像序列的共同图像特征。  Definition 2: [Scene mode of the image] That is, the scene mode of the scene sequence image, the image features of the same scene have greater similarity, and the image sequences of different scenes have different characteristics on the image features, so , video images in the same scene or shot can be represented by a cluster. The scene mode is a set of parameter values or sets of parameters corresponding to different scene image features, which represent common image features of the sequence of images contained in the scene or shot.
本发明实施例中所涉及的图像包含静止图像, 活动图像的一幅, 活动图 像的相邻两幅图像的残差图像, 活动图像中任意幅图像经过运算所得的目标 图像等等。  The image involved in the embodiment of the present invention includes a still image, a moving image, a residual image of two adjacent images of the moving image, a target image obtained by computing an arbitrary image in the moving image, and the like.
本发明实施例中的一个图像场景模式, 可以包括两类值:  An image scene mode in the embodiment of the present invention may include two types of values:
第一类, 场景模式标识(场景模式标识码字或场景模式索引 )。  The first type, scene mode identification (scene mode identification codeword or scene mode index).
用来在图像或视频码流中标识不同特征的图像场景, 不同图像场景用唯 一的符号标识, 或者用索引标识。 通过该标识值或索引值即在码流中即可识 别当前场景模式。 当图像场景发生切换时, 只用更新或切换该场景模式标识 值即可。  An image scene used to identify different features in an image or video stream. Different image scenes are identified by unique symbols or by an index. The current scene mode can be identified by the identification value or the index value, that is, in the code stream. When the image scene is switched, only update or switch the scene mode identification value.
第二类,场景模式参数(场景模式参数或场景模式参数集合的形式存在)。 代表不同场景图像的一组参数或参数集合, 这组参数或参数集合与场景 模式相对应。 在视频图像编码过程中, 将这些参数或参数集合对应参数值用 于视频编解码过程, 作为视频编码过程的编码参数或解码过程的解码参数, 从而起到能得到不同编解码性能、 不同图像质量的视频码流。  In the second category, the scene mode parameter (the form of the scene mode parameter or the scene mode parameter set exists). A set of parameters or sets of parameters representing images of different scenes, the set of parameters or sets of parameters corresponding to the scene mode. In the video image encoding process, these parameters or parameter sets corresponding parameter values are used in the video encoding and decoding process as the encoding parameters of the video encoding process or the decoding parameters of the decoding process, thereby achieving different encoding and decoding performance and different image quality. Video stream.
其中, 上述的场景模式的标识值, 为一个码字, 该码字唯一对应一种场 景模式; 当场景模式较多时, 可以使用索引的方式来区分不同的场景模式。 一个场景模式标识值, 对应一组场景模式参数或参数集合。  The identifier value of the scene mode is a codeword, and the codeword uniquely corresponds to a scene mode. When there are many scene modes, an index may be used to distinguish different scene modes. A scene mode identification value corresponding to a set of scene mode parameters or parameter sets.
此外, 上述的场景模式参数, 可以包括三类:  In addition, the above scene mode parameters can include three categories:
第一类, 从图像信息中得到的表示场景图像特征的特征参数值。  The first type, the feature parameter value representing the feature of the scene image obtained from the image information.
因此, 不同的场景图像, 由于其图像的特征不同, 其对应的特征参数值 也不同; 相似的场景图像, 因为图像特征相似, 对应的特征参数值也相似。 这些从图像信息中获得特征值参数值包括但不限于, 图像场景的光照亮 度、 图像场景的光照色度、 图像编码中变换域的系数频带划分方式、 变换域 的系数频带参数值及其参数值分布、 图像场景中目标或背景的运动方式。 Therefore, different scene images have different feature parameter values because of different image characteristics; similar scene images, because the image features are similar, the corresponding feature parameter values are similar. The values of the feature value parameters obtained from the image information include, but are not limited to, the illumination brightness of the image scene, the illumination chromaticity of the image scene, the coefficient band division manner of the transform domain in the image coding, the coefficient band parameter value of the transform domain, and the parameter values thereof. Distribution, the way the target or background moves in the image scene.
第二类, 图像编码或解码中, 获得的当前图像编码信息。  The second type, the current image coding information obtained in image encoding or decoding.
这些信息由图像编码或图像解码过程中其他模块计算得到的图像编码信 息, 如运动矢量、 或统计得到的图像编码信息, 如编码块类型及数目。  These information are image coding information calculated by other modules in the image coding or image decoding process, such as motion vectors, or statistically obtained image coding information, such as the type and number of coding blocks.
第三类, 图像编码或解码中, 存在并用于控制编码器编码过程或解码器 解码过程的控制参数。  The third category, image coding or decoding, exists and is used to control the control parameters of the encoder encoding process or the decoder decoding process.
该参数包括但不限于图像组(GOP )的大小、 编码图像量化参数 QP、 参 考帧数目、 运动矢量搜索范围、 环路滤波控制、 熵编码控制等。  The parameters include, but are not limited to, the size of the picture group (GOP), the coded picture quantization parameter QP, the number of reference frames, the motion vector search range, the loop filter control, the entropy coding control, and the like.
上述的场景模式参数集合, 为以上 3类场景模式参数中一类或多类参数 或其组合的形式。 图像编码方法实施例  The above-mentioned scene mode parameter set is a form of one or more types of parameters or a combination thereof among the above three types of scene mode parameters. Image coding method embodiment
如图 4所示, 为本发明图像编码方法实施例的流程示意图。 本实施例的 编码方法可以包括如下步骤:  FIG. 4 is a schematic flowchart diagram of an embodiment of an image encoding method according to the present invention. The encoding method of this embodiment may include the following steps:
步骤 401、 获取待编码图像的图像信息, 其中, 图像信息包括图像的像 素值、 残差值、 图像在变换域的像素值或残差值以及图像编码中相应的编码 信息等。  Step 401: Acquire image information of an image to be encoded, where the image information includes a pixel value of the image, a residual value, a pixel value or a residual value of the image in the transform domain, and corresponding coding information in the image coding.
步骤 402、 根据待编码图像的图像信息确定与该图像对应的图像的场景 模式值。 其中场景模式值包括场景模式标识值; 或者包括场景模式标识值和 相应的场景模式参数值。  Step 402: Determine a scene mode value of an image corresponding to the image according to image information of the image to be encoded. The scene mode value includes a scene mode identifier value; or includes a scene mode identifier value and a corresponding scene mode parameter value.
步骤 403、 根据待编码图像的场景模式, 确定编码中正在使用的当前场 景模式是否发生了改变。 场景模式中场景模式标识值改变, 或者对应的场景 模式参数值发生改变时都可以认为当前场景模式发生了改变。  Step 403: Determine, according to the scene mode of the image to be encoded, whether the current scene mode being used in the encoding has changed. When the scene mode identification value changes in the scene mode, or the corresponding scene mode parameter value changes, the current scene mode may be changed.
步骤 403包括:  Step 403 includes:
步骤 4031、 判断当前场景模式是否改变, 若是转步骤 4032, 否则转步骤 4033。  Step 4031: Determine whether the current scene mode is changed. If the process is changed to step 4032, otherwise go to step 4033.
步骤 4032、 若当前场景模式发生了改变, 则用步骤 402中确定的场景模 式作为当前场景模式, 并更新相应的场景模式标识值, 以及对应的场景模式 参数。 Step 4032: If the current scene mode is changed, use the scene mode determined in step 402. As the current scene mode, and update the corresponding scene mode identification value, and the corresponding scene mode parameters.
步骤 4033、 若当前场景模式未发生改变, 则当前编码中使用场景模式适 合待编码图像, 无需改变。  Step 4033: If the current scene mode has not changed, the scene mode used in the current encoding is suitable for the image to be encoded, and does not need to be changed.
步骤 404、 利用当前的场景模式对待编码图像进行图像编码。 当前的场 景模式可以作为图像编码中的控制参数参与图像编码过程。 编码当前输入图 像时, 当前场景模式, 可以参与或确定包括但不限于以下的编码方案及过程, 如, 图像块量化方式、 图像块频带划分方法、 图像帧内预测方式、 图像帧间 预测方式等。 从而获得不同的图像编码方式、 图像编码质量、 图像编码码率 等的图像编码码流。  Step 404: Perform image coding on the image to be encoded by using the current scene mode. The current scene mode can participate in the image encoding process as a control parameter in image encoding. When encoding the current input image, the current scene mode may participate in or determine the coding scheme and process including, but not limited to, the following, such as image block quantization method, image block band division method, image intra prediction method, image inter prediction method, and the like. . Thereby, an image coded code stream of different image coding methods, image coding quality, image coding rate, and the like is obtained.
步骤 405、 将上述场景模式值进行编码, 并将编码后的场景模式值写入 到上述编码码流中。 编码可以釆用定长码、 变长码、 熵编码等方案。 对场景 模式值的编码包括对场景模式标识值的编码, 或者对场景模式参数的编码。 编码结果将写入到视频图像编码码流中。  Step 405: Encode the scene mode value, and write the encoded scene mode value into the encoded code stream. The coding can use a fixed length code, a variable length code, an entropy coding, and the like. Encoding the scene mode values includes encoding the scene mode identification values, or encoding the scene mode parameters. The encoded result will be written to the video image encoded bitstream.
步骤 406、 将含有场景模式编码码流和图像编码码流的编码结果一同输 出。  Step 406: Output the encoded result including the scene mode coded code stream and the image coded code stream.
其中, 步骤 404和步骤 405没有先后顺序, 可以互换。  The steps 404 and 405 have no order and can be interchanged.
此外, 对本实施例的理解还可以参考图 2所示, 图 2为本发明图像编码 方法实施例的框架式流程参考示意图。  In addition, the understanding of this embodiment can also be referred to FIG. 2, which is a schematic diagram of a frame-type flow reference of an embodiment of the image coding method of the present invention.
本实施例的图像编码方法在视频编码中融入根据场景模式特性的编码方 法, 并通过视频编码中的场景模式, 控制视频编码的编码特性参数, 如量化 参数 QP、 频带划分方式、 频带参数大小、 帧内预测方式、 帧间预测补偿、 运 动估计等。 当编码序列中发生场景切换时, 釆用本实施例的图像编码方法可 以艮好的适应变换场景的图像特征, 提高图像编码的压缩率。 图像解码方法实施例  The image coding method in this embodiment integrates an encoding method according to a scene mode characteristic in video coding, and controls a coding characteristic parameter of a video coding, such as a quantization parameter QP, a frequency band division manner, a frequency band parameter size, by a scene mode in video coding, Intra prediction mode, inter prediction compensation, motion estimation, and the like. When the scene switching occurs in the coding sequence, the image coding method of the embodiment can be adapted to the image features of the transformed scene to improve the compression ratio of the image coding. Image decoding method embodiment
如图 5所示, 为本发明图像解码方法实施例的流程示意图。 本实施例的 解码方法可以包括如下步骤:  FIG. 5 is a schematic flowchart diagram of an embodiment of an image decoding method according to the present invention. The decoding method of this embodiment may include the following steps:
步骤 501、 对输入的待解码图像码流进行解析, 得到与上述解码图像的 场景模式值。 包括场景模式标识值; 或者包括场景模式标识值和相应的场景 模式参数值。 Step 501: Parsing an input image code stream to be decoded, and obtaining the decoded image. Scene mode value. The scene mode identifier value is included; or the scene mode identifier value and the corresponding scene mode parameter value are included.
步骤 502、 根据解析的待编码图像的场景模式值, 确定当前解码过程中 正在使用的当前场景模式是否发生了改变。场景模式中场景模式标识值改变, 或者对应的场景模式参数值发生改变时都可以认为当前场景模式发生了改 变。  Step 502: Determine, according to the parsed scene mode value of the image to be encoded, whether the current scene mode being used in the current decoding process has changed. When the scene mode identification value changes in the scene mode, or the corresponding scene mode parameter value changes, the current scene mode may be changed.
步骤 502包括:  Step 502 includes:
步骤 5021、 判断当前场景模式是否改变, 若是转步骤 5022, 否则转步骤 5023。  Step 5021: Determine whether the current scene mode is changed. If the process proceeds to step 5022, otherwise go to step 5023.
步骤 5022、 若当前场景模式发生了改变, 则用步骤 502中解析得到的场 景模式作为当前场景模式, 并更新相应的场景模式标识值, 以及对应的场景 模式参数值。  Step 5022: If the current scene mode is changed, use the scene mode parsed in step 502 as the current scene mode, and update the corresponding scene mode identifier value, and the corresponding scene mode parameter value.
步骤 5023、 若当前场景模式未发生改变, 则图像解码中将继续使用当前 场景模式。  Step 5023: If the current scene mode has not changed, the current scene mode will continue to be used in image decoding.
步骤 503、 利用当前场景模式值对待解码图像进行图像解码。  Step 503: Perform image decoding on the image to be decoded by using the current scene mode value.
当前场景模式值,可以参与或确定包括但不限于以下的编码方案及过程, 如, 图像块反量化方式、 图像块频带划分方法、 图像帧内解码、 图像帧间预 测补偿等。 从而获得不同的图像解码质量的重建图像序列。  The current scene mode value may participate in or determine coding schemes and processes including, but not limited to, image block inverse quantization mode, image block band division method, image intraframe decoding, image interframe prediction compensation, and the like. Thereby a reconstructed image sequence of different image decoding qualities is obtained.
步骤 504、 将解码重建图像输出。  Step 504: Output the decoded reconstructed image.
此外, 对本实施例的理解还可以参考图 3所示, 图 3为本发明图像解码 方法实施例的框架式流程参考示意图。  In addition, the understanding of this embodiment can also be referred to FIG. 3, which is a schematic diagram of a frame-type flow reference of an embodiment of an image decoding method according to the present invention.
本实施例的图像解码方法,将编码码流中存在的场景模式信息解析出来, 并根据当前场景模式变化与否决定是否对解码过程中的场景模式进行切换, 从而使解码过程对场景切换图像序列有一定的自适应能力。 并且通过场景模 式参与图像解码的过程, 从而提高解码重建图像的质量。 图像模式编码方法实施例  In the image decoding method of the embodiment, the scene mode information existing in the encoded code stream is parsed, and whether the scene mode in the decoding process is switched according to the current scene mode change or not, so that the decoding process switches the image sequence to the scene. Have a certain ability to adapt. And through the scene mode to participate in the process of image decoding, thereby improving the quality of the decoded reconstructed image. Image mode encoding method embodiment
如图 6所示, 为本发明图像模式编码方法实施例的流程示意图。 本实施 例以场景模式为例, 相应的场景编码方法可以包括如下步骤: 步骤 601、 输入当前待编码的场景模式值, 上述的场景模式值用于编码 当前图像。 FIG. 6 is a schematic flowchart diagram of an embodiment of an image mode encoding method according to the present invention. In this embodiment, the scene mode is taken as an example, and the corresponding scene coding method may include the following steps: Step 601: Enter a current scene mode value to be encoded, where the above scene mode value is used to encode the current image.
步骤 602、 根据场景模式值, 确定场景模式标识值。 每个场景模式含有 唯一的场景模式标识值(标识码字或者索引值), 该标识值用于区分不同的场 景模式。  Step 602: Determine a scene mode identifier value according to the scene mode value. Each scene mode contains a unique scene mode identification value (identification codeword or index value) that is used to distinguish between different scene modes.
步骤 603、 对场景模式标识值进行编码, 将编码后的场景模式值写入到 编码码流中。  Step 603: Encode the scene mode identifier value, and write the encoded scene mode value into the encoded code stream.
步骤 604、 如前上述, 场景模式有 2类值, 每个场景模式除了包含第一 类值, 即场景模式标识值外, 还可能包含第 2类值, 即场景模式参数值。 根 据当前场景模式是否包含场景模式参数值, 决定是否需要对场景模式参数值 进行编码。 若包含场景模式参数, 则转步骤 605 , 否则转步骤 607。  Step 604. As mentioned above, the scene mode has two types of values. Each scene mode may include a second type of value, that is, a scene mode parameter value, in addition to the first type of value, that is, the scene mode identification value. Determine whether the scene mode parameter value needs to be encoded according to whether the current scene mode contains the scene mode parameter value. If the scene mode parameter is included, go to step 605, otherwise go to step 607.
步骤 605、 由场景模式标识值, 确定场景模式参数值。  Step 605: Determine, by the scene mode identifier value, a scene mode parameter value.
确定场景模式参数值包括:  Determining the scene mode parameter values includes:
确定场景模式参数的类型, 即场景模式参数包含 3类模式参数中的一类 或几类。 如频带分布参数、 编码图像量化参数 QP、 图像场景的光照亮度、 图 像场景的光照色度、 频带划分方式、 噪声强度、 噪声类型等  Determine the type of the scene mode parameter, that is, the scene mode parameter contains one or several of the three types of mode parameters. Such as band distribution parameters, coded image quantization parameter QP, illumination brightness of image scene, illumination chromaticity of image scene, band division method, noise intensity, noise type, etc.
确定场景模式参数的值, 即确定不同类型场景模式参数的数值。 如频带 分布参数值、 编码图像量化参数 QP值、 场景光照亮度大小、 场景的光照色 度大小、 频带划分类型、 噪声强度大小、 噪声类型值等。  Determine the value of the scene mode parameter, that is, determine the value of the different types of scene mode parameters. For example, the band distribution parameter value, the coded image quantization parameter QP value, the scene illumination brightness level, the scene illumination chromaticity size, the band division type, the noise intensity level, the noise type value, and the like.
步骤 606、 对场景模式参数值进行编码, 并将编码后的场景模式参数值 写到编码码流中。  Step 606: Encode the scene mode parameter value, and write the encoded scene mode parameter value into the encoded code stream.
步骤 607、 将含有场景模式值编码结果的码流输出。  Step 607: Output a code stream that includes the result of the scene mode value encoding.
本实施例中, 通过将编码后的场景模式标识值和场景模式参数值写到编 码码流中, 从而实现了对图像场景模式的编码。  In this embodiment, the encoding of the image scene mode is implemented by writing the encoded scene mode identification value and the scene mode parameter value into the encoded code stream.
图像模式解码方法实施例 Image mode decoding method embodiment
如图 7所示, 为本发明图像模式解码方法实施例的流程示意图。 本实施 例的图像模式解码可以包括如下步骤:  FIG. 7 is a schematic flowchart diagram of an embodiment of an image mode decoding method according to the present invention. The image mode decoding of this embodiment may include the following steps:
步骤 701、 从编码码流中确定码流头结构。 步骤 702、 从码流头结构中解析并获得当前场景模式标识值。 在码流头 结构中存储着场景模式值, 包括场景模式标识值, 或者包括场景模式标识值 和场景模式参数值。 解析的码流头结构可以包括以下各个层次码流头结构中 的一种或多种, 即 Step 701: Determine a code stream header structure from the coded code stream. Step 702: Parse and obtain a current scene mode identifier value from the code stream header structure. The scene mode value is stored in the stream header structure, including the scene mode identifier value, or includes the scene mode identifier value and the scene mode parameter value. The parsed stream header structure may include one or more of the following hierarchical stream header structures, namely
序列头或序列扩展头;  Sequence header or sequence extension header;
图组头或图组扩展头;  a group header or a group extension header;
图像头或图像扩展头;  Image header or image extension header;
条带组(集) 头或条带组(集)扩展头;  Strip group (set) head or strip group (set) extension header;
条带头或条带扩展头。  Strip head or strip extension head.
其中, 当图像场景模式(当前场景模式标识值)存在于序列头或序列扩 展头中时, 解析获得当前解码序列的场景模式; 当图像场景模式存在于图组 头或图组扩展头中时, 解析获得当前解码图组的场景模式; 当图像场景模式 存在于图像头或图像扩展头中时, 解析获得当前解码图像的场景模式; 当图 像场景模式存在于条带组(集) 头或条带组(集)扩展头中时, 解析获得当 前解码条带组(集) 的场景模式; 当图像场景模式存在于条带头或条带扩展 头中时, 解析获得当前解码条带的场景模式;  Wherein, when the image scene mode (the current scene mode identifier value) exists in the sequence header or the sequence extension header, the scene mode of the current decoding sequence is obtained by parsing; when the image scene mode exists in the group header or the group extension header, Parsing the scene mode of the current decoded picture group; when the image scene mode exists in the image header or the image expansion header, parsing the scene mode of the current decoded image; when the image scene mode exists in the strip group (set) header or strip When the group (set) is extended in the header, the scene mode of the current decoded stripe group (set) is parsed; when the image scene mode exists in the strip header or the stripe extension header, the scene mode of the current decoded stripe is parsed;
某一层次的码流头结构中, 场景模式不存在时的场景模式默认方式为; 若在同层次的码流头结构中, 图像场景模式不存在时, 则当前场景模式 默认为与同层次的前一个码流头结构中的场景模式相同。 如, 当前解码图像 头中不存在图像场景模式, 则该解码图像场景模式默认为与前一解码图像头 中的场景模式相同。  In a code stream header structure of a certain level, the default mode of the scene mode when the scene mode does not exist is; if the image scene mode does not exist in the code stream header structure of the same level, the current scene mode defaults to the same level. The scene mode in the previous stream header structure is the same. For example, if there is no image scene mode in the current decoded image header, the decoded image scene mode defaults to the same scene mode as in the previous decoded image header.
若在同层次的码流头结构中, 图像场景模式都不存在时, 则当前场景模 式默认为与上一级层次码流头结构中的场景模式相同。 如, 所有当前解码图 像头中都不存在场景模式, 则当前场景模式默认为图像级上一层次, 图像组 头结构中的场景模式; 若图像组层次中都不存在场景模式时, 则当前场景模 式默认为图像组上一层次, 序列头或序列扩展头结构中的场景模式。  If the image scene mode does not exist in the same stream header structure, the current scene mode defaults to the same scene mode as the previous level stream header structure. For example, if there is no scene mode in all currently decoded image headers, the current scene mode defaults to the image level upper layer and the scene mode in the image group header structure; if there is no scene mode in the image group hierarchy, the current scene The mode defaults to the scene mode in the upper layer of the image group, the sequence header or the sequence extension header structure.
步骤 703、 通过步骤 702中解析得到的场景模式标识值, 可以确定将用 于图像解码流程的当前场景模式。  Step 703: Determine, by using the scene mode identifier value obtained in step 702, a current scene mode to be used in the image decoding process.
步骤 704、 根据码流中解析的场景模式标识值, 判断当前场景模式是否 发生了变化, 若否, 则转步骤 708 , 直接输出当前场景模式; 若是, 则转步 骤 705。 Step 704: Determine, according to the scene mode identifier value parsed in the code stream, whether the current scene mode is A change has occurred, and if no, go to step 708 to directly output the current scene mode; if yes, go to step 705.
其中, 若编码码流中, 不存在场景模式, 或者解析得到的场景模式标识 值未发生改变, 说明此时场景模式未发生改变, 则可以不继续解析场景模式 参数值。 当前场景模式参数的默认方法与场景模式默认方法相同。  If the scene mode does not exist in the encoded stream, or the parsed scene mode identifier does not change, indicating that the scene mode has not changed, the scene mode parameter value may not be analyzed. The default method of the current scene mode parameter is the same as the default mode of the scene mode.
若编码码流中, 场景模式标识值发生改变, 说明此时场景模式发生切换, 则需要继续解析码流中的场景模式参数值, 并用解析值更新当前默认值, 作 为当前场景模式参数值。  If the scene mode identifier is changed in the code stream, it indicates that the scene mode is switched. Then, you need to continue to parse the scene mode parameter value in the stream, and update the current default value with the parsed value as the current scene mode parameter value.
步骤 705、 根据码流头结构中, 场景模式是否含有场景模式参数值, 决 定是否继续解析场景模式参数值。 若无, 则转步骤 708, 输出当前场景模式, 若有场景模式参数则需要继续解析场景模式参数值, 转步骤 706。  Step 705: Determine, according to the code stream header structure, whether the scene mode includes a scene mode parameter value, and determine whether to continue to parse the scene mode parameter value. If not, go to step 708 to output the current scene mode. If there is a scene mode parameter, continue to parse the scene mode parameter value, and go to step 706.
步骤 706、 由场景模式标识值, 确定场景模式参数值。  Step 706: Determine, by the scene mode identifier value, a scene mode parameter value.
其中, 确定场景模式参数值包括确定:  Wherein determining the scene mode parameter value comprises determining:
确定与编码端相对应的场景模式参数的类型, 即场景模式参数包含 3类 模式参数中的一类或几类。 如频带分布参数、 编码图像量化参数 QP、 图像场 景的光照亮度、 图像场景的光照色度、 频带划分方式、 噪声强度、 噪声类型 等;  The type of the scene mode parameter corresponding to the encoding end is determined, that is, the scene mode parameter includes one or more of the three types of mode parameters. Such as band distribution parameters, coded image quantization parameter QP, illumination brightness of image scene, illumination chromaticity of image scene, band division mode, noise intensity, noise type, etc.
以及确定这些场景模式参数的值,即确定不同类型场景模式参数的数值。 如频带分布参数值、 编码图像量化参数 QP值、 场景光照亮度大小、 场景的 光照色度大小、 频带划分类型、 噪声强度大小、 噪声类型等。  And determining the values of these scene mode parameters, ie determining the values of different types of scene mode parameters. For example, the band distribution parameter value, the coded image quantization parameter QP value, the scene illumination brightness level, the scene illumination chromaticity size, the band division type, the noise intensity level, the noise type, and the like.
步骤 707、 对码流中的场景模式参数值(或参数值) 集合进行解码。 步骤 708、 将确定的场景模式输出, 该输出结果用于参与图像解码流程。 本实施例通过对场景模式标识值和场景模式参数值进行解码后确定对应 的场景模式, 从而实现了对图像场景模式的解码。  Step 707: Decode a set of scene mode parameter values (or parameter values) in the code stream. Step 708: Output the determined scene mode, and the output result is used to participate in an image decoding process. In this embodiment, the scene mode identification value and the scene mode parameter value are decoded to determine a corresponding scene mode, thereby realizing decoding of the image scene mode.
下面再结合具体例子对上述本发明图像模式编码方法实施例和解码方法 实施例中的具体编解码方法描述。  The specific codec method in the embodiment of the image mode encoding method and the decoding method of the present invention described above will be described below with reference to specific examples.
1、 对场景模式标识值和场景模式参数值的编码方法和解码方法  1. Encoding method and decoding method for scene mode identification value and scene mode parameter value
编码端: 编码方式可以包括但不限于三种方式, 即直接编码、 间接编码 和熵编码。 其中, 直接编码, 即将图像场景模式标识值和 /或场景模式参数值直接写到视频 或图像编码码流中; Encoding end: Encoding mode can include but not limited to three methods, namely direct coding, indirect coding and entropy coding. among them, Direct encoding, that is, writing image scene mode identification values and/or scene mode parameter values directly into a video or image encoded code stream;
间接编码, 即将图像场景模式标识值和 /或场景模式参数值的变换值, 写 到视频或图像编码码流中。 上述的变换方法, 包括但不限于, 加、 减、 乘、 除、 与、 或、 非等数学或逻辑运算;  Indirect encoding, which converts the transformed values of image scene mode identification values and/or scene mode parameter values into a video or image encoded code stream. The above transformation methods include, but are not limited to, addition, subtraction, multiplication, division, AND, OR, and other mathematical or logical operations;
熵编码, 即将图像场景模式标识值和 /或场景模式参数值、 或者 2者的变 换值, 进行熵编码后, 写到视频或图像编码码流中。 熵编码方法包括但不限 于定长码、 变长码、 二值化自适应编码、 霍夫曼编码、 游程编码、 基于上下 文的变长编码 CAVLC、 基于上下文的算术编码 CABAC等。  The entropy coding, that is, the image scene mode identification value and/or the scene mode parameter value, or the conversion value of the two, is entropy encoded and written into the video or image coded code stream. Entropy coding methods include, but are not limited to, fixed length code, variable length code, binarized adaptive coding, Huffman coding, run length coding, context-based variable length coding CAVLC, context-based arithmetic coding CABAC, and the like.
解码端: 解码方式釆用与编码端相应解码方式  Decoding end: Decoding method uses the corresponding decoding method with the encoding end
若编码端釆用直接编码时, 从码流中直接读取的码流值, 即是场景模式 标识及其场景模式参数的解析结果值。  If the encoding end uses direct encoding, the code stream value directly read from the code stream is the resolution result value of the scene mode identifier and its scene mode parameter.
若编码端釆用间接编码时, 从码流中直接读取的码流值, 按照对应于编 码端的逆变换方法,得到图像场景模式标识及其场景模式参数的解析结果值。 上述的逆变换方法, 包括但不限于, 加、 减、 乘、 除、 与、 或、 非等数学或 還辑运算。  If the encoding end uses indirect encoding, the code stream value directly read from the code stream is obtained by the inverse transform method corresponding to the encoding end to obtain an image scene mode identifier and an analysis result value of the scene mode parameter. The inverse transform method described above includes, but is not limited to, addition, subtraction, multiplication, division, AND, OR, and other mathematical or recurring operations.
若编码端釆用熵编码时, 从码流中直接读取的码流值, 按照对应于编码 端的熵解码方法, 得到图像场景模式标识及其场景模式参数的解析结果值。 上述的熵解码方法包括但不限于定长码解码、 变长码解码、 二值化自适应解 码方法的解码、 霍夫曼编码、 游程编码、 基于上下文的变长编码 CAVLC、 基 于上下文的算术编码 CAB AC等。  If the encoding end uses entropy coding, the code stream value directly read from the code stream is obtained according to the entropy decoding method corresponding to the encoding end, and the image scene mode identifier and the resolution result value of the scene mode parameter are obtained. The above entropy decoding methods include, but are not limited to, fixed length code decoding, variable length code decoding, decoding of binary adaptive decoding methods, Huffman coding, run length coding, context-based variable length coding CAVLC, context-based arithmetic coding. CAB AC, etc.
具体地, 这里假定事先已经确定的场景模式为 2N个, N为正整数, 假设 N = 4, 并以索引值的形式表示场景模式。 Specifically, it is assumed here that the scene pattern that has been determined in advance is 2 N , N is a positive integer, assuming N = 4, and the scene mode is represented in the form of an index value.
场景模式索引值可以为二进制编码, 本实施例用 4bit的二进制编码表示 场景模式索引值。 生成的场景模式与索引值的对照表, 如表 1所示。  The scene mode index value may be binary code. In this embodiment, the scene mode index value is represented by a 4-bit binary code. A comparison table of generated scene patterns and index values, as shown in Table 1.
场景模式与索引值的对照表  Comparison table between scene mode and index value
Figure imgf000016_0001
0010 场景模式 2
Figure imgf000016_0001
0010 scene mode 2
1111 场景模式 15 1111 Scene Mode 15
此时, 场景模式索引即是用 U(N), 即 N比特的二进制整数表示。  At this time, the scene mode index is represented by U(N), which is a binary integer of N bits.
实际应用中, 具体的场景模式, 例如可以为:  In actual applications, specific scene modes, for example, can be:
室内场景模式、 室外场景模式, 红外模式、 白天模式、 夜间模式、 模式、 雨雪天模式、 图像渐变模式、 噪声模式、 远景模式等。  Indoor scene mode, outdoor scene mode, infrared mode, day mode, night mode, mode, rain and snow mode, image gradient mode, noise mode, distant mode, and the like.
上述索引值还可以使用 1-Mbit的二进制变长编码表示场景模式索引值。 生成的场景模式二进制码与索引值的对照表, 可如表 2所示。  The above index value may also represent a scene mode index value using a 1-Mbit binary variable length code. A comparison table of generated scene mode binary codes and index values can be shown in Table 2.
场景模式二进制码与索引值的对照表二  Scene mode binary code and index value comparison table 2
Figure imgf000017_0001
Figure imgf000017_0001
2、 将场景模式写入码流和从码流中解析的方法  2. The method of writing the scene mode into the code stream and parsing from the code stream
编码端: 将场景模式写入码流包括将场景模式标识值写入码流, 当存在 场景模式参数时, 还包括将场景模式参数值写入码流。  Encoding end: Writing the scene mode to the code stream includes writing the scene mode identification value to the code stream, and when the scene mode parameter is present, further including writing the scene mode parameter value to the code stream.
解码端: 从码流中解析场景模式包括从码流中解析场景模式标识值, 当 存在场景模式参数值时, 还包括从码流中解析场景模式参数值。  Decoding end: Parsing the scene mode from the code stream includes parsing the scene mode identifier value from the code stream. When the scene mode parameter value is present, the method further includes parsing the scene mode parameter value from the code stream.
才艮据码流的不同层次, 场景模式可存在于不同的码流头结构中。  According to different levels of the code stream, the scene mode can exist in different code stream header structures.
例如, 含有场景模式的序列头或序列扩展头示例如下, 序列头的码流语 法 ¾口表 3所示。  For example, a sequence header or a sequence extension header containing a scene mode is as follows, and the code stream syntax of the sequence header is shown in Table 3.
含有场景模式的序列头的码流语法  Code stream syntax for sequence headers containing scene patterns
sequence— headerO { 描述符 sequence— start— code f(32)  Sequence— headerO { descriptor sequence- start— code f(32)
If ( profile— id)  If ( profile- id)
scene— mode u(5) if(scene_mode==night_mode) { Scene— mode u(5) If(scene_mode==night_mode) {
nosie— intensity se(v)  Nosie—intensity se(v)
}  }
scene— mode为 N比特, 假定 N = 5 , 则允许定义 32个常用场景模式。 这里 sequence— header()也可以用序歹 'J扩展头 sequence— extention—header() 代替。  Scene—mode is N bits, assuming N = 5, allowing 32 common scene modes to be defined. Here sequence- header() can also be replaced by the sequence 歹 'J extension header sequence- extention-header().
上述示例中, 当前场景模式索引 scene— mode用 5比特的二进制码 u(5)表 示, 并定义了一个场景模式参数, 场景噪声强度 noise— intensity。 当前场景模 式索引为夜间模式 night— mode时, 对场景噪声强度进行编码, 编码方式为熵 编码 se(v)。  In the above example, the current scene mode index scene_mode is represented by a 5-bit binary code u(5), and defines a scene mode parameter, scene noise intensity noise-intensity. When the current scene mode index is night mode night-mode, the scene noise intensity is encoded by entropy coding se(v).
例如, 含有场景模式的图像头示例  For example, an image header example with a scene mode
假设场景模式使用 Nbit的整数, 写到图像头, 如 I图像头或 PB图像头 中。 图像头的码流语法如表 4所示。  Suppose the scene mode uses an Nbit integer and writes to the image header, such as the I image header or the PB image header. The code stream syntax of the image header is shown in Table 4.
表 4含有场景模式的图像头的码流语法  Table 4 Code stream syntax of the image header containing the scene mode
Figure imgf000018_0001
Figure imgf000018_0001
scene mode为 N比特, 假定 N = 5 , 则允许定义 32个常用场景模式。 如写到 I图像头 I_picture— header()、 PB图像头 PB_picture— header()等。 上述示例中, 在当前图像场景模式 scene— mode后, 写入了与当前场景模 式相对应的场景模式参数 scene— freq_ pattern为场景模式频带分布模板, 该模 式参数用 2比特的二进制码编码,若当前场景模式 scene mode为夜间场景模 式 night— scene— mode, 则继续编码场景模式的频带参数 scene— freq_param(i) , i=0...5 , 对场景模式的频带参数釆用熵编码方案 se(v)。 The scene mode is N bits, assuming N = 5, allowing 32 common scene modes to be defined. For example, write to the I picture header I_picture_header(), PB picture header PB_picture_header(), and so on. In the above example, after the current image scene mode scene_mode, the scene mode parameter scene_freq_pattern corresponding to the current scene mode is written as a scene mode band distribution template, and the mode parameter is encoded by a 2-bit binary code. Current scene mode scene mode is night scene mode The night-scene-mode continues to encode the band parameters scene_freq_param(i), i=0...5 of the scene mode, and uses the entropy coding scheme se(v) for the band parameters of the scene mode.
例如, 含有场景模式的条带头示例  For example, a stripe header example with scene mode
以 H.264为例, 条带为网络打包单元, 同时也代表了图像内容。  Taking H.264 as an example, the strip is a network packing unit and also represents the image content.
含有场景模式的条带头码流语法如表 5所示。  The syntax of the stripe header stream containing the scene mode is shown in Table 5.
含有场景模式的条带头的码流语法  Stream syntax for strip headers containing scene patterns
Figure imgf000019_0001
Figure imgf000019_0001
scene— mode为 N比特, 假定 N = 5 , 则允许定义 32个常用场景模式。 如写到 I— slice— header()、 p— slice— header()、 b— slice— header()。  Scene—mode is N bits, assuming N = 5, allowing 32 common scene modes to be defined. For example, write to I-slice_header(), p-slice_header(), b-slicer-header().
以下将结合典型的视频图像编码器和解码器, 详细说明场景模式参与视 频图像的编码过程和解码过程。 如图 8所示, 为本发明图像编码方法实施例 中使用包含变换、 缩放 /量化、 熵编码所对应的典型视频图像编码器的框架式 流程参考示意图; 如图 9所示, 为本发明图像解码方法实施例中使用包含反 变换、 缩放 /反量化、 熵解码所对应的典型视频图像解码器的框架式流程参考 示意图。  The encoding process and decoding process of the scene mode participating in the video image will be described in detail below in conjunction with a typical video image encoder and decoder. As shown in FIG. 8, a schematic diagram of a frame-type flow reference using a typical video image encoder corresponding to transform, scaling/quantization, and entropy coding is used in the image coding method embodiment of the present invention; as shown in FIG. 9, the image of the present invention is shown in FIG. A frame-type flow reference schematic diagram of a typical video image decoder corresponding to inverse transform, scaling/inverse quantization, and entropy decoding is used in the decoding method embodiment.
在本发明图像编码方法实施例中, 已经给出了一种基于图像模式的图像 编码方法详细实施步骤, 在步骤 404中, 假定使用表 4所定义的场景模式标 识值和场景模式参数值形式, 其中, 与场景模式 scene— mode对应的场景模式 参数为 scene— freq_pattern, 表示当前场景图像的变换系数频带分布模板, 该 模板釆用二进制整数 U(N)表示, 如下表 6所示。  In the embodiment of the image coding method of the present invention, a detailed implementation step of an image coding method based on an image mode has been given. In step 404, it is assumed that the scene mode identification value and the scene mode parameter value form defined in Table 4 are used. The scene mode parameter corresponding to the scene mode scene-mode is scene_freq_pattern, which represents a transform coefficient band distribution template of the current scene image, and the template is represented by a binary integer U(N), as shown in Table 6 below.
表 6 场景模式与索引值的对照表 2  Table 6 Comparison table of scene mode and index value 2
Figure imgf000019_0002
Figure imgf000020_0001
Figure imgf000019_0002
Figure imgf000020_0001
如图 10-a - 图 10-d 所示为分别为四种场景图像频带分布模板 scene freq pattern的示意图。 其中,  Figure 10-a - Figure 10-d shows a schematic diagram of the scene freq pattern for the four scene image bands. among them,
图 10-a 为默认场景模式下场景图像频带分布模板( Default— scene— freq _pattem )的示意图, 适合于固定摄像机, 场景中运动目标对象多数为水平运 动, 如从左到右运动, 或从右到左运动;  Figure 10-a is a schematic diagram of the scene image band distribution template ( Default_ scene_freq _pattem ) in the default scene mode. It is suitable for fixed cameras. Most of the moving target objects in the scene are horizontal motion, such as moving from left to right, or from right. Move to the left;
图 10-b 为 红 外 场 景 模 式 下 场 景 图 像频 带 分布模板 ( Infrared— scene— freq_pattern ) 的示意图, 适合于摄像机固定, 拍摄条件为红 外成像序列;  Figure 10-b is a schematic diagram of the infrared scene mode distribution template (Infrared- scene-freq_pattern), which is suitable for camera fixation, and the shooting conditions are infrared imaging sequences;
图 10-c 为 夜 间 场 景 模 式 下 场 景 图 像频 带 分布模板 ( Night— scene— freq_pattern )的示意图, 适合于摄像机固定, 拍摄场景为夜间 的情况;  Figure 10-c is a schematic diagram of the night scene scene distribution template (Night scene-freq_pattern) in the night scene mode, suitable for camera fixation, shooting scenes at night;
图 10-d 为 运 动 场 景 模 式 下 场 景 图 像频 带 分布模板 ( Moving— scene— freq_pattern ) 的示意图, 适合于摄像机固定, 前景对象有剧 烈的从水平运动(从左到右或者从右到左);或者摄像机本身进行水平运动(从 左到右或者从右到左)。  Figure 10-d is a schematic diagram of the scene image band distribution template (Moving-scene_freq_pattern) in the motion scene mode, suitable for camera fixation, the foreground object has dramatic horizontal motion (from left to right or right to left); The camera itself moves horizontally (from left to right or from right to left).
图 10-a -图 10-d中, 每个场景模式频带分布模板有 6个参数值, Fp[i] , i=0,5„ 其中, 图 10中, 每个 Fp[i]所在的位置表示 8x8块的频率点, 对于给 定的 i=k, 所有 Fp[i=k]组成的频率点区域, 就是第 k个频带。 因此, 图 10表 示了不同场景下的频带分布特性。  In Figure 10-a - Figure 10-d, each scene mode band distribution template has six parameter values, Fp[i], i=0,5„ where, in Figure 10, where each Fp[i] is located Indicates the frequency point of the 8x8 block. For a given i=k, the frequency point region composed of all Fp[i=k] is the kth frequency band. Therefore, Fig. 10 shows the frequency band distribution characteristics in different scenarios.
在编码端, 如图 8所示, 场景模式 scene mode和场景模式的频带分布模 板参数 scene_freq_pattern用于图像编码中的缩放 /量化过程中。假设编码端已 经确定的场景模式为夜间模式, 根据 scene— mode找到对应的频带分布模板 scene_freq_ pattern = night scene freq pattern, 按 scene— freq_ pattern ό々值 , 得到当前场景频带分布模板为图 10-c所示。  At the encoding end, as shown in Fig. 8, the scene mode scene mode and the scene mode band distribution template parameter scene_freq_pattern are used in the scaling/quantization process in image encoding. Assume that the scene mode that has been determined by the encoding end is night mode, find the corresponding band distribution template scene_freq_pattern = night scene freq pattern according to scene_mode, and press the scene_freq_pattern , value to obtain the current scene band distribution template as Figure 10-c. Shown.
假定频带分布模板 scene_freq_ pattern用于量化时对特定频带进行丟弃, 当 Fp[i] = 0,表示该频带丟弃 i=0 ~ 5; 当 Fp[i] = 1 ,表示该频带保留, i=0 ~ 5。  It is assumed that the band distribution template scene_freq_pattern is used to discard a specific frequency band when quantizing, when Fp[i] = 0, it means that the frequency band discards i=0 ~ 5; when Fp[i] = 1 , it means that the frequency band remains, i =0 ~ 5.
经变换量化的图像块的数据为, 2232 1348 991 827 499 336 190 98 The data of the transformed quantized image block is 2232 1348 991 827 499 336 190 98
1782 1186 859 732 413 317 144 83  1782 1186 859 732 413 317 144 83
1406 1004 705 570 355 227 102 46  1406 1004 705 570 355 227 102 46
1227 905 600 466 257 166 60 32  1227 905 600 466 257 166 60 32
1018 687 460 350 205 102 33 7  1018 687 460 350 205 102 33 7
991 666 439 309 161 71 21 4  991 666 439 309 161 71 21 4
848 494 332 232 124 56 19 2  848 494 332 232 124 56 19 2
719 438 270 182 98 52 7 1 当前场景频带分布模板 scene— freq_ pattern = night scene freq pattern 当前频带丟弃模板为: Fp[i]={l, 1,1, 1,1,0} , 即图像块 B量化后将 Fp[i=5] 频带丟弃, 所以, 经频带控制后变换量化的图像块数据为,  719 438 270 182 98 52 7 1 Current scene band distribution template scene— freq_ pattern = night scene freq pattern The current band discard template is: Fp[i]={l, 1,1, 1,1,0} , ie image After the block B is quantized, the Fp[i=5] band is discarded, so the image block data that is quantized by the band control is
2232 1348 991 827 499 336 190 0  2232 1348 991 827 499 336 190 0
1782 1186 859 732 413 317 144 0  1782 1186 859 732 413 317 144 0
1406 1004 705 570 355 227 0 0  1406 1004 705 570 355 227 0 0
1227 905 600 466 257 0 0 0  1227 905 600 466 257 0 0 0
1018 687 460 350 0 0 0 0  1018 687 460 350 0 0 0 0
991 666 439 0 0 0 0 0  991 666 439 0 0 0 0 0
848 494 0 0 0 0 0 0  848 494 0 0 0 0 0 0
719 0 0 0 0 0 0 0 对场景模式编码时,按照表 4将 scene— mode和 scene— freq_pattern写到图 像头中, 并在图像头中将频带丟弃模板 Fp[i]={l, 1,1, 1,1,0}写到场景模式参数 scene_freq_param(i) , i=0...5 , 中。  719 0 0 0 0 0 0 0 When encoding the scene mode, write scene_mode and scene_freq_pattern to the image header according to Table 4, and discard the template Fp[i]={l, 1 in the image header. , 1, 1, 1, 0} is written to the scene mode parameter scene_freq_param(i) , i=0...5 , in .
在解码端, 如图 9所示, 从表 4所示的图像头中解析得到当前场景模式 scene— mode,并进一步解析得到场景模式参数、场景频带分布模板 scene— freq_ pattern和频带丟弃模板参数 scene_freq_param(i) , i=0...5 , 即  At the decoding end, as shown in FIG. 9, the current scene mode scene_mode is parsed from the image header shown in Table 4, and the scene mode parameter, the scene band distribution template scene_freq_pattern, and the band discard template parameter are further analyzed. Scene_freq_param(i) , i=0...5 , ie
根据码流中解析得到当前解码图像的场景模式 scene— mode为夜间模式; 根据 scene— mode 找到对应的频带分布模板 scene_freq_pattern = night scene freq pattern;  The scene mode of the current decoded image is parsed according to the code stream scene-mode is the night mode; the corresponding band distribution template is found according to scene_mode scene_freq_pattern = night scene freq pattern;
进一步解析得到当前场景的频带丟弃模板参数 scene— freq_param(i)为, Further parsing to obtain the band discarding template parameter scene_freq_param(i) of the current scene is
Fp[i]={l, 1,1, 1,1,0}。 Fp[i]={l, 1,1, 1,1,0}.
经频带控制的图像量化系数块为 BQF, 进行反量化后得到的图像变换域 系数块为 B。 图像编码装置实施例 The image quantized coefficient block controlled by the frequency band is BQF, and the image transform domain coefficient block obtained by inverse quantization is B. Image coding device embodiment
本实施例的图像编码装置包括:  The image coding apparatus of this embodiment includes:
第一模块, 用于根据待编码图像的图像信息确定与所述图像信息对应的 图像模式值;  a first module, configured to determine an image mode value corresponding to the image information according to image information of the image to be encoded;
第二模块, 用于利用所述图像模式值对所述图像信息进行编码, 得到编 码码流;  a second module, configured to encode the image information by using the image mode value to obtain a coded code stream;
第三模块, 用于对所述图像模式值进行编码, 并将编码后的所述图像模 式值写入到所述编码码流中。  And a third module, configured to encode the image mode value, and write the encoded image mode value into the encoded code stream.
本发明实施例的图像编码装置在视频编码中第二模块利用图像模式值即 场景模式特性对输入的图像信息进行编码, 当编码序列中发生场景切换时, 釆用实施例的方法可以 4艮好的适应变换场景的图像特征, 提高图像编码的压 缩率。 图像解码装置实施例  In the video coding apparatus of the embodiment of the present invention, the second module encodes the input image information by using the image mode value, that is, the scene mode characteristic, and when the scene switching occurs in the coding sequence, the method of the embodiment can be used. Adapting to the image characteristics of the transformed scene, improving the compression ratio of the image encoding. Image decoding device embodiment
本发明实施例的图像解码装置包括:  The image decoding apparatus of the embodiment of the invention includes:
第四模块, 用于对待解码图像的码流进行解析, 得到所述待解码图像的 图像模式值;  a fourth module, configured to parse a code stream of the image to be decoded, to obtain an image mode value of the image to be decoded;
第五模块,用于利用所述图像模式值对所述待解码图像的码流进行解码, 输出解码后的图像。  And a fifth module, configured to decode the code stream of the image to be decoded by using the image mode value, and output the decoded image.
本实施例的图像解码装置中第四模块将码流中存在的图像模式信息解析 出来, 并且第五模块根据图像模式对码流进行解码, 从而提高解码重建图像 的质量。  In the image decoding apparatus of this embodiment, the fourth module parses the image mode information existing in the code stream, and the fifth module decodes the code stream according to the image mode, thereby improving the quality of the decoded reconstructed image.
上述本发明实施例所述的图像编码装置和图像解码装置, 可以组成一套 系统。 图像模式编码装置实施例  The image encoding device and the image decoding device described in the above embodiments of the present invention may constitute a system. Image mode encoding device embodiment
本发明实施例的图像模式编码装置包括:  The image mode encoding device of the embodiment of the invention includes:
第六模块, 用于确定待编码图像的图像模式值; 第七模块, 用于对所述图像模式值进行编码, 并写入到编码码流中。 本发明实施例的图像模式编码装置中通过第七模块将编码后的图像模式 值写到编码码流中, 从而实现了对图像模式的编码。 这里的图像模式可以是 场景模式, 或是实际应用中的其他模式。 图像模式解码装置实施例 a sixth module, configured to determine an image mode value of the image to be encoded; And a seventh module, configured to encode the image mode value and write into the encoded code stream. In the image mode encoding apparatus of the embodiment of the present invention, the encoded image mode value is written into the encoded code stream by the seventh module, thereby implementing encoding of the image mode. The image mode here can be a scene mode, or other modes in an actual application. Image mode decoding device embodiment
本发明实施例的图像模式解码装置包括:  The image mode decoding device of the embodiment of the present invention includes:
第八模块, 用于从图像码流中解析并确定当前解码图像的图像模式值; 第九模块, 用于根据所述图像模式值, 确定图像模式。  And an eighth module, configured to parse and determine an image mode value of the currently decoded image from the image code stream; and a ninth module, configured to determine an image mode according to the image mode value.
本实施例的图像模式解码装置中, 以场景模式为例, 通过第九模块根据 所述场景模式标识值或根据所述场景模式标识值和场景模式参数, 确定场景 模式对应的场景模式, 从而实现了对图像场景模式的解码。  In the image mode decoding device of the embodiment, taking the scene mode as an example, the ninth module determines the scene mode corresponding to the scene mode according to the scene mode identifier value or according to the scene mode identifier value and the scene mode parameter, thereby implementing Decoding the image scene mode.
上述本发明实施例所述的图像模式编码装置和图像模式解码装置, 可以 组成一套系统。 图像编码系统实施例一  The image mode encoding device and the image mode decoding device described in the above embodiments of the present invention may constitute a system. Image coding system embodiment 1
如图 11所示, 为本发明图像编码系统实施例一的结构示意图。 本实施例 包括获取模块 1、 与获取模块 1连接的第一编码模块 2、 分别与获取模块 1和 第一编码模块 2连接的第二编码模块 3和与第二编码模块 3连接的传输模块 4。 其中, 获取模块 1用于根据输入的待编码图像的图像信息确定与上述图像 信息对应的图像模式值; 第一编码模块 2用于利用获取模块 1确定的图像模 式值对上述图像信息进行编码, 形成编码码流; 第二编码模块 3用于对获取 模块 1确定的图像模式值进行编码, 并存储到上述编码码流中; 传输模块 4 用于输出上述携带有图像模式值的编码码流。  FIG. 11 is a schematic structural diagram of Embodiment 1 of an image coding system according to the present invention. The embodiment includes an obtaining module 1, a first encoding module 2 connected to the obtaining module 1, a second encoding module 3 respectively connected to the obtaining module 1 and the first encoding module 2, and a transmission module 4 connected to the second encoding module 3. . The obtaining module 1 is configured to determine an image mode value corresponding to the image information according to the input image information of the image to be encoded; the first encoding module 2 is configured to encode the image information by using an image mode value determined by the acquiring module 1 Forming an encoded code stream; the second encoding module 3 is configured to encode the image mode value determined by the obtaining module 1 and store it in the encoded code stream; and the transmitting module 4 is configured to output the encoded code stream carrying the image mode value.
其中, 上述图像模式为图像的场景模式, 该场景模式包括场景模式标识, 或者包括场景模式标识和场景模式参数。  The image mode is a scene mode of an image, and the scene mode includes a scene mode identifier, or includes a scene mode identifier and a scene mode parameter.
本发明实施例的图像编码系统在视频编码中通过第一编码模块利用图像 模式对上述图像信息进行编码与第二编码模块将经过编码后的图像模式一起 形成编码码流, 可以通过视频编码中的场景模式, 控制视频编码的编码特性 参数, 如量化参数 QP、 频带划分方式、 频带参数大小、 帧内预测方式、 帧间 预测补偿、 运动估计等。 当编码序列中发生场景切换时, 釆用本实施例的图 像编码系统可以 4艮好的适应变换场景的图像特征, 提高图像编码的压缩率。 图像编码系统实施例二 The image encoding system of the embodiment of the present invention encodes the image information by using the image mode by the first encoding module in the video encoding, and the encoded image stream is formed by the second encoding module together with the encoded image mode, which may be encoded by the video encoding. Scene mode, controlling the encoding characteristics of video coding Parameters such as quantization parameter QP, band division mode, band parameter size, intra prediction mode, inter prediction compensation, motion estimation, and the like. When the scene switching occurs in the coding sequence, the image coding system of the present embodiment can adapt the image features of the transformed scene to improve the compression ratio of the image coding. Image coding system embodiment 2
如图 12所示, 为本发明图像编码系统实施例二的结构示意图。 与上一实 施例相比, 本实施例中获取模块 1可以进一步包括第一存储单元 11、 第二存 储单元 12、 与第一存储单元 11连接的第一匹配单元 13、 分别与第一匹配单 元 13和第二存储单元 12连接的第二匹配单元 14、 分别与第一匹配单元 13、 第二匹配单元 14、第一编码模块 2和第二编码模块 3连接的第三存储单元 15。 其中, 第一存储单元 11用于存储一个或一个以上场景模式标识值; 第二存储 单元 12用于存储与第一存储单元 11存储的场景模式标识值对应的场景模式 参数值;第一匹配单元 13用于根据输入的待编码图像的图像信息在第一存储 单元 11 中匹配出与上述图像信息对应的场景模式标识值; 第二匹配单元 14 用于根据第一匹配单元 13匹配出的场景模式标识值在第二存储单元 12中匹 配出与上述场景模式标识值对应的场景模式参数值;第三存储单元 15用于存 储第一匹配单元 13匹配出的场景模式标识值或者存储第一匹配单元 13匹配 出的场景模式标识值和第二匹配单元 14匹配出的场景模式参数值。  FIG. 12 is a schematic structural diagram of Embodiment 2 of an image coding system according to the present invention. Compared with the previous embodiment, the obtaining module 1 in this embodiment may further include a first storage unit 11, a second storage unit 12, a first matching unit 13 connected to the first storage unit 11, and a first matching unit respectively. A second matching unit 14 connected to the second storage unit 12, and a third storage unit 15 connected to the first matching unit 13, the second matching unit 14, the first encoding module 2, and the second encoding module 3, respectively. The first storage unit 11 is configured to store one or more scene mode identifier values; the second storage unit 12 is configured to store a scene mode parameter value corresponding to the scene mode identifier value stored by the first storage unit 11; 13 is configured to match the scene mode identifier value corresponding to the image information in the first storage unit 11 according to the input image information of the image to be encoded; the second matching unit 14 is configured to match the scene mode according to the first matching unit 13 The identifier value matches the scene mode parameter value corresponding to the scene mode identifier value in the second storage unit 12; the third storage unit 15 is configured to store the scene pattern identifier value matched by the first matching unit 13 or store the first matching unit. 13 The matched scene mode identifier value and the scene mode parameter value matched by the second matching unit 14.
本实施例中, 第一编码模块则利用上述第三存储单元存储的场景模式标 识值或存储的场景模式标识值和场景模式参数值对上述图像信息进行编码, 形成编码码流; 上述第二编码模块则将上述场景模式值进行编码后存储到上 述编码码流中;上述传输模块则用于输出上述携带有场景模式值的编码码流。  In this embodiment, the first encoding module encodes the image information by using the scene mode identifier value or the stored scene mode identifier value and the scene mode parameter value stored by the third storage unit to form an encoded code stream; The module encodes the above scene mode value and stores it in the encoded code stream; the transmission module is configured to output the encoded code stream carrying the scene mode value.
此外, 本实施例中还可以包括第一控制单元, 用于根据解析的待编码图 像的场景模式值, 确定当前解码过程中正在使用的当前场景模式是否发生了 改变。 场景模式中场景模式标识值改变, 或者对应的场景模式参数值发生改 变时都可以认为当前场景模式发生了改变。 若当前场景模式发生了改变, 第 一控制单元则通知第三存储单元更新所存储的相应的场景模式标识值, 以及 对应的场景模式参数值, 即第一编码模块和第二编码模块使用新场景模式值 对待编码图像进行图像编码; 若当前场景模式未发生改变, 第一控制单元则 通知第三存储单元不用更新所存储的相应的场景模式标识值, 以及对应的场 景模式参数值, 即第一编码模块和第二编码模块继续使用当前 (即前一次) 场景模式值对待编码图像进行图像编码。 In addition, the first control unit may be further configured to determine, according to the parsed scene mode value of the image to be encoded, whether the current scene mode being used in the current decoding process has changed. When the scene mode identification value changes in the scene mode, or the corresponding scene mode parameter value changes, the current scene mode may be changed. If the current scene mode is changed, the first control unit notifies the third storage unit to update the stored corresponding scene mode identifier value, and the corresponding scene mode parameter value, that is, the first encoding module and the second encoding module use the new scenario. The mode value is image-encoded for the image to be encoded; if the current scene mode has not changed, the first control unit Notifying the third storage unit that the stored corresponding scene mode identifier value and the corresponding scene mode parameter value are not updated, that is, the first encoding module and the second encoding module continue to use the current (ie, previous time) scene mode value to perform the encoded image. Image coding.
本发明实施例的图像编码系统在视频编码中通过第一控制单元确定当前 解码过程中正在使用的当前场景模式是否发生了改变, 若当前场景模式发生 了改变, 第一控制单元则通知第三存储单元更新所存储的相应的场景模式标 识值, 以及对应的场景模式参数值, 即第一编码模块和第二编码模块使用新 场景模式值对待编码图像进行图像编码; 若当前场景模式未发生改变, 第一 控制单元则通知第三存储单元不用更新所存储的相应的场景模式标识值, 以 及对应的场景模式参数值,即第一编码模块和第二编码模块继续使用当前(即 前一次) 场景模式值对待编码图像进行图像编码, 使得在编码序列未发生场 景切换时, 无需更改当前编码所用的场景模式, 缩短了编码的时间, 提高编 码效率。 图像解码系统实施例一  The image encoding system of the embodiment of the present invention determines, by using the first control unit, whether the current scene mode being used in the current decoding process has changed in the video encoding, and if the current scene mode is changed, the first control unit notifies the third storage. The unit updates the corresponding scene mode identifier value stored, and the corresponding scene mode parameter value, that is, the first encoding module and the second encoding module use the new scene mode value to perform image encoding on the image to be encoded; if the current scene mode has not changed, The first control unit notifies the third storage unit not to update the stored corresponding scene mode identifier value, and the corresponding scene mode parameter value, that is, the first encoding module and the second encoding module continue to use the current (ie, previous time) scene mode. The image is encoded by the image to be encoded, so that when the scene is not switched in the encoding sequence, the scene mode used in the current encoding is not changed, the encoding time is shortened, and the encoding efficiency is improved. Image decoding system embodiment 1
如图 13所示, 为本发明图像解码系统实施例一的结构示意图。 本实施例 包括顺次连接的解析模块 5、 解码模块 6和输出模块 7。 其中, 解析模块 5用 于对接收到的待解码图像的码流进行解析,得到上述解码图像的图像模式值; 解码模块 6用于根据解析模块 5得到的图像模式值对上述码流进行解码; 输 出模块 7用于输出上述解码模块解码后的图像。  FIG. 13 is a schematic structural diagram of Embodiment 1 of an image decoding system according to the present invention. This embodiment includes a parsing module 5, a decoding module 6, and an output module 7 which are sequentially connected. The parsing module 5 is configured to parse the received code stream of the image to be decoded to obtain an image mode value of the decoded image; and the decoding module 6 is configured to decode the code stream according to the image mode value obtained by the parsing module 5; The output module 7 is configured to output the decoded image of the decoding module.
其中, 上述图像模式为图像的场景模式, 该场景模式包括场景模式标识, 或者包括场景模式标识和场景模式参数。  The image mode is a scene mode of an image, and the scene mode includes a scene mode identifier, or includes a scene mode identifier and a scene mode parameter.
本发明实施例的图像解码系统通过解析模块将码流中存在的场景模式信 息解析出来 , 解码模块根据解析模块得到的图像场景模式信息对码流进行解 码, 使场景模式参与图像解码的过程, 从而提高解码重建图像的质量。 图像解码系统实施例二  The image decoding system of the embodiment of the present invention parses the scene mode information existing in the code stream by the parsing module, and the decoding module decodes the code stream according to the image scene mode information obtained by the parsing module, so that the scene mode participates in the image decoding process, thereby Improve the quality of the decoded reconstructed image. Image decoding system embodiment 2
如图 14所示, 为本发明图像解码系统实施例二的结构示意图。 与上一实 施例相比, 本实施例中解析模块 5可以包括: 第一存储单元 11、 第二存储单 元 12、 分别与第一存储单元 11和第二存储单元 12连接的第三匹配单元 51、 与第三匹配单元 51连接的第四存储单元 52。 其中, 第一存储单元 11用于存 储一个或一个以上场景模式标识值;第二存储单元 12用于存储与第一存储单 元 11存储的场景模式标识值对应的场景模式参数值; 第三匹配单元 51用于 对接收到的待解码图像的编码码流进行解析,在第一存储单元 11中匹配出场 景模式标识值或者分别在第一存储单元 11和第二存储单元 12中匹配出与码 流对应的场景模式标识值和场景模式参数值;第四存储单元 52用于存储第三 匹配单元 51 匹配出的场景模式标识值或者存储第三匹配单元 51 匹配出的场 景模式标识值和场景模式参数值。 FIG. 14 is a schematic structural diagram of Embodiment 2 of an image decoding system according to the present invention. Compared with the previous embodiment, the parsing module 5 in this embodiment may include: a first storage unit 11 and a second storage list. The element 12 is a third matching unit 51 connected to the first storage unit 11 and the second storage unit 12, respectively, and a fourth storage unit 52 connected to the third matching unit 51. The first storage unit 11 is configured to store one or more scene mode identifier values; the second storage unit 12 is configured to store a scene mode parameter value corresponding to the scene mode identifier value stored by the first storage unit 11; The 51 is configured to parse the encoded code stream of the received image to be decoded, match the scene mode identifier value in the first storage unit 11 or match the code stream in the first storage unit 11 and the second storage unit 12, respectively. Corresponding scene mode identification value and scene mode parameter value; the fourth storage unit 52 is configured to store the scene mode identifier value matched by the third matching unit 51 or store the scene mode identifier value and the scene mode parameter matched by the third matching unit 51. value.
本实施例中, 上述解码模块用于根据上述第四存储单元存储的场景模式 标识值或者根据上述第四存储单元存储的场景模式标识和场景模式参数对上 述编码码流进行解码。  In this embodiment, the decoding module is configured to decode the encoded code stream according to the scene mode identifier value stored by the fourth storage unit or according to the scene mode identifier and the scene mode parameter stored by the fourth storage unit.
此外, 本发明实施例中还可以包括第二控制单元, 用于根据解析的待编 码图像的场景模式, 确定当前解码过程中正在使用的当前场景模式是否发生 了改变。 场景模式中场景模式标识值改变, 或者对应的场景模式参数发生改 变时都可以认为当前场景模式发生了改变。 若当前场景模式发生了改变, 第 二控制单元则通知第四存储单元更新所存储的相应的场景模式标识值, 以及 对应的场景模式参数值, 即解码模块使用新场景模式对待解码图像的码流进 行解码; 若当前场景模式未发生改变, 第二控制单元则通知第四存储单元不 用更新所存储的相应的场景模式标识值, 以及对应的场景模式参数值, 即解 码模块继续使用当前(即前一次) 场景模式对待解码图像的码流进行解码。  In addition, the embodiment of the present invention may further include a second control unit, configured to determine, according to the parsed scene mode of the image to be encoded, whether the current scene mode being used in the current decoding process has changed. When the scene mode identification value changes in the scene mode, or the corresponding scene mode parameter changes, the current scene mode may be changed. If the current scene mode is changed, the second control unit notifies the fourth storage unit to update the stored corresponding scene mode identifier value, and the corresponding scene mode parameter value, that is, the code stream of the image to be decoded by the decoding module using the new scene mode. Decoding; if the current scene mode has not changed, the second control unit notifies the fourth storage unit not to update the stored corresponding scene mode identifier value, and the corresponding scene mode parameter value, that is, the decoding module continues to use the current (ie, before Once) The scene mode decodes the code stream of the decoded image.
本发明实施例的图像解码系统在视频图像解码中通过第二控制单元确定 当前解码过程中正在使用的当前场景模式是否发生了改变, 若当前场景模式 发生了改变, 第二控制单元则通知第四存储单元更新所存储的相应的场景模 式标识值, 以及对应的场景模式参数值, 即解码模块使用新场景模式对待解 码图像的码流进行解码; 若当前场景模式未发生改变, 第二控制单元则通知 第四存储单元不用更新所存储的相应的场景模式标识值, 以及对应的场景模 式参数值, 即解码模块继续使用当前(即前一次) 场景模式对待解码图像的 码流进行解码。 本实施例的图像解码系统可以根据当前场景模式变化与否决 定是否对解码过程中的场景模式进行切换, 从而使解码过程对场景切换图像 序列有一定的自适应能力, 缩短了编码的时间, 提高编码效率。 The image decoding system of the embodiment of the present invention determines, by the second control unit, whether the current scene mode being used in the current decoding process has changed in the video image decoding. If the current scene mode changes, the second control unit notifies the fourth The storage unit updates the stored corresponding scene mode identifier value, and the corresponding scene mode parameter value, that is, the decoding module decodes the code stream of the image to be decoded using the new scene mode; if the current scene mode has not changed, the second control unit The fourth storage unit is notified not to update the stored corresponding scene mode identifier value, and the corresponding scene mode parameter value, that is, the decoding module continues to decode the code stream of the image to be decoded using the current (ie, previous time) scene mode. The image decoding system of this embodiment can change and reject according to the current scene mode. Whether to switch the scene mode in the decoding process, so that the decoding process has a certain adaptive ability to the scene switching image sequence, shortening the encoding time and improving the encoding efficiency.
上述图像编码系统的任一实施例和图像解码系统的任一实施例可以组成 一个图像编解码系统, 此处不再赘述。  Any of the above embodiments of the image coding system and the image decoding system may constitute an image coding and decoding system, and details are not described herein.
本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分步骤 可以通过程序指令相关的硬件来完成, 前述的程序可以存储于一计算机可读 取存储介质中, 该程序在执行时, 执行包括上述方法实施例的步骤; 而前述 的存储介质包括: ROM, RAM, 磁碟或者光盘等各种可以存储程序代码的介 质。  A person skilled in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by using hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed. The method includes the steps of the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
最后应说明的是: 以上实施例仅用以说明本发明的技术方案, 而非对其 限制; 尽管参照前述实施例对本发明进行了详细的说明, 本领域的普通技术 人员应当理解: 其依然可以对前述各实施例所记载的技术方案进行修改, 或 者对其中部分技术特征进行等同替换; 而这些修改或者替换, 并不使相应技 术方案的本质脱离本发明各实施例技术方案的精神和范围。  It should be noted that the above embodiments are only for explaining the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art that: The technical solutions described in the foregoing embodiments are modified, or some of the technical features are equivalently replaced. The modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

权 利 要求 Rights request
1、 一种图像编码方法, 其特征在于, 包括:  An image encoding method, comprising:
根据待编码图像的图像信息确定与所述图像信息对应的图像模式值; 利用所述图像模式值对所述图像信息进行编码, 得到编码码流; 对所述图像模式值进行编码, 并将编码后的所述图像模式值写入到所述 编码码流中。  Determining an image mode value corresponding to the image information according to image information of the image to be encoded; encoding the image information by using the image mode value to obtain an encoded code stream; encoding the image mode value, and encoding The latter image mode value is written into the encoded code stream.
2、 根据权利要求 1所述的图像编码方法, 其特征在于, 所述图像模式值 对应的图像模式包括图像的场景模式。  2. The image encoding method according to claim 1, wherein the image mode corresponding to the image mode value comprises a scene mode of an image.
3、 根据权利要求 1或 2所述的图像编码方法, 其特征在于, 所述图像信息 包括图像的像素值、 残差值、 图像在变换域的像素值或残差值以及图像编码 中相应的编码信息。  The image encoding method according to claim 1 or 2, wherein the image information includes pixel values of the image, residual values, pixel values or residual values of the image in the transform domain, and corresponding images in the image encoding. Encoding information.
4、 根据权利要求 2所述的图像编码方法, 其特征在于, 所述场景模式包 括场景模式标识; 或者包括场景模式标识和场景模式参数。  The image encoding method according to claim 2, wherein the scene mode comprises a scene mode identifier; or comprises a scene mode identifier and a scene mode parameter.
5、 根据权利要求 4所述的图像编码方法, 其特征在于, 所述场景模式标 识包括场景模式标识码字或场景模式索引。  The image encoding method according to claim 4, wherein the scene mode identifier comprises a scene mode identification codeword or a scene mode index.
6、 根据权利要求 5所述的图像编码方法, 其特征在于, 所述图像编码方 法还包括: 通过场景模式标识获得对应的场景模式参数。  The image encoding method according to claim 5, wherein the image encoding method further comprises: obtaining a corresponding scene mode parameter by using a scene mode identifier.
7、 根据权利要求 4、 5或 6所述的图像编码方法, 其特征在于, 所述场景 模式参数为下列对象中的一种或几种:  The image encoding method according to claim 4, 5 or 6, wherein the scene mode parameter is one or more of the following objects:
从所述图像信息中获取的表示场景图像特征的特征参数;  a feature parameter representing a feature of the scene image acquired from the image information;
图像编码中获取的所述图像信息的编码信息;  Encoding information of the image information acquired in image encoding;
图像编码中存在的用于控制编码器编码过程的控制参数。  Control parameters present in image coding for controlling the encoder encoding process.
8、 根据权利要求 7所述的图像编码方法, 其特征在于, 所述特征参数包 括图像场景的光照亮度、 图像场景的光照色度、 图像编码中变换域的系数频 带划分方式、 变换域的系数频带参数值及其参数值分布、 图像场景中目标或 背景的运动方式。  The image encoding method according to claim 7, wherein the feature parameters include illumination brightness of an image scene, illumination chromaticity of an image scene, coefficient band division manner of a transform domain in image coding, and coefficients of a transform domain. Band parameter values and their parameter value distribution, the way the target or background moves in the image scene.
9、 根据权利要求 1或 2或 4或 5或 6或 8所述的图像编码方法, 其特征在于, 所述利用所述图像模式值对所述图像信息进行编码包括下列步骤中的一个或 利用所述图像模式值控制编码过程中的图像块量化方式; 或 利用所述图像模式值控制编码过程中的图像块频带划分方式; 或 利用所述图像模式值控制编码过程中的图像帧内预测方式; 或 The image encoding method according to claim 1 or 2 or 4 or 5 or 6 or 8, wherein said encoding said image information by said image mode value comprises one of the following steps or Controlling, by using the image mode value, an image block quantization mode in an encoding process; or using the image mode value to control an image block band division manner in an encoding process; or using the image mode value to control image intra prediction in an encoding process Way; or
利用所述图像模式值控制编码过程中的图像帧间预测方式。  The image inter-frame prediction mode in the encoding process is controlled by the image mode value.
10、 根据权利要求 8所述的图像编码方法, 其特征在于, 所述频带划分方 式包括: 默认场景模式下频带划分方式、 红外场景模式下频带划分方式、 夜 间场景模式下频带划分方式和运动场景模式下频带划分方式;  The image encoding method according to claim 8, wherein the frequency band division manner comprises: a frequency band division manner in a default scene mode, a frequency band division manner in an infrared scene mode, a frequency band division manner in a night scene mode, and a motion scene. Band division mode in mode;
默认场景模式下的典型频带划分方式为  The typical frequency band division in the default scene mode is
— Fp[0] Fp[0] Fp[l] Fp[2] Fp[3] Fp[4] Fp[5] Fp[5]—  — Fp[0] Fp[0] Fp[l] Fp[2] Fp[3] Fp[4] Fp[5] Fp[5]—
Fp[0] Fp[l] Fp[2] Fp[3] Fp[4] Fp[4] Fp[5] Fp[5]  Fp[0] Fp[l] Fp[2] Fp[3] Fp[4] Fp[4] Fp[5] Fp[5]
Fp[l] Fp[2] Fp[3] Fp[4] Fp[5] Fp[5] Fp[5] Fp[5]  Fp[l] Fp[2] Fp[3] Fp[4] Fp[5] Fp[5] Fp[5] Fp[5]
Fp[l] Fp[2] Fp[3] Fp[4] Fp[5] Fp[5] Fp[5] Fp[5]  Fp[l] Fp[2] Fp[3] Fp[4] Fp[5] Fp[5] Fp[5] Fp[5]
Fp[2] Fp[3] Fp[4] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5]  Fp[2] Fp[3] Fp[4] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5]
Fp[2] Fp[4] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5]  Fp[2] Fp[4] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5]
Fp[3] Fp[4] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5]  Fp[3] Fp[4] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5]
Fp[4] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5]_  Fp[4] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5]_
红外场景模式下的典型频带划分方式为  The typical frequency band division mode in infrared scene mode is
— Fp[0] Fp[0] Fp[l] Fp[2] Fp[3] Fp[3] Fp[4] Fp[4]  — Fp[0] Fp[0] Fp[l] Fp[2] Fp[3] Fp[3] Fp[4] Fp[4]
Fp[0] Fp[l] Fp[2] Fp[3] Fp[4] Fp[4] Fp[5] Fp[5]  Fp[0] Fp[l] Fp[2] Fp[3] Fp[4] Fp[4] Fp[5] Fp[5]
Fp[l] Fp[2] Fp[3] Fp[4] Fp[5] Fp[5] Fp[5] Fp[5]  Fp[l] Fp[2] Fp[3] Fp[4] Fp[5] Fp[5] Fp[5] Fp[5]
Fp[2] Fp[4] Fp[4] Fp[4] Fp[5] Fp[5] Fp[5] Fp[5]  Fp[2] Fp[4] Fp[4] Fp[4] Fp[5] Fp[5] Fp[5] Fp[5]
Fp[4] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5]  Fp[4] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5]
Fp[4] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5]  Fp[4] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5]
Fp[4] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5]  Fp[4] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5]
Fp[5] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5]  Fp[5] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5]
夜间场景模式下的典型频带划分方式为  The typical frequency band division in night scene mode is
— Fp[0] Fp[0] Fp[l] Fp[2] Fp[2] Fp[2] Fp[3] Fp[5j  — Fp[0] Fp[0] Fp[l] Fp[2] Fp[2] Fp[2] Fp[3] Fp[5j
Fp[0] Fp[l] Fp[2] Fp[3] Fp[3] Fp[3] Fp[4] Fp[5]  Fp[0] Fp[l] Fp[2] Fp[3] Fp[3] Fp[3] Fp[4] Fp[5]
Fp[l] Fp[2] Fp[3] Fp[3] Fp[4] Fp[4] Fp[5] Fp[5]  Fp[l] Fp[2] Fp[3] Fp[3] Fp[4] Fp[4] Fp[5] Fp[5]
Fp[2] Fp[2] Fp[3] Fp[3] Fp[4] Fp[5] Fp[5] Fp[5]  Fp[2] Fp[2] Fp[3] Fp[3] Fp[4] Fp[5] Fp[5] Fp[5]
Fp[3] Fp[3] Fp[4] Fp[4] Fp[5] Fp[5] Fp[5] Fp[5]  Fp[3] Fp[3] Fp[4] Fp[4] Fp[5] Fp[5] Fp[5] Fp[5]
Fp[3] Fp[3] Fp[4] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5]  Fp[3] Fp[3] Fp[4] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5]
Fp[4] Fp[4] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5]  Fp[4] Fp[4] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5]
_Fp[4] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5]_  _Fp[4] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5] Fp[5]_
运动场景模式下的典型频带划分方式为 Fp[0] Fp[0] Fp[2] Fp[3] Fp[4] Fp[5] Fp[5] Fp[5] The typical frequency band division in the motion scene mode is Fp[0] Fp[0] Fp[2] Fp[3] Fp[4] Fp[5] Fp[5] Fp[5]
Fp[0] Fp[l] Fp[2] Fp[3] Fp[4] Fp[5] Fp[5] Fp[5]  Fp[0] Fp[l] Fp[2] Fp[3] Fp[4] Fp[5] Fp[5] Fp[5]
Fp[l] Fp[2] Fp[3] Fp[4] Fp[5] Fp[5] Fp[5] Fp[5]  Fp[l] Fp[2] Fp[3] Fp[4] Fp[5] Fp[5] Fp[5] Fp[5]
Fp[l] Fp[2] Fp[3] Fp[4] Fp[5] Fp[5] Fp[5] Fp[5]  Fp[l] Fp[2] Fp[3] Fp[4] Fp[5] Fp[5] Fp[5] Fp[5]
Fp[2] Fp[3] Fp[4] Fp[4] Fp[5] Fp[5] Fp[5] Fp[5]  Fp[2] Fp[3] Fp[4] Fp[4] Fp[5] Fp[5] Fp[5] Fp[5]
Fp[2] Fp[3] Fp[4] Fp[4] Fp[5] Fp[5] Fp[5] Fp[5]  Fp[2] Fp[3] Fp[4] Fp[4] Fp[5] Fp[5] Fp[5] Fp[5]
Fp[3] Fp[3] Fp[4] Fp[4] Fp[5] Fp[5] Fp[5] Fp[5]  Fp[3] Fp[3] Fp[4] Fp[4] Fp[5] Fp[5] Fp[5] Fp[5]
Fp[3] Fp[3] Fp[4] Fp[4] Fp[5] Fp[5] Fp[5] Fp[5]  Fp[3] Fp[3] Fp[4] Fp[4] Fp[5] Fp[5] Fp[5] Fp[5]
所述 Fp[0]、 Fp[l]、 Fp[2]、 Fp[3]、 Fp[4]和 Fp[5]为频带参数。  The Fp[0], Fp[l], Fp[2], Fp[3], Fp[4], and Fp[5] are band parameters.
11、 一种图像解码方法, 其特征在于, 包括:  11. An image decoding method, comprising:
对待解码图像的码流进行解析, 得到所述待解码图像的图像模式值; 利用所述图像模式值对所述待解码图像的码流进行解码, 输出解码后的 图像。  Parsing the code stream of the decoded image to obtain an image mode value of the image to be decoded; decoding the code stream of the image to be decoded by using the image mode value, and outputting the decoded image.
12、 根据权利要求 11所述的图像解码方法, 其特征在于, 所述图像模式 值对应的图像模式包括图像的场景模式。  12. The image decoding method according to claim 11, wherein the image mode corresponding to the image mode value comprises a scene mode of an image.
13、 根据权利要求 12所述的图像解码方法, 其特征在于, 所述场景模式 包括场景模式标识; 或者包括场景模式标识和场景模式参数。  The image decoding method according to claim 12, wherein the scene mode comprises a scene mode identifier; or comprises a scene mode identifier and a scene mode parameter.
14、 根据权利要求 13所述的图像解码方法, 其特征在于, 所述场景模式 标识包括场景模式标识码字或场景模式索引。  The image decoding method according to claim 13, wherein the scene mode identifier comprises a scene mode identification codeword or a scene mode index.
15、 根据权利要求 13或 14所述的图像解码方法, 其特征在于, 所述场景 模式参数为下列对象中的一种或几种:  The image decoding method according to claim 13 or 14, wherein the scene mode parameter is one or more of the following objects:
与所述图像信息对应的表示场景图像特征的特征参数;  a feature parameter representing a scene image feature corresponding to the image information;
图像解码中获取的所述图像信息的编码信息;  Encoding information of the image information acquired in image decoding;
图像解码中存在的用于控制解码器解码过程的控制参数。  Control parameters present in image decoding for controlling the decoder decoding process.
16、 根据权利要求 15所述的图像解码方法, 其特征在于, 所述特征参数 包括图像场景的光照亮度、 图像场景的光照色度、 图像编码中变换域的系数 频带划分方式、 变换域的系数频带参数值及其参数值分布或图像场景中目标 或背景的运动方式。  The image decoding method according to claim 15, wherein the feature parameters include illumination brightness of an image scene, illumination chromaticity of an image scene, coefficient band division manner of a transform domain in image coding, and coefficients of a transform domain. Band parameter values and their parameter value distribution or the way the target or background moves in the image scene.
17、 根据权利要求 11、 12、 13、 14或 16所述的图像解码方法, 其特征在 于, 所述利用所述图像模式值对所述待解码图像的码流进行解码包括下列步 骤中的一个或多个: 利用所述图像模式值控制解码过程中的图像块反量化方式; 或 The image decoding method according to claim 11, 12, 13, 14, or 16, wherein the decoding the code stream of the image to be decoded by using the image mode value comprises one of the following steps Or multiple: Using the image mode value to control image block inverse quantization in the decoding process; or
利用所述图像模式值控制解码过程中的图像块频带划分方式; 或 利用所述图像模式值控制解码过程中的图像帧内解码; 或  Controlling an image block band division manner in the decoding process by using the image mode value; or controlling image intra-frame decoding in the decoding process by using the image mode value; or
利用所述图像模式值控制解码过程中的图像帧间预测补偿。  Image inter prediction compensation in the decoding process is controlled using the image mode values.
18、 一种图像模式编码方法, 其特征在于, 包括:  18. An image mode encoding method, comprising:
确定待编码图像的图像模式值;  Determining an image mode value of the image to be encoded;
对所述图像模式值进行编码, 并将编码后的图像模式值写入到编码码流 中。  The image mode value is encoded and the encoded image mode value is written into the encoded code stream.
19、 根据权利要求 18所述的图像模式编码方法, 其特征在于, 所述图像 模式值对应的图像模式包括图像的场景模式, 所述图像模式值包括场景模式 值。  The image mode encoding method according to claim 18, wherein the image mode corresponding to the image mode value comprises a scene mode of the image, and the image mode value comprises a scene mode value.
20、 根据权利要求 19所述的图像模式编码方法, 其特征在于, 所述场景 模式包括场景模式标识; 或者包括场景模式标识和场景模式参数。  The image mode encoding method according to claim 19, wherein the scene mode comprises a scene mode identifier; or comprises a scene mode identifier and a scene mode parameter.
21、 根据权利要求 20所述的图像模式编码方法, 其特征在于, 所述场景 模式标识包括场景模式标识码字或场景模式索引。  The image mode encoding method according to claim 20, wherein the scene mode identifier comprises a scene mode identification codeword or a scene mode index.
22、 根据权利要求 19、 20或 21所述的图像模式编码方法, 其特征在于, 所述场景模式包括: 室内场景模式、 室外场景模式、 红外模式、 白天模式、 夜间模式、 阴天模式、 雨雪天模式、 图像渐变模式、 噪声模式和远景模式。  The image mode encoding method according to claim 19, 20 or 21, wherein the scene mode comprises: an indoor scene mode, an outdoor scene mode, an infrared mode, a day mode, a night mode, a cloudy mode, and a rain Snow day mode, image gradient mode, noise mode, and perspective mode.
23、 根据权利要求 19、 20或 21所述的图像模式编码方法, 其特征在于, 所述对所述图像模式值进行编码包括:  The image mode encoding method according to claim 19, 20 or 21, wherein the encoding the image mode value comprises:
将所述场景模式值直接写到图像编码码流中; 或者  Writing the scene mode value directly into the image encoded code stream; or
将所述场景模式值的变换值, 写到图像编码码流中; 或者  Writing the transformed value of the scene mode value into the image encoded code stream; or
将所述场景模式值或者所述场景模式值的变换值, 进行熵编码后, 写到 图像编码码流中。  The scene mode value or the transformed value of the scene mode value is entropy encoded and written into the image coded code stream.
24、 根据权利要求 23所述的图像模式编码方法, 其特征在于, 所述场景 模式值的变换值是所述场景模式值通过数学或者逻辑运算得到。  The image mode encoding method according to claim 23, wherein the transformed value of the scene mode value is obtained by a mathematical or logical operation of the scene mode value.
25、 根据权利要求 23所述的图像模式编码方法, 其特征在于, 所述熵编 码包括定长码、 变长码或二值化自适应编码。  The image mode encoding method according to claim 23, wherein the entropy encoding comprises a fixed length code, a variable length code or a binarized adaptive coding.
26、 根据权利要求 20所述的图像模式编码方法, 其特征在于, 所述对所 述场景模式值进行编码, 并写入到编码码流中, 包括: The image mode encoding method according to claim 20, wherein the pair is The scene mode values are encoded and written into the encoded code stream, including:
对所述场景模式值进行编码 , 将经过编码后的所述场景模式值写到编码 码流中的一个或多个码流层次中。  The scene mode value is encoded, and the encoded scene mode value is written into one or more code stream levels in the encoded code stream.
27、 根据权利要求 26所述的图像模式编码方法, 其特征在于, 所述码流 层次包括以下各个级别层次的码流头结构:  The image mode encoding method according to claim 26, wherein the code stream hierarchy comprises a code stream header structure of each level hierarchy:
序列头或序列扩展头;  Sequence header or sequence extension header;
图组头或图组扩展头;  a group header or a group extension header;
图像头或图像扩展头;  Image header or image extension header;
条带组头或条带组扩展头;  Strip header or strip group extension header;
条带头或条带扩展头。  Strip head or strip extension head.
28、 一种图像模式解码方法, 其特征在于, 包括:  28. An image mode decoding method, comprising:
从图像码流中解析并确定当前解码图像的图像模式值;  Parsing and determining an image mode value of the currently decoded image from the image code stream;
根据所述图像模式值, 确定图像模式。  An image mode is determined based on the image mode value.
29、 根据权利要求 28所述的图像模式解码方法, 其特征在于, 所述图像 模式值对应的图像模式包括图像的场景模式, 所述图像模式值包括场景模式 值。  The image mode decoding method according to claim 28, wherein the image mode corresponding to the image mode value comprises a scene mode of the image, and the image mode value comprises a scene mode value.
30、 根据权利要求 29所述的图像模式解码方法, 其特征在于, 所述场景 模式包括场景模式标识; 或者包括场景模式标识和场景模式参数。  The image mode decoding method according to claim 29, wherein the scene mode comprises a scene mode identifier; or comprises a scene mode identifier and a scene mode parameter.
31、 根据权利要求 30所述的图像模式解码方法, 其特征在于, 所述场景 模式标识包括场景模式标识码字或场景模式索引。  The image mode decoding method according to claim 30, wherein the scene mode identifier comprises a scene mode identification codeword or a scene mode index.
32、 根据权利要求 30所述的图像模式解码方法, 其特征在于, 所述从图 像码流中解析并确定当前解码图像的图像模式值包括:  The image mode decoding method according to claim 30, wherein the parsing and determining the image mode value of the current decoded image from the image code stream comprises:
从图像码流中解析并确定当前解码图像的场景模式标识值;  Parsing and determining a scene mode identification value of the currently decoded image from the image code stream;
根据所述场景模式标识值, 确定与场景模式对应的场景模式参数值, 若 存在场景模式参数值, 则对所述场景模式参数值进行解码;  Determining, according to the scene mode identifier value, a scene mode parameter value corresponding to the scene mode, and if the scene mode parameter value is present, decoding the scene mode parameter value;
所述根据所述图像模式值, 确定图像模式包括:  Determining the image mode according to the image mode value includes:
根据所述场景模式标识值或根据所述场景模式标识值和场景模式参数, 确定场景模式。  Determining a scene mode according to the scene mode identification value or according to the scene mode identification value and the scene mode parameter.
33、 根据权利要求 32所述的图像模式解码方法, 其特征在于, 所述从图 像码流中解析并确定当前解码图像的场景模式标识值包括: 33. The image mode decoding method according to claim 32, wherein the slave image The scene mode identification values that are parsed and determined in the code stream to determine the current decoded image include:
从码流中直接读取的码流值即是场景模式标识的解析结果值; 或者 从码流中直接读取的码流值, 按照对应于编码端的逆变换方法, 得到场 景模式标识的解析结果值; 或者  The code stream value directly read from the code stream is the parsing result value of the scene mode identifier; or the code stream value directly read from the code stream, and the parsing result of the scene pattern identifier is obtained according to the inverse transform method corresponding to the encoding end. Value; or
从码流中直接读取的码流值, 按照对应于编码端的熵解码方法, 得到场 景模式标识的解析结果值。  The code stream value directly read from the code stream is obtained by the entropy decoding method corresponding to the encoding end, and the analysis result value of the scene mode identifier is obtained.
34、 根据权利要求 33所述的图像模式解码方法, 其特征在于, 所述熵解 码方法包括定长码解码、 变长码解码或二值化自适应编码方法的解码。  The image mode decoding method according to claim 33, wherein the entropy decoding method comprises decoding of fixed length code decoding, variable length code decoding or binary adaptive coding method.
35、 根据权利要求 32所述的图像模式解码方法, 其特征在于, 所述根据 所述场景模式标识值, 确定与场景模式对应的场景模式参数值包括:  The image mode decoding method according to claim 32, wherein the determining, according to the scene mode identifier value, the scene mode parameter value corresponding to the scene mode comprises:
根据所述场景模式标识值, 确定与场景模式对应的场景模式参数的类型 和场景模式参数的值。  And determining, according to the scene mode identifier value, a type of the scene mode parameter corresponding to the scene mode and a value of the scene mode parameter.
36、 根据权利要求 32所述的图像模式解码方法, 其特征在于, 所述场景 模式包括室内场景模式、 室外场景模式, 红外模式、 白天模式、 夜间模式、 阴天模式、 雨雪天模式、 图像渐变模式、 噪声模式或远景模式。  The image mode decoding method according to claim 32, wherein the scene mode comprises an indoor scene mode, an outdoor scene mode, an infrared mode, a day mode, a night mode, a cloudy mode, a rainy day mode, an image Gradient mode, noise mode, or distant mode.
37、 一种图像编码装置, 其特征在于, 包括:  37. An image coding apparatus, comprising:
第一模块, 用于根据待编码图像的图像信息确定与所述图像信息对应的 图像模式值;  a first module, configured to determine an image mode value corresponding to the image information according to image information of the image to be encoded;
第二模块, 用于利用所述图像模式值对所述图像信息进行编码, 得到编 码码流;  a second module, configured to encode the image information by using the image mode value to obtain a coded code stream;
第三模块, 用于对所述图像模式值进行编码, 并将编码后的所述图像模 式值写入到所述编码码流中。  And a third module, configured to encode the image mode value, and write the encoded image mode value into the encoded code stream.
38、 一种图像解码装置, 其特征在于, 包括:  38. An image decoding apparatus, comprising:
第四模块, 用于对待解码图像的码流进行解析, 得到所述待解码图像的 图像模式值;  a fourth module, configured to parse a code stream of the image to be decoded, to obtain an image mode value of the image to be decoded;
第五模块,用于利用所述图像模式值对所述待解码图像的码流进行解码, 输出解码后的图像。  And a fifth module, configured to decode the code stream of the image to be decoded by using the image mode value, and output the decoded image.
39、 一种图像模式编码装置, 其特征在于, 包括:  39. An image mode encoding device, comprising:
第六模块, 用于确定待编码图像的图像模式值; 第七模块, 用于对所述图像模式值进行编码, 并写入到编码码流中。a sixth module, configured to determine an image mode value of the image to be encoded; And a seventh module, configured to encode the image mode value and write into the encoded code stream.
40、 一种图像模式解码装置, 其特征在于, 包括: 40. An image mode decoding device, comprising:
第八模块, 用于从图像码流中解析并确定当前解码图像的图像模式值; 第九模块, 用于根据所述图像模式值, 确定图像模式。  And an eighth module, configured to parse and determine an image mode value of the currently decoded image from the image code stream; and a ninth module, configured to determine an image mode according to the image mode value.
41、 一种图像编码系统, 其特征在于, 包括:  41. An image coding system, comprising:
获取模块, 用于根据待编码图像的图像信息确定与所述图像信息对应的 图像模式值;  And an obtaining module, configured to determine an image mode value corresponding to the image information according to image information of the image to be encoded;
第一编码模块, 用于利用所述获取模块确定的图像模式值对所述图像信 息进行编码, 形成编码码流;  a first encoding module, configured to encode the image information by using an image mode value determined by the acquiring module to form an encoded code stream;
第二编码模块, 用于对所述获取模块确定的图像模式值进行编码, 并存 储到所述编码码流中;  a second encoding module, configured to encode an image mode value determined by the acquiring module, and store the image mode value in the encoded code stream;
传输模块, 用于输出所述携带有图像模式值的编码码流。  And a transmission module, configured to output the encoded code stream carrying the image mode value.
42、 根据权利要求 41所述的图像编码系统, 其特征在于, 所述图像模式 值对应的图像模式包括图像的场景模式。  42. The image encoding system according to claim 41, wherein the image mode corresponding to the image mode value comprises a scene mode of an image.
43、 根据权利要求 42所述的图像编码系统, 其特征在于, 所述场景模式 包括场景模式标识; 或者包括场景模式标识和场景模式参数。  43. The image coding system according to claim 42, wherein the scene mode comprises a scene mode identifier; or comprises a scene mode identifier and a scene mode parameter.
44、 根据权利要求 43所述的图像编码系统, 其特征在于, 所述获取模块 包括:  44. The image coding system according to claim 43, wherein the obtaining module comprises:
第一存储单元, 用于存储一个或一个以上场景模式标识值;  a first storage unit, configured to store one or more scene mode identifier values;
第二存储单元, 用于存储与所述第一存储单元存储的场景模式标识值对 应的场景模式参数值;  a second storage unit, configured to store a scene mode parameter value corresponding to the scene mode identifier value stored by the first storage unit;
第一匹配单元, 用于根据待编码图像的图像信息在所述第一存储单元中 匹配出与所述图像信息对应的场景模式标识值;  a first matching unit, configured to match, in the first storage unit, a scene mode identifier value corresponding to the image information according to image information of an image to be encoded;
第二匹配单元, 用于根据所述第一匹配单元匹配出的场景模式标识值在 所述第二存储单元中匹配出与所述场景模式标识值对应的场景模式参数值; 第三存储单元, 用于存储所述第一匹配单元匹配出的场景模式标识值或 者存储所述第一匹配单元匹配出的场景模式标识值和所述第二匹配单元匹配 出的场景模式参数值。  a second matching unit, configured to match, in the second storage unit, a scene mode parameter value corresponding to the scene mode identifier value according to the scene mode identifier value that is matched by the first matching unit; And storing a scene mode identifier value that is matched by the first matching unit or storing a scene mode identifier value that is matched by the first matching unit and a scene mode parameter value that is matched by the second matching unit.
45、 一种图像解码系统, 其特征在于, 包括: 解析模块, 用于对待解码图像的码流进行解析, 得到所述待解码图像的 图像模式值; 45. An image decoding system, comprising: a parsing module, configured to parse a code stream of the image to be decoded, to obtain an image mode value of the image to be decoded;
解码模块,用于才艮据所述解析模块得到的图^ ¾式值对所述码流进行解码; 输出模块, 用于输出所述解码模块解码后的图像。  a decoding module, configured to decode the code stream according to a value obtained by the parsing module; and an output module, configured to output the decoded image of the decoding module.
46、 根据权利要求 45所述的图像解码系统, 其特征在于, 所述图像模式 值对应的图像模式包括图像的场景模式。  46. The image decoding system according to claim 45, wherein the image mode corresponding to the image mode value comprises a scene mode of an image.
47、 根据权利要求 46所述的图像解码系统, 其特征在于, 所述场景模式 包括场景模式标识; 或者包括场景模式标识和场景模式参数。  47. The image decoding system according to claim 46, wherein the scene mode comprises a scene mode identifier; or comprises a scene mode identifier and a scene mode parameter.
48、根据权利要求 47所述的图像解码系统, 其特征在于, 所述解析模块包括: 第一存储单元, 用于存储一个或一个以上场景模式标识值;  The image decoding system according to claim 47, wherein the parsing module comprises: a first storage unit, configured to store one or more scene mode identifier values;
第二存储单元, 用于存储与所述第一存储单元存储的场景模式标识值对 应的场景模式参数值;  a second storage unit, configured to store a scene mode parameter value corresponding to the scene mode identifier value stored by the first storage unit;
第三匹配单元, 用于对待解码图像的码流进行解析, 在所述第一存储单 元中匹配出场景模式标识值或者分别在所述第一存储单元和所述第二存储单 元中匹配出场景模式标识值和场景模式参数值;  a third matching unit, configured to parse a code stream of the image to be decoded, match a scene mode identifier value in the first storage unit, or match a scene in the first storage unit and the second storage unit respectively Mode identification value and scene mode parameter value;
第四存储单元, 用于存储所述第三匹配单元匹配出的场景模式标识值或 者存储所述第三匹配单元匹配出的场景模式标识值和场景模式参数值。  And a fourth storage unit, configured to store a scene mode identifier value that is matched by the third matching unit, or store a scene mode identifier value and a scene mode parameter value that are matched by the third matching unit.
49、 一种图像编解码系统, 其特征在于, 包括:  49. An image coding and decoding system, comprising:
获取模块, 用于根据待编码图像的图像信息确定与所述图像信息对应的 图像模式值;  And an obtaining module, configured to determine an image mode value corresponding to the image information according to image information of the image to be encoded;
第一编码模块, 用于利用所述获取模块确定的图像模式值对所述图像信 息进行编码, 形成编码码流;  a first encoding module, configured to encode the image information by using an image mode value determined by the acquiring module to form an encoded code stream;
第二编码模块, 用于对所述获取模块确定的图像模式值进行编码, 并存 储到所述编码码流中;  a second encoding module, configured to encode an image mode value determined by the acquiring module, and store the image mode value in the encoded code stream;
传输模块 , 用于输出所述携带有图像模式值的编码码流;  a transmission module, configured to output the coded code stream carrying the image mode value;
解析模块, 用于对待解码图像的码流进行解析, 得到所述待解码图像的 图像模式值;  a parsing module, configured to parse a code stream of the image to be decoded, to obtain an image mode value of the image to be decoded;
解码模块,用于才艮据所述解析模块得到的图^ ¾式值对所述码流进行解码; 输出模块, 用于输出所述解码模块解码后的图像。  a decoding module, configured to decode the code stream according to a value obtained by the parsing module; and an output module, configured to output the decoded image of the decoding module.
PCT/CN2008/073277 2007-11-30 2008-12-01 Image or image mode coding or decoding method, apparatus and image coding and decoding ststem WO2009074089A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN 200710178532 CN101453642B (en) 2007-11-30 2007-11-30 Method, apparatus and system for image encoding/decoding
CN200710178532.4 2007-11-30

Publications (1)

Publication Number Publication Date
WO2009074089A1 true WO2009074089A1 (en) 2009-06-18

Family

ID=40735620

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2008/073277 WO2009074089A1 (en) 2007-11-30 2008-12-01 Image or image mode coding or decoding method, apparatus and image coding and decoding ststem

Country Status (2)

Country Link
CN (1) CN101453642B (en)
WO (1) WO2009074089A1 (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101624648B1 (en) * 2009-08-05 2016-05-26 삼성전자주식회사 Digital image signal processing method, medium for recording the method, digital image signal pocessing apparatus
CN102572380B (en) * 2010-12-29 2014-12-10 中国移动通信集团公司 Video monitoring coding method and device
CN103248367B (en) * 2012-02-03 2016-03-16 展讯通信(上海)有限公司 The coding of bit stream data, coding/decoding method and device
CN104243834B (en) * 2013-06-08 2017-10-13 杭州海康威视数字技术股份有限公司 The image flow-dividing control method and its device of high definition camera
CN103607588B (en) * 2013-09-03 2016-11-02 电子科技大学 A kind of residual transform coefficient significant-image coding method based on template
KR20160054530A (en) * 2013-09-06 2016-05-16 미쓰비시덴키 가부시키가이샤 Video encoding device, video transcoding device, video encoding method, video transcoding method and video stream transmission system
CN107846605B (en) * 2017-01-19 2020-09-04 湖南快乐阳光互动娱乐传媒有限公司 System and method for generating streaming media data of anchor terminal, and system and method for live network broadcast
WO2020168526A1 (en) * 2019-02-21 2020-08-27 深圳市大疆创新科技有限公司 Image encoding method and device, and computer readable storage medium
CN109905711B (en) * 2019-02-28 2021-02-09 深圳英飞拓智能技术有限公司 Image processing method and system and terminal equipment
WO2022217447A1 (en) * 2021-04-12 2022-10-20 Oppo广东移动通信有限公司 Video encoding and decoding method and system, and video codec
CN114925226B (en) * 2022-06-22 2023-03-10 上海威固信息技术股份有限公司 Image storage method, system, image storage device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1328747A (en) * 1998-09-29 2001-12-26 通用仪器公司 Method and apparatus for detecting scene changes and adjusting picture coding type in high definition television encoder
US6430222B1 (en) * 1998-08-31 2002-08-06 Sharp Kabushiki Kaisha Moving picture coding apparatus
KR20040039809A (en) * 2002-11-05 2004-05-12 엘지전자 주식회사 Moving picture encoder and method for coding using the same
US20070201746A1 (en) * 2002-05-20 2007-08-30 Konan Technology Scene change detector algorithm in image sequence
CN101043632A (en) * 2006-06-05 2007-09-26 华为技术有限公司 Image coding/decoding method and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6834080B1 (en) * 2000-09-05 2004-12-21 Kabushiki Kaisha Toshiba Video encoding method and video encoding apparatus
GB2417630B (en) * 2004-08-27 2010-03-10 Tandberg Television Asa Control of frame types in video compression

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6430222B1 (en) * 1998-08-31 2002-08-06 Sharp Kabushiki Kaisha Moving picture coding apparatus
CN1328747A (en) * 1998-09-29 2001-12-26 通用仪器公司 Method and apparatus for detecting scene changes and adjusting picture coding type in high definition television encoder
US20070201746A1 (en) * 2002-05-20 2007-08-30 Konan Technology Scene change detector algorithm in image sequence
KR20040039809A (en) * 2002-11-05 2004-05-12 엘지전자 주식회사 Moving picture encoder and method for coding using the same
CN101043632A (en) * 2006-06-05 2007-09-26 华为技术有限公司 Image coding/decoding method and system

Also Published As

Publication number Publication date
CN101453642B (en) 2012-12-26
CN101453642A (en) 2009-06-10

Similar Documents

Publication Publication Date Title
WO2009074089A1 (en) Image or image mode coding or decoding method, apparatus and image coding and decoding ststem
US10230979B2 (en) Video decoder with signaling
RU2452128C2 (en) Adaptive coding of video block header information
RU2457632C2 (en) Method and apparatus for providing reduced resolution update mode for multi-view video coding
KR101859155B1 (en) Tuning video compression for high frame rate and variable frame rate capture
CN105637879A (en) Alignment of picture order count
US10455241B2 (en) Image encoding/decoding method and device
CN114424561B (en) Disallowing unnecessary layers to be included in a multi-layer video stream
WO2013066267A1 (en) Lossless image and video compression
TWI759280B (en) Video encoding method and video encoder system
WO2021239160A1 (en) Video decoding method, video coding method, electronic device, and storage medium
JP2006517362A (en) Video encoding
CN114424571A (en) Encoder, decoder and corresponding methods
CN114424555B (en) Indication of picture-level non-picture-level syntax elements
CN108076342B (en) Method and encoder system for encoding video
US9565404B2 (en) Encoding techniques for banding reduction
US20130272398A1 (en) Long term picture signaling
US20080069226A1 (en) Motion picture encoder, motion picture decoder,and method for generating encoded stream
US20130272428A1 (en) Video decoder for copy slices
US20130077674A1 (en) Method and apparatus for encoding moving picture
JP2008289105A (en) Image processing device and imaging apparatus equipped therewith
WO2023272533A1 (en) Encoding and decoding method, encoder, decoder, and storage medium
Crespo Allueva Performance comparison of video compression algorithms for digital cinema

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 08859818

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 08859818

Country of ref document: EP

Kind code of ref document: A1