KR930003201B1 - Bit image data compressing method and apparatus - Google Patents

Bit image data compressing method and apparatus Download PDF

Info

Publication number
KR930003201B1
KR930003201B1 KR1019900008741A KR900008741A KR930003201B1 KR 930003201 B1 KR930003201 B1 KR 930003201B1 KR 1019900008741 A KR1019900008741 A KR 1019900008741A KR 900008741 A KR900008741 A KR 900008741A KR 930003201 B1 KR930003201 B1 KR 930003201B1
Authority
KR
South Korea
Prior art keywords
data
bit
memory
block
bit image
Prior art date
Application number
KR1019900008741A
Other languages
Korean (ko)
Other versions
KR920001962A (en
Inventor
신재섭
Original Assignee
삼성전자 주식회사
정용문
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 삼성전자 주식회사, 정용문 filed Critical 삼성전자 주식회사
Priority to KR1019900008741A priority Critical patent/KR930003201B1/en
Publication of KR920001962A publication Critical patent/KR920001962A/en
Application granted granted Critical
Publication of KR930003201B1 publication Critical patent/KR930003201B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/12Systems in which the television signal is transmitted via one channel or a plurality of parallel channels, the bandwidth of each channel being less than the bandwidth of the television signal

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The apparatus and method maintains data compressing ratio regardless of the type of bit image data by replacing 8x8 window by a code which is determined by a frequency of 1's in an 8x8 window. The method comprises the steps: (A) reading data in a bit image memory (100) by block units and storing the data on a block memory; (B) outputting the block data in series using a parallel to series converter (300); (C) transmitting the serial data to a counter; (D) counting the number of 1's in the serial data; (E) checking that a certain number of data is received by a counter; (F) storing a code transmitted from a counter according to the number of 1's on a compressed data memory (500); and (G) checking that all data is read from a bit image memory (100).

Description

비트 이미지 데이타 압축방법 및 그 장치Bit image data compression method and apparatus

제 1 도는 통상적인 이미지 압력 시스템의 구성도.1 is a schematic diagram of a conventional image pressure system.

제 2 도는 본 발명에 의한 비트 이미지 데이타 압축 장치가 채용된 이미지 입력 시스템의 구성도.2 is a block diagram of an image input system employing a bit image data compression apparatus according to the present invention.

제 3 도는 본 발명에 의한 비트 이미지 데이타 압축 방법을 도시한 흐름도.3 is a flowchart illustrating a method of compressing bit image data according to the present invention.

제 4 도는 제 3 도에 따른 비트 이미지 데이타 압축방법을 수행하기 위한 장치의 구성도.4 is a block diagram of an apparatus for performing the bit image data compression method according to FIG.

제 5 도는 본 발명에 따른 압축신호의 디코딩 코드 테이블.5 is a decoding code table of a compressed signal according to the present invention.

* 도면의 주요부분에 대한 부호의 설명* Explanation of symbols for main parts of the drawings

10 : CCD 20 : 증폭기10: CCD 20: amplifier

30 : 샘플/홀더 40 : 아날로그/디지틀변환기30: sample / holder 40: analog / digital converter

50 : 2치화기 70a, 70b : 비트이미지 데이타 압축장치50: Binarizer 70a, 70b: Bit image data compression device

80 : 데이타 저장 및 전송부 100 : 비트 이미지 메모리80: data storage and transmission unit 100: bit image memory

200 : 블럭 메모리 300 : 병렬/직렬 변환기200: block memory 300: parallel / serial converter

400 : 카운트 압축기 500 : 압축데이타 메모리400: count compressor 500: compressed data memory

600 : 어드레스 발생기 700 : 제어부600: address generator 700: control unit

430, 440, 710 : 인버터430, 440, 710: inverter

본 발명은 비트 이미지데이타의 압축방법 및 그 장치에 관한 것으로, 특히 이미지 입력시스템에 있어서 데이타를 효율적으로 저장하거나 전송하고자 할때 전송속도를 높이기위해 2치환된 데이타를 압축하는 비트 이미지데이타의 압축방법 및 그 장치에 관한 것이다.The present invention relates to a method for compressing bit image data and a device thereof, and more particularly to a method for compressing bit-substituted data in order to increase the transmission speed when storing or transmitting data efficiently in an image input system. And to the apparatus.

통상적으로 이미지스캐너, CCTV카메라, 팩시밀리등에 이용되는 데이타 압축방법에 의한 이미지 입력시스템은 제 1 도에 도시된 바와 같다. 제 1 도에 있어서, 전하결합소자(Charge Coupled Device ; CCD)(10)를 통한 아날로그 신호는 데이타 입력부(가)를 구성하는 증폭기(20)를 통해 증폭되고 샘플/홀더(30) 및 아날로그/디지탈 변환기(40)를 거쳐 디지틀화된 다음 2치화기(50)에 의해 "0"과 "1"값을 가진 2진이미지(혹은 비트이미지) 데이타로 변환된다.In general, an image input system using a data compression method used for an image scanner, a CCTV camera, a facsimile, and the like is shown in FIG. In FIG. 1, the analog signal through the Charge Coupled Device (CCD) 10 is amplified by the amplifier 20 constituting the data input unit and the sample / holder 30 and the analog / digital device. Digitized via the converter 40 and then converted by the binarizer 50 to binary image (or bit image) data having values of "0" and "1".

한편, 데이타압축부(60a)는 상기 2치화기(50)에서 전송되는 2진이미지(혹은 비트이미지)데이타의 발생빈도수에 따라 저장, 압축을 행하여 데이타 저장 및 전송부(70)로 하여금 데이타를 저장하게 하거나 전송로를 통하여 데이타를 출력하게한다.On the other hand, the data compression unit 60a stores and compresses the data according to the frequency of occurrence of the binary image (or bit image) data transmitted from the binarizer 50, thereby causing the data storage and transmission unit 70 to store the data. Allow to save or output data through the transmission line.

상기와 같이 이미지스캐너, CCTV카메라, 팩시밀리에 사용되는 코딩은 화소의 구성에 따른 통상적인 특성을 이용하여 코딩을 한다. 즉 "1"과 "0"이 반복되는 횟수(run length)에 따라 적절한 코드를 부여하는 것으로 이러한 압축방법으로는 MH(Modified Huffman)코딩이 대표적인 압축방법으로서 사용되고 있다(참고로, 허프만 코드의 구성형태는 전체 코딩된 부호화 데이타의 값이 64×n+α로 주어지며 이때, n은 make-up 코드라고 하며 "1"이든 "0"이든간에 반복되는 갯수가 64개가 넘으면 매 64개마다 1씩 증가하게 만들고, α는 1차원 허프만코드를 나타낸다). 따라서, 데이타압축부(60a)는 데이타복원력을 수행하는데는 결점이 없으나 데이타발생 빈도수에 근거를 두고 압축을 행하기 때문에 압축되는 대상의 종류에 따라 효율에 있어서 큰 차이가 있다. 즉, 압축방법이 매 라인별로 순차적으로 "1"과 "0"의 회수를 카운트하여 그에 해당하는 코드값을 전송함으로써 수신단에서는 코드테이블로 부터 전송되어온 코드값을 디코딩하여 해당하는 비트패턴을 만들어 내는 것으로 일반적으로는 특성이 좋지만 배경이 복잡한 사진 또는 디더링(dithering) 혹은 하프톤(halftone)화된 영상등을 압축하면 압축되는 비트이미지가 반복이 심하므로 압축율이 극도로 저하될 뿐만 아니라 오히려 원래의 이미지데이타보다 더 많은 양의 이진영상이 나타나게 된다. 예를 들면, 비트이미지가 "10101010"등과 같이 "1"과 "0"이 연속적으로 반복되는 패턴이 화성전체에 걸쳐 자주 발생하게되면(특히 하프톤 화상은 이러한 현상이 현저하다) "1"과 "0"이 반복되는 횟수가 많아지므로 비트이미지에 해당되는 코드값이 오히려 길어지기 때문에 더 많은 메모리공간을 차지하게된다.As described above, coding used for an image scanner, a CCTV camera, and a facsimile is performed by using typical characteristics of the pixel configuration. In other words, MH (Modified Huffman) coding is used as a typical compression method for the compression method according to the number of times "1" and "0" are repeated (Reference, Huffman code configuration In the form, the value of the coded encoded data is given as 64 × n + α, where n is the make-up code, and if there are more than 64 repetitions of "1" or "0", there is 1 for every 64. Causes α to represent one-dimensional Huffman code). Therefore, the data compression unit 60a does not have any drawbacks in performing the data restoring force. However, the data compression unit 60a compresses the data based on the frequency of data generation. That is, the compression method sequentially counts the number of " 1 " and " 0 " for each line and transmits the corresponding code value so that the receiving end decodes the code value transmitted from the code table to produce the corresponding bit pattern. In general, if the compression of a photograph or a dithering or halftone image with a complex background is good, the compression of the bit image is severe. More binary images appear. For example, if a pattern in which a bit image is repeated continuously such as "1" and "0" such as "10101010" occurs frequently throughout Mars (especially in a halftone image, this phenomenon is remarkable) and "1" and Since the "0" is repeated more times, the code value corresponding to the bit image becomes longer, which takes up more memory space.

또한, 바이트단위로 데이타 반복수를 검사하여 압축하는 방식을 이용한 데이타압축부(60a)의 장치도 입력되는 이미지의 구성이 간단하다면 "1"과 "0"이 반복되는 횟수가 적을 것이며 전송되는 양이 적고 반대로 구성이 복잡한 경우에는 반복되는 횟수가 많아지므로 전송되는 양이 많아지는등 전송양이 다양하게 변화하는 문제점이 있다. 따라서, 본 발명의 목적은 상기의 문제점을 해결하기 위한 것으로 화상입력장치에 의해 받은 비트 이미지데이타를 압축하기 위하여 8×8 윈도우내의 "1"의 빈도수를 검출하여 그에 해당하는 코드값으로 대치시킴으로써 데이타의 압축율을 항상 일정하게 유지시켜주는 비트이미지 데이타 압축방법 및 그 장치를 제공하는 것이다.In addition, the apparatus of the data compression unit 60a using the method of checking and compressing the number of data repetitions in byte unit also has a small number of times that "1" and "0" are repeated if the configuration of the input image is simple, and the amount of transmission is repeated. On the contrary, when the configuration is small and complicated, the number of repetitions increases, such that the amount of transmission is increased. Accordingly, an object of the present invention is to solve the above problems and to detect bit frequency data received by the image input apparatus and detect the frequency of " 1 " in an 8x8 window and replace the code with a corresponding code value. To provide a bit image data compression method and apparatus for maintaining a constant compression rate of a constant.

상기 목적을 달성하기 위한 본 발명에 의한 비트이미지 데이타 압축방법은, 비트이미지 메모리로 부터 소정 블럭에 해당하는 데이타를 읽어 내어 블럭 메모리에 저장하는 제 1 단계와, 상기 제 1 단계에서 소정블럭 데이터가 블럭 메모리에 모두 저장되면 이 블럭 메모리를 리드(Read)모드로 하고 병렬/직렬 변환기를 인에이블시켜 블럭 데이타를 직렬로 출력시키는 제 2 단계와, 상기 제 2 단계를 수행하고나서 병렬/직렬 변환기를 통과한 비트 이미지 데이타를 일정비트의 카운트 압축기의 클럭단자로 입력시키는 제 3 단계와, 상기 3단계를 수행하고나서 일정 비트의 카운트 압축기의 클럭 단자에 입력된 비트 이미지 데이타에 존재하는 "1"의 갯수만큼 카운트하는 제 4 단계와, 상기 제 4 단계를 수행하고 나서 일정 비트의 카운트 압축기에 소정 갯수의 비트 이미지 데이타가 입력되었는지를 판단하는 제 5 단계와, 상기 제 5 단계에서 소정갯수의 비트 이미지 데이타가 입력되지 못했으면 제 3 단계로 복귀하고 소정갯수의 비트 이미지 데이타가 입력되었으면 압축데이타 메모리를 라이트(Write) 모드로 동작시키는 제 6 단계와, 상기 제 6 단계에서 라이트 모드가 동작되면 일정비트의 카운트 압축기로 부터 출력된 소정 비트의 데이타 값을 압축된 코드값으로 저장하고 일정비트의 카운트 압축기의 클리어단을 액티브시켜 이 카운트 압축기의 출력을 "0"으로 만들어 주는 제 7 단계와, 상기 제 7 단계를 수행하고나서 비트 이미지 메모리로 부터 소정값의 블럭 이미지 데이타를 읽기 위해 압축해야할 이미지 데이타가 남아 있는가를 판단하여 이미지 데이타가 남아 있으면 상기 제 1 단계로 복귀하고 더이상의 이미지 데이타가 없으면 그대로 종료하는 제 8 단계를 포함하여 구성됨을 특징으로 한다.Bit image data compression method according to the present invention for achieving the above object, the first step of reading the data corresponding to a predetermined block from the bit image memory and stored in the block memory, and the predetermined block data in the first step After all the data are stored in the block memory, the block memory is put into a read mode, and the parallel / serial converter is enabled to output the block data in series, and the parallel / serial converter is performed after performing the second step. A third step of inputting the passed bit image data to the clock terminal of the constant bit count compressor; and after performing the above three steps, " 1 " A fourth step of counting the number and a predetermined number of ratios to the predetermined number of bit count compressors after performing the fourth step. A fifth step of determining whether image data has been input; and if the predetermined number of bit image data has not been input in the fifth step, returns to the third step and writes the compressed data memory when the predetermined number of bit image data has been inputted. Write) mode, and if the write mode is operated in the sixth step, the data value of a predetermined bit output from the count compressor of a predetermined bit is stored as a compressed code value and the count compressor of the predetermined bit is cleared. The seventh step of activating the stage to make the output of the count compressor " 0 " and whether there is any image data to be compressed to read a predetermined value of block image data from the bit image memory after performing the seventh step. If it is determined that image data remains, the process returns to the first step and no further If the kinds of data, characterized by configured by comprising an eighth step which is terminated.

