KR980013432A - Coding method and apparatus for object image - Google Patents

Coding method and apparatus for object image Download PDF

Info

Publication number
KR980013432A
KR980013432A KR1019960027486A KR19960027486A KR980013432A KR 980013432 A KR980013432 A KR 980013432A KR 1019960027486 A KR1019960027486 A KR 1019960027486A KR 19960027486 A KR19960027486 A KR 19960027486A KR 980013432 A KR980013432 A KR 980013432A
Authority
KR
South Korea
Prior art keywords
axis
macroblocks
macroblock
counting
image
Prior art date
Application number
KR1019960027486A
Other languages
Korean (ko)
Other versions
KR100420471B1 (en
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 KR1019960027486A priority Critical patent/KR100420471B1/en
Publication of KR980013432A publication Critical patent/KR980013432A/en
Application granted granted Critical
Publication of KR100420471B1 publication Critical patent/KR100420471B1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/20Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using video object coding
    • 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
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • H04N19/537Motion estimation other than block-based
    • H04N19/54Motion estimation other than block-based using feature points or meshes

Landscapes

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

Abstract

본 발명은 MPEG-4에서 VOP를 구획하는 매크로 블록을 대상물 영상의 모양정보에 따른 정보량 감소 위치로 이동시켜 부호화 효율을 향상시키는 것이다.The present invention improves the coding efficiency by moving a macroblock partitioning a VOP in MPEG-4 to an information amount reduction position according to shape information of an object image.

본 발명은 대상물의 영상에 따라 형성된 VOP를 정의하고, 상기 정의한 VOP의매크로 블록의 X축 및 Y축 그리드 시작점을 이동시키면서 정보량을 감소 위치를 찾는다. 정보량 감소 위치는 대상물의 영상이 존재하는 매크로 블록의 수가 최소로 되는 위치로서 매크로 블록의 수가 최소로 되는 X축 및 Y축 그리드 시작점을 최적의 X축 및 Y축 그리드 시작점으로 결정하고, 결정한 최적의 X축 및 Y축 그리드 시작점에 따라 매크로 블록을 재형성한 후 모양 부호화부에서 모양정보의 부호화를 수행한다. 그리고 모양 부호화부에서 모양 부호화한 매크로 블록의 X축 및 Y축 그리드 시작점을 이동시키면서 다시 대상물의 영상이 존재하는 매크로 블록의 수가 최소로 되는 위치를 최적의 X축 및 Y축 그리드 시작점으로 결정하고, 결정한 최적의 X축 및 Y축 그리드 시작점에 따라 매크로 블록을 재형성하여 움직임 추정, 움직임 보상 및 대상물 내부 부호화를 수행한다.The present invention defines a VOP formed according to an image of an object, and finds a position for reducing the amount of information while moving the start point of the X axis and the Y axis of the macro block of the VOP defined above. The information amount reduction position is determined as an optimal X-axis and Y-axis grid start point of the X-axis and Y-axis grid points where the number of macroblocks in which an image of the object exists is minimized and the number of macro blocks is minimized. After reforming the macroblock according to the starting points of the X-axis and Y-axis grids, the shape coding unit encodes the shape information. Then, the X-axis and Y-axis grid start points of the macroblocks shape-coded by the shape encoding unit are moved, and the positions where the number of macroblocks in which the image of the object exists are minimized are determined as the optimal X-axis and Y- The macroblock is re-formed according to the determined optimal X-axis and Y-axis grid starting points to perform motion estimation, motion compensation, and intra-object coding.

Description

대상물 영상의 부호화 방법 및 부호화 장치대상물 영상의 부호화 방법 및 부호화 장치Method and apparatus for encoding object image and method and apparatus for encoding object image

본 발명은 MPEG(Noving Picture Experts Group)-4에서 VOP(Video Object Plane)를 구획하는 매크로 블록을, 물체 및 영역 등의 대상물 영상에 대한 모양정보의 위치에 따른 정보량 감소 위치로 이동시켜 부호화 효율을 향상시키는 대상물 영상의, 부호화 방법 및 부호화 장치에 판한 것이다.The present invention relates to a method and apparatus for moving a macroblock for dividing a VOP (Video Object Plane) in MPEG (Noving Picture Experts Group) -4 to an information amount reduction position according to the position of shape information for an object image such as an object and an area, And the object image to be enhanced is encoded by an encoding method and an encoding device.

현재 표준화가 진행되고 있는 MPEG-4는 VOP(Video Object Plane)의 개념을 기초로 하고 있다.MPEG-4, which is currently being standardized, is based on the concept of VOP (Video Object Plane).

여기서, VOP는 영상 화면에서 소정의 물체 및 영역 등의 대상물 영상이 존재할 경우에 그 대상물의 영상을 각기 분리하고, 분리한 상기 대상물의 영상을 각기 부호화하는 것을 기본 골격으로 하고 있다.Here, the VOP has a basic skeleton in which, when an object image such as a predetermined object and an area exists on an image screen, the image of the object is separated and the images of the separated object are separately encoded.

이러한 VOP는 자연 영상 및 인공 영상을 대상물 영상의 단위로 하여 자유자재로 합성 내지는 분해할 수 있는 장점을 기지는 것으로서 컴퓨터 그래픽스 및 멀티 미디어의 분야 등에서 대상물의 영상을 처리하는 데 기본이 되고 있다.Such a VOP has the advantage of being able to freely synthesize or disassemble a natural image or an artificial image as a unit of an object image, and is becoming a basis for processing an image of an object in the fields of computer graphics and multimedia.

제1도는 국제표준 산하기구(ISO/IEC JTC1/SC29/WG11 MPEG96/N1172 JanuarY)에서 1차적으로 확정한 VM(Verification Model) 엔코더의 구성을 보인 블록도이다.FIG. 1 is a block diagram showing the configuration of a VM (Verification Model) encoder that is primarily determined by the International Organization for Standardization (ISO / IEC JTC1 / SC29 / WG11 MPEG96 / N1172 JanuarY).

여기서, VOP 형성부(VOP Formation)(11)는 전송 또는 저장할 영상 시퀀스가 입력될 경우에 이를 VOP로 형성한다.Here, the VOP formation unit 11 forms a VOP when a video sequence to be transmitted or stored is input.

VOP의 형성은 하나의 화면에서 여러 개의 대상물 영상이 존재할 경우에 배경화면과, 각각의 대상물 영상에 대하여 각기 다른 VOP로 형성하는 것으로서 배경화면과 각각의 대상물 영상으로 분리하고, 상기 분리한 배경 화면과 대상물 영상을 포함하는 가장 작은 사각형을 VOP로 정의하고 있다.The formation of the VOP is performed by dividing a background screen into a plurality of object images on one screen and a different VOP for each object image into a background image and respective object images, The smallest rectangle containing the object image is defined as VOP.

제2도는 대상물의 영상으로 "고양이" 의 영상을 설정하여 하나의 V0P를 형성한 일 예를 보이고 있다.FIG. 2 shows an example in which one V0P is formed by setting an image of "cat" as an image of an object.

여기서, VOP의 가로 방향 크기는 VOP 폭으로 정의되고, 세로 방향의 크기는 VOP 높이로 정의된다.Here, the horizontal size of the VOP is defined as the VOP width, and the vertical size is defined as the VOP height.

형성된 VOP는 좌측 상단을 그리드 시작점으로 하고, X축 및 Y축으로 각기 M개 및 N개의 화소를 가지는 M×N 매크로 블록으로 구획된다. 예를 들면 X축 및 Y축으로 각기 16개의 화소를 가지는 16×16 매크로 블록으로 구획된다.The formed VOP is partitioned into M × N macroblocks having M pixels and N pixels on the X axis and Y axis, respectively, with the upper left corner as the grid starting point. For example, 16x16 macroblocks each having 16 pixels on the X axis and the Y axis.

이 때, VOP의 우측과 하단에 형성되는 매크로 블록의 X축 및 Y축 화소가 각기 M개 및 N개가 아닐 경우에 VOP의 크기를 확장하여 각각의 매크로 블록의 X축 및 Y축 화소가 모두 M개 및 N개로 되게 한다.In this case, when the X and Y axis pixels of the macroblocks formed on the right and bottom sides of the VOP are not M and Y, respectively, the magnitude of the VOP is expanded so that the X and Y axis pixels of each macroblock are both M And N pieces.

그리고 상기 M 및 N은 후술하는 대상물 내부 부호화부(Texture Coding)에서 서브 블록의 단위로 부호화를 수행할 수 있도록 하기 위하여 각기 짝수로 설정된다.The M and N are set to an even number in order to perform encoding in units of sub-blocks in an object coder to be described later.

VOP 형성부(11)에서 형성된 각각의 VOP는 VOP 부호화부(12A,12B,12.C,…)에각기 입력되어 V0P 별로 부호화되고, 멀티플렉서(13)에서 다중화되어 비트 스트림으로 전송된다.Each VOP formed in the VOP forming unit 11 is input to each of the VOP encoding units 12A, 12B, 12C, ... and is encoded for each V0P, multiplexed by the multiplexer 13, and transmitted as a bit stream.

제3도는 국제표준 산하기구에서 1차적으로 확정한 VM 디코더의 구성을 보인 블록도이다.FIG. 3 is a block diagram showing a configuration of a VM decoder which is primarily determined by an organization under international standards.

상기 엔코더를 통해 부호화되고, 비트 스트림으로 전송되는 정보인 VOP의 부호화 신호는 VM 디코더의 디멀티플렉서(21)에서 VOP 별로 각기 분리된다.The encoded signal of the VOP, which is encoded through the encoder and transmitted as the bit stream, is demultiplexed by VOP in the demultiplexer 21 of the VM decoder.

분리된 각각의 V0P 부호화 신호는 V0P 디코더(22A,22B,22C,…)에서 각기 디코딩되고, 상기VOP 디코더(22A,22B,22C,…)의출력신호는 합성부(23)에서 합성되어 원래의 화면의 영상으로 출력된다.The output signals of the VOP decoders 22A, 22B, 22C, ... are synthesized in a synthesizing unit 23, and the output signals of the VOP decoders 22A, 22B, 22C, The image is displayed on the screen.

제4도는 국제표준 산하기구에서 1차적으로 확정한 VM 엔코더의 VOP 부호화부(12A,12B,12C,…)의 구성을 보인 블록도이다.FIG. 4 is a block diagram showing the configuration of VOP encoding units 12A, 12B, 12C,... Of VM encoders which are primarily determined by the international standards organization.

VOP 형성부(11)에서 형성된 각자의 대상물 영상에 대한 VOP가 움직임 추정부(Motion Estimation)(31)에 입력되어 매크로 블록의 단위로 움직임이 추정된다.A VOP for each object image formed in the VOP forming unit 11 is input to a motion estimation unit 31 to estimate motion in units of macroblocks.

상기 움직임 추정부(31)에서 추정된 움직임 정보는 움직임 보상부(Motion Compensation)(32)에 입력되어 움직임이 보상된다.The motion information estimated by the motion estimation unit 31 is input to a motion compensation unit 32 to compensate for motion.

상기 움직임 보상부(32)에서 움직임이 보상된 상기 VOP는 V0P 형성부(11)에서 형성된 V0P와 함께 가산기(33)에 입력되어 차이 값이 검출되고, 상기 가산기(33)에서 검출된 차이 값은 대상물 내부 부호화부(34)에 입력되어 매크로 블록의 서브 블록 단위로 대상물의 내부정보가 부호화된다.The motion compensated VOP in the motion compensation unit 32 is input to the adder 33 together with V0P formed in the V0P forming unit 11 to detect a difference value and the difference value detected by the adder 33 is Object internal encoding unit 34 and the internal information of the object is encoded in units of sub-blocks of the macro-block.

예를 들면, 매크로 블록의 X축 및 Y축이 M/2 × N/2으로 각기 8개의 화소를가지는 8×8의 서브 블록으로 세분화된 후 대상물의 내부정보가 부호화된다.For example, the intra-object information is encoded after the X and Y axes of the macroblock are subdivided into 8 × 8 sub-blocks each having 8 pixels with M / 2 × N / 2.

상기 움직임 보상부(32)에서 움직임이 보상된 V0P와 대상물 내부 부호화부(34)에서 부호화된 대상물의 내부 정보가 가산기(35)에 입력되어 가산되고, 상기 가산기(35)의 출력신호는 이전 V0P 검출부(Previous Reconstructed VOP(36)에 입력되어 이전 화면의 V0P가 검출된다· 이전 V0P 검출부(36)에서 검출된 상기 이전 화면의 V0P는 움직임 추정부(31) 및 움직임 보상부(32)에 입력되어 움직임 추정 및 움직임 보상에 사용하도록 하고 있다.The motion compensated V0P in the motion compensation unit 32 and the internal information of the object coded by the object inner coding unit 34 are inputted to the adder 35 and added thereto and the output signal of the adder 35 is supplied to the previous V0P V0P of the previous screen is input to the detection unit (Previous Reconstructed VOP 36). V0P of the previous screen detected by the previous V0P detection unit 36 is input to the motion estimation unit 31 and the motion compensation unit 32 And is used for motion estimation and motion compensation.

그리고 상기 VOP 형성부(11)에서 형성된 VOP는 모양 부호화부(Shape Coding)(37)에 입력되어 모양 정보가 부호화된다.The VOP formed in the VOP forming unit 11 is input to a shape coding unit 37, and shape information is encoded.

여기서, 모양 부호화부(37)의 출력신호는 VOP 부호화부(12,12A,12B,·,‥)가 적용되는 분야에 따라 사용 여부가 가변되는 것으로 모양 부호화부(37)의 출력신호를 점선으로 표시된 바와 같이 움직임 추정부(31), 움직임 보상부(32) 및 대상물 내부 부호화부(34)에 입력시켜 움직임 추정, 움직임 보상 및 대상물의 내부 정보를 부호화하는 데 사용할 수 있다.Here, the output signal of the shape coding unit 37 varies depending on the field to which the VOP coding unit 12, 12A, 12B, ..., is applied, and the output signal of the shape coding unit 37 is represented by a dotted line As shown, to the motion estimation unit 31, the motion compensation unit 32, and the object intra-coding unit 34 to perform motion estimation, motion compensation, and coding of internal information of the object.

상기 움직임 추정부(31)에서 추정된 움직임 정보, 대상물 내부 부호화 부(34)에서 부호화된 대상물의 내부 정보 및 모양 부호화부(37)에서 부호화된 모양 정보는 멀티플렉서(38)에서 다중화되고, 버퍼(39)를 통해 제2도의 멀티플렉서(13)로 출력되어 비트 스트림으로 전송된다.The motion information estimated by the motion estimating unit 31, the internal information of the object encoded by the object inner encoding unit 34 and the shape information encoded by the shape encoding unit 37 are multiplexed by the multiplexer 38, 39 to the multiplexer 13 of the second degree and transmitted as a bit stream.

이러한 MPEG-4에 있어서, VOP를 형성할 경우에 종래에는 좌측 상단의 VOP 그리드 시작점부터 X축 및 Y축으로 각기 M개 및 N개의 화소를 가지는 M×N의 매크로 블록으로 형성하였다.In this MPEG-4, when the VOP is formed, M × N macroblocks having M pixels and N pixels are respectively formed on the X axis and the Y axis from the VOP grid start point of the upper left corner.

이 때, 대상물의 영상 즉, 대상물의 모양정보를 가지는 화소가 많은 수의 매크로 블록에 존재하게 되면, 모양정보를 부호화할 매크로 블록의 수가 많아지는것으로 부호화 효율이 낮게 된다.At this time, if the image of the object, that is, the pixel having the shape information of the object exists in a large number of macroblocks, the coding efficiency becomes low because the number of macroblocks to be encoded with shape information increases.

그러므로 대상물의 영상을 좌측 상단을 그리드 시작점으로 설정하여 M×N의매크로 블록 단위로 형성하는 종래의 기술에 의하면, 대상물의 모양정보를 부호화할 매크로 블록의 수가 많아 VOP의 부호화 효율을 향상시키는 데 한계가 있었다.Therefore, according to the conventional technique in which the image of the object is formed in units of M × N macroblocks by setting the upper left corner as the grid start point, the number of macroblocks to be encoded in the shape information of the object is increased, .

예를 들면, 대상물로 "고양이" 가 표시된 제2도의 도면에서 "고양이" 의 화소가 위치하는 매크로 블록의 수는 20개이고, 7∼8개의 매크로 블록은 작은 크기의 화소만을 포함하고 있는 것으로서 종래의 기술은 "고양이" 의 화소가 위치하는 20개의 매크로 블록을 모두 부호화해야 되어 부호화 효율이 낮았다.For example, in the drawing of FIG. 2 in which "cat" is displayed as an object, the number of macroblocks in which pixels of "cat" are located is 20, and 7 to 8 macroblocks include only pixels of small size. Technology has to encode all 20 macroblocks in which the "cat " pixel is located, resulting in low coding efficiency.

또안 모양 부호화부(37)에서 모양정보가 부호화된 신호로 움직임 추정, 움직임 보상 및 대상물 내부 부호화 할 경우에도 모양 부호화부(37)에서 출력되는 정보량이 많으므로 움직임 추정, 움직임 보상 및 대상물 내부 부호화한 정보량이 많은 문제점이 있었다.Since the amount of information output from the shape encoding unit 37 is large even when the shape information encoding unit 37 performs motion estimation, motion compensation, and intra-object encoding of the shape information encoded signal, motion estimation, motion compensation, The amount of information is large.

따라서 본 발명의 목적은 VOP의 매크로 블록을 대상물 영상의 모양정보에따른 정보량 감소 위치로 이동시킨 후 모양정보 부호화하여 모양정보 부호화 효율을 향상시키는 대상물 영상의 부호화 방법 및 부호화 장치를 제공하는 데 있다.Accordingly, an object of the present invention is to provide a method and apparatus for coding an object image, which moves a macroblock of a VOP to an information amount reduction position according to shape information of an object image, and then performs shape information coding to improve shape information coding efficiency.

본 발명의 다른 목적은 모양 부호화부에서 모양 정보가 부호화된 VOP 부호화 신호의 매크로 블록을 정보량 감소위치로 이동시킨 후 움직임 추정, 움직임 보상 및 대상물 내부 부호화를 수행하여 부호화 효율을 향상시키고, 정보량을 줄일 수 있도록 하는 대상물 영상의 부호화 방법 및 부호화 장치를 제공하는 데 있다.It is another object of the present invention to improve the coding efficiency and reduce the amount of information by performing motion estimation, motion compensation, and object inner coding after moving a macroblock of a VOP coded signal in which shape information is encoded in a shape coding unit to an information amount reduction position And to provide a coding method and a coding apparatus for an object image.

이러한 목적을 달성하기 위한 본 발명은 대상물의 영상에 따라 형성된 VOP를 정의하고, 상기 정의한 VOP의 매크로 블록의 X축 및 Y축 그리드 시작점을 이동시키면서 정보량을 감소 위치를 찾는다.In order to achieve the above object, the present invention defines a VOP formed according to an image of an object, and finds a position where the amount of information is reduced while moving the start point of the X axis and the Y axis of the macro block of the VOP defined above.

정보량 감소 위치는 예를 들면, 대상물의 영상이 존재하는 매크로 블록의 수가 최소로 되는 위치로서 매크로 블록의 수가 최소로 되는 X축 및 Y축 그리드시작점을 최적의 X축 및 Y축 그리드 시작점으로 결정하고, 결정한 최적의 X축 및 Y축 그리드 시작점에 따라 매크로 블록을 재형성한 후 모양 부호화부에서 모양정보의 부호화를 수행한다.For example, the X-axis and Y-axis grid starting points, at which the number of macroblocks in which the image of the object is present is minimized, are determined as the optimal X-axis and Y-axis grid starting points After the macro block is reformed according to the determined optimal X-axis and Y-axis grid start points, shape information is encoded in the shape coding unit.

그리그 모양 부호화부에서 모양 부호화한 매크로 블록의 X축 및 Y축 그리드시작점을 이동시키면서 다시 대상물의 영상이 존재하는 매크로 블록의 수가 최소로 되는 위치를 최적의 X축 및 Y축 그리드 시작점으로 결정하고 결정한 최적의 X축 및 Y축 그리드 시작점에 따라 매크로 블록을 재형성하여 움직임 추정,움직임 보상 및 대상물 내부 부호화를 수행한다.The position where the number of macroblocks in which the image of the object exists is minimized while moving the X axis and Y axis grid start points of the macroblocks shape-coded by the rig-shape coding unit as the optimal X axis and Y axis grid start points The macroblock is re-formed according to the determined optimal X-axis and Y-axis grid starting points to perform motion estimation, motion compensation, and intra-object coding.

이하, 첨부된 제5도 내지 제18도의 도면을 참조하여 본 발명의 대상물 영상의 부호화 방법 및 부호화 장치를 상세히 설명하겠으며, 여기서 종래와 동일한부위에는 동일 부호를 부여하였다.Hereinafter, a method and a device for encoding an object image according to the present invention will be described in detail with reference to the accompanying drawings of FIGS. 5 to 18, wherein the same parts as those of the conventional art are denoted by the same reference numerals.

제5도는 국제표준 산하기구에서 1차적으로 확정한 VM 엔코더의 VOP 부호화부(12A,12B,12C,…)에 본 발명의 부호화 장치에 의한 모양적응 블록 분할부를 구성한 실시예를 보인 블록도이다.FIG. 5 is a block diagram showing an embodiment in which a shape adaptive block dividing unit of the encoder of the present invention is configured in a VOP coding unit 12A, 12B, 12C,... Of a VM encoder which is primarily determined by an international standard organization .

이에 도시된 바와 같이 본 발명은 V0P 형성부(11)와 모양 부호화부(37)의 사이에 제1 모양적응 블록 분할부(40)를 구비하여, 매크로 블록의 X축 및 Y축 그리드 시작점을 이동시키면서 VOP의 대상물 영상의 위치에 따른 정보량 감소 위치를 결정한다.As shown in the figure, the present invention includes a first shape adaptive block dividing unit 40 between the V0P forming unit 11 and the shape coding unit 37 to move the X and Y axis grid start points of the macroblocks And determines an information amount reduction position according to the position of the object image of the VOP.

정보량 감소 위치로, 대상물의 영상이 존재하는 매크로 블록의 수가 소로 되는 위치를 최적의 X축 및 Y축 그리드 시작점으로 결정하고, 결정한 최적의 X축 및 Y축 그리드 시작점을 출력하여 모양 부호화부(37)에 입력시키게 하였다.The optimal X-axis and Y-axis grid start points are determined as the optimum X-axis and Y-axis grid start points, and the shape encoding unit 37 ).

모양 부호화부(37)에서는 상기 제1 모양적응 블록 분할부(40)에서 출력되는 최적의 X축 및 Y축 그리드 시작점에 따라 매크로 블록을 재형성하고, 대상물의 모양정보를 부호화한다.The shape coding unit 37 reforms the macroblock according to the optimal X-axis and Y-axis grid starting points output from the first shape adaptive block dividing unit 40, and encodes the shape information of the object.

그리고 모양 부호화부(37)와 움직임 추정부(31), 움직임 보상부(32) 및 대상물 내부 부호화부(34)의 사이에 제2 모양적응 블록 분할부(41)를 구비한다.And a second shape adaptive block dividing unit 41 between the shape coding unit 37 and the motion estimation unit 31, the motion compensation unit 32 and the object inner coding unit 34.

제2 모양적응 블록 분할부(41)는 상기 모양 부호화부(37)에서 모양정보를 부호화한 매크로 블록의 X축 및 Y축 그리드 시작점을 이동시키면서 다시 정보량 감소 위치를 찾아 출력한다.The second shape adaptive block dividing unit 41 finds and outputs the information amount reduction position while moving the X axis and Y axis grid start points of the macroblocks in which the shape information is encoded by the shape coding unit 37. [

즉, 제2 모양적응 블록 분할부(41)는 대상물의 영상이 존재하는 매크로 블록의 수가 최소로 되는 X축 및 Y축 그리드 시작점을 최적의 X축 및 Y축 그리드 시작점으로 결정한다.That is, the second shape adaptive block dividing unit 41 determines the starting points of the X-axis and Y-axis grids as the optimal X-axis and Y-axis grid starting points, where the number of macro blocks in which the image of the object exists is minimized.

상기 제2 모양적응 블록 분할부(41)가 결정한 최적의 X축 및 Y축 그리드 시작점에 따라 움직임 추정부(31), 움직임 보상부(32) 및 대상물 내부 부호화부(34)가 매크로 블록을 재형성하여 움직임 추정, 움직임 보상 및 대상물 내부 정보를 부호화한다.The motion estimation unit 31, the motion compensation unit 32, and the object inner coding unit 34 determine the macroblocks according to the optimal X-axis and Y-axis grid starting points determined by the second shape adaptive block dividing unit 41 And motion estimation, motion compensation, and intra-object information are encoded.

제6도는 제5도의 제1 및 제2 모양적응 블록 분할부(40)(41)의 실시예를 보인 회로도이다. 부호 51은 어드레스를 발생할 어드레스 시작 위치를 하나의 매크로 블록의 X축 및 Y축 크기 이내에서 일정 간격씩 이동시키는 어드레스 발생 제어기이다.FIG. 6 is a circuit diagram showing an embodiment of the first and second shape adaptive block dividing sections 40 and 41 of FIG. 5. Reference numeral 51 denotes an address generation controller for moving the address start position at which the address is to be generated at regular intervals within the size of the X and Y axes of one macro block.

부호 52는 상기 어드레스 발생 제어기(51)가 출력하는 어드레스 시작 위치에따라 대상물의 영상을 매크로 블록으로 구분하여 순차적으로 출력할 수 있도록 X축 및 Y축 어드레스를 발생하는 어드레스 발생기이다. 부호 53는 입력되는 모양 정보 및/또는 형상 정보를 가지는 대상물 영상을 순차적으로 저장하고 상기어드레스 발생기(52)가 발생하는 어드레스에 따라 매크로 블록으로 구분하여 출력하는 메모리이다.Reference numeral 52 denotes an address generator for generating an X-axis and a Y-axis address so that an image of an object is divided into macroblocks in accordance with an address start position outputted by the address generation controller 51 and output sequentially. Reference numeral 53 denotes a memory for sequentially storing object images having shape information and / or shape information to be inputted and dividing them into macroblocks according to the addresses generated by the address generator 52 and outputting them.

어드레스 발생기(52)는, 제7도에 도시된 바와 같이 입력되는 대상물 영상의 크기 정보에 따라 X축 크기 결정부(521)가 매크로 블록의 X축 크기를 결정하고, Y축 크기 결정부(522)가 매크로 블록의 Y축 크기를 결정한다.The address generator 52 determines the X-axis size of the macro block based on the size information of the input object image as shown in FIG. 7, and the Y-axis size determination unit 522 ) Determines the Y-axis size of the macroblock.

여기서, 매크로 블록의 X축 및 Y축 크기가 동일할 경우에는 하나의 크기 결정부만을 사응하여 매크로 블록의 크기를 결정할 수 있다.Here, when the sizes of the X and Y axes of the macroblock are the same, the size of the macroblock can be determined by using only one size determining unit.

상기 어드레스 발생기(52)에서 매크로 블록 어드레스 발생기(523)는 상기 X축 크기 결정부(521) 및 Y축 크기 결정부(522)가 결정한 매크로 블록의 X축 크기 및 Y축 크기를 판단하고, 상기 어드레스 발생 제어기(51)에서 출력되는 어드레스 시작 위치를 기준으로 하여 상기 메모리(53)에 저장되어 있는 대상물 영상의 매크로 블록에 대한 X축 및 Y축 어드레스를 구분하며, 구분한 매크로 블록의 X축 및 Y축 어드레스를 순차적으로 발생한다.The macroblock address generator 523 in the address generator 52 determines the X axis size and the Y axis size of the macroblock determined by the X axis size determiner 521 and the Y axis size determiner 522, The X axis and the Y axis address of the macroblock of the object image stored in the memory 53 are discriminated on the basis of the address start position outputted from the address generation controller 51, Y-axis addresses are sequentially generated.

상기 매크로 블록 어드레스 발생기(523)가 순차적으로 발생한 X축 및 Y축 어드레스에 따라 상기 메모리(53)는 저장되어 있는 영상을 매크로 블록으로 구분하여 순차적으로 출력한다. 예를 들면, 제8도에 도시된 바와 같이 하나의 매크로 블록의 대상물 영상을 순차적으로 출력한 후 다음 매크로 블록의 대상물 영상을 순차적으로 출력한다.The memory 53 divides the stored image into macroblocks in order according to the X axis and Y axis addresses sequentially generated by the macroblock address generator 523. For example, as shown in FIG. 8, object images of one macroblock are sequentially output, and object images of the next macroblock are sequentially output.

부호 54는 메모리(53)의 출력신호 중에서 대상물의 영상이 존재하는 매크로 블록의 수를 카운트하는 블록 수 카운터이다.Reference numeral 54 denotes a block number counter for counting the number of macroblocks in which the image of the object exists among the output signals of the memory 53. [

상기 블록 수 카운터(54)는 제9도에 도시된 바와 같이 클럭신호를 매크로 블록 카운터(541)카 카운트하여 매크로 블록을 구분한다. 블록 수 카운터(54)의 모양 정보 존재 판단부(542)는 상기 메모리(53)에서 출력되는 대상물 영상의 매크로 블록을 상기 매크로 블록 카운터(541)의 출력신호에 따라 구분하면서 대상물 영상이 존재하는 지의 여부를 판단하고, 상기 모양 정보 존재 판단부(542)의 판단신호를 가산기(543)가 가산하여 대상물의 영상이 존재하는 매크로 블록의수를 출력한다.The block number counter 54 counts the clock signal by the macro block counter 541 as shown in FIG. 9, and distinguishes the macro blocks. The shape information presence determiner 542 of the block number counter 54 divides the macroblock of the object image output from the memory 53 according to the output signal of the macroblock counter 541 to determine whether the object image exists And the adder 543 adds the determination signal of the shape information existence determination unit 542 to output the number of macroblocks in which the image of the object exists.

부호 55는 상기 블록 수 카운터(54)가 카운트한 매크로 블록의 수 중에서 가장 적은 수의 매크로 블록을 카운트한 X축 및 Y축 그리드 시작점 을 정보량 감소 위치로 선택하는 최소 매크로 블록 그리드 선택기이다.Reference numeral 55 denotes a minimum macroblock grid selector for selecting the X axis and Y axis grid start points, which are obtained by counting the smallest number of macroblocks out of the number of macroblocks counted by the block number counter 54, as information amount reduction positions.

상기 최소 매크로 블록 그리드 선택기(55)는 상기 블록 수 카운터(54)의 카운트가 완료될 경우에 카운트 값을 저장하고,,상기 어드레스 발생 제어기(51)를 제어하여 X축 및 Y축 어드레스의 시작 위치를 매크로 블록의 X축 및 Y축 크기이내에서 일정 간격으로 이동시켜 발생하게 제어한다. 즉, 상기 최소 매크로 블록 그리드 선택기(55)는 X축 및 Y축 어드레스 시작위치를 이동시킨 후 대상물의 영상이 존재하는 매크로 블록의 수를 카운트하는 동작이 완료될 경우에 어드레스 발생 제어기(51)를 제어하여 X축 및 Y축 어드레스의 시작 위치를 이동시키게 하는 것을 반복한다.The minimum macroblock grid selector 55 stores the count value when the count of the block number counter 54 is completed and controls the address generation controller 51 to set the starting position of the X and Y axis addresses Is generated within a size of the X and Y axes of the macroblock at regular intervals. That is, the minimum macro-block grid selector 55 moves the X-axis and Y-axis address start positions, and then, when the operation of counting the number of macroblocks in which an image of the object exists is completed, the address generation controller 51 And the starting position of the X-axis and Y-axis addresses is moved.

그리고 X축 및 Y축 어드레스의 시작 위치를 하나의 매크로 블록의 X축 및 Y축 크기 이내에서 이동시키면서 대상물의 영상이 존재하는 매크로 블록의 수를카운트하는 동작이 완료되었을 경우에 상기 최소 매크로 블록 그리드 선택기(55)는 카운트한 매크로 블록의 수 중에서 가장 적은 수의 매크로 블록을 카운트한 X축 및 Y축 어드레스의 시작 위치를 판단하고, 판단한 X축 및 Y축 어드레스 시작 위치를 정보량 감소 위치인 최적의 X축 및 Y축 그리드 시작 위치로 결정하여 출력한다.When the operation of counting the number of macroblocks in which an image of an object exists is completed while moving the starting position of the X and Y axis addresses within the size of the X and Y axes of one macroblock, The selector 55 determines the start positions of the X-axis and Y-axis addresses in which the smallest number of the macroblocks counted from the counted number of the macroblocks is counted, and sets the determined X-axis and Y-axis address start positions to the optimum X axis and Y axis grid start positions and outputs them.

제10도는 본 발명의 부호화 방법을 보인 신호 흐름도이다.FIG. 10 is a signal flow chart showing the encoding method of the present invention.

먼저, 단계(S11)에서는 VOP 형성부(11)에서 형성된 VOP를 정의한다. 예를들면, 제11도에 도시된 "고양이"의 영상에 대하여 VOP를 정의하고, VOP 폭 및 VOP 높이를 결정한다.First, in step S11, a VOP formed in the VOP forming unit 11 is defined. For example, a VOP is defined for the image of "cat" shown in FIG. 11, and the VOP width and VOP height are determined.

다음 단계(S12)에서는 상기 정의된 V0P의 좌측 상단인 그리드 시작점을 기준으로 하여 제11도에 점선으로 도시된 바와 같이 각기 M×N개의 화소를 가지는 매크로 블록으로 구획한다.In the next step S12, macroblocks having M × N pixels are partitioned as shown by the dotted line in FIG. 11 with reference to the grid start point at the upper left of the defined V0P.

매크로 블록이 구획되면 단계(S13)에서 매크로 블록의 그리드 시작점을 이동시키면서 정보량 감소 위치를 결정한다. 예를 들면, 제11도에 실선으로 도시된 바와 같이 대상물 영상이 가장 적은 수의 매크로 블록에 존재하는 최적의 그리드 시작점을 찾아 정보량 감소 위치로 결정한다.If the macroblock is partitioned, the information amount reduction position is determined while moving the grid start point of the macroblock in step S13. For example, as shown by a solid line in FIG. 11, an optimum grid start point in which the object image exists in the smallest number of macro blocks is determined as the information amount reduction position.

상기 단계(S13)에서 정보량 감소 위치가 결정되면, 다음 단계(S14)에서는 상기 정보량 감소 위치에 따라 모양 부호화부(37)에서 모양정보를 부호화한다.If the information amount reduction position is determined in step S13, the shape information is encoded in the shape coding unit 37 according to the information amount reduction position in the next step S14.

다음 단계(S15)에서는 모양 부호화부(37)에서 모양정보를 부호화한 매크로블록에 대하여 상기 단계(S13)에서와 마찬가지로 그리드 시작점을 이동시키면서 대상물 영상이 가장 적은 수의 매크로 블록에 존재하는 정보량 감소 위치를 찾아 출력한다.In the next step S15, as in the step S13, the macroblock coding the shape information in the shape encoding unit 37 moves the grid start point and determines the information amount reduction position And outputs it.

단계(S16)에서는 상기 단계(S15)에서 출력한 정보량 감소 위치를 기준으로하여 매크로 블록의 단위로 움직임 추정부(31)에서 움직임을 추정하고, 움직임보상부(32)에서 움직임 보상하며, 대상물 내부 부호화부(34)에서 서브 블록 단위로 대상물 내부 정좌를 부호화한다.In step S16, the motion estimation unit 31 estimates motion in macroblock units on the basis of the information amount reduction position output in step S15, motion compensation is performed in the motion compensation unit 32, The encoding unit (34) encodes the object inside position in sub-block units.

다음 단계(S17)에서는 상기에서 부호화한 모양정보, 움직임 정보 및 대상물내부 정보를 멀티플렉서(38) 및 버퍼(39)를 통해 출력한다.In the next step S17, the encoded shape information, motion information, and object inside information are output through the multiplexer 38 and the buffer 39. [

제12도는 본 발명의 부호화 방법에 따라 상기 단계(S13)(S15)에서 매크로 블록의 정보량 감소 위치를 찾는 일 실시예를 보인 신호 흐름도이다.FIG. 12 is a signal flow diagram illustrating an embodiment of finding an information amount reduction position of a macroblock in steps S13 and S15 according to the encoding method of the present invention.

먼저 단계(S21)에서 모양 정보 및/또는 형상 정보를 가지는 대상물의 영상이존재하는 매크로 블록의 수가 최소로 되는 정보량 감소 위치인 최적의 X축 및 Y축 그리드 시작점을 찾기 위하여 초기 X축 및 Y축 그리드 시작점 (XM)(YN)을 초기화시킨다.First, in step S21, in order to find an optimal X-axis and Y-axis grid start point, which is an information amount reduction position where the number of macroblocks having an image of an object having shape information and / or shape information is minimized, Initialize the grid start point (XM) (YN).

X축 및 Y축 그리드 시작점(XM)(YN)의 초기값은 XM=O, YN=0으로 주어진다. 다음 단계(S22)에서는 상기 단계(S21)에서 초기화한 X축 및 Y축 그리드 시작점을 기준으로 하여 대상물의 영상이 존재하는 매크로 블록의 수를 카운트한다.The initial values of the X and Y-axis grid starting points (XM) (YN) are given by XM = O, YN = 0. In the next step S22, the number of macroblocks in which an image of the object exists is counted based on the X axis and Y axis grid start points initialized in step S21.

제11도의 도면에서 점선으로 도시된 VOP의 매크로 블록을 예로 들면, X축으로 첫 번째 행부터 "고양이"의 영상이 존재하는 매크로 블록의 수는 각기 3,4,4,4 및 5개로서 "고양이" 의 영상이 모두 20개의 매크로 블록에 존재한다.Taking the macroblock of the VOP shown by the dotted line in the drawing of FIG. 11 as an example, the number of macroblocks in which the image of "cat" exists from the first row in the X- Cat "are present in all 20 macroblocks.

상기 단계(S22)에서 매크로 블록의 수를 카운트하는 동작이 완료되면, 단계(S23)에서 상기 카운트한 매크로 블록의 수를 저장한다.When the operation of counting the number of macroblocks is completed in the step S22, the number of the counted macroblocks is stored in the step S23.

다음 단계(S24)에서는 X축 그리드 시작점(XM)을 최초의 매크로 블록에서 X축으로 일정 간격(K)만큼 이동시켜 매크로 블록을 재구성하고, 단계(S25)에서 X축 그리드 시작점(XM)가 X축으로 M번 이상 이동되었는 지를 판단한다.In the next step S24, the X-axis grid start point XM is moved by a predetermined distance K from the first macro-block to the X-axis to reconstruct the macro block. In step S25, the X- It is judged whether or not it has been moved M times or more.

즉, X축 그리드 시작점(XM)이 하나의 매크로 블록의 X축 크기 이상으로 이동되었는 지를 판단한다.That is, it is determined whether or not the X-axis grid start point XM has moved to the X-axis size or more of one macro block.

상기 단계(S25)에서 X축 그리드 시작점(XM)이 X축으로 M번 이상 이동되지 않았을 경우에 상기의 단계(S22-S25)를 수행하여 X축 그리드 시작점(XM)을 X축으로 일정 간격(K)씩 이동하고, 대상물의 영상이 존재하는 매크로 블록의 수를 카운트하여 저장하는 동작을 반복 수행한다.If the X-axis grid start point XM has not been moved in the X-axis more than M times in step S25, the above-described steps S22-S25 are performed to set the X-axis grid start point XM at a predetermined interval K), and counts and stores the number of macroblocks in which an image of the object exists.

상기 단계(S25)에서 X축 그리드 시작점(XM)이 X축으로 M번 이상 이동되었을 경우에는 단계(S26)에서 가장 적은 수의 매크로 블록을 카운트한 X축 그리드 시작점(XM)을 최적의 X축 그리드 시작점(XOM)으로 결정한다.If the X-axis grid start point XM has been moved M times or more in the X-axis in step S25, the X-axis grid start point XM counting the smallest number of macroblocks in step S26 is set to the optimal X- It is determined as the grid start point (XOM).

단계(S27)에서는 결정한 상기 최적의 X축 그리드 시작점(XOM)과 Y축 그리드시작점(YN=0)으로 매크로 블록을 재구성하고, 대상물의 영상이 존재하는 매크로블록의 수를 카운트한다.In step S27, the macro block is reconstructed to the optimum X-axis grid start point (XOM) and the Y-axis grid start point (YN = 0) determined and the number of macro blocks in which the image of the object exists is counted.

상기 단계(S27)에서 매크로 블록의 수를 카운트하는 동작이 완료되면, 단계(S28)에서는 카운트한 매크로 블록의 수를 저장한다.When the operation of counting the number of macroblocks is completed in step S27, the number of counted macroblocks is stored in step S28.

다음 단계(S29)에서는 Y축 그리드 시작점(YN)을 Y축으로 일정 간격(L)만큼이동시키고, 단계(S30)에서 Y측 그리드 시작점(YN)이 Y축으로 N번 이상 이동되었는 지를 판단한다.In the next step S29, the Y-axis grid start point YN is shifted by a predetermined distance L along the Y-axis and whether or not the Y-side grid start point YN is shifted N times or more is determined in step S30 .

즉, Y축 그리드 시작점(YN)이 하나의 매크로 블록의 Y축 크기 이상으로 이동되었는 지를 판단한다.That is, it is determined whether the Y-axis grid start point YN has moved to a size larger than the Y-axis size of one macroblock.

상기 단계(S30)에서 Y축 그리드 시작점(YN)이 Y축으로 일정 간격(L)씩 N번이상 이동되지 않았을 경우에 상기 단계(S27~S30)를 반복 수행하여, 최적의 X축 그리드 시작점(X0M)을 기준으로 Y축 그리드 시작점(YN)을 일정 간격(L)씩 이동시키고, 대상물의 영상이 존재하는 매크로 블록의 수를 카운트하여 저장하는 것을 반복한다.If it is determined in step S30 that the Y-axis grid start point YN has not been moved N times or more at regular intervals L on the Y-axis, the above steps S27 to S30 are repeated to determine the optimal X- Axis grid start point YN is moved by a predetermined interval L based on X0M, and the number of macroblocks in which an image of the object exists is counted and stored.

상기 단계(S30)에서 Y축 그리드 시작점(YN)이 일정 간격(L)씩 N번 이상 이동되면, 단계(S31)에서 가장 적은 수의 매크로 블록을 카운트한 Y축 그리드 시작점(XM)을 최적의 Y축 그리드 시작점(YON)으로 결정하고, 상기 단계(S26)(S31)에서 결정한 최적의 X축 그리드 시작점(XOM) 및 Y축 그리드 시작점(YON)을 정보량감소 위치로 출력한다.If the Y-axis grid start point YN is shifted N times or more by a predetermined interval L in step S30, the Y-axis grid start point XM that counts the smallest number of macro blocks in step S31 is the optimal Y axis grid start point YON and outputs the optimal X axis grid start point XOM and Y axis grid start point YON determined in steps S26 and S31 to the information amount decrease position.

즉, 제12도에 도시된 본 발명의 일 실시에에서는 전체 그리드를 X축으로 일정 간격(K)씩 M번 이동시키면서 대상물의 영상이 존재하는 가장 적은 수의 매크로 블록을 카운트한 X축 그리드 시작점(XM)을 최적의 X축 그리드 시작점(XOM)으로 결정한다. 상기 결정한 최적의 X축 그리드 시작점(XOM)을 기준으로 하여 전체 그리드를 Y측으로 일정 간격(L)씩 N번 이동시키면서 대상물의 영상이 존재하는 가장 적은 수의 매크로 블록을 카운트한 Y축 그리드 시작점(YN)을 최적의 Y축 그리드 시작점(YON)으로 결정하고, 결정한 상기 최적의 X축 그리드 시작점(XOM) 및 최적의 Y축 그리드 시작점(YON)을 정보량 감소 위치로 출력한다.That is, in one embodiment of the present invention shown in FIG. 12, the entire grid is moved M times by a predetermined interval (K) on the X axis, and the X axis grid start point (XM) as the optimal X-axis grid start point (XOM). Axis grid start point (Y-axis) that counts the smallest number of macroblocks in which the image of the object exists, while moving the entire grid to the Y-axis N times at regular intervals (L) with reference to the determined optimal X- YN) as the optimal Y-axis grid start point (YON), and outputs the determined optimum X-axis grid start point (XOM) and optimal Y-axis grid start point (YON) to the information amount decrease position.

그러므로 본 발명의 일 실시예는 그리드 시작점을 X축으로 M번 이동시키고, Y축으로 N번 이동시키는 것으로서 전체적으로 그리드 시작점(XM,YN)을 M + N번 이동시키면서 최적의 X축 및 Y축 그리드 시작점(XOM,YON)을 찾아 출력한다.Therefore, an embodiment of the present invention moves the grid starting point M times on the X axis and N times on the Y axis, thereby moving the grid starting point XM, YN as a whole M + N times, Find and print the starting point (XOM, YON).

제13도는 본 발명의 부호화 방법에 따라 정보량 감소 위치를 찾는 다른 실시예를 보인 신호 흐름도이다.FIG. 13 is a signal flow diagram illustrating another embodiment for finding an information amount reduction position according to the encoding method of the present invention.

단계(S41)에서 V0P를 형성한 대상물의 영상이 존재하는 매크로 블록의 수가 최소로 되는 최적의 X축 및 Y축 그리드 시작점(XOM,YON)을 찾기 위하여 X축 및 Y축 그리드 시작점(XM)(YN)을 XM=O, YN=0으로 초기화한다.The X axis and Y axis grid start points XM (X) and Y (Y) are searched to find the optimal X and Y axis grid start points (XOM, YON) in which the number of macroblocks in which the image of the object on which V0P is formed is minimized, YN) is initialized to XM = O, YN = 0.

