JPH0378372A - Picture compression circuit and picture restoration circuit - Google Patents

Picture compression circuit and picture restoration circuit

Info

Publication number
JPH0378372A
JPH0378372A JP21440589A JP21440589A JPH0378372A JP H0378372 A JPH0378372 A JP H0378372A JP 21440589 A JP21440589 A JP 21440589A JP 21440589 A JP21440589 A JP 21440589A JP H0378372 A JPH0378372 A JP H0378372A
Authority
JP
Japan
Prior art keywords
pixel
picture
continuous
compressed code
white
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
JP21440589A
Other languages
Japanese (ja)
Inventor
Hitoshi Ichinohe
一戸 均
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fuji Electric Co Ltd
Fuji Facom Corp
Original Assignee
Fuji Electric Co Ltd
Fuji Facom Corp
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 Fuji Electric Co Ltd, Fuji Facom Corp filed Critical Fuji Electric Co Ltd
Priority to JP21440589A priority Critical patent/JPH0378372A/en
Publication of JPH0378372A publication Critical patent/JPH0378372A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To compress picture data into a code which is of fixed length and is easy to understand by outputting a compressed code consisting of a count value outputted by a counting means and a picture element value to show the distinction of white or black of continuous picture elements at every detection of a picture element alteration detecting means. CONSTITUTION:The code length of compressed data (compressed code) generated from serial binary picture data to be outputted in order of the scanning of the picture is fixed to be 8-bits. Then, the number of picture elements to constitute the train of only white picture elements or only black picture elements appearing alternately in the serial binary picture data is counted by a counter 3, and the compressed code C consisting of total 8-bits of 1-bit of symbol of the distinction between white and black of the picture element and 7-bits of the count value of the picture elements in a continuous picture element group is generated for every continuous white picture element group and every continuous black picture element group. However, when the count value of the picture elements of the continuous picture element group exceeds 7-bits length, the compressed code is generated by bringing processing once to an end at the maximum 127-picture elements which can be expressed by 7-bits, and subsequently, counting is newly started form the 128-th picture element, and the next compressed code is generated. Thus, the processing by a general purpose CPU is made easy.

Description

【発明の詳細な説明】[Detailed description of the invention] 【産業上の利用分野】[Industrial application field]

この発明は、光学的文字読取装置(OCR) 、光ファ
イルシステム等画像データを保存する装置のデータ量圧
縮を実現する画像圧縮回路および、この圧縮されたデー
タ(圧縮コード)から元の画像デー夕を復元する画像復
元回路に関する。 なお以下各図において同一の符号は同一もしくは相等部
分を示す。
The present invention relates to an image compression circuit that realizes data amount compression in a device that stores image data such as an optical character reader (OCR) or an optical file system, and an image compression circuit that converts this compressed data (compression code) into original image data. This invention relates to an image restoration circuit that restores images. In the following figures, the same reference numerals indicate the same or equivalent parts.

【従来の技術】[Conventional technology]

原画像をイメージスキャナ等を介し、走査して得られる
シリアルの2値化画像データの圧縮方式としては、FA
Xの標準となっているMH(ModifiedHuff
man)方式、 MR(Modefied Read)
方式が知られている。
FA is a compression method for serial binary image data obtained by scanning the original image using an image scanner, etc.
MH (Modified Huff), which is the standard for
man) method, MR (Modified Read)
The method is known.

【発明が解決しようとする課題】[Problem to be solved by the invention]

しかしながらこの従来の画像圧縮方式においては、画素
の出現パターンを符号(コード)化する際に、出現頻度
の高いパターンに短いコードが割り付けられているため
、圧縮データのコード長が不定長で、コード自体が逆変
換しないと分りにくい。また画素パターンに対する60
個以上のコード対応表と、コンパレータが必要となり、
汎用CPuでの高速処理が困難であるという問題がある
。 そこで本発明は、上記の問題を解消するために、簡単な
回路を用い画像データを固定長でわかり易いコードに圧
縮する画像圧縮回路、および同じく簡単な回路で圧縮コ
ードを元の画像データを復元する画像復元回路を提供す
ることを課題とする。
However, in this conventional image compression method, when converting pixel appearance patterns into codes, short codes are assigned to patterns that appear frequently, so the code length of the compressed data is undefined and the code length is variable. It is difficult to understand without inverse transformation itself. Also, 60% for the pixel pattern
More than one code correspondence table and a comparator are required.
There is a problem in that high-speed processing with a general-purpose CPU is difficult. Therefore, in order to solve the above problems, the present invention provides an image compression circuit that uses a simple circuit to compress image data into a fixed-length and easy-to-understand code, and a similarly simple circuit that uses the compressed code to restore the original image data. The present invention aims to provide an image restoration circuit.

