WO2016108318A1 - Method, device and system for synthesizing image in error-resistant compression region - Google Patents

Method, device and system for synthesizing image in error-resistant compression region Download PDF

Info

Publication number
WO2016108318A1
WO2016108318A1 PCT/KR2014/013138 KR2014013138W WO2016108318A1 WO 2016108318 A1 WO2016108318 A1 WO 2016108318A1 KR 2014013138 W KR2014013138 W KR 2014013138W WO 2016108318 A1 WO2016108318 A1 WO 2016108318A1
Authority
WO
WIPO (PCT)
Prior art keywords
macroblock
encoding
syntax
image
boundary
Prior art date
Application number
PCT/KR2014/013138
Other languages
French (fr)
Korean (ko)
Inventor
최윤식
홍순기
강호약간저릭
Original Assignee
연세대학교 산학협력단
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 연세대학교 산학협력단 filed Critical 연세대학교 산학협력단
Priority to PCT/KR2014/013138 priority Critical patent/WO2016108318A1/en
Publication of WO2016108318A1 publication Critical patent/WO2016108318A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using 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/70Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards

Definitions

  • the present invention relates to a method, apparatus and system for image synthesis, and more particularly, to a method, apparatus and system for image synthesis in an error-tolerant compressed region capable of resolving highest probability mode mismatch in inter-screen encoding mode during image synthesis. .
  • ITU-T International Telecommunication Union Telecommunication Standardization Sector
  • ISO / IEC International Telecommunication Standardization Sector
  • JVT Joint Video Team
  • MPEG Moving Picture Experts Group
  • H.264 / AVC Video coding standard was established. H.264 / AVC is currently being evaluated as the next generation video compression technology.
  • video multimedia services such as multi-channel high-definition video compression, Internet, cable modem, video transmission, and digital data broadcasting by combining with next generation multimedia services such as digital TV, satellite and terrestrial digital multimedia broadcasting (DMB). It is used.
  • video multimedia services such as multi-channel high-definition video compression, Internet, cable modem, video transmission, and digital data broadcasting by combining with next generation multimedia services such as digital TV, satellite and terrestrial digital multimedia broadcasting (DMB). It is used.
  • DMB digital multimedia broadcasting
  • the H.264 / AVC-based fast image synthesis technique is a technique for generating a single synthesized image by combining a plurality of independent images.
  • One of the conventional high speed image synthesis techniques is disclosed in Korean Patent Registration No. 10-1053161 (published on January 28, 2011).
  • the disclosed feature of the prior art is to synthesize a plurality of images into a single image and then generate a bitstream for transmission through an encoding process, and to receive a plurality of bitstreams for each of the already encoded and generated images. After extracting and modifying only a specific portion of each of the plurality of received bitstreams, a bitstream of one synthesized image is generated.
  • the above-described prior art which discloses a video synthesis technique in the H.264 / AVC compression region, does not perform decoding on a plurality of input image bitstreams. Instead, syntax analysis is performed on a sequence parameter set (SPS), a picture parameter set (PPS), and a slice header included in each of the plurality of input image bitstreams.
  • SPS sequence parameter set
  • PPS picture parameter set
  • a part of the slice header of each of the plurality of input image bitstreams are changed or newly set to correspond to the display form of the composite image.
  • the conventional technology does not decode a plurality of input image bitstreams applied in a compressed and compressed state, but performs syntax analysis, parameter change, and variable change of a plurality of input image bitstreams in a compressed region in an encoded state to synthesize a composite image. Generates and outputs a bitstream in H.264 / AVC format for.
  • FIG. 1 is a diagram illustrating a problem of a conventional image synthesis technique.
  • FIG. 1 shows one of a plurality of input images before generating a composite image
  • (b) shows a composite image including the input image of (a).
  • each of the plurality of input images before synthesis does not have other images around them. Therefore, no other macro block exists outside the boundary of the input image.
  • the input image of (a) is disposed at the lower right side of the composite image.
  • the input image of (a) is disposed at the lower right side of the synthesized image, other input images that did not exist before being synthesized are disposed adjacent to the left boundary and the upper boundary of the input image of (a) so that the macro block exists. do.
  • H.264 / AVC nine prediction modes are provided in intra prediction encoding for improving compression ratio, and one of the modes is selected to generate and encode a prediction block.
  • the number assigned to each prediction mode is a number assigned according to the probability of occurrence for each prediction mode, and the lower the number, the higher the probability of occurrence.
  • the image encoding apparatus encodes and transmits prediction mode information together with a prediction block, and requires 4 bits to transmit nine prediction modes.
  • H.264 / AVC additionally provides Most Probable Mode (MPM) to reduce the number of bits for transmitting prediction mode information.
  • the MPM determines the highest probability mode by referring to the prediction mode of blocks arranged in the periphery during intra prediction encoding.
  • the prediction mode and the highest probability mode When the prediction mode and the highest probability mode are the same, only one bit of a flag bit for expressing the same reduces the number of data bits to be transmitted. If the prediction mode is not the same as the optimal mode, the flag bit indicates that the prediction mode and the highest probability mode are not the same, and additional 3 bits are added to the information of one of the eight prediction modes except the prediction mode selected in the highest probability mode. Express That is, if the prediction mode and the highest probability mode are the same, only one bit is used to reduce the number of data bits to be transmitted, and only four bits are required even if the prediction mode and the highest probability mode are not the same. Has
  • MPM which is currently defined in H.264 / AVC, provides A prediction mode that refers to blocks arranged adjacent to the left and B prediction mode that refers to blocks arranged adjacent to the top.
  • the lower number prediction mode is selected as the MPM among the mode numbers.
  • the average mode (DC) of the prediction mode for the macroblock in the upper left is prediction mode 2 in FIG. It is set to).
  • MPM is therefore also set to DC.
  • the A prediction mode of the MPM is the vertical mode (VER) which is the prediction mode 0 according to the prediction mode of the left macroblock, and the B prediction mode.
  • VER vertical mode
  • HOR horizontal mode
  • a prediction mode with a lower mode number is selected as MPM, so that MPM is set to prediction mode 0 which is vertical mode (VER). Since this is different from the DC mode which is the MPM in a single image, the MPM mismatch problem for the corresponding macroblock in the synthesized image occurs.
  • the discrepancy of the MPM generates an unintended motion vector value at the time of decoding the macro block, which may cause deterioration of the image quality or, in some cases, the syntax information exceeds the set limit range, thereby causing the decoder to stop operating. It becomes a factor.
  • This MPM mismatch problem is a problem that occurs because the prior art did not sufficiently consider the macro block data when generating the synthesized image, and must be corrected to generate an error-free composite image.
  • an error that is encoded in a skip mode may occur even when the macro block is not encoded in the skip mode due to the skip mode encoding syntax of the macro blocks of other images to be merged. There was this.
  • An object of the present invention is to provide an image synthesizing apparatus which generates a composite image at low complexity and high speed without generating an error due to a mismatch between the MPM mismatch and the composite image in skip mode encoding and entropy encoding.
  • Another object of the present invention is to provide an image synthesis system for achieving the above object.
  • an image synthesizing apparatus receives bitstreams of a plurality of input images, and performs entropy decoding up to at least a macroblock layer for each of the plurality of received bitstreams.
  • a stream parser for parsing;
  • a parameter and header generator configured to modify the syntax analyzed by the stream parser according to configuration information about a preset composite image to generate a modified syntax;
  • MPM Most Probable Mode
  • a stream synthesizer for outputting a bitstream of the synthesized video It includes.
  • the macroblock encoding syntax correcting unit is arranged to be adjacent to each of the plurality of macroblocks and a plurality of boundary macroblocks, which are macroblocks arranged on a boundary of the input video, among the target macroblocks, from each of the plurality of bitstreams. Decodes and extracts a neighboring macroblock that is the macroblock of another input image, analyzes the extracted boundary macroblock and the prediction mode set in each of the neighboring macroblocks, and analyzes the MPM (Most Probable) according to the prediction mode of the neighboring macroblock.
  • MPM Most Probable
  • An MPM correction unit for re-encoding the encoding syntax of the boundary macroblock by regenerating a mode;
  • an entropy encoding syntax recoding unit configured to reencode the encoding syntax of the target macroblock by modifying the entropy encoding syntax including information on the number of non-zero transform coefficients in the entropy encoding for the target macroblock. It characterized by including.
  • the macroblock encoding syntax corrector further includes a macroblock padding unit configured to pad an additional macroblock to one side of the target macroblock and to encode the padded macroblock to generate an encoding syntax for the padded macroblock.
  • the synthesis unit further inserts an encoding syntax for the padded macro block encoded by the macro block padding unit, and outputs a bitstream of the synthesized image including the plurality of input images.
  • the entropy encoding syntax re-encoding unit re-encodes the boundary macroblock among the target macroblocks and performs the entropy encoding using the variable length coding (VLC) method for the boundary macroblock. Modifying the VLC table for the boundary macro block using the neighboring macro block of another input image arranged adjacent to the macro block, and using the modified VLC table, the non-zero of the transform coefficients of the boundary macro block.
  • the variable length encoding syntax including information about the number of transform coefficients is modified to re-encode the encoding syntax of the boundary macroblock.
  • the entropy encoding syntax re-encoding unit modifies a skip mode encoding syntax of the boundary macroblock, wherein the macroblocks included in the other input image arranged adjacent to the image including the boundary macroblock are encoded in skip mode.
  • the apparatus may further include a skip mode encoding syntax correcting unit configured to correct an encoding syntax regarding a skip mode of the boundary macroblock.
  • the MPM corrector determines a boundary of an image according to an arrangement position in which the plurality of input images are arranged in the composite image, and a boundary block extractor that decodes and extracts the boundary macro block and the neighboring macro block from the determined boundary surface.
  • a prediction mode analyzer configured to analyze and determine the prediction mode set in each of the boundary macro block and the neighboring macro block
  • MPM reproduction which determines the MPM prediction mode of the boundary macroblock by using the prediction mode set in the neighboring macroblock, regenerates the MPM by determining whether the prediction mode of the boundary macroblock and the recalculated MPM prediction mode are the same. part
  • a prediction mode recoding unit encoding the reproduced MPM to be inserted into a bitstream of the synthesized image. Characterized in that it comprises a.
  • the boundary block extractor may include an image arrangement analyzer configured to determine an arrangement position of each of the plurality of input images in the synthesized image based on configuration information of the synthesized image set in the parameter and the header generator; An image boundary discrimination unit which determines an interface between adjacent images generated according to a position where a plurality of input images are arranged in the composite image; A boundary macroblock extracting unit configured to decode and extract the boundary macroblocks disposed on an interface between the images in a current image for correcting an MPM among the plurality of input images; And a neighboring macroblock extraction unit configured to decode and extract the neighboring macroblock disposed adjacent to the boundary macroblock from images disposed adjacent to the current image. Characterized in that it comprises a.
  • the prediction mode analyzer includes: a current block prediction mode analyzer configured to analyze and determine the prediction mode set in the boundary macro block; And a neighboring block prediction mode analyzer configured to analyze and determine the prediction mode set in the neighboring macroblock. Characterized in that it comprises a.
  • the MPM regenerator determines the MPM prediction mode by determining a prediction mode having the lowest assigned number among the prediction modes of each of the neighboring macroblocks, and if the prediction mode of the MPM prediction mode and the boundary macroblock is the same, a flag If only the bit is set and the prediction mode of the boundary macroblock is different from the MPM prediction mode, additional bits for designating the prediction mode of the boundary macroblock together with the flag bits are set.
  • the MPM regenerator may select the prediction mode having the lowest number among the prediction modes of the neighboring macroblocks disposed adjacent to the left and the top of the boundary macroblock as the MPM prediction mode.
  • the parameter and header generation unit may generate a modified syntax by modifying headers of parameters and slices of the SPS and the PPS among the syntaxes of the plurality of bit streams.
  • the parameter and header generator may be configured to receive configuration information about the composite image from the outside.
  • a video synthesis system comprising: a plurality of encoding devices configured to receive different original images, encode a predetermined encoding scheme, and output a bitstream; And receiving a plurality of input images as the plurality of bitstreams, correcting the syntax for each of the plurality of bitstreams according to configuration information about a preset composite image, and generating a modified syntax to generate the existing syntax included in the bitstream.
  • a bitstream of the composite image is generated, and each of the plurality of boundary macroblocks is a macroblock disposed at a boundary of the input image from each of the plurality of bitstreams.
  • the apparatus for synthesizing a video may include: a stream syntax analyzer configured to receive and parse the plurality of bitstreams; A parameter and header generator for modifying the syntax analyzed by the stream parser to generate the modified syntax; Means for regenerating and re-coding the Most Probable Mode (MPM) of each target macroblock included in each of the plurality of bitstreams, or performing entropy encoding on a transform coefficient encoded for the target macroblock.
  • MPM Most Probable Mode
  • a stream synthesizer configured to output a bitstream of the synthesized image including a plurality of input images; Characterized in that it comprises a.
  • a video synthesizing method including a stream parser, a parameter and header generator, a macroblock encoding syntax corrector, and a stream synthesizer.
  • a synthesis method comprising: receiving, by a stream parser, a plurality of bitstreams for each of a plurality of input images and parsing each of the received bitstreams; Generating a modified syntax by modifying the syntax analyzed by the parameter and the header generator according to configuration information about a preset composite image; Means for regenerating and re-encoding the Most Probable Mode (MPM) of each target macroblock included in each of the plurality of bitstreams, or a transform coefficient encoded for the target macroblock.
  • MPM Most Probable Mode
  • Means for re-encoding the entropy encoding syntax including information on the number of non-zero transform coefficients in performing entropy encoding on the target macroblock by using any one or all of the means.
  • Macroblock encoding syntax modification step of re-encoding encoding syntax And inserting the modified syntax generated by the parameter and header generation unit and the syntax re-encoded by the macroblock encoding syntax corrector by replacing the existing syntax included in the bitstream by replacing the existing syntax included in the bitstream.
  • Outputting a bitstream for a composite image including; Characterized in that it comprises a.
  • the image synthesizing method, apparatus and system of the present invention does not decode and encode a plurality of input image bitstreams, but changes the parameters and variables in the encoded compression state to generate the macroblock encoded at low complexity high speed composite image generation. It is possible to eliminate errors or deterioration of the synthesized image which may be caused by the prediction mode mismatch of the highest probability mode.
  • FIG. 1 is a diagram illustrating a problem of a conventional image synthesis technique.
  • FIG. 3 is a block diagram schematically illustrating an image synthesizing system according to an embodiment of the present invention.
  • FIG. 4 shows the configuration of the image synthesizing apparatus of FIG.
  • FIG. 5 shows a detailed configuration of the macroblock encoding syntax correction unit of FIG.
  • FIG. 6 shows a detailed configuration of the MPM corrector of FIG.
  • FIG. 7 shows an image synthesis method according to an embodiment of the present invention.
  • FIG. 3 is a block diagram schematically illustrating an image synthesizing system according to an embodiment of the present invention.
  • the image synthesizing system of the present invention includes a plurality of image input means V1 to Vn, a plurality of encoding apparatuses D1 to Dn, and an image synthesizing apparatus VC.
  • the plurality of image input means V1 to Vn are implemented by a camera to generate an original image and transmit the original image to corresponding encoding devices D1 to Dn among the plurality of encoding devices D1 to Dn.
  • the plurality of encoding apparatuses D1 to Dn respectively receive original images from corresponding image input means among the plurality of image input means V1 to Vn, encode them according to H.264 / AVC format, and encode the encoded bitstream BS1. ⁇ Bn) is transmitted to the image synthesizing apparatus VC.
  • the number of the image input means V1 to Vn and the number of the encoding devices D1 to Dn are equal, so that the image input means V1 to Vn and the encoding devices D1 to Dn are equal to each other.
  • the number of the plurality of video input means V1 to Vn and the plurality of encoding devices D1 to Dn may be different from each other.
  • each of the plurality of encoding apparatuses D1 to Dn generates the original video into the bitstreams BS1 to Bn of the H.264 / AVC format is disclosed as an image standard technology designated by JVT as described above, Detailed description will be omitted.
  • the plurality of image input means V1 to Vn may be omitted when the original image is pre-stored in a separate recording medium or a memory of the encoding apparatuses D1 to Dn.
  • the image synthesizing apparatus VC is a core component of the present invention, receives a plurality of bitstreams BS output from the plurality of encoding apparatuses D1 to Dn, and synthesizes the plurality of received bitstreams BS.
  • the synthesized image is generated and the synthesized image is output as a synthesized bitstream (CVBS).
  • the composite bitstream CVBS output from the image synthesizing apparatus VC is also configured according to the H.264 / AVC format.
  • the video synthesizing apparatus VC of the present invention is applied to the entire plurality of bit streams BS1 to Bn applied by the plurality of encoding apparatuses D1 to Dn similarly to Korean Patent No. 10-1053161 described in the prior art. Without performing decoding, only a part of each of the encoded bitstreams BS1 to Bn is extracted and modified, and the synthesized bitstream CVBS is generated by re-coding and inserting the modified region. Therefore, compared to the conventional technique of decoding each of the plurality of bitstreams D1 to Dn and restoring the image, synthesizing the plurality of restored images, and then encoding the synthesized bitstream (CVBS), the amount of work can be greatly reduced. In addition, low-cost, low-end hardware can quickly generate composite images.
  • the image synthesizing apparatus VC changes the MPM setting for some macroblocks in consideration of the arrangement position where the plurality of received bitstreams BS1 to BSn are arranged in the synthesized image, thereby generating a surrounding image after generating the synthesized image.
  • MPM error occurring at the interface with the bitstreams BS1 to BSn disposed adjacent to the node can be eliminated.
  • the synthesized bitstream CVS can be generated by simple combining. In this case, an error due to MPM mismatch occurs in the synthesized image as shown in FIG. 1.
  • the image synthesizing apparatus VC of FIG. 3 determines an arrangement position where each of the plurality of bitstreams BS1 to BSn is to be arranged in the synthesized image, and based on the determined arrangement position, the image synthesis apparatus VC of FIG. It is determined whether there is a bitstream for another image disposed adjacent to the periphery. If there is a bitstream for another image, the intra prediction mode of the boundary region is reflected in the image of the currently placed bitstream in the image of the bitstream for the adjacently arranged image, thereby eliminating the image error due to the MPM mismatch. To be able.
  • FIG. 4 shows the configuration of the image synthesizing apparatus of FIG.
  • the video synthesis apparatus VC includes a stream syntax analyzer 100, a parameter and header generator 200, a macroblock coded syntax corrector 300, and a stream synthesizer 400.
  • the stream parsing unit 100, the parameter and header generating unit 200, and the stream synthesizing unit 400 will briefly describe each operation in the configuration disclosed in the above-described image synthesis apparatus.
  • the stream parsing unit 100 receives a plurality of bit streams BS1 to BSn in units of NAL (Network Abstraction Layer), and analyzes NAL header syntax of the received bitstreams BS1 to BSn. Determine the data type.
  • the data type may be a sequence parameter set (hereinafter referred to as SPS), a picture parameter set (hereinafter referred to as PPS), a slice, or the like.
  • SPS sequence parameter set
  • PPS picture parameter set
  • the parser performs parsing on the header of the slice and the parameters of the SPS and PPS according to the determined data type.
  • the stream parsing unit 100 parses the encoded and transmitted bitstreams BS1 to BSn in the encoded state.
  • the stream parsing unit 100 may analyze the syntax of the SPS according to the authorized data type to determine the size of the input image, and may analyze the syntax of the PPS to determine the size and position of each slice. .
  • the slice header may be analyzed to determine the position of the first macro block of the slice. That is, the stream syntax analyzer 100 may analyze syntaxes of a plurality of bitstreams to obtain macro block position information of slices constituting the image and the size of the image.
  • the parameter and header generator 200 generates the SPS and the PPS for the composite image by using the SPS and the PPS analyzed by the stream syntax analyzer 100 in the plurality of bitstreams BS1 to BSn.
  • the SPS and PPS generated by the parameter and header generator 200 for the composite image are mostly used by merging the headers of the SPS and PPS analyzed in the input bitstreams BS1 to BSn. That is, the parameter and header generator 200 merges the parameters of the plurality of SPSs included in each of the input images and the plurality of PPSs to merge the plurality of input images into one composite image, and then converts the plurality of input images into SPSs and PPSs corresponding to the composite image.
  • the parameter and header generation unit 200 changes or newly sets the parameters of the SPS, the PPS, and the parameters of some headers of the header of the slice to be suitable for the composite image.
  • the parameter and header generation unit 200 may preset and store configuration information of the synthesized image in order to change or newly set a part of the parameters of the SPS and the PPS and the header of the slice.
  • configuration information of the composite image may be stored by receiving a user command from the outside.
  • the configuration information of the synthesized image may include the overall size of the synthesized image, the size of each of the plurality of input images, and the arrangement position.
  • the parameter and the header of the parameter and slice of the SPS and PPS that the parameter generator 200 changes or generates may be referred to as a modified syntax, and a detailed description of generating the modified syntax is disclosed in the prior art, and thus, further description thereof will be omitted. .
  • the macroblock encoding syntax modifying unit 300 is a means for regenerating and re-encoding the Most Probable Mode (MPM) of each target macroblock included in each of the plurality of bitstreams, or a transform coefficient encoded for the target macroblock ( Means for re-encoding the entropy encoding syntax including information on the number of non-zero transform coefficients in performing entropy encoding on a transform coefficient, by using any one or all of the means.
  • MPM Most Probable Mode
  • the encoding syntax of the target macroblock can be recoded.
  • the encoding syntax of the macroblock is used to mean a code string having a predetermined rule generated by encoding an image pixel signal value included in the macroblock. It may mean a code string encoded in a general sense.
  • 5 is a detailed block diagram of the macroblock coded syntax corrector 300.
  • the macroblock coded syntax corrector 300 may include an entropy coded syntax recoding unit 300a and an MPM corrector 300b, and may further include a macroblock padding unit 300c as necessary. If necessary, the apparatus may further include a skip mode encoding syntax corrector 300d.
  • An entropy encoding syntax re-encoding unit 300a modifies the entropy encoding syntax including information on the number of non-zero transform coefficients in the entropy encoding for the target macroblock, thereby encoding the encoded syntax of the target macroblock. Reencode.
  • the transform coefficient is a transform coefficient that is an object to perform entropy encoding. That is, entropy encoding is performed on a transform coefficient or a moving vector of a differential image obtained after predictive encoding is performed.
  • the transform coefficient in the present invention refers to the transform coefficient.
  • the conversion coefficient may be obtained by using various kinds of conversion methods, and may be obtained through, for example, DCT or Hadamard transformation.
  • the target macroblock to which the entropy encoding syntax recoding unit 300a re-encodes the syntax is preferably a boundary macro block as described in detail below with reference to the PMV correction unit 300b. It is preferable to modify the entropy encoding syntax including information on the number of non-zero transform coefficients in entropy encoding of the boundary macroblock by referring to neighboring macroblocks located in the vicinity.
  • the entropy encoding syntax recoding unit 300a re-encodes the boundary macroblock among the target macroblocks, and performs the entropy encoding on the boundary macroblock using a variable length coding (VLC) method. Modifying the VLC table for the boundary macroblock using the neighboring macroblock of another input image disposed adjacent to the boundary macroblock, and using the modified VLC table, 0 of the transform coefficients of the boundary macroblock. It is preferable to re-encode the encoded syntax of the boundary macroblock by modifying the variable length encoded syntax including information on the number of transform coefficients.
  • VLC variable length coding
  • an error block of transform coefficients in H.264 / AVC may be encoded using CAVLC.
  • the CAVLC may select the VLC look-up table for the level parameter according to the size of the recently encoded level and encode the transform coefficients of the current macroblock.
  • the syntax encoded by the VLC includes TotalCoeffs, which is the number of non-zero coefficients, and coeff_token, which is a code string including information of TrailingOnes, which indicate the number of transform coefficients having an absolute value of 1, successively. .
  • coeff_token for a 4x4 block
  • four look-up tables, three variable length code tables, and one fixed length code table may be used.
  • the table is selected by a non-zero number that exists in the previously coded left (Left) and upper block (Upper). If there is no existing macroblock, the table may be selected incorrectly.
  • the entropy encoding syntax recoding unit 300a modifies the VLC table for the boundary macroblock using the peripheral macroblock of another input image disposed adjacent to the boundary macroblock, and uses the modified VLC table.
  • the variable length coding syntax coeff_token including information on the number of non-zero transform coefficients of the transform macroblock of the boundary macroblock, it is preferable to re-encode the encoded syntax of the boundary macroblock.
  • the MPM corrector 300b includes, from each of the plurality of bitstreams, a plurality of boundary macroblocks, which are macroblocks arranged on the boundary of the input image, among the target macroblocks, and another adjacent to each of the plurality of macroblocks. Decodes and extracts a neighboring macroblock that is the macroblock of an input image, analyzes the extracted prediction macro set in each of the boundary macroblock and the neighboring macroblock, and according to a prediction mode of the neighboring macroblock, MPM (Most Probable Mode). ) Is re-encoded to re-encode the encoding syntax of the boundary macroblock.
  • MPM Motion Probable Mode
  • the MPM corrector 300b is provided to prevent an error due to MPM mismatch in the synthesized image as shown in FIG. 1 by synthesizing the input image encoded by the existing synthesized image generation technology without decoding the synthesized image as it is. do.
  • the MPM correction unit 300b analyzes the arrangement of each of the plurality of input images included in the synthesized image and determines the image boundary from the arrangement of the analyzed input images.
  • the MPM correction unit 300b determines the boundary of each input image because, when the MPM mismatch error is composed of a plurality of input images, a macroblock that does not exist in the boundary of each input image is additionally disposed. Because it occurs.
  • the MPM corrector 300b extracts a macroblock disposed at the determined image boundary and a macroblock around the image boundary, and analyzes and re-encodes the MPMs of the extracted macroblocks and outputs the extracted macroblocks. That is, the MPM corrector 300b decodes some macroblocks disposed at the image boundary, corrects the MPM, and entropy the corrected MPM to solve the MPM mismatch error according to the arrangement of the plurality of input images to be included in the composite image. Encode and output
  • the flag bit of 1 bit and the additional bit of 3 bits for the MPM described above will be referred to as MPM. That is, the MPM to be corrected and encoded may be 1 bit of flag bits or 1 bit of flag bits and 3 bits of additional bits.
  • the macro block padding unit 300c pads an additional macro block to one side of the target macro block and encodes the padded macro block to generate an encoding syntax for the padded macro block.
  • the padded macro block may be a macro block having a predetermined value as a signal value of a pixel.
  • the macro block padding unit 300c pads the macro block on one side of the boundary macro blocks of the image.
  • the padded macro block may be used as a reference block of the boundary macro block.
  • the stream synthesis unit 400 further inserts a syntax for the padded macro block encoded by the macro block padding unit 300c, and outputs a bitstream of the synthesized image including the plurality of input images. can do.
  • a skip mode encoding syntax corrector 300d modifies a skip mode encoding syntax of the boundary macroblock, wherein macroblocks included in the other input image arranged adjacent to the image including the boundary macroblock are encoded in a skip mode. Based on the received information, the encoding syntax for the skip mode of the boundary macroblock is modified.
  • H.264 / AVC inter-mode predictive encoding there is a macro block that is skip mode coded, in which a motion vector is not separately calculated and transmitted.
  • the SAD (sum of absolute difference) value is calculated using the difference between the previous macro block and the current macro block, and if there is little difference between the previous macro block and the current macro block based on the SAD information, the current macro block is calculated. It may be decided to encode in a skip mode.
  • the skip mode encoding information of the block may be used as an adjacent neighboring key.
  • mb_skip a skip mode encoding syntax
  • the mb_skip syntax may be used to determine whether to encode a macroblock to be currently encoded in a skip mode.
  • mb_skip syntax information of a neighboring image may incorrectly affect the skip mode encoding determination of the corresponding image. That is, when a plurality of images are synthesized, when a macroblock of a neighboring image is encoded in a skip mode, a boundary macroblock of the corresponding image may be incorrectly encoded in a skip mode.
  • the skip mode encoding syntax corrector 300d encodes the boundary macroblock in the skip mode by using information encoded by the skip mode in the macroblock of the surrounding image other than the image including the boundary macroblock. It is desirable to modify the skip mode encoding syntax involved in the decision. Preferably, the number of encoded macroblocks is counted in a skip mode among macroblocks of a neighboring image, and the skipped mode encoding syntax of the boundary macroblock is modified using the counted number of macroblocks encoded in the skipped mode. . In this case, the modified skip mode encoding syntax may be mb_skip.
  • the stream synthesizing unit 400 generates and outputs a bit stream of the synthesized image by inserting the modified syntax generated by the parameter and header generation unit 200 into the plurality of input images by substituting the syntax of the received bit stream.
  • the bitstream generated by the stream synthesizer 400 is also data encoded according to H.264 / AVC, and may generate a NAL unit (NALU) as a basic unit.
  • NALU NAL unit
  • the stream synthesis unit 400 does not simply insert the modified syntax into the bitstream, but inserts the syntax re-encoded by the macroblock coded syntax corrector 300.
  • the MPM corrector 300b inserts an entropy-encoded MPM into a bitstream, thereby outputting a composite image from which an MPM mismatch error is eliminated.
  • FIG. 6 shows a detailed configuration of the MPM corrector 300b of FIG.
  • the MPM corrector 300b includes a boundary block extractor 310b, a prediction mode analyzer 320b, an MPM regenerator 330b, and a prediction mode recoder 340b.
  • the boundary block extractor 310b determines an image boundary according to an arrangement position where a plurality of input images are arranged in the synthesized image, and extracts a macroblock of the determined image boundary and a macroblock of adjacent images arranged around the image block.
  • the boundary block extractor 310b includes an image layout analyzer 311b, an image boundary determiner 313b, a boundary macroblock extractor 315b, and a neighboring macroblock extractor 317b.
  • the image placement analyzer 311b analyzes a position where the input image of each of the plurality of bitstreams BS1 to BSn is to be arranged in the composite image through the configuration information of the composite image.
  • the image boundary determination unit 313b determines the boundary between the generated images according to the position where the plurality of input images are arranged in the composite image.
  • the boundary between images does not simply mean an edge of one image, but a boundary between two images disposed adjacent to each other. That is, as shown in Fig.
  • the MPM is basically set by using a low number prediction mode among the prediction modes of the macroblocks disposed on the left and top of the macroblock.
  • the present invention is an invention for removing the error of the MPM. Therefore, the interface between the image of the current image and the adjacent image disposed on the right side may not be determined. That is, the boundary between the images may be determined only for the left end and the top of the current image.
  • the current image is an image corresponding to a slice output from the parameter and header generator 200 and means an input image corresponding to a bitstream to correct the current MPM.
  • the boundary macro block extractor 315b extracts a macro block disposed on an interface between images in the current image.
  • the boundary macro block extractor 315b determines the size and position of each slice by parsing the PPS. If the determined position is a boundary between images, the boundary macro block extractor 315b decodes and extracts a macroblock included in the slice. .
  • the macro block disposed at the boundary between the images in the current image is called a boundary macro block.
  • the MPM calculation refers to the prediction mode of the macro block disposed on the left side and the upper side of the macro block, even if the macro blocks disposed on the right side and the lower side of the current image are disposed at the boundary between the images. It is not necessary to extract the boundary macroblocks.
  • the neighboring macroblock extractor 317b decodes and extracts a macroblock included in a boundary of an image disposed adjacent to the current image in the synthesized image. That is, the macroblock and the macroblock adjacent to the macroblock extracted by the boundary macroblock extraction unit 315b are decoded and extracted from the image disposed adjacent to the current image.
  • the neighboring macroblock extracted by the neighboring macroblock extraction unit 317b is called a neighboring macroblock for convenience of description. That is, in the present invention, the neighboring macroblock refers to a macroblock of another image disposed adjacent to the boundary of the current image.
  • the MPM since the MPM is not calculated for the right and bottom boundaries of the current image, the macro blocks disposed on the top and left boundaries of other images do not need to be extracted even if they are arranged at the boundaries between the images.
  • the prediction mode analyzer 320b analyzes a prediction mode set in each of the macroblocks disposed at the boundary between the extracted current image and the adjacent images and the macroblocks of the adjacent images arranged at the periphery.
  • the prediction mode analyzer 320b includes a current block prediction mode analyzer 321b and a neighboring block prediction mode analyzer 323b.
  • the current block prediction mode analyzer 321b analyzes the prediction mode set in the boundary macroblock extracted by the boundary macroblock extractor 315b, and the neighboring block prediction mode analyzer 323b performs the neighboring macroblock extractor 317b. Analyze the prediction mode set in the neighboring macroblock extracted from.
  • the analyzed prediction mode is transmitted to the MPM regenerator 330b.
  • the MPM regenerator 330b regenerates the MPM of the boundary macro block in consideration of the prediction mode of the analyzed surrounding macro block.
  • the MPM regenerator 330b selects a low number prediction mode among the prediction modes of the neighboring macroblocks analyzed by the neighboring block prediction mode analyzer 323b, and analyzes the selected prediction mode and the current block prediction mode analyzer 321b. It is determined whether the prediction mode of the bounded boundary macroblock is the same prediction mode.
  • the MPM is regenerated by setting an additional three bits containing the prediction mode information.
  • the number of bits of the flag bit and the additional bit may vary depending on the settings of the image encoding apparatus and the decoding apparatus.
  • the prediction mode recoding unit 340b entropy-codes the regenerated MPM and transmits the entropy encoding to the stream synthesis unit 400.
  • the image synthesizing system and the image synthesizing apparatus generate a composite image by modifying the SPS of the input image, the parameters of the PPS and the header of the slice in the plurality of input images applied to the bitstreams BS1 to BSn.
  • Some macroblocks arranged at the interface are decoded, MPMs of the macroblocks are generated, encoded, and inserted into the synthesized image. Accordingly, a simple process may be added to the conventional technology of generating a composite image by modifying only the SPS of the input image, the parameters of the PPS, and the header of the slice, thereby providing a composite image from which an MPM error is eliminated.
  • FIG. 7 shows an image synthesis method according to an embodiment of the present invention.
  • the method for synthesizing the image of FIG. 7 firstly receives a plurality of bitstreams BS1 to BSn for each of the plurality of input images (S10).
  • the stream parser 100 of the image synthesizing apparatus VC may receive a plurality of bitstreams BS1 to BSn in NAL units.
  • the stream parser 100 analyzes a syntax for each of the plurality of received bitstreams (S20).
  • the stream parsing unit 100 first analyzes NAL header syntaxes of a plurality of bitstreams BS1 to BSn received in NAL units to determine a data type, and determines the parameters and slices of the SPS and PPS according to the determined data types.
  • the header is parsed to determine the size of the input image, the size and position of each slice, and the position of the macro block.
  • the parameter and header generator 200 generates a parameter and a slice header for the synthesized image (S30).
  • the parameter and header generation unit 200 merges and uses most of the headers of the parameters and slices of the SPS and PPS analyzed in the input bitstreams BS1 to BSn, but includes some headers of the headers of the parameters and slices of the SPS and PPS.
  • the parameter of is changed or newly set to match the configuration information of the preset composite image.
  • Means for regenerating and re-encoding the Most Probable Mode (MPM) of each target macroblock included in each of the plurality of bitstreams, or a transform coefficient encoded for the target macroblock Means for re-encoding the entropy encoding syntax including information about the number of non-zero transform coefficients in performing entropy encoding on the target macroblock using any one or all of the means.
  • the coded syntax is re-encoded (S40).
  • the macroblock encoding syntax correcting step (S40) may include a plurality of boundary macroblocks, which are macroblocks arranged on a boundary of the input image, from each of the plurality of bitstreams, and another input disposed adjacent to each of the plurality of macroblocks.
  • Step S42 Decode and extract the neighboring macroblocks that are the macroblocks of the image, analyze the extracted prediction macros set in each of the extracted boundary macroblocks and the neighboring macroblocks, and according to a prediction mode of the neighboring macroblocks, MPM (Most Probable Mode) MPM correction step (S41) of regenerating and re-encoding the data; And re-encoding the encoding syntax of the target macroblock by modifying the entropy encoding syntax including information on the number of non-zero transform coefficients in the entropy encoding for the target macroblock.
  • Step S42 may include.
  • the entropy encoding syntax recoding step (S42) re-encodes the boundary macroblock among the target macroblocks, and performs the entropy encoding on the boundary macroblock using a variable length coding (VLC) method. Modifying the VLC table for the boundary macroblock using the neighboring macroblock of another input image disposed adjacent to the boundary macroblock, and using the modified VLC table, 0 of the transform coefficients of the boundary macroblock. It is desirable to modify the variable length coding syntax, which indicates the number of transform coefficients, to re-encode the coding syntax of the boundary macroblock.
  • VLC variable length coding
  • the stream synthesis unit 400 inserts the modified syntax generated by the parameter and header generation unit 200 in the plurality of bit streams BS1 to BSn received by the image synthesis apparatus VC, and counts the number of macroblock encoding syntaxes.
  • the macroblock encoding syntax re-encoded by the government 300 is inserted to output a composite video CVBS as a bitstream (S50).
  • the method according to the invention can be embodied as computer readable code on a computer readable recording medium.
  • the computer-readable recording medium includes all kinds of recording devices in which data that can be read by a computer system is stored. Examples of the recording medium include a ROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like, and also include a carrier wave (for example, transmission through the Internet).
  • the computer readable recording medium can also be distributed over network coupled computer systems so that the computer readable code is stored and executed in a distributed fashion.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