단계(S42)에서는 상기 단계(S41)에서 초기화한 X축 및 Y축 그리드 시작점(XN=0) (YN=0)을 기준으로 하여 대상물의 영상이 존재하는 매크로 블록의 수를 카운트하고, 단계(S43)에서는 상기 카운트한 매크로 블록의 수를 저장한다.In step S42, the number of macroblocks in which the image of the object exists is counted based on the X-axis and Y-axis grid starting points (XN = 0) (YN = 0) initialized in step S41, S43), the number of the counted macroblocks is stored.

다음 단계(S44)에서는 X축 그리드 시작점(XM)을 X축으로 일정 간격(K)만큼 이동시키고, 단계(S45)에서 X축 그리드 시작점(XM)을 X축으로 M번 이상 이동하여 X축으로 하나의 매크로 블록의 크기 이상으로 이동되었는 지를 판단한다.In the next step S44, the X-axis grid start point XM is shifted by a predetermined distance K on the X-axis. In step S45, the X-axis grid start point XM is moved on the X-axis M times or more, It is judged whether or not it has moved to a size larger than the size of one macroblock.

상기 단계(S45)에서 X축 그리드 시작점(XM)이 X축으로 M번 이상 이동되지 않았을 경우에 상기 단계(S42∼S45)를 수행하여 X축 그리드 시작점(XM)을 X축으로 일정 간격(K)씩 이동하고, 대상물의 영상이 존재하는 매크로 블록의 수를 카운트하여 저장하는 것을 반복한다.If the X-axis grid start point XM has not been moved M times or more in the X-axis in the step S45, the steps S42 to S45 are performed to set the X-axis grid start point XM at the predetermined interval K ), And repeats counting and storing the number of macroblocks in which an image of the object exists.