또한, 상기 비트 이미지 데이타 압축 방법을 수행하기 위한 본 발명의 비트 이미지 데이타 압축장치는, 데이타 입력부를 거친 비트 이미지 데이타를 메모리하는 비트 이미지 메모리와, 상기 비트 이미지 메모리로 부터 전송되는 소정 블럭의 데이타를 저장하고 나서 리드 모드를 수행하는 블럭 메모리와, 상기 블럭 메모리에 소정 블럭 데이타가 모두 저장되며 인에이블시켜 블럭 데이타를 직렬로 출력하는 병렬/직렬 변환기와, 상기 병렬/직렬 변환기를 통과한 비트 이미지 데이타들을 클럭단자로 입력시켜 비트 이미지 데이타에 존재하는 "1"의 갯수만큼은 카운트 하는 일정 비트 카운트 압축기와, 상기 일정 비트 카운트 압축기에 소정갯수의 데이타가 입력되면 라이트모드로 동작시켜 상기 일정 비트 카운트 압축기로 부터 출력되는 소정비트의 데이타 값을 압축된 코드값으로 저장하도록 하는 압축 데이타 메모리와, 상기 비트 이미지 메모리로 부터 소정 블럭에 해당하는 데이타가 블럭 메모리에 저장되도록 어드레스를 발생하는 어드레스 발생기와, 상기 비트 이미지 메모리와 일정 비트 카운터 압축기에 제어신호를 전송하고 인버터를 통하여 블럭 메모리에 제어신호를 반전시켜 전송하는 제어부를 포함하여 구성됨을 특징으로 한다.In addition, the bit image data compression apparatus of the present invention for performing the bit image data compression method includes a bit image memory for storing bit image data passed through a data input unit, and data of a predetermined block transferred from the bit image memory. A block memory for storing and performing a read mode, a parallel / serial converter for storing all block data in the block memory and enabling the block data to be serially output, and bit image data passing through the parallel / serial converter. And a predetermined bit count compressor for counting the number of " 1 " present in the bit image data by inputting the clock terminal to the clock terminal. Bit data output from A compressed data memory for storing a value as a compressed code value, an address generator for generating an address to store data corresponding to a predetermined block from the bit image memory in a block memory, and the bit image memory and a constant bit counter compressor. And a control unit for transmitting the control signal to the controller and inverting the control signal to the block memory through the inverter.