Disclosed are a method, device and system for synthesizing an image. The device for synthesizing an image of the present invention comprises: a stream syntax analysis unit receiving bitstreams of a plurality of input images, and performing syntax analysis on each of the received plurality of bitstreams; a parameter and header generation unit modifying the syntaxes analyzed in the stream syntax analysis unit according to configuration information of a pre-set synthesized image, thereby generating modified syntaxes; a macro block encoding syntax modification unit re-encoding the most probable mode (MPM) of each of a target macro block included in each of the plurality of bitstreams, and re-encoding entropy encoding syntaxes of the target macro blocks, thereby re-encoding the encoding syntaxes of the target macro blocks; and a stream synthesis unit replacing the current syntaxes included in the bitstreams by inserting the modified syntaxes generated in the parameter and header generation unit and the syntaxes re-encoded in the macro block encoding syntax modification unit, and outputting a bitstream of the synthesized image comprising the plurality of input images.

Description

오류에 강인한 압축 영역에서의 영상 합성 방법, 장치 및 시스템Image Synthesis Method, Apparatus and System for Error Robust Compression Region
본 발명은 영상 합성 방법, 장치 및 시스템에 관한 것으로, 특히 영상합성 시에 화면간 부호화 모드에서 최고 확률 모드 불일치를 해결할 수 있는, 오류에 강인한 압축 영역에서의 영상 합성 방법, 장치 및 시스템에 관한 것이다.The present invention relates to a method, apparatus and system for image synthesis, and more particularly, to a method, apparatus and system for image synthesis in an error-tolerant compressed region capable of resolving highest probability mode mismatch in inter-screen encoding mode during image synthesis. .
영상신호 압축을 위한 국제 표준화 기구로는 영상회의와 같은 비디오 응용을 위해 결성된 ITU-T(International Telecommunication Union Telecommunication Standardization Sector)와 비디오 데이터의 저장 또는 방송 등 다양한 응용분야를 위한 ISO/IEC 등이 있다. 그리고 ITU-T와 ISO/IEC가 함께 JVT(Joint Video Team)를 구성하여 기존의 MPEG(Moving Picture Experts Group)-2, H.263, MPEG-4 Visual 비디오 압축 부호화 표준보다 압축 성능이 향상된 H.264/AVC 비디오 부호화 표준을 제정하였다. H.264/AVC는 현재 차세대 동영상 압축 기술로 평가 받고 있다. 특히, 디지털 TV, 위성 및 지상파 DMB(Digital Multimedia Broadcasting) 등 차세대 멀티미디어 서비스와 접목되면서 다채널 고화질의 영상압축, 인터넷, 케이블 모뎀, 이동통신망에서의 영상전달, 디지털 데이터 방송 등과 같은 동영상 멀티미디어 서비스에 널리 이용되고 있다.International standardization organizations for video signal compression include the International Telecommunication Union Telecommunication Standardization Sector (ITU-T) formed for video applications such as video conferencing, and ISO / IEC for various applications such as storage or broadcasting of video data. . ITU-T and ISO / IEC together form JVT (Joint Video Team) to improve compression performance over existing Moving Picture Experts Group (MPEG) -2, H.263, and MPEG-4 Visual video compression coding standards. 264 / AVC video coding standard was established. H.264 / AVC is currently being evaluated as the next generation video compression technology. In particular, it is widely used in video multimedia services such as multi-channel high-definition video compression, Internet, cable modem, video transmission, and digital data broadcasting by combining with next generation multimedia services such as digital TV, satellite and terrestrial digital multimedia broadcasting (DMB). It is used.
H.264/AVC 기반 고속 영상 합성 기법은 각각 독립된 복수개의 영상들을 합쳐 하나의 합성된 영상을 생성하는 기법이다. 종래의 고속 영상 합성 기법 중 한가지가 한국 등록 특허 제10-1053161호(2011년 1월 28일 공개)에 공개되어 있다. 공개된 종래 기술의 특징은 복수개의 영상을 하나의 영상으로 합성한 이후 부호화 과정을 거쳐 송신을 위한 비트스트림을 생성하는 것이 아니라, 이미 부호화되어 생성된 영상들 각각에 대한 복수개의 비트스트림을 수신하고, 수신된 복수개의 비트스트림 각각에서 특정 부분만 추출하여 수정한 후 하나의 합성된 영상에 대한 비트스트림을 생성한다.The H.264 / AVC-based fast image synthesis technique is a technique for generating a single synthesized image by combining a plurality of independent images. One of the conventional high speed image synthesis techniques is disclosed in Korean Patent Registration No. 10-1053161 (published on January 28, 2011). The disclosed feature of the prior art is to synthesize a plurality of images into a single image and then generate a bitstream for transmission through an encoding process, and to receive a plurality of bitstreams for each of the already encoded and generated images. After extracting and modifying only a specific portion of each of the plurality of received bitstreams, a bitstream of one synthesized image is generated.
즉 H.264/AVC 압축 영역에서의 동영상 합성 기술을 개시하고 있는 상기의 종래 기술은 입력된 복수개의 입력 영상 비트스트림에 대한 복호화를 수행하지 않는다. 대신 복수개의 입력 영상 비트스트림 각각에 포함된 시퀀스 파라미터 세트(SPS), 픽쳐 파라미터 세트(PPS) 및 슬라이스 헤더에 대한 구문 분석을 수행한다. 그리고 합성 영상의 디스플레이 형태에 대응하도록 복수개의 입력 영상 비트스트림 각각의 시퀀스 파라미터 세트(SPS), 픽쳐 파라미터 세트(PPS) 및 슬라이스 헤더의 파라미터와 변수의 일부를 변경하거나 새로이 설정한다. 즉 종래 기술은 부호화되어 압축된 상태로 인가되는 복수개의 입력 영상 비트스트림을 복호화하지 않고, 부호화된 상태인 압축 영역에서 복수개의 입력 영상 비트스트림의 구문 분석과 파라미터 변경 및 변수 변경을 수행하여 합성 영상에 대한 H.264/AVC 포멧의 비트스트림을 생성하여 출력한다.That is, the above-described prior art, which discloses a video synthesis technique in the H.264 / AVC compression region, does not perform decoding on a plurality of input image bitstreams. Instead, syntax analysis is performed on a sequence parameter set (SPS), a picture parameter set (PPS), and a slice header included in each of the plurality of input image bitstreams. The sequence parameter set (SPS), the picture parameter set (PPS), and a part of the slice header of each of the plurality of input image bitstreams are changed or newly set to correspond to the display form of the composite image. That is, the conventional technology does not decode a plurality of input image bitstreams applied in a compressed and compressed state, but performs syntax analysis, parameter change, and variable change of a plurality of input image bitstreams in a compressed region in an encoded state to synthesize a composite image. Generates and outputs a bitstream in H.264 / AVC format for.
따라서 복수개의 입력 영상 비트스트림에 대한 복호화 과정과 합성 영상 비트스트림에 대한 부호화 과정을 크게 줄여 저복잡도 및 고속으로 합성 영상을 생성할 수 있도록 하는 장점이 있다.Accordingly, there is an advantage in that the synthesis process of the plurality of input image bitstreams and the encoding process of the composite image bitstream can be greatly reduced to generate a composite image at low complexity and high speed.
도1 은 종래의 영상 합성 기법의 문제점을 나타내는 도면이다.1 is a diagram illustrating a problem of a conventional image synthesis technique.
도1 에서 (a)는 합성 영상을 생성하기 전 복수개의 입력 영상 중 하나를 나타내고, (b)는 (a)의 입력 영상이 포함된 합성 영상을 나타낸다. 도1 의 (a)에 도시된 바와 같이 합성되기 전 복수개의 입력 영상 각각은 주위에 다른 영상이 존재하지 않는다. 따라서 입력 영상의 경계면의 외곽에는 다른 매크로 블록이 존재하지 않는다. 그러나 도1 의 (b)에 도시된 합성 영상에서는 (a)의 입력 영상이 합성 영상의 우측 하단에 배치되었다. (a)의 입력 영상이 합성 영상에서 우측 하단에 배치됨에 따라 (a)의 입력 영상의 좌측 경계면, 상단 경계면 외곽에는 합성되기 이전에는 존재하지 않던 다른 입력 영상이 인접하여 배치되어 매크로 블록이 존재하게 된다.In FIG. 1, (a) shows one of a plurality of input images before generating a composite image, and (b) shows a composite image including the input image of (a). As shown in (a) of FIG. 1, each of the plurality of input images before synthesis does not have other images around them. Therefore, no other macro block exists outside the boundary of the input image. However, in the composite image shown in (b) of FIG. 1, the input image of (a) is disposed at the lower right side of the composite image. As the input image of (a) is disposed at the lower right side of the synthesized image, other input images that did not exist before being synthesized are disposed adjacent to the left boundary and the upper boundary of the input image of (a) so that the macro block exists. do.
도2 는 인트라 예측 부호화를 위한 9개의 예측 모드을 나타낸다.2 shows nine prediction modes for intra prediction encoding.
H.264/AVC에서는 압축률을 향상 시키기 위한 인트라 예측 부호화 시에 도2 와 같이 9 개의 예측 모드를 제공하고, 이중 하나의 모드를 선택하여 예측 블록을 생성하고 부호화한다. 도2 에서 각 예측 모드에 부여된 번호는 예측 모드별 발생 확률에 따라 부여된 번호로서, 낮은 숫자일수록 발생 확률이 높다는 것을 의미한다. 영상 부호화 장치는 예측 블록과 함께 예측 모드 정보를 부호화하여 전송하며, 9개의 예측 모드를 전송하기 위해서 4비트를 필요로 한다. 그러나 H.264/AVC는 예측 모드 정보를 전송하기 위한 비트 수를 줄이기 위해 최고 확률 모드(Most Probable Mode : 이하 MPM)를 추가로 제공하고 있다. MPM은 인트라 예측 부호화 시에 주변에 배치된 블록들의 예측 모드를 참조하여 최고 확률 모드를 결정한다. 그리고 예측 모드와 최고 확률 모드가 동일하면 이를 표현하기 위한 1비트의 플래그 비트(flag bit)만을 설정하여 전송할 데이터 비트 수를 줄인다. 만일 예측 모드가 최적 모드와 동일하지 않으면, 플래그 비트에 예측 모드와 최고 확률 모드가 동일하지 않음을 표시하고, 추가 3비트 더하여 최고 확률 모드에서 선택된 예측 모드를 제외한 나머지 8개의 예측 모드 중 하나의 정보를 표현한다. 즉 예측 모드와 최고 확률 모드가 동일하면 1비트만을 사용하여 전송할 데이터 비트수를 줄이고, 예측 모드와 최고 확률 모드가 동일하지 않더라도 4비트만이 필요하므로, 예측 모드 정보를 전송하는 것과 동일한 정보 전송 효율을 갖는다.In H.264 / AVC, nine prediction modes are provided in intra prediction encoding for improving compression ratio, and one of the modes is selected to generate and encode a prediction block. In FIG. 2, the number assigned to each prediction mode is a number assigned according to the probability of occurrence for each prediction mode, and the lower the number, the higher the probability of occurrence. The image encoding apparatus encodes and transmits prediction mode information together with a prediction block, and requires 4 bits to transmit nine prediction modes. However, H.264 / AVC additionally provides Most Probable Mode (MPM) to reduce the number of bits for transmitting prediction mode information. The MPM determines the highest probability mode by referring to the prediction mode of blocks arranged in the periphery during intra prediction encoding. When the prediction mode and the highest probability mode are the same, only one bit of a flag bit for expressing the same reduces the number of data bits to be transmitted. If the prediction mode is not the same as the optimal mode, the flag bit indicates that the prediction mode and the highest probability mode are not the same, and additional 3 bits are added to the information of one of the eight prediction modes except the prediction mode selected in the highest probability mode. Express That is, if the prediction mode and the highest probability mode are the same, only one bit is used to reduce the number of data bits to be transmitted, and only four bits are required even if the prediction mode and the highest probability mode are not the same. Has
현재 H.264/AVC에서 규정된 MPM은 좌측에 인접하여 배치된 블록을 참조하는 A 예측 모드와 상단에 인접하여 배치된 블록을 참조하는 B 예측 모드를 제공하며, A 예측 모드와 B 예측 모드의 모드 번호 중 낮은 번호의 예측 모드를 MPM으로 선택하도록 하고 있다. MPM을 고려하여 도1 의 종래의 영상 합성 기법을 살펴보면, (a)에서는 하나의 입력 영상이 단독으로 존재하기 때문에 좌측 상단의 매크로 블록에 대한 예측 모드가 도2 에서 예측 모드 2인 평균값 모드(DC)인 것으로 설정되어 있다. 따라서 MPM 또한 DC로 설정된다.MPM, which is currently defined in H.264 / AVC, provides A prediction mode that refers to blocks arranged adjacent to the left and B prediction mode that refers to blocks arranged adjacent to the top. The lower number prediction mode is selected as the MPM among the mode numbers. Referring to the conventional image synthesis scheme of FIG. 1 in consideration of the MPM, in (a), since only one input image exists alone, the average mode (DC) of the prediction mode for the macroblock in the upper left is prediction mode 2 in FIG. It is set to). MPM is therefore also set to DC.
그에 비해 (b)에서는 입력 영상의 좌측 및 상단에 다른 영상이 인접하여 배치되어 있으므로, MPM의 A 예측 모드는 좌측 매크로 블록의 예측 모드에 따라 예측 모드 0 인 수직 모드(VER)이고, B 예측 모드는 상단의 매크로 블록의 예측 모드에 따라 예측 모드 1 인 수평 모드(HOR)이다. A 예측 모드가 예측 모드 번호 0이고 B 예측 모드가 예측 모드 번호 1 이므로, 모드 번호가 더 낮은 A 예측 모드가 MPM으로 선택되어, MPM은 수직 모드(VER)인 예측 모드 0으로 설정된다. 이는 단일 영상에서의 MPM인 DC 모드와 상이하므로 합성 영상에서 해당 매크로 블록에 대한 MPM 불일치 문제가 발생한다.On the other hand, in (b), since the other images are arranged adjacent to the left and the top of the input image, the A prediction mode of the MPM is the vertical mode (VER) which is the prediction mode 0 according to the prediction mode of the left macroblock, and the B prediction mode. Is a horizontal mode (HOR) that is prediction mode 1 according to the prediction mode of the upper macroblock. Since A prediction mode is prediction mode number 0 and B prediction mode is prediction mode number 1, A prediction mode with a lower mode number is selected as MPM, so that MPM is set to prediction mode 0 which is vertical mode (VER). Since this is different from the DC mode which is the MPM in a single image, the MPM mismatch problem for the corresponding macroblock in the synthesized image occurs.
MPM의 불일치는 매크로 블록의 복호화 시에 의도하지 않는 움직임 벡터 값을 생성하게 되어 화질의 저하를 유발하거나, 경우에 따라서는 신택스(Syntax) 정보가 설정된 한계 범위를 초과하게 되어 복호기의 동작을 멈추게 하는 요인이 된다.The discrepancy of the MPM generates an unintended motion vector value at the time of decoding the macro block, which may cause deterioration of the image quality or, in some cases, the syntax information exceeds the set limit range, thereby causing the decoder to stop operating. It becomes a factor.
이러한 MPM의 불일치 문제는 종래 기술이 합성 영상 생성시에 매크로 블록 데이터에 대해 충분히 고려하지 않았기 때문에 발생하는 문제로서, 오류없는 합성 영상을 생성하기 위해서는 반드시 수정되어야 한다.This MPM mismatch problem is a problem that occurs because the prior art did not sufficiently consider the macro block data when generating the synthesized image, and must be corrected to generate an error-free composite image.
또한 기존의 영상 합성 기법에서는 매크로 블록이 스킵 모드로 부호화될 경우, 합쳐지는 다른 영상의 매크로 블록의 스킵 모드 부호화 구문에 영향을 받아 스킵 모드로 부호화되면 안되는데도 스킵 모드로 부호화되는 오류가 발생하는 문제점이 있었다.In addition, in a conventional image synthesis technique, when a macro block is encoded in a skip mode, an error that is encoded in a skip mode may occur even when the macro block is not encoded in the skip mode due to the skip mode encoding syntax of the macro blocks of other images to be merged. There was this.
또한 기존의 영상 합성 기법에서는 엔트로피 부호화에 있어서, 합쳐지는 다른 영상의 영향으로 엔트로피 부호화에 사용되는 코드 테이블이 잘못 선택되는 오류가 발생하는 문제점이 있었다.In addition, in the conventional image synthesis technique, there is a problem in that an error of incorrectly selecting a code table used for entropy encoding occurs due to the influence of other images to be combined in entropy encoding.
본 발명의 목적은 MPM 불일치와 스킵 모드 부호화 및 엔트로피 부호화에서의 합성 영상 간의 불일치에 의한 오류가 발생하지 않고, 저복잡도 및 고속으로 합성 영상을 생성하는 영상 합성 장치를 제공하는데 있다.SUMMARY OF THE INVENTION An object of the present invention is to provide an image synthesizing apparatus which generates a composite image at low complexity and high speed without generating an error due to a mismatch between the MPM mismatch and the composite image in skip mode encoding and entropy encoding.
본 발명의 다른 목적은 상기 목적을 달성하기 위한 영상 합성 시스템을 제공하는데 있다.Another object of the present invention is to provide an image synthesis system for achieving the above object.
본 발명의 또 다른 목적은 상기 목적을 달성하기 위한 영상 합성 방법을 제공하는데 있다.It is another object of the present invention to provide an image synthesis method for achieving the above object.
상기 목적을 달성하기 위한 본 발명의 일 예에 따른 영상 합성 장치는 복수개의 입력 영상에 대한 비트스트림을 수신하고, 수신된 복수개의 상기 비트스트림 각각에 대하여 적어도 매크로 블록 계층까지의 엔트로피 복호화를 수행하여 구문 분석을 수행하는 스트림 구문 분석부; 상기 스트림 구문 분석부에서 분석된 상기 구문을 기설정된 합성 영상에 대한 구성 정보에 따라 수정하여, 수정 구문을 생성하는 파라미터 및 헤더 생성부; 상기 복수개의 비트스트림에 각 포함된 각 대상 매크로 블록의 MPM(Most Probable Mode)을 재생성하고 재부호화하는 수단, 또는 상기 대상 매크로 블록에 대하여 부호화된 변환계수(Transform Coefficient)에 대하여 엔트로피 부호화를 수행함에 있어서 0이 아닌 상기 변환계수들의 개수에 대한 정보를 포함하는 상기 엔트로피 부호화 구문을 재부호화하는 수단 중, 어느 하나의 수단을 이용하거나 상기 수단들을 모두 이용하여 상기 대상 매크로 블록의 부호화 구문을 재부호화하는 매크로 블록 부호화 구문 수정부; 및 상기 비트스트림에 포함된 기존 구문을 대체하여 상기 파라미터 및 헤더 생성부에서 생성된 상기 수정 구문과 상기 매크로 블록 부호화 구문 수정부에서 재부호화된 구문을 삽입하여, 상기 복수개의 입력 영상을 포함하는 상기 합성 영상에 대한 비트스트림을 출력하는 스트림 합성부; 를 포함한다.According to an embodiment of the present invention, an image synthesizing apparatus receives bitstreams of a plurality of input images, and performs entropy decoding up to at least a macroblock layer for each of the plurality of received bitstreams. A stream parser for parsing; A parameter and header generator configured to modify the syntax analyzed by the stream parser according to configuration information about a preset composite image to generate a modified syntax; Means for regenerating and re-coding the Most Probable Mode (MPM) of each target macroblock included in each of the plurality of bitstreams, or performing entropy encoding on a transform coefficient encoded for the target macroblock. Re-encoding the encoded syntax of the target macroblock using any one or all of the means for re-encoding the entropy encoded syntax including information on the number of non-zero transform coefficients. Macroblock encoding syntax correction; And inserting the modified syntax generated by the parameter and header generation unit and the syntax re-encoded by the macroblock encoding syntax corrector by replacing the existing syntax included in the bitstream, and including the plurality of input images. A stream synthesizer for outputting a bitstream of the synthesized video; It includes.
상기 매크로 블록 부호화 구문 수정부는, 상기 복수개의 비트스트림 각각으로부터, 상기 대상 매크로 블록 중 상기 입력 영상의 경계에 배치된 매크로 블록인 복수개의 경계 매크로 블록과, 상기 복수개의 매크로 블록 각각에 인접하여 배치된 다른 입력 영상의 상기 매크로 블록인 주변 매크로 블록을 복호화하여 추출하고, 추출된 상기 경계 매크로 블록과 상기 주변 매크로 블록 각각에 설정된 예측 모드를 분석하여, 상기 주변 매크로 블록의 예측 모드에 따라 MPM(Most Probable Mode)을 재생성하여, 상기 경계 매크로 블록의 부호화 구문을 재부호화하는 MPM 보정부; 및 상기 대상 매크로 블록에 대한 상기 엔트로피 부호화에서 0이 아닌 상기 변환계수들의 개수에 대한 정보를 포함하는 상기 엔트로피 부호화 구문을 수정하여, 상기 대상 매크로 블록의 부호화 구문을 재부호화 하는 엔트로피 부호화 구문 재부호화부;를 포함하는 것을 특징으로 한다.The macroblock encoding syntax correcting unit is arranged to be adjacent to each of the plurality of macroblocks and a plurality of boundary macroblocks, which are macroblocks arranged on a boundary of the input video, among the target macroblocks, from each of the plurality of bitstreams. Decodes and extracts a neighboring macroblock that is the macroblock of another input image, analyzes the extracted boundary macroblock and the prediction mode set in each of the neighboring macroblocks, and analyzes the MPM (Most Probable) according to the prediction mode of the neighboring macroblock. An MPM correction unit for re-encoding the encoding syntax of the boundary macroblock by regenerating a mode; And an entropy encoding syntax recoding unit configured to reencode the encoding syntax of the target macroblock by modifying the entropy encoding syntax including information on the number of non-zero transform coefficients in the entropy encoding for the target macroblock. It characterized by including.
상기 매크로 블록 부호화 구문 수정부는 상기 대상 매크로 블록의 일측으로 추가적인 매크로 블록을 패딩하고 상기 패딩된 매크로 블록을 부호화하여 상기 패딩된 매크로 블록에 대한 부호화 구문을 생성하는 매크로 블록 패딩부를 더 포함하고, 상기 스트림 합성부는 상기 매크로 블록 패딩부에서 부호화된 상기 패딩된 매크로 블록에 대한 부호화 구문을 더 삽입하여, 상기 복수개의 입력 영상을 포함하는 상기 합성 영상에 대한 비트스트림을 출력하는 것을 특징으로 한다.The macroblock encoding syntax corrector further includes a macroblock padding unit configured to pad an additional macroblock to one side of the target macroblock and to encode the padded macroblock to generate an encoding syntax for the padded macroblock. The synthesis unit further inserts an encoding syntax for the padded macro block encoded by the macro block padding unit, and outputs a bitstream of the synthesized image including the plurality of input images.
상기 엔트로피 부호화 구문 재부호화부는, 상기 대상 매크로 블록 중 상기 경계 매크로 블록을 재부호화 하고, 상기 경계 매크로 블록을 가변 길이 부호화(VLC, Variable Length Coding) 방식을 이용하여 상기 엔트로피 부호화를 하는 경우, 상기 경계 매크로 블록에 인접하여 배치된 다른 입력 영상의 상기 주변 매크로 블록을 이용하여 상기 경계 매크로 블록에 대한 VLC 테이블을 수정하고, 상기 수정한 VLC 테이블을 이용하여 상기 경계 매크로 블록의 변환계수 중 0이 아닌 상기 변환계수들의 개수에 대한 정보를 포함하는 상기 가변 길이 부호화 구문을 수정하여, 상기 경계 매크로 블록의 부호화 구문을 재부호화 하는 것을 특징으로 한다.The entropy encoding syntax re-encoding unit re-encodes the boundary macroblock among the target macroblocks and performs the entropy encoding using the variable length coding (VLC) method for the boundary macroblock. Modifying the VLC table for the boundary macro block using the neighboring macro block of another input image arranged adjacent to the macro block, and using the modified VLC table, the non-zero of the transform coefficients of the boundary macro block. The variable length encoding syntax including information about the number of transform coefficients is modified to re-encode the encoding syntax of the boundary macroblock.
상기 엔트로피 부호화 구문 재부호화부는 상기 경계 매크로 블록의 스킵 모드 부호화 구문을 수정하되, 상기 경계 매크로 블록을 포함하는 영상에 인접하여 배치된 상기 다른 입력 영상에 포함된 매크로 블록들이 스킵 모드로 부호화된 정보를 이용하여, 상기 경계 매크로 블록의 스킵 모드에 관한 부호화 구문을 수정하는 스킵 모드 부호화 구문 수정부를 더 포함하는 것을 특징으로 한다.The entropy encoding syntax re-encoding unit modifies a skip mode encoding syntax of the boundary macroblock, wherein the macroblocks included in the other input image arranged adjacent to the image including the boundary macroblock are encoded in skip mode. The apparatus may further include a skip mode encoding syntax correcting unit configured to correct an encoding syntax regarding a skip mode of the boundary macroblock.
상기 MPM 보정부는 상기 복수개의 입력 영상이 상기 합성 영상에서 배치되는 배치 위치에 따른 영상의 경계면을 판별하고, 상기 판별된 경계면으로부터 상기 경계 매크로 블록과 상기 주변 매크로 블록을 복호화하여 추출하는 경계 블록 추출부; 상기 경계 매크로 블록과 상기 주변 매크로 블록 각각에 설정된 상기 예측 모드를 분석하여 판별하는 예측 모드 분석부; 상기 주변 매크로 블록에 설정된 예측 모드를 이용하여 상기 경계 매크로 블록의 MPM 예측 모드를 판별하고, 상기 경계 매크로 블록의 예측 모드와 재계산된 상기 MPM 예측 모드가 동일한지 판별하여 상기 MPM을 재생성하는 MPM 재생성부; 및 상기 재생성된 MPM을 상기 합성 영상에 대한 비트스트림에 삽입할 수 있도록 부호화하는 예측 모드 재부호화부; 를 포함하는 것을 특징으로 한다.The MPM corrector determines a boundary of an image according to an arrangement position in which the plurality of input images are arranged in the composite image, and a boundary block extractor that decodes and extracts the boundary macro block and the neighboring macro block from the determined boundary surface. ; A prediction mode analyzer configured to analyze and determine the prediction mode set in each of the boundary macro block and the neighboring macro block; MPM reproduction which determines the MPM prediction mode of the boundary macroblock by using the prediction mode set in the neighboring macroblock, regenerates the MPM by determining whether the prediction mode of the boundary macroblock and the recalculated MPM prediction mode are the same. part; And a prediction mode recoding unit encoding the reproduced MPM to be inserted into a bitstream of the synthesized image. Characterized in that it comprises a.
상기 경계 블록 추출부는 상기 파라미터 및 헤더 생성부에 설정된 상기 합성 영상에 대한 구성 정보에 따라 상기 합성 영상에서 상기 복수개의 입력 영상 각각의 배치 위치를 판별하는 영상 배치 분석부; 상기 합성 영상에서 복수개의 입력 영상이 배치되는 위치에 따라 발생하는 인접 영상들 사이의 경계면을 판별하는 영상 경계 판별부; 상기 복수개의 입력 영상 중 MPM을 보정하기 위한 현재 영상에서 상기 영상들 사이의 경계면에 배치된 상기 경계 매크로 블록을 복호화하여 추출하는 경계 매크로 블록 추출부; 및 상기 현재 영상과 인접하여 배치되는 영상들에서 상기 경계 매크로 블록에 인접하여 배치된 상기 주변 매크로 블록을 복호화하여 추출하는 주변 매크로 블록 추출부; 를 포함하는 것을 특징으로 한다.The boundary block extractor may include an image arrangement analyzer configured to determine an arrangement position of each of the plurality of input images in the synthesized image based on configuration information of the synthesized image set in the parameter and the header generator; An image boundary discrimination unit which determines an interface between adjacent images generated according to a position where a plurality of input images are arranged in the composite image; A boundary macroblock extracting unit configured to decode and extract the boundary macroblocks disposed on an interface between the images in a current image for correcting an MPM among the plurality of input images; And a neighboring macroblock extraction unit configured to decode and extract the neighboring macroblock disposed adjacent to the boundary macroblock from images disposed adjacent to the current image. Characterized in that it comprises a.
상기 예측 모드 분석부는 상기 경계 매크로 블록에 설정된 상기 예측 모드를 분석하여 판별하는 현재 블록 예측 모드 분석부; 및 상기 주변 매크로 블록에 설정된 상기 예측 모드를 분석하여 판별하는 주변 블록 예측 모드 분석부; 를 포함하는 것을 특징으로 한다.The prediction mode analyzer includes: a current block prediction mode analyzer configured to analyze and determine the prediction mode set in the boundary macro block; And a neighboring block prediction mode analyzer configured to analyze and determine the prediction mode set in the neighboring macroblock. Characterized in that it comprises a.
상기 MPM 재생성부는 상기 주변 매크로 블록 각각의 예측 모드 중 기할당된 번호가 가장 낮은 예측 모드를 판별하여 상기 MPM 예측 모드를 판별하고, 상기 MPM 예측 모드와 상기 경계 매크로 블록의 예측 모드가 동일하면, 플래그 비트만을 설정하고, 상기 MPM 예측 모드와 상기 경계 매크로 블록의 예측 모드가 서로 상이하면, 상기 플래그 비트와 함께 상기 경계 매크로 블록의 예측 모드를 지정하기 위한 추가 비트를 설정하는 것을 특징으로 한다.The MPM regenerator determines the MPM prediction mode by determining a prediction mode having the lowest assigned number among the prediction modes of each of the neighboring macroblocks, and if the prediction mode of the MPM prediction mode and the boundary macroblock is the same, a flag If only the bit is set and the prediction mode of the boundary macroblock is different from the MPM prediction mode, additional bits for designating the prediction mode of the boundary macroblock together with the flag bits are set.
상기 MPM 재생성부는 상기 경계 매크로 블록의 좌측 및 상단에 인접하여 배치된 상기 주변 매크로 블록의 예측 모드 중 번호가 가장 낮은 예측 모드 상기 MPM 예측 모드로 선택하는 것을 특징으로 한다.The MPM regenerator may select the prediction mode having the lowest number among the prediction modes of the neighboring macroblocks disposed adjacent to the left and the top of the boundary macroblock as the MPM prediction mode.
상기 파라미터 및 헤더 생성부는 상기 복수개의 비트 스트림의 구문 중 SPS, PPS의 파라미터 및 슬라이스의 헤더를 수정하여 수정 구문을 생성하는 것을 특징으로 한다.The parameter and header generation unit may generate a modified syntax by modifying headers of parameters and slices of the SPS and the PPS among the syntaxes of the plurality of bit streams.
상기 파라미터 및 헤더 생성부는 상기 합성 영상에 대한 구성 정보를 외부에서 인가받아 설정하는 것을 특징으로 한다.The parameter and header generator may be configured to receive configuration information about the composite image from the outside.
상기 다른 목적을 달성하기 위한 본 발명의 일 예에 따른 영상 합성 시스템은 각각 서로 다른 원본 영상을 수신하고, 기설정된 부호화 방식으로 부호화하여 비트스트림을 출력하는 복수개의 부호화 장치; 및 복수개의 입력 영상을 상기 복수개의 비트스트림으로 수신하고, 상기 복수개의 비트스트림 각각에 대한 구문을 기설정된 합성 영상에 대한 구성 정보에 따라 수정하여, 수정 구문을 생성하여 상기 비트스트림에 포함된 기존 구문을 대체하여 삽입함으로써, 상기 합성 영상에 대한 비트스트림을 생성하며, 상기 복수개의 비트스트림 각각으로부터 상기 입력 영상의 경계에 배치된 매크로 블록인 복수개의 경계 매크로 블록과, 상기 복수개의 매크로 블록 각각에 인접하여 배치된 다른 입력 영상의 상기 매크로 블록인 주변 매크로 블록을 복호화하여 추출하고, 추출된 상기 경계 매크로 블록과 상기 주변 매크로 블록 각각에 설정된 예측 모드를 분석하여, 상기 주변 매크로 블록의 예측 모드에 따라 MPM(Most Probable Mode)를 재생성하고, 재부호화하여 상기 합성 영상에 대한 비트스트림에 삽입하는 영상 합성 장치; 를 포함하고, 상기 영상 합성 장치는 상기 복수개의 비트스트림을 수신하여 구문 분석을 수행하는 스트림 구문 분석부; 상기 스트림 구문 분석부에서 분석된 상기 구문을 수정하여 상기 수정 구문을 생성하는 파라미터 및 헤더 생성부; 상기 복수개의 비트스트림에 각 포함된 각 대상 매크로 블록의 MPM(Most Probable Mode)을 재생성하고 재부호화하는 수단, 또는 상기 대상 매크로 블록에 대하여 부호화된 변환계수(Transform Coefficient)에 대하여 엔트로피 부호화를 수행함에 있어서 0이 아닌 상기 변환계수들의 개수에 대한 정보를 포함하는 상기 엔트로피 부호화 구문을 재부호화하는 수단 중, 어느 하나의 수단을 이용하거나 상기 수단들을 모두 이용하여 상기 대상 매크로 블록의 부호화 구문을 재부호화하는 매크로 블록 부호화 구문 수정부; 및 상기 비트스트림에 포함된 기존 구문을 대체하여 상기 파라미터 및 헤더 생성부에서 생성된 상기 수정 구문과 상기 매크로 블록 부호화 구문 수정부에서 재부호화된 구문을 상기 합성 영상에 대한 비트스트림에 삽입하여, 상기 복수개의 입력 영상을 포함하는 상기 합성 영상에 대한 비트스트림을 출력하는 스트림 합성부; 를 포함하는 것을 특징으로 한다.According to an aspect of the present invention, there is provided a video synthesis system, comprising: a plurality of encoding devices configured to receive different original images, encode a predetermined encoding scheme, and output a bitstream; And receiving a plurality of input images as the plurality of bitstreams, correcting the syntax for each of the plurality of bitstreams according to configuration information about a preset composite image, and generating a modified syntax to generate the existing syntax included in the bitstream. By inserting the phrases alternately, a bitstream of the composite image is generated, and each of the plurality of boundary macroblocks is a macroblock disposed at a boundary of the input image from each of the plurality of bitstreams. Decode and extract neighboring macroblocks which are the macroblocks of other adjacently arranged input images, analyze the extracted boundary macroblock and the prediction mode set in each of the neighboring macroblocks, according to the prediction mode of the neighboring macroblocks. Regenerate and recode MPM (Most Probable Mode) An image synthesizing apparatus for inserting a bitstream of the synthesized image; The apparatus for synthesizing a video may include: a stream syntax analyzer configured to receive and parse the plurality of bitstreams; A parameter and header generator for modifying the syntax analyzed by the stream parser to generate the modified syntax; Means for regenerating and re-coding the Most Probable Mode (MPM) of each target macroblock included in each of the plurality of bitstreams, or performing entropy encoding on a transform coefficient encoded for the target macroblock. Re-encoding the encoded syntax of the target macroblock using any one or all of the means for re-encoding the entropy encoded syntax including information on the number of non-zero transform coefficients. Macroblock encoding syntax correction; And inserting the modified syntax generated by the parameter and header generation unit and the syntax re-encoded by the macroblock encoding syntax corrector by replacing the existing syntax included in the bitstream into the bitstream for the synthesized image. A stream synthesizer configured to output a bitstream of the synthesized image including a plurality of input images; Characterized in that it comprises a.
상기 다른 목적을 달성하기 위한 본 발명의 일 예에 따른 영상 합성 방법은 스트림 구문 분석부, 파라미터 및 헤더 생성부, 매크로 블록 부호화 구문 수정부 및 스트림 합성부를 포함하는 영상 합성 장치의 영상 합성 장치의 영상 합성 방법에 있어서, 상기 스트림 구문 분석부가 복수개의 입력 영상 각각에 대한 복수개의 비트스트림을 수신하고, 수신된 비트 스트림 각각에 대한 구문을 분석하는 단계; 상기 파라미터 및 헤더 생성부가 분석된 상기 구문을 기설정된 합성 영상에 대한 구성 정보에 따라 수정하여, 수정 구문을 생성하는 단계; 매크로 블록 부호화 구문 수정부가 상기 복수개의 비트스트림에 각 포함된 각 대상 매크로 블록의 MPM(Most Probable Mode)을 재생성하고 재부호화하는 수단, 또는 상기 대상 매크로 블록에 대하여 부호화된 변환계수(Transform Coefficient)에 대하여 엔트로피 부호화를 수행함에 있어서 0이 아닌 상기 변환계수들의 개수에 대한 정보를 포함하는 상기 엔트로피 부호화 구문을 재부호화하는 수단 중, 어느 하나의 수단을 이용하거나 상기 수단들을 모두 이용하여 상기 대상 매크로 블록의 부호화 구문을 재부호화하는, 매크로 블록 부호화 구문 수정 단계; 및 상기 스트림 합성부가 상기 비트스트림에 포함된 기존 구문을 대체하여 상기 파라미터 및 헤더 생성부에서 생성된 상기 수정 구문과 상기 매크로 블록 부호화 구문 수정부에서 재부호화된 구문을 삽입하여 상기 복수개의 입력 영상을 포함하는 합성 영상에 대한 비트스트림을 출력하는 단계; 를 포함하는 것을 특징으로 한다.According to an aspect of the present invention, there is provided a video synthesizing method including a stream parser, a parameter and header generator, a macroblock encoding syntax corrector, and a stream synthesizer. A synthesis method, comprising: receiving, by a stream parser, a plurality of bitstreams for each of a plurality of input images and parsing each of the received bitstreams; Generating a modified syntax by modifying the syntax analyzed by the parameter and the header generator according to configuration information about a preset composite image; Means for regenerating and re-encoding the Most Probable Mode (MPM) of each target macroblock included in each of the plurality of bitstreams, or a transform coefficient encoded for the target macroblock. Means for re-encoding the entropy encoding syntax including information on the number of non-zero transform coefficients in performing entropy encoding on the target macroblock by using any one or all of the means. Macroblock encoding syntax modification step of re-encoding encoding syntax; And inserting the modified syntax generated by the parameter and header generation unit and the syntax re-encoded by the macroblock encoding syntax corrector by replacing the existing syntax included in the bitstream by replacing the existing syntax included in the bitstream. Outputting a bitstream for a composite image including; Characterized in that it comprises a.
따라서, 본 발명의 영상 합성 방법, 장치 및 시스템은 복수개의 입력 영상 비트스트림을 복호화 및 부호화 하지 않고, 부호화된 압축 상태에서 파라미터와 변수를 변경하여 저복잡도 고속 합성 영상 생성 시에 부호화되는 매크로 블록의 최고 확률 모드의 예측 모드 불일치로 인한 발생할 수 있는 합성 영상의 오류나 화질 저하를 제거할 수 있도록 한다.Accordingly, the image synthesizing method, apparatus and system of the present invention does not decode and encode a plurality of input image bitstreams, but changes the parameters and variables in the encoded compression state to generate the macroblock encoded at low complexity high speed composite image generation. It is possible to eliminate errors or deterioration of the synthesized image which may be caused by the prediction mode mismatch of the highest probability mode.
도1 은 종래의 영상 합성 기법의 문제점을 나타내는 도면이다.1 is a diagram illustrating a problem of a conventional image synthesis technique.
도2 는 인트라 예측 부호화를 위한 9개의 예측 모드을 나타낸다.2 shows nine prediction modes for intra prediction encoding.
도3 은 본 발명의 일 실시예에 따른 영상 합성 시스템을 개략적으로 나타낸 블록도이다. 3 is a block diagram schematically illustrating an image synthesizing system according to an embodiment of the present invention.
도4 는 도3 의 영상 합성 장치의 구성을 나타낸다.4 shows the configuration of the image synthesizing apparatus of FIG.
도5 는 도4 의 매크로 블록 부호화 구문 수정부의 세부 구성을 나타낸다.FIG. 5 shows a detailed configuration of the macroblock encoding syntax correction unit of FIG.
도6 는 도5 의 MPM 보정부의 세부 구성을 나타낸다.FIG. 6 shows a detailed configuration of the MPM corrector of FIG.
도7 은 본 발명의 일 실시예에 따른 영상 합성 방법을 나타낸다.7 shows an image synthesis method according to an embodiment of the present invention.
본 발명과 본 발명의 동작상의 이점 및 본 발명의 실시에 의하여 달성되는 목적을 충분히 이해하기 위해서는 본 발명의 바람직한 실시예를 예시하는 첨부 도면 및 첨부 도면에 기재된 내용을 참조하여야만 한다. In order to fully understand the present invention, the operational advantages of the present invention, and the objects achieved by the practice of the present invention, reference should be made to the accompanying drawings which illustrate preferred embodiments of the present invention and the contents described in the accompanying drawings.
이하, 첨부한 도면을 참조하여 본 발명의 바람직한 실시예를 설명함으로서, 본 발명을 상세히 설명한다. 그러나, 본 발명은 여러 가지 상이한 형태로 구현될 수 있으며, 설명하는 실시예에 한정되는 것이 아니다. 그리고, 본 발명을 명확하게 설명하기 위하여 설명과 관계없는 부분은 생략되며, 도면의 동일한 참조부호는 동일한 부재임을 나타낸다. Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings. As those skilled in the art would realize, the described embodiments may be modified in various different ways, all without departing from the spirit or scope of the present invention. In addition, in order to clearly describe the present invention, parts irrelevant to the description are omitted, and the same reference numerals in the drawings indicate the same members.
명세서 전체에서, 어떤 부분이 어떤 구성요소를 "포함"한다고 할 때, 이는 특별히 반대되는 기재가 없는 한 다른 구성요소를 제외하는 것이 아니라, 다른 구성요소를 더 포함할 수 있는 것을 의미한다. 또한, 명세서에 기재된 "...부", "...기", "모듈", "블록" 등의 용어는 적어도 하나의 기능이나 동작을 처리하는 단위를 의미하며, 이는 하드웨어나 소프트웨어 또는 하드웨어 및 소프트웨어의 결합으로 구현될 수 있다.Throughout the specification, when a part is said to "include" a certain component, it means that it may further include other components, without excluding the other components unless otherwise stated. In addition, the terms "... unit", "... unit", "module", "block", etc. described in the specification mean a unit for processing at least one function or operation, which means hardware, software, or hardware. And software.
도3 은 본 발명의 일 실시예에 따른 영상 합성 시스템을 개략적으로 나타낸 블록도이다. 3 is a block diagram schematically illustrating an image synthesizing system according to an embodiment of the present invention.
도3 을 참조하면 본 발명의 영상 합성 시스템은 복수개의 영상 입력 수단(V1 ~ Vn), 복수개의 부호화 장치(D1 ~ Dn) 및 영상 합성 장치(VC)를 포함한다.Referring to FIG. 3, the image synthesizing system of the present invention includes a plurality of image input means V1 to Vn, a plurality of encoding apparatuses D1 to Dn, and an image synthesizing apparatus VC.
복수개의 영상 입력 수단(V1 ~ Vn)은 카메라 등으로 구현되어 원본 영상을 생성하여 복수개의 부호화 장치(D1 ~ Dn) 중 대응하는 부호화 장치(D1 ~ Dn)로 전송한다.The plurality of image input means V1 to Vn are implemented by a camera to generate an original image and transmit the original image to corresponding encoding devices D1 to Dn among the plurality of encoding devices D1 to Dn.
복수개의 부호화 장치(D1 ~ Dn)은 각각 복수개의 영상 입력 수단(V1 ~ Vn) 중 대응하는 영상 입력 수단으로부터 원본 영상을 수신하여 H.264/AVC 포멧에 맞추어 부호화하고, 부호화된 비트스트림(BS1 ~ Bn)을 영상 합성 장치(VC)로 전송한다. 도3 에서는 설명의 편의를 위하여 영상 입력 수단(V1 ~ Vn)의 개수와 부호화 장치(D1 ~ Dn)의 개수를 동일하게 하여, 영상 입력 수단(V1 ~ Vn)과 부호화 장치(D1 ~ Dn)가 1 대 1로 대응하는 것으로 도시하였으나, 복수개의 영상 입력 수단(V1 ~ Vn)과 복수개의 부호화 장치(D1 ~ Dn)의 개수는 서로 상이하여도 무방하다. 복수개의 부호화 장치(D1 ~ Dn) 각각이 원본 영상을 H.264/AVC 포멧의 비트스트림(BS1 ~ Bn)으로 생성하는 기법은 상기한 바와 같이 JVT에 의해 지정된 영상 표준 기술로서 공개된 기술이므로 여기서는 상세한 설명을 생략한다.The plurality of encoding apparatuses D1 to Dn respectively receive original images from corresponding image input means among the plurality of image input means V1 to Vn, encode them according to H.264 / AVC format, and encode the encoded bitstream BS1. ~ Bn) is transmitted to the image synthesizing apparatus VC. In FIG. 3, for the convenience of description, the number of the image input means V1 to Vn and the number of the encoding devices D1 to Dn are equal, so that the image input means V1 to Vn and the encoding devices D1 to Dn are equal to each other. Although illustrated as one-to-one, the number of the plurality of video input means V1 to Vn and the plurality of encoding devices D1 to Dn may be different from each other. Since each of the plurality of encoding apparatuses D1 to Dn generates the original video into the bitstreams BS1 to Bn of the H.264 / AVC format is disclosed as an image standard technology designated by JVT as described above, Detailed description will be omitted.
그리고 복수개의 영상 입력 수단(V1 ~ Vn)은 원본 영상이 별도의 기록 매체나 부호화 장치(D1 ~ Dn)의 메모리 등에 기저장된 경우에는 생략될 수 있다.The plurality of image input means V1 to Vn may be omitted when the original image is pre-stored in a separate recording medium or a memory of the encoding apparatuses D1 to Dn.
영상 합성 장치(VC)는 본 발명의 핵심 구성요소로서, 복수개의 부호화 장치(D1 ~ Dn)에서 출력되는 복수개의 비트스트림(BS)을 수신하고, 수신된 복수개의 비트스트림(BS)를 합성하여, 합성 영상을 생성하고, 합성 영상을 합성 비트스트림(CVBS)으로 출력한다. 이때, 영상 합성 장치(VC)에서 출력되는 합성 비트스트림(CVBS) 또한 H.264/AVC 포멧에 따라 구성된다.The image synthesizing apparatus VC is a core component of the present invention, receives a plurality of bitstreams BS output from the plurality of encoding apparatuses D1 to Dn, and synthesizes the plurality of received bitstreams BS. The synthesized image is generated and the synthesized image is output as a synthesized bitstream (CVBS). In this case, the composite bitstream CVBS output from the image synthesizing apparatus VC is also configured according to the H.264 / AVC format.
본 발명의 영상 합성 장치(VC)는 종래의 기술에 설명한, 한국 등록 특허 제10-1053161호와 유사하게 복수개의 부호화 장치(D1 ~ Dn)에서 인가되는 복수개의 비트스트림(BS1 ~ Bn) 전체에 대해 복호화를 수행하지 않고, 부호화된 비트스트림(BS1 ~ Bn) 각각에서 일부만을 추출하여 수정하고, 수정된 영역을 재부호하여 삽입하는 방식으로 합성 비트스트림(CVBS)을 생성한다. 따라서 기존에 복수개의 비트스트림(D1 ~ Dn) 각각을 모두 복호화하여 영상을 복원하고, 복원된 복수개의 영상을 합성한 후 다시 합성 비트스트림(CVBS)으로 부호화하는 기법에 비해 작업량을 크게 줄일 수 있으므로, 저비용 저사양의 하드웨어로도 빠르게 합성 영상을 생성할 수 있다.The video synthesizing apparatus VC of the present invention is applied to the entire plurality of bit streams BS1 to Bn applied by the plurality of encoding apparatuses D1 to Dn similarly to Korean Patent No. 10-1053161 described in the prior art. Without performing decoding, only a part of each of the encoded bitstreams BS1 to Bn is extracted and modified, and the synthesized bitstream CVBS is generated by re-coding and inserting the modified region. Therefore, compared to the conventional technique of decoding each of the plurality of bitstreams D1 to Dn and restoring the image, synthesizing the plurality of restored images, and then encoding the synthesized bitstream (CVBS), the amount of work can be greatly reduced. In addition, low-cost, low-end hardware can quickly generate composite images.
그러나 본 발명에 따른 영상 합성 장치(VC)는 수신된 복수개의 비트스트림(BS1 ~ BSn)이 합성 영상에서 배치되는 배치위치를 고려하여, 일부 매크로 블록에 대한 MPM 설정을 변경함으로써 합성 영상 생성 후 주변에 인접하여 배치되는 비트스트림(BS1 ~ BSn)과의 경계면에서 발생하는 MPM 오류를 제거할 수 있도록 한다.However, the image synthesizing apparatus VC according to the present invention changes the MPM setting for some macroblocks in consideration of the arrangement position where the plurality of received bitstreams BS1 to BSn are arranged in the synthesized image, thereby generating a surrounding image after generating the synthesized image. MPM error occurring at the interface with the bitstreams BS1 to BSn disposed adjacent to the node can be eliminated.
상기한 종래 기술에서는 복수개의 비트스트림(D1 ~ Dn)에서 파라미터와 변수만을 추출하여 단순 결합에 의해 합성 비트스트림(CVBS)를 생성할 수 있도록 하였으므로, 영상이 합성된 후 주변에 배치되는 영상들에 대해 고려하지 않았고, 이로 인해 도1 에 도시한 바와 합성 영상에서 MPM 불일치에 의한 오류가 발생하였다.In the above-described conventional technology, since only the parameters and variables are extracted from the plurality of bitstreams D1 to Dn, the synthesized bitstream CVS can be generated by simple combining. In this case, an error due to MPM mismatch occurs in the synthesized image as shown in FIG. 1.
그에 비해 도3 의 영상 합성 장치(VC)는 복수개의 비트스트림(BS1 ~ BSn) 각각이 합성 영상에서 배치될 배치위치를 판별하고, 판별된 배치위치에 따라 기존에 원본 영상에는 존재하지 않던 영상의 주변에 인접하여 배치되는 다른 영상에 대한 비트스트림이 존재하는지 판별한다. 만일 다른 영상에 대한 비트스트림이 존재한다면, 인접하여 배치되는 영상에 대한 비트스트림의 영상에서 경계 영역의 인트라 예측 모드가 현재 배치되는 비트스트림의 영상에 반영되도록 함으로써 MPM 불일치에 의한 영상 오류를 제거할 수 있도록 한다.In contrast, the image synthesizing apparatus VC of FIG. 3 determines an arrangement position where each of the plurality of bitstreams BS1 to BSn is to be arranged in the synthesized image, and based on the determined arrangement position, the image synthesis apparatus VC of FIG. It is determined whether there is a bitstream for another image disposed adjacent to the periphery. If there is a bitstream for another image, the intra prediction mode of the boundary region is reflected in the image of the currently placed bitstream in the image of the bitstream for the adjacently arranged image, thereby eliminating the image error due to the MPM mismatch. To be able.
도4 는 도3 의 영상 합성 장치의 구성을 나타낸다.4 shows the configuration of the image synthesizing apparatus of FIG.
도4 에서 영상 합성 장치(VC)는 스트림 구문 분석부(100), 파라미터 및 헤더 생성부(200), 매크로 블록 부호화 구문 수정부(300) 및 스트림 합성부(400)를 포함한다. 여기서 스트림 구문 분석부(100)와 파라미터 및 헤더 생성부(200) 그리고 스트림 합성부(400)는 상기한 종래 기술에 개시된 영상 합성 장치에서 공개된 구성으로 각각의 동작을 간략하게 설명한다.In FIG. 4, the video synthesis apparatus VC includes a stream syntax analyzer 100, a parameter and header generator 200, a macroblock coded syntax corrector 300, and a stream synthesizer 400. Here, the stream parsing unit 100, the parameter and header generating unit 200, and the stream synthesizing unit 400 will briefly describe each operation in the configuration disclosed in the above-described image synthesis apparatus.
우선 스트림 구문 분석부(100)는 복수개의 비트스트림(BS1 ~ BSn)을 NAL(Network Abstraction Layer : 네트워크 추상 계층)단위로 수신하고, 수신된 비트스트림(BS1 ~ BSn)의 NAL 헤더 구문을 분석하여 데이터 타입을 판별한다. 여기서 데이터 타입은 시퀀스 파라미터 셋(Sequence Parameter Set : 이하 SPS), 픽처 파라미터 셋(Picture Parameter Set : 이하 PPS) 및 슬라이스(Slice) 등일 수 있다. 그리고 판별된 데이터 타입에 따라 SPS, PPS 의 파라미터 및 슬라이스의 헤더에 대해 구문 분석을 수행한다. 이때 스트림 구문 분석부(100)는 부호화되어 전송된 비트스트림(BS1 ~ BSn)을 부호화 상태에서 그대로 구문 분석을 수행한다.First, the stream parsing unit 100 receives a plurality of bit streams BS1 to BSn in units of NAL (Network Abstraction Layer), and analyzes NAL header syntax of the received bitstreams BS1 to BSn. Determine the data type. The data type may be a sequence parameter set (hereinafter referred to as SPS), a picture parameter set (hereinafter referred to as PPS), a slice, or the like. The parser performs parsing on the header of the slice and the parameters of the SPS and PPS according to the determined data type. At this time, the stream parsing unit 100 parses the encoded and transmitted bitstreams BS1 to BSn in the encoded state.
스트림 구문 분석부(100)는 인가된 데이터 타입에 따라 SPS의 구문을 분석하여, 입력 영상의 크기를 판별할 수 있고, PPS의 구문을 분석하여 각 슬라이스가 배치될 크기 및 위치를 판별할 수 있다. 그리고 슬라이스 헤더를 분석하여 해당 슬라이스의 최초 매크로 블록의 위치를 판별 할 수 있다. 즉 스트림 구문 분석부(100)는 복수개의 비트스트림의 구문을 분석하여 영상의 크기와 영상을 구성하는 슬라이스들의 매크로 블록 위치 정보를 획득할 수 있다.The stream parsing unit 100 may analyze the syntax of the SPS according to the authorized data type to determine the size of the input image, and may analyze the syntax of the PPS to determine the size and position of each slice. . The slice header may be analyzed to determine the position of the first macro block of the slice. That is, the stream syntax analyzer 100 may analyze syntaxes of a plurality of bitstreams to obtain macro block position information of slices constituting the image and the size of the image.
파라미터 및 헤더 생성부(200)는 스트림 구문 분석부(100)가 복수개의 비트스트림(BS1 ~ BSn)에서 분석된 SPS, PPS 를 이용하여 합성 영상을 위한 SPS, PPS를 생성한다. 이때 파라미터 및 헤더 생성부(200)가 합성 영상을 위해 생성하는 SPS와 PPS는 입력된 비트스트림(BS1 ~ BSn)에서 분석된 SPS, PPS의 파라미터 및 슬라이스의 헤더가 대부분 그대로 병합되어 이용된다. 즉 파라미터 및 헤더 생성부(200)는 복수개의 입력 영상을 하나의 합성 영상으로 병합하기 위해 입력 영상 각각에 포함되는 복수개의 SPS와 복수개의 PPS의 파라미터를 병합하여 합성 영상에 대응하는 SPS와 PPS로 생성한다. 다만 파라미터 및 헤더 생성부(200)는 SPS, PPS의 파라미터 및 슬라이스의 헤더의 일부 헤더의 변수를 합성 영상에 적합하도록 변경하거나 새롭게 설정한다. 그리고 파라미터 및 헤더 생성부(200)는 SPS, PPS의 파라미터 및 슬라이스의 헤더의 일부를 변경하거나, 새로이 설정하기 위해 합성 영상의 구성 정보가 기설정되어 저장될 수 있다. 또한 경우에 따라서는 외부로부터 사용자 명령을 인가받아 합성 영상의 구성 정보를 저장할 수 있다. 여기서 합성 영상의 구성 정보에는 합성 영상의 전체 크기와 복수개의 입력 영상 각각의 크기 및 배치 위치가 포함될 수 있다.The parameter and header generator 200 generates the SPS and the PPS for the composite image by using the SPS and the PPS analyzed by the stream syntax analyzer 100 in the plurality of bitstreams BS1 to BSn. At this time, the SPS and PPS generated by the parameter and header generator 200 for the composite image are mostly used by merging the headers of the SPS and PPS analyzed in the input bitstreams BS1 to BSn. That is, the parameter and header generator 200 merges the parameters of the plurality of SPSs included in each of the input images and the plurality of PPSs to merge the plurality of input images into one composite image, and then converts the plurality of input images into SPSs and PPSs corresponding to the composite image. Create However, the parameter and header generation unit 200 changes or newly sets the parameters of the SPS, the PPS, and the parameters of some headers of the header of the slice to be suitable for the composite image. The parameter and header generation unit 200 may preset and store configuration information of the synthesized image in order to change or newly set a part of the parameters of the SPS and the PPS and the header of the slice. In some cases, configuration information of the composite image may be stored by receiving a user command from the outside. The configuration information of the synthesized image may include the overall size of the synthesized image, the size of each of the plurality of input images, and the arrangement position.
파라미터 및 헤더 생성부(200)가 변경하거나 생성하는 SPS, PPS의 파라미터 및 슬라이스의 헤더를 수정 구문이라 할 수 있으며, 수정 구문을 생성하는 상세한 설명은 종래 기술에 공개되어 있으므로 여기서는 추가적인 설명을 생략한다.The parameter and the header of the parameter and slice of the SPS and PPS that the parameter generator 200 changes or generates may be referred to as a modified syntax, and a detailed description of generating the modified syntax is disclosed in the prior art, and thus, further description thereof will be omitted. .
매크로 블록 부호화 구문 수정부(300)는 상기 복수개의 비트스트림에 각 포함된 각 대상 매크로 블록의 MPM(Most Probable Mode)을 재생성하고 재부호화하는 수단, 또는 상기 대상 매크로 블록에 대하여 부호화된 변환계수(Transform Coefficient)에 대하여 엔트로피 부호화를 수행함에 있어서 0이 아닌 상기 변환계수들의 개수에 대한 정보를 포함하는 상기 엔트로피 부호화 구문을 재부호화하는 수단 중, 어느 하나의 수단을 이용하거나 상기 수단들을 모두 이용하여 상기 대상 매크로 블록의 부호화 구문을 재부호화할 수 있다.The macroblock encoding syntax modifying unit 300 is a means for regenerating and re-encoding the Most Probable Mode (MPM) of each target macroblock included in each of the plurality of bitstreams, or a transform coefficient encoded for the target macroblock ( Means for re-encoding the entropy encoding syntax including information on the number of non-zero transform coefficients in performing entropy encoding on a transform coefficient, by using any one or all of the means. The encoding syntax of the target macroblock can be recoded.
여기서 매크로 블록의 부호화 구문 즉 매크로 블록 부호화 구문은 매크로 블록에 포함된 영상 화소 신호값을 부호화하여 생성되는 일정한 규칙을 가지는 부호열을 지칭하는 의미로 사용한다. 일반적인 의미로 인코딩된 부호열을 의미할 수 있다.Here, the encoding syntax of the macroblock, that is, the macroblock encoding syntax, is used to mean a code string having a predetermined rule generated by encoding an image pixel signal value included in the macroblock. It may mean a code string encoded in a general sense.
도5는 매크로 블록 부호화 구문 수정부(300)의 세부 블록도이다. 5 is a detailed block diagram of the macroblock coded syntax corrector 300.
매크로 블록 부호화 구문 수정부(300)는 엔트로피 부호화 구문 재부호화부(300a)와 MPM 보정부(300b)를 포함할 수 있고, 필요에 따라 매크로 블록 패딩부(300c)를 더 포함할 수 있다. 또한 필요에 따라 스킵 모드 부호화 구문 수정부(300d)를 더 포함할 수 있다.The macroblock coded syntax corrector 300 may include an entropy coded syntax recoding unit 300a and an MPM corrector 300b, and may further include a macroblock padding unit 300c as necessary. If necessary, the apparatus may further include a skip mode encoding syntax corrector 300d.
엔트로피 부호화 구문 재부호화부(300a)는 상기 대상 매크로 블록에 대한 상기 엔트로피 부호화에서 0이 아닌 상기 변환계수들의 개수에 대한 정보를 포함하는 상기 엔트로피 부호화 구문을 수정하여, 상기 대상 매크로 블록의 부호화 구문을 재부호화 한다.An entropy encoding syntax re-encoding unit 300a modifies the entropy encoding syntax including information on the number of non-zero transform coefficients in the entropy encoding for the target macroblock, thereby encoding the encoded syntax of the target macroblock. Reencode.
여기서 변환계수는 엔트로피 부호화를 수행하는 대상이 되는 Transform Coefficient이다. 즉 엔트로피 부호화는 예측 부호화가 수행된 이후 획득되는 차분 영상에 대한 변환계수나 움직입 벡터 등에 대하여 수행되는데, 본 발명에서의 변환계수는 상기 변환계수를 지칭한다. 여기서 변환계수는 다양한 종류의 변환 방법을 사용하여 획득될 수 있고, 예를 들면 DCT, 하다마드 변환을 통하여 획득될 수 있다.Here, the transform coefficient is a transform coefficient that is an object to perform entropy encoding. That is, entropy encoding is performed on a transform coefficient or a moving vector of a differential image obtained after predictive encoding is performed. The transform coefficient in the present invention refers to the transform coefficient. Herein, the conversion coefficient may be obtained by using various kinds of conversion methods, and may be obtained through, for example, DCT or Hadamard transformation.
여기서 0이 아닌 상기 변환계수들의 개수에 대한 정보를 포함하는 상기 엔트로피 부호화 구문에 대하여는 아래에서 보다 상세히 설명한다.Here, the entropy encoding syntax including information about the number of non-zero transform coefficients will be described in more detail below.
여기서 엔트로피 부호화 구문 재부호화부(300a)가 구문을 재부호화 하는 상기 대상 매크로 블록은 아래에서 PMV 보정부(300b)를 설명하면서 상세히 설명하는 바와 같이 경계 매크로 블록인 것이 바람직하고, 상기 경계 매크로 블록의 주변에 위치하는 주변 매크로 블록을 참조하여 상기 경계 매크로 블록의 엔트로피 부호화에 있어서 0이 아닌 상기 변환계수들의 개수에 대한 정보를 포함하는 상기 엔트로피 부호화 구문을 수정하는 것이 바람직하다.Herein, the target macroblock to which the entropy encoding syntax recoding unit 300a re-encodes the syntax is preferably a boundary macro block as described in detail below with reference to the PMV correction unit 300b. It is preferable to modify the entropy encoding syntax including information on the number of non-zero transform coefficients in entropy encoding of the boundary macroblock by referring to neighboring macroblocks located in the vicinity.
여기서 엔트로피 부호화 구문 재부호화부(300a)는 상기 대상 매크로 블록 중 상기 경계 매크로 블록을 재부호화 하고, 상기 경계 매크로 블록을 가변 길이 부호화(VLC, Variable Length Coding) 방식을 이용하여 상기 엔트로피 부호화를 하는 경우, 상기 경계 매크로 블록에 인접하여 배치된 다른 입력 영상의 상기 주변 매크로 블록을 이용하여 상기 경계 매크로 블록에 대한 VLC 테이블을 수정하고, 상기 수정한 VLC 테이블을 이용하여 상기 경계 매크로 블록의 변환계수 중 0이 아닌 변환계수들의 개수에 대한 정보를 포함하는 상기 가변 길이 부호화 구문을 수정하여, 상기 경계 매크로 블록의 부호화 구문을 재부호화 하는 것이 바람직하다.In this case, the entropy encoding syntax recoding unit 300a re-encodes the boundary macroblock among the target macroblocks, and performs the entropy encoding on the boundary macroblock using a variable length coding (VLC) method. Modifying the VLC table for the boundary macroblock using the neighboring macroblock of another input image disposed adjacent to the boundary macroblock, and using the modified VLC table, 0 of the transform coefficients of the boundary macroblock. It is preferable to re-encode the encoded syntax of the boundary macroblock by modifying the variable length encoded syntax including information on the number of transform coefficients.
여기서 H.264/AVC에서 변환계수들의 오차 블록은 CAVLC을 사용하여 인코딩할 수 있다. CAVLC는 최근에 부호화된 레벨의 크기에 따라 레벨 파라미터를 위한 VLC look-up 테이블을 선택해서, 현재 매크로블록의 변환 계수들을 인코딩할 수 있다. 이때 VLC에 의하여 부호화된 구문에는 변환계수에 대하여, 0이 아닌 계수의 개수인 TotalCoeffs와, 그리고 마지막에 연속하여 절대값 1인 변환계수의 개수를 나타내는 TrailingOnes의 정보를 포함하는 부호열인 coeff_token이 있다.Here, an error block of transform coefficients in H.264 / AVC may be encoded using CAVLC. The CAVLC may select the VLC look-up table for the level parameter according to the size of the recently encoded level and encode the transform coefficients of the current macroblock. The syntax encoded by the VLC includes TotalCoeffs, which is the number of non-zero coefficients, and coeff_token, which is a code string including information of TrailingOnes, which indicate the number of transform coefficients having an absolute value of 1, successively. .
여기서 예를 들면, 4ㅧ4 블록에 대한 coeff_token을 인코딩하는 경우, 4개의 look-up 테이블, 3개의 가변길이 코드 테이블 그리고 하나의 고정 길이 코드 테이블을 사용할 수 있다. 여기서 테이블은 이전에 코딩된 좌측(Left), 상측(Upper)에 있는 블럭에 존재하는, 0 이 아닌 개수에 의해 선택되는데, 여러 개의 영상을 합성할 경우 현재 합성하고자 하는 매크로블록의 좌측, 상측에 있는 매크로블록이 기존에 없었던 것일 경우, 상기 테이블은 잘못 선택될 수 있다. For example, when encoding coeff_token for a 4x4 block, four look-up tables, three variable length code tables, and one fixed length code table may be used. Here, the table is selected by a non-zero number that exists in the previously coded left (Left) and upper block (Upper). If there is no existing macroblock, the table may be selected incorrectly.
그러므로, 엔트로피 부호화 구문 재부호화부(300a)는 경계 매크로 블록에 인접하여 배치된 다른 입력 영상의 상기 주변 매크로 블록을 이용하여 상기 경계 매크로 블록에 대한 VLC 테이블을 수정하고, 상기 수정한 VLC 테이블을 이용하여 상기 경계 매크로 블록의 변환계수 중 0이 아닌 변환계수들의 개수에 대한 정보를 포함하는 상기 가변 길이 부호화 구문인 coeff_token을 수정하여, 상기 경계 매크로 블록의 부호화 구문을 재부호화 하는 것이 바람직하다.Therefore, the entropy encoding syntax recoding unit 300a modifies the VLC table for the boundary macroblock using the peripheral macroblock of another input image disposed adjacent to the boundary macroblock, and uses the modified VLC table. By modifying the variable length coding syntax coeff_token including information on the number of non-zero transform coefficients of the transform macroblock of the boundary macroblock, it is preferable to re-encode the encoded syntax of the boundary macroblock.
MPM 보정부(300b)는 상기 복수개의 비트스트림 각각으로부터, 상기 대상 매크로 블록 중 상기 입력 영상의 경계에 배치된 매크로 블록인 복수개의 경계 매크로 블록과, 상기 복수개의 매크로 블록 각각에 인접하여 배치된 다른 입력 영상의 상기 매크로 블록인 주변 매크로 블록을 복호화하여 추출하고, 추출된 상기 경계 매크로 블록과 상기 주변 매크로 블록 각각에 설정된 예측 모드를 분석하여, 상기 주변 매크로 블록의 예측 모드에 따라 MPM(Most Probable Mode)을 재생성하여, 상기 경계 매크로 블록의 부호화 구문을 재부호화한다.The MPM corrector 300b includes, from each of the plurality of bitstreams, a plurality of boundary macroblocks, which are macroblocks arranged on the boundary of the input image, among the target macroblocks, and another adjacent to each of the plurality of macroblocks. Decodes and extracts a neighboring macroblock that is the macroblock of an input image, analyzes the extracted prediction macro set in each of the boundary macroblock and the neighboring macroblock, and according to a prediction mode of the neighboring macroblock, MPM (Most Probable Mode). ) Is re-encoded to re-encode the encoding syntax of the boundary macroblock.
MPM 보정부(300b)는 기존의 합성 영상 생성 기술이 부호화된 입력 영상을 복호화하지 않고 부호화된 상태에서 그대로 합성하여 도1 에서와 같이 합성 영상에서 MPM 불일치에 의한 오류가 발생하는 것을 방지하기 위해 구비된다. MPM 보정부(300b)는 합성 영상에 포함되는 복수개의 입력 영상 각각의 배치를 분석하고, 분석된 입력 영상의 배치로부터 영상 경계를 판별한다. MPM 보정부(300b)가 각 입력 영상의 경계를 판별하는 것은 MPM 불일치 오류가 복수개의 입력 영상이 합성 영상으로 합성될 때, 각 입력 영상의 경계에 기존에 존재하지 않던 매크로블록이 추가로 배치되어 발생하기 때문이다.The MPM corrector 300b is provided to prevent an error due to MPM mismatch in the synthesized image as shown in FIG. 1 by synthesizing the input image encoded by the existing synthesized image generation technology without decoding the synthesized image as it is. do. The MPM correction unit 300b analyzes the arrangement of each of the plurality of input images included in the synthesized image and determines the image boundary from the arrangement of the analyzed input images. The MPM correction unit 300b determines the boundary of each input image because, when the MPM mismatch error is composed of a plurality of input images, a macroblock that does not exist in the boundary of each input image is additionally disposed. Because it occurs.
그리고 MPM 보정부(300b)는 판별된 영상 경계에 배치된 매크로 블록과 영상 경계 주변의 매크로블록을 추출하고, 추출된 매크로블록들의 MPM을 분석 및 재부호화하여 출력한다. 즉 MPM 보정부(300b)는 합성 영상에 포함될 복수개의 입력 영상 각각의 배치에 따른 MPM 불일치 오류를 해소하기 위해 영상 경계에 배치된 일부 매크로 블록을 복호화하고, MPM 를 보정하고, 보정된 MPM을 엔트로피 부호화하여 출력한다. 본 발명에서는 설명의 편의를 위해, 상기에서 설명한 MPM을 위한 1비트의 플래그 비트와 3비트의 추가 비트를 MPM이라고 표기하기로 한다. 즉 보정되고 부호화되는 MPM은 1비트의 플래그 비트이거나 1비트의 플래그 비트와 3비트의 추가 비트일 수 있다.The MPM corrector 300b extracts a macroblock disposed at the determined image boundary and a macroblock around the image boundary, and analyzes and re-encodes the MPMs of the extracted macroblocks and outputs the extracted macroblocks. That is, the MPM corrector 300b decodes some macroblocks disposed at the image boundary, corrects the MPM, and entropy the corrected MPM to solve the MPM mismatch error according to the arrangement of the plurality of input images to be included in the composite image. Encode and output In the present invention, for convenience of description, the flag bit of 1 bit and the additional bit of 3 bits for the MPM described above will be referred to as MPM. That is, the MPM to be corrected and encoded may be 1 bit of flag bits or 1 bit of flag bits and 3 bits of additional bits.
매크로 블록 패딩부(300c)는 상기 대상 매크로 블록의 일측으로 추가적인 매크로 블록을 패딩하고 상기 패딩된 매크로 블록을 부호화하여 상기 패딩된 매크로 블록에 대한 부호화 구문을 생성한다. 여기서 상기 패딩되는 매크로 블록은 미리 정해 놓은 값을 화소의 신호값으로 가지는 매크로 블록이 될 수 있다.The macro block padding unit 300c pads an additional macro block to one side of the target macro block and encodes the padded macro block to generate an encoding syntax for the padded macro block. The padded macro block may be a macro block having a predetermined value as a signal value of a pixel.
H.264 부호화 방법을 사용하여 부호화된 영상들을 합성할 경우, 상술한 바와 같이 영상들 간의 경계면 부분에서 화면 깨짐 현상이 발생한다. 이는 첫째로는, 합성 과정에서 합성된 영상을 직접 부호화 하지 않고 이미 부호화된 비트열 데이터를 이용하기 때문에 최종 합성 영상은 합성되기 전 각 영상의 부호화 환경을 제대로 반영하지 못하기 때문이고, 둘째로는, H.264/AVC의 표준 인트라 모드 예측에서 중요한 요소인 sub-pixel MV를 고려하지 않기 때문이고, 마지막으로 인터 모드 예측에서는 영상의 경계에 있는 매크로블록들 경우에는 좌측(Left), 상측(Upper), 오른쪽 위(Upper Right)에 매크로블록이 없을 경우에 그 값을 128을 비롯한 일정한 크기의 값으로 채워서 계산하기 때문이다. 이상과 같은 원인으로 인하여 발생하는 경계면에서 발생하는 깨짐 현상을 막기 위해서, 본 발명에 따른 매크로 블록 패딩부(300c)는 영상의 경계 매크로 블록들의 일측에 매크로 블록을 패딩한다. 이상와 같이 패딩된 매크로 블록은 경계 매크로 블록의 참조 블록으로 이용될 수 있다.When synthesizing the encoded images using the H.264 encoding method, a screen break occurs in the boundary portion between the images as described above. This is because, firstly, since the encoded bitstream data is used instead of directly encoding the synthesized image in the synthesis process, the final synthesized image does not properly reflect the encoding environment of each image before synthesis. This is because sub-pixel MV, which is an important factor in H.264 / AVC's standard intra mode prediction, is not taken into account. Finally, in inter mode prediction, the left (left) and the upper (upper) in the case of macroblocks at the boundary of an image This is because if there is no macroblock in the upper right, the value is filled with a constant size including 128. In order to prevent cracking occurring at the boundary surface caused by the above causes, the macro block padding unit 300c according to the present invention pads the macro block on one side of the boundary macro blocks of the image. The padded macro block may be used as a reference block of the boundary macro block.
그리고 이 때 스트림 합성부(400)는 매크로 블록 패딩부(300c)에서 부호화된 상기 패딩된 매크로 블록에 대한 구문을 더 삽입하여, 상기 복수개의 입력 영상을 포함하는 상기 합성 영상에 대한 비트스트림을 출력할 수 있다.In this case, the stream synthesis unit 400 further inserts a syntax for the padded macro block encoded by the macro block padding unit 300c, and outputs a bitstream of the synthesized image including the plurality of input images. can do.
스킵 모드 부호화 구문 수정부(300d)는 상기 경계 매크로 블록의 스킵 모드 부호화 구문을 수정하되, 상기 경계 매크로 블록을 포함하는 영상에 인접하여 배치된 상기 다른 입력 영상에 포함된 매크로 블록들이 스킵 모드로 부호화된 정보를 이용하여, 상기 경계 매크로 블록의 스킵 모드에 관한 부호화 구문을 수정한다.A skip mode encoding syntax corrector 300d modifies a skip mode encoding syntax of the boundary macroblock, wherein macroblocks included in the other input image arranged adjacent to the image including the boundary macroblock are encoded in a skip mode. Based on the received information, the encoding syntax for the skip mode of the boundary macroblock is modified.
H.264/AVC 의 인터 모드 예측 부호화에서는 움직임 벡터를 별도로 산출하여 전송하지 아니하는 스킵 모드(skip mode) 부호화되는 매크로 블록이 있다.In H.264 / AVC inter-mode predictive encoding, there is a macro block that is skip mode coded, in which a motion vector is not separately calculated and transmitted.
예를 들면 이전 매크로 블록과 현재 매크로 블록간의 차이를 이용하여 SAD(sum of absolute difference) 값을 계산하고, 상기 SAD 정보를 기반으로 이전 매크로 블록과 현재 매크로 블록 간의 차이가 거의 없을 경우 현재 매크로 블록을 스킵 모드(skip mode)로 부호화 하기로 결정할 수 있다.For example, the SAD (sum of absolute difference) value is calculated using the difference between the previous macro block and the current macro block, and if there is little difference between the previous macro block and the current macro block based on the SAD information, the current macro block is calculated. It may be decided to encode in a skip mode.
여기서 해당 매크로 블록을 스킵 모드로 부호화할지 여부를 결정하는데 있어서, 인접하는 주변 매키로 블록의 스킵 모드 부호화 정보를 이용할 수 있다.Here, in determining whether to encode the macroblock in the skip mode, the skip mode encoding information of the block may be used as an adjacent neighboring key.
예를 들면 인터 모드 예측 부호화에서는 mb_skip 이라는 스킵 모드 부호화 구문이 있는데, 이는 현재 부호화 대상이 되는 매크로 블록 이전에 몇 개의 매크로 블록이 스킵 모드로 보호화되었는지를 나타내는 값이다. 그리고 현재 부호화 대상이 되는 매크로 블록을 스킵 모드로 부호화할지 여부를 결정함에 있어서는 상기 mb_skip 구문을 이용할 수 있다.For example, in the inter mode prediction encoding, there is a skip mode encoding syntax called mb_skip, which is a value indicating how many macro blocks are protected in skip mode before the macro block to be currently encoded. The mb_skip syntax may be used to determine whether to encode a macroblock to be currently encoded in a skip mode.
그런데 본 발명에서와 같이 복수개의 서로 다른 영상을 합성하는 경우 주변 영상의 mb_skip 구문 정보가 해당 영상의 스킵 모드 부호화 결정에 잘못된 영향을 미칠 수 있다. 즉 복수개의 영상들을 합성하는 경우, 주변 영상의 매크로 블록이 스킵 모드로 부호화 된 경우, 해당 영상의 경계 매크로 블록이 스킵 모드로 잘못 부호화될 수 있다. However, when synthesizing a plurality of different images as in the present invention, mb_skip syntax information of a neighboring image may incorrectly affect the skip mode encoding determination of the corresponding image. That is, when a plurality of images are synthesized, when a macroblock of a neighboring image is encoded in a skip mode, a boundary macroblock of the corresponding image may be incorrectly encoded in a skip mode.
따라서 상기 스킵 모드 부호화 구문 수정부(300d)는 해당 경계 매크로 블록을 포함하는 영상이 아닌 다른 주변 영상의 매크로 블록이 스킵 모드로 부호화된 정보를 이용하여, 상기 경계 매크로 블록을 스킵 모드로 부호화하는 것을 결정하는 것에 관여하는 스킵 모드 부호화 구문을 수정하는 것이 바람직하다. 바람직하게는 주변 영상의 매크로 블록 중 스킵 모드로 부호화 매크로 블록의 개수를 계수하고, 상기 계수된 스킵 모드로 부호화된 매크로 블록의 개수를 이용하여 경계 매크로 블록의 스킵 모드 부호화 구문을 수정하는 것이 바람직하다. 여기서 수정되는 스킵 모드 부호화 구문은 mb_skip이 될 수 있다.Accordingly, the skip mode encoding syntax corrector 300d encodes the boundary macroblock in the skip mode by using information encoded by the skip mode in the macroblock of the surrounding image other than the image including the boundary macroblock. It is desirable to modify the skip mode encoding syntax involved in the decision. Preferably, the number of encoded macroblocks is counted in a skip mode among macroblocks of a neighboring image, and the skipped mode encoding syntax of the boundary macroblock is modified using the counted number of macroblocks encoded in the skipped mode. . In this case, the modified skip mode encoding syntax may be mb_skip.
스트림 합성부(400)는 복수개의 입력 영상에 파라미터 및 헤더 생성부(200)가 변경하거나 생성한 수정 구문을 수신된 비트스트림의 구문에 대체 삽입하여 합성 영상의 비트 스트림을 생성하여 출력한다. 스트림 합성부(400)에서 생성되는 비트스트림 또한 H.264/AVC에 따라 부호화된 데이터로서, NAL 단위(NALU)를 기본단위로 생성될 수 있다. 여기서 스트림 합성부(400)는 단순히 수정 구문만을 비트스트림에 삽입하는 것이 아니라, 매크로 블록 부호화 구문 수정부(300)에서 재부호화된 구문을 삽입한다. 예를 들면 MPM 보정부(300b)에서 엔트로피 부호화된 MPM을 비트스트림에 삽입함으로써, MPM 불일치 오류가 제거된 합성 영상을 출력한다.The stream synthesizing unit 400 generates and outputs a bit stream of the synthesized image by inserting the modified syntax generated by the parameter and header generation unit 200 into the plurality of input images by substituting the syntax of the received bit stream. The bitstream generated by the stream synthesizer 400 is also data encoded according to H.264 / AVC, and may generate a NAL unit (NALU) as a basic unit. Here, the stream synthesis unit 400 does not simply insert the modified syntax into the bitstream, but inserts the syntax re-encoded by the macroblock coded syntax corrector 300. For example, the MPM corrector 300b inserts an entropy-encoded MPM into a bitstream, thereby outputting a composite image from which an MPM mismatch error is eliminated.
도6 은 도5 의 MPM 보정부(300b)의 세부 구성을 나타낸다.FIG. 6 shows a detailed configuration of the MPM corrector 300b of FIG.
도6 에서 MPM 보정부(300b)는 경계 블록 추출부(310b), 예측 모드 분석부(320b), MPM 재생성부(330b) 및 예측모드 재부호화부(340b)를 포함한다.In FIG. 6, the MPM corrector 300b includes a boundary block extractor 310b, a prediction mode analyzer 320b, an MPM regenerator 330b, and a prediction mode recoder 340b.
경계 블록 추출부(310b)는 합성 영상에서 복수개의 입력 영상이 배치되는 배치 위치에 따른 영상 경계를 판별하고, 판별된 영상 경계의 매크로 블록과 주변에 배치된 인접한 영상의 매크로 블록을 추출한다.The boundary block extractor 310b determines an image boundary according to an arrangement position where a plurality of input images are arranged in the synthesized image, and extracts a macroblock of the determined image boundary and a macroblock of adjacent images arranged around the image block.
경계 블록 추출부(310b)는 영상 배치 분석부(311b), 영상 경계 판별부(313b), 경계 매크로 블록 추출부(315b) 및 주변 매크로 블록 추출부(317b)를 포함한다. 영상 배치 분석부(311b)는 합성 영상의 구성 정보를 통해 복수개의 비트스트림(BS1 ~ BSn) 각각의 입력 영상이 합성 영상에서 배치될 위치를 분석한다. 그리고 영상 경계 판별부(313b)는 합성 영상에서 복수개의 입력 영상이 배치되는 위치에 따라 발생하는 영상들 사이의 경계를 판별한다. 여기서 영상들 사이의 경계라함은 단순히 하나의 영상의 가장자리를 의미하는 것이 아니라, 서로 인접하여 배치된 2개의 영상 사이의 경계를 의미한다. 즉 도1 에 도시한 바와 같이, 하나의 영상에서는 주변에 인접하여 배치되는 영상이 없으므로, 영상들 사이의 경계가 없다. 그러나 합성 영상에서는 하나의 영상에 인접하여 다른 영상이 배치됨에 따라 영상들 사이의 경계가 발생한다. 이때 특정 영상에서 영상 사이의 경계는 합성 영상에 포함되는 복수개의 영상의 개수, 배치 위치 등에 따라 다양하게 변경된다. 즉 도1 에서는 (a)에 도시된 영상이 4개의 영상을 포함하는 합성 영상의 우측 하단에 배치됨에 따라 상단 및 좌측단 가장 자리가 영상들 사이의 경계면으로 판별된다. 그러나 만일 영상이 좌측 상단에 배치되면, 하단 및 우측단 가장자리가 영상들 사이의 경계면으로 판별된다.The boundary block extractor 310b includes an image layout analyzer 311b, an image boundary determiner 313b, a boundary macroblock extractor 315b, and a neighboring macroblock extractor 317b. The image placement analyzer 311b analyzes a position where the input image of each of the plurality of bitstreams BS1 to BSn is to be arranged in the composite image through the configuration information of the composite image. The image boundary determination unit 313b determines the boundary between the generated images according to the position where the plurality of input images are arranged in the composite image. Here, the boundary between images does not simply mean an edge of one image, but a boundary between two images disposed adjacent to each other. That is, as shown in Fig. 1, in one image, since there is no image disposed adjacent to the periphery, there is no boundary between the images. However, in a synthesized image, boundaries between images occur as another image is disposed adjacent to one image. In this case, the boundary between the images in the specific image is variously changed according to the number, arrangement positions, etc. of the plurality of images included in the composite image. That is, in FIG. 1, as the image illustrated in (a) is disposed at the lower right side of the composite image including four images, the upper and left edges are determined as the boundary between the images. However, if the image is placed at the top left, the bottom and right edges are identified as the interface between the images.
다만 상기한 바와 같이, H.264/AVC에서는 기본적으로 매크로 블록의 좌측 및 상단에 배치된 매크로 블록의 예측 모드 중 낮은 번호의 예측 모드를 이용하여 MPM을 설정하도록 규정되어 있다. 그리고 본 발명은 MPM의 오류를 제거하기 위한 발명이다. 따라서 현재 영상의 하단 및 우측에 배치된 인접 영상과의 영상 사이의 경계면을 판별하지 않을 수 있다. 즉 영상 사이의 경계면은 현재 영상의 좌측단 및 상단에 대해서만 판단하여도 무방하다. 여기서 현재 영상은 파라미터 및 헤더 생성부(200)에서 출력되는 슬라이스에 대응하는 영상으로 현재 MPM을 보정하고자 하는 비트스트림에 대응하는 입력 영상을 의미한다.As described above, however, in H.264 / AVC, the MPM is basically set by using a low number prediction mode among the prediction modes of the macroblocks disposed on the left and top of the macroblock. And the present invention is an invention for removing the error of the MPM. Therefore, the interface between the image of the current image and the adjacent image disposed on the right side may not be determined. That is, the boundary between the images may be determined only for the left end and the top of the current image. Here, the current image is an image corresponding to a slice output from the parameter and header generator 200 and means an input image corresponding to a bitstream to correct the current MPM.
경계 매크로 블록 추출부(315b)는 현재 영상에서 영상들 사이의 경계면에 배치된 매크로 블록을 추출한다. 경계 매크로 블록 추출부(315b)는 PPS의 구문 분석을 통해 각 슬라이스의 배치될 크기 및 위치를 판별하고, 판별된 위치가 영상들 사이의 경계이면, 해당 슬라이스에 포함된 매크로 블록을 복호화하여 추출한다. 이하 본 발명에서는 현재 영상에서 영상들 사이의 경계면에 배치된 매크로 블록을 경계 매크로 블록이라 한다. 상기한 바와 같이 MPM 계산 시에는 매크로 블록의 좌측, 상단에 배치된 매크로 블록의 예측 모드를 참조하므로, 현재 영상의 우측 및 하단에 배치된 매크로 블록들에 대해서는 영상들 사이의 경계면에 배치된 경우라도 경계 매크로블록을 추출하지 않아도 무방하다.The boundary macro block extractor 315b extracts a macro block disposed on an interface between images in the current image. The boundary macro block extractor 315b determines the size and position of each slice by parsing the PPS. If the determined position is a boundary between images, the boundary macro block extractor 315b decodes and extracts a macroblock included in the slice. . Hereinafter, in the present invention, the macro block disposed at the boundary between the images in the current image is called a boundary macro block. As described above, since the MPM calculation refers to the prediction mode of the macro block disposed on the left side and the upper side of the macro block, even if the macro blocks disposed on the right side and the lower side of the current image are disposed at the boundary between the images. It is not necessary to extract the boundary macroblocks.
주변 매크로 블록 추출부(317b)는 합성 영상에서 현재 영상과 인접하여 배치되는 영상의 경계에 포함된 매크로 블록을 복호화하여 추출한다. 즉 현재 영상과 인접하여 배치되는 영상으로부터 경계 매크로 블록 추출부(315b)에서 추출된 매크로 블록과 인접한 매크로 블록을 복호화하여 추출한다. 이하 본 발명에서는 주변 매크로 블록 추출부(317b)에서 추출되는 인접 매크로 블록을 설명의 편의를 위해 주변 매크로 블록이라 한다. 즉 본 발명에서 주변 매크로 블록은 현재 영상의 경계면에 인접하여 배치되는 다른 영상의 매크로 블록을 의미한다. 그리고 현재 영상의 우측 및 하단 경계면에 대해서는 MPM을 계산하지 않으므로, 다른 영상의 상단 경계 및 좌측 경계에 배치된 매트로 블록은 영상 사이의 경계에 배치될 지라도 추출하지 않아도 된다.The neighboring macroblock extractor 317b decodes and extracts a macroblock included in a boundary of an image disposed adjacent to the current image in the synthesized image. That is, the macroblock and the macroblock adjacent to the macroblock extracted by the boundary macroblock extraction unit 315b are decoded and extracted from the image disposed adjacent to the current image. In the present invention, the neighboring macroblock extracted by the neighboring macroblock extraction unit 317b is called a neighboring macroblock for convenience of description. That is, in the present invention, the neighboring macroblock refers to a macroblock of another image disposed adjacent to the boundary of the current image. And since the MPM is not calculated for the right and bottom boundaries of the current image, the macro blocks disposed on the top and left boundaries of other images do not need to be extracted even if they are arranged at the boundaries between the images.
예측 모드 분석부(320b)는 추출된 현재 영상과 인접 영상 사이의 경계에 배치된 매크로 블록과 주변에 배치된 인접한 영상의 매크로 블록 각각에 설정된 예측 모드를 분석한다. 예측 모드 분석부(320b)는 현재 블록 예측 모드 분석부(321b) 및 주변 블록 예측 모드 분석부(323b)을 포함한다. 현재 블록 예측 모드 분석부(321b)는 경계 매크로 블록 추출부(315b)에서 추출된 경계 매크로 블록에 설정된 예측 모드를 분석하고, 주변 블록 예측 모드 분석부(323b)는 주변 매크로 블록 추출부(317b)에서 추출된 주변 매크로 블록에 설정된 예측 모드를 분석한다. 그리고 분석된 예측 모드를 MPM 재생성부(330b)로 전달한다.The prediction mode analyzer 320b analyzes a prediction mode set in each of the macroblocks disposed at the boundary between the extracted current image and the adjacent images and the macroblocks of the adjacent images arranged at the periphery. The prediction mode analyzer 320b includes a current block prediction mode analyzer 321b and a neighboring block prediction mode analyzer 323b. The current block prediction mode analyzer 321b analyzes the prediction mode set in the boundary macroblock extracted by the boundary macroblock extractor 315b, and the neighboring block prediction mode analyzer 323b performs the neighboring macroblock extractor 317b. Analyze the prediction mode set in the neighboring macroblock extracted from. The analyzed prediction mode is transmitted to the MPM regenerator 330b.
MPM 재생성부(330b)는 분석된 주변 매크로 블록의 예측 모드를 고려하여 경계 매크로 블록의 MPM을 재생성한다.The MPM regenerator 330b regenerates the MPM of the boundary macro block in consideration of the prediction mode of the analyzed surrounding macro block.
MPM 재생성부(330b)는 주변 블록 예측 모드 분석부(323b)에서 분석된 주변 매크로 블록의 예측 모드 중 낮은 번호의 예측 모드를 선택하고, 선택된 예측 모드와 현재 블록 예측 모드 분석부(321b)에서 분석된 경계 매크로 블록의 예측 모드가 동일한 예측 모드인지 판별한다.The MPM regenerator 330b selects a low number prediction mode among the prediction modes of the neighboring macroblocks analyzed by the neighboring block prediction mode analyzer 323b, and analyzes the selected prediction mode and the current block prediction mode analyzer 321b. It is determined whether the prediction mode of the bounded boundary macroblock is the same prediction mode.
만일 선택된 예측 모드와 경계 매크로 블록의 예측 모드가 동일하면, 1비트의 플래그 비트만을 설정하여 MPM을 재생성하고, 선택된 예측 모드와 경계 매크로 블록의 예측 모드가 서로 상이하면, 1비트의 플래그 비트와 더불어 예측 모드 정보를 포함하는 3비트의 추가 비트를 설정하여 MPM을 재생성한다. 여기서 플래그 비트와 추가 비트의 비트 수는 영상 부호화 장치 및 복호화 장치의 설정에 따라 달라질 수 있다.If the selected prediction mode and the prediction macro of the boundary macroblock are the same, only one bit of the flag bit is set to regenerate the MPM. If the selected prediction mode and the prediction macro of the boundary macro block are different from each other, together with the flag bit of 1 bit, The MPM is regenerated by setting an additional three bits containing the prediction mode information. Here, the number of bits of the flag bit and the additional bit may vary depending on the settings of the image encoding apparatus and the decoding apparatus.
이후 재생성된 MPM에 대해 예측 모드 재부호화부(340b)가 엔트로피 부호화하여 스트림 합성부(400)로 전송한다.Thereafter, the prediction mode recoding unit 340b entropy-codes the regenerated MPM and transmits the entropy encoding to the stream synthesis unit 400.
즉 본 발명에 따른 영상 합성 시스템 및 영상 합성 장치는 비트스트림(BS1 ~ BSn)으로 인가되는 복수개의 입력 영상에서 입력 영상의 SPS, PPS의 파라미터 및 슬라이스의 헤더를 수정하여 합성 영상을 생성하지만, 영상 경계면에 배치된 일부 매크로 블록을 복호화하고, 해당 매크로블록의 MPM을 생성하고 부호화하여 합성 영상에 삽입한다. 따라서 입력 영상의 SPS, PPS의 파라미터 및 슬라이스의 헤더만을 수정하여 합성 영상을 생성하는 종래의 기술에 간단한 공정만을 추가하여 MPM 오류가 제거된 합성 영상을 제공할 수 있다.That is, the image synthesizing system and the image synthesizing apparatus generate a composite image by modifying the SPS of the input image, the parameters of the PPS and the header of the slice in the plurality of input images applied to the bitstreams BS1 to BSn. Some macroblocks arranged at the interface are decoded, MPMs of the macroblocks are generated, encoded, and inserted into the synthesized image. Accordingly, a simple process may be added to the conventional technology of generating a composite image by modifying only the SPS of the input image, the parameters of the PPS, and the header of the slice, thereby providing a composite image from which an MPM error is eliminated.
도7 은 본 발명의 일 실시예에 따른 영상 합성 방법을 나타낸다.7 shows an image synthesis method according to an embodiment of the present invention.
도3 내지 도6 를 참조하여 도7 의 영상 합성 방법을 설명하면, 먼저 복수개의 영상 합성 장치(VC)는 복수개의 입력 영상 각각에 대한 비트스트림(BS1 ~ BSn)을 수신한다(S10). 영상 합성 장치(VC)의 스트림 구문 분석부(100)는 복수개의 비트스트림(BS1 ~ BSn)을 NAL단위로 수신할 수 있다.Referring to FIGS. 3 to 6, the method for synthesizing the image of FIG. 7 firstly receives a plurality of bitstreams BS1 to BSn for each of the plurality of input images (S10). The stream parser 100 of the image synthesizing apparatus VC may receive a plurality of bitstreams BS1 to BSn in NAL units.
그리고 스트림 구문 분석부(100)는 수신된 복수개의 비트스트림 각각에 대한 구문을 분석한다(S20). 스트림 구문 분석부(100)는 우선 NAL단위로 수신되는 복수개의 비트스트림(BS1 ~ BSn)의 NAL 헤더 구문을 분석하여 데이터 타입을 판별하고, 판별된 데이터 타입에 따라 SPS, PPS 의 파라미터 및 슬라이스의 헤더에 대해 구문 분석을 수행하여, 입력 영상의 크기, 각 슬라이스가 배치될 크기 및 위치, 그리고 매크로 블록의 위치를 판별한다.In addition, the stream parser 100 analyzes a syntax for each of the plurality of received bitstreams (S20). The stream parsing unit 100 first analyzes NAL header syntaxes of a plurality of bitstreams BS1 to BSn received in NAL units to determine a data type, and determines the parameters and slices of the SPS and PPS according to the determined data types. The header is parsed to determine the size of the input image, the size and position of each slice, and the position of the macro block.
이후 파라미터 및 헤더 생성부(200)가 합성 영상을 위한 파라미터 및 슬라이스 헤더를 생성한다(S30). 파라미터 및 헤더 생성부(200)는 입력된 비트스트림(BS1 ~ BSn)에서 분석된 SPS, PPS의 파라미터 및 슬라이스의 헤더를 대부분 그대로 병합하여 이용하지만, SPS, PPS의 파라미터 및 슬라이스의 헤더의 일부 헤더의 변수를 기설정된 합성 영상의 구성 정보에 적합하도록 변경하거나 새롭게 설정한다.Thereafter, the parameter and header generator 200 generates a parameter and a slice header for the synthesized image (S30). The parameter and header generation unit 200 merges and uses most of the headers of the parameters and slices of the SPS and PPS analyzed in the input bitstreams BS1 to BSn, but includes some headers of the headers of the parameters and slices of the SPS and PPS. The parameter of is changed or newly set to match the configuration information of the preset composite image.
그리고 매크로 블록 부호화 구문 수정부가 상기 복수개의 비트스트림에 각 포함된 각 대상 매크로 블록의 MPM(Most Probable Mode)을 재생성하고 재부호화하는 수단, 또는 상기 대상 매크로 블록에 대하여 부호화된 변환계수(Transform Coefficient)에 대하여 엔트로피 부호화를 수행함에 있어서 0이 아닌 상기 변환계수들의 개수에 대한 정보를 포함하는 상기 엔트로피 부호화 구문을 재부호화하는 수단 중, 어느 하나의 수단을 이용하거나 상기 수단들을 모두 이용하여 상기 대상 매크로 블록의 부호화 구문을 재부호화한다(S40).And means for regenerating and re-encoding the Most Probable Mode (MPM) of each target macroblock included in each of the plurality of bitstreams, or a transform coefficient encoded for the target macroblock. Means for re-encoding the entropy encoding syntax including information about the number of non-zero transform coefficients in performing entropy encoding on the target macroblock using any one or all of the means. The coded syntax is re-encoded (S40).
상기 매크로 블록 부호화 구문 수정 단계(S40)는, 상기 복수개의 비트스트림 각각으로부터 상기 입력 영상의 경계에 배치된 매크로 블록인 복수개의 경계 매크로 블록과, 상기 복수개의 매크로 블록 각각에 인접하여 배치된 다른 입력 영상의 상기 매크로 블록인 주변 매크로 블록을 복호화하여 추출하고, 추출된 상기 경계 매크로 블록과 상기 주변 매크로 블록 각각에 설정된 예측 모드를 분석하여, 상기 주변 매크로 블록의 예측 모드에 따라 MPM(Most Probable Mode)을 재생성하고 재부호화하는 MPM 보정 단계(S41); 및 상기 대상 매크로 블록에 대한 상기 엔트로피 부호화에서 0이 아닌 상기 변환계수들의 개수에 대한 정보를 포함하는 상기 엔트로피 부호화 구문을 수정하여, 상기 대상 매크로 블록의 부호화 구문을 재부호화 하는, 엔트로피 부호화 구문 재부호화 단계(S42);를 포함할 수 있다.The macroblock encoding syntax correcting step (S40) may include a plurality of boundary macroblocks, which are macroblocks arranged on a boundary of the input image, from each of the plurality of bitstreams, and another input disposed adjacent to each of the plurality of macroblocks. Decode and extract the neighboring macroblocks that are the macroblocks of the image, analyze the extracted prediction macros set in each of the extracted boundary macroblocks and the neighboring macroblocks, and according to a prediction mode of the neighboring macroblocks, MPM (Most Probable Mode) MPM correction step (S41) of regenerating and re-encoding the data; And re-encoding the encoding syntax of the target macroblock by modifying the entropy encoding syntax including information on the number of non-zero transform coefficients in the entropy encoding for the target macroblock. Step S42; may include.
여기서 엔트로피 부호화 구문 재부호화 단계(S42)는 상기 대상 매크로 블록 중 상기 경계 매크로 블록을 재부호화 하고, 상기 경계 매크로 블록을 가변 길이 부호화(VLC, Variable Length Coding) 방식을 이용하여 상기 엔트로피 부호화를 하는 경우, 상기 경계 매크로 블록에 인접하여 배치된 다른 입력 영상의 상기 주변 매크로 블록을 이용하여 상기 경계 매크로 블록에 대한 VLC 테이블을 수정하고, 상기 수정한 VLC 테이블을 이용하여 상기 경계 매크로 블록의 변환계수 중 0이 아닌 변환계수들의 수를 나타내는 상기 가변 길이 부호화 구문을 수정하여, 상기 경계 매크로 블록의 부호화 구문을 재부호화 하는 것이 바람직하다.Here, the entropy encoding syntax recoding step (S42) re-encodes the boundary macroblock among the target macroblocks, and performs the entropy encoding on the boundary macroblock using a variable length coding (VLC) method. Modifying the VLC table for the boundary macroblock using the neighboring macroblock of another input image disposed adjacent to the boundary macroblock, and using the modified VLC table, 0 of the transform coefficients of the boundary macroblock. It is desirable to modify the variable length coding syntax, which indicates the number of transform coefficients, to re-encode the coding syntax of the boundary macroblock.
다음으로 스트림 합성부(400)는 영상 합성 장치(VC)로 수신된 복수개의 비트 스트림(BS1 ~ BSn)에서 파라미터 및 헤더 생성부(200)가 생성한 수정 구문을 삽입하고, 매크로 블록 부호화 구문 수정부(300)가 재부호화한 매크로 블록 부호화 구문을 삽입하여 합성 영상(CVBS)를 비트스트림으로 출력한다(S50).Next, the stream synthesis unit 400 inserts the modified syntax generated by the parameter and header generation unit 200 in the plurality of bit streams BS1 to BSn received by the image synthesis apparatus VC, and counts the number of macroblock encoding syntaxes. The macroblock encoding syntax re-encoded by the government 300 is inserted to output a composite video CVBS as a bitstream (S50).
본 발명에 따른 방법은 컴퓨터로 읽을 수 있는 기록매체에 컴퓨터가 읽을 수 있는 코드로서 구현하는 것이 가능하다. 컴퓨터가 읽을 수 있는 기록매체는 컴퓨터 시스템에 의하여 읽혀질 수 있는 데이터가 저장되는 모든 종류의 기록장치를 포함한다. 기록매체의 예로는 ROM, RAM, CD-ROM, 자기 테이프, 플로피 디스크, 광데이터 저장장치 등이 있으며, 또한 캐리어 웨이브(예를 들어 인터넷을 통한 전송)의 형태로 구현되는 것도 포함한다. 또한 컴퓨터가 읽을 수 있는 기록매체는 네트워크로 연결된 컴퓨터 시스템에 분산되어 분산방식으로 컴퓨터가 읽을 수 있는 코드가 저장되고 실행될 수 있다.The method according to the invention can be embodied as computer readable code on a computer readable recording medium. The computer-readable recording medium includes all kinds of recording devices in which data that can be read by a computer system is stored. Examples of the recording medium include a ROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like, and also include a carrier wave (for example, transmission through the Internet). The computer readable recording medium can also be distributed over network coupled computer systems so that the computer readable code is stored and executed in a distributed fashion.
본 발명은 도면에 도시된 실시예를 참고로 설명되었으나 이는 예시적인 것에 불과하며, 본 기술 분야의 통상의 지식을 가진 자라면 이로부터 다양한 변형 및 균등한 타 실시예가 가능하다는 점을 이해할 것이다. Although the present invention has been described with reference to the embodiments shown in the drawings, this is merely exemplary, and it will be understood by those skilled in the art that various modifications and equivalent other embodiments are possible.
따라서, 본 발명의 진정한 기술적 보호 범위는 첨부된 등록청구범위의 기술적 사상에 의해 정해져야 할 것이다.Therefore, the true technical protection scope of the present invention will be defined by the technical spirit of the appended claims.