상기 단계(S45)에서 X축 그리드 시작점(XM)이 X축으로 M번 이상 이동되면, 단계(S46)에서 Y축 그리드 시작점(YN)를 Y축 방향으로 일정 간격(L)만큼 이동시킨다.If the X-axis grid start point XM is moved more than M times in the X-axis in step S45, the Y-axis grid start point YN is moved in the Y-axis direction by a predetermined distance L in step S46.

다음 단계(S47)에서는 Y축 그리드 시작점(YN)이 Y축으로 일정 간격((L)씩 N번이상 이동되었는 지를 판단한다.In the next step S47, it is determined whether the Y-axis grid start point YN has been moved N times or more at a predetermined interval (L) along the Y-axis.

상기 단계(S47)에서 Y축 그리드 시작점(YN)이 Y축으로 N번 이상 이동되지 않았을 경우에 상기 단계(S42∼S47)를 수행하여 Y축 그리드를 Y축으로 일정 간격(L)씩 이동시킨 후 X축 그리드를 X축으로 하나의 매크로 블록의 크기 이내에서 일정 간격(K)씩 이동시키고, 대상물의 영상이 존재하는 매크로 블록의 수를 카운트하여 저장하는 것을 반복한다.If the Y-axis grid start point YN is not moved in the Y-axis N times or more in the step S47, the steps S42 to S47 are performed to move the Y-axis grid in the Y-axis by a predetermined distance L The X-axis grid is moved along the X axis by a predetermined interval (K) within the size of one macroblock, and the number of macroblocks in which the image of the object exists is counted and stored.

상기 단계(S47)에서 Y축 그리드 시작점(YN)이 Y축으로 N번 이상 이동되면,단계(S48)에서 대상물의 영상이 존재하는 가장 적은 수의 매크로 블록을 카운트한 X축 그리드 시작점(XM) 및 Y축 그리드 시작점(YN)을 최적의 X축 그리드 시작점(XOM) 및 Y축 그리드 시작점(YON)으로 결정하고, 결정한 최적의 X축 및 Y축 그리드 시작점(XOM)(YON)을 정보량 감소 위치로 출력한다.If the Y-axis grid start point YN is moved N times or more in the Y-axis in step S47, the X-axis grid start point XM in which the smallest number of macroblocks in which the image of the object exists is counted in step S48. And Y-axis grid starting point (YN) are determined as optimum X-axis grid starting point (XOM) and Y-axis grid starting point (YON), and the determined optimum X- .

즉, 제13도에 도시된 본 발명의 다른 실시예는 전체 그리드 시작점을 X축으로 일정 간격(K)씩 M번 이동시킨 후 Y축으로 일정 간격(L)만큼 이동시키고, 다시 전체 그리드 시작점을 X축으로 일정 간격(K)씩 M번 이동시킨 후 Y축으로 일정 간격(L)만큼 이동시키는 동작을 반복하면서 대상물의 영상이 존재하는 매크로 블록의 수를 카운트하고, 가장 적은 수의 매크로 블록을 카운트한 X축 및 Y축 그리드 시작점(XM)(YN)을 정보량 감소 위치로 출력한다.That is, in another embodiment of the present invention shown in FIG. 13, the entire grid starting point is shifted M times on the X axis by a predetermined interval (K), then moved by a predetermined distance L on the Y axis, The number of macroblocks in which an image of an object exists is repeated while repeating the operation of moving the object by M by a predetermined interval K on the X axis and moving the object by a predetermined distance L along the Y axis, And outputs the counted X-axis and Y-axis grid start points (XM) (YN) to the information amount reduction position.

그러므로 제13도에 도시된 본 발명의 다른 실시예는 X축 및 Y축 그리드 시작점(XM)(YN)을 일정 간격(K)(L)씩 M X N번 이동시키면서 가장 적은 수의 매크로블록을 카운트한 X축 및 Y축 그리드 시작점(XM)(YN)을 출력한다.Therefore, another embodiment of the present invention shown in FIG. 13 counts the smallest number of macroblocks while moving the X-axis and Y-axis grid starting points XM (YN) by a predetermined interval (K) (L) Outputs the X and Y axis grid start points (XM) (YN).

그리고 상기한 제12도 및 제13도의 실시예에서는 그리드 시작점을 X축으로일정 간격(K)씩 이동시킨 후 Y축으로 일점 간격(L)씩 이동시켜 최적의 X축 및 Y축 그리드 시작점(XOM,YON)을 찾는 것을 예로 들어 설명하였다.In the embodiments of FIGS. 12 and 13, the grid starting points are shifted by a predetermined interval (K) in the X-axis and then moved by one-point intervals (L) in the Y-axis to obtain optimum X- and Y- , YON) are described as an example.