이하 첨부된 도면을 참조하여 본 발명을 상세히 기술하기로 한다. 제 2 도는 본 발명에 의한 비트 이미지 데이타 압축장치가 채용된 이미지 입력 시스템의 구성도이다. 제 3 도 및 제 4 도는 본 발명에 의한 비트 이미지 데이타 압축방법을 도시한 흐름도와 그 압축 방법을 수행하기 위한 장치의 구성도 이다.Hereinafter, the present invention will be described in detail with reference to the accompanying drawings. 2 is a configuration diagram of an image input system employing a bit image data compression apparatus according to the present invention. 3 and 4 are flowcharts illustrating a bit image data compression method according to the present invention, and a block diagram of an apparatus for performing the compression method.

제 2 도와 제 3 도 및 제 4 도에 의하면, 본 발명에 의한 비트 이미지 데이타 압축방법은 비트 이미지 메모리(100)로 부터 8×8 블럭에 해당하는 데이타를 읽어 내어 블럭 메모리(200)에 저장하는 제 1 단계(1)와, 상기 제 1 단계(1)에서 8×8 블럭 데이타가 블럭 메모리(200)에 모두 저장되면 이 블럭메모리(200)를 리드모드로 하고 병렬/직렬 변환기(300)를 인에이블시켜 블럭 데이타를 직렬로 출력시키는 제 2 단계(2)와, 상기 제 2 단계(2)를 수행하고나서 병렬/직렬 변환기(300)를 통과한 비트 이미지 데이타를 6비트의 카운트 압축기(400)의 클럭단자로 입력시키는 제 3 단계와, 상기 제 3 단계를 수행하고나서 6비트의 카운트 압축기(400)의 클럭단자에 입력된 비트 이미지 데이타에 존재하는 "1"의 갯수만큼 카운트하는 제 4 단계(4)와, 상기 제 4 단계(4)를 수행하고나서 6비트의 카운트 압축기(400)는 제어부(700)에 의해 64번째의 비트 이미지 데이타가 입력되었는가를 판단하게 되는 제 5 단계(5)와, 상기 제 5 단계(5)에서 64개의 비트이미지 데이타가 6비트의 카운트 압축기(400)에 입력되지 못했으면 제 3 단계(3)로 복귀하고 64개의 비트 이미지 데이타가 입력되었으면 압축 데이타 메모리(500)를 라이트(Write)모드로 동작시키는 제 6 단계 (6)와, 상기 제 6 단계(6)에서 라이트 모드가 동작되면 6비트의 카운트 압축기(400)로 부터 출력되는 6비트의 데이타 값을 압축된 코드 값으로 저장하고 6비트의 카운트 압축기(400)의 클리어 단을 액티브시켜 이 카운트 압축기(400)의 출력이 "0"이 되도록 하는 제 7 단계(7)와, 상기 제 7 단계(7)를 수행하고 나서 비트 이미지 메모리(100)로 부터 8×8 블럭 이미지 데이타를 라이트 하기 위해 압축해야할 이미지 데이타가 남아 있는가를 판단하여 이미지 데니타가 남아 있으면 상기 제 1 단계(1)로 복귀하고, 압축할 이미지 데이타가 없으면 그대로 종료하고 제 8 단계 (8)를 포함하여 구성한다.2 and 3 and 4, the bit image data compression method according to the present invention reads data corresponding to 8x8 blocks from the bit image memory 100 and stores them in the block memory 200. When all of the 8 × 8 block data is stored in the block memory 200 in the first step (1) and the first step (1), the block memory 200 is placed in read mode and the parallel / serial converter 300 is turned on. 6-bit count compressor 400 for bit image data passed through parallel / serial converter 300 after performing the second step (2) of enabling and outputting block data in series and enabling the second step (2). And a fourth step of counting the number of " 1 " present in the bit image data input to the clock terminal of the 6-bit count compressor 400 after performing the third step. 6 bits after performing step (4) and the fourth step (4) The count compressor 400 of FIG. 5 determines whether the 64th bit image data is input by the control unit 700. In the fifth step 5, the 64 bit image data is 6 bits. The sixth step (6) of returning to the third step (3) if it cannot be inputted to the count compressor 400 of the operation, and operating the compressed data memory 500 in the write mode if the 64-bit image data is inputted. When the write mode is operated in the sixth step (6), the 6-bit data value output from the 6-bit count compressor 400 is stored as a compressed code value and the clear stage of the 6-bit count compressor 400 is clear. Is activated so that the output of the count compressor 400 becomes " 0 " and the 8x8 block image from the bit image memory 100 after performing the seventh step (7). Image to compress to write data If it is determined whether the data remains and the image denier remains, the process returns to the first step (1). If there is no image data to be compressed, the process is terminated as is and the eighth step (8) is configured.