Claims (22)

  1. 복수개의 입력 영상에 대한 비트스트림을 수신하고, 수신된 복수개의 상기 비트스트림 각각에 대하여 적어도 매크로 블록 계층까지의 엔트로피 복호화를 수행하여 구문 분석을 수행하는 스트림 구문 분석부; A stream parsing unit configured to receive bitstreams of a plurality of input images, and perform parsing by performing entropy decoding up to at least a macroblock layer on each of the plurality of received bitstreams;
    상기 스트림 구문 분석부에서 분석된 상기 구문을 기설정된 합성 영상에 대한 구성 정보에 따라 수정하여, 수정 구문을 생성하는 파라미터 및 헤더 생성부; A parameter and header generator configured to modify the syntax analyzed by the stream parser according to configuration information about a preset composite image to generate a modified syntax;
    상기 복수개의 비트스트림에 각 포함된 각 대상 매크로 블록의 MPM(Most Probable Mode)을 재생성하고 재부호화하는 수단, 또는 상기 대상 매크로 블록에 대하여 부호화된 변환계수(Transform Coefficient)에 대하여 엔트로피 부호화를 수행함에 있어서 0이 아닌 상기 변환계수들의 개수에 대한 정보를 포함하는 상기 엔트로피 부호화 구문을 재부호화하는 수단 중, 어느 하나의 수단을 이용하거나 상기 수단들을 모두 이용하여 상기 대상 매크로 블록의 부호화 구문을 재부호화하는 매크로 블록 부호화 구문 수정부; 및Means for regenerating and re-coding the Most Probable Mode (MPM) of each target macroblock included in each of the plurality of bitstreams, or performing entropy encoding on a transform coefficient encoded for the target macroblock. Re-encoding the encoded syntax of the target macroblock using any one or all of the means for re-encoding the entropy encoded syntax including information on the number of non-zero transform coefficients. Macroblock encoding syntax correction; And
    상기 비트스트림에 포함된 기존 구문을 대체하여 상기 파라미터 및 헤더 생성부에서 생성된 상기 수정 구문과 상기 매크로 블록 부호화 구문 수정부에서 재부호화된 구문을 삽입하여, 상기 복수개의 입력 영상을 포함하는 상기 합성 영상에 대한 비트스트림을 출력하는 스트림 합성부; 를 포함하고, The synthesis including the plurality of input images by inserting the modified syntax generated by the parameter and header generation unit and the syntax re-encoded by the macroblock encoding syntax correction unit by replacing the existing syntax included in the bitstream. A stream synthesizer for outputting a bitstream of an image; Including,
    상기 매크로 블록 부호화 구문 수정부는,The macroblock encoding syntax correction unit,
    상기 복수개의 비트스트림 각각으로부터, 상기 대상 매크로 블록 중 상기 입력 영상의 경계에 배치된 매크로 블록인 복수개의 경계 매크로 블록과, 상기 복수개의 매크로 블록 각각에 인접하여 배치된 다른 입력 영상의 상기 매크로 블록인 주변 매크로 블록을 복호화하여 추출하고, 추출된 상기 경계 매크로 블록과 상기 주변 매크로 블록 각각에 설정된 예측 모드를 분석하여, 상기 주변 매크로 블록의 예측 모드에 따라 MPM(Most Probable Mode)을 재생성하여, 상기 경계 매크로 블록의 부호화 구문을 재부호화하는 MPM 보정부; 및 From each of the plurality of bitstreams, a plurality of boundary macroblocks which are macroblocks arranged at the boundary of the input image among the target macroblocks, and the macroblocks of other input images arranged adjacent to each of the plurality of macroblocks. Decode and extract a neighboring macroblock, analyze a prediction mode set in each of the extracted boundary macroblock and the neighboring macroblock, regenerate a Most Probable Mode (MPM) according to the prediction mode of the neighboring macroblock, An MPM correction unit for re-encoding the encoding syntax of the macro block; And
    상기 대상 매크로 블록에 대한 상기 엔트로피 부호화에서 0이 아닌 상기 변환계수들의 개수에 대한 정보를 포함하는 상기 엔트로피 부호화 구문을 수정하여, 상기 대상 매크로 블록의 부호화 구문을 재부호화 하는 엔트로피 부호화 구문 재부호화부;를 포함하는 것을 특징으로 하는 영상 합성 장치.An entropy encoding syntax re-encoding unit for re-encoding the encoding syntax of the target macroblock by modifying the entropy encoding syntax including information about the number of non-zero transform coefficients in the entropy encoding for the target macroblock; Image synthesizing apparatus comprising a.
  2. 제1 항에 있어서,According to claim 1,
    상기 매크로 블록 부호화 구문 수정부는 상기 대상 매크로 블록의 일측으로 추가적인 매크로 블록을 패딩하고 상기 패딩된 매크로 블록을 부호화하여 상기 패딩된 매크로 블록에 대한 부호화 구문을 생성하는 매크로 블록 패딩부를 더 포함하고,The macroblock encoding syntax corrector further includes a macroblock padding unit configured to pad an additional macroblock to one side of the target macroblock and to encode the padded macroblock to generate an encoding syntax for the padded macroblock.
    상기 스트림 합성부는 상기 매크로 블록 패딩부에서 부호화된 상기 패딩된 매크로 블록에 대한 부호화 구문을 더 삽입하여, 상기 복수개의 입력 영상을 포함하는 상기 합성 영상에 대한 비트스트림을 출력하는 것을 특징으로 하는 영상 합성 장치.The stream synthesizing unit further inserts an encoding syntax for the padded macro block encoded by the macro block padding unit, and outputs a bitstream of the synthesized image including the plurality of input images. Device.
  3. 제1 항에 있어서,According to claim 1,
    상기 엔트로피 부호화 구문 재부호화부는, 상기 대상 매크로 블록 중 상기 경계 매크로 블록을 재부호화 하고, 상기 경계 매크로 블록을 가변 길이 부호화(VLC, Variable Length Coding) 방식을 이용하여 상기 엔트로피 부호화를 하는 경우, 상기 경계 매크로 블록에 인접하여 배치된 다른 입력 영상의 상기 주변 매크로 블록을 이용하여 상기 경계 매크로 블록에 대한 VLC 테이블을 수정하고, 상기 수정한 VLC 테이블을 이용하여 상기 경계 매크로 블록의 변환계수 중 0이 아닌 상기 변환계수들의 개수에 대한 정보를 포함하는 상기 가변 길이 부호화 구문을 수정하여, 상기 경계 매크로 블록의 부호화 구문을 재부호화 하는 것을 특징으로 하는 영상 합성 장치.The entropy encoding syntax re-encoding unit re-encodes the boundary macroblock among the target macroblocks and performs the entropy encoding using the variable length coding (VLC) method for the boundary macroblock. Modifying the VLC table for the boundary macro block using the neighboring macro block of another input image arranged adjacent to the macro block, and using the modified VLC table, the non-zero of the transform coefficients of the boundary macro block. And encoding the encoded syntax of the boundary macroblock by modifying the variable length encoded syntax including information on the number of transform coefficients.
  4. 제1항에 있어서, The method of claim 1,
    상기 엔트로피 부호화 구문 재부호화부는 상기 경계 매크로 블록의 스킵 모드 부호화 구문을 수정하되, 상기 경계 매크로 블록을 포함하는 영상에 인접하여 배치된 상기 다른 입력 영상에 포함된 매크로 블록들이 스킵 모드로 부호화된 정보를 이용하여, 상기 경계 매크로 블록의 스킵 모드에 관한 부호화 구문을 수정하는 스킵 모드 부호화 구문 수정부를 더 포함하는 것을 특징으로 하는 영상 합성 장치.The entropy encoding syntax re-encoding unit modifies a skip mode encoding syntax of the boundary macroblock, wherein the macroblocks included in the other input image arranged adjacent to the image including the boundary macroblock are encoded in skip mode. And a skip mode encoding syntax corrector for correcting the encoding syntax for the skip mode of the boundary macroblock.
  5. 제1 항에 있어서,According to claim 1,
    상기 MPM 보정부는 The MPM corrector
    상기 복수개의 입력 영상이 상기 합성 영상에서 배치되는 배치 위치에 따른 영상의 경계면을 판별하고, 상기 판별된 경계면으로부터 상기 경계 매크로 블록과 상기 주변 매크로 블록을 복호화하여 추출하는 경계 블록 추출부; A boundary block extracting unit for determining a boundary surface of an image according to an arrangement position where the plurality of input images are arranged in the composite image, and decoding and extracting the boundary macro block and the neighboring macro block from the determined boundary surface;
    상기 경계 매크로 블록과 상기 주변 매크로 블록 각각에 설정된 상기 예측 모드를 분석하여 판별하는 예측 모드 분석부; A prediction mode analyzer configured to analyze and determine the prediction mode set in each of the boundary macro block and the neighboring macro block;
    상기 주변 매크로 블록에 설정된 예측 모드를 이용하여 상기 경계 매크로 블록의 MPM 예측 모드를 판별하고, 상기 경계 매크로 블록의 예측 모드와 재계산된 상기 MPM 예측 모드가 동일한지 판별하여 상기 MPM을 재생성하는 MPM 재생성부; 및 MPM reproduction which determines the MPM prediction mode of the boundary macroblock by using the prediction mode set in the neighboring macroblock, regenerates the MPM by determining whether the prediction mode of the boundary macroblock and the recalculated MPM prediction mode are the same. part; And
    상기 재생성된 MPM을 상기 합성 영상에 대한 비트스트림에 삽입할 수 있도록 부호화하는 예측 모드 재부호화부; 를 포함하는 것을 특징으로 하는 영상 합성 장치.A prediction mode recoding unit encoding the reproduced MPM to be inserted into a bitstream of the synthesized image; Image synthesizing apparatus comprising a.
  6. 제1 항에 있어서, 상기 경계 블록 추출부는 The method of claim 1, wherein the boundary block extraction unit
    상기 파라미터 및 헤더 생성부에 설정된 상기 합성 영상에 대한 구성 정보에 따라 상기 합성 영상에서 상기 복수개의 입력 영상 각각의 배치 위치를 판별하는 영상 배치 분석부; An image arrangement analyzer configured to determine an arrangement position of each of the plurality of input images in the synthesized image according to the configuration information of the synthesized image set in the parameter and the header generator;
    상기 합성 영상에서 복수개의 입력 영상이 배치되는 위치에 따라 발생하는 인접 영상들 사이의 경계면을 판별하는 영상 경계 판별부; An image boundary discrimination unit which determines an interface between adjacent images generated according to a position where a plurality of input images are arranged in the composite image;
    상기 복수개의 입력 영상 중 MPM을 보정하기 위한 현재 영상에서 상기 영상들 사이의 경계면에 배치된 상기 경계 매크로 블록을 복호화하여 추출하는 경계 매크로 블록 추출부; 및 A boundary macroblock extracting unit configured to decode and extract the boundary macroblocks disposed on an interface between the images in a current image for correcting an MPM among the plurality of input images; And
    상기 현재 영상과 인접하여 배치되는 영상들에서 상기 경계 매크로 블록에 인접하여 배치된 상기 주변 매크로 블록을 복호화하여 추출하는 주변 매크로 블록 추출부; 를 포함하는 것을 특징으로 하는 영상 합성 장치.A neighboring macroblock extraction unit configured to decode and extract the neighboring macroblock disposed adjacent to the boundary macroblock from images disposed adjacent to the current image; Image synthesizing apparatus comprising a.
  7. 제6 항에 있어서, 상기 예측 모드 분석부는 The method of claim 6, wherein the prediction mode analysis unit
    상기 경계 매크로 블록에 설정된 상기 예측 모드를 분석하여 판별하는 현재 블록 예측 모드 분석부; 및 A current block prediction mode analyzer configured to analyze and determine the prediction mode set in the boundary macro block; And
    상기 주변 매크로 블록에 설정된 상기 예측 모드를 분석하여 판별하는 주변 블록 예측 모드 분석부; 를 포함하는 것을 특징으로 하는 영상 합성 장치.A neighboring block prediction mode analyzer configured to analyze and determine the prediction mode set in the neighboring macroblock; Image synthesizing apparatus comprising a.
  8. 제6 항에 있어서, 상기 MPM 재생성부는 The method of claim 6, wherein the MPM regeneration unit
    상기 주변 매크로 블록 각각의 예측 모드 중 기할당된 번호가 가장 낮은 예측 모드를 판별하여 상기 MPM 예측 모드를 판별하고, 상기 MPM 예측 모드와 상기 경계 매크로 블록의 예측 모드가 동일하면, 플래그 비트만을 설정하고, 상기 MPM 예측 모드와 상기 경계 매크로 블록의 예측 모드가 서로 상이하면, 상기 플래그 비트와 함께 상기 경계 매크로 블록의 예측 모드를 지정하기 위한 추가 비트를 설정하는 것을 특징으로 하는 영상 합성 장치.The MPM prediction mode is determined by determining a prediction mode having the lowest assigned number among the prediction modes of each of the neighboring macroblocks.If only the prediction mode of the MPM prediction mode and the boundary macroblock is the same, only flag bits are set. And setting an additional bit for designating a prediction mode of the boundary macroblock together with the flag bit when the MPM prediction mode and the prediction mode of the boundary macroblock are different from each other.
  9. 제8 항에 있어서, 상기 MPM 재생성부는 The method of claim 8, wherein the MPM regeneration unit
    상기 경계 매크로 블록의 좌측 및 상단에 인접하여 배치된 상기 주변 매크로 블록의 예측 모드 중 번호가 가장 낮은 예측 모드 상기 MPM 예측 모드로 선택하는 것을 특징으로 하는 영상 합성 장치.And the prediction mode having the lowest number among the prediction modes of the neighboring macroblocks disposed adjacent to the left and the top of the boundary macroblock as the MPM prediction mode.
  10. 제1 항에 있어서, 상기 파라미터 및 헤더 생성부는 The method of claim 1, wherein the parameter and header generating unit
    상기 복수개의 비트 스트림의 구문 중 SPS, PPS의 파라미터 및 슬라이스의 헤더를 수정하여 수정 구문을 생성하는 것을 특징으로 하는 영상 합성 장치.And a modified syntax is generated by modifying an SPS, a parameter of a PPS, and a header of a slice among the syntaxes of the plurality of bit streams.
  11. 제1 항에 있어서, 상기 파라미터 및 헤더 생성부는 The method of claim 1, wherein the parameter and header generating unit
    상기 합성 영상에 대한 구성 정보를 외부에서 인가받아 설정하는 것을 특징으로 하는 영상 합성 장치.And synthesizing the configuration information of the synthesized image from the outside.
  12. 각각 서로 다른 원본 영상을 수신하고, 기설정된 부호화 방식으로 부호화하여 비트스트림을 출력하는 복수개의 부호화 장치; 및 A plurality of encoding devices each receiving a different original image, encoding the predetermined original encoding method, and outputting a bitstream; And
    복수개의 입력 영상을 상기 복수개의 비트스트림으로 수신하고, 상기 복수개의 비트스트림 각각에 대한 구문을 기설정된 합성 영상에 대한 구성 정보에 따라 수정하여, 수정 구문을 생성하여 상기 비트스트림에 포함된 기존 구문을 대체하여 삽입함으로써, 상기 합성 영상에 대한 비트스트림을 생성하며, 상기 복수개의 비트스트림 각각으로부터 상기 입력 영상의 경계에 배치된 매크로 블록인 복수개의 경계 매크로 블록과, 상기 복수개의 매크로 블록 각각에 인접하여 배치된 다른 입력 영상의 상기 매크로 블록인 주변 매크로 블록을 복호화하여 추출하고, 추출된 상기 경계 매크로 블록과 상기 주변 매크로 블록 각각에 설정된 예측 모드를 분석하여, 상기 주변 매크로 블록의 예측 모드에 따라 MPM(Most Probable Mode)를 재생성하고, 재부호화하여 상기 합성 영상에 대한 비트스트림에 삽입하는 영상 합성 장치; 를 포함하고, Receives a plurality of input images as the plurality of bitstreams, modifies the syntax for each of the plurality of bitstreams according to configuration information of a predetermined composite image, generates a modified syntax, and generates an existing syntax included in the bitstream. And inserting a subfield, generating a bitstream for the synthesized image, wherein the plurality of boundary macroblocks are macroblocks arranged at the boundary of the input image from each of the plurality of bitstreams, and adjacent to each of the plurality of macroblocks. Decoding and extracting the neighboring macroblocks that are the macroblocks of the other input image arranged, and analyzing the extracted boundary macroblock and the prediction mode set in each of the neighboring macroblocks, and analyzing the MPM according to the prediction mode of the neighboring macroblock. Regenerate and recode Most Probable Mode Video synthesizer that is inserted into the bitstream for the image; Including,
    상기 영상 합성 장치는 The image synthesizing apparatus
    상기 복수개의 비트스트림을 수신하여 구문 분석을 수행하는 스트림 구문 분석부; A stream parsing unit configured to receive the plurality of bitstreams and perform parsing;
    상기 스트림 구문 분석부에서 분석된 상기 구문을 수정하여 상기 수정 구문을 생성하는 파라미터 및 헤더 생성부; A parameter and header generator for modifying the syntax analyzed by the stream parser to generate the modified syntax;
    상기 복수개의 비트스트림에 각 포함된 각 대상 매크로 블록의 MPM(Most Probable Mode)을 재생성하고 재부호화하는 수단, 또는 상기 대상 매크로 블록에 대하여 부호화된 변환계수(Transform Coefficient)에 대하여 엔트로피 부호화를 수행함에 있어서 0이 아닌 상기 변환계수들의 개수에 대한 정보를 포함하는 상기 엔트로피 부호화 구문을 재부호화하는 수단 중, 어느 하나의 수단을 이용하거나 상기 수단들을 모두 이용하여 상기 대상 매크로 블록의 부호화 구문을 재부호화하는 매크로 블록 부호화 구문 수정부; 및Means for regenerating and re-coding the Most Probable Mode (MPM) of each target macroblock included in each of the plurality of bitstreams, or performing entropy encoding on a transform coefficient encoded for the target macroblock. Re-encoding the encoded syntax of the target macroblock using any one or all of the means for re-encoding the entropy encoded syntax including information on the number of non-zero transform coefficients. Macroblock encoding syntax correction; And
    상기 비트스트림에 포함된 기존 구문을 대체하여 상기 파라미터 및 헤더 생성부에서 생성된 상기 수정 구문과 상기 매크로 블록 부호화 구문 수정부에서 재부호화된 구문을 상기 합성 영상에 대한 비트스트림에 삽입하여, 상기 복수개의 입력 영상을 포함하는 상기 합성 영상에 대한 비트스트림을 출력하는 스트림 합성부; 를 포함하는 것을 특징으로 하는 영상 합성 시스템.Replacing the existing syntax included in the bitstream by inserting the modified syntax generated by the parameter and header generation unit and the syntax re-encoded by the macroblock coded syntax corrector into the bitstream for the composite image, A stream synthesizer configured to output a bitstream of the synthesized image including two input images; Image synthesis system comprising a.
  13. 제12 항에 있어서,The method of claim 12,
    상기 매크로 블록 부호화 구문 수정부는,The macroblock encoding syntax correction unit,
    상기 복수개의 비트스트림 각각으로부터, 상기 대상 매크로 블록 중 상기 입력 영상의 경계에 배치된 매크로 블록인 복수개의 경계 매크로 블록과, 상기 복수개의 매크로 블록 각각에 인접하여 배치된 다른 입력 영상의 상기 매크로 블록인 주변 매크로 블록을 복호화하여 추출하고, 추출된 상기 경계 매크로 블록과 상기 주변 매크로 블록 각각에 설정된 예측 모드를 분석하여, 상기 주변 매크로 블록의 예측 모드에 따라 MPM(Most Probable Mode)를 재생성하여, 상기 경계 매크로 블록의 부호화 구문을 재부호화하는 MPM 보정부;From each of the plurality of bitstreams, a plurality of boundary macroblocks which are macroblocks arranged at the boundary of the input image among the target macroblocks, and the macroblocks of other input images arranged adjacent to each of the plurality of macroblocks. Decode and extract a neighboring macroblock, analyze a prediction mode set in each of the extracted boundary macroblock and the neighboring macroblock, regenerate a Most Probable Mode (MPM) according to the prediction mode of the neighboring macroblock, An MPM correction unit for re-encoding the encoding syntax of the macro block;
    상기 대상 매크로 블록에 대한 상기 엔트로피 부호화에서 0이 아닌 상기 변환계수들의 개수에 대한 정보를 포함하는 상기 엔트로피 부호화 구문을 수정하여, 상기 대상 매크로 블록의 부호화 구문을 재부호화 하는 엔트로피 부호화 구문 재부호화부; 및An entropy encoding syntax re-encoding unit for re-encoding the encoding syntax of the target macroblock by modifying the entropy encoding syntax including information about the number of non-zero transform coefficients in the entropy encoding for the target macroblock; And
    상기 경계 매크로 블록의 스킵 모드 부호화 구문을 수정하되, 상기 경계 매크로 블록을 포함하는 영상에 인접하여 배치된 상기 다른 입력 영상에 포함된 매크로 블록들이 스킵 모드로 부호화된 정보를 이용하여, 상기 경계 매크로 블록의 스킵 모드에 관한 부호화 구문을 수정하는 스킵 모드 부호화 구문 수정부를 포함하는 것을 특징으로 하는 영상 합성 시스템.A skip mode encoding syntax of the boundary macroblock is modified, but macroblocks included in the other input image disposed adjacent to the image including the boundary macroblock are encoded using a skip mode, and the boundary macroblock is used. And a skip mode coded syntax corrector for correcting the coded syntax for the skip mode of the skip mode.
  14. 제12 항에 있어서, 상기 영상 합성 시스템은 The method of claim 12, wherein the image synthesis system
    각각 상기 원본 영상을 생성하여 상기 복수개의 부호화 장치 중 대응하는 부호화 장치로 전송하는 복수개의 영상 입력 수단; 을 더 포함하는 것을 특징으로 하는 영상 합성 시스템.A plurality of image input means for generating the original image and transmitting the original image to a corresponding one of the plurality of encoding devices; Image synthesizing system further comprises.
  15. 제12 항에 있어서, 상기 영상 합성 시스템은 The method of claim 12, wherein the image synthesis system
    상기 복수개의 원본 영상이 기저장되어 상기 복수개의 부호화 장치 중 대응하는 부호화 장치로 전송하는 적어도 하나의 기록 매체; 를 더 포함하는 것을 특징으로 하는 영상 합성 시스템.At least one recording medium in which the plurality of original images are pre-stored and transmitted to a corresponding encoding device among the plurality of encoding devices; Image synthesizing system further comprises.
  16. 스트림 구문 분석부, 파라미터 및 헤더 생성부, 매크로 블록 부호화 구문 수정부 및 스트림 합성부를 포함하는 영상 합성 장치의 영상 합성 장치의 영상 합성 방법에 있어서, An image synthesizing method of an image synthesizing apparatus of an image synthesizing apparatus comprising a stream parser, a parameter and header generator, a macroblock encoding syntax corrector, and a stream synthesizer,
    상기 스트림 구문 분석부가 복수개의 입력 영상 각각에 대한 복수개의 비트스트림을 수신하고, 수신된 비트 스트림 각각에 대한 구문을 분석하는 단계; Receiving, by the stream parser, a plurality of bitstreams for each of a plurality of input images, and analyzing the syntax for each of the received bitstreams;
    상기 파라미터 및 헤더 생성부가 분석된 상기 구문을 기설정된 합성 영상에 대한 구성 정보에 따라 수정하여, 수정 구문을 생성하는 단계; Generating a modified syntax by modifying the syntax analyzed by the parameter and the header generator according to configuration information about a preset composite image;
    매크로 블록 부호화 구문 수정부가 상기 복수개의 비트스트림에 각 포함된 각 대상 매크로 블록의 MPM(Most Probable Mode)을 재생성하고 재부호화하는 수단, 또는 상기 대상 매크로 블록에 대하여 부호화된 변환계수(Transform Coefficient)에 대하여 엔트로피 부호화를 수행함에 있어서 0이 아닌 상기 변환계수들의 개수에 대한 정보를 포함하는 상기 엔트로피 부호화 구문을 재부호화하는 수단 중, 어느 하나의 수단을 이용하거나 상기 수단들을 모두 이용하여 상기 대상 매크로 블록의 부호화 구문을 재부호화하는, 매크로 블록 부호화 구문 수정 단계; 및Means for regenerating and re-encoding the Most Probable Mode (MPM) of each target macroblock included in each of the plurality of bitstreams, or a transform coefficient encoded for the target macroblock. Means for re-encoding the entropy encoding syntax including information on the number of non-zero transform coefficients in performing entropy encoding on the target macroblock by using any one or all of the means. Macroblock encoding syntax modification step of re-encoding encoding syntax; And
    상기 스트림 합성부가 상기 비트스트림에 포함된 기존 구문을 대체하여 상기 파라미터 및 헤더 생성부에서 생성된 상기 수정 구문과 상기 매크로 블록 부호화 구문 수정부에서 재부호화된 구문을 삽입하여 상기 복수개의 입력 영상을 포함하는 합성 영상에 대한 비트스트림을 출력하는 단계; 를 포함하는 것을 특징으로 하는 영상 합성 방법.The stream synthesis unit includes the plurality of input images by inserting the modified syntax generated by the parameter and header generation unit and the syntax re-encoded by the macroblock encoding syntax correction unit by replacing the existing syntax included in the bitstream. Outputting a bitstream for the synthesized video; Image synthesis method comprising a.
  17. 제16 항에 있어서, 상기 매크로 블록 부호화 구문 수정 단계는,The method of claim 16, wherein the modifying macroblock encoding syntax comprises:
    상기 복수개의 비트스트림 각각으로부터 상기 입력 영상의 경계에 배치된 매크로 블록인 복수개의 경계 매크로 블록과, 상기 복수개의 매크로 블록 각각에 인접하여 배치된 다른 입력 영상의 상기 매크로 블록인 주변 매크로 블록을 복호화하여 추출하고, 추출된 상기 경계 매크로 블록과 상기 주변 매크로 블록 각각에 설정된 예측 모드를 분석하여, 상기 주변 매크로 블록의 예측 모드에 따라 MPM(Most Probable Mode)을 재생성하고 재부호화하는 MPM 보정 단계; 및 Decode a plurality of boundary macroblocks, which are macroblocks arranged at the boundary of the input image, from each of the plurality of bitstreams, and peripheral macroblocks that are the macroblocks of another input image disposed adjacent to each of the plurality of macroblocks Extracting, analyzing a prediction mode set in each of the extracted boundary macroblock and the neighboring macroblock, and regenerating and re-encoding a Most Probable Mode (MPM) according to the prediction mode of the neighboring macroblock; And
    상기 대상 매크로 블록에 대한 상기 엔트로피 부호화에서 0이 아닌 상기 변환계수들의 개수에 대한 정보를 포함하는 상기 엔트로피 부호화 구문을 수정하여, 상기 대상 매크로 블록의 부호화 구문을 재부호화 하는, 엔트로피 부호화 구문 재부호화 단계;를 포함하는 것을 특징으로 하는 영상 합성 방법.Re-encoding the encoding syntax of the target macroblock by modifying the entropy encoding syntax including information on the number of non-zero transform coefficients in the entropy encoding for the target macroblock. Image synthesis method comprising a.
  18. 제17 항에 있어서, The method of claim 17,
    상기 엔트로피 부호화 구문 재부호화 단계는 상기 대상 매크로 블록 중 상기 경계 매크로 블록을 재부호화 하고, 상기 경계 매크로 블록을 가변 길이 부호화(VLC, Variable Length Coding) 방식을 이용하여 상기 엔트로피 부호화를 하는 경우, 상기 경계 매크로 블록에 인접하여 배치된 다른 입력 영상의 상기 주변 매크로 블록을 이용하여 상기 경계 매크로 블록에 대한 VLC 테이블을 수정하고, 상기 수정한 VLC 테이블을 이용하여 상기 경계 매크로 블록의 변환계수 중 0이 아닌 변환계수들의 수를 나타내는 상기 가변 길이 부호화 구문을 수정하여, 상기 경계 매크로 블록의 부호화 구문을 재부호화 하는 것을 특징으로 하는 영상 합성 방법.In the entropy encoding syntax recoding step, the boundary macroblock of the target macroblock is recoded, and the boundary macroblock is entropy encoded by using a variable length coding (VLC) method. The VLC table for the boundary macroblock is modified using the neighboring macroblock of another input image disposed adjacent to the macroblock, and the nonzero conversion of the transform coefficients of the boundary macroblock is performed using the modified VLC table. And re-encoding the encoded syntax of the boundary macroblock by modifying the variable length encoded syntax representing the number of coefficients.
  19. 제17 항에 있어서, 상기 MPM 보정 단계는18. The method of claim 17, wherein the MPM correction step is
    상기 매크로 블록을 복호화하여 추출하고, 상기 합성 영상에 대한 구성 정보에 따라 상기 합성 영상에서 상기 복수개의 입력 영상 각각의 배치 위치를 판별하고, 상기 합성 영상에서 복수개의 입력 영상이 배치되는 위치에 따라 발생하는 인접 영상들 사이의 경계면을 판별하고, 상기 복수개의 입력 영상 중 MPM을 보정하기 위한 현재 영상에서 상기 영상들 사이의 경계면에 배치된 상기 경계 매크로 블록을 복호화하여 추출하고, 상기 현재 영상과 인접하여 배치되는 영상들에서 상기 경계 매크로 블록에 인접하여 배치된 상기 주변 매크로 블록을 복호화하여 추출하는 것을 특징으로 하는 영상 합성 방법.Decode and extract the macro block, determine the arrangement position of each of the plurality of input images in the composite image according to the configuration information of the composite image, and generate according to the position where the plurality of input images are arranged in the composite image Determine an interface between adjacent images, decode and extract the boundary macroblocks disposed on the interface between the images from a current image for correcting an MPM among the plurality of input images, and adjacent to the current image And decoding and extracting the neighboring macroblock disposed adjacent to the boundary macroblock from the arranged images.
  20. 제17 항에 있어서, 상기 MPM 보정 단계는 18. The method of claim 17, wherein the MPM correction step is
    상기 경계 매크로 블록에 설정된 상기 예측 모드를 분석하여 판별하고, 상기 주변 매크로 블록에 설정된 상기 예측 모드를 분석하여 판별하고, 상기 주변 매크로 블록 각각의 예측 모드 중 기할당된 번호가 가장 낮은 예측 모드를 판별하여 MPM 예측 모드를 판별하고, 상기 경계 매크로 블록의 예측 모드와 판별된 상기 MPM 예측 모드가 동일한지 판별하여 상기 MPM을 재생성하고, 재생성된 상기 MPM을 상기 합성 영상에 대한 비트스트림에 삽입할 수 있도록 부호화하여, 상기 MPM을 재부호화하는 것을 특징으로 하는 영상 합성 방법.Analyze and determine the prediction mode set in the boundary macroblock, analyze and determine the prediction mode set in the neighboring macroblock, and determine the prediction mode with the lowest assigned number among the prediction modes of each of the neighboring macroblocks. Determine the MPM prediction mode, determine whether the prediction mode of the boundary macroblock and the determined MPM prediction mode are the same, regenerate the MPM, and insert the regenerated MPM into the bitstream for the synthesized image. And encoding and re-encoding the MPM.
  21. 제20 항에 있어서, 상기 MPM 보정 단계는 The method of claim 20, wherein the MPM correction step
    상기 경계 매크로 블록의 좌측 및 상단에 인접하여 배치된 상기 주변 매크로 블록의 예측 모드 중 기할당된 번호가 가장 낮은 예측 모드 상기 MPM 예측 모드로 선택하여, 상기 MPM 예측 모드를 판별하는 것을 특징으로 하는 영상 합성 방법.The MPM prediction mode is determined by selecting the prediction mode having the lowest assigned number among the prediction modes of the neighboring macroblocks disposed adjacent to the left and the top of the boundary macroblock as the MPM prediction mode. Synthetic method.
  22. 제20 항에 있어서, 상기 MPM 보정 단계는The method of claim 20, wherein the MPM correction step
    상기 MPM 예측 모드와 상기 경계 매크로 블록의 예측 모드가 동일하면, 플래그 비트만을 설정하고, 상기 MPM 예측 모드와 상기 경계 매크로 블록의 예측 모드가 서로 상이하면, 상기 플래그 비트와 함께 상기 경계 매크로 블록의 예측 모드를 지정하기 위한 추가 비트를 설정하여, 상기 MPM을 재생성하는 것을 특징으로 하는 영상 합성 방법.If the MPM prediction mode and the prediction mode of the boundary macroblock are the same, only flag bits are set, and if the MPM prediction mode and the prediction mode of the boundary macroblock are different from each other, prediction of the boundary macroblock with the flag bit is performed. And regenerating the MPM by setting an additional bit for designating a mode.