그러나 본 발명을 실시함에 있어서는 제12도 및 제13도의 도면에서 괄호 안에 표시한 바와 같이 Y축으로 일정 간격(L)씩 이동시킨 후 X축으로 일정 간격(K)씩 이동시키면서 최적의 X축 및 Y축 그리드 시작점(XOM,YON)을 찾아 출력할 수도 있다.However, in carrying out the present invention, as shown in the parentheses in the drawings of FIGS. 12 and 13, it is preferable to move the X-axis and the Y-axis at regular intervals (L) You can also find and print the Y axis grid start point (XOM, YON).

제14도는 본 발명의 부호화 방법에 따라 정보량 감소 위치를 찾는 또 다른 실시예를 보인 신호 흐름도이다.FIG. 14 is a signal flow diagram illustrating yet another embodiment for finding an information amount reduction position according to the encoding method of the present invention.

단계(S51)에서 대상물의 영상이 위치하는 매크로 블록의 수가 최소로 되는 최적의 X축 및 Y축 그리드 시작점(XOM,YON)을 찾기 위하여 X축 및 Y축 그리드 시작점(XM,YN)을 모두 'O'으로 초기화한다.The X and Y axis grid start points XM and YN are all set to '0' in order to find the optimal X and Y axis grid start points XOM and YON in which the number of macro blocks in which the image of the object is located is minimized in step S51. O '.

다음 단계(S52)에서는 초기화한 상기 X축 및 Y축 그리드 시작점(XM,YN)에서 대상물의 영상이 존재되는 매크로 블록의 수를 카운트하고, 단계(S53)에서 상기 카운트한 매크로 블록의 수를 저장한다.In the next step S52, the number of macroblocks in which the image of the object exists is counted at the X-axis and Y-axis grid starting points XM and YN that have been initialized. In step S53, do.

다음 단계(S54)에서는 X축 그리드 시작점(XM)이 X축으로 M번 이동되고, Y축 그리드 시작점(YN)이 Y측으로 N번 이동되었는 지를 판단한다.In the next step S54, it is determined whether the X-axis grid start point XM is shifted M times on the X axis and the Y-axis grid start point YN is shifted N times on the Y side.

상기 단계(S54)에서 X축 그리드 시작점(X14)이 X측으로 M번 이상 이동되지 않았거나 또는 Y축 그리드 시작점(YN)이 Y측으로 N번 이상 이동되지 않았을 경우에 단계(S55)에서 X축 및 Y축 그리드 시작점(XM)(YN)을 하나의 매크로 블록의크기 이내에서 지그재그 방향으로 일정 간격(K)(L)씩 이동하고, 단계(S52∼S55)를 수행하여 대상물의 영상이 존재하는 매크로 블록의 수를 카운트하고, 저장하며, X축 및 Y축 그리드 시작점(XM)(YN)을 지그재그 방향으로 이동하는 것을 반복한다.If it is determined in step S54 that the X-axis grid start point X14 has not been moved to the X-axis M times or more, or if the Y-axis grid start point YN has not been moved to the Y-axis N times or more, The Y-axis grid starting point XM (YN) is moved in a zigzag direction within a size of one macroblock by a predetermined interval (K) (L), and steps S52 to S55 are performed, The number of blocks is counted and stored, and the X-axis and Y-axis grid start points (XM) (YN) are repeatedly shifted in the zigzag direction.

여기서, X축 및 Y축 그리드 시작점(XM)(YN)을 지그재그 방향으로 일정 간격(K)(L)씩 이동하는 방법은 2가지가 있다. 예를 들면, 제15도의 (가)에 도시된화살표의 방향에 따라 이동하거나 또는 제15도의 (나)에 도시된 화살표의 방향에 따라 이동할 수 있다.Here, there are two methods of moving the X-axis and Y-axis grid starting points XM and YN in the zigzag direction by a predetermined distance K (L). For example, it can move along the direction of the arrow shown in FIG. 15 (A) or along the direction of the arrow shown in FIG. 15 (B).

상기 단계(S54)에서 X축 그리드 시작점(XM)이 X축으로 M번 이동되고, Y축 그리드 시작점(YN)이 Y축으로 N번 이동되면, 단계(S56)에서 가장 적은 수의 매크로 블록을 카운트한 X축 그리드 시작점(XM) 및 Y축 그리드 시작점(YN)을 최적의 X축 그리드 시작점(XOM) 및 Y축 그리드 시작점(YON)으로 결정하고, 결정한 상기 최적의 X축 그리드 시작점(XOM) 및 Y축 그리드 시작점(YON)을 정보량 감소 위치로 출력한다.If the X-axis grid start point XM is shifted M times on the X axis and the Y-axis grid start point YN is shifted N times on the Y axis in step S54, the smallest number of macro blocks is calculated in step S56 (XOM) and the Y-axis grid start point (YN) as the optimal X-axis grid start point (XOM) and Y-axis grid start point (YON) And Y-axis grid start point (YON) to the information amount reduction position.

즉, 제14도에 도시된 본 발명의 또 다른 실시예는 그리드 시작점을 하나의 매크로 블록의 X축 및 Y축 크기 이내에서 지그재그로 이동시키면서 대상물의 영상이 존재하는 매크로 블록의 수를 카운트한다.That is, another embodiment of the present invention shown in FIG. 14 counts the number of macroblocks in which an image of an object exists while moving the grid starting point zigzag within the size of the X axis and the Y axis of one macro block.

그러므로 제14도에 도시된 본 발명의 또 다른 실시예는 X축 및 Y축 그리드시작점(XM)(YN)을 일정 간격(K)(L)씩 전체적으로 M X N번 이동시키면서 가장적은 수의 매크로 블록을 카운트한 최적의 X축 및 Y축 그리드 시작점(XM)(YN)을 출력한다.Therefore, another embodiment of the present invention shown in FIG. 14 moves the X-axis and Y-axis grid starting points XM (YN) by a predetermined interval K (L) And outputs the counted X-axis and Y-axis grid start points (XM) (YN).

상기한 제12도 내지 제14도의 실시예에 따라 결정된 최적의 그리드 시작점(XM)(YN)에 따라 매크로 블록을 재형성한 예가 제11도에 실선으로 도시되어 있다.An example of reforming the macroblock according to the optimal grid starting point XM (YN) determined according to the embodiment of the above-mentioned FIG. 12 to FIG. 14 is shown by a solid line in FIG.

여기서, VOP를 형성한 대상물의 영상 위치에 따라 최적의 X축 및 Y축 그리드 시작점(XOM)(YON)을 이동시켜 매크로 블록을 재형성한 결과 "고양이" 의 영상이존재하는 매크로 블록의 수는 X축으로 첫 번째 행부터 각기 2,3,4,3 및 5개로서 20개의 매크로 블록에서 17개로 줄어들었음을 알 수 있다.Here, the number of macroblocks in which an image of "cat" exists as a result of reconstructing a macroblock by moving the optimal X-axis and Y-axis grid starting points (XON) It can be seen that from the first row on the X axis, 2,3, 4, 3, and 5 are reduced to 17 in 20 macroblocks.

제16도는 본 발명의 부호화 방법에 따라서 매크로 블록의 정보량 감소 위치를 찾는 또 다른 실시예를 보인 신호 흐름도이다.FIG. 16 is a signal flow diagram showing another embodiment for finding the position of a reduced amount of information of a macroblock according to the coding method of the present invention.