한편, 상기 비트 이미지 데이타 압축방법을 실행하기 위한 장치는 데이타 입력부(가)를 거친 비트 이미지 데이타를 메모리하는 비트 이미지 메모리(100)와, 상기 비트 이미지 메모리(100)로 부터 전송되는 8×8 블럭의 데이타를 저장하고 나서 리드 모드를 수행하는 블럭 메모리(200)와, 상기 블럭 메모리(200)에 소정 블럭 데이타가 모두 저장되면 인에이블시켜 블럭데이타를 직렬로 출력하는 병렬/직렬 변환기(300)와, 상기 병렬/직렬 변환기(300)를 통과한 비트 이미지 데이타들을 클럭 단자로 입력시켜 비트 이미지 데이타에 존재하는 "1"이 갯수만큼을 카운트하도록 2개의 카운터(410, 420)와 인버터(430, 440)를 구비하는 6비트의 카운트 압축기(400)와, 상기 일정 비트 카운트 압축기(400)에서 64비트의 이미지 데이타가 입력되면 라이트 모드로 동작시켜 상기 6비트의 카운트 압축기(400)로부터 출력되는 6비트의 데이타와 값을 압축된 코드값으로 저장하는 압축 데이타 메모리(500)와, 상기 비트 이미지 메모리(100)로 부터 8×8 블럭에 해당하는 데이타가 블럭 메모리(200)에 저장되도록 어드레스를 발생하는 어드레스 발생기(600)와, 상기 메모리하는 비트 이미지 메모리(100)와 6비트 카운트 압축기(400)에 제어 신호를 전송하고 인버터(710)를 통하여 블럭 메모리(200)에 제어 신호를 반전시켜 전송하는 제어부(700)를 포함하여 구성된다.Meanwhile, an apparatus for executing the bit image data compression method includes a bit image memory 100 for storing bit image data passed through a data input unit and an 8 × 8 block transmitted from the bit image memory 100. A block memory 200 for storing read data and performing a read mode, and a parallel / serial converter 300 for outputting block data in series by enabling block data 200 when predetermined block data is stored in the block memory 200; The two counters 410 and 420 and the inverters 430 and 440 input the bit image data passed through the parallel / serial converter 300 to the clock terminal to count the number of " 1 " present in the bit image data. 6-bit count compressor 400, and when the 64-bit image data is input from the constant bit count compressor 400, the 6-bit count compressor 400 operates in the write mode. Compressed data memory 500 for storing 6-bit data and values output from the und compressor 400 as compressed code values, and data corresponding to 8x8 blocks from the bit image memory 100 are block memories. The control signal is transmitted to the address generator 600 generating the address to be stored in the 200, the bit image memory 100 and the 6-bit count compressor 400, and the block memory 200 through the inverter 710. And a control unit 700 for inverting and transmitting the control signal.

