KR100916535B1 - Recorded medium having program for coding and decoding using Bit Precision, and Apparatus and Method there of - Google Patents

Recorded medium having program for coding and decoding using Bit Precision, and Apparatus and Method there of Download PDF

Info

Publication number
KR100916535B1
KR100916535B1 KR1020070071779A KR20070071779A KR100916535B1 KR 100916535 B1 KR100916535 B1 KR 100916535B1 KR 1020070071779 A KR1020070071779 A KR 1020070071779A KR 20070071779 A KR20070071779 A KR 20070071779A KR 100916535 B1 KR100916535 B1 KR 100916535B1
Authority
KR
South Korea
Prior art keywords
value
decision bit
bit
target pixel
pixel
Prior art date
Application number
KR1020070071779A
Other languages
Korean (ko)
Other versions
KR20090008661A (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
Priority to KR1020070071779A priority Critical patent/KR100916535B1/en
Application filed by 주식회사 휴맥스 filed Critical 주식회사 휴맥스
Priority to EP08778887A priority patent/EP2172028A4/en
Priority to PCT/KR2008/004232 priority patent/WO2009011558A2/en
Priority to EP10152387A priority patent/EP2187643A3/en
Priority to US12/669,770 priority patent/US8411745B2/en
Priority to EP10152392A priority patent/EP2187645A3/en
Priority to EP10152390A priority patent/EP2187644A3/en
Publication of KR20090008661A publication Critical patent/KR20090008661A/en
Application granted granted Critical
Publication of KR100916535B1 publication Critical patent/KR100916535B1/en
Priority to US12/694,248 priority patent/US8009067B2/en
Priority to US12/694,242 priority patent/US8009066B2/en
Priority to US12/694,245 priority patent/US8675734B2/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • 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/102Methods 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/119Adaptive subdivision aspects, e.g. subdivision of a picture into rectangular or non-rectangular coding blocks
    • 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/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/184Methods 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 bits, e.g. of the compressed video stream

Landscapes

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

Abstract

결정 비트 부호화/복호화 장치, 방법 및 그에 따른 프로그램이 기록된 기록매체가 개시된다. Disclosed is a recording medium on which a decision bit encoding / decoding apparatus, method, and program according thereto are recorded.

결정 비트(Bit Precision) 부호화 장치는 부호화할 영상 데이터의 각 대상 화소의 예측 방법을 판단하고, 상기 예측 방법을 이용하여 상기 대상 화소의 예측값을 산출하는 예측부; 상기 예측값을 이용하여 에러값과 사인비트를 산출하고, 미리 지정된 블록의 크기부터 미리 지정된 단위만큼 상기 블록의 크기를 순차적으로 증가시키며, 상기 블록에 해당하는 상기 에러값에 상응하는 제 1 결정비트값을 선정하여 상기 에러값을 부호화하는 부호화부; 및 상기 블록의 부호화 결과를 이용하여 압축용량이 최소화되는 블록 구성을 나타내는 가변 블록 구성 정보를 산출하는 가변 블록 구성부를 포함한다. 본 발명에 따르면, 추가 비트의 발생 없이 적절한 예측기를 선택할 수 있어 압축효율이 기존보다 개선된다는 장점이 있다. The bit precision encoding apparatus may include: a prediction unit to determine a prediction method of each target pixel of the image data to be encoded, and to calculate a prediction value of the target pixel using the prediction method; An error value and a sine bit are calculated using the prediction value, and the size of the block is sequentially increased from a size of a predetermined block by a predetermined unit, and the first decision bit value corresponding to the error value corresponding to the block is calculated. An encoder which selects and encodes the error value; And a variable block configuration unit configured to calculate variable block configuration information indicating a block configuration in which the compression capacity is minimized using the encoding result of the block. According to the present invention, it is possible to select an appropriate predictor without generating additional bits, and thus the compression efficiency is improved than before.

결정 비트, Bit Precision, 부호화, 복호화, 복잡도 Decision Bits, Bit Precision, Encoding, Decoding, Complexity

Description

결정 비트 부호화/복호화 장치, 방법 및 그에 따른 프로그램이 기록된 기록매체 {Recorded medium having program for coding and decoding using Bit Precision, and Apparatus and Method there of}Apparatus and method for determining bit encoding / decoding, and recording medium recording a program according thereto {Recorded medium having program for coding and decoding using Bit Precision, and Apparatus and Method there of}

본 발명은 부호화(Coding) 및 복호화(Decoding)(이하에서는 '부/복호화'로 칭함) 장치에 관한 것으로서, 보다 상세하게는 영상 데이터의 압축 방법에 있어서 결정 비트(Bit Precision)를 이용한 부/복호화 장치, 방법 및 그 프로그램이 기록된 기록매체에 관한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an apparatus for coding and decoding (hereinafter referred to as 'decoding / decoding'), and more particularly, to encoding / decoding using bit precision in a method of compressing image data. An apparatus, a method and a recording medium having recorded thereon the program are provided.

인터넷을 통한 초당 데이터 전송량이 늘어나면서 단순 텍스트 데이터를 전송하던 과거에 비해 동영상, 사진 등 멀티미디어 데이터의 전송량이 늘어나고 있다. 이에 따른 영상 압축 기술에 대한 요구도 늘어나고 있다.  As the amount of data transmission per second over the Internet increases, the amount of multimedia data such as video and photos is increasing compared to the past when simple text data was transmitted. Accordingly, there is an increasing demand for image compression technology.

영상 데이터는 텍스트 데이터와는 달리 그 데이터 값의 중복성이 적다. 단순 부호화기로 압축을 하면 원이미지 용량과 거의 차이 나지 않는 압축률을 보인다. 이러한 영상 데이터와 텍스트 데이터의 차이점으로 인해 영상 압축에서는 예 측(prediction) 기술을 적용하고 있다.Unlike text data, video data has less redundancy. Compression with a simple encoder shows a compression ratio that is almost the same as the original image capacity. Due to the difference between the image data and the text data, image compression is applied to a prediction technique.

예측(prediction) 기술은 영상에서 한 화소의 값이 주위 인접한 화소 값과의 연관성을 이용해 대상 화소의 값을 예측하는 기술이다. 예측한 값과 실제 화소의 값의 차를 구하면 그 값은 원 영상 데이터에 비해 작은 값으로 중복성이 큰 특징을 보여 압축 효율이 높아진다.A prediction technique is a technique of predicting a value of a target pixel by using a correlation of a value of one pixel in an image with neighboring adjacent pixel values. When the difference between the predicted value and the actual pixel value is obtained, the value is smaller than that of the original image data and shows a large redundancy feature, thereby increasing the compression efficiency.

영상 압축은 두 가지로 나누어진다. 하나는 원영상의 데이터에서 사람의 눈에 크게 뛰지 않는 데이터를 제거하여 압축 효율을 높이는 손실압축과 다른 하나는 원영상 데이터의 손실이 전혀 없는 무손실 압축이다.Image compression is divided into two types. One is lossless compression, which improves the compression efficiency by removing data that does not show much to the human eye from the original image data, and the other is lossless compression with no loss of the original image data.

무손실 압축은 원 이미지와 복원 이미지가 완전히 일치하는 압축 방식으로 이미지 품질을 그대로 유지할 수 있는 장점을 갖고 있는 반면 압축 효율은 떨어진다는 문제점이 있다.Lossless compression has the advantage of maintaining the image quality as it is a compression method in which the original image and the reconstructed image are completely matched, but the compression efficiency is inferior.

또한 최근 들어 각종 모바일 미디어 기기의 등장으로 기존 영상 압축기와는 다른 요구사항이 생겼다. 모바일 미디어 기기는 제한된 전력을 필요로 하고, 저성능의 하드웨어로 이루어 지기 때문에 부/복호화 과정에 들어가는 수행시간이 짧아야 한다. 그러나, 영상 압축의 압축 효율을 높이기 위해 여러 방법이 발표되고 있으나 복호화 복잡도를 낮추는 방법은 미비하다는 문제점이 있다. Also, with the advent of various mobile media devices in recent years, different requirements from existing video compressors have arisen. Since mobile media devices require limited power and are made of low performance hardware, the execution time for the encoding / decoding process should be short. However, various methods have been published to increase the compression efficiency of image compression, but there is a problem in that the method of reducing the decoding complexity is insufficient.

상기한 바와 같은 종래의 문제점을 해결하기 위해, 본 발명은 추가 비트의 발생 없이 적절한 예측기를 선택할 수 있어 압축효율이 기존보다 개선된 부/복호화 장치, 방법 및 그 프로그램이 기록된 기록매체를 제안하는 것이다.In order to solve the conventional problems as described above, the present invention proposes an encoding / decoding apparatus, a method, and a recording medium on which the program is recorded, by which an appropriate predictor can be selected without generating additional bits. will be.

또한, 본 발명은 결정 비트 복호화 방법에서 복잡도를 낮춤과 동시에 복호화 시간을 단축시키는 복호화 장치, 방법 및 그 프로그램이 기록된 기록매체를 제안하는 것이다. In addition, the present invention proposes a decoding apparatus, a method and a recording medium on which the program is recorded, which reduces the complexity and reduces the decoding time in the decision bit decoding method.

본 발명의 또 다른 목적들은 이하의 실시예에 대한 설명을 통해 쉽게 이해될 수 있을 것이다.Still other objects of the present invention will be readily understood through the following description of the embodiments.

상기한 바와 같은 목적을 달성하기 위해, 본 발명의 일 측면에 따르면 결정 비트(Bit Precision)를 이용한 부호화 장치에 있어서, 부호화할 영상 데이터의 각 대상 화소의 예측 방법을 판단하고, 상기 예측 방법을 이용하여 상기 대상 화소의 예측값을 산출하는 예측부; 상기 예측값을 이용하여 에러값과 사인비트를 산출하고, 미리 지정된 블록의 크기부터 미리 지정된 단위만큼 상기 블록의 크기를 순차적으로 증가시키며, 상기 블록에 해당하는 상기 에러값에 상응하는 제 1 결정비트값을 선정하여 상기 에러값을 부호화하는 부호화부; 및 상기 블록의 부호화 결과를 이용하여 압축용량이 최소화되는 블록 구성을 나타내는 가변 블록 구성 정보를 산출하는 가변 블록 구성부를 포함하되, 상기 부호화부는 상기 산출된 가변 블록 구성 정보에 따른 블록으로 부호화하여 비트스트림(Bit Stream)을 생성하고, 상기 비트스트림에 상기 가변 블록 구성 정보, 상기 사인비트 및 상기 결정비트값 중 하나 이상이 삽입되고, 상기 에러값과 상기 사인비트는 상기 대상 화소의 화소값과 상기 예측값의 차이의 크기와 부호인 것을 특징으로 하는 부호화 장치가 개시된다.In order to achieve the above object, according to an aspect of the present invention, in the encoding device using a bit precision, the prediction method of each target pixel of the image data to be coded is determined, and the prediction method is used. A predicting unit calculating a predicted value of the target pixel; An error value and a sine bit are calculated using the prediction value, and the size of the block is sequentially increased from a size of a predetermined block by a predetermined unit, and the first decision bit value corresponding to the error value corresponding to the block is calculated. An encoder which selects and encodes the error value; And a variable block configuration unit configured to calculate variable block configuration information representing a block configuration in which a compression capacity is minimized using the encoding result of the block, wherein the encoder is encoded into a block according to the calculated variable block configuration information to form a bitstream. (Bit Stream) is generated, one or more of the variable block configuration information, the sign bit, and the decision bit value are inserted into the bit stream, and the error value and the sign bit are pixel values of the target pixel and the prediction value. Disclosed is a coding apparatus characterized in that the magnitude of the difference and the sign are different.

상기 예측부는 상기 대상 화소의 상측 화소에 경계면이 포함되었는지 여부로서 상기 예측 방법을 판단할 수 있다.The prediction unit may determine the prediction method based on whether or not the boundary surface is included in the upper pixel of the target pixel.

상기 예측값은 상기 대상 화소와 인접한 화소의 값을 이용해 상기 대상 화소값과 같거나 유사하게 미리 지정된 방법에 의하여 산출한 값일 수 있다.The predicted value may be a value calculated by a predetermined method that is equal to or similar to the target pixel value by using a value of a pixel adjacent to the target pixel.

상기 예측값

Figure 112007052049764-pat00001
는 하기의 수학식을 이용하여 산출되되, T는 미리 설정된 임계값, A 및 B는 상기 대상 화소의 좌측 및 상측 화소값, E, F, G 및 C는 B에 상응하는 화소를 기준으로 각각 좌상측, 상측, 우상측, 좌측 화소값일 수 있다.The predicted value
Figure 112007052049764-pat00001
Is calculated using the following equation, wherein T is a preset threshold value, A and B are the left and upper pixel values of the target pixel, and E, F, G and C are respectively the upper left on the basis of the pixel corresponding to B. It may be a side, upper side, right upper side, and left pixel value.

[수학식][Equation]

Figure 112007052049764-pat00002
인 경우,
Figure 112007052049764-pat00002
If is

Figure 112007052049764-pat00003
이고,
Figure 112007052049764-pat00003
ego,

Figure 112007052049764-pat00004
인 경우,
Figure 112007052049764-pat00004
If is

Figure 112007052049764-pat00005
,
Figure 112007052049764-pat00006
,
Figure 112007052049764-pat00007
Figure 112007052049764-pat00008
중 최소값이
Figure 112007052049764-pat00005
,
Figure 112007052049764-pat00006
,
Figure 112007052049764-pat00007
And
Figure 112007052049764-pat00008
Of the minimum

Figure 112007052049764-pat00009
인 경우,
Figure 112007052049764-pat00010
이고,
Figure 112007052049764-pat00009
If is
Figure 112007052049764-pat00010
ego,

Figure 112007052049764-pat00011
인 경우,
Figure 112007052049764-pat00012
이고,
Figure 112007052049764-pat00011
If is
Figure 112007052049764-pat00012
ego,

Figure 112007052049764-pat00013
인 경우,
Figure 112007052049764-pat00014
이고,
Figure 112007052049764-pat00013
If is
Figure 112007052049764-pat00014
ego,

Figure 112007052049764-pat00015
인 경우,
Figure 112007052049764-pat00016
임.
Figure 112007052049764-pat00015
If is
Figure 112007052049764-pat00016
being.

상기 에러값 및 상기 사인비트는 하기의 수학식을 이용하여 산출되되,

Figure 112007052049764-pat00017
는 에러값,
Figure 112007052049764-pat00018
는 대상 화소의 화소값,
Figure 112007052049764-pat00019
는 대상 화소의 예측값,
Figure 112007052049764-pat00020
는 화소값 및 예측값의 비트수,
Figure 112007052049764-pat00021
는 사인비트,
Figure 112007052049764-pat00022
는 미리 정해진 최대 에러값일 수 있다.The error value and the sine bit are calculated using the following equation,
Figure 112007052049764-pat00017
Is the error value,
Figure 112007052049764-pat00018
Is the pixel value of the target pixel,
Figure 112007052049764-pat00019
Is the predicted value of the target pixel,
Figure 112007052049764-pat00020
Is the number of bits of the pixel value and the predicted value,
Figure 112007052049764-pat00021
Is a sine bit,
Figure 112007052049764-pat00022
May be a predetermined maximum error value.

[수학식] [Equation]

Figure 112007052049764-pat00023
Figure 112007052049764-pat00023

Figure 112007052049764-pat00024
이고,
Figure 112007052049764-pat00024
ego,

Figure 112007052049764-pat00025
이면
Figure 112007052049764-pat00025
Back side

Figure 112007052049764-pat00026
Figure 112007052049764-pat00026

상기 미리 지정된 블록의 크기는 2nX2n (n은 자연수)이되, n이 1씩 순차적으로 증가할 수 있다.The pre-specified block size is 2 n X2 n can be (n is a natural number) provided that, n is sequentially increased by one.

상기 부호화부는 상기 사인비트를 상기 사인비트의 미리 지정된 묶음단위인 사인심볼로 해석할 수 있다.The encoder may interpret the sign bit as a sign symbol that is a predetermined unit of bundle of the sign bit.

상기 부호화부는 상기 제1 결정비트값에 상응하여 제2 결정비트값을 선정하고, 상기 제2 결정비트값을 이용하여 상기 제1 결정비트값을 더 부호화할 수 있다.The encoder may select a second decision bit value corresponding to the first decision bit value, and further encode the first decision bit value using the second decision bit value.

상기 부호화부는 상기 에러값 중 에러값 0의 빈도수가 에러값 2k-1 (k는 제1 결정비트값)의 빈도수보다 작을 경우, 에러값 0의 부호와 에러값 2k-1 의 부호를 교환하되, 에러값 0의 부호가 교환되었는지 여부를 표시하는 비트를 상기 비트스트림 에 삽입할 수 있다.The encoder exchanges the sign of the error value 0 and the sign of the error value 2 k -1 when the frequency of the error value 0 among the error values is smaller than the frequency of the error value 2 k -1 (k is the first decision bit value). However, a bit indicating whether or not the sign of the error value 0 is exchanged may be inserted into the bitstream.

상기 부호화부는 상기 제1 결정비트값 중 제 1 결정비트값 1의 빈도수와 나머지 제1 결정비트값의 빈도수를 비교하여, 상기 제1 결정비트값 1의 부호를 제1 결정비트값 t+1(여기서, t는 결정비트값 1보다 빈도수가 큰 결정비트값 중 최대인 결정비트값임)의 부호로 수정하고, 제1 결정비트값 2 내지 t의 부호는 제1 결정비트값 1 내지 t-1의 부호로 수정하되, 상기 비트스트림에 상기 제1 결정비트값 1의 수정된 부호를 구별하기 위한 소정의 3비트가 삽입될 수 있다.The encoder compares the frequency of the first decision bit value 1 with the frequency of the remaining first decision bit value among the first decision bit values, and compares the sign of the first decision bit value 1 with the first decision bit value t + 1 ( Where t is a decision bit value that is the largest of the decision bit values having a higher frequency than decision bit value 1), and the sign of the first decision bit values 2 to t is the value of the first decision bit values 1 to t-1. The code may be corrected by a code, but a predetermined 3 bits may be inserted into the bitstream to distinguish the modified code of the first decision bit value 1.

본 발명의 다른 측면에 따르면 결정 비트(Bit Precision)를 이용한 복호화 장치에 있어서, 복호화할 비트스트림(Bit Stream)으로부터 추출되는 가변 블록 구성 정보를 이용하여 가변 블록을 생성하는 블록 생성부; 상기 비트스트림으로부터 추출되는 결정비트값 및 상기 가변 블록 구성 정보를 이용하여 상기 비트스트림을 복호화하여 에러값을 산출하는 복호화부; 및 복호화할 영상 데이터의 각 대상 화소의 예측 방법을 판단하고, 상기 예측 방법을 이용하여 상기 대상 화소의 예측값을 산출하는 예측부; 상기 비트스트림으로부터 추출되는 사인비트, 상기 에러값 및 상기 예측값을 이용하여 화소값을 산출하는 복원부를 포함하되, 상기 에러값과 상기 사인비트는 상기 대상 화소의 화소값과 상기 예측값의 차이의 크기와 부호인 것을 특징으로 하는 부호화 장치가 제공된다.According to another aspect of the present invention, there is provided a decoding apparatus using bit precision, comprising: a block generator for generating a variable block using variable block configuration information extracted from a bit stream to be decoded; A decoder configured to decode the bitstream by using the decision bit value extracted from the bitstream and the variable block configuration information to calculate an error value; And a prediction unit to determine a prediction method of each target pixel of the image data to be decoded, and to calculate a prediction value of the target pixel using the prediction method. And a reconstruction unit configured to calculate a pixel value using the sine bit extracted from the bitstream, the error value, and the prediction value, wherein the error value and the sine bit are equal to the magnitude of the difference between the pixel value of the target pixel and the prediction value. An encoding device is provided, which is a code.

상기 예측값은 상기 대상 화소와 인접한 화소들의 값을 이용해 상기 대상 화소값과 같거나 유사하게 미리 지정된 방법에 의하여 산출한 값을 의미할 수 있다.The prediction value may mean a value calculated by a predetermined method that is equal to or similar to the target pixel value by using values of pixels adjacent to the target pixel.

상기 복호화부는 상기 비트스트림으로부터 추출되는 상기 제2 결정비트값을 이용하여 부호화된 상기 제1 결정비트값을 복호화할 수 있다.The decoder may decode the encoded first decision bit value using the second decision bit value extracted from the bitstream.

상기 복호화부는 제1 결정비트값을 이용하여 부호화된 상기 에러값을 복호화할 수 있다.The decoder may decode the error value encoded using the first decision bit value.

상기 복호화부는 상기 비트스트림에서 부호화시 상기 제1 결정비트값 중 제1 결정비트값 1의 수정된 위치를 표시한 비트를 추출하여, 상기 제1 결정비트값 1의 부호를 제1 결정비트 t(상기 수정된 위치)의 부호로 수정하고 제1 결정비트값 2 내지 t의 부호를 상응하는 제1 결정비트값 1내지 t-1의 부호로 수정할 수 있다.The decoding unit extracts a bit indicating a modified position of the first decision bit value 1 among the first decision bit values during encoding in the bitstream, and converts a sign of the first decision bit value 1 into a first decision bit t ( And the sign of the first decision bit value 2 to t to the sign of the corresponding first decision bit value 1 to t-1.

상기 복호화부는 상기 비트스트림에서 부호화시 에러값 0의 부호가 교환된 여부를 표시한 비트를 추출하여, 부호가 교환되었을 경우 상기 에러값 중 상기 에러값 0의 부호와 에러값 2k-1 (k는 제1 결정비트값)의 부호를 교환할 수 있다.The decoding unit extracts a bit indicating whether the code of the error value 0 during the encoding in the bitstream is exchanged, and if the code is exchanged, the code of the error value 0 and the error value 2 k -1 (k May exchange the sign of the first decision bit value).

상기 예측값

Figure 112007052049764-pat00027
는 하기의 수학식을 이용하여 산출되되, T는 미리 설정된 임계값, A 및 B는 상기 대상 화소의 좌측 및 상측 화소값, E, F, G 및 C는 B에 상응하는 화소를 기준으로 각각 좌상측, 상측, 우상측, 좌측 화소값일 수 있다.The predicted value
Figure 112007052049764-pat00027
Is calculated using the following equation, wherein T is a preset threshold value, A and B are the left and upper pixel values of the target pixel, and E, F, G and C are respectively the upper left on the basis of the pixel corresponding to B. It may be a side, upper side, right upper side, and left pixel value.

[수학식][Equation]

Figure 112007052049764-pat00028
인 경우,
Figure 112007052049764-pat00028
If is

Figure 112007052049764-pat00029
이고,
Figure 112007052049764-pat00029
ego,

Figure 112007052049764-pat00030
인 경우,
Figure 112007052049764-pat00030
If is

Figure 112007052049764-pat00031
,
Figure 112007052049764-pat00032
,
Figure 112007052049764-pat00033
Figure 112007052049764-pat00034
중 최소값이
Figure 112007052049764-pat00031
,
Figure 112007052049764-pat00032
,
Figure 112007052049764-pat00033
And
Figure 112007052049764-pat00034
Of the minimum

Figure 112007052049764-pat00035
인 경우,
Figure 112007052049764-pat00036
이고,
Figure 112007052049764-pat00035
If is
Figure 112007052049764-pat00036
ego,

Figure 112007052049764-pat00037
인 경우,
Figure 112007052049764-pat00038
이고,
Figure 112007052049764-pat00037
If is
Figure 112007052049764-pat00038
ego,

Figure 112007052049764-pat00039
인 경우,
Figure 112007052049764-pat00040
이고,
Figure 112007052049764-pat00039
If is
Figure 112007052049764-pat00040
ego,

Figure 112007052049764-pat00041
인 경우,
Figure 112007052049764-pat00042
임.
Figure 112007052049764-pat00041
If is
Figure 112007052049764-pat00042
being.

상기 화소값은 하기의 수학식을 이용하여 산출되되,

Figure 112007052049764-pat00043
는 에러값,
Figure 112007052049764-pat00044
는 대상 화소의 화소값,
Figure 112007052049764-pat00045
는 대상 화소의 예측값,
Figure 112007052049764-pat00046
는 화소값 및 예측값의 비트수,
Figure 112007052049764-pat00047
는 사인비트,
Figure 112007052049764-pat00048
는 미리 정해진 최대 에러값일 수 있다.The pixel value is calculated using the following equation,
Figure 112007052049764-pat00043
Is the error value,
Figure 112007052049764-pat00044
Is the pixel value of the target pixel,
Figure 112007052049764-pat00045
Is the predicted value of the target pixel,
Figure 112007052049764-pat00046
Is the number of bits of the pixel value and the predicted value,
Figure 112007052049764-pat00047
Is a sine bit,
Figure 112007052049764-pat00048
May be a predetermined maximum error value.

[수학식][Equation]

Figure 112007052049764-pat00049
Figure 112007052049764-pat00049

Figure 112007052049764-pat00050
이면,
Figure 112007052049764-pat00050
If,

Figure 112007052049764-pat00051
Figure 112007052049764-pat00051

본 발명의 또 다른 측면에 따르면 결정 비트(Bit Precision)을 이용한 부호화 방법에 있어서, (a) 부호화할 영상 데이터의 각 대상 화소에 상응하여 예측 방법을 판단하는 단계; (b) 상기 예측 방법에 상응하여 상기 대상 화소의 예측값을 산출하는 단계; (c) 상기 예측값을 이용하여 에러값과 사인비트를 산출하고, 미리 지정된 블록의 크기부터 미리 지정된 단위만큼 상기 블록의 크기를 순차적으로 증 가시키며, 상기 블록에 해당하는 상기 에러값에 상응하는 결정비트값을 선정하는 단계; (d) 상기 선정된 결정비트값을 이용하여 상기 에러값을 부호화하는 단계; (e) 상기 블록의 부호화한 결과를 이용하여 압축용량이 최소화되는 가변 블록 구성 정보를 산출하는 단계; 및 (f) 상기 가변블록 구성 정보에 따른 블록으로 부호화하여 비트스트림(Bit Stream)을 생성하는 단계를 포함하되, 상기 비트스트림에 상기 가변블록 구성 정보, 상기 사인비트 및 상기 결정비트값이 삽입되고, 상기 에러값과 상기 사인비트는 상기 대상 화소의 화소값과 상기 예측값의 차이의 크기와 부호인 것을 특징으로 하는 부호화 방법이 제공된다.According to still another aspect of the present invention, there is provided a coding method using bit precision, comprising: (a) determining a prediction method corresponding to each target pixel of image data to be encoded; (b) calculating a predicted value of the target pixel corresponding to the prediction method; (c) calculating an error value and a sine bit using the predicted value, sequentially increasing the size of the block by a predetermined unit from a size of a predetermined block, and determining a corresponding value to the error value corresponding to the block. Selecting a bit value; (d) encoding the error value using the predetermined decision bit value; (e) calculating variable block configuration information for minimizing a compression capacity by using the encoded result of the block; And (f) encoding a block according to the variable block configuration information to generate a bit stream, wherein the variable block configuration information, the sign bit, and the determination bit value are inserted into the bit stream. And the error value and the sine bit are the magnitude and the sign of the difference between the pixel value of the target pixel and the prediction value.

상기 (a)단계는 상기 대상 화소의 상측 화소에 경계면이 포함되었는지 여부로서 상기 예측 방법을 판단할 수 있다.In step (a), the prediction method may be determined as to whether or not the boundary surface is included in the upper pixel of the target pixel.

상기 예측값은 상기 대상 화소와 인접한 화소들의 값을 이용해 상기 대상 화소값과 같거나 유사하게 미리 지정된 방법에 의하여 산출한 값을 의미할 수 있다.The prediction value may mean a value calculated by a predetermined method that is equal to or similar to the target pixel value by using values of pixels adjacent to the target pixel.

상기 예측값

Figure 112007052049764-pat00052
는 하기의 수학식을 이용하여 산출되되, T는 미리 설정된 임계값, A 및 B는 상기 대상 화소의 좌측 및 상측 화소값, E, F, G 및 C는 B에 상응하는 화소를 기준으로 각각 좌상측, 상측, 우상측, 좌측 화소값일 수 있다.The predicted value
Figure 112007052049764-pat00052
Is calculated using the following equation, wherein T is a preset threshold value, A and B are the left and upper pixel values of the target pixel, and E, F, G and C are respectively the upper left on the basis of the pixel corresponding to B. It may be a side, upper side, right upper side, and left pixel value.

[수학식] [Equation]

Figure 112007052049764-pat00053
인 경우,
Figure 112007052049764-pat00053
If is

Figure 112007052049764-pat00054
이고,
Figure 112007052049764-pat00054
ego,

Figure 112007052049764-pat00055
인 경우,
Figure 112007052049764-pat00055
If is

Figure 112007052049764-pat00056
,
Figure 112007052049764-pat00057
,
Figure 112007052049764-pat00058
Figure 112007052049764-pat00059
중 최소값이
Figure 112007052049764-pat00056
,
Figure 112007052049764-pat00057
,
Figure 112007052049764-pat00058
And
Figure 112007052049764-pat00059
Of the minimum

Figure 112007052049764-pat00060
인 경우,
Figure 112007052049764-pat00061
이고,
Figure 112007052049764-pat00060
If is
Figure 112007052049764-pat00061
ego,

Figure 112007052049764-pat00062
인 경우,
Figure 112007052049764-pat00063
이고,
Figure 112007052049764-pat00062
If is
Figure 112007052049764-pat00063
ego,

Figure 112007052049764-pat00064
인 경우,
Figure 112007052049764-pat00065
이고,
Figure 112007052049764-pat00064
If is
Figure 112007052049764-pat00065
ego,

Figure 112007052049764-pat00066
인 경우,
Figure 112007052049764-pat00067
임.
Figure 112007052049764-pat00066
If is
Figure 112007052049764-pat00067
being.

상기 에러값과 상기 사인비트는 하기의 수학식을 이용하여 산출되되,

Figure 112007052049764-pat00068
는 에러값,
Figure 112007052049764-pat00069
는 대상 화소의 화소값,
Figure 112007052049764-pat00070
는 대상 화소의 예측값,
Figure 112007052049764-pat00071
는 화소값 및 예측값의 비트수,
Figure 112007052049764-pat00072
는 사인비트,
Figure 112007052049764-pat00073
는 미리 정해진 최대 에러값인 것을 특징으로 하되, 상기 에러값과 사인값은 상기 대상 화소의 화소값과 상기 예측값의 차이의 크기와 부호일 수 있다.The error value and the sine bit are calculated using the following equation,
Figure 112007052049764-pat00068
Is the error value,
Figure 112007052049764-pat00069
Is the pixel value of the target pixel,
Figure 112007052049764-pat00070
Is the predicted value of the target pixel,
Figure 112007052049764-pat00071
Is the number of bits of the pixel value and the predicted value,
Figure 112007052049764-pat00072
Is a sine bit,
Figure 112007052049764-pat00073
Is a predetermined maximum error value, wherein the error value and the sine value may be the magnitude and sign of the difference between the pixel value of the target pixel and the prediction value.

[수학식][Equation]

Figure 112007052049764-pat00074
Figure 112007052049764-pat00074

Figure 112007052049764-pat00075
이고,
Figure 112007052049764-pat00075
ego,

Figure 112007052049764-pat00076
이면
Figure 112007052049764-pat00076
Back side

Figure 112007052049764-pat00077
Figure 112007052049764-pat00077

상기 미리 지정된 블록의 크기는 2nX2n (n은 자연수)이되, n이 1씩 순차적으 로 증가할 수 잇다.The pre-specified block size is 2 n X2 n (n is a natural number) provided that, n this piece can be increased by one in sequence.

상기 (c)단계에서 상기 사인비트는 상기 사인비트의 미리 지정된 묶음단위인 사인심볼로 해석될 수 있다.In step (c), the sign bit may be interpreted as a sign symbol which is a predetermined unit of bundle of the sign bit.

상기 (c)단계는 (g1) 상기 에러값에 상응하여 제1 결정비트값을 선정하는 단계를 포함할 수 있다.Step (c) may include (g1) selecting a first decision bit value corresponding to the error value.

상기 (c)단계는 (g1)단계 이후에 (g2) 상기 제1 결정비트값에 상응하여 제2 결정비트값을 선정하는 단계를 더 포함할 수 있다.Step (c) may further include (g2) selecting a second decision bit value corresponding to the first decision bit value after step (g1).

상기 (d)단계는 상기 에러값 중 에러값 0의 빈도수가 에러값 2k-1 (k는 제1 결정비트값)의 빈도수보다 작을 경우, 에러값 0의 부호와 에러값 k의 부호를 교환하되, 에러값 0의 부호가 교환되었는지 여부를 표시하는 비트를 상기 비트스트림에 삽입할 수 있다.In the step (d), when the frequency of the error value 0 among the error values is smaller than the frequency of the error value 2 k -1 (k is the first decision bit value), the sign of the error value 0 and the sign of the error value k are exchanged. However, a bit indicating whether or not the sign of the error value 0 is exchanged may be inserted into the bitstream.

상기 (d)단계는 상기 제1 결정비트값 중 제 1 결정비트값 1의 빈도수와 나머지 제1 결정비트값의 빈도수를 비교하여, 상기 제1 결정비트값 1의 부호를 제1 결정비트값 t+1(여기서, t는 결정비트값 1보다 빈도수가 큰 결정비트값 중 최대인 결정비트값임)의 부호로 수정하고, 제1 결정비트값 2 내지 t의 부호는 제1 결정비트값 1 내지 t-1의 부호로 수정하되, 상기 비트스트림에 상기 제1 결정비트값 1의 수정된 부호를 구별하기 위한 소정의 3비트가 삽입될 수 있다.In step (d), the frequency of the first decision bit value 1 among the first decision bit values is compared with the frequency of the remaining first decision bit values, and the sign of the first decision bit value 1 is converted into the first decision bit value t. Is corrected to a sign of +1 (where t is a decision bit value that is the largest of the decision bit values having a higher frequency than decision bit value 1), and the sign of the first decision bit values 2 to t is the first decision bit value 1 to t Modified by a sign of -1, a predetermined 3 bits may be inserted into the bitstream to distinguish the modified sign of the first decision bit value 1.

본 발명의 또 다른 측면에 따르면 결정 비트(Bit Precision)을 이용한 복호 화 방법에 있어서, (a) 복호화할 비트스트림(bit stream)으로부터 가변 블록 구성 정보를 추출하여 가변 블록을 생성하는 단계; (b) 상기 비트스트림으로부터 결정비트값을 추출하는 단계; (c) 상기 결정비트값과 상기 가변 블록을 이용하여 상기 비트스트림을 복호화하여 에러값을 산출하는 단계; (d) 복호화할 영상 데이터의 각 대상 화소의 예측 방법을 판단하고, 상기 예측 방법을 이용하여 상기 대상 화소의 예측값을 산출하는 단계; (d) 상기 비트스트림으로부터 추출되는 사인비트, 상기 에러값 및 상기 예측값을 이용하여 영상 데이터로 복원하는 단계를 포함하되, 상기 에러값과 상기 사인비트는 상기 대상 화소의 화소값과 상기 예측값의 차이의 크기와 부호인 것을 특징으로 하는 복호화 방법이 제공된다.According to still another aspect of the present invention, there is provided a decoding method using bit precision, comprising: (a) generating a variable block by extracting variable block configuration information from a bit stream to be decoded; (b) extracting a decision bit value from the bitstream; (c) decoding the bitstream using the decision bit value and the variable block to calculate an error value; (d) determining a prediction method of each target pixel of the image data to be decoded, and calculating a prediction value of the target pixel using the prediction method; (d) restoring image data by using a sine bit extracted from the bitstream, the error value, and the prediction value, wherein the error value and the sine bit are a difference between a pixel value of the target pixel and the prediction value. There is provided a decoding method characterized in that the magnitude and sign of.

상기 예측값은 상기 대상 화소와 인접한 화소의 값을 이용해 상기 대상 화소값과 같거나 유사하게 미리 지정된 방법에 의하여 산출한 값을 의미할 수 있다.The prediction value may mean a value calculated by a predetermined method that is equal to or similar to the target pixel value by using a value of a pixel adjacent to the target pixel.

상기 (b)단계는 (e1) 상기 에러값에 상응한 제1 결정비트값을 상기 비트스트림으로부터 추출하는 단계를 포함하고, 상기 (c)단계는 (f1) 상기 제1 결정비트값을 이용하여 부호화된 상기 에러값을 복호화하는 단계를 포함할 수 있다.Step (b) includes (e1) extracting a first decision bit value corresponding to the error value from the bitstream, and (c) step (f1) using the first decision bit value. And decoding the encoded error value.

상기 (b)단계는 (e1)단계 이전에 상기 비트스트림으로부터 상기 제2 비트스트림을 추출하는 단계를 더 포함하고, 상기 (c)단계는 (f1)단계 이전에 상기 제2 결정비트값을 이용하여 부호화된 상기 제1 결정비트값을 복호화하는 단계를 더 포함할 수 있다.Step (b) further includes extracting the second bitstream from the bitstream before step (e1), and step (c) uses the second decision bit value before step (f1). And decoding the encoded first decision bit value.

상기 (c)단계는 상기 비트스트림에서 부호화시 에러값 0의 부호를 교환한 여부를 표시한 비트를 추출하여, 부호가 교환된 것으로 표시된 경우 상기 에러값 중 상기 에러값 0의 부호와 에러값 2k-1 (k는 제1 결정비트값)의 부호를 교환할 수 있다.Step (c) extracts a bit indicating whether or not the code of error value 0 is exchanged during encoding in the bitstream, and if the code is indicated to be exchanged, the code of error value 0 and error value 2 among the error values. The sign of k -1 (k is the first decision bit value) can be exchanged.

상기 (c)단계는 상기 비트스트림에서 부호화시 상기 제1 결정비트값 중 제1 결정비트값 1의 수정된 위치를 표시한 비트를 추출하여, 상기 제1 결정비트값 1의 부호를 제1 결정비트값 t(상기 수정된 위치)의 부호로 교환하고 제1 결정비트값 2내지 t의 부호를 상응하는 제1 결정비트값 1내지 t-1의 부호로 수정할 수 있다.Step (c) extracts a bit indicating a modified position of a first decision bit value 1 of the first decision bit values during encoding in the bitstream, and first determines a sign of the first decision bit value 1. The sign of the bit value t (the modified position) can be exchanged and the sign of the first decision bit value 2 to t can be modified to the sign of the corresponding first decision bit value 1 to t-1.

상기 예측값

Figure 112007052049764-pat00078
는 하기의 수학식을 이용하여 산출되되, T는 미리 설정된 임계값, A 및 B는 상기 대상 화소의 좌측 및 상측 화소값, E, F, G 및 C는 B에 상응하는 화소를 기준으로 각각 좌상측, 상측, 우상측, 좌측 화소값일 수 있다.The predicted value
Figure 112007052049764-pat00078
Is calculated using the following equation, wherein T is a preset threshold value, A and B are the left and upper pixel values of the target pixel, and E, F, G and C are respectively the upper left on the basis of the pixel corresponding to B. It may be a side, upper side, right upper side, and left pixel value.

[수학식] [Equation]

Figure 112007052049764-pat00079
인 경우,
Figure 112007052049764-pat00079
If is

Figure 112007052049764-pat00080
이고,
Figure 112007052049764-pat00080
ego,

Figure 112007052049764-pat00081
인 경우,
Figure 112007052049764-pat00081
If is

Figure 112007052049764-pat00082
,
Figure 112007052049764-pat00083
,
Figure 112007052049764-pat00084
Figure 112007052049764-pat00085
중 최소값이
Figure 112007052049764-pat00082
,
Figure 112007052049764-pat00083
,
Figure 112007052049764-pat00084
And
Figure 112007052049764-pat00085
Of the minimum

Figure 112007052049764-pat00086
인 경우,
Figure 112007052049764-pat00087
이고,
Figure 112007052049764-pat00086
If is
Figure 112007052049764-pat00087
ego,

Figure 112007052049764-pat00088
인 경우,
Figure 112007052049764-pat00089
이고,
Figure 112007052049764-pat00088
If is
Figure 112007052049764-pat00089
ego,

Figure 112007052049764-pat00090
인 경우,
Figure 112007052049764-pat00091
이고,
Figure 112007052049764-pat00090
If is
Figure 112007052049764-pat00091
ego,

Figure 112007052049764-pat00092
인 경우,
Figure 112007052049764-pat00093
임.
Figure 112007052049764-pat00092
If is
Figure 112007052049764-pat00093
being.

상기 화소값은 하기의 수학식을 이용하여 산출되되,

Figure 112007052049764-pat00094
는 에러값,
Figure 112007052049764-pat00095
는 대상 화소의 화소값,
Figure 112007052049764-pat00096
는 대상 화소의 예측값,
Figure 112007052049764-pat00097
는 화소값 및 예측값의 비트수,
Figure 112007052049764-pat00098
는 사인비트에 따라 1 또는 -1을 가지는 사인값,
Figure 112007052049764-pat00099
는 미리 정해진 최대 에러값인 것을 특징으로 하되, 상기 에러값과 사인비트는 상기 대상 화소의 화소값과 상기 예측값의 차이의 크기와 부호일 수 있다.The pixel value is calculated using the following equation,
Figure 112007052049764-pat00094
Is the error value,
Figure 112007052049764-pat00095
Is the pixel value of the target pixel,
Figure 112007052049764-pat00096
Is the predicted value of the target pixel,
Figure 112007052049764-pat00097
Is the number of bits of the pixel value and the predicted value,
Figure 112007052049764-pat00098
Is a sine value with 1 or -1 depending on the sine bit,
Figure 112007052049764-pat00099
Is a predetermined maximum error value, wherein the error value and the sine bit may be the magnitude and sign of the difference between the pixel value of the target pixel and the prediction value.

[수학식] [Equation]

Figure 112007052049764-pat00100
Figure 112007052049764-pat00100

Figure 112007052049764-pat00101
이면,
Figure 112007052049764-pat00101
If,

Figure 112007052049764-pat00102
Figure 112007052049764-pat00102

본 발명의 또 다른 측면에 따르면 결정 비트(Bit precision)을 이용한 부호화 방법을 수행하기 위해 부호화 장치에 의해 실행될 수 있는 명령어들의 프로그램이 유형적으로 구현되어 있으며, 상기 부호화 장치에 의해 판독될 수 있는 프로그램을 기록한 기록매체 있어서, (a) 부호화할 영상 데이터의 각 대상 화소에 상응하여 예측 방법을 판단하는 단계; (b) 상기 예측 방법에 상응하여 상기 대상 화소의 예측값을 산출하는 단계; (c) 상기 예측값을 이용하여 에러값과 사인비트를 산출하고, 미리 지정된 블록의 크기부터 미리 지정된 단위만큼 상기 블록의 크기를 순차적으로 증가시키며, 상기 블록에 해당하는 상기 에러값에 상응하는 결정비트값을 선정하는 단계; (d) 상기 선정된 결정비트값을 이용하여 상기 에러값을 부호화하는 단계; (e) 상기 블록의 부호화한 결과를 이용하여 압축용량이 최소화되는 가변 블록 구성 정보를 산출하는 단계; 및 (f) 상기 가변블록 구성 정보에 따른 블록으로 부호화하여 비트스트림(Bit Stream)을 생성하는 단계를 수행하되, 상기 비트스트림에 상기 가변블록 구성 정보, 상기 사인비트 및 상기 결정비트값이 삽입되고, 상기 에러값과 상기 사인비트는 상기 대상 화소의 화소값과 상기 예측값의 차이의 크기와 부호인 것을 특징으로 하는 프로그램이 기록된 기록매체가 제공된다.According to another aspect of the present invention, a program of instructions that can be executed by an encoding apparatus is tangibly implemented to perform an encoding method using bit precision, and a program that can be read by the encoding apparatus is implemented. A recording medium, comprising: (a) determining a prediction method corresponding to each target pixel of image data to be encoded; (b) calculating a predicted value of the target pixel corresponding to the prediction method; (c) calculating an error value and a sine bit using the prediction value, sequentially increasing the size of the block by a predetermined unit from a size of a predetermined block, and determining bits corresponding to the error value corresponding to the block. Selecting a value; (d) encoding the error value using the predetermined decision bit value; (e) calculating variable block configuration information for minimizing a compression capacity by using the encoded result of the block; And (f) generating a bit stream by encoding the block according to the variable block configuration information, wherein the variable block configuration information, the sign bit, and the decision bit value are inserted into the bit stream. And the error value and the sine bit are magnitudes and signs of the difference between the pixel value of the target pixel and the prediction value.

,,

본 발명의 또 다른 측면에 따르면 결정 비트(Bit Precision)을 이용한 복호화 방법을 수행하기 위해 복호화 장치에 의해 실행될 수 있는 명령어들의 프로그램이 유형적으로 구현되어 있으며, 상기 복호화 장치에 의해 판독될 수 있는 프로그램을 기록한 기록매체에 있어서, (a) 복호화할 비트스트림(bit stream)으로부터 가변 블록 구성 정보를 추출하여 가변 블록을 생성하는 단계; (b) 상기 비트스트림으로부터 결정비트값을 추출하는 단계; (c) 상기 결정비트값과 상기 가변 블록을 이용하여 상기 비트스트림을 복호화하여 에러값을 산출하는 단계; (d) 복호화할 영상 데이터의 각 대상 화소의 예측 방법을 판단하고, 상기 예측 방법을 이용하여 상기 대상 화소의 예측값을 산출하는 단계; (d) 상기 비트스트림으로부터 추출되는 사인비트, 상기 에러값 및 상기 예측값을 이용하여 영상 데이터로 복원하는 단계를 수행하되, 상기 에러값과 상기 사인비트는 상기 대상 화소의 화소값과 상기 예측값의 차이의 크기와 부호인 것을 특징으로 하는 프로그램이 기록된 기록매체가 제공된 다.According to another aspect of the present invention, a program of instructions that can be executed by a decoding apparatus is tangibly implemented to perform a decoding method using bit precision, and a program that can be read by the decoding apparatus is implemented. A recording medium comprising: (a) extracting variable block configuration information from a bit stream to be decoded to generate a variable block; (b) extracting a decision bit value from the bitstream; (c) decoding the bitstream using the decision bit value and the variable block to calculate an error value; (d) determining a prediction method of each target pixel of the image data to be decoded, and calculating a prediction value of the target pixel using the prediction method; (d) restoring image data by using a sine bit extracted from the bitstream, the error value, and the prediction value, wherein the error value and the sine bit are a difference between a pixel value of the target pixel and the prediction value. Provided is a recording medium on which a program is recorded, the size of which is and the sign.

본 발명에 의한 부/복호화 장치, 방법 및 그 프로그램이 기록된 기록매체는 추가 비트의 발생 없이 적절한 예측기를 선택할 수 있어 압축효율이 기존보다 개선된다는 장점이 있다. The encoding / decoding apparatus, method and recording medium having recorded thereon the program according to the present invention have an advantage that the compression efficiency can be improved compared to the conventional one by selecting an appropriate predictor without generating additional bits.

또한, 본 발명에 의한 결정 비트 복호화 방법에서 복잡도를 낮춤과 동시에 복호화 시간을 단축시킨다는 장점이 있다. In addition, in the decision bit decoding method according to the present invention, there is an advantage that the complexity is reduced and the decoding time is reduced.

상기한 본 발명의 실시예는 예시의 목적을 위해 개시된 것이고, 본 발명에 대해 통상의 지식을 가진 당업자라면 본 발명의 사상과 범위 안에서 다양한 수정, 변경, 부가가 가능할 것이며, 이러한 수정, 변경 및 부가는 하기의 특허청구범위에 속하는 것으로 보아야 할 것이다.The above-described embodiments of the present invention are disclosed for the purpose of illustration, and those skilled in the art may make various modifications, changes, and additions within the spirit and scope of the present invention. Should be considered to be within the scope of the following claims.

본 발명은 다양한 변환을 가할 수 있고 여러 가지 실시예를 가질 수 있는 바, 특정 실시예들을 도면에 예시하고 상세한 설명에 상세하게 설명하고자 한다. 그러나, 이는 본 발명을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 본 발명의 사상 및 기술 범위에 포함되는 모든 변환, 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다. 본 발명을 설명함에 있어서 관련된 공지 기술에 대한 구체 적인 설명이 본 발명의 요지를 흐릴 수 있다고 판단되는 경우 그 상세한 설명을 생략한다.As the invention allows for various changes and numerous embodiments, particular embodiments will be illustrated in the drawings and described in detail in the written description. However, this is not intended to limit the present invention to specific embodiments, it should be understood to include all transformations, equivalents, and substitutes included in the spirit and scope of the present invention. In the following description of the present invention, if it is determined that the detailed description of the related known technology may obscure the gist of the present invention, the detailed description thereof will be omitted.

제1, 제2 등의 용어는 다양한 구성요소들을 설명하는데 사용될 수 있지만, 상기 구성요소들은 상기 용어들에 의해 한정되어서는 안 된다. 상기 용어들은 하나의 구성요소를 다른 구성요소로부터 구별하는 목적으로만 사용된다. Terms such as first and second may be used to describe various components, but the components should not be limited by the terms. The terms are used only for the purpose of distinguishing one component from another.

본 발명은 다양한 변경을 가할 수 있고 여러 가지 실시예를 가질 수 있는 바, 특정 실시예들을 도면에 예시하고 상세한 설명에 상세하게 설명하고자 한다. 그러나, 이는 본 발명을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 본 발명의 사상 및 기술 범위에 포함되는 모든 변경, 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다. 본 발명을 설명함에 있어서 관련된 공지 기술에 대한 구체적인 설명이 본 발명의 요지를 흐릴 수 있다고 판단되는 경우 그 상세한 설명을 생략한다.As the invention allows for various changes and numerous embodiments, particular embodiments will be illustrated in the drawings and described in detail in the written description. However, this is not intended to limit the present invention to specific embodiments, it should be understood to include all modifications, equivalents, and substitutes included in the spirit and scope of the present invention. In the following description of the present invention, if it is determined that the detailed description of the related known technology may obscure the gist of the present invention, the detailed description thereof will be omitted.

제1, 제2 등의 용어는 다양한 구성요소들을 설명하는데 사용될 수 있지만, 상기 구성요소들은 상기 용어들에 의해 한정되어서는 안 된다. 상기 용어들은 하나의 구성요소를 다른 구성요소로부터 구별하는 목적으로만 사용된다. 예를 들어, 본 발명의 권리 범위를 벗어나지 않으면서 제1 구성요소는 제2 구성요소로 명명될 수 있고, 유사하게 제2 구성요소도 제1 구성요소로 명명될 수 있다. 및/또는 이라는 용어는 복수의 관련된 기재된 항목들의 조합 또는 복수의 관련된 기재된 항목들 중의 어느 항목을 포함한다. Terms such as first and second may be used to describe various components, but the components should not be limited by the terms. The terms are used only for the purpose of distinguishing one component from another. For example, without departing from the scope of the present invention, the first component may be referred to as the second component, and similarly, the second component may also be referred to as the first component. The term and / or includes a combination of a plurality of related items or any item of a plurality of related items.

어떤 구성요소가 다른 구성요소에 "연결되어" 있다거나 "접속되어" 있다고 언급된 때에는, 그 다른 구성요소에 직접적으로 연결되어 있거나 또는 접속되어 있을 수도 있지만, 중간에 다른 구성요소가 존재할 수도 있다고 이해되어야 할 것이다. 반면에, 어떤 구성요소가 다른 구성요소에 "직접 연결되어" 있다거나 "직접 접속되어" 있다고 언급된 때에는, 중간에 다른 구성요소가 존재하지 않는 것으로 이해되어야 할 것이다. When a component is referred to as being "connected" or "connected" to another component, it may be directly connected to or connected to that other component, but it may be understood that other components may be present in between. Should be. On the other hand, when a component is said to be "directly connected" or "directly connected" to another component, it should be understood that there is no other component in between.

본 출원에서 사용한 용어는 단지 특정한 실시예를 설명하기 위해 사용된 것으로, 본 발명을 한정하려는 의도가 아니다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 출원에서, "포함하다" 또는 "가지다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.The terminology used herein is for the purpose of describing particular example embodiments only and is not intended to be limiting of the present invention. Singular expressions include plural expressions unless the context clearly indicates otherwise. In this application, the terms "comprise" or "have" are intended to indicate that there is a feature, number, step, operation, component, part, or combination thereof described in the specification, and one or more other features. It is to be understood that the present invention does not exclude the possibility of the presence or the addition of numbers, steps, operations, components, components, or a combination thereof.

다르게 정의되지 않는 한, 기술적이거나 과학적인 용어를 포함해서 여기서 사용되는 모든 용어들은 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자에 의해 일반적으로 이해되는 것과 동일한 의미를 가지고 있다. 일반적으로 사용되는 사전에 정의되어 있는 것과 같은 용어들은 관련 기술의 문맥상 가지는 의미와 일치하는 의미를 가지는 것으로 해석되어야 하며, 본 출원에서 명백하게 정의하지 않는 한, 이상적이거나 과도하게 형식적인 의미로 해석되지 않는다.Unless defined otherwise, all terms used herein, including technical or scientific terms, have the same meaning as commonly understood by one of ordinary skill in the art. Terms such as those defined in the commonly used dictionaries should be construed as having meanings consistent with the meanings in the context of the related art, and are not construed in ideal or excessively formal meanings unless expressly defined in this application. Do not.

이하, 본 발명의 실시예를 첨부한 도면들을 참조하여 상세히 설명하기로 한 다. 본 발명을 설명함에 있어 전체적인 이해를 용이하게 하기 위하여 도면 번호에 상관없이 동일한 수단에 대해서는 동일한 참조 번호를 사용하기로 한다.Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings. In the following description of the present invention, the same reference numerals will be used for the same means regardless of the reference numerals in order to facilitate the overall understanding.

먼저, 본 발명에 따른 결정 비트값을 이용한 부호화 방식(이하, '결정 비트 부호화'라 칭함)에 대한 이해를 돕기 위하여, 그 개념을 설명하면 다음과 같다.First, to help understand the encoding scheme (hereinafter, referred to as 'decision bit encoding') using the decision bit value according to the present invention, the concept will be described.

본 발명에 따른 결정 비트 부호화 방법은, 입력 데이터 심볼값들에 대하여 고정 비트값을 일례로 비용함수 등을 이용하여 결정하고, 그 값 크기만큼의 비트를 이용하여 심볼값을 이진화하는 방법이다. 예를 들어, 입력된 심볼값들이 {2, 1, 0, 4, 5, 3}이라고 하고, 결정 비트값이 2비트라고 가정하자. 2개의 비트로 표현할 수 있는 값은 0부터 3까지의 값을 표현할 수 있다. 그런데, 심볼값이 3보다 큰 경우에는 2개의 비트로는 표현이 불가능하므로, 추가적으로 2개의 비트를 더 할당하여 3보다 큰 값을 표현하게 된다. 보다 상세하게 설명하면 다음과 같다. 심볼값 2는 해당 값을 그대로 이진화하면 '10'으로 표현되고, 심볼값 '1'은 이진화하면 '01'로 표현되며, 심볼값 '0'은 이진화하면 '00'으로 표현된다. 그런데, 심볼값 '4'는 2비트로 표현되는 최대값인 3보다 크기 때문에 2비트만으로는 표현이 불가능하다. 따라서 처음 2개의 비트값으로 표현 가능한 최대값인 3을 '11'로 표현하고, 부족한 값인 1을 '01'로 표현하여 2개의 결과를 연결하게 된다. 즉, 심볼값 '4'는 '1101'로 표현하면 된다. 심볼값 5의 경우는 심볼값 4의 경우와 유사하게 2비트를 이용한 최대값 3과 잉여값 2를 결합하여 '1110'으로 표현한다. 심볼값 3인 경우에는 2비트로 표현이 가능하지만, 이 경우에 3보다 큰 값을 표현하기 위한 경우와 구별이 불 가능한 관계로 역시 추가적인 2비트를 추가하여 잉여값이 0인 경우로 '1100'으로 표현하게 된다.The decision bit encoding method according to the present invention is a method of determining a fixed bit value with respect to input data symbol values using, for example, a cost function, and binarizing the symbol value using bits as large as the value. For example, assume that the input symbol values are {2, 1, 0, 4, 5, 3}, and the decision bit value is 2 bits. A value that can be represented by two bits can represent a value from 0 to 3. However, if the symbol value is larger than 3, two bits cannot be represented, and thus, additionally two more bits are allocated to represent a value larger than three. More detailed description is as follows. The symbol value 2 is represented by '10' when the value is binarized as it is, the symbol value '1' is represented by '01' when it is binarized, and the symbol value '0' is represented by '00' when it is binarized. However, since the symbol value '4' is larger than 3, which is the maximum value represented by 2 bits, the symbol value '4' cannot be represented by only 2 bits. Therefore, 3, the maximum value that can be represented by the first two bit values, is represented by '11', and insufficient value 1 is represented by '01', thereby connecting two results. That is, the symbol value '4' may be expressed as '1101'. Similarly to the symbol value 4, the symbol value 5 is expressed as '1110' by combining the maximum value 3 and the surplus value 2 using 2 bits. In the case of symbol value 3, 2 bits can be expressed. However, in this case, it is indistinguishable from the case of expressing a value larger than 3, and additional 2 bits are added so that the surplus value is 0. Will be represented.

상기에서 설명한 결정 비트 부호화 방식을 예를 들어 데이터의 심볼값이 0 내지 9인 경우에 적용하면 하기의 표 1과 같이 나타낼 수 있다.If the above-described decision bit coding scheme is applied to a case where the symbol value of data is 0 to 9, for example, it may be represented as shown in Table 1 below.

결정비트값 1비트Decision bit value 1 bit 결정비트값 2 비트Decision bit value 2 bit 결정비트값 3 비트Decision bit value 3 bit 결정비트값 4 비트Decision bit value 4 bit 결정비트값 5 비트Decision bit value 5 bits 00 00 0000 000000 00000000 0000000000 1One 0101 0101 001001 00010001 0000100001 22 001001 1010 010010 00100010 0001000010 33 00010001 11001100 011011 00110011 0001100011 44 0000100001 11011101 100100 01000100 0010000100 55 000001000001 11101110 101101 01010101 0010100101 66 00000010000001 111100111100 110110 01100110 0011000110 77 0000000100000001 111101111101 111000111000 01110111 0011100111 88 000000001000000001 111110111110 111001111001 10001000 0100001000 99 00000000010000000001 1111110011111100 111010111010 10011001 0100101001

이와 같이 결정 비트를 이용하여 입력되는 데이터를 부호화함으로써, 입력 데이터들에 대한 부호화가 가능할 뿐만 아니라, 적은 계산으로 기존의 호프만 부호화 방식과 유사한 압축 성능을 얻을 수 있다.By encoding the input data using the decision bits as described above, not only the encoding of the input data can be performed, but also the compression performance similar to that of the conventional Hoffman coding method can be obtained with little calculation.

도 1은 본 발명의 일 실시예에 따른 부호화 장치의 구성도이고, 도 2는 본 발명의 일 실시예에 따른 부호화 방법의 순서도이다.1 is a block diagram of an encoding apparatus according to an embodiment of the present invention, and FIG. 2 is a flowchart of an encoding method according to an embodiment of the present invention.

도 1을 참조하면, 본 발명의 실시예에 따른 결정 비트 부호화 장치(100)는 데이터 입력부(110), 예측부(120), 부호화부(130), 가변 블록 구성부(140), 및 비트스트림(bit stream) 전송부(150)를 포함할 수 있다. Referring to FIG. 1, the decision bit encoding apparatus 100 according to an exemplary embodiment of the present invention may include a data input unit 110, a prediction unit 120, an encoding unit 130, a variable block construction unit 140, and a bitstream. (bit stream) may include a transmission unit 150.

이하에서, 발명의 이해와 설명의 편의를 도모하기 위하여, 도 1의 각 구성요소의 기능 및 동작을 도 2의 본 발명의 실시예에 따른 부호화 방법의 순서도를 참조하여 설명한다. Hereinafter, in order to facilitate understanding and explanation of the invention, the functions and operations of the components of FIG. 1 will be described with reference to a flowchart of an encoding method according to an embodiment of the present invention of FIG. 2.

도 2를 참조하면, 단계 S210에서 데이터 입력부(110)는 외부 기기로부터 영상 데이터를 입력 받는다.Referring to FIG. 2, in step S210, the data input unit 110 receives image data from an external device.

이어서, 단계 S220에서 예측부(120)는 입력되는 영상 데이터(이하, '입력영상'이라 칭함)에서 예측하고자 하는 대상 화소의 예측값을 산출한 후, 대상 화소의 예측값과 화소값의 차를 계산하여 그 크기와 부호인 에러값과 사인비트를 산출한다. 여기에 대해서는 이하 도 7 내지 도 9을 참조하여 상세히 후술한다.In operation S220, the prediction unit 120 calculates a prediction value of the target pixel to be predicted from the input image data (hereinafter, referred to as an “input image”), and then calculates a difference between the prediction value and the pixel value of the target pixel. The error value and the sign bit of the magnitude and the sign are calculated. This will be described later in detail with reference to FIGS. 7 to 9.

이어서, 단계 S230에서 부호화부(130)는 2nX2n(n은 1 이상의 자연수) 크기의 블럭 단위로 선정된 결정비트값을 이용하여 상술한 에러값을 부호화하고 부호화로 각 블록의 압축된 용량을 저장한다. 또한 부호화부(130)는 더 큰 블록을 설정할 수 없을 때까지 n의 값을 순차적으로 증가시키며 블럭 단위로 상술한 부호화 과정을 반복하고, 압축 용량을 저장한다.Then, the encoding unit 130 2 n X2 n in step S230 (n is a natural number of 1 or more) coded for by the error value described above by using the bit-precision value selected in units of blocks of a size and compression of each block in the encoding capacity Save it. In addition, the encoder 130 sequentially increases the value of n until the larger block cannot be set, repeats the above-described encoding process in units of blocks, and stores the compression capacity.

이어서, 단계 S240에서 가변 블록 구성부(140)는 단계 S230에서 저장된 압축 용량을 이용하여 전체 입력영상의 압축 용량이 가장 작은 가변 블록을 구성한다. 여기에 대해서는 이하 도 3을 참조하여 상세히 후술한다.In operation S240, the variable block configuring unit 140 configures the variable block having the smallest compression capacity of the entire input image by using the compression capacity stored in operation S230. This will be described later in detail with reference to FIG. 3.

또한, 도 2에는 도시되어 있지 아니하나, 본 발명의 다른 실시예에 의하면, 단계 S230에서 부호화부(130)는 2nX2n(n은 1 이상의 자연수) 크기의 블럭 단위로 선정된 결정비트값을 이용하여 부호화하고 그 압축된 용량을 저장하되, 첫 부호화 단계에서는 n을 1로 지정한다. 단계 S240에서 가변 블록 구성부(140)는 현 가변 블록 구성을 나타내는 가변 블록 구성 정보를 생성한다. 이어서 부호화부(130)는 n을 2로 지정하여 각 블록을 부호화한다. 가변 블록 구성부(140)는 현재 가변 블록이 구성하고 있는 블록들 중 n이 2로 지정되었을 때의 각 블록과 같은 화소를 포함하고 있는 블록들의 압축된 용량의 합을 n이 2로 지정되었을 때 각 블록의 압축된 용량과 비교하여 더 작은 블록을 이용하여 가변 블록을 재구성한다. 다시 결정 비트 부호화 장치(100)는 S230 및 S240을 2nX2n 크기의 블록이 영상의 크기보다 크지 않을 때까지 반복한다.In addition, although not shown in FIG. 2, according to another embodiment of the present invention, in step S230, the encoder 130 determines a decision bit value selected in units of blocks of size 2 n X 2 n (n is a natural number of 1 or more). Encode by using and store the compressed capacity, but specify n as 1 in the first encoding step. In step S240, the variable block configuration unit 140 generates variable block configuration information indicating the current variable block configuration. Subsequently, the encoder 130 encodes each block by specifying n as 2. The variable block constitution unit 140 is configured to sum the compressed capacities of blocks including the same pixel as each block when n is set to 2 among blocks currently configured in the variable block, when n is designated as 2. Reconstruct the variable block using smaller blocks compared to the compressed capacity of each block. Re-encoding the bit-precision unit 100 repeats S230 and S240 until the 2 n X2 n block size of not more than the size of the image.

이어서, 단계 S250에서, 가변 블록 구성부(140)는 단계 S240에서 구성된 가변 블록을 나타내는 가변 블록 구성 정보를 생성한다. 가변 블록 구성 정보는 미리 정해진 형식의 비트열로 표현되어 비트스트림에 삽입된다. Subsequently, in step S250, the variable block configuration unit 140 generates variable block configuration information indicating the variable block configured in step S240. The variable block configuration information is expressed in a bit string of a predetermined format and inserted into the bitstream.

지금까지, 본 발명의 실시예에 따른 결정비트 부호화 방법에 대하여 설명하였다. 상술한 단계 S230 내지 S270에 대해서, 도 3 및 도 4를 참조하여, 입력영상이 8X8 영상인 경우를 예로 들어서 보다 상세히 설명한다.The decision bit coding method according to the embodiment of the present invention has been described so far. The steps S230 to S270 described above will be described in more detail with reference to FIG. 3 and FIG. 4, taking an example in which the input image is an 8 × 8 image.

도 3은 가변 블록 구성을 설명하기 위한 단위별 블록을 도시한 도면 이고, 도 4는 도 3의 입력영상을 본 발명의 일 실시예에 따른 부호화 하는 경우에 생성되는 쿼드트리를 예시한 도면이다. FIG. 3 is a diagram illustrating a unit block for explaining a variable block configuration, and FIG. 4 is a diagram illustrating a quadtree generated when the input image of FIG. 3 is encoded according to an embodiment of the present invention.

도 3을 참조하면, 도 3에 도시된 블록 중 가장 작은 블록(예를 들어 310)의 크기는 21X21이다. 가변 블록 구성부(140)는 영상을 21X21블록으로 분할하고 분할한 블록의 구성을 나타내는 가변 블록 구성 정보를 생성한다. 이때, 가변 블록 구성 정보는 쿼드트리로 표현할 수 있다. 또한 가변 블록 구성 정보는 쿼드트리 외에 다른 형식으로 표현할 수 있음은 당업자에게 자명하다. 또한 초기 쿼드트리는 노드가 21개인 완전 쿼드트리가 된다. 부호화부(130)는 각 블록 단위로 부호화를 실행하고 각 블록별 압축 용량을 임시로 저장한다.3, the size of the smallest block (e.g. 310) of the block shown in Figure 3 is a 2 1 X2 1. Variable block generating unit 140 divides the image into a 2 1 X2 1 block and create a variable block configuration information indicating a configuration of the divided blocks. In this case, the variable block configuration information may be represented by a quadtree. In addition, it will be apparent to those skilled in the art that the variable block configuration information may be expressed in a format other than the quadtree. The initial quadtree is also a full quadtree with 21 nodes. The encoder 130 performs encoding in units of blocks and temporarily stores the compression capacity of each block.

이어서, 가변 블록 구성부(140)는 22X22 블록(예를 들어, 350)으로 영상을 분할하고 부호화부(130)는 각 블록별 부호화를 실행한다. 가변 블록 구성부(140)는 부호화된 22X22 블록 350의 압축 용량과 21X21블록 단위로 압축하여 저장된 블록들(즉, 블록 310, 320, 330 및 340)의 압축 용량의 합을 비교한다. Subsequently, the variable block configuration unit 140 divides the image into 2 2 X 2 2 blocks (for example, 350), and the encoder 130 performs encoding for each block. The sum of the compression capacity of a variable block configuration section 140 is a 2 2 X2 2 block 350 compression capacity and 2 1, X2 of the stored block is compressed to 1 block (i.e., block 310, 320, 330 and 340) of the encoded Compare.

본 발명을 설명함에 있어 전체적인 이해를 용이하게 하기 위하여 블록 310, 320, 330, 340의 압축 용량의 합이 22X22 블록 350의 압축 용량 보다 더 작은 용량을 가진다고 가정하겠다. 가변 블록 구성부(140)는 블록 310, 320, 330 및 340의 압축 용량을 임시로 저장을 하고, 이 블록 구성을 나타내도록 쿼드트리를 수정한다. 예를 들어, 가변 블록 구성부(140)는 도 3의 블록 310 내지 블록 340에 상응하는 도 4의 노드 410 내지 440를 쿼드트리 내에 유지시킴으로써 현재 단계에서 블록 350이 아닌 블록 310 내지 블록 340을 이용하는 것을 표현한다.In describing the present invention, it is assumed that the sum of the compression capacities of blocks 310, 320, 330, and 340 has a smaller capacity than the compression capacities of 2 2 X 2 2 blocks 350 in order to facilitate an overall understanding. The variable block construction unit 140 temporarily stores the compression capacities of the blocks 310, 320, 330, and 340, and modifies the quadtree to represent this block configuration. For example, the variable block configuration unit 140 uses the blocks 310 to 340 instead of the block 350 in the current step by keeping the nodes 410 to 440 of FIG. 4 corresponding to the blocks 310 to 340 of FIG. 3 in the quadtree. Express that.

이어서, 가변 블록 구성부(140)는 블록 350에 대해서 수행한 처리과정을 블록 360, 370, 380 각각에 대해서도 동일하게 반복한다. Subsequently, the variable block configuration unit 140 repeats the same process for each of blocks 360, 370, and 380.

여기서, 22X22 블록 360, 370 및 380의 압축 용량이 각각에 포함되는 21X21단위의 블록들의 압축 용량의 합보다 작다고 가정한다. 이 경우, 가변 블록 구성부(140)는 22X22 블록 360, 370, 380의 압축 용량을 임시로 저장한다. 그리고, 이 블록 구성을 나타나도록 가변 블록 구성부(140)는 도 4의 노드 460 내지 노드 480의 하위 노드를 제거하여 블록 360 내지 블록 380을 이용하는 것을 표현한다.Here, it is assumed that the compression capacities of the 2 2 X 2 2 blocks 360, 370, and 380 are smaller than the sum of the compression capacities of the 21 × 21 units included in each. In this case, the variable block configuration unit 140 temporarily stores the compression capacities of 2 2 X 2 2 blocks 360, 370, and 380. In addition, the variable block configuration unit 140 expresses the use of blocks 360 to 380 by removing the lower nodes of the nodes 460 to 480 of FIG. 4.

가변 블록 구성부(140)는 영상 크기와 같은 23X23 블록으로 부호화를 실행하고, 임시 저장된 블록 310, 320, 330, 340, 360, 370 및 380의 압축 용량의 합과 블록 390으로 부호화된 압축 용량을 비교한다. 여기서, 블록 390의 압축 용량이 더 크다고 가정을 하면, 가변 블록 구성부(140)는 블록 310, 320, 330, 340, 360, 370 및 380을 부호화 하기 위한 블록으로 선정한다. 그리고, 부호화부(130)는 블록 310, 320, 330, 340, 360, 370 및 380을 이용하여 최종 부호화를 실행한다. 이때, 가변 블록 구성부(140)는 블록 390의 압축 용량이 더 크므로, 도 4에서 도시된 바와 같이 노드 490의 하부 노드를 제거하지 않고 구성된 최종 쿼드트리를 미리 정해진 형식의 비트표현으로 비트스트림에 추가한다. The variable block configuration section 140, executes the encoding by 2 3 X2 3 blocks, such as image size, and the temporarily stored in block 310, 320, 330, 340, 360, 370 and combined with the block 390 of 380 compressing capacity of the coding Compare the compression capacity. Here, assuming that the compression capacity of the block 390 is larger, the variable block configuration unit 140 selects blocks 310, 320, 330, 340, 360, 370, and 380 as blocks for encoding. The encoder 130 performs final encoding using blocks 310, 320, 330, 340, 360, 370, and 380. In this case, since the variable block configuration unit 140 has a larger compression capacity of the block 390, as shown in FIG. 4, the final quadtree configured without removing the lower node of the node 490 is a bitstream in a bit representation of a predetermined format. Add to

도 4에 도시된 노드 410 내지 노드 480은 도 3에 도시된 블록 310 내지 블록 390에 상응한다. 즉, 가변 블록 구성부(140)가 순차적으로 블록의 크기를 증가시키면서 부호화하고, 압축용량이 작은 볼록의 크기단위를 선정하고, 이에 따라 수정한 쿼드트리의 예시이다. Nodes 410 through 480 shown in FIG. 4 correspond to blocks 310 through 390 shown in FIG. That is, the variable block configuration unit 140 sequentially encodes the block while increasing the size of the block, selects a convex size unit having a small compression capacity, and modifies the quadtree accordingly.

여기서, 영상 데이터의 크기가 2nX2n 블록으로 나누어 떨어지지 않을 때는 별도의 방법으로 2nX2n 크기와 다른 크기의 블록을 지정할 수 있음은 당업자에게 자명하다. Here, when the size of the image data will not fall into the 2 n X2 n block may specify 2 n X2 n different size of the block as a separate method, it is obvious to those skilled in the art.

또한, 상기에서는 가변 블록 구성부(140)가 입력 영상에서 압축용량이 적은 블록의 크기단위를 선정하는 과정에 따라 쿼드트리(도 4참조)가 수정되는 것으로 설명하였다. 그러나, 본 발명의 다른 실시예에 따르면, 가변 블록 구성부(140)가 입력 영상에서 압축 용량이 적은 블록의 크기 단위를 선정한 후, 최종적으로 쿼드트리가 수정될 수 있다. In addition, in the above description, the quadtree (see FIG. 4) is modified according to a process in which the variable block configuration unit 140 selects a size unit of a block having a small compression capacity from an input image. However, according to another embodiment of the present invention, after the variable block configuration unit 140 selects a size unit of a block having a small compression capacity from the input image, the quadtree may be finally modified.

도 5은 Lena 이미지를 크기가 64X64인 블록으로 분할한 것을 도시한 도면이다. 5 is a diagram illustrating dividing a Lena image into blocks having a size of 64 × 64.

도 5을 참조하면, Lena 영상은 512 X 512 해상도의 영상 데이터이다. 이때, 지정된 모든 블록의 크기정보가 64 X 64인 경우, 도 5에 예시된 바와 같이 영상 데이터는 행이 8개, 열이 8개로 분할될 수 있다. 즉, 블록은 총 64개가 될 수 있다. Referring to FIG. 5, the Lena image is image data having 512 × 512 resolution. In this case, when the size information of all the designated blocks is 64 × 64, as illustrated in FIG. 5, the image data may be divided into eight rows and eight columns. That is, the total number of blocks can be 64.

이하의 본 발명의 실시예에서는, Lena 영상이 도 5에 예시된 바와 분할된 경우를 예를 들어서 설명한다. 도 5에서는 모든 블록이 64 X 64로 지정되어 있지만 이는 발명의 이해와 설명의 편의를 도모하기 위한 것으로, 본 발명에서는 가변 블록 구성부(140)가 도 2 내지 도 4를 참조하여 상술한 바와 같이, 각 블록의 크기를 유동적으로 지정한다.In the following embodiment of the present invention, a case where a Lena image is divided as illustrated in FIG. 5 will be described as an example. Although all blocks are designated as 64 X 64 in FIG. 5, this is for convenience of understanding and explanation of the present invention. In the present invention, the variable block configuration unit 140 is described with reference to FIGS. 2 to 4. , The size of each block is specified flexibly.

이하에서는, 도 6를 참조하여 DPCM(Differential pulse code modulation) 방식을 간단히 설명한다. 그리고, DPCM 방식의 예측기법의 한계점을 살펴본다. 그 후, 본 발명의 실시예에 따라 예측부(120)가 영상 데이터의 화소값을 예측하여 예측값을 산출하는 단계(S220)를 도 7 내지 도 9을 참조하여 상세히 설명한다. Hereinafter, the DPCM (Differential Pulse Code Modulation) scheme will be briefly described with reference to FIG. 6. In addition, we look at the limitations of the DPCM method. Subsequently, the operation of calculating the predicted value by predicting the pixel value of the image data by the predictor 120 according to an exemplary embodiment of the present invention (S220) will be described in detail with reference to FIGS. 7 to 9.

도 6는 DPCM을 설명하기 위한 도면이다. 6 is a diagram for explaining a DPCM.

DPCM은 예측된 화소값과 대상 화소의 화소값의 차이인 예측 오류를 부호화 하는 것으로, 예측값과 에러값의 합으로써 대상 화소의 화소가 복원되는 예측 부호화 방법이다. DPCM은 일반적으로 많이 사용되는 단순한 기법으로 구현하기가 쉽다. 예측이 주변의 이웃하는 화소값들의 국부적인 상관관계를 이용하기 때문에 예측된 에러값은 감소된 편차를 유지한다. 따라서, 예측 기법을 사용하는 경우 원 화소값을 바로 부호화하는 것과 비교하여 볼 때 더 적은 비트를 사용하여 부호화 할 수 있다. 이렇게 함으로써 에러영상(각 화소를 에러값으로 표현한 영상)을 압축했을 때 원영상을 압축했을 때에 비해 압축 효율이 높다. DPCM만으로는 데이터의 압축이 얻어지지 않고 통계적 특성만이 변하므로 대개의 데이터 압축의 역할을 하는 부호화 기술과 결합된다. DPCM의 근본적인 특성은 예측 가능한 성분은 복호화 장치에서 자동으로 재생하고, 예측 불가능한 성분만을 부호화하여 보내는 것이다. 따라서, 과거의 값들로부터 현재의 값을 보다 근접하게 예측할 수 있을 때, 부호화 기술이 사용될 경우에 압축률도 높아진다.The DPCM encodes a prediction error that is a difference between the predicted pixel value and the pixel value of the target pixel. The DPCM is a predictive encoding method in which the pixel of the target pixel is reconstructed by the sum of the predicted value and the error value. DPCM is a simple technique that is commonly used and easy to implement. The predicted error value maintains a reduced deviation because the prediction uses a local correlation of neighboring neighboring pixel values. Therefore, when using the prediction technique, it is possible to encode using fewer bits when compared to directly encoding the original pixel value. In this way, when the error image (the image in which each pixel is expressed as an error value) is compressed, the compression efficiency is higher than when the original image is compressed. Since DPCM alone does not obtain data compression, only the statistical properties change, it is combined with an encoding technique that usually serves as data compression. The fundamental characteristic of DPCM is that the predictable components are automatically reproduced by the decoding apparatus, and only the unpredictable components are encoded and sent. Therefore, when the current value can be predicted more closely from the past values, the compression rate is also higher when the coding technique is used.

도 6를 참조하면, 예측값은 이전의 주변 화소값 A, B, C, D, E의 관계식으로 표현 할 수 있다. DPCM방식은 간단하게 화소값 X를 예측할 수 있으나, DPCM의 특성상 화소간의 상관관계가 적은 경계(Edge) 부분에서는 큰 오차가 발생하게 된다. 또한 같은 영상이라도 부분적으로 상관관계가 다르기 때문에 하나의 예측기(predictor)로 영상 내 모든 화소값을 제대로 예측하기에는 한계가 있다. Referring to FIG. 6, the predicted value may be expressed by a relational expression of the previous peripheral pixel values A, B, C, D, and E. The DPCM method can easily predict the pixel value X. However, due to the characteristics of the DPCM, a large error occurs in an edge portion where the correlation between pixels is small. In addition, even if the same image is partially different from each other, there is a limit in properly predicting all pixel values in the image with one predictor.

종래의 기술에서는 상술한 예측 기술을 더 개선시키기 위하여, 예를 들어 추가 비트를 이용하여 보다 적합한 비트 표현으로 변환하고자 하였다. 그러나, 그러나, 이 방법은 추가 비트로 인한 용량 증가로 압축 효율이 떨어진다는 문제점이 있다. In the prior art, in order to further improve the prediction technique described above, for example, an additional bit is used to convert to a more suitable bit representation. However, this method has a problem in that compression efficiency is lowered due to capacity increase due to additional bits.

본 발명의 실시예에서는 추가 비트를 사용하지 않고 예측을 함으로써 압축 효율을 증대시킨다. 보다 상세하게는, 영상 데이터에서 경계면이 있는 대상 화소의 예측 방향은 대부분 상측 화소의 예측 방향과 비슷하다는 점을 이용한다. 따라서, 본 발명의 실시예에서는 예측하고자 하는 대상 화소의 상측 화소의 예측 방향을 대상 화소에 적용하였다. 이 점에 대해서, 이하에서 도 7 내지 도 9을 참조하여 설명한다. In the embodiment of the present invention, the compression efficiency is increased by making prediction without using additional bits. More specifically, it is used that the prediction direction of the target pixel having an interface in the image data is mostly similar to the prediction direction of the upper pixel. Therefore, in the embodiment of the present invention, the prediction direction of the upper pixel of the target pixel to be predicted is applied to the target pixel. This point will be described below with reference to FIGS. 7 to 9.

도 7 및 도 8은 본 발명의 일 실시예에 따른 영상 데이터의 각 화소값을 예측하는 방법을 설명하기 위한 도면이고, 도 9은 본 발명의 일 실시예에 따른 영상 데이터의 경계면을 고려한 예측 알고리즘이다. 7 and 8 are diagrams for describing a method of predicting each pixel value of image data according to an embodiment of the present invention, and FIG. 9 is a prediction algorithm considering an interface of image data according to an embodiment of the present invention. to be.

도 7를 참조하여, 각 화소의 위치에 대해서 간단히 설명한다. 도 7는 영상 데이터상에서 각 화소가 배치되는 것을 가정하여 예시한 도면이다. 보다 상세하게 설명하면, 예측하고자 하는 대상 화소가 X(i,j)인 경우, 도 7의 X(710)으로 가정할 수 있다. 여기서, i는 화소의 행의 위치이고, j는 열의 위치이다.7, the position of each pixel is briefly described. FIG. 7 is a diagram illustrating that each pixel is disposed on image data. In more detail, when the target pixel to be predicted is X (i, j), it may be assumed to be X 710 of FIG. 7. Where i is the position of the row of pixels and j is the position of the column.

이 때, 예측하고자 하는 대상 화소 X(i,j)의 좌측 화소 X(i, j-1)은 도 7의 A(711)로 나타낼 수 있다. 마찬가지 방식으로, 예측하고자 하는 대상 화소 X(i,j)의 좌상측 화소 X(i-1,j-1), 상측 화소 X(i-1,j) 및 우상측 X(i-1,j+1)은 각각 도 7의 C(713), B(712) 및 D(714)로 나타낼 수 있다. 이하에서는 발명의 이해와 설명의 편의를 도모하기 위하여 도 7에 예시된 화소의 구조를 예로 들어서 설명한다. In this case, the left pixel X (i, j-1) of the target pixel X (i, j) to be predicted may be represented by A 711 of FIG. 7. In the same manner, the upper left pixel X (i-1, j-1), the upper pixel X (i-1, j) and the upper right X (i-1, j) of the target pixel X (i, j) to be predicted +1) may be represented by C 713, B 712, and D 714 of FIG. 7, respectively. Hereinafter, the structure of the pixel illustrated in FIG. 7 will be described as an example to facilitate understanding and explanation of the invention.

영상 데이터에서 경계면이 있는 부분은 대부분 바로 상단 화소의 예측 방향과 같은 예측 방향을 가질 수 있다. 본 발명은 이러한 특성을 이용한다. 즉, 대상 화소의 화소값을 예측하기 위하여, 상단 화소의 최적 예측 방향을 이용한다. In the image data, the portion having the boundary surface may have the same prediction direction as that of the immediately upper pixel. The present invention takes advantage of this feature. That is, in order to predict the pixel value of the target pixel, the optimum prediction direction of the upper pixel is used.

본 발명의 실시예에 따른 예측 방법은 예측 하고자 하는 화소 X(710)에 경계면이 존재하지 않는 경우 하기의 수학식 1을 이용하여 예측한다. 이 예측 방법은 추가 비트를 사용하지 않고, 예측 과정이 단순하여 복잡도를 거의 유발하지 않는다.The prediction method according to an embodiment of the present invention predicts using Equation 1 below when no boundary exists in the pixel X 710 to be predicted. This prediction method does not use additional bits, and the prediction process is simple and causes little complexity.

[수학식 1] [Equation 1]

Figure 112007052049764-pat00103
Figure 112007052049764-pat00103

이 때, 예측 하고자 하는 화소 X(710)에 경계면이 존재하는지 여부를 판단하기 위해서, 상측 화소 B(712)에 경계면이 존재하는지 여부에 대한 판단이 이용된다. 보다 상세하게는, 상측 화소 B(712)의 좌측 화소 C(713)와 우측 화소 D(714)의 화소값의 차이가 미리 지정된 임계값 이하인지 여부로서 상측 화소 B(712)에 경계면이 있는지 여부를 판단할 수 있다. 예를 들어, 도 8에 도시된 Lena 이미지의 한 부분의 확대 그림을 보면 이미지의 경계면이 존재한다. 이 경계면에서 화소 C(713)와 화소 D(714)의 차이값은 경계면이 없는 화소들의 차이값보다 큰 값을 갖는다. 이러한 점을 이용하여 예측부(120)는 대상 화소 X(710)을 예측하기 위해 상측 화소 중 C(713) 및 D(714)의 차이값이 미리 지정된 값 이상일 경우 경계면으로 판단 할 수 있다.In this case, in order to determine whether or not the boundary exists in the pixel X 710 to be predicted, a determination as to whether or not the boundary exists in the upper pixel B 712 is used. More specifically, whether the upper pixel B 712 has a boundary as to whether or not the difference between the pixel values of the left pixel C 713 and the right pixel D 714 of the upper pixel B 712 is equal to or less than a predetermined threshold value. Can be determined. For example, looking at an enlarged view of a portion of the Lena image shown in FIG. 8, there is a boundary of the image. The difference between the pixel C 713 and the pixel D 714 at this interface has a larger value than the difference between the pixels without the interface. Using this point, the prediction unit 120 may determine the boundary surface when the difference between the C 713 and the D 714 of the upper pixels is greater than or equal to a predetermined value in order to predict the target pixel X 710.

즉, 도 7의 상측 화소 B(712)의 좌측 화소 C(713)와 우측 화소 D(714)의 화소값의 차이가 미리 지정된 임계값 이하인 경우에는, 상측 화소 B(712)에는 경계면이 존재하지 않는 것으로 판단할 수 있다. 이 경우, 상기에서 상술한 바와 같이 수학식 1로서 화소 X(710)의 화소값을 예측할 수 있다.That is, when the difference between the pixel value of the left pixel C 713 and the right pixel D 714 of the upper pixel B 712 of FIG. 7 is equal to or less than a predetermined threshold value, no boundary surface exists in the upper pixel B 712. You can judge that you do not. In this case, as described above, the pixel value of the pixel X 710 may be predicted as Equation 1 above.

그러나, 상측 화소 B(712)의 좌측 화소 C(713)와 우측 화소 D(714)의 화소값의 차이가 미리 지정된 임계값 이상인 경우에는, 상측 화소(712)에 경계면이 존재하는 것으로 판단할 수 있다. 이 경우 화소 X(710)에도 경계면이 존재할 확률이 높아진다. 이 경우, 본 발명의 실시예에 따른 예측 방법은 영상 데이터상의 경계면을 찾아 예측 방법을 결정한다. However, when the difference between the pixel values of the left pixel C 713 and the right pixel D 714 of the upper pixel B 712 is equal to or more than a predetermined threshold value, it can be determined that an interface exists in the upper pixel 712. have. In this case, the probability that an interface exists in the pixel X 710 increases. In this case, the prediction method according to the embodiment of the present invention finds the boundary on the image data and determines the prediction method.

도 8의 확대된 그림을 보면, 화소 X(710)의 경계면의 방향과 화소 B(712)의 경계면의 방향이 비슷한 경향을 보인다. 이러한 점을 이용하여, 상단 화소 B(712)의 경계면 존재 여부를 판단하여 결정한 예측 방향을 화소 X(710)에 적용할 수 있다. 보다 상세하게는, 상단 화소 B(712)의 인접한 화소들(예를 들어, C(713), E(715), F(716) 및 G(717))을 이용하여, 화소 B(712)의 최적 예측 방향을 판단하여, 예측하고자 하는 대상 화소 X(710)의 예측 방향으로 사용할 수 있다. 이처럼 상단 화소의 예측 방향을 그대로 이용하면 이 경우 복잡도를 어느 정도 유발 시킬 수 있지만, 예측 방향을 나타내는 추가 비트를 비트스트림에 추가하지 않아도 되어 압축 효율이 높아진다는 장점이 있다. 8, the direction of the boundary surface of the pixel X 710 and the direction of the boundary surface of the pixel B 712 show a similar tendency. Using this point, the prediction direction determined by determining whether or not an upper boundary of the upper pixel B 712 exists may be applied to the pixel X 710. More specifically, by using adjacent pixels (eg, C 713, E 715, F 716, and G 717) of the upper pixel B 712, the pixel B 712 is formed. The optimal prediction direction may be determined and used as the prediction direction of the target pixel X 710 to be predicted. If the prediction direction of the upper pixel is used as it is, the complexity may be caused in this case, but there is an advantage in that compression efficiency is increased because additional bits indicating the prediction direction are not added to the bitstream.

본 발명의 실시예에 따라 이러한 예측방법을 위한 알고리즘으로 도 9에 예시된 알고리즘을 사용할 수 있음은 당업자에게 자명하다. 또한, 더 나아가 알고리즘이 다양하게 변경 또는 수정이 될 수 있음은 당업자에게 자명하다. It is apparent to those skilled in the art that the algorithm illustrated in FIG. 9 can be used as an algorithm for such a prediction method according to an embodiment of the present invention. In addition, it will be apparent to those skilled in the art that the algorithm may be variously changed or modified.

본 명세서에서는 예측하고자 하는 대상 화소의 상측 화소의 예측 방향을 이용하여 대상 화소의 예측 방향을 판단하는 것을 설명하였다. 그러나, 이 방법은 본 발명의 일 실시예에 불과하며, 대상 화소에 근접한 여러 화소의 예측 방향을 이용할 수 있음은 당업자에게 자명하다. In this specification, the prediction direction of the target pixel is determined by using the prediction direction of the upper pixel of the target pixel to be predicted. However, it will be apparent to those skilled in the art that this method is only an embodiment of the present invention, and that the prediction direction of several pixels close to the target pixel can be used.

지금까지, 본 발명의 실시예에 따른 예측방법을 설명하였다. 하기에서는 본 발명의 실시예에 따라 예측부(120)가 상기에서 상술한 예측방법을 통하여 산출한 예측값을 재설정하는 방법을 도 10을 참조하여 설명한다. Up to now, the prediction method according to the embodiment of the present invention has been described. Hereinafter, a method of resetting the prediction value calculated by the prediction unit 120 through the above-described prediction method according to an embodiment of the present invention will be described with reference to FIG. 10.

도 10은 본 발명의 일 실시예에 따라 예측값의 재설정을 설명하기 위한 도면이고, 도 11는 본 발명의 일 실시예에 따른 영상 데이터의 대상 화소값과 예측값의 차이값의 분포를 예시한 도면이다. FIG. 10 is a diagram illustrating resetting a predicted value according to an embodiment of the present invention, and FIG. 11 is a diagram illustrating a distribution of difference values between a target pixel value and a predicted value of image data according to an embodiment of the present invention. .

본 발명의 실시예에 따라 예측부(120)가 산출한 예측값을 이용하여 에러값 E는 하기의 수학식 2를 이용하여 산출할 수 있다. According to an embodiment of the present invention, the error value E may be calculated using Equation 2 below using the predicted value calculated by the predictor 120.

[수학식 2][Equation 2]

Figure 112007052049764-pat00104
Figure 112007052049764-pat00104

여기서, E는 에러값, X는 대상 화소의 화소값(즉, 도 7의 경우 X(710)의 화소값), P(X)는 대상 화소에서 예측된 화소값(즉, 예측값)이다.Here, E is an error value, X is a pixel value of the target pixel (that is, a pixel value of X 710 in FIG. 7), and P (X) is a pixel value predicted in the target pixel (ie, a prediction value).

이때,

Figure 112007052049764-pat00105
의 부호는 사인비트로서 별도로 처리 될 수 있다. 예를 들어, 부호가 양수인 경우 사인비트가 1로 저장 되고, 부호가 음수인 경우 사인비트가 0으로 저장될 수 있다. 또는 그 반대로 저장될 수 있음은 당업자에게 자명하다. 이하, 부호가 양수인 경우 사인비트가 1로 저장 되고, 부호가 음수인 경우 사인비트가 0으로 저장되는 경우를 가정하여 설명한다.At this time,
Figure 112007052049764-pat00105
The sign of can be treated separately as a sign bit. For example, if the sign is positive, the sign bit may be stored as 1, and if the sign is negative, the sign bit may be stored as 0. It will be apparent to those skilled in the art that the data can be stored or vice versa. Hereinafter, it is assumed that the sign bit is stored as 1 when the sign is positive and the sign bit is stored as 0 when the sign is negative.

일반적으로 영상 데이터가 그레이 스케일 이미지(Grey scale image)인 경우, 루미넌스(Luminance)값은 8비트(즉, 28)로 나타내어진다. 고화질의 경우 루미넌스값이 10비트(즉, 210)로 나타낼 수도 있다. 본 명세서에서는 발명의 이해와 설명의 편의상 일관되게 루미넌스값이 8비트인 경우를 가정하여 설명한다. 그러나, 본 발명이 이에 한정되지 않음은 당업자에게 자명하다. In general, when the image data is a gray scale image, the luminance value is represented by 8 bits (ie, 28). In the case of high quality, the luminance value may be represented by 10 bits (ie, 210). In this specification, for convenience of understanding and description of the present invention, it is assumed that the luminance value is 8 bits. However, it will be apparent to those skilled in the art that the present invention is not limited thereto.

루미넌스값이 8비트인 경우,

Figure 112007052049764-pat00106
은 -255 내지 255의 값이다. 따라서, 상술한 수학식 2를 이용하여 예측부(120)가 산출한 예측값은 0 내지 255사이의 값이다. 즉, 에러값의 최대치가 255가 된다.If the luminance value is 8 bits,
Figure 112007052049764-pat00106
Is a value from -255 to 255. Therefore, the predicted value calculated by the predictor 120 using Equation 2 described above is a value between 0 and 255. That is, the maximum value of the error value is 255.

이때, 본 발명의 실시예에서는 도 10에 예시된 바와 같이, 에러값의 최대치를 7비트(27, 즉 127까지 표현이 가능)로 재설정할 수 있다. At this time, in the embodiment of the present invention, as illustrated in FIG. 10, the maximum value of the error value may be reset to 7 bits (that is, up to 127 can be represented).

본 발명의 실시예를 도 10을 참조하여 보다 상세하게 설명하면, 수직선(1010)상의 계산을 원(1020)상에서 계산한다. 즉, 256 다음에 다시 1이 있다고 가정한다. An embodiment of the present invention is described in more detail with reference to FIG. 10, where the calculation on the vertical line 1010 is calculated on the circle 1020. That is, suppose there is 1 again after 256.

예를 들어, 대상 화소값

Figure 112007052049764-pat00107
가 30이고, 예측부(120)가 산출한 예측값
Figure 112007052049764-pat00108
이 200인 경우를 가정하자. 이 경우 수학식 2에 의하면 에러값
Figure 112007052049764-pat00109
는 170이 되고,
Figure 112007052049764-pat00110
의 부호는 음수(-)이다. For example, the target pixel value
Figure 112007052049764-pat00107
Is 30, and the prediction value calculated by the prediction unit 120
Figure 112007052049764-pat00108
Assume the case is 200. In this case, according to equation (2)
Figure 112007052049764-pat00109
Becomes 170,
Figure 112007052049764-pat00110
The sign of is negative.

그러나 본 발명의 실시예에 따라 원(1020)상에서 보면, 에러값

Figure 112007052049764-pat00111
는 86이 되고,
Figure 112007052049764-pat00112
의 부호는 양수가 될 수 있다. 이 경우, 향후 복호화 과정에서 화소값
Figure 112007052049764-pat00113
는 286이 되지만, 최대값인 256보다 큰 값이므로, 256을 뺀 30으로 복호화하게 된다. 상술한 방식으로 에러값을 표현하면 7비트, 즉 127이내의 값으로 표현이 가능하다. However, when viewed on the circle 1020 according to an embodiment of the present invention, an error value
Figure 112007052049764-pat00111
Becomes 86,
Figure 112007052049764-pat00112
The sign of may be positive. In this case, the pixel value in the future decoding process
Figure 112007052049764-pat00113
Becomes 286, but is larger than the maximum value of 256, so it is decoded by 30 minus 256. When the error value is expressed in the above-described manner, it is possible to express the value within 7 bits, that is, 127.

상술한 바와 같이 에러값을 127이하로 줄이는 이유는, 하기에서 상술하는 결정 비트값을 이용한 부호화에서 에러값 자체가 부호화 되기 때문에, 부호화하는 비트 수를 줄여서 압축 효율을 높이기 위함이다. The reason for reducing the error value to 127 or less as described above is to increase the compression efficiency by reducing the number of bits to be encoded because the error value itself is encoded in the encoding using the decision bit value described below.

도 11에 도시된 바와 같이 대상 화소값과 예측값 차이의 대부분은 -20 내지 +20사이의 값으로 도시되어 있다. 작은 에러값의 빈도가 높을수록, 부호화시 압축 효율이 커지므로, 본 발명의 실시예에 따라 에러값을 최대값을 줄여서 재설정한 경우, 압축율이 높아짐은 당업자에게 자명하다. As shown in FIG. 11, most of the difference between the target pixel value and the predicted value is shown as a value between −20 and +20. Since the higher the frequency of the small error value, the greater the compression efficiency during encoding. Therefore, when the error value is reset by reducing the maximum value according to an embodiment of the present invention, it is apparent to those skilled in the art that the compression rate is high.

지금까지, 도 10을 참조하여 그레이 스케일 이미지에서 본 발명의 실시예에 따라 루미넌스값을 이용하여 에러값을 산출하는 방법을 설명하였다. 그러나, 컬러 영상에서 yuv상이나 RGB 표현방식에서 색상간의 관계를 이용한 예측 기술과 함께 본 발명이 적용될 수 있음은 당업자에게 자명하다. Up to now, a method of calculating an error value using luminance values according to an embodiment of the present invention in a gray scale image has been described with reference to FIG. 10. However, it will be apparent to those skilled in the art that the present invention may be applied together with a prediction technique using a relationship between colors in a yuv image or an RGB representation in a color image.

이하에서는, 상술한 방법으로 산출된 에러값 또는/및 사인비트를 부호화하는 방법에 대해서 설명한다.Hereinafter, a method of encoding the error value and / or the sine bit calculated by the above-described method will be described.

도 12은 본 발명의 일 실시예에 따라 부호화부가 결정비트값을 이용하여 부호화하는 방법의 순서도이다.12 is a flowchart illustrating a method of encoding by an encoder using decision bit values according to an embodiment of the present invention.

본 명세서에서는 도 5에 예시된 512X512의 Lena 영상을 일관되게 예시로 들어서 설명한다. 도 5 및 도 12을 참조하면, 단계 S1210에서 부호화부(130)는 각 블록의 제1 결정비트값을 선정한다.In the present specification, a 512 X 512 Lena image illustrated in FIG. 5 will be described as an example. 5 and 12, in step S1210, the encoder 130 selects a first decision bit value of each block.

여기서, 도 12에는 본 발명의 이해를 도모하기 위해 모든 블록의 크기가 일관되게 64X64 크기인 것으로 도시하였다. 그러나, 가변 블록 구성부(140)가 각 블록의 크기를 다르게 선정할 수 있음은 도 2 내지 도 4를 참조하여 설명하였다. Here, in FIG. 12, all the blocks are consistently 64X64 size in order to understand the present invention. However, the variable block configuration unit 140 may select the size of each block differently with reference to FIGS. 2 to 4.

본 발명의 실시예에 따라 결정비트값에 3비트(즉, 23)가 할당될 수 있다. 즉, 결정비트값은 0 내지 7이 될 수 있다. According to an embodiment of the present invention, three bits (ie, 23) may be allocated to the decision bit value. That is, the decision bit value may be 0 to 7.

여기서, 지정된 모든 블록의 크기 정보가 64X64인 경우, 한 블록에 포함되는 화소는 총 4096개이다. 즉, 한 블록에서 예측부(120)가 산출하는 에러값도 또한 4096개이다. 따라서, 본 발명의 실시예에 따르면, 부호화부(130)는 소정의 블록에 상응하는 결정비트값을 선정하기 위하여 예측값 4096개에 대하여 0 내지 7을 이용하여 결정 비트 부호화한 후, 압축 효율이 가장 높은 수를 소정의 블록에 대한 결정비트값으로 선정한다. Here, when the size information of all the designated blocks is 64X64, a total of 4096 pixels are included in one block. That is, the number of error values calculated by the predictor 120 in one block is also 4096. Therefore, according to an embodiment of the present invention, the encoder 130 performs decision bit coding on 0 to 7 for 4096 prediction values in order to select decision bit values corresponding to a predetermined block, and then the compression efficiency is the best. A high number is chosen as the decision bit value for a given block.

예를 들어, 소정의 블록에 포함된 화소에 대하여 예측된 에러값이 {5, 3, 8, 2…}일 수 있다. 여기서는 발명의 이해와 설명의 편의를 도모하기 위하여 에러값 4개를 예로 들어서 결정비트값을 선정하는 방법에 대해서 설명한다. 에러값이 {5, 3, 8, 2…}에 대해서 부호화부(130)는 하기의 표2과 같이 0 내지 7을 이용하여 결정비트 부호화할 수 있다. For example, an error value predicted for a pixel included in a predetermined block is {5, 3, 8, 2... }. In the following description, a method of selecting a decision bit value using four error values as an example for convenience of understanding and explanation of the invention will be described. The error value is {5, 3, 8, 2... } With respect to the encoder 130, the decision bit encoding may be performed using 0 to 7 as shown in Table 2 below.

에러값Error value 55 33 88 22 Total bitsTotal bits 1One 000001000001 00010001 000000001000000001 001001 2222 22 11101110 11001100 111110111110 1010 1818 3 3 101101 011011 111001111001 010010 1515 44 01010101 00110011 10001000 00100010 1616 55 0010100101 0001100011 0100001000 0001000010 2020 66 000101000101 000011000011 001000001000 000010000010 2424 77 00001010000101 00000110000011 00010000001000 00000100000010 2828

표 2을 참조하면, 결정비트값으로 3을 이용한 경우가 압축효율이 가장 높다. 이 경우 부호화부(130)는 소정의 블록에 대하여 3을 결정비트값으로 선정할 있다. Referring to Table 2, the use of 3 as the decision bit value has the highest compression efficiency. In this case, the encoder 130 may select 3 as the decision bit value for the predetermined block.

상술한 방법으로 단계 S1210에서 부호화부(130)는 소정의 블록에 상응하는 결정비트값을 선정할 수 있다. In the above-described method, the encoder 130 may select a decision bit value corresponding to the predetermined block in step S1210.

여기서, 소정의 블록에 상응하는 결정비트값을 선정하기 위하여, 소정의 블록에 포함되는 화소 중 미리 지정된 특정 위치의 화소들을 부호화 한 후, 압축효율을 검토하여 결정비트값을 선정할 수 있음을 당업자에게 자명하다. Here, in order to select a decision bit value corresponding to a predetermined block, after encoding the pixels of a predetermined specific position among the pixels included in the predetermined block, the decision bit value may be selected by examining the compression efficiency. Self-explanatory

이어서, 단계 S1220에서 부호화부(130)는 선정된 제1 결정비트값을 이용하여 각 블록에 포함되는 에러값들을 결정 비트 부호화한다.Subsequently, in operation S1220, the encoder 130 determines bit-encodes error values included in each block by using the selected first decision bit value.

그리고, 단계 S1230에서 생성되는 비트스트림에 각 블록에 상응하는 제1 결정비트값(예를 들어 블록(도 5의 510)의 결정비트값 3)을 삽입할 수 있다.In addition, a first decision bit value corresponding to each block (for example, decision bit value 3 of block 510 of FIG. 5) may be inserted into the bitstream generated in operation S1230.

이때, 블록의 크기 정보 및 제1 결정비트값은 본 발명의 다양한 실시예에 따라 비트스트림의 계층적 구조에 다양하게 삽입될 수 있음은 당업자에게 자명하다. At this time, it is apparent to those skilled in the art that the size information of the block and the first decision bit value may be variously inserted into the hierarchical structure of the bitstream according to various embodiments of the present disclosure.

지금까지 본 발명의 실시예에 따라 부호화부(130)가 영상 데이터(예를 들어, 도 5의 512X512 Lena 영상)에서 지정된 블록에 상응하여 결정비트값을 선정하고 부호화하는 것에 대해서 설명하였다.Until now, the encoding unit 130 selects and encodes the decision bit value corresponding to the block designated in the image data (for example, the 512X512 Lena image of FIG. 5) according to the embodiment of the present invention.

본 발명의 다른 실시예에 따르면, 블록에 상응하는 결정비트값을 추가적으로 결정 비트 부호화하여 압축효율을 높일 수 있다. 여기에 대해서는 도 13을 참조하여 하기에서 상세히 설명한다. According to another embodiment of the present invention, the compression efficiency may be increased by additionally performing decision bit coding on the decision bit value corresponding to the block. This will be described later in detail with reference to FIG. 13.

도 13은 본 발명의 다른 실시예에 따라 부호화부가 결정비트값을 이용하여 부호화하는 방법을 나타내는 순서도이다.13 is a flowchart illustrating a method of encoding by an encoder using decision bit values according to another embodiment of the present invention.

이하에서는, 본 발명의 다른 실시예의 요지를 명확하게 하기 위하여 도 12을 참조하여 설명한 것과 중복된 설명은 생략하도록 한다.In the following, descriptions overlapping with those described with reference to FIG. 12 will be omitted to clarify the gist of another embodiment of the present invention.

단계 S1330에서 부호화부(130)는 영상 데이터의 각 블록에 상응한 제1 결정 비트값에 대하여 제2 결정비트값을 선정한다. In operation S1330, the encoder 130 selects a second decision bit value with respect to the first decision bit value corresponding to each block of the image data.

보다 상세하게는, 도 5 및 도 12을 참조하여 설명한 Lena 영상의 경우, 지정된 블록 크기정보에 상응하여 분할된 블록은 총 64개이다. 따라서, 본 발명의 실시예에 따라 각 블록에 상응하여 선정된 제1 결정비트값은 총 64개이다. 여기서, 부호화부(130)는 64개의 제1 결정비트값에 대한 제2 결정비트값을 선정한다. 제2 결정비트값을 선정하는 과정은, 도 12의 단계 S1210과 동일하므로, 중복된 설명은 생략한다.More specifically, in the case of the Lena image described with reference to FIGS. 5 and 12, a total of 64 blocks are divided according to the designated block size information. Therefore, according to an embodiment of the present invention, a total of 64 first decision bit values are selected corresponding to each block. Here, the encoder 130 selects second decision bit values for the 64 first decision bit values. Since the process of selecting the second decision bit value is the same as that of step S1210 of FIG. 12, duplicate description thereof will be omitted.

이때, 부호화부(130)가 제1 결정비트값을 미리 지정된 묶음단위로 제2 결정비트값을 선정할 수 있음은 당업자에게 자명하다.At this time, it will be apparent to those skilled in the art that the encoder 130 may select the second decision bit value based on a predetermined bundle unit of the first decision bit value.

이어서, 단계 S1340에서 부호화부(130)는 선정된 제2 결정비트값을 이용하여 제1 결정비트값을 부호화한다.Subsequently, in step S1340, the encoder 130 encodes the first decision bit value using the selected second decision bit value.

이때, 제2 결정비트값이 미리 지정된 묶음 단위의 제1 결정비트값에 대해서 선정된 경우, 부호화부(130)는 미리 지정된 묶음 단위의 제1 결정비트값에 상응하는 제2 결정비트값을 이용하여 미리 지정된 묶음 단위의 제1 결정비트값을 각각 결정 비트 부호화 할 수 있음은 당업자에게 자명하다.In this case, when the second decision bit value is selected for the first decision bit value in the predetermined bundle unit, the encoder 130 uses the second decision bit value corresponding to the first decision bit value in the predetermined bundle unit. It will be apparent to those skilled in the art that the first decision bit value of the predetermined packed unit can be determined by bit coding.

이어서, 단계 S1350에서 부호화부(130)는 생성된 비트스트림에 제2 결정비트값을 삽입할 수 있다. Subsequently, in operation S1350, the encoder 130 may insert the second decision bit value into the generated bitstream.

지금까지, 도 12 내지 도 13을 참조하여 부호화부(130)가 예측부(120)에서 산출한 에러값을 부호화하는 방법에 대해서 설명하였다. 하기에서는 예측부(120)가 산출한 사인비트를 부호화부(130)가 부호화하는 방법에 대해서 설명한다. So far, the method of encoding the error value calculated by the encoder 130 by the encoder 120 has been described with reference to FIGS. 12 to 13. Hereinafter, a method of encoding the sine bits calculated by the predictor 120 by the encoder 130 will be described.

사인비트는 상술한 바와 같이, 수학식 2에서

Figure 112007052049764-pat00114
의 부호이다. 바람직하게는 본 발명의 실시예에 따라 1비트이다. 따라서, 사인비트는 화소당 1비트로서, 결정 비트 부호화하여도 압축효율이 높지 않다. 본 발명의 실시예에 따르면, 사인 비트를 미리 지정된 묶음단위로 사인심볼로 해석하고, 이를 생성되는 비트스트림에 삽입할 수 있다.As described above, the sine bit is expressed by Equation 2
Figure 112007052049764-pat00114
Is the sign of. Preferably it is 1 bit in accordance with an embodiment of the invention. Therefore, the sine bits are 1 bit per pixel, and the compression efficiency is not high even when the decision bit coding is performed. According to an embodiment of the present invention, the sinusoidal bits may be interpreted as sinusoidal symbols in a predetermined bundle unit and inserted into the generated bitstream.

보다 상세하게는, 예를 들어 사인비트의 미리 지정된 묶음 단위가 8개이고, 영상데이터는 도 5의 512X512 Lena영상이며, 지정된 모든 블록의 크기정보는 64X64이라고 가정하자. More specifically, for example, it is assumed that there are 8 predetermined bundle units of sine bits, the image data is a 512 × 512 Lena image of FIG. 5, and the size information of all the designated blocks is 64 × 64.

예를 들어, 소정의 블록(예를 들어, 도 5의 510)에서 첫 번째, 8개의 화소의 사인비트가 {0, 0, 0, 0, 1, 1, 1, 1}이면, 사인심볼은 7로 해석할 수 있다. 이때, 블록의 크기정보가 64X64이므로, 이러한 사인심볼은 512개가 될 수 있다. 이때, 부호화부(130)는 심볼 512개를 생성된 비트스트림에 삽입할 수 있다.For example, in a given block (eg, 510 of FIG. 5), if the sign bits of the first and eight pixels are {0, 0, 0, 0, 1, 1, 1, 1}, the sign symbol is Can be interpreted as 7. In this case, since the size information of the block is 64X64, the number of sign symbols may be 512. In this case, the encoder 130 may insert 512 symbols into the generated bitstream.

지금까지, 본 발명의 실시예에 따라 예측부(120)가 산출한 사인비트를 부호화부(130)가 부호화하는 방법에 대해서 설명하였다. Thus far, the method for encoding the sine bits calculated by the predictor 120 according to the embodiment of the present invention has been described.

이하에서는, 본 발명의 일 실시예에 따른 부호화부(130)가 추가적인 부호 처리를 하는 방법에 대하여 도 14 내지 도 16을 참조하여 설명한다.Hereinafter, a method of performing additional code processing by the encoder 130 according to an embodiment of the present invention will be described with reference to FIGS. 14 to 16.

도 14는 본 발명의 일 실시예에 따른 결정 비트 부호화 방법에 추가적인 부호 처리로 압축 효율을 향상 시키는 과정을 나타낸 순서도이며, 도 15는 본 발명의 일 실시예에 따른 Lena 이미지의 에러값 분포도이고, 표 3는 본 발명의 일 실시예에 따른 Lena 이미지의 에러값의 부호교환 전의 부호와 부호교환 후의 부호를 비교한 표이다. 14 is a flowchart illustrating a process of improving compression efficiency by additional code processing to a decision bit encoding method according to an embodiment of the present invention. FIG. 15 is an error value distribution diagram of a Lena image according to an embodiment of the present invention. Table 3 is a table comparing the code before the code exchange and the code after the code exchange of the error value of the Lena image according to an embodiment of the present invention.

도 15를 참조하면, 본 발명의 일 실시예에 따른 Lena 이미지의 에러값 중 0의 분포는 에러값 1, 2, 3보다 빈도수가 작다. 다시 도 14를 참조하면, 단계 S1410에서 부호화부(130)는 예측부(120)에서 연산된 에러값의 빈도수를 측정한다. Referring to FIG. 15, a distribution of 0 of error values of a Lena image according to an embodiment of the present invention has a frequency smaller than that of error values 1, 2, and 3. Referring back to FIG. 14, in operation S1410, the encoder 130 measures the frequency of the error value calculated by the predictor 120.

이어서, 단계 S1420에서 부호화부(130)는 에러값 0의 빈도수가 에러값 b(임의의 결정 비트 값)의 빈도수보다 작으면 단계 S1430을 진행하고 그렇지 않으면 단계 S1440을 진행한다. Subsequently, in step S1420, the encoder 130 proceeds to step S1430 when the frequency of the error value 0 is smaller than the frequency of the error value b (the arbitrary decision bit value). Otherwise, the encoder 130 proceeds to step S1440.

단계 S1430에서 부호화부(130)는 에러값 0의 부호와 에러값 b의 부호를 교환한다. 단계 S1440에서는 생성되는 비트스트림에 부호가 교환되었는지 여부에 대하여 차후 확인을 위한 1비트가 추가될 수 있다. 이 때, 교환 여부에 따른 비트 부여를 경우에 따라 달리 할 수 있음은 당업자에게 자명하다. In step S1430, the encoder 130 exchanges a sign of the error value 0 and a sign of the error value b. In step S1440, one bit may be added for later checking as to whether or not signs are exchanged in the generated bitstream. At this time, it is apparent to those skilled in the art that the bit assignment according to the exchange status may be different depending on the case.

보다 상세하게는, 예측값을 통해 에러값을 부호화하기 위한 결정 비트값이 2라고 가정을 하면, 에러값 0, 1, 2를 부호화하기 위해 2비트를 사용하여야 하고, 3, 4, 5를 부호화하기 위해 4비트를 사용하여야 한다. 예를 들어, 도 15를 참조하면 에러값은 {1, 2, 3, 0, 4, 5… }의 순서로 빈도수를 보인다. 여기서, 0의 빈도수는 3의 빈도수보다 작은 점을 이용하여 0을 부호화 했을 때 사용되는 부호 '00'과 3을 표현하기 위한 부호 '1100'을 서로 교환한다. 이 결과 0과 3의 빈도수 차이의 2배에 해당하는 압축 용량을 줄일 수 있다. 부호를 교환한 결과, 표 3와 같이 에러값 0과 3의 부호가 바뀌게 된다. More specifically, assuming that a decision bit value for encoding an error value is 2 through a prediction value, 2 bits should be used for encoding error values 0, 1, and 2, and 3, 4, and 5 are encoded. 4 bits should be used. For example, referring to FIG. 15, the error value is {1, 2, 3, 0, 4, 5... } The frequency is shown in the order shown. Here, the frequency of 0 is interchanged with the symbol '00' used for encoding 0 and the symbol '1100' for expressing 3 using a point smaller than the frequency of 3. The result is a reduction in compression capacity that is twice the frequency difference between zero and three. As a result of the sign exchange, the sign of the error values 0 and 3 is changed as shown in Table 3.

에러값Error value 에러값의 부호 교환 전 부호Code before code exchange of error value 에러값의 부호 교환 후 부호Code after code exchange of error value 00 0000 11001100 1One 0101 0101 22 1010 1010 33 11001100 0000 44 11011101 11011101 55 11101110 11101110 ...... ...... ......

보다 일반적으로 설명하면, 부호화부는 에러값 0의 빈도수가 에러값 2k-1 (k는 제1 결정비트값: 예를 들어 3)의 빈도수보다 작을 경우, 에러값 0의 부호와 에러값 2k-1의 부호를 교환한다. 지금까지 도 14 내지 도 15를 참조하여 에러값의 빈도수에 따라 결정비트값을 교환하는 것을 설명하였다. More generally, when the frequency of the error value 0 is smaller than the frequency of the error value 2 k -1 (k is the first decision bit value: for example, 3), the sign of the error value 0 and the error value 2 k are described. Exchange the sign of -1. Up to now, the replacement of the decision bit value according to the frequency of the error value has been described with reference to FIGS. 14 to 15.

이하 도 16을 참조하여 제1 결정비트값의 분포에 따른 제2 결정비트값의 교환을 설명한다.Hereinafter, the exchange of the second decision bit value according to the distribution of the first decision bit value will be described with reference to FIG. 16.

도 16은 본 발명의 일 실시예에 따른 Lena 영상에서 블록별로 선정된 결정비트값의 분포도이고, 표 4는 본 발명의 일 실시예에 따른 Lena 이미지의 제 1결정비트값의 부호교환 전의 부호와 부호교환 후의 부호를 비교한 표이다. 16 is a distribution diagram of decision bit values selected for each block in a Lena image according to an embodiment of the present invention, and Table 4 is a code before code exchange of a first decision bit value of a Lena image according to an embodiment of the present invention. A table comparing codes after code exchange.

도 16를 참조하면, 본 발명에 따른 Lena 이미지의 결정 비트값은 2, 3에 집중 분포 되어 있다. 에러값에 선정된 결정 비트값을 상술한 바와 같이 교환한 것처럼, 제1 결정 비트값에 선정된 제2 결정 비트값을 교환하면, 압축 효율을 더 높일 수 있다. Referring to FIG. 16, the decision bit values of the Lena image according to the present invention are concentrated in 2 and 3. As the decision bit value selected for the error value is exchanged as described above, if the second decision bit value selected for the first decision bit value is exchanged, the compression efficiency can be further increased.

도 16의 제1 결정비트값은 2부터 8까지 점차 빈도수가 작아진다. 그리고 제1 결정비트값 1의 빈도수는 제1 결정비트값 2보다는 빈도수가 작다. 제1 결정비트값의 분포는 이미지마다 다소의 차이점을 보이지만 대체로 도 16과 비슷한 양상을 뛴다.The first decision bit value of FIG. 16 gradually decreases in frequency from 2 to 8. FIG. The frequency of the first decision bit value 1 is smaller than that of the first decision bit value 2. Although the distribution of the first decision bit value shows some differences for each image, the first decision bit value is generally similar to that of FIG. 16.

부호화부(130)는 제1 결정비트값 1의 빈도수와 나머지 제1 결정비트값 2 내지 8의 빈도수를 순차적으로 비교를 한다. 예를 들면, 제1 결정비트값 1과 제1 결정비트값 2를 비교하여 전자의 값이 더 작으면, 제1 결정비트값 1과 제1 결정비트값 3을 비교한다. Lena 이미지의 경우 제1 결정비트값 6과 비교를 했을 때, 제1 결정비트값 1이 더 큰 값을 가지므로, 제1 결정비트값 1의 부호를 제1 결정비트값 5의 부호로 수정한다. 그리고, 표 4에서 나타난 것과 같이 제1 결정비트값 2내지 제1 결정비트값 5의 부호는 상응하는 제1 결정비트값 1 내지 제1 결정비트값 4의 부호로 수정한다. The encoder 130 sequentially compares the frequencies of the first decision bit values 1 and the frequencies of the remaining first decision bit values 2 to 8. For example, when the former decision bit value 1 is compared with the first decision bit value 2 and the former value is smaller, the first decision bit value 1 and the first decision bit value 3 are compared. In the case of the Lena image, when the first decision bit value 1 has a larger value when compared with the first decision bit value 6, the sign of the first decision bit value 1 is corrected to the sign of the first decision bit value 5. . As shown in Table 4, the sign of the first decision bit value 2 to the first decision bit value 5 is modified to the sign of the corresponding first decision bit value 1 to the first decision bit value 4.

제1 결정비트값First decision bit value 부호 교환 전 결정 비트 값의 부호Sign of decision bit value before sign exchange 부호 교환 후 결정 비트 값의 부호Sign of decision bit value after sign exchange 1One 0000 11011101 22 0101 0000 33 1010 0101 44 11001100 1010 55 11011101 11001100 66 11101110 11101110 77 111100111100 111100111100 88 111101111101 111101111101

보다 일반적으로 설명하면, 부호화부(130)는 상기 제1 결정비트값 중 제1 결정비트값 1 내지 8 중 1의 빈도수와 나머지 제1 결정비트값 2 내지 8의 빈도수를 제1 결정비트값 1의 빈도수가 더 큰 제1 결정비트값 t(예를 들어 6)까지 비교를 한 후, 제1 결정비트값 1을 제1 결정비트값 t-1(예를 들어 5)의 부호를 수정하고, 제1 결정비트값 2내지 t-1의 부호는 상응하는 제1 결정비트값 1내지 t-2(예를 들어 4)의 부호로 수정한다.More generally, the encoder 130 may determine the frequency of 1 of the first decision bit values 1 to 8 and the frequency of the remaining first decision bit values 2 to 8 of the first decision bit value 1. After comparing the first decision bit value t (e.g. 6) with a greater frequency of, modify the sign of the first decision bit value t-1 (e.g. 5), The sign of the first decision bit value 2 to t-1 is corrected to the sign of the corresponding first decision bit value 1 to t-2 (for example 4).

지금까지, 도 12 내지 도 13을 참조하여, 예측부(120)가 산출한 에러값을 부호화부(130)가 부호화하는 방법에 대해서 설명하였다. 또한, 예측부(120)가 산출한 사인비트를 부호화부(130)가 부호화하는 방법에 대해서 설명하였다. 또한, 도 14 내지 도 16을 참조하여, 부호화부(130)가 에러값과 결정 비트값의 부호 교환을 통해 압축 효율을 높이는 방법에 대해서 설명하였다.So far, the method of encoding the error value calculated by the predicting unit 120 by the encoding unit 130 has been described with reference to FIGS. 12 to 13. In addition, the method in which the encoder 130 encodes the sine bit calculated by the predictor 120 has been described. In addition, with reference to FIGS. 14 to 16, a method in which the encoding unit 130 improves compression efficiency through code exchange between an error value and a decision bit value has been described.

여기서, 본 발명의 실시예에 따르면, 예측부(120)가 산출한 에러값 및/또는 사인비트를 부호화부(130)가 다양하게 결정비트값을 선정하고, 부호화할 수 있음은 당업자에게 자명하다.Here, according to the exemplary embodiment of the present invention, it will be apparent to those skilled in the art that the encoder 130 may select and encode the decision bit value in various ways from the error value and / or the sine bit calculated by the predictor 120. .

이하에서는, 본 발명의 실시예에 따라 결정 비트 복호화 장치 및 방법에 대해서 설명한다.Hereinafter, an apparatus and method for determining bit decoding according to an embodiment of the present invention will be described.

도 17는 본 발명의 일 실시예에 따른 결정 비트 복호화 장치의 구성도이며, 도 18는 본 발명의 일 실시예에 따른 결정 비트 복호화 방법의 순서도이다. 17 is a configuration diagram of a decision bit decoding apparatus according to an embodiment of the present invention, and FIG. 18 is a flowchart of a decision bit decoding method according to an embodiment of the present invention.

도 17를 참조하면, 본 발명의 실시예에 따른 결정 비트 복호화 장치는 비트스트림 입력부(1710), 가변 블록 생성부(1720), 복호화부(1730), 예측부(1740) 및 복원부(1750)을 포함할 수 있다. Referring to FIG. 17, a decision bit decoding apparatus according to an embodiment of the present invention includes a bitstream input unit 1710, a variable block generator 1720, a decoder 1730, a predictor 1740, and a reconstructor 1750. It may include.

이하에서, 발명의 이해와 설명의 편의를 도모하기 위하여, 도 17의 각 구송요소의 기능 및 동작을 도 18의 본 발명의 실시예에 따른 복호화 방법의 순서도를 참조하여 설명한다. Hereinafter, in order to facilitate understanding and explanation of the present invention, the functions and operations of the respective transport elements of FIG. 17 will be described with reference to a flowchart of a decoding method according to the embodiment of the present invention of FIG.

도 18를 참조하면, 단계 S1810에서 비트스트림 입력부(1710)는 부호화된 비트스트림을 수신한다. Referring to FIG. 18, in step S1810, the bitstream input unit 1710 receives an encoded bitstream.

이어서, 단계 S1820에서 가변 블록 생성부(1720)는 수신된 비트스트림에서 쿼드트리 정보를 추출하여 부호화시 사용한 가변 블록을 생성한다. In operation S1820, the variable block generator 1720 extracts quadtree information from the received bitstream and generates a variable block used for encoding.

이어서, 단계 S1830 에서 복호화부(1730)는 비트스트림에서 추출된 결정 비트값을 이용하여 에러값을 복호화한다. Subsequently, in step S1830, the decoder 1730 decodes the error value by using the decision bit value extracted from the bitstream.

이어서, 단계 S1840에서 예측부(1740)는 대상 화소의 주변 화소값을 이용하여 예측값을 산출하고, 복원부(1750)는 이 예측값과 복호화된 사인비트 및 에러값과 이용하여 대상 화소값을 산출하여 원 영상을 복원한다.Subsequently, in step S1840, the prediction unit 1740 calculates a prediction value using the peripheral pixel values of the target pixel, and the reconstruction unit 1750 calculates the target pixel value using the prediction value, the decoded sine bits, and the error value. Restore the original image.

이하에서 단계 S1830 및 S1830의 과정은 도 19를 참조하여 상세히 설명한다.Hereinafter, the processes of steps S1830 and S1830 will be described in detail with reference to FIG. 19.

도 19은 본 발명의 실시예에 따라 복호화부, 예측부 및 복원부가 비트스트림을 복호화하는 방법의 순서도이다. 19 is a flowchart illustrating a method of decoding a bitstream by a decoder, a predictor, and a reconstructor according to an embodiment of the present invention.

본 발명의 실시예에 따른 결정 비트 복호화 방법을 설명함에 있어서, 도 12 내지 도 16을 참조하여 설명한 결정 비트 부호화 방법의 역순과 중복되는 설명은 발명의 요지를 명확하게 하기 위하여 생략하도록 한다.In describing the decision bit decoding method according to an exemplary embodiment of the present invention, a description overlapping with the reverse order of the decision bit encoding method described with reference to FIGS. 12 to 16 will be omitted for clarity.

또한, 결정 비트값을 이용하여 복호화하는 방법은 상술한 결정 비트 부호화 방법의 역순이므로, 이에 대한 상세한 설명은 생략하도록 한다. In addition, since the decoding method using the determination bit value is the reverse order of the above-described determination bit encoding method, a detailed description thereof will be omitted.

먼저, 본 발명의 실시예에 따라 복호화부(1730)가 비트스트림으로부터 에러값들을 산출하는 방법에 대해서 설명한다.First, a method of calculating error values from the bitstream by the decoder 1730 according to an embodiment of the present invention will be described.

단계 S1910에서 복호화부(1730)는 복호화할 비트스트림으로부터 제2 결정비트값을 추출하고, 단계 S1911에서 제2 결정비트값을 이용하여 제1 결정비트값을 복호화한다. In operation S1910, the decoder 1730 extracts a second determination bit value from the bitstream to be decoded, and in operation S1911, the decoding unit 1730 decodes the first determination bit value using the second determination bit value.

이때, 단계 S1910 내지 단계 S1911은 도 13을 참조하여 설명한 부호화 방법으로 비트스트림이 생성된 경우를 상정하여 설명하였다. 만일 도 12을 참조하여 설명한 부호화 방법으로 비트스트림이 생성된 경우, 단계 S1910 내지 단계 S1911은 생략될 수 있음은 당업자에게 자명하다.In this case, steps S1910 to S1911 have been described assuming a bitstream is generated by the encoding method described with reference to FIG. 13. If a bitstream is generated by the encoding method described with reference to FIG. 12, it will be apparent to those skilled in the art that steps S1910 to S1911 may be omitted.

단계 S1920에서 복호화부(1730)는 복호화할 비트스트림으로부터 사인심볼을 추출하고, 단계 S1921에서 복호화부(1730)는 미리 지정된 사인비트의 묶음단위인 사인심볼을 구성하고 있는 사인비트를 추출한다.In step S1920, the decoder 1730 extracts a sign symbol from the bitstream to be decoded, and in step S1921, the decoder 1730 extracts a sign bit constituting a sign symbol that is a unit of a predetermined sign bit.

이때, 단계 S1921에서 복호화부(1730)가 사인심볼들을 사인비트의 묶음으로 해석하는 것으로 설명하였으나, 복호화 장치의 다른 구성요소가 이를 수행할 수 있음은 당업자에게 자명하다. In this case, although the decoding unit 1730 interprets the sign symbols as a bundle of sign bits in step S1921, it will be apparent to those skilled in the art that other components of the decoding apparatus may perform this.

단계 S1930에서 예측부(1740)는 복원화 할 대상 화소에 대한 예측값을 연산한다. 예측 과정은 도 7 내지 도 9에서 설명한 부호화시의 예측 과정과 동일하다. 단, 부호화시의 예측 과정은 미리 저장된 영상을 대상으로 하지만 복호화시 예측 과정은 각 화소값을 복원하면서 복원된 화소값을 이용해 예측해야 하기 때문에 화소값 복원과 예측과정이 화소값 하나씩 반복적으로 이루어져야 한다.In operation S1930, the prediction unit 1740 calculates a prediction value for the target pixel to be reconstructed. The prediction process is the same as the prediction process at the time of encoding described with reference to FIGS. 7 to 9. However, since the prediction process at the time of encoding is for a pre-stored image, the prediction process at decoding requires reconstruction of each pixel value, and thus the pixel value reconstruction and prediction process should be repeated one pixel value. .

단계 S1940에서 복원부(1750)는 예측값과 에러값 및 사인비트를 수학식 3을 통해 원 화소값을 복원한다. In operation S1940, the reconstruction unit 1750 reconstructs the original pixel value by using Equation 3 with the prediction value, the error value, and the sine bit.

[수학식 3][Equation 3]

Figure 112007052049764-pat00115
Figure 112007052049764-pat00115

Figure 112007052049764-pat00116
이면,
Figure 112007052049764-pat00116
If,

Figure 112007052049764-pat00117
Figure 112007052049764-pat00117

Figure 112007052049764-pat00118
는 에러값,
Figure 112007052049764-pat00119
는 대상 화소의 화소값,
Figure 112007052049764-pat00120
는 대상 화소의 예측값,
Figure 112007052049764-pat00121
는 화소값 및 예측값의 비트수,
Figure 112007052049764-pat00122
는 사인비트에 따라 1 또는 -1을 가지는 사인값,
Figure 112007052049764-pat00123
는 미리 정해진 최대 에러값이다.
Figure 112007052049764-pat00118
Is the error value,
Figure 112007052049764-pat00119
Is the pixel value of the target pixel,
Figure 112007052049764-pat00120
Is the predicted value of the target pixel,
Figure 112007052049764-pat00121
Is the number of bits of the pixel value and the predicted value,
Figure 112007052049764-pat00122
Is a sine value with 1 or -1 depending on the sine bit,
Figure 112007052049764-pat00123
Is a predetermined maximum error value.

단계 S1950에서 복원부(1750)는 원 화소값을 복원한 후, 복원한 화소가 영상의 마지막 화소인지 판단한다.In operation S1950, the restoration unit 1750 restores the original pixel value, and then determines whether the restored pixel is the last pixel of the image.

만약 마지막 화소가 아니면 현재까지 복원한 화소를 이용해 다음 화소에 대한 예측값을 연산하기 위해 단계 S1930 내지 단계 S1940을 수행한다.If it is not the last pixel, steps S1930 to S1940 are performed to calculate a prediction value for the next pixel using the pixels reconstructed up to now.

만약 마지막 화소라면 복호화 과정을 종료한다.If the last pixel, the decoding process is terminated.

상술한 바와 같은 본 발명의 방법은 프로그램으로 구현되어 컴퓨터로 읽을 수 있는 기록매체(씨디롬, 램, 롬, 플로피 디스크, 하드 디스크, 광자기 디스크 등)에 저장될 수 있음은 당업자에게 자명하다.It will be apparent to those skilled in the art that the method of the present invention as described above may be implemented as a program and stored in a computer-readable recording medium (CD-ROM, RAM, ROM, floppy disk, hard disk, magneto-optical disk, etc.).

도 1은 본 발명의 일 실시예에 따른 부호화 장치의 구성도.1 is a block diagram of an encoding apparatus according to an embodiment of the present invention.

도 2는 본 발명의 일 실시예에 따른 부호화 방법의 순서도.2 is a flowchart of an encoding method according to an embodiment of the present invention.

도 3은 가변 블록 구성을 설명하기 위한 단위별 블록을 도시한 도면.3 is a block diagram of a unit for explaining a variable block configuration;

도 4는 도 3의 입력영상을 본 발명의 일 실시예에 따른 부호화 하는 경우에 생성되는 쿼드트리를 예시한 도면.4 is a diagram illustrating a quadtree generated when the input image of FIG. 3 is encoded according to an embodiment of the present invention. FIG.

도 5는 Lena 이미지를 크기가 64X64인 블록으로 분할한 것을 도시한 도면.FIG. 5 shows the division of a Lena image into blocks of size 64 × 64.

도 6은 DPCM을 설명하기 위한 도면.6 is a diagram for explaining a DPCM.

도 7 및 도 8은 본 발명의 일 실시예에 따른 영상 데이터의 각 화소값을 예측하는 방법을 설명하기 위한 도면.7 and 8 are diagrams for describing a method of predicting each pixel value of image data according to an embodiment of the present invention.

도 9은 본 발명의 실시예에 따른 영상 데이터의 경계면을 고려한 예측 알고리즘.9 is a prediction algorithm considering an interface of image data according to an embodiment of the present invention.

도 10은 본 발명의 일 실시예에 따른 예측값의 재설정을 설명하기 위한 도면.10 is a diagram for explaining resetting prediction values according to an embodiment of the present invention;

도 11는 본 발명의 일 실시예에 따른 영상 데이터의 대상 화소값과 예측값의 차이값이 분포하는 것을 예시한 도면. 11 is a diagram illustrating a distribution of a difference value between a target pixel value and a predicted value of image data according to an embodiment of the present invention.

도 12은 본 발명의 일 실시예에 따른 부호화부가 결정비트값을 이용하여 부호화하는 방법을 나타낸 순서도.12 is a flowchart illustrating a method of encoding by an encoder by using a decision bit value according to an embodiment of the present invention.

도 13은 본 발명의 다른 실시예에 따른 부호화부가 결정비트값을 이용하여 부호화하는 방법을 나타낸 순서도.13 is a flowchart illustrating a method of encoding by an encoder by using a decision bit value according to another embodiment of the present invention.

도 14는 본 발명의 일 실시예에 따른 결정 비트 부호화 방법에 추가적인 부호 처리로 압축 효율을 향상 시키는 과정을 나타낸 순서도.14 is a flowchart illustrating a process of improving compression efficiency by additional code processing to a decision bit encoding method according to an embodiment of the present invention.

도 15는 본 발명의 일 실시예에 따른 Lena 이미지의 에러값 분포도. 15 is an error value distribution diagram of a Lena image according to an embodiment of the present invention.

도 16은 본 발명의 일 실시예에 따른 Lena 영상에서 블록별로 선정된 결정비트값의 분포도.16 is a distribution diagram of decision bit values selected for each block in a Lena image according to an embodiment of the present invention.

도 17은 본 발명의 일 실시예에 따른 결정 비트 복호화 장치를 나타낸 구성도.17 is a block diagram illustrating a decision bit decoding apparatus according to an embodiment of the present invention.

도 18은 본 발명의 일 실시예에 따른 결정 비트 복호화 방법을 나타낸 순서도.18 is a flowchart illustrating a decision bit decoding method according to an embodiment of the present invention.

도 19는 본 발명의 일 실시예에 따른 복호화부 및 복원부가 비트스트림을 복호화하는 방법을 나타낸 순서도.19 is a flowchart illustrating a method of decoding a bitstream by a decoding unit and a reconstructing unit according to an embodiment of the present invention.

Claims (41)

결정 비트(Bit Precision)를 이용한 부호화 장치에 있어서,In the encoding device using the decision bit (Bit Precision), 부호화할 영상 데이터의 각 대상 화소의 예측 방법을 판단하고, 상기 예측 방법을 이용하여 상기 대상 화소의 예측값을 산출하는 예측부;A prediction unit to determine a prediction method of each target pixel of the image data to be encoded, and to calculate a prediction value of the target pixel by using the prediction method; 상기 예측값을 이용하여 에러값을 산출하고, 미리 지정된 블록의 크기부터 미리 지정된 단위만큼 상기 블록의 크기를 순차적으로 증가시키며, 상기 블록에 해당하는 상기 에러값에 상응하는 제1 결정비트값을 선정하여 상기 에러값을 부호화하는 부호화부; 및An error value is calculated using the prediction value, the size of the block is sequentially increased from a size of a predetermined block by a predetermined unit, and a first decision bit value corresponding to the error value corresponding to the block is selected. An encoder which encodes the error value; And 상기 블록의 부호화 결과를 이용하여 압축용량이 최소화되는 블록 구성을 나타내는 가변 블록 구성 정보를 산출하는 가변 블록 구성부를 포함하되, A variable block configuration unit configured to calculate variable block configuration information indicating a block configuration in which the compression capacity is minimized using the encoding result of the block, 상기 부호화부는 상기 산출된 가변 블록 구성 정보에 따른 블록으로 부호화하여 비트스트림(Bit Stream)을 생성하고, 상기 비트스트림에 상기 가변 블록 구성 정보 및 상기 제1 결정비트값 중 하나 이상이 삽입되고, 상기 제1 결정비트값은 결정비트값 0 내지 n을 이용하여 상기 에러값을 각각 부호화하였을 때 압축용량이 최소인 값이고, 상기 n은 자연수인 것을 특징으로 하는 부호화 장치.The encoder generates a bit stream by encoding the block according to the calculated variable block configuration information, and inserts one or more of the variable block configuration information and the first decision bit value into the bit stream. The first decision bit value is a value having a minimum compression capacity when the error values are respectively encoded using decision bit values 0 to n, and n is a natural number. 제 1항에 있어서,The method of claim 1, 상기 부호화부는 상기 예측값을 이용하여 사인비트를 더 산출하고, The encoder further calculates a sign bit using the prediction value, 상기 비트스트림에 상기 가변 블록 구성 정보, 상기 사인비트 및 상기 결정 비트값 중 하나 이상이 삽입되되,At least one of the variable block configuration information, the sign bit, and the decision bit value is inserted into the bitstream, 상기 사인비트는 상기 대상 화소의 화소값과 상기 예측값의 차이의 부호인 것을 특징으로 하는 부호화 장치.And the sine bit is a sign of a difference between a pixel value of the target pixel and the prediction value. 제 1항에 있어서,The method of claim 1, 상기 예측부는 상기 대상 화소의 상측 화소에 경계면이 포함되었는지 여부로서 상기 예측 방법을 판단하는 것을 특징으로 하는 부호화 장치.And the prediction unit determines the prediction method based on whether or not an upper boundary of the target pixel includes an interface. 제 2항에 있어서,The method of claim 2, 상기 예측값은 상기 대상 화소와 인접한 화소의 값을 이용해 상기 대상 화소값과 같거나 유사하게 미리 지정된 방법에 의하여 산출한 값인 것을 특징으로 하는 부호화 장치.And the predicted value is a value calculated by a predetermined method that is equal to or similar to the target pixel value by using a value of a pixel adjacent to the target pixel. 제 4항에 있어서,The method of claim 4, wherein 상기 예측값
Figure 112007052049764-pat00124
는 하기의 수학식을 이용하여 산출되되, T는 미리 설정된 임계값이고, A 및 B는 상기 대상 화소의 좌측 및 상측 화소값이고, C, D, E, F 및 G는 B에 상응하는 화소를 기준으로 각각 좌측, 우측, 좌상측, 상측, 우상측 화소값인 것을 특징으로 하는 부호화 장치.
The predicted value
Figure 112007052049764-pat00124
Is calculated using the following equation, wherein T is a preset threshold value, A and B are the left and upper pixel values of the target pixel, and C, D, E, F and G are pixels corresponding to B. A coding apparatus, characterized in that the pixel values are left, right, top left, top, and top right as reference.
[수학식][Equation]
Figure 112007052049764-pat00125
인 경우,
Figure 112007052049764-pat00125
If is
Figure 112007052049764-pat00126
이고,
Figure 112007052049764-pat00126
ego,
Figure 112007052049764-pat00127
인 경우,
Figure 112007052049764-pat00127
If is
Figure 112007052049764-pat00128
,
Figure 112007052049764-pat00129
,
Figure 112007052049764-pat00130
Figure 112007052049764-pat00131
중 최소값이
Figure 112007052049764-pat00128
,
Figure 112007052049764-pat00129
,
Figure 112007052049764-pat00130
And
Figure 112007052049764-pat00131
Of the minimum
Figure 112007052049764-pat00132
인 경우,
Figure 112007052049764-pat00133
이고,
Figure 112007052049764-pat00132
If is
Figure 112007052049764-pat00133
ego,
Figure 112007052049764-pat00134
인 경우,
Figure 112007052049764-pat00135
이고,
Figure 112007052049764-pat00134
If is
Figure 112007052049764-pat00135
ego,
Figure 112007052049764-pat00136
인 경우,
Figure 112007052049764-pat00137
이고,
Figure 112007052049764-pat00136
If is
Figure 112007052049764-pat00137
ego,
Figure 112007052049764-pat00138
인 경우,
Figure 112007052049764-pat00139
임.
Figure 112007052049764-pat00138
If is
Figure 112007052049764-pat00139
being.
제 5항에 있어서,The method of claim 5, 상기 에러값 및 상기 사인비트는 하기의 수학식을 이용하여 산출되되,
Figure 112007052049764-pat00140
는 상기 대상 화소의 상기 에러값,
Figure 112007052049764-pat00141
는 상기 대상 화소의 화소값,
Figure 112007052049764-pat00142
는 상기 대상 화소의 상기 예측값,
Figure 112007052049764-pat00143
는 상기 사인비트,
Figure 112007052049764-pat00144
는 미리 정해진 최대 에러값인 것 을 특징으로 하되,
The error value and the sine bit are calculated using the following equation,
Figure 112007052049764-pat00140
Is the error value of the target pixel,
Figure 112007052049764-pat00141
Is a pixel value of the target pixel,
Figure 112007052049764-pat00142
Is the predicted value of the target pixel,
Figure 112007052049764-pat00143
Is the sign bit,
Figure 112007052049764-pat00144
Is characterized in that the predetermined maximum error value,
상기 에러값은 상기 대상 화소의 화소값과 상기 예측값의 차이의 크기인 것을 특징으로 하는 부호화 장치. And the error value is a magnitude of a difference between a pixel value of the target pixel and the prediction value. [수학식] [Equation]
Figure 112007052049764-pat00145
Figure 112007052049764-pat00145
Figure 112007052049764-pat00146
이고,
Figure 112007052049764-pat00146
ego,
Figure 112007052049764-pat00147
이면
Figure 112007052049764-pat00147
Back side
Figure 112007052049764-pat00148
Figure 112007052049764-pat00148
제 1항에 있어서,The method of claim 1, 상기 미리 지정된 블록의 크기는 2nX2n (n은 자연수)이되, n이 1씩 순차적으로 증가하는 것을 특징으로 하는 부호화 장치.The pre-specified block size is 2 n X2 n coding apparatus characterized in that (n is a natural number) provided that, n is sequentially increased by one. 제 2항에 있어서,The method of claim 2, 상기 부호화부는 상기 사인비트를 상기 사인비트의 미리 지정된 묶음단위인 사인심볼로 해석하는 것을 특징으로 하는 부호화 장치.And the encoding unit interprets the sine bit into a sine symbol that is a predetermined bundle unit of the sine bit. 제 1항에 있어서,The method of claim 1, 상기 부호화부는 상기 제1 결정비트값에 상응하여 제2 결정비트값을 선정하고, 상기 제2 결정비트값을 이용하여 상기 제1 결정비트값을 더 부호화하되,The encoder selects a second decision bit value corresponding to the first decision bit value, and further encodes the first decision bit value using the second decision bit value. 상기 제2 결정비트값은 상기 제1 결정비트값을 결정비트값 0 내지 n을 이용하여 부호화한 압축용량이 최소인 값이고, 상기 n은 자연수인 것을 특징으로 하는 부호화 장치.And wherein the second decision bit value is a value having a minimum compression capacity obtained by encoding the first decision bit value using decision bit values 0 to n, and n is a natural number. 제 1항에 있어서,The method of claim 1, 상기 부호화부는 상기 에러값 중 에러값 0의 빈도수가 에러값 2k-1 (k는 제1 결정비트값)의 빈도수보다 작을 경우, 상기 에러값 0의 부호와 에러값 2k-1 의 부호를 교환하되, If the frequency of the error value 0 among the error values is less than the frequency of the error value 2 k -1 (k is the first decision bit value), the coder encodes the sign of the error value 0 and the error value 2 k -1. Exchange it, 상기 에러값 0의 부호가 교환되었는지 여부를 표시하는 비트를 상기 비트스트림에 삽입하는 것을 특징으로 하는 부호화 장치.And a bit indicating whether the code of the error value 0 is exchanged into the bitstream. 제 9항에 있어서,The method of claim 9, 상기 부호화부는 상기 제1 결정비트값 중 제 1 결정비트값 1의 빈도수와 나머지 제1 결정비트값의 빈도수를 비교하여, The encoder compares the frequency of the first decision bit value 1 and the frequency of the remaining first decision bit value among the first decision bit values, 상기 제1 결정비트값 1의 부호를 제1 결정비트값 t+1(여기서, t는 결정비트값 1보다 빈도수가 큰 결정비트값 중 최대인 결정비트값임)의 부호로 수정하고, Modifying the sign of the first decision bit value 1 to the sign of the first decision bit value t + 1 (where t is the decision bit value which is the largest of the decision bit values having a frequency greater than the decision bit value 1), 제1 결정비트값 2 내지 t의 부호는 제1 결정비트값 1 내지 t-1의 부호로 수정하되,The sign of the first decision bit value 2 to t is modified to the sign of the first decision bit value 1 to t-1, 상기 비트스트림에 상기 제1 결정비트값 1의 수정된 부호를 구별하기 위한 소정의 3비트가 삽입되는 것을 특징으로 하는 부호화 장치.And a predetermined 3 bits for distinguishing the modified code of the first decision bit value 1 is inserted into the bitstream. 결정 비트(Bit Precision)를 이용한 복호화 장치에 있어서,In the decoding device using the bit (Bit Precision), 복호화할 비트스트림(Bit Stream)으로부터 추출되는 가변 블록 구성 정보를 이용하여 가변 블록을 생성하는 블록 생성부; A block generation unit generating a variable block by using variable block configuration information extracted from a bit stream to be decoded; 상기 비트스트림으로부터 추출되는 제1 결정비트값 및 상기 가변 블록 구성 정보를 이용하여 상기 비트스트림을 복호화하여 에러값을 산출하는 복호화부; 및A decoder configured to decode the bitstream by using the first decision bit value extracted from the bitstream and the variable block configuration information to calculate an error value; And 복호화할 영상 데이터의 각 대상 화소의 예측 방법을 판단하고, 상기 예측 방법을 이용하여 상기 대상 화소의 예측값을 산출하는 예측부;A prediction unit to determine a prediction method of each target pixel of the image data to be decoded, and to calculate a prediction value of the target pixel using the prediction method; 상기 에러값 및 상기 예측값을 이용하여 화소값을 산출하는 복원부를 포함하는 복호화 장치.And a reconstruction unit configured to calculate a pixel value using the error value and the predicted value. 제 12항에 있어서,The method of claim 12, 상기 예측값은 상기 대상 화소와 인접한 화소들의 값을 이용해 상기 대상 화소값과 같거나 유사하게 미리 지정된 방법에 의하여 산출한 값을 의미하는 것을 특징으로 하는 복호화 장치.And the predicted value means a value calculated by a predetermined method that is equal to or similar to the target pixel value by using values of pixels adjacent to the target pixel. 제 12항에 있어서,The method of claim 12, 상기 복호화부는 상기 비트스트림으로부터 추출되는 제2 결정비트값을 이용하여 부호화된 상기 제1 결정비트값을 복호화하는 것을 특징으로 하는 복호화 장치.And the decoding unit decodes the first decision bit value encoded using the second decision bit value extracted from the bitstream. 제 14항에 있어서, The method of claim 14, 상기 복호화부는 상기 제1 결정비트값을 이용하여 부호화된 상기 에러값을 복호화하는 것을 특징으로 하는 복호화 장치.And the decoding unit decodes the error value encoded using the first decision bit value. 제 14항에 있어서,The method of claim 14, 상기 복호화부는 상기 비트스트림에서 부호화시 상기 제1 결정비트값 중 제1 결정비트값 1의 수정된 위치를 표시한 비트를 추출하여, 상기 제1 결정비트값 1의 부호를 제1 결정비트 t(상기 수정된 위치)의 부호로 수정하고 제1 결정비트값 2 내 지 t의 부호를 상응하는 제1 결정비트값 1내지 t-1의 부호로 수정하는 것을 특징으로 하는 복호화 장치.The decoding unit extracts a bit indicating a modified position of the first decision bit value 1 among the first decision bit values during encoding in the bitstream, and converts a sign of the first decision bit value 1 into a first decision bit t ( And a sign of the first decision bit value 2 to t to a sign of the corresponding first decision bit value 1 to t-1. 제 15항에 있어서,The method of claim 15, 상기 복호화부는 상기 비트스트림에서 부호화시 에러값 0의 부호가 교환된 여부를 표시한 비트를 추출하여, 부호가 교환되었을 경우 상기 에러값 중 상기 에러값 0의 부호와 에러값 2k-1 (k는 제1 결정비트값)의 부호를 교환하는 것을 특징으로 하는 복호화 장치. The decoding unit extracts a bit indicating whether the code of the error value 0 during the encoding in the bitstream is exchanged, and if the code is exchanged, the code of the error value 0 and the error value 2 k -1 (k Replaces the code of the first decision bit value). 제 13항에 있어서,The method of claim 13, 상기 예측값
Figure 112007052049764-pat00149
는 하기의 수학식을 이용하여 산출되되, T는 미리 설정된 임계값이고, A 및 B는 상기 대상 화소의 좌측 및 상측 화소값이고, C, D, E, F 및 G는 B에 상응하는 화소를 기준으로 각각 좌측, 우측, 좌상측, 상측, 우상측 화소값인 것을 특징으로 하는 복호화 장치.
The predicted value
Figure 112007052049764-pat00149
Is calculated using the following equation, wherein T is a preset threshold value, A and B are the left and upper pixel values of the target pixel, and C, D, E, F and G are pixels corresponding to B. A decoding apparatus, characterized in that the pixel values are left, right, upper left, upper, and upper right as reference.
[수학식][Equation]
Figure 112007052049764-pat00150
인 경우,
Figure 112007052049764-pat00150
If is
Figure 112007052049764-pat00151
이고,
Figure 112007052049764-pat00151
ego,
Figure 112007052049764-pat00152
인 경우,
Figure 112007052049764-pat00152
If is
Figure 112007052049764-pat00153
,
Figure 112007052049764-pat00154
,
Figure 112007052049764-pat00155
Figure 112007052049764-pat00156
중 최소값이
Figure 112007052049764-pat00153
,
Figure 112007052049764-pat00154
,
Figure 112007052049764-pat00155
And
Figure 112007052049764-pat00156
Of the minimum
Figure 112007052049764-pat00157
인 경우,
Figure 112007052049764-pat00158
이고,
Figure 112007052049764-pat00157
If is
Figure 112007052049764-pat00158
ego,
Figure 112007052049764-pat00159
인 경우,
Figure 112007052049764-pat00160
이고,
Figure 112007052049764-pat00159
If is
Figure 112007052049764-pat00160
ego,
Figure 112007052049764-pat00161
인 경우,
Figure 112007052049764-pat00162
이고,
Figure 112007052049764-pat00161
If is
Figure 112007052049764-pat00162
ego,
Figure 112007052049764-pat00163
인 경우,
Figure 112007052049764-pat00164
임.
Figure 112007052049764-pat00163
If is
Figure 112007052049764-pat00164
being.
제 12항에 있어서,The method of claim 12, 상기 화소값은 하기의 수학식을 이용하여 산출되되,
Figure 112007052049764-pat00165
는 상기 대상 화소의 상기 에러값,
Figure 112007052049764-pat00166
는 상기 대상 화소의 화소값,
Figure 112007052049764-pat00167
는 상기 대상 화소의 상기 예측값,
Figure 112007052049764-pat00168
는 상기 비트스트림으로부터 추출되는 사인비트,
Figure 112007052049764-pat00169
는 미리 정해진 최대 에러값인 것을 특징으로 하되,
The pixel value is calculated using the following equation,
Figure 112007052049764-pat00165
Is the error value of the target pixel,
Figure 112007052049764-pat00166
Is a pixel value of the target pixel,
Figure 112007052049764-pat00167
Is the predicted value of the target pixel,
Figure 112007052049764-pat00168
Is a sine bit extracted from the bitstream,
Figure 112007052049764-pat00169
Is characterized in that the predetermined maximum error value,
상기 에러값과 상기 사인비트는 상기 대상 화소의 화소값과 상기 예측값의 차이의 크기와 부호인 것을 특징으로 하는 복호화 장치.And the error value and the sine bit are a magnitude and a sign of a difference between a pixel value of the target pixel and the prediction value. [수학식][Equation]
Figure 112007052049764-pat00170
Figure 112007052049764-pat00170
Figure 112007052049764-pat00171
이면,
Figure 112007052049764-pat00171
If,
Figure 112007052049764-pat00172
Figure 112007052049764-pat00172
결정 비트(Bit Precision)을 이용한 부호화 방법에 있어서,In the encoding method using the decision bit (Bit Precision), (a) 부호화할 영상 데이터의 각 대상 화소에 상응하여 예측 방법을 판단하는 단계;(a) determining a prediction method corresponding to each target pixel of the image data to be encoded; (b) 상기 예측 방법에 상응하여 상기 대상 화소의 예측값을 산출하는 단계;(b) calculating a predicted value of the target pixel corresponding to the prediction method; (c) 상기 예측값을 이용하여 에러값을 산출하고, 미리 지정된 블록의 크기부터 미리 지정된 단위만큼 상기 블록의 크기를 순차적으로 증가시키며, 상기 블록에 해당하는 상기 에러값에 상응하는 결정비트값을 선정하는 단계;(c) calculating an error value using the predicted value, sequentially increasing the size of the block by a predetermined unit from a size of a predetermined block, and selecting a decision bit value corresponding to the error value corresponding to the block. Making; (d) 상기 선정된 결정비트값을 이용하여 상기 에러값을 부호화하는 단계; (d) encoding the error value using the predetermined decision bit value; (e) 상기 블록의 부호화한 결과를 이용하여 압축용량이 최소화되는 가변 블록 구성 정보를 산출하는 단계; 및(e) calculating variable block configuration information for minimizing a compression capacity by using the encoded result of the block; And (f) 상기 가변블록 구성 정보에 따른 블록으로 부호화하여 비트스트림(Bit Stream)을 생성하는 단계를 포함하되, (f) encoding a block according to the variable block configuration information to generate a bit stream, 상기 비트스트림에 상기 가변블록 구성 정보, 상기 결정비트값 중 하나 이상이 삽입되고, 상기 선정된 결정비트값은 결정비트값 0 내지 n을 이용하여 상기 에러값을 각각 부호화한 압축용량이 최소인 값이고, 상기 n은 자연수인 것을 특징으로 하는 부호화 방법.One or more of the variable block configuration information and the decision bit value are inserted into the bitstream, and the predetermined decision bit value is a value having a minimum compression capacity in which the error values are encoded using decision bit values 0 to n, respectively. And n is a natural number. 제 20항에 있어서,The method of claim 20, 상기 (c)단계는 상기 예측값을 이용하여 사인비트를 더 산출하고,Step (c) further calculates a sign bit using the prediction value, 상기 비트스트림에 상기 가변 블록 구성 정보, 상기 사인비트 및 상기 결정비트값 중 하나 이상이 삽입되되,At least one of the variable block configuration information, the sign bit, and the decision bit value is inserted into the bitstream, 상기 사인비트는 상기 대상 화소의 화소값과 상기 예측값의 차이의 부호인 것을 특징으로 하는 부호화 방법.And the sine bit is a sign of a difference between a pixel value of the target pixel and the prediction value. 제 20항에 있어서,The method of claim 20, 상기 (a)단계는 상기 대상 화소의 상측 화소에 경계면이 포함되었는지 여부로서 상기 예측 방법을 판단하는 것을 특징으로 하는 부호화 방법.In step (a), the prediction method is determined based on whether or not an upper boundary of the target pixel includes an interface. 제 20항에 있어서, The method of claim 20, 상기 예측값은 상기 대상 화소와 인접한 화소들의 값을 이용해 상기 대상 화소값과 같거나 유사하게 미리 지정된 방법에 의하여 산출한 값을 의미하는 것을 특징으로 하는 부호화 방법.And the predicted value means a value calculated by a predetermined method that is equal to or similar to the target pixel value by using values of pixels adjacent to the target pixel. 제 23항에 있어서,The method of claim 23, wherein 상기 예측값
Figure 112007052049764-pat00173
는 하기의 수학식을 이용하여 산출되되, T는 미리 설정된 임계값이고, A 및 B는 상기 대상 화소의 좌측 및 상측 화소값이고, C, D, E, F 및 G는 B에 상응하는 화소를 기준으로 각각 좌측, 우측, 좌상측, 상측, 우상측 화소값인 것을 특징으로 하는 부호화 방법.
The predicted value
Figure 112007052049764-pat00173
Is calculated using the following equation, wherein T is a preset threshold value, A and B are the left and upper pixel values of the target pixel, and C, D, E, F and G are pixels corresponding to B. A coding method, characterized in that the pixel values are left, right, top left, top, and top right respectively.
[수학식][Equation]
Figure 112007052049764-pat00174
인 경우,
Figure 112007052049764-pat00174
If is
Figure 112007052049764-pat00175
이고,
Figure 112007052049764-pat00175
ego,
Figure 112007052049764-pat00176
인 경우,
Figure 112007052049764-pat00176
If is
Figure 112007052049764-pat00177
,
Figure 112007052049764-pat00178
,
Figure 112007052049764-pat00179
Figure 112007052049764-pat00180
중 최소값이
Figure 112007052049764-pat00177
,
Figure 112007052049764-pat00178
,
Figure 112007052049764-pat00179
And
Figure 112007052049764-pat00180
Of the minimum
Figure 112007052049764-pat00181
인 경우,
Figure 112007052049764-pat00182
이고,
Figure 112007052049764-pat00181
If is
Figure 112007052049764-pat00182
ego,
Figure 112007052049764-pat00183
인 경우,
Figure 112007052049764-pat00184
이고,
Figure 112007052049764-pat00183
If is
Figure 112007052049764-pat00184
ego,
Figure 112007052049764-pat00185
인 경우,
Figure 112007052049764-pat00186
이고,
Figure 112007052049764-pat00185
If is
Figure 112007052049764-pat00186
ego,
Figure 112007052049764-pat00187
인 경우,
Figure 112007052049764-pat00188
임.
Figure 112007052049764-pat00187
If is
Figure 112007052049764-pat00188
being.
제 21항에 있어서,The method of claim 21, 상기 에러값과 상기 사인비트는 하기의 수학식을 이용하여 산출되되,
Figure 112009023118985-pat00189
는 상기 대상 화소의 상기 에러값,
Figure 112009023118985-pat00190
는 상기 대상 화소의 화소값,
Figure 112009023118985-pat00191
는 상기 대상 화소의 상기 예측값,
Figure 112009023118985-pat00192
는 사인비트,
Figure 112009023118985-pat00193
는 미리 정해진 최대 에러값인 것을 특징으로 하되,
The error value and the sine bit are calculated using the following equation,
Figure 112009023118985-pat00189
Is the error value of the target pixel,
Figure 112009023118985-pat00190
Is a pixel value of the target pixel,
Figure 112009023118985-pat00191
Is the predicted value of the target pixel,
Figure 112009023118985-pat00192
Is a sine bit,
Figure 112009023118985-pat00193
Is characterized in that the predetermined maximum error value,
상기 에러값은 상기 대상 화소의 화소값과 상기 예측값의 차이의 크기인 것을 특징으로 하는 부호화 방법.And the error value is a magnitude of a difference between a pixel value of the target pixel and the prediction value. [수학식][Equation]
Figure 112009023118985-pat00194
Figure 112009023118985-pat00194
Figure 112009023118985-pat00195
이고,
Figure 112009023118985-pat00195
ego,
Figure 112009023118985-pat00196
이면
Figure 112009023118985-pat00196
Back side
Figure 112009023118985-pat00197
Figure 112009023118985-pat00197
제 20항에 있어서,The method of claim 20, 상기 미리 지정된 블록의 크기는 2nX2n (n은 자연수)이되, n이 1씩 순차적으로 증가하는 것을 특징으로 하는 부호화 방법.The pre-specified block size is 2 n X2 n coding method characterized in that (n is a natural number) provided that, n is sequentially increased by one. 제 21항에 있어서,The method of claim 21, 상기 (c)단계에서 상기 사인비트는 상기 사인비트의 미리 지정된 묶음단위인 사인심볼로 해석되는 것을 특징으로 하는 부호화 방법.And the sign bit is interpreted as a sign symbol which is a predetermined bundle unit of the sign bit. 제 20항에 있어서,The method of claim 20, 상기 (c)단계는 (g1) 상기 에러값에 상응하여 제1 결정비트값을 선정하는 단계를 포함하는 것을 특징으로 하는 부호화 방법.The step (c) includes (g1) selecting a first decision bit value corresponding to the error value. 제 28항에 있어서, The method of claim 28, 상기 (c)단계는 (g1)단계 이후에 (g2) 상기 제1 결정비트값에 상응하여 제2 결정비트값을 선정하는 단계를 더 포함하되,Step (c) further includes (g2) selecting a second decision bit value corresponding to the first decision bit value after step (g1), 상기 제2 결정비트값은 상기 제1 결정비트값을 결정비트값 0 내지 n을 이용하여 부호화한 압축용량이 최소인 값이고, 상기 n은 자연수인 것을 특징으로 하는 부호화 방법.And the second decision bit value is a value having a minimum compression capacity obtained by encoding the first decision bit value using decision bit values 0 to n, and n is a natural number. 제 28항에 있어서,The method of claim 28, 상기 (d)단계는 상기 에러값 중 에러값 0의 빈도수가 에러값 2k-1 (k는 제1 결정비트값)의 빈도수보다 작을 경우, 상기 에러값 0의 부호와 에러값 k의 부호를 교환하되,In the step (d), if the frequency of the error value 0 is smaller than the frequency of the error value 2 k -1 (k is the first decision bit value), the sign of the error value 0 and the error value k are determined. Exchange it, 상기 에러값 0의 부호가 교환되었는지 여부를 표시하는 비트를 상기 비트스 트림에 삽입하는 것을 특징으로 하는 부호화 방법.And inserting a bit indicating whether or not the sign of the error value 0 is exchanged into the bit stream. 제 28항에 있어서,The method of claim 28, 상기 (d)단계는 상기 제1 결정비트값 중 제 1 결정비트값 1의 빈도수와 나머지 제1 결정비트값의 빈도수를 비교하여, In step (d), the frequency of the first decision bit value 1 among the first decision bit values is compared with the frequency of the remaining first decision bit values. 상기 제1 결정비트값 1의 부호를 제1 결정비트값 t+1(여기서, t는 결정비트값 1보다 빈도수가 큰 결정비트값 중 최대인 결정비트값임)의 부호로 수정하고, Modifying the sign of the first decision bit value 1 to the sign of the first decision bit value t + 1 (where t is the decision bit value which is the largest of the decision bit values having a frequency greater than the decision bit value 1), 제1 결정비트값 2 내지 t의 부호는 제1 결정비트값 1 내지 t-1의 부호로 수정하되,The sign of the first decision bit value 2 to t is modified to the sign of the first decision bit value 1 to t-1, 상기 비트스트림에 상기 제1 결정비트값 1의 수정된 부호를 구별하기 위한 소정의 3비트가 삽입되는 것을 특징으로 하는 부호화 방법.And a predetermined three bits for distinguishing the modified code of the first decision bit value 1 are inserted into the bitstream. 결정 비트(Bit Precision)을 이용한 복호화 방법에 있어서,In the decoding method using bit precision, (a) 복호화할 비트스트림(bit stream)으로부터 가변 블록 구성 정보를 추출하여 가변 블록을 생성하는 단계;(a) extracting variable block configuration information from a bit stream to be decoded to generate a variable block; (b) 상기 비트스트림으로부터 결정비트값을 추출하는 단계;(b) extracting a decision bit value from the bitstream; (c) 상기 결정비트값과 상기 가변 블록을 이용하여 상기 비트스트림을 복호화하여 에러값을 산출하는 단계; (c) decoding the bitstream using the decision bit value and the variable block to calculate an error value; (d) 복호화할 영상 데이터의 각 대상 화소의 예측 방법을 판단하고, 상기 예측 방법을 이용하여 상기 대상 화소의 예측값을 산출하는 단계;(d) determining a prediction method of each target pixel of the image data to be decoded, and calculating a prediction value of the target pixel using the prediction method; (e) 상기 에러값 및 상기 예측값을 이용하여 영상 데이터로 복원하는 단계를 포함하는 복호화 방법.and (e) restoring image data using the error value and the prediction value. 제 32항에 있어서,The method of claim 32, 상기 예측값은 상기 대상 화소와 인접한 화소의 값을 이용해 상기 대상 화소값과 같거나 유사하게 미리 지정된 방법에 의하여 산출한 값을 의미하는 것을 특징으로 하는 복호화 방법.And the predicted value means a value calculated by a predetermined method that is equal to or similar to the target pixel value by using a value of a pixel adjacent to the target pixel. 제 32항에 있어서,The method of claim 32, 상기 (b)단계는 (e1) 상기 에러값에 상응한 제1 결정비트값을 상기 비트스트림으로부터 추출하는 단계를 포함하고, Step (b) includes (e1) extracting a first decision bit value corresponding to the error value from the bitstream, 상기 (c)단계는 (f1) 상기 제1 결정비트값을 이용하여 부호화된 상기 에러값을 복호화하는 단계를 포함하는 복호화 방법.Step (c) includes (f1) decoding the error value encoded using the first decision bit value. 제 34항에 있어서,The method of claim 34, 상기 (b)단계는 (e1)단계 이전에 상기 비트스트림으로부터 제2 결정비트값을 추출하는 단계를 더 포함하고,Step (b) further includes extracting a second decision bit value from the bitstream before step (e1), 상기 (c)단계는 (f1)단계 이전에 상기 제2 결정비트값을 이용하여 부호화된 상기 제1 결정비트값을 복호화하는 단계를 더 포함하는 것을 특징으로 하는 복호화 방법. And the step (c) further includes decoding the first decision bit value encoded using the second decision bit value before step (f1). 제 34항에 있어서,The method of claim 34, 상기 (c)단계는 상기 비트스트림에서 부호화시 에러값 0의 부호를 교환한 여부를 표시한 비트를 추출하여, 부호가 교환된 것으로 표시된 경우 상기 에러값 중 상기 에러값 0의 부호와 에러값 2k-1 (k는 제1 결정비트값)의 부호를 교환하는 것을 특징으로 하는 복호화 방법. Step (c) extracts a bit indicating whether or not the code of error value 0 is exchanged during encoding in the bitstream, and if the code is indicated to be exchanged, the code of error value 0 and error value 2 among the error values. and k- 1 (where k is the first decision bit value). 제 34항에 있어서,The method of claim 34, 상기 (c)단계는 상기 비트스트림에서 부호화시 상기 제1 결정비트값 중 제1 결정비트값 1의 수정된 위치를 표시한 비트를 추출하여, 상기 제1 결정비트값 1의 부호를 제1 결정비트값 t(상기 수정된 위치)의 부호로 교환하고 제1 결정비트값 2내지 t의 부호를 상응하는 제1 결정비트값 1내지 t-1의 부호로 수정하는 것을 특징 으로 하는 복호화 방법.Step (c) extracts a bit indicating a modified position of a first decision bit value 1 of the first decision bit values during encoding in the bitstream, and first determines a sign of the first decision bit value 1. And replaces the sign of the first decision bit value 2 to t with the sign of the first decision bit value 1 to t-1 corresponding to the sign of the bit value t (the modified position). 제 33항에 있어서,The method of claim 33, wherein 상기 예측값
Figure 112007052049764-pat00198
는 하기의 수학식을 이용하여 산출되되, T는 미리 설정된 임계값이고, A 및 B는 상기 대상 화소의 좌측 및 상측 화소값이고, C, D, E, F 및 G는 B에 상응하는 화소를 기준으로 각각 좌측, 우측, 좌상측, 상측, 우상측 화소값인 것을 특징으로 하는 복호화 방법.
The predicted value
Figure 112007052049764-pat00198
Is calculated using the following equation, wherein T is a preset threshold value, A and B are the left and upper pixel values of the target pixel, and C, D, E, F and G are pixels corresponding to B. The decoding method, characterized in that the pixel values of the left, right, upper left, upper, and upper right respectively.
[수학식][Equation]
Figure 112007052049764-pat00199
인 경우,
Figure 112007052049764-pat00199
If is
Figure 112007052049764-pat00200
이고,
Figure 112007052049764-pat00200
ego,
Figure 112007052049764-pat00201
인 경우,
Figure 112007052049764-pat00201
If is
Figure 112007052049764-pat00202
,
Figure 112007052049764-pat00203
,
Figure 112007052049764-pat00204
Figure 112007052049764-pat00205
중 최소값이
Figure 112007052049764-pat00202
,
Figure 112007052049764-pat00203
,
Figure 112007052049764-pat00204
And
Figure 112007052049764-pat00205
Of the minimum
Figure 112007052049764-pat00206
인 경우,
Figure 112007052049764-pat00207
이고,
Figure 112007052049764-pat00206
If is
Figure 112007052049764-pat00207
ego,
Figure 112007052049764-pat00208
인 경우,
Figure 112007052049764-pat00209
이고,
Figure 112007052049764-pat00208
If is
Figure 112007052049764-pat00209
ego,
Figure 112007052049764-pat00210
인 경우,
Figure 112007052049764-pat00211
이고,
Figure 112007052049764-pat00210
If is
Figure 112007052049764-pat00211
ego,
Figure 112007052049764-pat00212
인 경우,
Figure 112007052049764-pat00213
임.
Figure 112007052049764-pat00212
If is
Figure 112007052049764-pat00213
being.
제 38항에 있어서,The method of claim 38, 상기 화소값은 하기의 수학식을 이용하여 산출되되,
Figure 112007052049764-pat00214
는 상기 대상 화소의 상기 에러값,
Figure 112007052049764-pat00215
는 상기 대상 화소의 화소값,
Figure 112007052049764-pat00216
는 상기 대상 화소의 상기 예측값,
Figure 112007052049764-pat00217
는 상기 비트스트림으로부터 추출되는 사인비트,
Figure 112007052049764-pat00218
는 미리 정해진 최대 에러값인 것을 특징으로 하되,
The pixel value is calculated using the following equation,
Figure 112007052049764-pat00214
Is the error value of the target pixel,
Figure 112007052049764-pat00215
Is a pixel value of the target pixel,
Figure 112007052049764-pat00216
Is the predicted value of the target pixel,
Figure 112007052049764-pat00217
Is a sine bit extracted from the bitstream,
Figure 112007052049764-pat00218
Is characterized in that the predetermined maximum error value,
상기 에러값과 상기 사인비트는 상기 대상 화소의 화소값과 상기 예측값의 차이의 크기와 부호인 것을 특징으로 하는 복호화 방법.And the error value and the sine bit are the magnitude and sign of the difference between the pixel value of the target pixel and the prediction value. [수학식][Equation]
Figure 112007052049764-pat00219
Figure 112007052049764-pat00219
Figure 112007052049764-pat00220
이면,
Figure 112007052049764-pat00220
If,
Figure 112007052049764-pat00221
Figure 112007052049764-pat00221
결정 비트(Bit precision)을 이용한 부호화 방법을 수행하기 위해 부호화 장치에 의해 실행될 수 있는 명령어들의 프로그램이 유형적으로 구현되어 있으며, 상기 부호화 장치에 의해 판독될 수 있는 프로그램을 기록한 기록매체 있어서, In the recording medium on which a program of instructions that can be executed by an encoding apparatus is tangibly implemented to perform an encoding method using bit precision, and which records a program that can be read by the encoding apparatus. (a) 부호화할 영상 데이터의 각 대상 화소에 상응하여 예측 방법을 판단하는 단계;(a) determining a prediction method corresponding to each target pixel of the image data to be encoded; (b) 상기 예측 방법에 상응하여 상기 대상 화소의 예측값을 산출하는 단계;(b) calculating a predicted value of the target pixel corresponding to the prediction method; (c) 상기 예측값을 이용하여 에러값을 산출하고, 미리 지정된 블록의 크기부터 미리 지정된 단위만큼 상기 블록의 크기를 순차적으로 증가시키며, 상기 블록에 해당하는 상기 에러값에 상응하는 결정비트값을 선정하는 단계;(c) calculating an error value using the predicted value, sequentially increasing the size of the block by a predetermined unit from a size of a predetermined block, and selecting a decision bit value corresponding to the error value corresponding to the block. Making; (d) 상기 선정된 결정비트값을 이용하여 상기 에러값을 부호화하는 단계; (d) encoding the error value using the predetermined decision bit value; (e) 상기 블록의 부호화한 결과를 이용하여 압축용량이 최소화되는 가변 블록 구성 정보를 산출하는 단계; 및(e) calculating variable block configuration information for minimizing a compression capacity by using the encoded result of the block; And (f) 상기 가변블록 구성 정보에 따른 블록으로 부호화하여 비트스트림(Bit Stream)을 생성하는 단계를 수행하되, (f) generating a bit stream by encoding the block according to the variable block configuration information, 상기 비트스트림에 상기 가변블록 구성 정보, 상기 결정비트값 중 하나 이상이 삽입되고,At least one of the variable block configuration information and the determination bit value is inserted into the bitstream, 상기 선정된 결정비트값은 결정비트값 0 내지 n을 이용하여 상기 에러값을 각각 부호화한 압축용량이 최소인 값이고, 상기 n은 자연수인 것을 특징으로 하는 부호화 방법.Wherein the selected decision bit value is a value having a minimum compression capacity in which the error values are encoded using decision bit values 0 to n, and n is a natural number. 결정 비트(Bit Precision)을 이용한 복호화 방법을 수행하기 위해 복호화 장치에 의해 실행될 수 있는 명령어들의 프로그램이 유형적으로 구현되어 있으며, 상기 복호화 장치에 의해 판독될 수 있는 프로그램을 기록한 기록매체에 있어서,In the recording medium in which a program of instructions that can be executed by a decoding apparatus is tangibly implemented to perform a decoding method using bit precision, and in which a program which can be read by the decoding apparatus is recorded, (a) 복호화할 비트스트림(bit stream)으로부터 가변 블록 구성 정보를 추출하여 가변 블록을 생성하는 단계;(a) extracting variable block configuration information from a bit stream to be decoded to generate a variable block; (b) 상기 비트스트림으로부터 결정비트값을 추출하는 단계;(b) extracting a decision bit value from the bitstream; (c) 상기 결정비트값과 상기 가변 블록을 이용하여 상기 비트스트림을 복호 화하여 에러값을 산출하는 단계; (c) decoding the bitstream using the decision bit value and the variable block to calculate an error value; (d) 복호화할 영상 데이터의 각 대상 화소의 예측 방법을 판단하고, 상기 예측 방법을 이용하여 상기 대상 화소의 예측값을 산출하는 단계;(d) determining a prediction method of each target pixel of the image data to be decoded, and calculating a prediction value of the target pixel using the prediction method; (e) 상기 에러값 및 상기 예측값을 이용하여 영상 데이터로 복원하는 단계를 수행하는 프로그램이 기록된 기록매체.(e) a recording medium having recorded thereon a program for performing restoration of the image data using the error value and the prediction value.
KR1020070071779A 2007-07-18 2007-07-18 Recorded medium having program for coding and decoding using Bit Precision, and Apparatus and Method there of KR100916535B1 (en)

Priority Applications (10)

Application Number Priority Date Filing Date Title
KR1020070071779A KR100916535B1 (en) 2007-07-18 2007-07-18 Recorded medium having program for coding and decoding using Bit Precision, and Apparatus and Method there of
PCT/KR2008/004232 WO2009011558A2 (en) 2007-07-18 2008-07-18 Method and apparatus for coding and decoding using bit-precision
EP10152387A EP2187643A3 (en) 2007-07-18 2008-07-18 Adaptive bit-precision entropy coding
US12/669,770 US8411745B2 (en) 2007-07-18 2008-07-18 Method and apparatus for coding and decoding using bit-precision
EP08778887A EP2172028A4 (en) 2007-07-18 2008-07-18 Method and apparatus for coding and decoding using bit-precision
EP10152392A EP2187645A3 (en) 2007-07-18 2008-07-18 Adaptive bit-precision entropy coding
EP10152390A EP2187644A3 (en) 2007-07-18 2008-07-18 Adaptive bit-precision entropy coding
US12/694,248 US8009067B2 (en) 2007-07-18 2010-01-26 Method and apparatus for coding and decoding using bit-precision
US12/694,242 US8009066B2 (en) 2007-07-18 2010-01-26 Method and apparatus for coding and decoding using bit-precision
US12/694,245 US8675734B2 (en) 2007-07-18 2010-01-26 Method and apparatus for coding and decoding using bit-precision

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020070071779A KR100916535B1 (en) 2007-07-18 2007-07-18 Recorded medium having program for coding and decoding using Bit Precision, and Apparatus and Method there of

Publications (2)

Publication Number Publication Date
KR20090008661A KR20090008661A (en) 2009-01-22
KR100916535B1 true KR100916535B1 (en) 2009-09-11

Family

ID=40488702

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020070071779A KR100916535B1 (en) 2007-07-18 2007-07-18 Recorded medium having program for coding and decoding using Bit Precision, and Apparatus and Method there of

Country Status (1)

Country Link
KR (1) KR100916535B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100944542B1 (en) * 2008-03-17 2010-03-03 (주)휴맥스 Method and Apparatus for Coding and Decoding using Predictive Bit-Precision

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100636370B1 (en) 2005-06-29 2006-10-19 한국전자통신연구원 Apparatus and method for coding using bit-precision, and apparatus and method for decoding according to the same

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100636370B1 (en) 2005-06-29 2006-10-19 한국전자통신연구원 Apparatus and method for coding using bit-precision, and apparatus and method for decoding according to the same

Also Published As

Publication number Publication date
KR20090008661A (en) 2009-01-22

Similar Documents

Publication Publication Date Title
KR100845090B1 (en) Image encoding apparatus, image decoding apparatus and control method therefor
JP4418762B2 (en) Image encoding apparatus, image decoding apparatus, control method thereof, computer program, and computer-readable storage medium
KR100868716B1 (en) Method, system and software product for color image encoding
GB2563019A (en) Improved valence-based encoding and decoding of connectivity data in a 3D model
US6614939B1 (en) Image compression apparatus and decoding apparatus suited to lossless image compression
US9607434B2 (en) Apparatus and method for encoding three-dimensional (3D) mesh, and apparatus and method for decoding 3D mesh
TW201306495A (en) Method for adaptive entropy coding of tree structures
CN101061515A (en) Coding scheme for a data stream representing a temporally varying graphics model
JPWO2004068844A1 (en) Image compression method, image restoration method, program, and apparatus
JP5101962B2 (en) Image coding apparatus, control method therefor, and computer program
CN112887722B (en) Lossless image compression method
JP4871822B2 (en) Image coding apparatus and control method thereof
KR100916535B1 (en) Recorded medium having program for coding and decoding using Bit Precision, and Apparatus and Method there of
CN110191341B (en) Depth data coding method and decoding method
CN102550009A (en) Joint scalar embedded graphics coding for color images
JP2006100977A (en) Printing system and printer
Hu et al. Efficient greyscale image compression technique based on vector quantization
JP2011082722A (en) Image-encoding method using structural tree, image encoding apparatus, image-decoding method, image decoding apparatus, automatic generation method of image encoding structure, automatic generator of image-encoding structure, and program for the same
JP4462359B2 (en) Image compression device
US8379715B2 (en) System and method for video compression using non-linear quantization and modular arithmetic computation
JP2006352547A (en) Data compression apparatus and data compression program
Renji et al. A Reversible Data Hiding Technique for Secure Image Transmission
US9245352B1 (en) Systems and methods for near lossless image compression
JP4696738B2 (en) Image data compression method and apparatus, and pseudo gradation image restoration method
JP4971881B2 (en) Image encoding apparatus, image decoding apparatus, and control method thereof

Legal Events

Date Code Title Description
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: 20120903

Year of fee payment: 4

FPAY Annual fee payment

Payment date: 20130903

Year of fee payment: 5

FPAY Annual fee payment

Payment date: 20140901

Year of fee payment: 6

LAPS Lapse due to unpaid annual fee