【課題を解決するための手段】[Means to solve the problem]

前記の課題を解決するために第1発明の画像圧縮回路は
、「(イメージスキャナ、8ビットP/S変換回路1な
どを介し)画像の走査順に出力されるシリアルの2値化
画像データ中に順次交互に表われる1または複数の白の
連続画素および1または複数の黒の連続画素についての
、それぞれの連続画素間の切換わりを検出する画素切換
わり検出手段、(2ビットシフトレジスタ2.EXOR
回路5など) この画素切換わり検出手段の検出ごとに、前回の検出か
ら今回の検出に到る間の前記連続画素数を所定ビット長
の計数値の形で計数出力する計数手段(7ビツトカウン
タ3など)、を備え、前記計数手段の出力する計数値と
当該の連続画素についての白、黒の別を表わす画素値と
からなる圧縮コード(Cなど)を前記画素切換わり検出
手段の検出ごとに(データバスDB2などに)出力する
jものとする。 また第2発明の画像復元回路は、r画像の走査順に出力
されるシリアルの2値化画像データ中−に順次交互に表
われるlまたは複数の白の連続画素および1または複数
の黒の連続画素についての、それぞれの連続画素ごとに
作られる圧縮コードであって、当該の連続画素の数を表
わす所定ビット長の計数値と、当該の連続画素について
の白、黒の別を表わす画素値とからなる圧縮コード(C
など)から、元のシリアルの2値化画像データを復元す
る回路において、 前記圧縮コード内の画素値をラッチするラッチ手段(デ
ータラッチ11など)と、 同じく前記圧縮コード内の計数値をダウンカウントする
計数手段(ダウンカウンタ14など)と、前記ラッチ手
段にラッチされた画素値を持つ画素データを前記計数手
段の計数の間、シリアルに出力する画像データ出力手段
(8ピツ) S/P変換回路12など)と、を備えたj
ものとする。
In order to solve the above-mentioned problems, the image compression circuit of the first invention has the following features: Pixel switching detection means for detecting switching between each continuous pixel for one or more continuous white pixels and one or more continuous black pixels that appear alternately in sequence, (2-bit shift register 2.EXOR
circuit 5, etc.) Counting means (7-bit counter, etc.) that counts and outputs the number of consecutive pixels from the previous detection to the current detection in the form of a count value of a predetermined bit length, for each detection by the pixel switching detection means. 3, etc.), and a compressed code (such as C) consisting of a count value outputted by the counting means and a pixel value representing whether the continuous pixel is white or black is transmitted every time the pixel switching detection means detects a compressed code (such as C). It is assumed that j is output to (to data bus DB2, etc.). Further, the image restoration circuit of the second invention is characterized in that l or a plurality of white continuous pixels and one or a plurality of black continuous pixels appear sequentially and alternately in the serial binarized image data outputted in the scanning order of the r image. A compressed code created for each continuous pixel of , from a count value of a predetermined bit length representing the number of the relevant continuous pixels, and a pixel value representing whether the relevant continuous pixels are white or black. Compressed code (C
etc.), a circuit for restoring the original serial binary image data includes a latch means (data latch 11, etc.) that latches the pixel values in the compressed code, and a count value in the compressed code that also counts down. a counting means (such as a down counter 14), and an image data output means (8 pins) that serially outputs pixel data having a pixel value latched by the latch means while the counting means is counting; and an S/P conversion circuit. 12 etc.) and j
shall be taken as a thing.

【作 用】[For use]