상기한 바와 같은 구성을 가진 본 발명의 작용 및 효과를 설명하면 다음과 같다. 제 2 도와 제 3 도 및 제 4 도에 의하면, 본 발명에 의한 비트 이미지 데이타 압축 방법 및 그 장치는 제 2 도에 도시된 CCD(10)를 통하여 입력되는 전체 이미지 데이타를 8×8 블럭으로 나누어서 각 블럭내에 존재하는 화상의 구성에 다라 그에 맞는 코드값을 검출해 내고 이를 저장 및 전송하면 여기에서 도시되지 않은 복원측에서는 코드값에 맞는 특정 비트 이미지 패턴으로 재생하여 주게된다. 먼저, 제 2 도에 도시된 CCD(10)와 데이타 입력부(가)를 구성하는 증폭기(20), 샘플/홀더(30), 아날로그/디지틀 변환기(40)와, 2치화기(50)를 거쳐 본 발명에 의한 비트 이미지 데이타 압축장치(60b)를 구성하는 제 3 도의 비트 이미지 메모리(100)에 저장되어 있는 비트 이미지 데이타에 대해, 제어부(700)는 어드레스 발생기(600)를 통하여 상기한 비트 이미지 메모리(100)로 부터 8×8 블럭에 해당하는 데이타를 읽어내어 블럭 메모리(200)에 저장하게 되는 단계(1)를 수행한다. 이때, 제어부(700)는 R/W신호를 한번만 전송해도 비트 이미지 메모리(100)와 블럭 메모리(200)를 동시에 제어할 수 있도록 인버터(710)를 사용하여 두 메모리의 R/W단에 R/W신호가 입력되도록 한다.Referring to the operation and effects of the present invention having the configuration as described above are as follows. 2 and 3 and 4, the bit image data compression method and apparatus according to the present invention divide the entire image data input through the CCD 10 shown in FIG. If a code value suitable for the image existing in each block is detected, stored, and transmitted, the restoration side (not shown here) reproduces a specific bit image pattern corresponding to the code value. First, the amplifier 10, the sample / holder 30, the analog / digital converter 40, and the binarizer 50 constituting the CCD 10 and the data input unit shown in FIG. With respect to the bit image data stored in the bit image memory 100 of FIG. 3 constituting the bit image data compression device 60b according to the present invention, the control unit 700 controls the bit image data described above via the address generator 600. Step (1) is performed to read data corresponding to 8x8 blocks from the memory 100 and store the data corresponding to the 8 × 8 block in the block memory 200. In this case, the control unit 700 uses the inverter 710 to control the bit image memory 100 and the block memory 200 at the same time even if the R / W signal is transmitted only once. Allow the W signal to be input.

