KR100670459B1 - Image compression coding and decoding method and apparatus - Google Patents
Image compression coding and decoding method and apparatus Download PDFInfo
- Publication number
- KR100670459B1 KR100670459B1 KR1020040104073A KR20040104073A KR100670459B1 KR 100670459 B1 KR100670459 B1 KR 100670459B1 KR 1020040104073 A KR1020040104073 A KR 1020040104073A KR 20040104073 A KR20040104073 A KR 20040104073A KR 100670459 B1 KR100670459 B1 KR 100670459B1
- Authority
- KR
- South Korea
- Prior art keywords
- image
- seed
- difference
- pixel
- image data
- Prior art date
Links
- 230000006835 compression Effects 0.000 title claims abstract description 69
- 238000007906 compression Methods 0.000 title claims abstract description 69
- 238000000034 method Methods 0.000 title claims abstract description 55
- 230000008569 process Effects 0.000 claims abstract description 15
- 238000013139 quantization Methods 0.000 claims description 32
- 238000005070 sampling Methods 0.000 claims description 7
- 238000010586 diagram Methods 0.000 description 3
- 230000009466 transformation Effects 0.000 description 3
- 230000001131 transforming effect Effects 0.000 description 3
- 230000006866 deterioration Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000006837 decompression Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000008570 general process Effects 0.000 description 1
- 230000002123 temporal effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/132—Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/124—Quantisation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods 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/17—Methods 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/176—Methods 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/60—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
- H04N19/625—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding using discrete cosine transform [DCT]
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Discrete Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
본 발명은 영상을 압축 부호화하는 장치와 그 방법에 관한 것이다.The present invention relates to an apparatus and method for compressing and encoding an image.
본 발명은 매크로 블록 기반으로 디지털 영상신호를 처리함에 있어, 각 매크로 블록마다 시드 픽셀(seed pixel)을 선정하고 시드 픽셀과 그 주변 픽셀과의 차영상을 구성하며, 입력 영상을 특정한 비율로 서브 샘플링(sub sampling)하여 시드 영상(seed image)을 구성하고, 상기 시드 영상과 차영상을 각각 DCT 및 양자화하여 압축하고, 압축된 영상 데이터를 무손실 부호화(lossless coding)하여 영상을 압축 부호화한다. 상기 시드 영상과 차영상의 부호화된 데이터를 각각 부호화과정의 역순으로 압축을 푼 다음 최종단계에서 두 영상을 더하여 복호화된 영상을 구하는 과정으로 영상을 복호화한다. 본 발명은 프레임 내부의 정보만을 이용해서 압축을 하는 경우, 영상 내부의 공간 중복성을 제거함으로써 압축 효율을 높일 수 있다.According to the present invention, in processing a digital image signal based on a macro block, a seed pixel is selected for each macro block, a difference image between the seed pixel and its surrounding pixels is formed, and the input image is subsampled at a specific ratio. A sub-image is formed to form a seed image, the seed image and the difference image are DCT and quantized, respectively, and compressed, and the image is compressed by lossless coding. The encoded data of the seed image and the difference image are respectively decompressed in the reverse order of the encoding process, and in the final step, two images are added to obtain a decoded image. According to the present invention, when compression is performed using only information in a frame, compression efficiency can be improved by removing spatial redundancy in an image.
동영상압축,동영상부호화,MPEG,CODECVideo compression, video encoding, MPEG, CODEC
Description
도1은 종래의 디지털 동영상 부호화기의 블록도1 is a block diagram of a conventional digital video encoder.
도2는 본 발명의 영상 압축 부호화 및 복호화 방법을 나타낸 플로우차트2 is a flowchart showing a video compression encoding and decoding method according to the present invention.
도3은 본 발명에서 시드 픽셀과 시드 영상 구성의 예를 나타낸 도면3 is a view showing an example of the configuration of the seed pixel and the seed image in the present invention
도4는 본 발명에서 시드 라인 구성의 예를 나타낸 도면4 shows an example of the seed line configuration in the present invention.
도5는 본 발명에서 라인간 픽셀 차이값 구성의 예를 나타낸 도면5 is a view showing an example of the pixel difference value configuration between lines in the present invention;
도6은 본 발명의 영상 압축 부호화 및 복호화 장치를 나타낸 블록도6 is a block diagram showing an image compression encoding and decoding apparatus according to the present invention.
<도면의 주요 부분에 대한 부호의 설명><Explanation of symbols for the main parts of the drawings>
610: 영상 부호화부 620: 영상 복호화부610: image encoder 620: image decoder
611: 차영상 생성부 612,616: DCT부611: difference image generation unit 612,616: DCT unit
613,617: 양자화부 614,618: 무손실 부호화부613,617 quantization unit 614,618 lossless coding unit
615: 시드 영상 생성부 619: 가산부615: Seed image generation unit 619: Adder
621,625: 무손실 복호화부 622,626: 역양자화부621,625: Lossless decoding unit 622,626: Inverse quantization unit
623,627: 역DCT부 624: 복원된 차영상623,627: reverse DCT 624: restored car image
628: 복원된 시드 영상 629: 가산부628: Restored seed image 629: Adder
본 발명은 영상을 압축 부호화하는 장치 및 그 방법에 관한 것이다.The present invention relates to an apparatus and method for compressing and encoding an image.
MPEG이나 H.26x 계열의 동영상 코덱(CODEC) 등 대부분의 동영상 압축 표준은 움직임 보상 기법(Motion Estimation & Compensation)과 변환(Transform)에 기반한 압축방식을 채택하고 있다. 이러한 움직임 보상 기반 부호화에서는 각 블록(block)의 움직임 벡터(Motion Vector) 정보를 부호화해서 전송해야 하며, 움직임 벡터를 어떻게 부호화하느냐에 따라 압축 효율이 크게 달라지기도 한다.Most video compression standards, such as MPEG or H.26x video codecs, adopt compression based on motion estimation and compensation and transformation. In such motion compensation based encoding, motion vector information of each block must be encoded and transmitted, and the compression efficiency may vary greatly depending on how the motion vector is encoded.
영상을 부호화하는 일반적인 과정은 디지털 영상신호를 DCT(이산 코사인 변환) 처리하고, 변환계수를 양자화하여 무손실 부호화(Lossless Coding)를 수행하는 한편, 양자화된 DCT 계수를 역양자화 및 역 DCT 변환하여 복원한 영상을 메모리에 저장하고, 메모리에 저장된 복원 영상과 다음 프레임 영상을 이용해서 움직임 벡터를 산출하며, 움직임 벡터를 가변장 부호화하여 상기 부호화된 영상정보와 함께 비트 스트림으로 구성하여 전송하는 수순을 따른다. 영상을 복호화하는 방법은 상기 부호화 과정의 역순으로 수행한다.In the general process of encoding an image, DCS (Discrete Cosine Transform) processing of a digital image signal is performed, and the transform coefficient is quantized to perform lossless coding, while inverse quantization and inverse DCT transformation of the quantized DCT coefficients are performed. The image is stored in a memory, a motion vector is calculated using the reconstructed image and the next frame image stored in the memory, and the motion vector is variably encoded to form a bit stream along with the encoded image information for transmission. The method of decoding an image is performed in the reverse order of the encoding process.
도1은 일반적인 디지털 동영상 부호화기의 구성을 나타낸 블록도이다.1 is a block diagram showing the configuration of a general digital video encoder.
도1에 나타낸 동영상 부호화기는 입력 디지털 영상신호를 DCT(Discrete Cosine Transform) 처리하는 DCT부(110)와, 상기 DCT 변환 계수를 양자화하는 양자화부(120)와, 상기 양자화부(120)에서 출력된 양자화 데이터를 역양자화하는 역양자화부(130)와, 상기 역 양자화부(130)의 출력 데이터를 역DCT 변환하는 역DCT부 (140)와, 상기 역DCT부(140)에서 출력된 복원 영상을 저장하는 프레임 메모리(150)와, 입력되는 현재 프레임의 영상 데이터와 상기 프레임 메모리(150)에 저장된 이전 프레임의 영상 데이터를 이용해서 움직임 벡터(MV)를 산출하는 움직임 추정부(160)와, 상기 양자화된 데이터와 움직임 벡터를 무손실 부호화(Lossless Coding)하여 출력하는 무손실 부호화부(170)를 포함하여 구성된다.The video coder illustrated in FIG. 1 includes a
상기한 바와 같이 구성된 도1의 압축 부호화기의 부호화 과정을 살펴보면 다음과 같다.Looking at the encoding process of the compression encoder of Figure 1 configured as described above is as follows.
DCT(Discrete Cosine Transform)부(110)는 8*8 화소 블록 단위로 입력된 디지털 영상신호에 대해 DCT변환을 수행하고, 양자화부(Quantization: Q)(120)는 상기 DCT부(110)에서 얻어진 DCT 계수에 대해 양자화를 수행하여 몇 개의 대표값으로 표현함으로써 고효율 압축을 수행한다.The DCT (Discrete Cosine Transform)
역양자화부(Inverse Quantization: IQ)(130)는 상기 양자화부(120)에서 출력된 양자화 데이터를 역양자화하고, IDCT부(140)에서는 상기 역양자화부(130)에서 역양자화된 데이터에 대해 역 이산 코사인 변환(Inverse DCT)을 수행한다. 프레임 메모리(150)는 상기 IDCT부(140)에서 IDCT 변환된 영상 데이터를 프레임 단위로 저장한다.An inverse quantization unit (IQ) 130 inverse quantizes the quantized data output from the
움직임 추정부(Motion Estimation: ME)(160)는 입력되는 현재 프레임의 영상 데이터와 프레임 메모리(150)에 저장된 이전 프레임의 영상 데이터를 이용하여 매크로 블록당 움직임 벡터(MV)를 계산한다. 무손실 부호화부(170)는 상기 양자화부(120)에서 양자화된 출력 데이터와 상기 움직임 벡터(MV)를 입력받아 이를 무손실 부호화(Lossless Coding)하여 출력한다.The motion estimation unit (ME) 160 calculates a motion vector per macroblock (MV) by using the input image data of the current frame and the image data of the previous frame stored in the
알려진 바와 같이 MPEG의 경우 시간 중복성을 이용해서 동영상을 압축하는 대표적인 알고리즘이다. MPEG의 B프레임이나 P레임에서는 이전 프레임과의 시간적 중복성을 매크로 블록의 움직임 벡터를 이용함으로써 효율적으로 제거할 수 있었다. 그러나 MPEG의 I프레임이나 JPEG처럼 프레임 내부의 정보만을 이용해서 압축을 하는 경우에는 시간 중복성을 사용할 수 없다. 이 경우, 압축 효율의 대부분은 DCT를 이용해서 입력 디지털 영상신호를 주파수별로 분해하고, 시각적으로 둔감한 고주파 영역의 데이터를 제거함으로써 높일 수 있다. 그러나 DCT를 이용한 정보의 압축은 실제 영상에서 많은 데이터량을 차지하고 있는 공간상의 중복성을 제거하지 못하고 있기 때문에 압축 효율이 떨어질 수 밖에 없다는 한계를 갖고 있다. 앞서 설명한 MPEG의 경우 내부 정보만을 이용한 I프레임에 비해서 P프레임, B프레임의 정보량이 현저히 적다는 점에서 그 사실을 미루어 알 수 있다.As is known, MPEG is a representative algorithm for compressing a video using time redundancy. In the B frame or P frame of MPEG, the temporal redundancy with the previous frame can be efficiently removed by using the motion vector of the macro block. However, when compressing using only the information inside the frame, such as MPEG I frame or JPEG, time redundancy cannot be used. In this case, most of the compression efficiency can be increased by decomposing the input digital video signal by frequency using DCT and removing data in the high frequency region which is visually insensitive. However, the compression of information using DCT has a limitation that the compression efficiency is inevitably reduced because it does not remove the spatial redundancy that occupies a large amount of data in the actual image. In the case of MPEG described above, it can be understood from the fact that the information amount of P frame and B frame is significantly smaller than that of I frame using only internal information.
그러므로, 프레임 내부의 정보만을 이용해서 압축을 하는 경우, 영상 내부의 공간적 중복성을 제거함으로써 압축의 효율을 더욱 높일 수 있는 기법이 요구된다.Therefore, when compressing using only information in a frame, a technique for further increasing compression efficiency by removing spatial redundancy in an image is required.
본 발명의 목적은 앞서 설명한 종래 기술의 문제점을 해결하여 영상 압축 부호화기의 부호화 효율을 높일 수 있도록 한 영상 압축 부호화 및 복호화 방법과 그 장치를 제공하는데 있다.SUMMARY OF THE INVENTION An object of the present invention is to provide an image compression encoding and decoding method and apparatus for solving the problems of the related art described above, thereby improving encoding efficiency of an image compression encoder.
본 발명의 또 다른 목적은 영상 압축 부호화시에 영상의 공간 정보 중복성을 이용하여 압축함으로써 압축 부호화 효율을 높일 수 있도록 한 영상 압축 부호화 및 복호화 방법과 그 장치를 제공하는데 있다.Another object of the present invention is to provide an image compression encoding and decoding method and apparatus for improving compression encoding efficiency by compressing by using spatial information redundancy of an image during image compression encoding.
본 발명의 또 다른 목적은 영상 압축 부호화시에 프레임 내부의 정보만을 이용해서 압축을 하는 경우, 영상 내부의 공간 중복성을 제거함으로써 압축 효율을 높일 수 있도록 한 영상 압축 부호화 및 복호화 방법과 그 장치를 제공하는데 있다.It is still another object of the present invention to provide an image compression encoding and decoding method and apparatus for improving compression efficiency by removing spatial redundancy in an image when compression is performed using only information in a frame during image compression encoding. It is.
본 발명의 또 다른 목적은 블록 단위의 영상 압축 부호화를 기반으로 할 때, 매크로 블록 내에서 시드(seed)가 되는 픽셀을 선정하고, 상기 선정된 시드 픽셀(seed pixel)을 중심으로 그 주변에 이웃하는 픽셀과의 차이를 계산한 차영상(differential image)과, 특정 비율로 서브 샘플링(sub-sampling)된 시드 영상(seed image)을 구하고, 상기 시드 영상과 차영상을 각각 변환 부호화함으로써 영상 내부의 공간적 중복성을 최대한 제거하고, 이를 통하여 높은 압축 효율을 달성할 수 있도록 한 영상 압축 부호화 방법과 그 장치를 제공하는데 있다.It is still another object of the present invention to select a pixel that becomes a seed in a macro block based on image compression coding in units of blocks, and to neighbor the neighbors around the selected seed pixel. Obtains a differential image obtained by calculating a difference between pixels and a seed image sub-sampled at a specific ratio, and transforms and encodes the seed image and the differential image, respectively, The present invention provides an image compression encoding method and apparatus for removing spatial redundancy as much as possible and thereby achieving high compression efficiency.
본 발명의 또 다른 목적은 블록 단위의 영상 압축 복호화를 기반으로 할 때, 부호화 단계에서 제공된 압축 부호화된 시드 영상과 차영상을 각각 복호화 및 역변환하고 최종 단계에서 복호(decode)된 상기 두 영상을 가산하여 원래의 영상을 복원하는 방법으로 영상을 복호화하는 압축 영상 복호화 방법과 그 장치를 제공하는데 있다.Another object of the present invention is to decode and inverse transform the compressed coded seed image and the difference image provided in the encoding step, respectively, based on image compression decoding in units of blocks, and add the two images decoded in the final step. The present invention provides a compressed image decoding method and apparatus for decoding an image by a method of restoring an original image.
상기 목적을 달성하기 위한 본 발명의 영상 압축 부호화 방법은, 영상 데이터를 블록 단위로 나누고, 각각의 블록 내에서 소정 위치의 픽셀(pixel)을 선택하 여 이 것을 시드 픽셀(seed pixel)로 선정하는 시드 픽셀 선정단계; 상기 선정된 시드 픽셀을 중심으로 이웃하는 주변 픽셀들과의 차를 구하여 이 차로 이루어지는 차 영상(differential image)을 구성함과 함께, 상기 영상 데이터를 소정 비율로 서브 샘플링(sub sampling)하고 이 서브 샘플링된 영상을 시드 영상(seed image)으로 정하는 차영상 및 시드 영상 구성단계; 상기 차영상 및 시드 영상 데이터 각각에 대하여 압축 부호화를 수행한 후 압축 부호화된 두 데이터를 가산하여 최종 압축 부호화된 데이터로 출력하는 부호화 단계; 를 포함하여 이루어지는 것을 특징으로 한다.In the video compression encoding method of the present invention for achieving the above object, the image data is divided into block units, a pixel of a predetermined position is selected within each block, and the seed data is selected as a seed pixel. Seed pixel selection step; The difference between neighboring neighboring pixels is determined based on the selected seed pixel to form a differential image including the difference, and sub-sampling the image data at a predetermined ratio. Constructing a difference image and a seed image to determine a seeded image as a seed image; An encoding step of performing compression encoding on each of the difference image and the seed image data, and then adding the two compression-encoded data and outputting the final compression-encoded data; Characterized in that comprises a.
또한 상기 목적을 달성하기 위한 본 발명의 영상 복호화 방법은, 영상 데이터를 서브 샘플링하여 구한 시드 영상과, 영상 데이터를 블록단위로 나누고 각 블록마다 선택된 시드 픽셀을 기준으로 주변에 이웃하는 픽셀들 간의 차로 이루어진 차영상 데이터를 각각 압축 부호화한 영상 데이터를 입력받는 단계; 상기 압축 부호화된 시드 영상 데이터와 압축 부호화된 차영상 데이터를 각각 복호화하고 압축을 풀어서 원래의 시드 영상 데이터와 차영상 데이터를 구하고, 구해진 시드 영상 데이터와 차영상 데이터를 가산하여 복호화된 영상을 구하는 단계; 를 포함하는 것을 특징으로 한다.In addition, the video decoding method of the present invention for achieving the above object, the seed image obtained by sub-sampling the image data, and the difference between the neighboring pixels based on the seed pixel selected for each block by dividing the image data in block units Receiving image data obtained by compressing and encoding the difference image data; Decoding the compressed seed image data and the differentially encoded difference image data, decompressing each other to obtain original seed image data and difference image data, and adding the obtained seed image data and difference image data to obtain a decoded image. ; Characterized in that it comprises a.
또한 상기 목적을 달성하기 위한 본 발명의 영상 압축 부호화 장치는, 블록단위를 기반으로 영상 데이터를 압축 부호화하는 장치에 있어서, 영상 데이터 블록 내에서 선택된 시드 픽셀과 그 주변에 인접하여 이웃하는 픽셀들 간의 차로 이루어지는 차영상을 구성하는 차영상 생성수단; 영상 데이터를 소정의 비율로 서브 샘플 링하여 시드 영상을 구성하는 시드 영상 생성수단; 상기 차영상에 대하여 DCT 및 양자화, 무손실 부호화 과정을 차례로 수행하는 차영상 압축 부호화수단; 상기 시드 영상에 대하여 DCT 및 양자화, 무손실 부호화 과정을 차례로 수행하는 시드 영상 압축 부호화수단; 상기 최종 부호화된 차영상 및 시드 영상을 가산하여 출력하는 출력수단; 을 포함하여 구성된 것을 특징으로 한다.In addition, according to an embodiment of the present invention, an apparatus for encoding and compressing image data based on a block unit is provided. The apparatus for encoding and compressing image data based on a block unit may include: Difference image generation means for constructing a difference image comprising a difference; Seed image generating means for sub-sampling the image data at a predetermined ratio to form a seed image; Differential image compression encoding means for sequentially performing DCT, quantization, and lossless encoding on the difference image; Seed image compression encoding means for performing DCT, quantization, and lossless encoding on the seed image in sequence; Output means for adding and outputting the finally encoded difference image and the seed image; Characterized in that configured to include.
또한 상기 목적을 달성하기 위한 본 발명의 영상 복호화 장치는, 블록단위를 기반으로 압축된 영상 데이터를 복호화하는 장치에 있어서, 영상 데이터 블록 내에서 선택된 시드 픽셀과 그 주변에 인접하여 이웃하는 픽셀들 간의 차로 이루어진 압축 부호화된 차영상에 대하여 복호화, 역양자화, 역DCT 과정을 차례로 수행하여 시드 픽셀 기반 차영상을 복호화 및 복원하는 차영상 복원수단; 영상 데이터를 소정의 비율로 서브 샘플링하여 구성된 압축 부호화된 시드 영상에 대하여 복호화, 역양자화, 역DCT 과정을 차례로 수행하여 시드 영상을 복호화 및 복원하는 시드 영상 복원수단; 상기 최종 복원된 차영상 및 시드 영상을 가산하여 원 영상을 복원하는 출력수단; 을 포함하여 구성된 것을 특징으로 한다.Also, an image decoding apparatus of the present invention for achieving the above object is a device for decoding compressed image data based on a block unit, comprising: between a seed pixel selected in an image data block and neighboring pixels adjacent to the periphery thereof; Difference image reconstruction means for decoding and reconstructing a seed pixel-based difference image by sequentially performing decoding, inverse quantization, and inverse DCT on a compression-coded difference image including a difference; Seed image reconstruction means for decoding and reconstructing the seed image by sequentially performing decoding, inverse quantization, and inverse DCT processes on the compressed coded seed image configured by subsampling image data at a predetermined ratio; Output means for reconstructing the original image by adding the finally reconstructed difference image and seed image; Characterized in that configured to include.
또한 본 발명은 상기 영상 데이터를 매크로 블록 단위로 나누고 각각의 매크로 블록의 중앙에 위치한 하나의 픽셀을 선택하여 이 픽셀을 시드 픽셀로 선정하는 것을 특징으로 한다.In another aspect, the present invention is characterized by dividing the image data into macroblock units, selecting one pixel located at the center of each macroblock, and selecting the pixel as a seed pixel.
또한 본 발명은 상기 시드 픽셀을 중심으로 좌우로 인접하여 이웃하는 픽셀들 간의 차를 구하여 시드 픽셀을 포함하는 시드 라인(seed line)을 구성하고, 상기 시드 라인을 기준으로 상하로 인접하여 이웃하는 동일 컬럼(column) 위치의 픽 셀들 간의 차이를 구하여 차영상을 구성하는 것을 특징으로 한다.In addition, the present invention forms a seed line including a seed pixel by obtaining the difference between neighboring pixels adjacent to the left and right adjacent to the seed pixel, and the same neighboring up and down adjacent to the seed line The difference image may be obtained by obtaining the difference between the pixels of the column position.
또한 본 발명은 상기 시드 픽셀을 중심으로 상하로 인접하여 이웃하는 픽셀들 간의 차를 구하여 시드 픽셀을 포함하는 시드 컬럼(seed column)을 구성하고, 상기 시드 컬럼을 기준으로 좌우로 인접하여 이웃하는 동일 라인(line) 위치의 픽셀들 간의 차이를 구하여 차영상을 구성하는 것을 특징으로 한다.In addition, the present invention forms a seed column including a seed pixel by obtaining a difference between neighboring pixels vertically adjacent to the seed pixel up and down, and the same neighboring left and right adjacent to the seed column The difference image may be obtained by obtaining a difference between pixels at a line position.
또한 본 발명에서 상기 차영상은 계층적 구조로 이루어지는 것을 특징으로 한다.In the present invention, the difference image is characterized in that the hierarchical structure.
또한 본 발명은 상기 시드 영상을 소정의 블록단위로 나누고 각각의 블록 내에서 시드 픽셀을 선정하여 이 시드 픽셀을 중심으로 인접하여 이웃하는 픽셀들 간의 차를 구하는 과정을 반복함으로써 상기 차영상이 계층적 구조를 이루는 것을 특징으로 한다.The present invention also divides the seed image into predetermined block units, selects seed pixels in each block, and repeats a process of obtaining a difference between neighboring pixels adjacent to the seed pixels. It is characterized by forming a structure.
또한 본 발명에서 상기 시드 영상은 상기 선정된 시드 픽셀을 포함하여 구성되도록 서브 샘플링하여 구성함을 특징으로 한다.In addition, in the present invention, the seed image may be configured by subsampling to include the selected seed pixel.
상기한 바와 같이 이루어지는 본 발명의 영상 압축 부호화 및 복호화 방법과 그 장치에 따르면, 매크로 블록 내에서 시드(seed)가 되는 픽셀(pixel)을 중심으로 해서, 이웃하는 픽셀들 간의 차이를 계산한 차 영상(differential image)을 얻는데, 이 차 영상은 2차원 공간상의 중복성이 제거된 상태이기 때문에 압축의 효율을 높일 수 있다.According to the image compression encoding and decoding method and apparatus thereof according to the present invention made as described above, a difference image obtained by calculating a difference between neighboring pixels centering on a pixel that is a seed in a macroblock. (differential image) is obtained. This difference image can improve compression efficiency because the redundancy in two-dimensional space is removed.
또한 상기한 바와 같이 이루어지는 본 발명의 영상 압축 부호화 및 복호화 방법과 그 장치에 따르면, 가변적인 단계의 차 영상을 만들 수 있게 함으로써 압축 의 효율을 더 높일 수 있다. 이는 곧 데이터의 비트율(bit-rate)을 조절할 수 있음을 의미한다.In addition, according to the video compression encoding and decoding method and apparatus according to the present invention as described above, it is possible to further increase the efficiency of compression by enabling to produce a difference image of a variable step. This means that the bit-rate of data can be adjusted.
또한 상기한 바와 같이 이루어지는 본 발명의 영상 압축 부호화 및 복호화 방법과 그 장치에 따르면, 여러 단계의 차 영상을 만들 수 있게 함으로써 압축으로 인해서 생기는 영상(image)의 열화를 줄일 수 있다.In addition, according to the video compression encoding and decoding method and apparatus of the present invention as described above, it is possible to reduce the deterioration of the image caused by the compression by making it possible to produce a difference image of various stages.
또한 상기한 바와 같이 이루어지는 본 발명의 영상 압축 부호화 및 복호화 방법과 그 장치에 따르면, 동영상 압축에도 적용할 수 있다. 즉, MPEG 등에서 프레임 내부의 정보만을 이용해서 압축을 하는 I프레임과 같은 경우에도 적용하여 압축 효율을 높일 수 있다.Further, according to the video compression encoding and decoding method and apparatus of the present invention made as described above, the present invention can be applied to video compression. That is, the compression efficiency can be increased by applying the same to an I frame that is compressed using only the information inside the frame in MPEG or the like.
이하, 첨부된 도면을 참조하여 본 발명의 실시예를 설명한다.Hereinafter, with reference to the accompanying drawings will be described an embodiment of the present invention.
먼저, 도2는 본 발명에 따른 영상 압축 부호화 및 복호화 방법을 보여준다.First, FIG. 2 shows a video compression encoding and decoding method according to the present invention.
도시된 단계(S211)는 시드 픽셀의 선정과 시드 영상을 구성하는 단계이다. 시드 픽셀은 디지털 영상 데이터를 블록 단위로 나누고, 각각의 블록마다 블록 내에서 선택한다. 예를 들면 매크로 블록 단위로 나누어 처리할 때 각각의 매크로 블록마다 그 매크로 블록 내에서 픽셀을 선택하여 선정한다. 즉, 매크로 블록의 중앙에 위치한 픽셀을 시드 픽셀이라고 정의할 수 있다. 어떤 위치의 픽셀을 해당 매크로 블록에 대한 시드 픽셀로 선택할 것인지는 제한되지 않을 수 있다. 시드 픽셀의 선택은 본 발명이 적용될 시스템의 특성이나 통신, 적용 환경에 따라 달라질 수도 있다. 그러나 일반적으로 매크로 블록의 중앙에 위치한 하나의 픽셀을 시드 픽셀로 선택하는 것이 바람직하다. 그 이유는 시드 픽셀의 위치를 사전에 미리 약속해 두 면 부호화 및 복호화 시에 편리할 뿐만 아니라 매크로 블록의 중앙에 위치한 픽셀이 해당 매크로 블록의 정보를 가장 잘 대표할만 하다고 간주할 수 있기 때문이다. 도3은 소스 영상(source image)(300)과 매크로 블록(310), 그리고 매크로 블록(310)의 중앙에서 선택되는 시드 픽셀(311), 서브 샘플링을 통해 얻어진 시드 영상(seed image)(320)을 보여준다.In operation S211, the seed pixels are selected and a seed image is constructed. The seed pixel divides the digital image data into block units and selects each block within the block. For example, when processing by dividing into macroblock units, a pixel is selected and selected in each macroblock for each macroblock. That is, a pixel located in the center of the macro block may be defined as a seed pixel. Which pixel to select as the seed pixel for the macroblock may be not limited. The selection of the seed pixel may vary depending on the characteristics, communication, and application environment of the system to which the present invention is applied. In general, however, it is preferable to select one pixel located at the center of the macro block as a seed pixel. The reason for this is that if the position of the seed pixel is promised in advance, not only is it convenient for encoding and decoding, but also the pixel located in the center of the macro block can be considered to best represent the information of the macro block. . 3 shows a
영상 데이터를 소정의 샘플링 비율로 서브 샘플링함으로써 서브 샘플링된 영상을 구하는데, 이 서브 샘플링된 영상을 시드 영상(320)이라고 정의한다. 시드 영상(320)은 시드 픽셀을 반드시 포함시켜 구성할 수도 있고, 그렇지 않을 수도 있다. 이 것은 서브 샘플링 기법에 의존한다. 그렇지만 일반적으로 시드 픽셀(311)을 포함시켜서 시드 영상(320)을 구성하는 것이 해당 영상 데이터에 대한 보다 풍부한 정보를 포함하도록 하는데 유리하다.The subsampled image is obtained by subsampling the image data at a predetermined sampling rate. The subsampled image is defined as the
도2에서 다음 단계(S212)는 차영상을 구성하는 단계이다. 여기서 차영상은 시드 픽셀(311)을 중심으로 그 주변 픽셀과의 차이를 구하여 구성하며, 각각의 매크로 블록 단위로 처리된다. 도4 및 도5는 차영상을 구하는 예를 보여준다. 즉, 시드 픽셀을 기준으로 해서 좌우 양쪽으로 이웃하는 픽셀들 간의 차이 값을 구하는 과정을 반복하여 시드 픽셀을 포함하는 시드 라인(seed line)이 구성되고, 상기 시드 라인을 기준으로 해서 상하 양쪽으로 이웃하는 픽셀들 간의 차이 값을 구하는 과정을 반복함으로써 차영상이 생성된다.In FIG. 2, the next step S212 is to construct a difference image. Here, the difference image is configured by obtaining a difference from the neighboring pixels based on the
먼저, 도4를 참조한다. 도4는 시드 픽셀 P(0,0)과 좌우 양쪽으로 인접하여 이웃하는 픽셀들 간의 차이 값을 구하는 방법을 보여준다. 시드 픽셀 P(0,0)을 기 준으로 하여 픽셀 P(-2,0)과 픽셀 P(-1,0)의 차이 값, 픽셀 P(-1,0)과 시드 픽셀 P(0,0)의 차이 값, 시드 픽셀 P(0,0)과 픽셀 P(1,0)의 차이 값, 픽셀 P(1,0)과 픽셀 P(2,0)의 차이 값을 구한다. 예를 들어 상기 각 픽셀에 대응하여 입력되는 영상이 [128,120,134,140,120]일 경우 그 차 영상은 [8,-14,0,6,-20]이 된다. 이 과정을 거치면 시드 픽셀 P(0,0)을 포함하는 라인이 시드 라인(seed line)이 된다.First, reference is made to FIG. 4 shows a method of obtaining a difference value between neighboring pixels adjacent to the seed pixel P (0,0) from left to right. Difference between pixel P (-2,0) and pixel P (-1,0) based on seed pixel P (0,0), pixel P (-1,0) and seed pixel P (0,0) ), The difference between the seed pixel P (0,0) and the pixel P (1,0), and the difference between the pixel P (1,0) and the pixel P (2,0). For example, if the image input corresponding to each pixel is [128,120,134,140,120], the difference image is [8, -14,0,6, -20]. After this process, the line including the seed pixel P (0,0) becomes a seed line.
다음, 도5를 참조한다. 도5는 시드 라인과 상하 양쪽으로 인접하여 이웃하는 픽셀들 간의 차이 값을 구하는 방법을 보여준다. 라인의 차이를 구할 때에는 양쪽 라인의 동일한 컬럼(column) 위치의 픽셀들 끼리 차이를 구한다. 예를 들어 시드 라인에서 픽셀 P(-2,0)과 위쪽으로 이웃하는 픽셀 P(-2,1)의 차이 값을 구하고, 픽셀 P(-1,0)과 픽셀 P(-1,1)의 차이 값을 구하고, 시드 픽셀 P(0,0)과 픽셀 P(0,1)의 차이 값을 구하고, 픽셀 P(1,0)과 픽셀 P(1,1)의 차이 값을 구하고, 픽셀 P(2,0)과 픽셀 P(2,1)의 차이 값을 구한다. 같은 방법으로 픽셀 P(-2,1)과 픽셀 P(-2,2)의 차이 값을 구하고, 픽셀 P(-1,1)과 픽셀 P(-1,2)의 차이 값을 구하고, 픽셀 P(0,1)과 픽셀 P(0,2)의 차이 값을 구하고, 픽셀 P(1,1)과 픽셀 P(1,2)의 차이 값을 구하고, 픽셀 P(2,1)과 픽셀 P(2,2)의 차이 값을 구한다. 이와 같은 방법으로 나머지 모든 라인의 동일 컬럼에 이웃하는 픽셀들 간의 차이를 구한다. 이렇게 하여 차영상을 구성한다.Next, reference is made to FIG. 5. 5 shows a method of obtaining a difference value between neighboring pixels adjacent to the seed line in both up and down directions. When the difference between lines is obtained, the difference between pixels at the same column position of both lines is obtained. For example, in the seed line, the difference between the pixel P (-2,0) and the neighboring pixel P (-2,1) upwards is obtained, and the pixel P (-1,0) and the pixel P (-1,1) Find the difference value of, find the difference between the seed pixel P (0,0) and the pixel P (0,1), find the difference between the pixel P (1,0) and the pixel P (1,1), and The difference between P (2,0) and pixel P (2,1) is obtained. In the same way, the difference between pixel P (-2,1) and pixel P (-2,2) is calculated, the difference between pixel P (-1,1) and pixel P (-1,2) is obtained, and the pixel Find the difference between P (0,1) and pixel P (0,2), find the difference between pixel P (1,1) and pixel P (1,2), and find pixel P (2,1) and pixel Find the difference between P (2,2). In this way, the difference between pixels neighboring the same column of all the remaining lines is obtained. In this way, the difference image is constructed.
이렇게 하면 하나의 프레임에는 1개의 시드 영상과 여러 계층의 차영상을 가질 수 있다. 즉, 상기 서브 샘플링한 시드 영상을 다시 입력 영상으로 간주해서 위와 같은 일련의 과정을 반복하게 되면 계층적 구조를 가지는 차영상을 만들 수 있기 때문이다.
다시 말하면, 상기 시드 영상을 원 영상(source image)으로 하여 이를 소정의 블록 단위로 나누고, 상기 나뉘어진 각각의 블록마다에서 하나의 시드 픽셀을 선택하고, 이 선택된 시드 픽셀을 기준으로 하여 앞서 설명한 도4 및 도5에 나타낸 것과 동일한 방법으로 인접하여 이웃하는 픽셀들 간의 차영상을 구하는 것이다.
이 과정을 n회 반복하면 n계층의 차영상 구조를 가질 수 있다. 즉, 상기 프레임에서 서브 샘플링된 시드 영상과 서로 상관관계를 갖는 여러 계층의 차영상을 만들 수 있게 된다.
이와 같이 가변적인 단계의 차영상을 만들 수 있게 함으로써 압축의 효율을 더욱 높일 수 있고, 또한 이는 곧 영상 데이터의 비트율(bit rate)을 조절할 수 있음을 의미하게 된다. 즉, 계층적인 구조의 차영상에서 어느 계층의 차영상까지를 압축 부호화하여 출력하는가에 따라 그 비트율이 선택(조절)되는 것이다. 또한, 여러 단계의 차영상을 만들 수 있게 되므로 영상 정보의 손실을 가능한한 줄여 줌으로써 압축으로 인해서 발생하는 영상의 열화도 줄일 수 있게 된다.In this way, one seed image and multiple layers of difference images may be included in one frame. That is, if the sub-sampled seed image is regarded as an input image again and the above series of processes are repeated, a difference image having a hierarchical structure can be produced.
In other words, the seed image is defined as a source image, divided into predetermined block units, one seed pixel is selected from each of the divided blocks, and the above-described drawing is performed based on the selected seed pixel. In the same manner as shown in Figs. 4 and 5, difference images between adjacent neighboring pixels are obtained.
Repeating this process n times may have an n-layer difference image structure. That is, it is possible to create a difference image of various layers having a correlation with the seed image subsampled in the frame.
By making the difference image of variable stages as described above, the efficiency of compression can be further increased, which means that the bit rate of the image data can be adjusted. That is, the bit rate is selected (adjusted) according to which layer difference image is compressed and output from the hierarchical difference image. In addition, since it is possible to produce a difference image of various stages, it is possible to reduce the loss of image information as much as possible to reduce the deterioration of the image caused by the compression.
도4 및 도5에서는 시드 픽셀을 포함하는 시드 라인의 이웃 픽셀들 간의 차이와, 인접한 시드 라인의 동일한 컬럼 위치의 픽셀들 끼리의 차이를 구하여 차영상을 구성하는 방법을 예시하였다. 그러나, 이와 반대로 시드 픽셀 P(0,0)을 기준으로 해서 상하 양쪽으로 인접하여 이웃하는 픽셀들인 P(0,2), P(0,1), P(0,0), P(0,-1), P(0,-2) 사이의 차를 구하고 이 것을 시드 컬럼(seed column)으로 삼아서, 시드 컬럼 좌우 양쪽으로 인접하는 컬럼들 간의 차이 값을 구하는 방법도 가능하다. 물론 이와 같이 컬럼의 차이를 구할 때에는 양쪽 라인의 동일한 라인 위치의 픽셀들 끼리의 차이를 구한다.4 and 5 illustrate a method of constructing a difference image by obtaining a difference between neighboring pixels of a seed line including a seed pixel and a difference between pixels of the same column position of adjacent seed lines. However, on the contrary, the neighboring pixels P (0,2), P (0,1), P (0,0), P (0, -1) It is also possible to find the difference between the adjacent columns on both the left and right sides of the seed column by finding the difference between P (0, -2) and using this as the seed column. Of course, when determining the difference between columns, the difference between pixels at the same line position of both lines is obtained.
앞서 설명한 바와 같이 시드 픽셀을 기준으로 하여 시드 라인을 구성하고 라 인들 끼리 인접한 픽셀 차를 구할 것인지, 혹은 시드 픽셀을 기준으로 하여 시드 컬럼을 구성하고 컬럼들 끼리 인접한 픽셀 차를 구할 것인지의 선택은 영상 부호화 및 복호화기를 적용하는 기기, 통신이나 매체의 환경 등에 따라 적절하게 이루어지면 된다.As described above, whether to construct a seed line based on the seed pixel and obtain adjacent pixel differences between the lines, or to configure a seed column based on the seed pixel and obtain adjacent pixel differences between the columns What is necessary is just to make it suitable according to the environment of a device, communication, a medium, etc. which apply an image | video encoding and a decoder.
다시 도2를 참조하면, 다음 단계(S213)는 시드 영상 및 차영상을 압축 부호화하는 단계이다. 즉, 상기한 바와 같이 원 영상 데이터를 서브 샘플링하여 구한 시드 영상을 이산 코사인 변환(DCT)하고 DCT 계수를 양자화(quantization)한 후 이를 다시 가변길이 부호화(Variable Length Coding: VLC) 등과 같은 무손실 부호화(lossless coding)하여 시드 영상에 대한 압축 부호화를 수행함과 함께, 상기 차영상 데이터를 이산 코사인 변환(DCT)하고 DCT 계수를 양자화한 후 이를 다시 가변길이 부호화 등과 같은 무손실 부호화하여 차영상에 대한 압축 부호화를 수행한다. 그리고 압축 부호화된 시드 영상과 차영상을 최종적으로 서로 대응시켜 출력함으로써 공간 중복성이 최대한 제거된 압축 영상 데이터가 출력될 수 있다.Referring back to FIG. 2, a next step S213 is compressing and encoding the seed image and the difference image. That is, as described above, the seed image obtained by subsampling the original image data is discrete cosine transformed (DCT), and the DCT coefficients are quantized, and then the lossy coding (Variable Length Coding (VLC)) is performed again. compression coding on the seed image by lossless coding, discrete cosine transform (DCT) of the difference image data, quantize the DCT coefficients, and then perform lossless coding such as variable length encoding to perform compression encoding on the difference image. Perform. In addition, the compressed and encoded seed image and the difference image may be finally output in correspondence with each other, thereby outputting compressed image data having the maximum spatial redundancy.
즉, 상기한 본 발명의 영상 압축 부호화 방법에 따르면 DCT의 입력으로 들어가는 영상은 차영상이기 때문에 공간 내부의 중복성이 제거된 상태이고, 따라서 압축 효율이 높아지게 된다.That is, according to the image compression encoding method of the present invention, since the image entering the input of the DCT is a difference image, the redundancy in the space is removed, thereby increasing the compression efficiency.
이렇게 압축 부호화된 영상 데이터를 복호화하는 방법은 도2에서 시드 영상 및 차영상 복호화 단계(S311), 시드 영상 및 차영상 압축 복원단계(S312), 디코딩(복호화)된 영상의 구성 및 출력단계(S313)의 수행에 따라 이루어진다.The method of decoding the compression-encoded image data includes a seed image and difference image decoding step S311, a seed image and difference image compression restoring step S312, and a configuration and output step of a decoded (decoded) image in FIG. 2. )
먼저, 시드 영상 및 차영상 복호화 단계(S311)에서는 상기 압축 부호화된 시드 영상을 무손실 복호화(inverse lossless coding = lossless decoding)하고, 또한 상기 압축 부호화된 차영상 역시 무손실 복호화한다. 그리고 다음 단계(S312)에서는 상기 복호화된 차영상 및 시드 영상 각각에 대하여 역양자화(inverse quantization) 및 역DCT 변환(inverse DCT)하여 압축을 풀어준다. 이렇게 하여 복원된 차영상과 시드 영상을 최종 단계(S313)에서 더하면 복원된 영상을 구성하여 얻을 수 있게 되는 것이다.
예를 들면, 시드 영상은 원 영상 데이터의 각 매크로 블록의 중앙에 위치한 시드 픽셀들로 구성되었다고 하면, 복화와 단계에서 상기 시드 픽셀을 매크로 블록의 중심으로 하여 상기 도 4, 도 5와 같이 이미 구해진 이웃하는 픽셀들 간의 차이 값인 차영상을 동일한 방법으로 가산함으로써 원 영상 데이터의 픽셀값으로 복원할 할 수 있는 것이다.First, in the seed image and difference image decoding step (S311), the compression-coded seed image is losslessly decoded (inverse lossless coding = lossless decoding), and the compression-coded difference image is also losslessly decoded. In the next step (S312), the decompression is performed by inverse quantization and inverse DCT on each of the decoded difference image and the seed image. In this way, by adding the reconstructed difference image and the seed image in the final step (S313), it is possible to construct and obtain the reconstructed image.
For example, if the seed image is composed of seed pixels located at the center of each macro block of the original image data, the seed image is already obtained as shown in FIG. 4 and FIG. It is possible to reconstruct the pixel value of the original image data by adding the difference image, which is a difference value between neighboring pixels, in the same manner.
도6은 본 발명에 따른 영상 압축 부호화 및 복호화 장치의 실시예 구성을 보여준다. 도6을 참조하면 본 발명에 따른 영상 압축 부호화 및 복호화 장치(CODEC)는 영상 부호화부(610)와 영상 복호화부(620)로 이루어진다.6 shows a configuration of an embodiment of an image compression encoding and decoding apparatus according to the present invention. Referring to FIG. 6, an image compression encoding and decoding apparatus (CODEC) according to the present invention includes an
영상 부호화부(610)는 입력된 원 영상(source image)의 차영상을 구하는 차영상 생성부(611)와, 상기 차영상 생성부(611)에서 생성된 차영상에 대해서 이산 코사인 변환을 수행하는 제1 DCT부(612)와, 상기 제1 DCT부(612)에서 출력된 DCT 계수를 양자화하는 제1 양자화부(613)와, 상기 제1 양자화부(613)의 양자화 데이터를 무손실 부호화하는 제1 무손실 부호화부(614)와, 상기 원 영상에 대한 시드 영상을 구하는 시드 영상 생성부(615)와, 상기 시드 영상 생성부(615)에서 생성된 시드 영상에 대해서 이산 코사인 변환을 수행하는 제2 DCT부(616)와, 상기 제2 DCT부(616)에서 출력된 DCT 계수를 양자화하는 제2 양자화부(617)와, 상기 제2 양자화부(617)의 양자화 데이터를 무손실 부호화하는 제2 무손실 부호화부(618)와, 상기 제1 무손실 부호화부(614) 및 제2 무손실 부호화부(618)의 출력을 가산하여 최종적으로 압축 부호화된 영상 데이터를 출력하는 가산부(619)를 포함한다.The
상기 영상 복호화부(620)는 입력되는 압축 부호화된 데이터 중에서 차영상 데이터를 무손실 복호화(Inverse Lossless Coding)하는 제1 무손실 복호화부(621)와, 상기 제1 무손실 복호화부(621)에서 출력된 데이터를 역양자화(Inverse Quantizaion)하는 제1 역양자화부(622)와, 상기 제1 역양자화부(622)에서 출력된 데이터를 역 이산 코사인 변환하여 차영상(624)을 출력하는 제1 역DCT(Inverse DCT)부(623)와, 상기 입력되는 압축 부호화된 데이터 중에서 시드영상 데이터를 무손실 복호화하는 제2 무손실 복호화부(625)와, 상기 제2 무손실 복호화부(625)에서 출력된 데이터를 역양자화하는 제2 역양자화부(626)와, 상기 제2 역양자화부(626)에서 출력된 데이터를 역 이산 코사인 변환하여 시드 영상(628)을 출력하는 제2 역DCT부(627)와, 상기 차영상(624) 및 시드 영상(624)을 가산하여 디코딩된 영상(decode image)을 최종적으로 출력하는 가산부(629)를 포함한다.The
이와 같이 구성된 본 발명의 영상 부호화 및 복호화 장치에 의한 영상 압축 부호화 및 복호화 과정은 앞서 설명한 영상 압축 부호화 및 복호화 방법과 동일하게 이루어지며, 이를 살펴보면 다음과 같다.The video compression encoding and decoding process by the video encoding and decoding apparatus of the present invention configured as described above is performed in the same manner as the above-described video compression encoding and decoding method.
차영상 생성부(611)는 소스 영상 데이터를 입력받아 매크로 블록마다 선택된 시드 픽셀을 기준으로 하여 상기 도4 및 도5에 나타내고 설명한 바와 같은 차영상을 구성한다. 이 차영상은 계층적 구조로 생성될 수 있음은 이미 설명하였다. 또한 이 차영상에서는 공간의 중복성이 제거된 상태이기 때문에 이후의 압축 부호화 과정을 거칠 때 그 압축 효율이 기존의 압축방법에 비하여 매우 높아지게 된다. 상기 차영상 생성부(611)에서 생성된 차영상 데이터는 제1 DCT부(612)에 입력되어 이산 코사인 변환된다. 그리고 제1 DCT부(612)에서 출력된 DCT 계수는 제1 양자화부(613)에서 양자화되고, 양자화된 데이터는 제1 무손실 부호화부(614)에서 무손실 부호화되어 가산부(619)에 공급된다. 여기서 무손실 부호화는 예를 들면, 런-길이 부호화(Run Length Coding), 가변 길이 부호화(Variable Length Coding) 등을 들 수 있다.The difference
시드 영상 생성부(615)는 소스 영상 데이터를 입력받아 이를 특정 비율로 서브 샘플링하여 도3에 나타내고 설명한 바와 같은 시드 영상을 구성한다. 상기 시드 시드 영상 생성부(615)에서 생성된 시드 영상 데이터는 제2 DCT부(616)에 입력되어 이산 코사인 변환된다. 그리고 제1 DCT부(616)에서 출력된 DCT 계수는 제2 양자화부(617)에서 양자화되고, 양자화된 데이터는 제2 무손실 부호화부(618)에서 무손실 부호화되어 가산부(619)에 공급된다. 여기서 무손실 부호화는 예를 들면, 런-길이 부호화(Run Length Coding), 가변 길이 부호화(Variable Length Coding) 등을 들 수 있다.The
가산부(619)는 상기 압축 부호화된 차영상과 시드 영상 데이터를 가산하여 최종적으로 압축 부호화된 데이터를 출력한다.The
제1 무손실 복호화부(621)는 입력되는 압축 부호화된 데이터 중에서 차영상 데이터를 무손실 복호화(inverse lossless coding)한다. 제1 역양자화부(622)는 상기 제1 무손실 복호화부(621)의 출력 데이터를 역양자화(inverse quantization)하고, 제1 역DCT부(623)는 상기 제1 역양자화부(622)에서 출력된 데이터를 역 이산 코사인 변환(Inverse DCT)함으로써 원래의 차영상을 복원하여 복원된 차영상(624) 을 출력한다. 제2 무손실 복호화부(625)는 입력되는 압축 부호화된 데이터 중에서 시드 영상 데이터를 무손실 복호화(inverse lossless coding)한다. 제2 역양자화부(626)는 상기 제2 무손실 복호화부(625)에서 출력된 데이터를 역양자화(inverse quantization)하고, 제2 역 DCT부(627)는 상기 제2 역양자화부(626)에서 출력된 데이터를 역 이산 코사인 변환(inverse DCT)함으로써 원래의 시드 영상을 복원하여 복원된 시드 영상(628)을 출력한다. 가산부(629)는 상기 복원된 차영상(624)과 시드 영상(628)을 가산함으로써 최종적으로 디코딩(복호화)된 영상을 출력하게 된다.The first
본 발명에 따른 영상 코덱은 특히 영상 내부의 공간 중복성을 최대한 제거함으로써 압축 효율을 높일 수 있다. 또한 가변적인 단계의 차영상 즉, 계층적 구조의 영상을 만들 수 있기 때문에 압축 효율의 향상과, 필요에 따른 비트율 조절이 시스템 환경에 따라 적응적으로 자유롭게 가능하고, 압축에 의한 영상의 열화를 최대한 억제할 수 있는 효과가 있다. 특히, 동영상 압축에 적용할 경우 MPEG 등에서 프레임 내부의 정보만을 이용해서 압축을 수행하는 I프레임과 같은 경우에 그 압축 효율을 높일 수 있는 효과가 있다.In particular, the image codec according to the present invention can increase compression efficiency by maximally eliminating spatial redundancy within an image. In addition, it is possible to make the difference image of hierarchical structure, that is, the hierarchical structure, so that the compression efficiency can be improved and the bit rate can be adjusted freely according to the system environment. There is an effect that can be suppressed. In particular, when applied to video compression, the compression efficiency can be increased in the case of an I frame that performs compression using only information inside a frame in MPEG or the like.
Claims (13)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020040104073A KR100670459B1 (en) | 2004-12-10 | 2004-12-10 | Image compression coding and decoding method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020040104073A KR100670459B1 (en) | 2004-12-10 | 2004-12-10 | Image compression coding and decoding method and apparatus |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20060065263A KR20060065263A (en) | 2006-06-14 |
KR100670459B1 true KR100670459B1 (en) | 2007-01-16 |
Family
ID=37160566
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020040104073A KR100670459B1 (en) | 2004-12-10 | 2004-12-10 | Image compression coding and decoding method and apparatus |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR100670459B1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9589496B2 (en) | 2013-08-27 | 2017-03-07 | Samsung Display Co., Ltd. | Temporal dithering technique used in accumulative data compression |
CN114697667A (en) * | 2022-03-04 | 2022-07-01 | 江西晶浩光学有限公司 | Image processing method, image processing device, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR960036694A (en) * | 1995-03-20 | 1996-10-28 | 배순훈 | Discrete Cosine Transform Coder Using Subsampling |
KR19990020622A (en) * | 1997-08-30 | 1999-03-25 | 전주범 | Binary Shape Signal Coding Method |
JP2003304533A (en) | 2002-04-11 | 2003-10-24 | Sony Corp | Image signal transmission apparatus and method, and image signal receiving apparatus and method |
KR20040054747A (en) * | 2001-10-26 | 2004-06-25 | 코닌클리케 필립스 일렉트로닉스 엔.브이. | Spatial scalable compression |
-
2004
- 2004-12-10 KR KR1020040104073A patent/KR100670459B1/en not_active IP Right Cessation
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR960036694A (en) * | 1995-03-20 | 1996-10-28 | 배순훈 | Discrete Cosine Transform Coder Using Subsampling |
KR19990020622A (en) * | 1997-08-30 | 1999-03-25 | 전주범 | Binary Shape Signal Coding Method |
KR20040054747A (en) * | 2001-10-26 | 2004-06-25 | 코닌클리케 필립스 일렉트로닉스 엔.브이. | Spatial scalable compression |
JP2003304533A (en) | 2002-04-11 | 2003-10-24 | Sony Corp | Image signal transmission apparatus and method, and image signal receiving apparatus and method |
Also Published As
Publication number | Publication date |
---|---|
KR20060065263A (en) | 2006-06-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100791299B1 (en) | Multi-layer based video encoding method and apparatus | |
AU2007231799B8 (en) | High-performance video transcoding method | |
US20040136457A1 (en) | Method and system for supercompression of compressed digital video | |
US20060120448A1 (en) | Method and apparatus for encoding/decoding multi-layer video using DCT upsampling | |
JP4226172B2 (en) | Video compression encoding apparatus and decoding apparatus using adaptive conversion method and method thereof | |
US20060233250A1 (en) | Method and apparatus for encoding and decoding video signals in intra-base-layer prediction mode by selectively applying intra-coding | |
JP2004502358A (en) | Encoding method for video sequence compression | |
KR20100017453A (en) | A method and an apparatus for processing a video signal | |
KR20060043115A (en) | Method and apparatus for encoding / decoding video signal using base layer | |
KR20060101131A (en) | Method and apparatus for video encoding / decoding using temporal level motion vector prediction | |
US20100086048A1 (en) | System and Method for Video Image Processing | |
KR20060088461A (en) | Method and apparatus for deriving motion vector for video block from motion vector of base layer picture in encoding / decoding video signal | |
KR20200044667A (en) | AI encoding apparatus and operating method for the same, and AI decoding apparatus and operating method for the same | |
KR20060119736A (en) | Video signal encoding method | |
KR102113904B1 (en) | Encoder, decoder and method of operation using interpolation | |
WO2006109985A1 (en) | Method and apparatus for encoding and decoding video signals in intra-base-layer prediction mode by selectively applying intra-coding | |
EP1841235A1 (en) | Video compression by adaptive 2D transformation in spatial and temporal direction | |
JP2005533432A (en) | 3D wavelet video coding method, decoding method and corresponding apparatus | |
KR102150089B1 (en) | Apparatus and method for encoding and decoding to image of ultra high definition resoutltion | |
CN101193285A (en) | Method and device for image compression coding and decoding | |
KR100670459B1 (en) | Image compression coding and decoding method and apparatus | |
JP2004511978A (en) | Motion vector compression | |
KR100679027B1 (en) | Method and apparatus for coding an image without loss of DC components | |
KR100627494B1 (en) | Video encoder and encoding method using same | |
KR100522595B1 (en) | MPEG video decoding methods and MPEG video decoders |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
PA0109 | Patent application |
Patent event code: PA01091R01D Comment text: Patent Application Patent event date: 20041210 |
|
PA0201 | Request for examination | ||
E902 | Notification of reason for refusal | ||
PE0902 | Notice of grounds for rejection |
Comment text: Notification of reason for refusal Patent event date: 20060525 Patent event code: PE09021S01D |
|
PG1501 | Laying open of application | ||
E701 | Decision to grant or registration of patent right | ||
PE0701 | Decision of registration |
Patent event code: PE07011S01D Comment text: Decision to Grant Registration Patent event date: 20061219 |
|
GRNT | Written decision to grant | ||
PR0701 | Registration of establishment |
Comment text: Registration of Establishment Patent event date: 20070110 Patent event code: PR07011E01D |
|
PR1002 | Payment of registration fee |
Payment date: 20070110 End annual number: 3 Start annual number: 1 |
|
PG1601 | Publication of registration | ||
FPAY | Annual fee payment |
Payment date: 20091230 Year of fee payment: 4 |
|
PR1001 | Payment of annual fee |
Payment date: 20091230 Start annual number: 4 End annual number: 4 |
|
LAPS | Lapse due to unpaid annual fee | ||
PC1903 | Unpaid annual fee |