1)第1発明について: 画像の走査順に出力されるシリアルの2値化画像データ
から作成する圧縮データ(圧縮コード)の符号長を8ビ
ツト長に固定する。そしてシリアルの2値化画像データ
に交互に出現する白画素のみおよび黒画素のみの連なり
を構成する画素数をそれぞれ計数し、この連続白画素群
および連続黒画素群ごとに、画素の白黒別の記号1ビツ
トと、当該の連続画素群中の画素の計数値7ビツトとの
計8ビットからなる圧縮コードを発生させる。但し当該
の連続画素群の画素の計数値が7ビツト長を越える場合
は7ビツト長で表われる最大127画素で一旦打ち切っ
て圧縮コードを発生させ、続いて、128画素目から新
たに計数を始めて次の圧縮コードを発生させる。 2)第2発明について: 圧縮コード中の画素数をダウンカウンタで1つづつ減算
してOになるまでの間、同圧縮コード中の画素値に相当
する画素データを前記の1つづつの減算に同期してシリ
アルに出力させ、圧縮コードに対応する元の画像データ
を復元する。
1) Regarding the first invention: The code length of compressed data (compressed code) created from serial binary image data output in the order of image scanning is fixed to 8 bits. Then, the number of pixels constituting a series of only white pixels and only black pixels that appear alternately in the serial binary image data is counted, and for each continuous white pixel group and continuous black pixel group, the number of pixels is divided into black and white pixels. A compressed code consisting of a total of 8 bits consisting of 1 bit of symbol and 7 bits of the count value of the pixels in the continuous pixel group is generated. However, if the counted value of a pixel in the continuous pixel group exceeds 7 bits, the count is stopped once at a maximum of 127 pixels represented by the 7-bit length, a compressed code is generated, and then a new count is started from the 128th pixel. Generates the following compressed code. 2) Regarding the second invention: Until the number of pixels in the compressed code is subtracted one by one by a down counter until it reaches O, pixel data corresponding to the pixel value in the compressed code is subtracted one by one as described above. Synchronize and serially output to restore the original image data corresponding to the compressed code.

【実施例】【Example】