단계(S61)에서 대상물의 영상이 존재하는 매크로 블록의 수가 최소로 되는정보량 감소 위치를 찾기 위하여 먼저 X축 및 Y축 그리드 시작점(XN,YN)을 'O'으로 초기화한다.In step S61, the X-axis and Y-axis grid start points (XN, YN) are initialized to "0" to find the information amount reduction position where the number of macroblocks in which the image of the object exists is minimized.

단계(S62)에서는, 상기 단계(S61)에서 초기화한 X축 및 Y축 그리드 시작점(XM=O,YN=0)에서 대상물의 영상이 존재하는 매크로 블록의 수를 모두 카운트하고, 다음 단계(S63)에서는 상기 단계(S62)에서 카운트한 매크로 블록의 수를 저장한다.In step S62, the number of macroblocks in which the image of the object exists in the X axis and Y axis grid starting points (XM = 0, YN = 0) initialized in step S61 are all counted, ) Stores the number of macroblocks counted in the step S62.

다음 단계(S64)에서는 Y축 그리드 시작점(YN)을 Y축으로 일정 간격(L)만큼 이동시키고, 단계(S65)에서 Y축 그리드 시작점(YN)을 Y축으로 N번 이상 이동시켰는 지를 판단한다.In the next step S64, the Y-axis grid starting point YN is shifted by a predetermined distance L on the Y-axis and whether or not the Y-axis grid starting point YN is shifted N times or more in the Y-axis in step S65 is determined .

Y축 그리드 시작점(YN)이 Y축으로 N번 이상 이동되지 않았을 경우에 상기 단계(S62∼S65)를 수행하여 Y축 그리드 시작점(YN)을 Y축으로 일정 간격(L)씩 이동하고, 대상물의 영상이 존재하는 매크로 블록의 수를 카운트하여 저장하는 것을 반복한다.If the Y-axis grid start point YN is not moved on the Y-axis N times or more, the Y-axis grid starting point YN is shifted by a predetermined distance L on the Y-axis by performing the steps S62 to S65, Is counted and stored.

상기 단계(S65)에서 Y축 그리드 시작점(YN)이 Y축으로 일정 간격(L)씩 N번이상 이동되면, 다음 단계(S66)에서 가장 적은 수의 매크로 블록을 카운트한 Y축 그리드 시작점(YN)을 최적의 Y축 그리드 시작점(YON)으로 결정한다.If the Y-axis grid start point YN is moved N times or more in the Y-axis at a predetermined interval L in step S65, the Y-axis grid start point YN ) As an optimal Y-axis grid start point (YON).

상기 단계(S66)에서 가장 적은 수의 매크로 블록을 카운트한 최적의 Y축 그리드 시작점(YON)이 결정되면, 단계(S67)에서는 결정한 상기 최적의 Y축 그리드시작점(YON)을 기준으로 하여 그리드를 재구성하고, 단계(S68)에서 대상물의 영상이 존재하는 현재 X축 행의 매크로 블록을 카운트한다.If the optimal Y-axis grid start point YON counting the smallest number of macroblocks is determined in step S66, the grid is calculated based on the optimal Y-axis grid start point YON determined in step S67 And the macro block in the current X-axis row in which the image of the object exists is counted in step S68.

즉, 제18도의 (가)에 도시된 바와 같이 X축으로 첫 번째 행인 X(1)행의 매크로 블록중에서 대상물의 영상이 존재하는 매크로 블록을 카운트한다.That is, as shown in (A) of FIG. 18, a macroblock in which an image of an object exists is counted from among the macroblocks of row X (1) which is the first row in the X axis.

다음 단계(S69)에서는 카운트한 매크로 블록의 수를 저장한다.In the next step S69, the number of the counted macroblocks is stored.

다음 단계(S70)애서 X(1)행의 그리드 시작점(XM)을 X축으로 일정 간격(K)만큼 이동시키고, 단계(S71)에서 상기 X(1)행의 그리드 시작점(XM)을 X측으로 일정 간격(K)씩 M번 이상 이동하였는 지를 판단한다.The grid start point XM of the X (1) row is shifted by a predetermined distance K on the X axis in the next step (S70) and the grid start point XM of the X (1) row is shifted to the X side It is determined whether it has moved M times or more by a predetermined interval (K).

상기 단기(S71)에서 X(1)행의 X축 그리드 시작점(XM)를 X측으로 M번 이상 이동하지 않았을 경우에 상기 단계(S68∼S71)를 수행하여 X(1)행의 X축 그리드 시작점(XM)을 X축으로 일정 간격(K)씩 이동하고, X(1)행의 매크로 블록 중에서 대상물의 영상이 존재하는 매크로 블록을 카운트하여 저장하는 것을 반복한다.If the X-axis grid start point XM of the X (1) row has not been moved to the X side M times or more in the short term (S71), the above steps (S68 to S71) (XM) is moved in the X axis by a predetermined interval (K), and macroblocks in which the image of the object exists in the X (1) row are counted and stored.

상기 단계(S71)에서 X(1)행의 그리드 시작점(XM)이 일정 간격(K)씩 M번 이상 이동되면, 단계(S72)에서 현재까지 카운트한 매크로 블록의 수 중에서 가장 적은 수의 매크로 블록을 카운트한 X(1)행의 그리드 시작점(XM)를 최적의 X(1)행그리드 시작점(X1M)로 결정한다.If the grid start point XM of the row X (1) is shifted more than M times by a predetermined interval (K) in the step S71, the smallest number of the macroblocks counted to the present in the step S72 The grid start point XM of the X (1) row counted from the start X (1) is determined as the optimum X (1) row grid start point X1M.

다음 단계(S73)에서는 X축으로 마지막 행인지를 판단하고, X축으로 마지막행이 아닐 경우에 단계(S74)에서 X축의 다음 행으로 이동하고, 상기 단계(S58∼S74)를 수행한다.In the next step S73, it is determined whether it is the last row on the X axis. If it is not the last row on the X axis, the process moves to the next row on the X axis in step S74 and performs the above steps S58 to S74.

이러한 동작을 반복 수행하여 X축의 행을 X(1), X(2), X(3), X(4) 및 X(5)행으로 순차적으로 이동하고, 대상물의 영상이 존재하는 가장 적은 수의 매크로블록을 카운트한 X(1), X(2), X(3), X(4) 및 X(5)행의 그리드 시작점(XM)을 최적의 X(1), x(2), X(3), X(4) 및 X(5)행 그리드 시작점(X1M,x2M,,‥ )으로 결정한다.This operation is repeated to sequentially move the X-axis rows to X (1), X (2), X (3), X (4) and X (5) X (1), X (2), X (3), X (4) and X (5) X (3), X (4) and X (5) are determined as the starting points (X1M, x2M, ...) of the row grid.

상기 단계(S74)에서 X축으로 마지막 행일 경우에 다음 단계(S75)에서 상기최적의 Y축 그리드 시작점(YON)과 X(1), X(2), X(3), X(4) 및 X(5)행의 최적의그리드 시작점(X1M,X2M,…)을 정보량 감소 위치로 출력한다.If it is the last row in the X axis in the step S74, the optimal Y axis grid starting point YON and X (1), X (2), X (3), X (4) and (X1M, X2M, ...) of the X (5) rows to the information amount reduction position.

제17도는 본 발명의 부호화 방법에 따라서 매크로 블록의 정보량 감소 위치를 찾는 또 다른 실시예를 보인 신호 흐름도이다.FIG. 17 is a signal flow diagram illustrating another embodiment for finding a position of a reduced amount of information of a macroblock according to the encoding method of the present invention.

단계(S81)에서 대상물의 영상이 존재하는 매크로 블록의 수가 최소로 되는 정보량 감소 위치를 찾기 위하여 X축 및 Y축 그리드 시작점(XM,YN)을 'O'으로 초기화한다.In step S81, the X and Y axis grid start points XM and YN are initialized to '0' in order to find an information amount decrease position where the number of macroblocks in which an image of an object exists is minimized.

다음 단계(S82)에서는 현재 X축 행의 매크로 블록중에서 대상물의 영상이 존재하는 매크로 블록을 카운트한다. 즉, X(1)행의 매크로 블록중에서 대상물의 영상이 존재하는 매크로 블록을 검출하여 카운트한다.In the next step S82, a macroblock in which the image of the object exists is counted from among the macroblocks of the current X-axis row. That is, a macroblock in which an image of an object exists is detected and counted among the macroblocks in the row X (1).

상기 단계(S82)에서 매크로 블록의 카운트가 완료되면, 단계(S83)에서 카운트한 매크로 블록의 수를 저장한다.When the counting of the macroblock is completed in the step S82, the number of the macroblocks counted in the step S83 is stored.

다음 단계(S84)에서는 X(1)행의 그리드 시작점(XM)을 X축으로 일정 간격(K)만큼 이동시키고, 단계(S85)에서 X(1)행의 그리드 시작점(XM)을 일정 간격(K)씩M번 이상 이동하였는 지를 판단한다.In the next step S84, the grid start point XM of the X (1) row is shifted by a predetermined distance K on the X axis and the grid start point XM of the X (1) K) by M times or more.

상기 단계(S85)에서 X(1)행의 그리드 시작점(XM)을 일정 간격(K)씩 M번 이상이동하지 않았을 경우에 상기 단계(S82∼S85)를 수행하여 X(1)행의 X축 그리드시작점(XM)을 일정 간격(K)씩 이동하고, 대상물의 영상이 존재하는 매크로 블록의 수를 카운트하여 저장하는 것을 반복한다.If the grid start point XM of the X (1) row has not been moved M times or more at regular intervals (K) in the step S85, the above steps (S82-S85) The grid start point XM is moved by a predetermined interval K, and the number of macroblocks in which an image of an object exists is counted and stored.

상기 단계(S85)에서 X(1)행의 X축 그리드 시작점(XM)이 X축으로 일정 간격(K)씩 M번 이상 이동되면, 단계(S86)에서 현재까지 카운트한 X(1)행의 매크로블록 중에서 가장 적은 수의 매크로 블록을 카운트한 X(1)행의 그리드 시작점(XM)을 최적의 X(1)행 그리드 시작점(XM)으로 결정한다.If the X-axis grid start point XM of the row X (1) is shifted by M times or more at regular intervals K in the X-axis in the step S85, the X (1) row counted up to the present in the step S86 The grid start point XM of the X (1) row in which the smallest number of macroblocks is counted among the macroblocks is determined as the optimum X (1) row grid start point XM.

다음 단계(S87)에서는 X축으로 마지막 행인지를 판단하고, X축으로 마지막행이 아닐 경우에 단계(S85)에서 X축의 다음 행 즉 X(2), X(3), X(4) 및 X(5)행으로 순차적으로 이동한 후 상기 단계(S82∼S88)를 수행하여 대상물의 영상이존재하는 가장 적은 수의 매크로 블록을 카운트한 X(2), X(3), X(4) 및 X(5)행의 그리드 시작점(XM)을 최적의 X(2), X(3), X(4) 및 X(5)행 그리드 시작점(X1M,X2N,…)으로 순차적으로 결정하는 것을 반복한다.In the next step S87, it is determined whether or not the last row is the X axis. If it is not the last row in the X axis, the next row of the X axis, namely X (2), X (3), X X (2), X (3), X (4), and X (2) obtained by counting the smallest number of macroblocks in which the image of the object exists are sequentially performed in the step S82- It is repeated to sequentially determine the grid start point XM of the X (5) row to the optimum X (2), X (3), X (4) and X (5) row grid start points (X1M, X2N, do.

상기 단계(S87)에서 X축으로 마지막 행일 경우에는 단계(S89)에서 Y축 그리드 시작점(YN)을 Y축으로 일정 간격(L)씩 N번 이상 이동하였는 지를 판단한다.If it is the last row in the X-axis in the step S87, it is determined in step S89 whether the Y-axis grid start point YN has been moved N times or more at a predetermined interval L in the Y-axis.

상기 단계(S89)에서 Y축 그리드 시작점(YN)이 Y축으로 일정 간격(L)씩 N번이상 이동하지 않았을 경우에 단계(S90)에서 Y축 그리드 시작점(YN)을 Y축으로일정 간격(L)만큼 이동시키고, 단계(S82∼S90)를 반복 수행한다.If the Y-axis grid start point YN has not moved N times in the Y-axis at a predetermined interval L in step S89, the Y-axis grid start point YN is shifted to the Y-axis at a predetermined interval (step S90) L), and repeats the steps S82 to S90.

즉, Y축 그리드 시작점(YN)을 Y축으로 일정 간격(L)만큼 이동시키고, Y축 그리드 시작점(YN)이 이동된 위치에서 X(1), X(2), X(3), X(4) 및 X(5)행 그리드시작점(XM)을 순차적으로 일정 간격(K)씩 이동시키면서 대상물의 영상이 존재하는 매크로 블록의 수를 카운트하며, 가장 적은 수의 매크로 블록을 카운트한X(1), X(2), X(3), X(4) 및 X(5)행 그리드 시작점(XM)을 최적의 X(1), X(2),X(3), X(4) 및 X(5)행 그리드 시작점(X1M,X2M,…)으로 순차적으로 결정한다.That is, the Y-axis grid starting point YN is shifted by a predetermined distance L in the Y-axis and X (1), X (2), X (3), X The number of macroblocks in which an image of an object exists is sequentially counted while moving the X (5) row grid start point X (4) and the X (5) row grid point sequentially at predetermined intervals (K) (1), X (2), X (3), X (4), X (2), X (3), X And X (5) row grid start points (X1M, X2M, ...).

상기 단계(S90)에서 Y축 그리드 시작점(YN)이 일정 간격(L)씩 N번 이상 이동되면, 다음 단계(S91)에서는 Y축 그리드 시작점(YN)을 이동시킨 위치에서 각기 결정된 최적의 X(1), X(2), X(3),X)(4) 및 X(5)행 그리드 시작점(X1N,X2N,…)에서 카운트한 매크로 블록의 수를 모두 합산한다.If the Y axis grid start point YN is shifted N times or more by a predetermined interval L in the step S90, then in the next step S91, the optimum X The total number of macroblocks counted at the row grid start point (X1N, X2N, ...) of X (1), X (2), X (3), X (4) and X (5)