상기 작동에 의해서 8×8 블럭 데이타가 블럭 메모리(200)에 모두 저장되면 블럭메모리(200)를 리드모드로 하고 병렬/직렬 변환기(300)를 인에이블시켜 블럭 데이타를 전부 직렬 상태에서 순차적으로 출력되도록 단계(2)를 수행한다. 상기 단계(2)를 수행하고 나서 병렬/직렬 변환기(300)를 통과한 비트 이미지 데이타들이 2개의 카운터(410, 420)로 구성된 6비트의 카운트 압축기(400)의 클럭단자(CLK)로 입력되는 단계(3)를 거쳐 비트 이미지 데이타에 존재하는 "1"의 갯수만큼을 카운트하게 되는 단계(4)를 수행한다.When the 8 × 8 block data is all stored in the block memory 200 by the above operation, the block memory 200 is put into read mode and the parallel / serial converter 300 is enabled to sequentially output all block data in a serial state. Perform step (2) if possible. After performing step (2), the bit image data passing through the parallel / serial converter 300 is input to the clock terminal CLK of the 6-bit count compressor 400 composed of two counters 410 and 420. Step 4 is performed to count the number of " 1 " present in the bit image data.

상기 6비트의 카운트 압축기(400)는 제어부(700)에 의해 64번째의 비트이미지 데이타가 입력되었는지를 판단하는 단계(5)를 수행하고, 상기 8×8 블럭 메모리(200) 및 병렬/직렬 변환기(300)를 통한 64개의 비트 이미지 데이타가 모두 입력되면 압축 데이타 메모리(500)를 라이트 모드로 동작시키는 단계(6)를 수행한다. 상기 단계(6)를 수행하여 압축 데이타 메모리(500)를 라이트 모드로 동작시키면 6비트의 카운트 압축기(400)로 부터 출력된 6비트의 데이타 값을 압축된 코드값으로 저장한 다음, 상기 6비트 카운트 압축기(400)를 구성하는 카운터(410, 420)의 클리어(CLK)단을 액티브시켜 6비트 카운트 압축기(400)의 출력측을 "0"으로 만들어 주는 단계(7)을 수행한다. 이때 제어부(700)는 다시 비트 이미지 메모리(100)로 부터 8×8 블럭 이미지 데이타를 라이트 하기 위해 어드레스 발생부(600)를 통해 8×8 블럭 데이타를 블럭 메모리(200)로 읽어내어 상기의 단계들을 반복하고, 비트 이미지 데이타를 압축시킬수 없으면 그대로 종료하는 단계(8)를 수행한다. 한편, 제 5 도에는 본 발명에 따른 압축 신호의 디코딩 코드 데이블로서 8×8 블럭 "1"의 빈도수에 따라 복구되는 이미지 패턴이 도시되어 있다.The 6-bit count compressor 400 performs step (5) of determining whether the 64th bit image data is input by the controller 700, and the 8x8 block memory 200 and the parallel / serial converter. When all 64 bits of image data through 300 are input, step 6 of operating the compressed data memory 500 in the write mode is performed. When the compressed data memory 500 is operated in the write mode by performing the step (6), the 6-bit data value output from the 6-bit count compressor 400 is stored as a compressed code value. Step 7 of activating the clear (CLK) stage of the counters 410 and 420 constituting the count compressor 400 to make the output side of the 6-bit count compressor 400 "0" is performed. At this time, the control unit 700 reads the 8 × 8 block data into the block memory 200 through the address generator 600 to write 8 × 8 block image data from the bit image memory 100 again. Are repeated, and if the bit image data cannot be compressed, step 8 is terminated as is. On the other hand, Fig. 5 shows an image pattern which is recovered according to the frequency of 8x8 block " 1 " as a decoding code table of the compressed signal according to the present invention.

이상과 같은 본 발명을 수행하기 위해서는 이미지 입력 시스템의 해상도가 300dpi 이상되어야 좋은 효과를 나타내며 200dpi 이하에서는 본 발명의 방법을 이용하면 화질이 저하될 가능성이 있다. 상기 단계들을 수행하는 과정에 의하면 압축된 데이타는 64비트에서 최소 6비트 혹은 8비트의 압축된 데이타로 변환 시킬 수 있으므로 압축율을 항상 1/8 이상으로 유지할수 있으며 여기에서 서술되지 않은 복원축에서는 미리 약속되어 있는 제 5 도의 8×8 비트 이미지 패턴으로 재생한다.In order to perform the present invention as described above, the resolution of the image input system is 300dpi or more, which is a good effect. If the method of the present invention is less than 200dpi, the image quality may be degraded. According to the process of performing the above steps, the compressed data can be converted into 64-bit at least 6-bit or 8-bit compressed data, so that the compression ratio can always be maintained at 1/8 or more. Playback is performed with the 8x8 bit image pattern of FIG. 5 as promised.

상술한 바와같이 본 발명은 일정한 데이타 압축률을 얻을수 있으며 디더링 패턴을 이용하므로 원 이미지를 부드럽게 하는 효과를 갖고 있으며, 이미지 입력 시스템에 의한 출력 신호의 양 및 형태를 예측할 수 있고 압축된 데이타의 양이 절대로 소스 데이타의 양을 초과할 수 없는 이점이 있다.As described above, the present invention can obtain a constant data compression ratio, and has a dithering pattern, which has the effect of softening the original image, and can predict the amount and shape of the output signal by the image input system. There is an advantage that the amount of source data cannot be exceeded.