以下第1ないし第5図に基づいて本発明の詳細な説明す
る。第3図は画像データ圧縮の対象となる原画像の例を
示す。同図においてFlは原画像、Pは白(この例では
“0パで表わす)または黒(この例では°“1′”で表
わす)の2値をとる画素である。原画素F1はこの場合
水平(X)方向に並ぶ16個(16ビツト)の画素の列
としてのラインL(LLL2.・・・−−−−−−)に
よって構成されている。 本発明ではこのラインL上の画素を水平(X)方向に走
査する動作を垂直(Y)方向に繰返しながら(つまり原
画像F1をラスク走査しながら)画像データの圧縮コー
ドを得るものとする。 第4図は第3図のラインL1の走査によって得られるシ
リアルの画像データについての圧縮コードを示す。ライ
ンL1ではX方向に順番に白画素3ビット黒画素8ビッ
ト白画素5ビットが並んでおり、この白画素のみまたは
黒画素のみの連続した画素列ごとに1つづつ順次、第4
図のような各8ビツト長の計3個の圧縮コードC(C1
l。 CI2.  C13)が作られる。ここで圧縮コードC
の8ビツト長の先頭のビットD7は当該の画素列が白か
黒かの別を表わし、この先頭ビットに続く7ビツ)D6
〜DOは当該画素列の画素数を示す。 従って同一の色の画素列であっても、7ビツト長で表わ
し得る画素数127を越えた画素数を持つ場合は、この
127個の画素分について1つの圧縮コードCが作られ
、更に残った画素分から同様な方法で次の圧縮コードC
が作られる。 第5図は次のラインL2について同様に作られた圧縮コ
ードを示す。このライン上2上では白画素6ビツト、黒
画素2ビツト、白画素8ビツトが順に並んでおり、これ
に対応してそれぞれ圧縮コードC(C21,C22,C
23)が作られる。 第1図は原画像F1を前述のようにラスク走査しながら
圧縮コードCを発生させる画像圧縮回路の構成の実施例
を示す。同図においては制御回路4からの入力指令LD
Iに基づき、ラインL上の画素列は順番に8個づつ入力
データパスDBIを介し1し て8ビツトパラレル・シリアル変換回路(51L、 ハ
ラレル・シリアルをP/Sと略記する)lに入力され、
制御回路4の出力するクロックCKIに同期し、シリア
ルデータとして2ビツトシフトレジスタ2に入力される
。 この2ビツトシフトレジスタ2は入力したシリアルデー
タ中の連続する2ビツト分を順番にシフトしながら保存
するもので、EXOR回路5は2ビツトシフトレジスタ
2の記憶する2ビツトデータの不一致(つまり白→黒ま
たは黒→白への反転)を検出する。このBXOR回路5
の出力はOR回路6を介して制御回路4へ圧縮コードの
出力要求6aとして与えられる。 一方7ビットカウンタ3はクロックCKI 、従って8
ピツ) P/S変換回路1のデータシフト数を計数し、
7ビツト長のデータとして出力するもので、前記出力要
求6aに基づいて、この7ビツトカウンタ3の計数出力
が圧縮コードCの下位側7ビツトとして、また2ビツト
シフトレジスタ2の保存しているデータうち古い方の1
ビツトが当該画素列の白、黒の別を示す圧縮コードCの
先頭ビットとして出力データパスDB2を介し外部に読
取られると同時に、制御回路4からクリア信号CLIが
出力されて、7ビツトカウンタ3の内容がクリアされる
。従って出力要求6aの出力時にカウンタ3から出力デ
ータパスDB2へ出力される計数出力値はラインL上の
同一色の連続画素何分の画素数であり、同じくこのとき
2ビツトシフトレジスタ2から出力データパスDB2へ
与えられるデータは、この同一色の連続画素列の色(白
、黒)の別を表わす。つまり出力要求6aの出力ごとに
前述の圧縮コードCが出力データパスDB2から出力さ
れることになる。 但し7ビツトカウンタ3の出力計数値が127となった
ときも、この値がAND回路7によって検出され、その
検出出カフaがORゲート6に与えられて出力要求6a
が出力され、圧縮コードCが出力される。 次に第2図は前記の圧縮コードCを入力して元の画像デ
ータを復元する画像復元回路の構成の実施例を示す。同
図においては制御回路15がらの入力指令LD2に基づ
いて、入力データパスDB3を介し入力した圧縮コード
C中の当該画素列の色を表わす画素データとしての先頭
ピッ1−D7をデータラッチ11へ取込み、同じく圧縮
コードC中の画素計数値としての7ビツトD6〜Doを
ダウンカウンタ14へ取込む。次にデータラッチ11に
取込んだ画素データを入力として、クロックCK2に同
期して8ビツトシリアル・パラレル変換回路(但しシリ
アル・パラレルをS/Pと略記する)12でデータシフ
トし、同時にこのシフト回数を8回カウンタ13及びダ
ウンカウンタ14でカウントする。 8回カウンタ13は8回カウントするごとに出力要求1
3aを制御回路15へ出力する。これにより制御回路1
5は、8ピツ) S/P変換回路12のシフト結果とし
ての8個分のパラレルの画素データを画像データとして
データバスDB4から外部へ出力させると共に、クリア
信号CL2を出力して、シフトレジスタ12および8回
カウンタ13をクリアさせ、再び12.13の動作を始
めから繰返させる。 他方、ダウンカウンタ14は入力した画素計数値をダウ
ンカウントし、0になったら入力要求14aを制御回路
15に出力する。これにより制御回路15は再び入力指
令LD2を出力して、次の圧縮コードCのデータをデー
タラッチ11.ダウンカウンタ14に取込ませる。これ
によりこの画像復元回路の前記の動作が始めから繰返さ
れる。 なおこの実施例では1ライン16画素のデータを8ビツ
ト×3コードに変換しいるために圧縮の効果が少ない。 しかし、解像度400dpiの画像を扱う場合、0.5
mm/8bitであるので、同じ画素が0.5mm以上
続く画像については圧縮の効果が大きい。 この圧縮率は、A4サイズ2白地に5mm角、線太さ0
.5mmの文字のある原稿では、文字ラインで3倍、白
空ラインで16倍となる。 また処理スピードは400dpi、基本クロック16M
Hzの条件で、A4サイズについて2.5秒と高速であ
る。
The present invention will be explained in detail below based on FIGS. 1 to 5. FIG. 3 shows an example of an original image to be subjected to image data compression. In the figure, Fl is the original image, and P is a pixel that takes a binary value of white (represented by "0" in this example) or black (represented by ° "1'" in this example).The original pixel F1 is in this case It is composed of a line L (LLL2.....---), which is a column of 16 (16 bits) pixels lined up in the horizontal (X) direction.In the present invention, the pixels on this line L are It is assumed that the compressed code of the image data is obtained by repeating the scanning operation in the horizontal (X) direction in the vertical (Y) direction (that is, while scanning the original image F1 in the raster direction). This shows a compression code for serial image data obtained by scanning.In line L1, white pixels, 3 bits, black pixels, 8 bits, and white pixels, 5 bits are lined up in order in the X direction. One by one for each consecutive pixel column, the fourth
A total of three compressed codes C (C1
l. CI2. C13) is produced. Here the compression code C
The first bit D7 of the 8-bit length indicates whether the pixel column in question is white or black, and the 7 bits following this first bit D6
~DO indicates the number of pixels in the pixel column. Therefore, even if the pixel string is of the same color, if the number of pixels exceeds 127, which can be represented by a 7-bit length, one compression code C is created for these 127 pixels, and the remaining From pixels, use the same method to create the following compressed code C
is made. FIG. 5 shows a similarly created compressed code for the next line L2. On this line 2, a white pixel of 6 bits, a black pixel of 2 bits, and a white pixel of 8 bits are lined up in this order, and the corresponding compressed codes C (C21, C22, C
23) is created. FIG. 1 shows an embodiment of the configuration of an image compression circuit that generates a compression code C while scanning the original image F1 as described above. In the figure, the input command LD from the control circuit 4
Based on I, the pixel columns on line L are sequentially input into an 8-bit parallel-to-serial converter circuit (51L, abbreviated as P/S for halal-serial) through the input data path DBI in 8-by-8 increments. ,
It is synchronized with the clock CKI output from the control circuit 4 and is input to the 2-bit shift register 2 as serial data. This 2-bit shift register 2 stores consecutive 2 bits of the input serial data while shifting them in order. Detect black or black-to-white reversal). This BXOR circuit 5
The output is given to the control circuit 4 via the OR circuit 6 as a compressed code output request 6a. On the other hand, 7-bit counter 3 is clocked CKI, so 8
) Count the number of data shifts of P/S conversion circuit 1,
It is output as 7-bit long data, and based on the output request 6a, the count output of this 7-bit counter 3 is used as the lower 7 bits of the compressed code C, and as the data stored in the 2-bit shift register 2. The older one
At the same time that the bit is read externally via the output data path DB2 as the first bit of the compressed code C indicating whether the pixel column is white or black, a clear signal CLI is output from the control circuit 4 and the 7-bit counter 3 is cleared. The contents are cleared. Therefore, the count output value outputted from the counter 3 to the output data path DB2 when outputting the output request 6a is the number of consecutive pixels of the same color on the line L, and similarly, the output data from the 2-bit shift register 2 at this time is the number of consecutive pixels of the same color on the line L. The data given to the path DB2 represents the color (white, black) of these continuous pixel columns of the same color. In other words, the aforementioned compressed code C is output from the output data path DB2 every time the output request 6a is output. However, even when the output count value of the 7-bit counter 3 reaches 127, this value is detected by the AND circuit 7, and the detected output cuff a is given to the OR gate 6 and output request 6a.
is output, and compressed code C is output. Next, FIG. 2 shows an embodiment of the configuration of an image restoration circuit which inputs the compression code C and restores the original image data. In the figure, based on an input command LD2 from the control circuit 15, the first pixel 1-D7 as pixel data representing the color of the pixel string in the compressed code C input via the input data path DB3 is sent to the data latch 11. Similarly, 7 bits D6 to Do as pixel count values in the compressed code C are taken into the down counter 14. Next, the pixel data taken into the data latch 11 is input, and the data is shifted by an 8-bit serial/parallel converter (serial/parallel is abbreviated as S/P) 12 in synchronization with the clock CK2. The number of times is counted by the 8-times counter 13 and down counter 14. The 8-times counter 13 requests output 1 every time it counts 8 times.
3a is output to the control circuit 15. As a result, control circuit 1
5 is 8 pixels) 8 parallel pixel data as a shift result of the S/P conversion circuit 12 is outputted as image data from the data bus DB4 to the outside, and a clear signal CL2 is outputted to the shift register 12. Then, the counter 13 is cleared eight times, and the operation of 12.13 is repeated from the beginning. On the other hand, the down counter 14 counts down the input pixel count value, and when it reaches 0, outputs an input request 14a to the control circuit 15. As a result, the control circuit 15 outputs the input command LD2 again and transfers the data of the next compressed code C to the data latch 11. It is taken into the down counter 14. As a result, the above-described operation of this image restoration circuit is repeated from the beginning. In this embodiment, data of 16 pixels per line is converted into 8 bits x 3 codes, so the compression effect is small. However, when handling images with a resolution of 400 dpi, 0.5
Since it is mm/8 bit, the compression effect is great for images in which the same pixel continues for 0.5 mm or more. This compression rate is A4 size 2 5mm square on a white background, line thickness 0
.. For a document with 5 mm characters, the character line will be 3 times larger and the blank line will be 16 times larger. In addition, the processing speed is 400 dpi, and the basic clock is 16M.
Under the Hz condition, it is fast at 2.5 seconds for A4 size.