그리그 다음 단계(S92)에서는 합산 결과 가장 적은 수의 매크로 블록을 카운트한 Y축 그리드 시작점(YN)을 판단하고, 판단한 상기 Y축 그리드 시작점(YN)을 최적의 Y축 그리드 시작점(YON)으로 결정한다. 상기 최적의 Y축 그리드 시작점(YON)에서 가장 적은 수의 매크로 블록을 카운트한 상기 X(1), X(2), X(3)도(4) 및 X(5)행 그리드 시작점(X1M,X2M,…)을 최적의 X(1), X(2), X(3), X(4)및 X(5)행 그리드 시작점(X1M,X2M,…)으로 결정하고, 결정한 상기 최적의 Y축그리드 시작점(YON) 및 상기 X(1), X(2), X(3), X(4) 및 X(5)행 그리드 시작점(X1M,X2N,…)을 정보량 감소 위치로 출력한다.In the next step S92, the Y-axis grid start point YN in which the smallest number of macroblocks is counted as a result of summing is determined, and the determined Y-axis grid start point YN is set as an optimal Y-axis grid start point YON . The X (1), X (2), X (3), and X (5) row grid start points X1M, X2M, ...) are determined as optimum X (1), X (2), X (3), X (4) and X (5) row grid start points (X1M, X2M, ...) Axis grid start point YON and X (1), X (2), X (3), X (4) and X (5) row grid start points X1M, X2N,.

상기 제16도 및 제17도의 실시예에서 찾은 최적의 그리드 시작점에 따라 매크로 블록를 재구성한 결과를 살펴보면 제18도의 (가)에 도시된 바와 같다.The result of reconstructing the macroblock according to the optimum grid starting point found in the embodiments of FIGS. 16 and 17 is as shown in FIG. 18 (a).

여기서, 제16도 및 제17도에 도시한 실시예에서는 Y축 그리드 시작점(YN)을이동시킨 후, X축 그리드 시작점(XM)을 이동시켜 정보량 감소 위치를 찾는 것을 예로 들어 설명하였다.In the embodiment shown in FIGS. 16 and 17, the Y-axis grid start point YN is moved and then the X-axis grid start point XM is moved to find the information amount decrease position.

본 발명을 실시함에 있어서는 상기 제16도 및 제17도에서 괄호 안에 기재된바와 같이 X측 그리드 시작점(XM) 및 Y축 그리드 시작점(YN)을 서로 바꾸어 대상물의 영상이 최소의 매크로 블록에 존재하는 정보량 감소 위치를 찾을 수도 있다.In carrying out the present invention, the X-side grid start point XM and the Y-axis grid starting point YN are interchanged as shown in the parentheses in FIGS. 16 and 17, so that the information amount of the image of the object in the smallest macroblock You can also find the reduction position.

상기 X축 그리드 시작점(XM) 및 Y측 그리드 시작점(YN)을 서로 바꾸어 찾은 최적의 그리드 시작점으로 매크로 블록을 재구성한 결과를 살펴보면, 제18도의(나)에 도시된 바와 같다.The result of reconstructing the macro block at the optimum grid starting point found by interchanging the X-axis grid start point XM and the Y-side grid start point YN is as shown in FIG. 18 (B).

상기한 본 발명의 실시예에서 X축 및 Y축 그리드 시작점(XM)(YN)을 이동시키는 일정 간격(K)(L)은 매크로 블록 내에 존재하는 화소의 수를 기준으로 한다.In the embodiment of the present invention, the predetermined interval K (L) for moving the X-axis and Y-axis grid starting points XM and YN is based on the number of pixels existing in the macroblock.

예를 들면, 매크로 블록의 X축 및 Y축 크기 이내에서 X축 및 Y축 그리드 시작점(XM)(YN)을 단위 화소의 간격으로 이동시킬 수 있다.For example, it is possible to move the X-axis and Y-axis grid starting points XM (YN) within the size of the X-axis and Y-axis of the macro block at intervals of unit pixels.

그러나 영상신호에서 색신호에 대한 정보는 휘도 신호에 대한 정보의 1/2 이므로 색신호 및 휘도신호에 대한 정보를 고려할 경우에 X축 및 Y축 그리드 시작점(XM)(YN)의 이동 간격(K)(L)은 2개의 단위 화소 간격으로 하는 것이 바람직하다.However, since the information on the color signal in the video signal is 1/2 of the information on the luminance signal, the movement interval K (X) of the X-axis and Y-axis grid start point XM (YN) L are preferably arranged at intervals of two unit pixels.

또한 상기한 실시예에서는 VOP를 형성한 대상물의 영상이 가장 적은 수의 매크로 블록엔 존재하는 최적의 그리드 시작점이 하나만 존재하는 것을 예로 들어 설명하였으나 최적의 그리드 시작점은 하나 이상 다수 개 발생할 수 있다.Also, in the above-described embodiment, it is explained that there is only one optimum grid start point in which the image of the object on which the VOP is formed exists in the smallest number of macro blocks. However, one or more optimal grid start points may occur.

그러므로 본 발명에서는 최적의 그리드 시작점이 다수 개 발생할 경우에 매크로 블록을 M/2 × N/2의 크기를 가지는 서브 블록으로 세분화하고, 세분화한 서브 블록의 X축 및 Y축 크기 이내에서 그리드 시작점(XM)(YN)을 일정 간격(K)(L)씩 이동시키며, 대상물의 영상이 가장 적은 수의 매크로 블록에 존재하는 정보량 감소 위치를 찾아 출력할 수 있다.Therefore, in the present invention, when a plurality of optimal grid start points occur, the macro block is subdivided into sub-blocks having a size of M / 2 x N / 2, and grid start points XM) YN by a predetermined interval (K) (L) and finds an information amount reduction position where the image of the object exists in the smallest number of macro blocks.

즉, 매크로 블록의 크기가 16×16 화소로 이루어진다고 가정할 경우에 8×8화소를 가지는 서브 블록으로 세분화하고, 8×8 화소로 세분화한 서브 블록의 화소수 이내에서 상기한 실시예와 같이 그리드 시작점(XM)(YN)을 일정 간격(K)(L)씩 이동시켜 대상물의 영상이 존재하는 매크로 블록의 수가 가장 적은 X축및 Y축 그리드 시작점을 찾고, 이를 정보량 감소 위치로 출력한다.That is, when it is assumed that the size of a macroblock is 16 × 16 pixels, the sub-block is divided into sub-blocks having 8 × 8 pixels, and within the number of sub-blocks subdivided into 8 × 8 pixels, The grid start point XM is shifted by a predetermined distance K to find the X and Y axis grid start points having the smallest number of macroblocks of the object image and outputs it to the information amount decrease position.

그리그 매크로 블록을 서브 블록으로 세분화하여도 가장 적은 수의 매크로블록을 카운트하는 정보량 감소 위치는 다수 개 발생할 수 있다.A plurality of information amount reduction positions for counting the least number of macroblocks can be generated even if the granular macro block is subdivided into sub-blocks.

그러므로 본 발명에서는 서브 블록으로 세분화하여도 최적의 X축 및 Y측 그리드 시작점(XOM,YON)이 다수 개 발생할 경우에 어느 하나를 선택해야 된다.Therefore, in the present invention, any one of the X-axis and Y-side grid starting points (XOM, YON) optimal for the X-axis and Y-direction is selected even if subdivided into subblocks.

이 때, 선택하는 하나의 정보량 감소 위치는, 초기 X축 및 Y측 그리드 시작점(XM=O,YN=0)에 근접될수륵 움직임 벡터의 값이 적어 정보량이 줄어들고, 또한 움직임을 추정할 경우에 예측 에러의 발생률이 낮게 되므로 초기 그리드 시작점(XM=O,YN=0)을 기준으로 하여 직선 거리가 가장 가까운 하나의 X축 및 Y축 그리드 시작점을 결정한다.At this time, one information amount reduction position to be selected is a position where the amount of information decreases as the value of the motion vector decreases as the initial X-axis and Y-grid start points (XM = 0, YN = 0) Since the incidence of prediction error is low, one X-axis and Y-axis grid start point closest to the straight line distance is determined based on the initial grid start point (XM = 0, YN = 0).

이상에서와 같이 본 발명은 대상물의 영상이 최소의 매크로 블록에 위치되게 그리드 시작점을 조절하여 모양정보를 부호화하고, 또한 모양정보 부호화 신호가 최소의 매크로 블록에 위치되게 그리드 시작점을 조절한 후 움직임 추정 및 대상물 내부 정보의 부호화를 수행함으로써 부호화 효율이 향상되고, 전송 및 저장할 정보량이 감소된다.As described above, according to the present invention, the shape information is encoded by adjusting the grid start point so that the image of the object is located in the minimum macro block, and the start point of the grid is adjusted so that the shape information encoding signal is located in the smallest macro block, And the object inside information are encoded, the coding efficiency is improved and the amount of information to be transmitted and stored is reduced.

내용 없음No content

제1도는 국제표준 산하기구에서 1차적으로 확정한 VM 엔코더의 구성을 보인 블록도.FIG. 1 is a block diagram showing the configuration of a VM encoder that is primarily determined by an organization under international standards.

제2도는 모양 정보를 가지는 VOP를 종래의 방법에 따라 매크로 블록으로 구획하여 보인 도면.FIG. 2 is a diagram showing a VOP having shape information divided into macroblocks according to a conventional method; FIG.

제3도는 국제표준 산하기구에서 1차적으로 확정한 VM 디코더의 구성을 보인 블록도.FIG. 3 is a block diagram showing the configuration of a VM decoder that is primarily determined by an organization under international standards.

제4도는 국제표준 산하기구에서 1차적으로 확정한 VOP 부호화부의 구성을 보인 블록도.FIG. 4 is a block diagram showing the configuration of a VOP coding unit which is primarily determined by an organization under the international standard.

제5도는 국제표준 산하기구에서 1차적으로 확정한 VOP 부호화부에 본 발명의 부호화 장치에 의한 모양 적응 블록 분할부를 구성한 실시예를 보인 블록도.FIG. 5 is a block diagram showing an embodiment in which a shape adaptive block division unit according to the encoding apparatus of the present invention is constituted in a VOP coding unit which is primarily determined by an international standard organization.

제6도는 제5도의 모양적응 블록 분할부의 실시예를 보인 회로도.FIG. 6 is a circuit diagram showing an embodiment of the shape adaptive block dividing unit of FIG. 5; FIG.

제7도는 제6도의 어드레스 발생기의 실시예를 보인 회로도.7 is a circuit diagram showing an embodiment of the address generator of FIG. 6;

제8도는 제6도의 메모리에 저장된 영상의 매크로 블록을 어드레스 발생기가 출력하는 X축 및 Y축 어드레스에 따라서 구분하여 출력하는 순서를 예로 들어 보인 도면.FIG. 8 illustrates an example of a process of outputting a macro block of an image stored in a memory of FIG. 6 according to an X-axis and a Y-axis address output from an address generator.

제9도는 제6도의 블록 수 카운터의 구성을 보인 회로도.FIG. 9 is a circuit diagram showing the configuration of the block number counter in FIG. 6; FIG.

제10도는 본 발명의 부호화 방법을 보인 신호 흐름도.10 is a signal flow diagram showing a coding method of the present invention;

제11도는 본 발명의 부호화 방법에 따라 VOP의 매크로 블록을 정보량 감소 위치로 이동시킨 상태를 예로 들어 보인 도면.FIG. 11 is a diagram illustrating a state in which a macroblock of a VOP is moved to an information amount reduction position according to the encoding method of the present invention.

제12도는 본 발명의 부호화 방법에 따라 매크로 블록의 정보량 감소 위치를 찾는 일 실시예를 보인 신호 흐름도.FIG. 12 is a signal flow diagram illustrating an embodiment of finding an information amount reduction position of a macroblock according to an encoding method of the present invention.

제13도는 본 발명의 부호화 방법에 따라 매크로 블록의 정보량 감소 위치를 찾는 다른 실시예를 보인 신호 흐름도.FIG. 13 is a signal flow diagram illustrating another embodiment for finding a position of a reduced amount of information of a macroblock according to the encoding method of the present invention. FIG.

제14도는 본 발명의 부호화 방법에 따라 매크로 블록의 정보량 감소 위치를 찾는 또 다른 실시예를 보인 신호 흐름도.FIG. 14 is a signal flow diagram illustrating yet another embodiment for finding a position of a reduced amount of information in a macroblock according to the coding method of the present invention. FIG.

제15도의 (가)(나)는 제14도의 또 다른 실시에에 따라 매크로 블록의 그리드 시작점을 지그재그로 이동시키는 것을 보인 도면.15 (a) and 15 (b) show moving the grid start point of the macroblock zigzag according to another embodiment of FIG. 14;

제16도는 본 발명의 부호화 방법에 따라 매크로 블록의 정보량 감소 위치를 찾는 또 다른 실시예를 보인 신호 흐름도.FIG. 16 is a signal flow diagram illustrating yet another embodiment for finding a position of information reduction in a macroblock according to the encoding method of the present invention. FIG.

제17도는 본 발명의 부호화 방법에 따라 매크로 블록의 정보량 감소 위치를 찾는 또 다른 실시예를 보인 신호 흐름도.FIG. 17 is a signal flow diagram illustrating yet another embodiment for finding a position of a reduced amount of information in a macroblock according to the encoding method of the present invention. FIG.

제18도의 (가)(나)는 제16도 및 제17도의 또 다른 실시예에 따라 매크로 블록을 정보량 감소 위치로 이동시킨 상태를 보인 도면.FIG. 18 (B) shows a state in which a macroblock is moved to an information amount reduction position according to another embodiment of FIG. 16 and FIG. 17; FIG.

* 도면의 주요 부문에 대한 부호의 설명Explanation of reference numerals for the main sections of the drawings

11 : VOP 형성부, 12A,12B,12C, … : VOP 부호화부, 13,38 : 멀티플렉서, 21,38 : 디멀티플렉서, 22A,22B,22C,… : VOP 디코더, 23 : 합성부, 31 : 움직임 추정부, 32 : 움직임 보상부, 33,35 : 가산기, 34 : 대상물 내부 부호화부, 36 : 이전 V0P 검출부, 37 : 모양 부호화부, 39 : 버퍼, 40,41 : 제1 및 제2 모양적응 블록 분할부, 51 : 어드레스 발생 제어기, 52 : 어드레스 발생기, 53 : 메모리, 54 : 블록 수 카운터, 55 : 최소 매크로 블록 그리드 선택기, 521 : X축 크기 결정부, 522 : Y축 크기 결정부, 523 : 블록 어드레스 발생기, 541 : 매크로 블록 카운터, 542 : 판단부, 543 : 가산기11: VOP forming part, 12A, 12B, 12C, ... : VOP encoding unit, 13,38: multiplexer, 21,38: demultiplexer, 22A, 22B, 22C, ... A VOP decoder 23, a synthesizer 31, a motion estimator 32, a motion compensator 33, an adder 34, an object internal encoder 36, a previous VOP detector 37, The present invention relates to a method and apparatus for generating an address of a macroblock in a macroblock and a macroblock size selector for dividing the macroblock into blocks, 522: Y-axis size determination unit, 523: Block address generator, 541: Macro block counter, 542: Judgment unit, 543:

내용 없음No content

내용 없음No content

Claims (24)