Claims (5)

비트 이미지 메모리(100)로 부터 소정 블럭에 해당하는 데이타를 읽어 내어 블럭 메모리(200)에 저장하는 제 1 단계와, 상기 제 1 단계에서 소정블럭 데이터가 블럭 메모리(200)에 모두 저장되면 이 블럭 메모리(200)를 리드(Read)모드로 하고 병렬/직렬 변한기(300)를 인에이블시켜 블럭 데이타를 직렬로 출력시키는 제 2 단계와, 상기 제 2 단계를 수행하고나서 병렬/직렬 변환기(300)를 통과한 비트 이미지 데이타를 일정비트의 카운트 압축기(400)의 클럭단자로 입력시키는 제 3 단계와, 상기 3단계를 수행하고 나서 일정 비트의 카운트 압축기(400)의 클럭단자에 입력되는 비트 이미지 데이타에 존재하는 "1"의 갯수 만큼 카운트하는 제 4 단계와, 상기 제 4 단계를 수행하고 나서 일정 비트의 카운트 압축기(400)에 소정 갯수의 비트 이미지 데이타가 입력되었는지를 판단하는 제 5 단계와, 상기 제 5 단계에서 소정갯수의 비트 이미지 데이타가 입력되지 못했으면 제 3 단계로 복귀하고 소정갯수의 비트 이미지 데이타가 입력되었으면 압축 데이타 메모리(500)를 라이트(Write) 모드로 동작시키는 제 6 단계와, 상기 제 6 단계에서 라이트 모드가 동작되면 일정비트의 카운트 압축기(400)로 부터 출력되는 소정 비트의 데이타 값의 압축된 코드값으로 저장하고 일정비트의 카운트 압축기(400)를 클리어시크는 제 7 단계와, 상기 제 7 단계를 수행하고 나서 비트 이미지 메모리(100)로 부터 소정값의 블럭 이미지 데이타를 라이트하기 위해 이미지 데이타가 남아 있는가를 판단하여 이미지 데이타가 남아 있으면 상기 제 1 단계로 복귀하고 이미지 데이타가 없으면 그대로 종료하는 제 8 단계를 포함하여 구성됨을 특징으로 하는 비트 이미지 데이타 압축방법.A first step of reading data corresponding to a predetermined block from the bit image memory 100 and storing the data corresponding to the predetermined block in the block memory 200; and the predetermined block data is stored in the block memory 200 in the first step. A second step of outputting the block data in series by putting the memory 200 in the read mode and enabling the parallel / serial converter 300, and then performing the parallel / serial converter 300 after performing the second step. The third step of inputting the bit image data passing through the) into the clock terminal of the count compressor 400 of the predetermined bit, and the bit image input to the clock terminal of the count compressor 400 of the predetermined bit after performing the above three steps A fourth step of counting the number of " 1 " present in the data; and determining whether a predetermined number of bit image data has been input to the constant-count bit compressor 400 after performing the fourth step. In the fifth step, if the predetermined number of bit image data has not been input in the fifth step, the process returns to the third step. If the predetermined number of bit image data is input, the compressed data memory 500 is placed in the write mode. When the write mode is operated in the sixth step and the sixth step, the compressed code value of the data value of the predetermined bit output from the count compressor 400 of the predetermined bit is stored and the count compressor 400 of the predetermined bit is stored. The clear seek determines whether image data remains in order to write a predetermined value of block image data from the bit image memory 100 after performing the seventh step and the seventh step. And the eighth step of returning to the step and ending if there is no image data. Unknown data compression method. 제 1 항에 있어서, 화상을 독취하여 구성된 이미지 데이타를 N×N 비트 블럭단위로 구분하는 단계와, 구분된 블럭내의 데이타에서 소정 논리값의 갯수를 카운팅하는 단계와, 소정 논리값의 카운팅 출력을 저장 및 전송하는 단계와, 저장 및 전송된 카운팅 출력과 대응하는 미리 설정된 N×N 비트의 블럭을 출력하는 단계로 이루어짐을 특징으로 하는 비트 이미지 데이타 압축방법.2. The method of claim 1, further comprising: classifying image data formed by reading an image in units of N × N bit blocks, counting a number of predetermined logical values in the data in the divided blocks, and counting outputs of the predetermined logical values. And storing and transmitting a predetermined block of NxN bits corresponding to the stored and transmitted counting outputs. 광을 전기 신호로 변환하는 CCD(10)와, 상기 CCD(10)에서 전기 신호로 변환된 아날로그 신호를 디지탈 변환 및 저장하는 데이타 입력부(가)와, 압축된 데이타를 저장하거나 전송하기 위한 데이타 저장 및 전송부(70)와 압축데이타 코드에 의해 저장된 이미지 패턴을 재생하는 디코딩부를 갖는 이미지 처리 시스템에 있어서, 데이타 입력부(가)를 거친 비트 이미지 데이타를 메모리하는 비트 이미지 메모리(100)와, 상기 비트 이미지 메모리(100)로 부터 소정 블럭의 데이타를 저장하는 블럭 메모리(200)와, 상기 블럭 메모리(200)의 소정 블럭 데이타를 직렬로 변환 출력하는 병렬/직렬 변환기(300)와, 상기 병렬/직렬 변환기(300)를 통과한 비트 이미지 데이타들을 클럭 단자로 입력시켜 비트 이미지 데이타에 존재하는 "1"의 갯수만큼을 카운트하는 카운트 압축기(400)와, 상기 카운트 압축기(400)로 부터 출력되는 소정 비트의 데이타 값을 압축된 코드값으로 저장하는 압축 데이타 메모리(500)와, 상기 비트 이미지 메모리(100)로 부터 소정 블럭에 해당하는 데이타가 블럭메모리(200)에 저장되도록 어드레스를 발생하는 어드레스 발생기(600)와, 상기 각 메모리(100)(200)(500)의 비임 및 독출 동작과 카운트 압축기(400)의 카운팅 동작을 제어하는 제어부(700)를 포함하여 구성됨을 특징으로 하는 비트 이미지 데이타 압축장치.A CCD 10 for converting light into an electrical signal, a data input unit for digitally converting and storing an analog signal converted from the CCD 10 into an electrical signal, and data storage for storing or transmitting compressed data And a decoding unit for reproducing an image pattern stored by a compressed data code, comprising: a bit image memory (100) for storing bit image data passed through a data input unit; A block memory 200 which stores data of a predetermined block from the image memory 100, a parallel / serial converter 300 which converts and outputs predetermined block data of the block memory 200 in series, and the parallel / serial A count compressor 400 which inputs bit image data passing through the converter 300 to a clock terminal and counts the number of " 1 " present in the bit image data; The compressed data memory 500 stores the data value of the predetermined bit output from the count compressor 400 as a compressed code value, and the data corresponding to the predetermined block from the bit image memory 100 are stored in the block memory ( An address generator 600 for generating an address to be stored in the 200, and a control unit 700 for controlling the beam and read operation of each of the memory (100) 200 and 500 and the counting operation of the count compressor 400 Bit image data compression apparatus characterized in that it comprises a. 제 3 항에 있어서, 카운트 압축기(400)는 2개의 카운터(410, 420)를 병렬 연결하여 구성함을 특징으로 하는 비트 이미지 데이타 압축장치.4. The bit image data compression apparatus as claimed in claim 3, wherein the count compressor (400) comprises two counters (410, 420) connected in parallel. 제 3 항에 있어서, 블럭메모리(200)는 8×8 비트의 블럭을 저장단위로 구성함을 특징으로 하는 비트 이미지 데이타 압축장치.4. The bit image data compression apparatus as claimed in claim 3, wherein the block memory (200) comprises blocks of 8x8 bits in a storage unit.
KR1019900008741A 1990-06-14 1990-06-14 Bit image data compressing method and apparatus KR930003201B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019900008741A KR930003201B1 (en) 1990-06-14 1990-06-14 Bit image data compressing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019900008741A KR930003201B1 (en) 1990-06-14 1990-06-14 Bit image data compressing method and apparatus

Publications (2)

Publication Number Publication Date
KR920001962A KR920001962A (en) 1992-01-30
KR930003201B1 true KR930003201B1 (en) 1993-04-23

Family

ID=19300087

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019900008741A KR930003201B1 (en) 1990-06-14 1990-06-14 Bit image data compressing method and apparatus

Country Status (1)

Country Link
KR (1) KR930003201B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004039081A1 (en) * 2002-10-24 2004-05-06 Boram C& C Co., Ltd Real time lossless compression and restoration method of multi-media data and system thereof

Also Published As

Publication number Publication date
KR920001962A (en) 1992-01-30

Similar Documents

Publication Publication Date Title
US4454546A (en) Band compression device for shaded image
US4725885A (en) Adaptive graylevel image compression system
EP0060694B1 (en) Apparatus and method for compressing digital data
US5583657A (en) Method and apparatus for scanning image data
KR100241792B1 (en) Method and apparatus for encoding and decoding image data
US4366506A (en) Picture transfer method and apparatus therefor
US5706001A (en) Run-length decoding apparatus for use in a video signal decoding system
US4533957A (en) Method of processing picture signal to increase average run length and apparatus therefor
US4918540A (en) System for encoding or decoding analog video signals
US6157327A (en) Encoding/decoding device
KR930003201B1 (en) Bit image data compressing method and apparatus
US6631161B1 (en) Method and system for compressing motion image information
US6169820B1 (en) Data compression process and system for compressing data
JPH06343168A (en) Encoding method for digital signal, method for generating table for encoding, encoding device and encoding method
KR960012929B1 (en) Macro-block address generating apparatus for variable length decoder
US5185820A (en) System for compressing image data having blank lines
JPH05151349A (en) Image data compressing method and encoding circuit
JPH06245200A (en) Method and device for scanning two-dimensional data by energy distribution
KR0134359B1 (en) Coding and decoding system of variable scan region
JPS6325749B2 (en)
JPH07255053A (en) Zigzag scanning circuit
EP0652670A1 (en) Image encoding apparatus and method
JPS6228628B2 (en)
KR940000680B1 (en) Picture signal decoding method by using runfield
JPH0437262A (en) Color picture compression device

Legal Events

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

Payment date: 20020325

Year of fee payment: 10

LAPS Lapse due to unpaid annual fee