PCT/KR2014/013138 2014-12-31 2014-12-31 Method, device and system for synthesizing image in error-resistant compression region WO2016108318A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/KR2014/013138 WO2016108318A1 (en) 2014-12-31 2014-12-31 Method, device and system for synthesizing image in error-resistant compression region

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/KR2014/013138 WO2016108318A1 (en) 2014-12-31 2014-12-31 Method, device and system for synthesizing image in error-resistant compression region

Publications (1)

Publication Number Publication Date
WO2016108318A1 true WO2016108318A1 (en) 2016-07-07

Family

ID=56284470

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2014/013138 WO2016108318A1 (en) 2014-12-31 2014-12-31 Method, device and system for synthesizing image in error-resistant compression region

Country Status (1)

Country Link
WO (1) WO2016108318A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109920016A (en) * 2019-03-18 2019-06-21 北京市商汤科技开发有限公司 Image generating method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060005526A (en) * 2004-07-13 2006-01-18 학교법인연세대학교 Apparatus and method of processing image data
KR20110009576A (en) * 2009-07-22 2011-01-28 주식회사 엠씨넥스 Method and apparatus for combining plural moving pictures in an h.264/avc compressed domain
KR101446073B1 (en) * 2013-12-26 2014-10-06 연세대학교 산학협력단 Method, apparatus and system for combining plural picutres
KR101446074B1 (en) * 2013-12-26 2014-10-06 연세대학교 산학협력단 Method, apparatus and system for combining plural picutres

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060005526A (en) * 2004-07-13 2006-01-18 학교법인연세대학교 Apparatus and method of processing image data
KR20110009576A (en) * 2009-07-22 2011-01-28 주식회사 엠씨넥스 Method and apparatus for combining plural moving pictures in an h.264/avc compressed domain
KR101446073B1 (en) * 2013-12-26 2014-10-06 연세대학교 산학협력단 Method, apparatus and system for combining plural picutres
KR101446074B1 (en) * 2013-12-26 2014-10-06 연세대학교 산학협력단 Method, apparatus and system for combining plural picutres

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
GANKHUYAG, GANZORIG ET AL.: "A Real-Time Video Stitching Algorithm in H.264/AVC Compressed Domain", THE JOURNAL OF KOREAN INSTITUTE OF COMMUNICATIONS AND INFORMATION SCIENCES (J-KICS, vol. 39, no. 6, June 2014 (2014-06-01), pages 503 - 511, Retrieved from the Internet <URL:http://www.dbpia.co.kr/Journal/ArticleDetail/3463085> *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109920016A (en) * 2019-03-18 2019-06-21 北京市商汤科技开发有限公司 Image generating method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN113692588B (en) Method for video decoding and related device
KR101610419B1 (en) Image signal decoding device, image signal decoding method, image signal encoding device, image signal encoding method, and recording medium
JP3694888B2 (en) Decoding device and method, encoding device and method, information processing device and method, and recording medium
CN113491120A (en) Video coding and decoding method and device
WO2011034378A2 (en) Method and apparatus for encoding and decoding image based on skip mode
KR20100097232A (en) Image encoding apparatus, image encoding method, image encoded bitstream, recording medium, image decoding apparatus, and image decoding method
JP2000078468A (en) Insertion of logotype based on restricted encoding
CN113382259B (en) Video decoding method and device and computer equipment
US20180063525A1 (en) Image processing device, image processing method, program, and recording medium
WO2014107029A1 (en) Video signal processing method and device
CN113875256A (en) Method and apparatus for video encoding and decoding
CN114375570A (en) Method and apparatus for video encoding
KR101446074B1 (en) Method, apparatus and system for combining plural picutres
CN115380306A (en) Method and device for encoding and decoding video
JP3874153B2 (en) Re-encoding device and re-encoding method, encoding device and encoding method, decoding device and decoding method, and recording medium
WO2016108318A1 (en) Method, device and system for synthesizing image in error-resistant compression region
KR101446073B1 (en) Method, apparatus and system for combining plural picutres
JP2005304065A (en) Decoding device and method, coding device and method, information processing device and method, and recording medium
CN112118452B (en) Video decoding method and device and computer equipment
WO2016108317A1 (en) Method, device and system for synthesizing image in error-resistant compression region
WO2018074617A1 (en) Video coding method and apparatus utilizing reference mode list for intra prediction
CN116325723B (en) Method, computer device and medium for video decoding
WO2014168445A1 (en) Video signal processing method and device
US11445206B2 (en) Method and apparatus for video coding
KR100935493B1 (en) Apparatus and method for transcoding based on distributed digital signal processing

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: 14909600

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: 14909600

Country of ref document: EP

Kind code of ref document: A1