대상물의 영상에 따라 형성된 VOP를 M×N의 화소를 가지는 매크로 블록으로 구획하는 구획 단계와, 상기 구획 단계에서 구획된 매크로 블록의 그리드 시작점을 이동시키면서 대상불의 영상의 정보량 감소 위치를 찾는 제1 서치 단계와, 상기 제1 서치 단계에서 찾은 정보량 감소 위치에서 매크로 블록에 존재하는 대상물 영상의 모양정보를 부호화하는 모양 정보 부호화 단계와, 상기 모양 정보 부호화 단계에서 부호화한 매크로 블록의 정보량 감소 위치를 찾는 제2 서치 단계와, 상기 제2 서치 단계에서 찾은 정보량 감소 위치에서 매크로 블록의 단위로 움직임을 추정 및 보상하고 서브 블록 단위로 대상물내부 정보를 부호화하는 움직임 추정/부호화 단계와, 상기 모양 정보 부호화단계에서 부호화한 모양정보와 상기 움직임 추정/부호화 단계에서 추정한 움직임 정보 및 부호화한 대상물 내부 정보를 출력하는 출력단계로 이루어짐을 특징으로 하는 대상물 영상의 부호화 방법.A division step of dividing a VOP formed according to an image of an object into macroblocks having MxN pixels; a first search step of searching for a position of a reduced amount of information of a target object by moving a grid start point of a macroblock partitioned by the division step; A shape information coding step of coding shape information of an object image existing in a macroblock at an information amount reduction position found in the first search step; A motion estimation / encoding step of estimating and compensating motion in units of macroblocks at the information amount reduction position found in the second search step and encoding the object inside information in units of subblocks; Coded shape information and the motion estimation / And outputting the motion information and the coded object inside information. 제1항에 있어서, 제1 및 제2 서치 단계는, 전체 매크로 블록을 X축 및/또는 Y축으로 이동시키는 이동 단계와, 상기 이동 단계에서 전체 매크로 블록을 이동시킨 위치에서 정보량을 판단하는 판단 단계와, 상기 판단 단계에서 정보량이 감소되는 위치를 찾아 출력하는 출력 단계로 이루어짐을 특징으로 하는 대상물 영상의 부호화 방법.2. The method according to claim 1, wherein the first and second search steps comprise: a moving step of moving the entire macroblocks along the X axis and / or the Y axis; And an output step of finding and outputting a position at which the amount of information is reduced in the determining step. 제2항에 있어서, 전체 매크로 블록을 X축으로 이동시키면서 대상물의 영상이 존재하는 매크로 블록의 수를 카운트하는 제1 이동 카운트 단계와, 상기제1 이동 카운트 단계에서 가장 적은 수의 매크로 블록을 카운트한 X축 위치를 설정하는 제1 설정 단계와, 상기 제1 설정 단계에서 설정한 X축 위치로 매크로 블록을 재구성하고 상기 재구성한 전체 매크로 블록을 Y축으로 이동시키면서 대상물의 영상이 존재하는 매크로 블록의 수를 카운트하는 제2 이동 카운트 단계와, 상기 제2 이동 카운트 단계에서 가장 적은 수의 매크로 블록을 카운트한 Y축 위치를 설정하는 제2 설정단계와, 상기 제1 및 제2 설정 단계에서 설정한 X축 및 Y축 위 치를 정보량 감소 위치로 결정하는 결정단계로 이루어짐을 특징으로 하는 대상물 영상의 부호화 방법.3. The method of claim 2, further comprising: a first movement counting step of counting the number of macroblocks in which an image of an object exists while moving the entire macroblocks along the X axis; A first setting step of setting an X-axis position of the macroblock in the X-axis position set in the first setting step, a macro block reconstruction step of setting a macroblock in the X-axis position set in the first setting step, A second setting step of setting a Y-axis position at which the smallest number of macroblocks is counted in the second movement counting step; and a second setting step of setting a Y- And a determination step of determining an X-axis and a Y-axis position as information amount reduction positions. 제2항에 있어서, 전체 매크로 블록을 Y축으로 이동시키면서 대상물의 영상이 존재하는 매크로 블록의 수를 카운트하는 제1 이동 카운트 단계와, 상기제1 이동 카운트 단계에서 가장 적은 수의 매크로 블록을 카운트 한 Y축 위치를 설정하는 제1 설정 단계와, 상기 제1 설정 단계에서 설정한 Y측 위치로매크로 블록을 재구성하고 상기 재구성한 전체 매크로 블록을 X축으로 이동시키면서 대상물의 영상이 존재하는 매크로 블록의 수를 카운트하는 제2 이동 카운트 단계와, 상기 제2 이동 카운트 단계에서 가장 적은 수의 매크로 블록을 카운트한 X축 위치를 설정하는 제2 설정 단계와, 상기 제1 및 제2 설정 단계에서 설정한 Y축 및 X축 위치를 정보량 감소 위치로 결정하는 결정단계로 이루어짐을 특징으로 하는 대상물 영상의 부호화 방법.3. The method according to claim 2, further comprising: a first movement counting step of counting the number of macroblocks in which an image of an object is present while moving the entire macroblocks along the Y axis; A first setting step of setting a Y-axis position of the macroblock in the Y-axis position, a first setting step of setting a Y-axis position in the first setting step, A second moving step of moving the X-axis position where the least number of macroblocks are counted in the second movement counting step; and a second setting step of setting the X- And determining a Y-axis and an X-axis position as information amount reduction positions. 제2항에 있어서, 전체 매크로 블록을 X축으로 이동시키면서 대상물의 영상이 존재하는 매크로 블록의 수를 카운트하는 제1 이동 카운트 단계와, 상기카운트 단계에서 X축 이동이 완료되었을 경우에 전체 매크로 블록을 Y축으로 이동시킨 후 상기 카운트 단계를 반복 수행하는 제2 이동 카운트 단계와, 상기 제1 및 제2 이동 카운트 단계에서 Y축 이동이 완료되었을 경우에 가장 적은 수의 매크로 블록을 카운트한 X축 및 Y축 위치를 정보량 감소 위치로 결정하는 결정 단계로 이루어짐을 특징으로 하는 대상물 영상의 부호화 방법.3. The method according to claim 2, further comprising: a first movement counting step of counting the number of macroblocks in which an image of an object exists while moving the entire macroblocks along the X axis; A second movement counting step of repeating the counting operation after the Y axis movement is completed in the Y axis and the Y axis movement in the first and second movement counting steps; And determining a Y-axis position as an information amount reduction position. 제2항에 있어서, 전체 매크로 블록을 Y축으로 이동시키면서 대상물의 영상이 존재하는 매크로 블록의 수를 카운트하는 제1 이동 카운트 단계와, 상기카운트 단계에서 Y축 이동이 완료되었을 경우에 전체 매크로 블록을 X축으로이동시킨 후 상기 카운트 단계를 반복 수행하는 제2 이동 카운트 단계와, 상기 제1 및 제2 이동 카운트 단계에서 X축 이동이 완료되었을 경우에 가장 적은 수의 매크로 블록을 카운트한 X축 및 Y축 위치를 정보량 감소 위치로 결정하는 결정 단계로 이루어짐을 특징으로 하는 대상물 영상의 부호화 방법.3. The method according to claim 2, further comprising: a first movement counting step of counting the number of macroblocks in which an image of an object exists while moving the entire macroblocks along the Y axis; And a second movement counting step of repeating the counting step after the X axis movement is completed on the X axis and the X axis movement in the first and second movement counting steps, And determining a Y-axis position as an information amount reduction position. 제2항에 있어서, 전체 매크로 블록을 지그재그로 이동시키면서 대상물의 영상이 존재하는 매크로 블록을 카운트하는 이동 카운트 단계와, 상기 카운트단계에서 가장 적은 수의 매크로 블록을 카운트한 위치를 정보량 감소 위치로 결정하는 결정 단계로 이루어짐을 특징으로 하는 대상물 영상의 부호화 방법.3. The method according to claim 2, further comprising: a moving counting step of counting macroblocks in which an image of an object is present while moving the entire macroblocks zigzag; and a step of determining a position at which the smallest number of macroblocks is counted in the counting step, Wherein the determination step comprises the steps of: 제1항에 있어서, 제=1 및 제2 서치 단계는, 전체 매크로 블록을 X축 또는 Y축으로 이동시키는 이동 단계와, 상기 이동 단계에서 매크로 블록을 이동시킨 위치에서 각각의 행 또는 열의 X축 또는 Y축 매크로 블록의 정보량을 판단하는 판단 단계와, 상기 판단 단계에서 정보량 감소 위치를 찾아 출력하는 출력 단계로 이루어짐을 특징으로 하는 대상물 영상의 부호화 방법.The method according to claim 1, wherein the first = 1 and the second search step comprises: a moving step of moving the entire macroblock in the X-axis or the Y-axis; Or Y axis macroblock; and an output step of searching for and outputting an information amount reduction position in the determination step. 제8항에 있어서 전체 매크로 블록을 Y축으로 이동시키면서 대상물의 영상이 존재하는 매크로 블록을 카운트하는 제1 카운트 단계와, 상기 제1 카운트단계에서 가장 적은 수의 매크로 블록을 카운트한 위치를 Y축 위치로 설정하는 제1 설정 단계와, 상기 제1 설정 단계에서 설정한 Y축 위치에서 X축 각각의 행의 매크로 블록을 X축으로 이동시키면서 대상물의 영상이 위치되는 X축 각각의 행의 매크로 블록을 카운트하는 제2 카운트 단계와, 상기 제2 카운트단계에서 가장 적은 수의 매크로 블록을 카운트한 위치를 X축 각각의 행의 위치로 설정하는 제2 설정 단계와, 상기 제1 설정 단계 및 제2 설정 단계에서 설정한 Y축 위치 및 X축 각각의 행의 위치를 정보량 감소 위치로 결정하는 결정 단계로 이루어짐을 특징으로 하는 대상물 영상의 부호화 방법.9. The method of claim 8, further comprising: a first counting step of counting macroblocks in which an image of an object exists while moving the entire macroblocks along the Y axis; And a second setting step of moving a macroblock of each row of the X axis along the X axis at the Y axis position set in the first setting step, A second setting step of setting a position where the smallest number of macroblocks is counted in the second counting step to a position of a row of each of the X axes; And determining a Y-axis position and a row position of each X-axis set in the setting step as an information amount reduction position. 제8항에 있어서 전체 매크로 블록을 X축으로 이동시키면서 대상물의 영상이 존재하는 매크로 블록을 카운트하는 제1 카운트 단계와, 상기 제1 카운트단계에서 가장 적은 수의 매크로 블록을 카운트한 위치를 X축 위치로 설정하는 제1 설정 단계와, 상기 제1 설정 단계에서 설정한 X축 위치에서 Y축 각각의 열의 매크로 블록을 Y축으로 이동시키면서 대상물의 영상이 위치되는 Y축 각각의 열의 매크로 블록을 카운트하는 제2 카운트 단계와, 상기 제2 카운트단계에서 가장 적은 수의 매크로 블록을 카운트한 위치를 Y축 각각의 열의 위치로 설정하는 제2 설정 단계와, 상기 제1 설정 단계 및 제2 설정 단계에서 설정한 X축 위치 및 Y축 각각의 열의 위치를 정보량 감소 위치로 결정하는 결정 단계로 이루어짐을 특징으로 하는 대상물 영상이 부호화 방법.9. The method according to claim 8, further comprising: a first counting step of counting macroblocks in which an image of an object exists while moving the entire macroblocks along the X axis; And a macro block of each column of the Y axis on which an image of the object is positioned while moving a macroblock of each column of the Y axis on the Y axis at the X axis position set in the first setting step, A second counting step of setting a position where the least number of macroblocks are counted in the second counting step to a position of each column of the Y axis; And determining a position of each of the set X-axis position and Y-axis position as an information amount reduction position. 제8항에 있어서, X축 각각의 행의 매크로 블록을 X축으로 이동시키면서 대상물의 영상이 존재하는 매크로 블록의 수를 각기 카운트하고 가장 적은 수의 매크로 블록을 카운트한 위치를 X축 각각의 행의 위치로 결정하는 X축 위치 결정 단계와, 상기 X축 위치 결정 단계에서 카운트가 완료될 경우에 전체매크로 블록을 Y축으로 이동시키고 상기 X축 위치 결정 단계를 반복하는 이동 단계와, 상기 이동 단계에서 Y축 이동이 완료되었을 경우에 상기 X축 위치 결정 단계에서 결정한 X축 각각의 행의 위치에서의 카운트 값을 합산하고 합산한 값이 가장 적은 Y축 위치를 결정하는 Y축 위치 결정 단계와, 상기 Y축 위치 결정 단계에서 결정한 Y측 위치 및 그 결정한 Y축 위치에서 가장 적은 매크로 블록을 카운트한 X축 각각의 행의 위치를 정보량 감소 위치로 결정하는 결정 단계로 이루어짐을 특징으로 하는 대상물 영상의 부호화 방법.9. The method according to claim 8, wherein the number of macroblocks in which an image of the object exists is counted while moving the macroblocks in each row on the X axis along the X axis, and the positions where the smallest number of macroblocks are counted are designated as rows Axis positioning step of moving all the macroblocks on the Y axis and repeating the X axis positioning step when the counting is completed in the X axis positioning step; A Y-axis positioning step of determining a Y-axis position where a value obtained by summing and summing the count values at the positions of the respective rows of the X-axis determined in the X-axis positioning step when the Y- The Y-axis position determined in the Y-axis positioning step and the position of each row of the X-axis obtained by counting the smallest macroblock in the determined Y-axis position are determined as the information amount reduction positions Wherein the determination step comprises the steps of: 제8항에 있어서, Y축 각각의 열의 매크로 블록을 Y축으로 이동시키면서 대상물의 영상이 존재하는 매크로 블록의 수를 각기 카운트하고 가장 적은 수의 매크로 블록을 카운트한 위치를 Y축 각각의 열의 위치로 설정하는 Y축 위치 설정 단계와, 상기 Y축 위치 설정 단계에서 카운트가 완료될 경우에 전체매크로 블록을 X축으로 이동시키고 상기 Y축 위치 결정 단계를 반복하는 이동 단계와, 상기 이동 단계에서 X축 이동이 완료되었을 경우에 상기 Y축 위치 설정 단계에서 설정한 Y축 각각의 열의 위치에서의 카운트 값을 합산하고 합산한 값이 가장 적은 X축 위치를 설정하는 X축 위치 설정 단계와, 상기 X축 위치 설정 단계에서 설정한 X축 위치 및 그 설정한 X측 위치에서 가장 적은 매크로 블록을 카운트한 Y축 각각의 얼의 위치를 정보량 감소 위치로 결정하는 결정 단계로 이루어짐을 특징으로 하는 대상물 영상의 부호화 방법.The method according to claim 8, wherein the number of macroblocks in which the image of the object exists is counted while moving the macroblocks in each column of the Y axis along the Y axis, and the position where the least number of macroblocks are counted is determined as the position of each column of the Y axis A step of moving the entire macroblock in the X axis and repeating the Y axis positioning step when the counting is completed in the Y axis position setting step; An X-axis position setting step of setting an X-axis position in which a sum obtained by summing and summing the count values at the positions of the respective Y-axis columns set in the Y-axis position setting step when the axis movement is completed, The X axis position set in the axis position setting step and the position of each of the Y axes where the smallest macroblock is counted in the set X side position is determined as the information amount reduction position Wherein the determination step comprises the steps of: 제1항 내지 제12항중 어느 하나의 항에 있어서, 정보량 감소 위치는 정보량이 최소인 위치인 것을 특징으로 하는 대상물 영상의 부호화 방법.The method of any one of claims 1 to 12, wherein the information amount reduction position is a position where the amount of information is minimum. 제1항 내지 제12항중 어느 하나의 항에 있어서, 정보량 감소 위치는 대상물의 영상이 존재하는 매크로 블록의 수가 최소로 듸는 위치인 깃을 특징으로 하는 대상물 영상의 부호화 방법.The method of any one of claims 1 to 12, wherein the information amount reduction position is a position where a number of macroblocks in which an image of an object exists is a minimum position. 제1항 내지 제12항중 어느 하나의 항에 있어서, 매크로 블록의 이동 범위는 하나의 매크로 블록의 X축 및 Y축 크기 이내인 것을 특징으로 하는 대상물 영상의 부호화 방법.The method of any one of claims 1 to 12, wherein the moving range of the macroblock is within the X-axis and Y-axis sizes of one macroblock. 제1항 내지 제12항중 어느 하나의 항에 있어서, 매크로 블록의 이동 범위는 하나의 매크로 블록의 X축 및 Y축 크기 이내이고, 단위 화소 간격으로 이동하는 것을 특징으로 하는 대상물 영상의 부호화 방법.The method according to any one of claims 1 to 12, wherein the moving range of the macroblock is within the size of the X and Y axes of one macroblock, and moves to a unit pixel interval. 제1항 내지 제12항중 어느 하나의 항에 있어서, 매크로 블록의 이동 범위는 하나의 매크로 블록의 X축 및 Y축 크기 이내이고,2개의 단위 화소 간격으로 이동하는 것을 특징으로 하는 대상물 영상의 부호화 방법.The method according to any one of claims 1 to 12, wherein the moving range of the macroblock is within the size of the X axis and the Y axis of one macroblock, and moves at intervals of two unit pixels Way. 제3항 내지 제7항 및 제9항 내지 제12항중 어느 하나의 항에 있어서, 가장 적은 수의 매크로 블록을 카운트한 X축 및 Y축 위치가 복수개 존재할 경우에 매크로 블록의 X축 및 Y축 크기를 각기 1/2로 구획한 후 대상물의 영상이 존재하는 매크로 블록의 수를 카운트하고 가장 적은 수의 매크로 블록을 카운트한 위치를 정보량 감소 위치로 결정하는 것을 특징으로 하는 대상물 영상의 부호화 방법.The method as claimed in any one of claims 3 to 7 and 9 to 12, wherein when a plurality of X-axis and Y-axis positions counting the smallest number of macroblocks exist, Wherein the number of macroblocks in which an image of an object exists is counted and the position where the smallest number of macroblocks is counted is determined as an information amount reduction position. 제18항에 있어서, 매크로 블록의 X축 및 Y축 크기를 각기 1/2로 구획한 후 가장 적은 수의 매크로 블록을 카운트한 위치가 복수개 존재할 경우에 X축 및 Y축 그리드 시작점에서 가장 근접된 위치를 정보량 감소 위치로 결정하는것을 특징으로 하는 대상물 영상의 부호화 방법.The method as claimed in claim 18, wherein, when a plurality of positions where the smallest number of macroblocks are counted after dividing the size of the X-axis and the Y-axis of the macroblock by 1/2, respectively, And the position of the object image is determined as the information amount reduction position. VOP 형성부(11)에서 형성된 대상물 영상에 대한 VOP의 매크로 블록을 이동시켜 정보량 감소 위치를 찾는 제1 모양적응 블록 분할부(40)와, 상기 모양적응 블록 분할부(40)에서 찾은 정보량 감소 위치의 매크로 블록에 존재하는 대상물의 모양정보를 부호화하는 모양 부호화부(37)와, 상기 모양 부호화부(37)에서 모양정보 부호화된 매크로 블록을 이동시켜 정보량 감소 위치를 찾는 제2 모양적응 블록 분할부(41)와, 상기 VOP 형성부(11) 및 제2 모양적응블록 분할부(41)의 출력신호로 대상물의 움직임을 추정하는 움직임 추정부(31)와, 상기 움직임 추정부(31)에서 추정된 움직임 정보 및 제2 모양적응블록 분할부(41)의 출력신호로 대상물의 움직임을 보상하는 움직임 보상부(32)와, 상기 움직임 보상부(32)의 출력신호 및 상기 VOP 형성부(11)의 출력신호의 차이 값을 검출하는 가산기(33)와, 상기 가산기(33)의 출력신호 및 상기 제2 모양적응 블록 분할부(41)의 출력신호에 따라 대상물의 내부정보를 부호화하는 대상물 내부 부호화부(34)와, 상기 움직임 보상부(32) 및 대상물내부 부호화부(34)의 출력신호를 가산하는 가산기(35)와, 상기 가산기(35)의 출력신호의 출력신호로 이전 화면의 V0P를 검출하여 상기 움직임 추정부(31)및 움직임 보상부(32)에서 움직임 추정 및 움직임 보상에 사용하도록 하는 이전 V0P 검출부(36)와, 상기 움직임 추정부(31)에서 추정된 움직임 정보, 대상물 내부 부호화부(34)에서 부호화된 대상물의 내부 정보 및 모양 부호화부(37)에서 부호화된 모양 정보를 출력하는 멀티플렉서(38)로 구성됨을 특징으로 하는 대상물 영상의 부호화 장치.A first shape adaptive block dividing unit 40 for moving a macroblock of a VOP with respect to an object image formed by the VOP forming unit 11 to find an information amount reduction position, A shape coding unit 37 for coding the shape information of an object existing in a macroblock of the first shape adaptive block generating unit 37, (31) for estimating a motion of an object using output signals of the VOP forming unit (11) and the second shape adaptive block dividing unit (41); a motion estimating unit A motion compensator 32 for compensating for the motion of the object based on the motion information and the output signal of the second shape adaptive block dividing unit 41 and a motion compensator 32 for compensating for the output signal of the motion compensator 32 and the VOP forming unit 11. [ The difference value of the output signal of An object internal encoding unit 34 for encoding internal information of an object in accordance with an output signal of the adder 33 and an output signal of the second shape adaptive block dividing unit 41, An adder 35 for adding the output signals of the compensating unit 32 and the object inner coding unit 34 and an adder 35 for detecting the V0P of the previous picture with the output signal of the adder 35, A previous V0P detection unit 36 for use in motion estimation and motion compensation in the motion compensation unit 32 and motion estimation means 36 for estimating motion information estimated by the motion estimation unit 31, And a multiplexer (38) for outputting the internal information of the object image and the shape information encoded by the shape encoding unit (37). 제20항에 있어서 제1 및 제2모양적응 블록 분할부(40)(41)는 어드레스를 발생할 시작 위치를 매크로 블록의 크기 이내에서 일정 간격씩 이동시켜출력하는 어드레스 발생 제어 수단과, 상기 어드레스 발생 제어 수단이 출력하는 어드레스 시작 위치에 따라 대상물의 영상을 매크로 블록으로 구분하여 출력하도륵 어드레스를 발생하는 어드레스 발생 수단과, 입력되는 모양 정보를 가지는 대상물의 영상을 저장하고 상기 어드레스 발생수단이 발생하는 어드레스에 따라 출력하는 메모리 수단과, 상기 메모리 수단에서 출력되는 신호 중에서 대상물의 모양 정보가 존재하는 매크로 블록의 수를 카운트하는 블록 수 카운트 수단과, 상기 블록 수 카운트 수단이 카운트한 매크로 블록의 수중에서 가장 적은 수의 매크로 블록을 카운트한 X축 및 Y축의 그리드시작 위치를 선택하는 최소 매크로 블록 그리드 선택 수단으로 구성됨을 특징으로 하는 대상물 영상의 부호화 장치.The apparatus as claimed in claim 20, wherein the first and second shape adaptive block dividing units (40, 41) include: address generation control means for outputting a start position for generating an address by moving a predetermined distance within a size of a macro block, An address generating means for generating an address for outputting an image of an object as a macro block in accordance with an address start position output by the control means; and a control means for storing an image of the object having the input shape information, A block number counting means for counting the number of macroblocks in which the shape information of the object exists among the signals output from the memory means; The grid start of the X and Y axes with the smallest number of macroblocks counted Of the object to the image encoding apparatus, characterized by at least consists of a macroblock grid selecting means for selecting values. 제21항에 있어서, 어드레스 발생수단은, 입력되는 대상물 영상의 크기 정보에 따라 매크로 블록의 X축 크기 및 매크로 블록의 Y축 크기를 각기 결정하는 X축 크기 결정 수단 및 Y축 크기 결정 수단과, 어드레스 발생 제어 수단에서 출력되는 어드레스 시작 위치부터 상기 X축 크기 결정 수단 및 Y축크기 결정 수단이 결 정한 매크로 블록의 X축 및 Y축의 크기를 구분하고, 구분한 매크로 블록의 X축 및 Y축 크기에 따른 어드레스를 순차적으로 발생하는 영역 어드레스 발생 수단으로 구성됨을 특징으로 하는 대상물 영상의 부호화 장치.22. The image processing apparatus according to claim 21, wherein the address generating means comprises X-axis size determining means and Y-axis size determining means for respectively determining the X-axis size of the macro block and the Y-axis size of the macro block in accordance with the size information of the input object image, Axis size and Y-axis size of the macroblock determined by the X-axis size determination means and the Y-axis size determination means from the address start position output from the address generation control means, And an area address generating means for sequentially generating an address in accordance with the address information. 제22항에 있어서, 매크로 블록의 X축 및 Y축 크기가 동일할 경우에 하나의 크기 결정 수단으로 매크로 블록의 X축 및 Y축 크기를 결정하는 것을 특징으로 하는 대상물 영상의 부호화 장치.The apparatus of claim 22, wherein the X-axis and Y-axis sizes of the macroblock are determined by one size determining means when the X-axis and Y-axis sizes of the macroblock are the same. 제21항에 있어서, 블록 수 카운트 수단은, 클럭신호를 카운트하여 매크로블록을 구분하는 영역 카운트 수단과, 메모리 수단에서 출력되는 영상의 매크로 블록을 상기 영역 카운트 수단의 출력신호에 따라 구분하고 대상물의 모양 정보가 존재하는 지의 여부를 판단하는 모양 정보 존재 판단 수단과, 상기 모양 정보 존재 판단 수단의 판단신호를 카운트하여 대상물의 영상이 존재하는 매크로 블록의 수를 출력하는 블록 수 가산 수단으로 구성됨을 특징으로 하는 대상물 영상의 부호화 장치.The apparatus according to claim 21, wherein the block number counting means comprises: area counting means for counting clock signals to divide macroblocks; and macroblocks of images output from the memory means are classified according to output signals of the area counting means, And a block number adding means for counting the judgment signal of the shape information existence judging means and outputting the number of macroblocks in which an image of the object exists, Of the object image. ※ 참고사항 : 최초출원 내용에 의하여 공개하는 것임.※ Note: It is disclosed by the contents of the first application.
KR1019960027486A 1996-07-08 1996-07-08 Coding method and coding device of object image, particularly concerned with moving a macro block for dividing a vop in mpeg-4 to an information reduction position in accordance with shape information of an object image, to improve a coding efficiency KR100420471B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019960027486A KR100420471B1 (en) 1996-07-08 1996-07-08 Coding method and coding device of object image, particularly concerned with moving a macro block for dividing a vop in mpeg-4 to an information reduction position in accordance with shape information of an object image, to improve a coding efficiency

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019960027486A KR100420471B1 (en) 1996-07-08 1996-07-08 Coding method and coding device of object image, particularly concerned with moving a macro block for dividing a vop in mpeg-4 to an information reduction position in accordance with shape information of an object image, to improve a coding efficiency

Publications (2)

Publication Number Publication Date
KR980013432A true KR980013432A (en) 1998-04-30
KR100420471B1 KR100420471B1 (en) 2004-07-05

Family

ID=37323420

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019960027486A KR100420471B1 (en) 1996-07-08 1996-07-08 Coding method and coding device of object image, particularly concerned with moving a macro block for dividing a vop in mpeg-4 to an information reduction position in accordance with shape information of an object image, to improve a coding efficiency

Country Status (1)

Country Link
KR (1) KR100420471B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100661256B1 (en) * 1998-07-13 2006-12-27 프리스케일 세미컨덕터, 인크. Method and apparatus for encoding and decoding video signals by using storage and retrieval of motion vectors

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100661256B1 (en) * 1998-07-13 2006-12-27 프리스케일 세미컨덕터, 인크. Method and apparatus for encoding and decoding video signals by using storage and retrieval of motion vectors

Also Published As

Publication number Publication date
KR100420471B1 (en) 2004-07-05

Similar Documents

Publication Publication Date Title
JP3242409B2 (en) Method for moving grid of target image and apparatus using the same, method for estimating compression / motion using the same and apparatus therefor
CN101854540B (en) Intra prediction method and device for employing H.264 video coding standard
EP1835751A2 (en) Motion picture encoding and decoding devices
KR100238893B1 (en) Motion vector coding method and apparatus
KR100420471B1 (en) Coding method and coding device of object image, particularly concerned with moving a macro block for dividing a vop in mpeg-4 to an information reduction position in accordance with shape information of an object image, to improve a coding efficiency
RU2437246C2 (en) Method to produce motion data for high resolution images from data of low resolution images motion and coding and decoding devices that realise specified method
KR100417132B1 (en) Coding method of object image and coding device
KR100424684B1 (en) Method and apparatus for encoding object image
KR100424685B1 (en) Method and apparatus for encoding object image
KR100417128B1 (en) Encoding Method and Encoding Device of Object Image
KR100424686B1 (en) Method and apparatus for encoding object image
KR100417130B1 (en) Coding method of object image and coding device
KR100424683B1 (en) Method and apparatus for encoding object image
KR980013429A (en) Coding method and apparatus for object image
US20050089099A1 (en) Fast motion estimating apparatus
KR100417137B1 (en) Coding method of object image and coding device
KR100205850B1 (en) Shape of object adaptive dividing of region method
KR100239291B1 (en) Grid moving method and apparatus using selective pixel investigation
US6898244B1 (en) Movement vector generating apparatus and method and image encoding apparatus and method
EP0923250A1 (en) Method and apparatus for adaptively encoding a binary shape signal
CN1323376C (en) Moving self adaption sequencely scanning device and method using code information as base
KR100463003B1 (en) Method for encoding contour of MPEG-4 VOP
KR100424682B1 (en) Apparatus for encoding shape information
JP3455635B2 (en) Motion vector detection device
JP4570700B2 (en) Motion vector detector

Legal Events

Date Code Title Description
N231 Notification of change of applicant
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20100201

Year of fee payment: 7

LAPS Lapse due to unpaid annual fee