【発明の効果】【Effect of the invention】

第1発明の画像圧縮回路おいては、8ビットP/S変換
回路1を介し画像の走査順に出力されるシリアルの2値
化画像データ中に順次交互に表われる1または複数の白
の連続画素および1または隻数の黒の連続画素について
の、それぞれの連続画素間の切換わりを検出する画素切
換わり検出手段としての2ビットシフトレジスタ2.E
XOR回路5など、 この画素切換わり検出手段の検出ごとに、前回の検出か
ら今回の検出に到る間の前記連続画素数を7ビツト長の
計数値の形で計数出力する7ビツトカウンタ3を備え、 前記7ビツトカウンタ3の出力する計数値と当該の連続
画素についての白、黒の別を表わす画素値とからなる圧
縮コードCを前記画素切換わり検出手段の検出ごとに出
力するようにし、また、第2発明の画像復元回路におい
ては、前記圧縮コードC内の画素値をラッチするデータ
ラッチ11と、 同じく前記圧縮コードC内の計数値をダウンカウントす
るダウンカウンタ14と、 前記データラッチ11にラッチされた画素値を持つ画素
データを前記ダウンカウンタ14の計数の間、シリアル
に出力する8ピツ) S/P変換回路12とを備えるよ
うにしたので、 圧縮データ(圧縮コード)Cが8ビツト固定長のため、
汎用のCP[I(8、16,32bi t)での処理が
容易である。そしてこの圧縮コードCが当該画素列の色
を表わす1ビツトと、当該画素の連続個数を表わす7ビ
ツトとの計8ビットで表現されるため、コード対応表無
しで、カウンタ回路で圧縮・復元処理が可能である。従
って、汎用パソコン等に圧縮データを送り、復元する場
合も、専用ハードウェアの必要が無く、簡単なソフトウ
ェアで処理可能である。また回路が標準のシフトレジス
タ、カウンタで構成できメモリや専用LSIが不要であ
る。 また本回路を専用LSI化する場合、2800ゲ一ト程
度で実現できる。
In the image compression circuit of the first invention, one or more continuous white pixels appear alternately in serial binary image data outputted in the scanning order of the image via the 8-bit P/S conversion circuit 1. and a 2-bit shift register 2 as a pixel switching detection means for detecting switching between one or a number of consecutive black pixels. E
A 7-bit counter 3, such as an XOR circuit 5, counts and outputs the number of consecutive pixels from the previous detection to the current detection in the form of a 7-bit count value each time the pixel switching detection means detects the pixel switching. A compressed code C consisting of a count output from the 7-bit counter 3 and a pixel value representing whether the continuous pixel is white or black is output every time the pixel switching detection means detects the pixel switching. Further, in the image restoration circuit of the second invention, a data latch 11 that latches the pixel value in the compressed code C, a down counter 14 that similarly counts down the count value in the compressed code C, and the data latch 11 Since the compressed data (compressed code) C is provided with an S/P conversion circuit 12 that serially outputs pixel data having a pixel value latched to 8 while the down counter 14 is counting, the compressed data (compressed code) C is Because the bit length is fixed,
It is easy to process with a general-purpose CP[I (8, 16, 32 bit). Since this compression code C is expressed by a total of 8 bits, 1 bit representing the color of the pixel row and 7 bits representing the number of consecutive pixels, the compression/decompression process can be performed using a counter circuit without a code correspondence table. is possible. Therefore, even when compressed data is sent to a general-purpose personal computer or the like and restored, there is no need for dedicated hardware, and the process can be performed using simple software. Furthermore, the circuit can be configured with standard shift registers and counters, eliminating the need for memory or dedicated LSI. Furthermore, if this circuit is implemented as a dedicated LSI, it can be realized with about 2800 gates.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は本発明の一実施例としての画像データ圧縮回路
の構成を示すブロック図、 第2図は同じく圧縮コード復元回路の構成を示すブロッ
ク図、 第3図は原画像とその走査の例を示す図、第4図、第5
図はそれぞれ第3図のライン別の画像走査に基づく画像
データの圧縮結果を示す図である。 Fl:原画像、L(Ll、L2)ニライン、C(C1l
〜C13,C21〜C23)  :圧縮コード、1:8
ビットP/S変換回路、2:2ビツトシフトレジスタ、
3ニアビツトカウンタ、4:制御回路、5:EXOR回
路、6:OR回路、’7:ANDゲート、11:データ
ラッチ、12:8ビットS/P変換回路、13:8回カ
ウンタ、14:ダウンタウンタ、15:制御回路、DB
I〜DB4 :データパス。
FIG. 1 is a block diagram showing the configuration of an image data compression circuit as an embodiment of the present invention, FIG. 2 is a block diagram showing the configuration of a compressed code decompression circuit, and FIG. 3 is an example of an original image and its scanning. Figures 4 and 5 showing
Each figure shows the compression result of image data based on the line-by-line image scanning of FIG. 3. Fl: Original image, L (Ll, L2) Niline, C (C1l
~C13, C21~C23): Compressed code, 1:8
Bit P/S conversion circuit, 2:2 bit shift register,
3 Near-bit counter, 4: Control circuit, 5: EXOR circuit, 6: OR circuit, '7: AND gate, 11: Data latch, 12: 8-bit S/P conversion circuit, 13: 8 times counter, 14: Downtown 15: Control circuit, DB
I~DB4: Data path.

Claims (1)

【特許請求の範囲】 1)画像の走査順に出力されるシリアルの2値化画像デ
ータ中に順次交互に表われる1または複数の白の連続画
素および1または複数の黒の連続画素についての、それ
ぞれの連続画素間の切換わりを検出する画素切換わり検
出手段、 この画素切換わり検出手段の検出ごとに、前回の検出か
ら今回の検出に到る間の前記連続画素数を所定ビット長
の計数値の形で計数出力する計数手段、を備え、 前記計数手段の出力する計数値と当該の連続画素につい
ての白、黒の別を表わす画素値とからなる圧縮コードを
前記画素切換わり検出手段の検出ごとに出力することを
特徴とする画像圧縮回路。 2)画像の走査順に出力されるシリアルの2値化画像デ
ータ中に順次交互に表われる1または複数の白の連続画
素および1または複数の黒の連続画素についての、それ
ぞれの連続画素ごとに作られる圧縮コードであって、当
該の連続画素の数を表わす所定ビット長の計数値と、当
該の連続画素についての白、黒の別を表わす画素値とか
らなる圧縮コードから、元のシリアルの2値化画像デー
タを復元する回路において、 前記圧縮コード内の画素値をラッチするラッチ手段と、 同じく前記圧縮コード内の計数値をダウンカウントする
計数手段と、 前記ラッチ手段にラッチされた画素値を持つ画素データ
を前記計数手段の計数の間、シリアルに出力する画像デ
ータ出力手段と、を備えたことを特徴とする画像復元回
路。
[Claims] 1) One or more white continuous pixels and one or more black continuous pixels that appear alternately in serial binarized image data output in the scanning order of the image, respectively. pixel switching detection means for detecting switching between consecutive pixels; for each detection by this pixel switching detection means, the number of consecutive pixels from the previous detection to the current detection is calculated as a count value of a predetermined bit length; a counting means for outputting a count in the form of , and the pixel switching detection means detects a compressed code consisting of a count value outputted by the counting means and a pixel value representing whether the continuous pixel is white or black. An image compression circuit characterized by outputting data for each time. 2) Create a process for each continuous pixel of one or more white continuous pixels and one or more black continuous pixels that appear alternately in serial binary image data that is output in the scanning order of the image. A compressed code consisting of a count value of a predetermined bit length representing the number of consecutive pixels, and a pixel value representing whether the consecutive pixels are white or black, is extracted from the original serial number. A circuit for restoring digitized image data includes a latch means for latching pixel values in the compressed code, a counting means for down-counting a count value in the compressed code, and a circuit for latching the pixel values latched by the latch means. An image restoration circuit comprising: image data output means for serially outputting pixel data having pixel data while the counting means is counting.
JP21440589A 1989-08-21 1989-08-21 Picture compression circuit and picture restoration circuit Pending JPH0378372A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21440589A JPH0378372A (en) 1989-08-21 1989-08-21 Picture compression circuit and picture restoration circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21440589A JPH0378372A (en) 1989-08-21 1989-08-21 Picture compression circuit and picture restoration circuit

Publications (1)

Publication Number Publication Date
JPH0378372A true JPH0378372A (en) 1991-04-03

Family

ID=16655251

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21440589A Pending JPH0378372A (en) 1989-08-21 1989-08-21 Picture compression circuit and picture restoration circuit

Country Status (1)

Country Link
JP (1) JPH0378372A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02167300A (en) * 1989-10-31 1990-06-27 Suntory Ltd Antitumor substance derived from echinodermatous animal and production thereof
KR100485528B1 (en) * 2001-04-18 2005-04-28 가부시키가이샤 시마노 Snowboard binding system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02167300A (en) * 1989-10-31 1990-06-27 Suntory Ltd Antitumor substance derived from echinodermatous animal and production thereof
JPH054399B2 (en) * 1989-10-31 1993-01-19 Santorii Kk
KR100485528B1 (en) * 2001-04-18 2005-04-28 가부시키가이샤 시마노 Snowboard binding system

Similar Documents

Publication Publication Date Title
JPH0771185B2 (en) Image data conversion method
JPH0358574A (en) Dot picture data compressor
KR870008446A (en) Binary data compression and extension processing unit
JPS61245768A (en) Encoding of image data
EP0459796A2 (en) Image processing system
JPH0351966A (en) Coding apparatus of image data
JPH0378372A (en) Picture compression circuit and picture restoration circuit
JP2002091407A (en) Picture display device
US6456742B1 (en) Method for image processing
JP2615215B2 (en) Image data compression method
JPS5883473A (en) Picture signal encoding system
JP2612343B2 (en) Data compression method
JP2859507B2 (en) Image data compression / decompression method and apparatus
JP2795023B2 (en) Encoding device
KR900007566B1 (en) Picture data converting device
JPS6366113B2 (en)
JPH0411907B2 (en)
JPS63275276A (en) System and device for coding digital picture signal
JPH07170418A (en) Image data processor
JPS60117879A (en) Fill bit eliminating circuit
JPH0358572A (en) Data compressing system
JPH06225123A (en) High speed restoring method for picture data
JPS63245067A (en) Data compression system
JPH0223488A (en) Picture signal processor
JPH0654210A (en) Method and device for inverse conversion of pattern run length