JPS6080370A - Picture information compressor - Google Patents
Picture information compressorInfo
- Publication number
- JPS6080370A JPS6080370A JP18820483A JP18820483A JPS6080370A JP S6080370 A JPS6080370 A JP S6080370A JP 18820483 A JP18820483 A JP 18820483A JP 18820483 A JP18820483 A JP 18820483A JP S6080370 A JPS6080370 A JP S6080370A
- Authority
- JP
- Japan
- Prior art keywords
- data
- code
- length
- variable
- color change
- 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
Links
- 238000000034 method Methods 0.000 claims description 26
- 230000006835 compression Effects 0.000 claims description 15
- 238000007906 compression Methods 0.000 claims description 15
- 239000000872 buffer Substances 0.000 description 27
- 238000001514 detection method Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 8
- 238000000576 coating method Methods 0.000 description 6
- 238000006243 chemical reaction Methods 0.000 description 5
- 230000001174 ascending effect Effects 0.000 description 4
- 239000003086 colorant Substances 0.000 description 2
- 241000714197 Avian myeloblastosis-associated virus Species 0.000 description 1
- 241000257465 Echinoidea Species 0.000 description 1
- 101150037717 Mavs gene Proteins 0.000 description 1
- 230000003139 buffering effect Effects 0.000 description 1
- 210000000078 claw Anatomy 0.000 description 1
- 239000011248 coating agent Substances 0.000 description 1
- 230000001934 delay Effects 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Abstract
Description
【発明の詳細な説明】
発明の属する技術分野
不発明は画像(イメージ)情報の圧縮装置VC関し5%
にpfT足画像画像全走査得られた2値テイジタルデー
タの圧縮を行うべくランレングスコーディングおよび垂
直参照コーティングを利用した画像情報圧縮装置に関す
る。[Detailed Description of the Invention] Technical field to which the invention pertains The invention relates to an image information compression device VC.5%
The present invention relates to an image information compression device that uses run-length coding and vertical reference coating to compress binary digital data obtained by fully scanning a pfT foot image.
従来技術
ランレングスコーディング方式は、黒または白画素の連
続するランをランレングスに対応するり変長のコードワ
ードで表わし、出現頻度の高いコードワードはど短いコ
ードワードを割当てるという方式である。The conventional run-length coding method is a method in which a continuous run of black or white pixels is represented by a code word of variable length corresponding to the run length, and a short code word is assigned to a code word that appears frequently.
また、垂直参照コーティング方式は、現走査ラインにお
ける色変化位置すなわち黒がら白またに。In addition, the vertical reference coating method allows the color change position in the current scan line, ie from black to white.
白から黒へ変化する位置が前走査ラインにおける色変化
位置に対して相対的にどれだけすれているかによってコ
ードワードを割当てるという方式である。This method assigns a code word depending on how far the position where the color changes from white to black is relative to the color change position in the previous scanning line.
前者のランレングスコーディング方式は6モテイフアイ
ド・ハフマン・コーディング″として。The former run-length coding method is called ``6-motivated Huffman coding''.
後者の垂直参照コーディング方式は6モデイ7アイド・
リード・コーディング″としてCCITT (国際電信
電話諮問委員会)によって採用されているものである・
これ等のコーティング方式を用いた圧縮技術は従来ファ
クシミリ等の同線系で主に実現されており、データ転送
がシリアルであることから変換処理も1ビツトずつシリ
アルに行えば十分となっている。ところが、近時コンピ
ュータによる画像処理としてこれらのコーティング方式
を用いる傾向にあり、−tの際のデータ転送全パラレル
に行う必要が生じてきている。The latter vertical reference coding method is a 6-mode, 7-eyed
This has been adopted by the CCITT (International Telegraph and Telephone Consultative Committee) as ``Lead Coding.'' Compression technology using these coating methods has conventionally been mainly realized in the same line systems such as facsimiles, and data Since the transfer is serial, it is sufficient to perform the conversion process serially one bit at a time.However, recently there has been a tendency to use these coating methods for image processing by computers, and the entire data transfer during -t is It has become necessary to do this in parallel.
例エバ、メモリユニットにワード単位で格納されている
原画像ティジタルデータta速データバスを介してパラ
レルに圧縮装置に転送し、圧締変換すれたコードデータ
全パラレルに圧締装置からメモリユニットへ同一データ
バスを介して転送するという動作がある。この場合、圧
縮装置として従来のシリアル変換方式管用いると、変換
処理は先スパラレルデータ全1ビットずつカウントシて
そのデータの属性を調べ、その属性に従ってコード化し
、次にコードを1ビツトずつ出力しつつシフトレジスタ
等管用いてデータバス幅に合せた固定長データに編集す
るという手順で行われる・かかる方法は比較的簡単なハ
ードウェアにて実現し得るが、1ビツトずつデータ処理
を行うために変換に要する時間がかかフ、コンピュータ
での画像処理に適合しないという欠点がある。For example, the original image digital data stored in word units in the memory unit is transferred to the compression device in parallel via the ta-speed data bus, and the compressed code data is all transferred in parallel from the compression device to the memory unit. There is an operation of transferring data via the same data bus. In this case, if a conventional serial conversion tube is used as a compression device, the conversion process will count all of the parallel data one bit at a time, check the attributes of that data, code it according to the attributes, and then output the code one bit at a time. This is done by editing the data into fixed length data that matches the data bus width using a shift register or similar tube.This method can be implemented with relatively simple hardware, but it requires conversion in order to process data bit by bit. The drawbacks are that it takes a long time to process and is not suitable for computer image processing.
発明の目的
不発明の目的は、ワード単位で送られてくる画像ディジ
タルデータをピット並列にて処理し高速でかつ効率良く
可変長コードデータを得ると共に、この可変長コードデ
ータをそのコード長さ情報音用いて所定固定長データに
編集するようにして上述の欠点全除去した画像情報圧縮
装置を提供することにある。Purpose of the Invention The purpose of the invention is to process image digital data sent in word units in parallel pits to obtain variable length code data at high speed and efficiency, and to convert this variable length code data into its code length information. It is an object of the present invention to provide an image information compression device which eliminates all of the above-mentioned drawbacks by editing data into predetermined fixed length data using sound.
発明の構成
不発明による画像情報圧縮装置は、所定画像全走査して
得られたディジタルデータをその画像の脣する属性VC
N目した圧縮方式を用いて可変長コ変長コードデータと
そのコード長情報とを発生するエンコード手段と、この
エンコード手段により連続的に発生される複数の可変長
コードデータをコード長情報ヲ用いて複数の互いに分割
された固定長データとして出力すべく、これ等相前後す
る可変長コードデータのうち先行するデータの末尾にそ
れに続くデータの少くとも1部を付加するように動作す
る編集手段と全含むことにある。Structure of the Invention An image information compression device according to the invention converts digital data obtained by fully scanning a predetermined image into attribute VC of the image.
An encoding means for generating variable length code data and its code length information using the Nth compression method, and a plurality of variable length code data successively generated by the encoding means using the code length information. editing means that operates to add at least a part of the following data to the end of the preceding data among the successive variable length code data in order to output them as a plurality of mutually divided fixed length data; It is all inclusive.
さらに詳述すれば、画像データを数画累一括して処理し
てこの処理される画素中の色変化位置全同時にめ、借ら
れた色変化位置情報からその属性を分析しこの属性に対
応する可変長コードデータとそのコード長情報と全発生
するエンコード手段と、このエンコード手段により連続
的に発生される可変長コードデータとコード長情報と全
相いてこれら連続する可変長コードデータを複数の固定
長データとして出力すべく、1つの可変長コードデータ
の末尾にそれに続く可変長コードデータの少くとも1部
を付加して1つの固だ長データとし、残りのデータ部分
管巣にそれに続く可変長コードデータの直前に付加すべ
く記憶するようにし、また、可変長コードデータの全て
全直前のデータの末尾に付加しても固定長データに満た
ない場合は固定長データとして出力せずに次に続くデー
タの1部ヶ付加すべく記憶するようにした編集手段とを
備えている。More specifically, image data is processed in batches for several pixels, all color change positions in the processed pixels are determined, the attributes are analyzed from the borrowed color change position information, and the attribute is matched. Variable-length code data, its code length information, an encoding means that generates all the variable-length code data, and variable-length code data and code length information that are continuously generated by the encoding means, and these continuous variable-length code data are encoded into a plurality of fixed pieces. In order to output long data, at least a part of the following variable length code data is added to the end of one variable length code data to form one fixed length data, and the remaining data part is added to the following variable length code data. It is stored so that it is added immediately before the code data, and if it does not reach the fixed length data even if all of the variable length code data is added to the end of the previous data, it is not output as fixed length data and the next and editing means for storing one copy of the following data to be added.
発明の実施例 以下に、本発明を図面音用いて説明する。Examples of the invention The present invention will be explained below with reference to the drawings.
第1図は不発明の原理會示′j′Jg略ブロック図であ
フ5図において、圧縮すべき原画像データが1ラインず
つ走査された順にホストコンビーータlの主記憶または
それに類する記憶装置FF3に連続的に格納されている
。ホストコンピュータlは一般の入出力動作で杓なわれ
る様にチャネルによって原画像データをイメージ圧縮装
g 2 (rr−ワード単位にh速に転送する。当実施
例ではワード長を16ビツトと仮定テる。転送された原
画像f−夕3は。FIG. 1 is a schematic block diagram illustrating the principle of non-invention. In FIG. Continuously stored in FF3. The host computer 1 transfers the original image data in units of image compression devices g2 (rr-words) at a speed of h using channels as used in general input/output operations. In this embodiment, the word length is assumed to be 16 bits. The transferred original image f-3 is.
址)゛エンコード手段4によって画像の属性に従ってモ
ディファイド・ハフマン(Mトリコードまたは、モディ
ファイド・リード(NFL)コードに変換され、その可
変長コード・データ5.コード長6.及び制御情報7を
次の編檗手段8に渡す。編集手段8はエンコード手段4
から連続的に送られてくる可変長コードデータ5及びコ
ード長6全用いて、ホストコンピュータ1に転送すべき
幅(実施列では16ビツト)になるようにコードデータ
の切り貼り全行なう。編集手段8により固定長に編集さ
れたー叱のコードデータ9は、原画像データの転送と同
じくチャネルによってイメージ圧縮装置2がらホストコ
ンピュータ1に転送され、しかるべき記憶装置内に格納
される。2) The encoder 4 converts the image into a modified Huffman (M tricode) or modified lead (NFL) code according to the attributes of the image, and converts the variable length code data 5, code length 6, and control information 7 into the following code. Pass it to the editing means 8. The editing means 8 is the encoding means 4.
All the variable length code data 5 and code length 6 continuously sent from the host computer 1 are used to cut and paste the code data so that it has the width (16 bits in the actual column) to be transferred to the host computer 1. The code data 9 edited into a fixed length by the editing means 8 is transferred from the image compression device 2 to the host computer 1 via the channel in the same manner as the transfer of the original image data, and is stored in an appropriate storage device.
次に各構成要塞り詳細を説明する。Next, details of each configuration will be explained.
第2図は第1図のエンコード手段3のブロック図を示し
ている* FIFO(First In First(
Jut)10は単に転送されてきた原画像データ3をバ
ッファしておくためのものである。ディレィ回路11は
MRココ−ィングを行なうために1ライン分のデータ全
遅延させるもので、実施例では簡単のため、1ライン全
ワード長の整数倍に仮定する。従って遅延は1ラインに
含まれるワード数だけワード単位に行なわれる。FIG. 2 shows a block diagram of the encoding means 3 of FIG. 1. *FIFO (First In First)
Jut) 10 is simply for buffering the transferred original image data 3. The delay circuit 11 delays all data for one line in order to perform MR cocoing, and in the embodiment, for simplicity, it is assumed to be an integral multiple of the total word length of one line. Therefore, the delay is performed word by word by the number of words included in one line.
現ライン及びディレィ回路6によって遅延された前ライ
ンの1ワ一ド分の原画像データ12及び13は、色変化
位置検出手段14及び15によって画素の色が白から黒
または黒から白へ遷移する位置がラインの先頭から数え
て何ビット目VC相当するか認識して、その位置情報1
6.17を出力する。当然、1ライン中VCは複数の色
変化位置が認識されることが考えられ、その場合は、ラ
インの先頭に近6い位置から順に、当該ワード中の全て
の色変化位置情報が出力される。The original image data 12 and 13 for one word of the previous line delayed by the current line and the delay circuit 6 undergoes a pixel color transition from white to black or from black to white by the color change position detection means 14 and 15. Recognize what bit of VC the position corresponds to from the beginning of the line, and store the position information 1
Output 6.17. Naturally, it is possible that multiple color change positions are recognized in a VC in one line, and in that case, all color change position information in the word is output in order from the 6th position closest to the beginning of the line. .
第3図は第2図の色変化位置検出手段14及び15の詳
細な回路構成例金示している。■1は1ワ一ド分(16
ビツト)の原画像データを表わす。FIG. 3 shows an example of a detailed circuit configuration of the color change position detection means 14 and 15 shown in FIG. ■1 is one word (16
represents the original image data (bit).
■!の各ビットはそれぞれm前のビットとの排他的論理
和合とることによって色変化があったかどうかが検出さ
れ、その結果はバッファ22に格納される。即ち、色変
化のある位1a1tK、は1“が、色変化のない位置に
は”0″が出力される。仮想画素21には、当該ワード
・データがラインの先頭であれは白(二〇)が、先頭で
なければ直前のワード・データの最後のビットの色が定
義される。■! It is detected whether or not there has been a color change by performing an exclusive OR on each bit with the m previous bit, and the result is stored in the buffer 22. That is, 1" is output for 1a1tK where there is a color change, and "0" is output at a position where there is no color change. If the word data is at the beginning of the line, white (20) is output to the virtual pixel 21. ) is not the beginning, the color of the last bit of the previous word data is defined.
バッファ22に格納された色変化位置情報は以下の方法
によってラインの先頭に近い位置から順に出力される。The color change position information stored in the buffer 22 is output in order from the position closest to the beginning of the line by the following method.
まず、バッファ22の出力V2は、マスク回路部27に
よってバッファ25の出力V5の++ 11+の立って
いるビット位置全マスクされ。First, the output V2 of the buffer 22 is masked by the mask circuit section 27 for all bit positions where ++11+ is set in the output V5 of the buffer 25.
マスクされた状態V3は5次の昇順優先回路部28によ
って■3の中のIT II+の立っているビットのうち
、ラインの先頭に最も近い位置のみ1”全表示してバッ
ファ23に格納される。初め、バ。The masked state V3 is stored in the buffer 23 by the 5th order ascending priority circuit section 28, which displays only the 1" position closest to the beginning of the line among the bits in 3 where IT II+ is set. .In the beginning, Ba.
ファ25には全て10”が入っており、従ってマスク回
路部27ではv2のいずれのビットもマスクされない。All 10'' bits are contained in the FF 25, so the mask circuit section 27 does not mask any bits of v2.
バッファ23の出力■4はOR回路24によって状態V
5との論理和かとられ、その結果がバッファ25に格納
される。即ち、次のサイクルでは状態V5は状態■2の
中の最も先頭に近い位置に1″を表示しているので、マ
スク回路部27は当該位置全マスクし、昇順優先回路部
28はV2のうち、2番目にラインの先頭に近い”1”
全出力する。以上の繰返しは比較回路26によって監視
され制御される。比較回路26Fi状態v4が全て0
++かどうかを監視し、全て0”でなければ、即ち、い
ずれかのビット位置に1”が立っていればその位置がラ
インの先頭から数えて(pJビット目であるかを示す情
報29を出力し、その後、バッファ23.OR回路24
.バッファ25にクロック全送出し、次の色変化位置の
検出を行なう。もし、状MV+が全て0”であること全
比較回路26が検出した場合は、当該ワード・データに
は、もはや検出の色変化位置がないわけであるから、次
のワード・データを要求する制御領号30を発生し、回
持にバッファ25會クリアする。The output ■4 of the buffer 23 is set to the state V by the OR circuit 24.
5 and the result is stored in the buffer 25. That is, in the next cycle, state V5 displays 1" at the position closest to the beginning in state 2, so the mask circuit section 27 masks all the positions, and the ascending priority circuit section 28 displays 1" in state V2. , the second closest “1” to the beginning of the line
Full output. The above repetition is monitored and controlled by the comparator circuit 26. Comparison circuit 26Fi status v4 is all 0
++, and if all are not 0'', that is, if 1'' is set in any bit position, information 29 indicating whether that position is the pJth bit counting from the beginning of the line is sent. After that, the buffer 23.OR circuit 24
.. All clocks are sent to the buffer 25, and the next color change position is detected. If the total comparator circuit 26 detects that the state MV+ is all 0'', this means that the word data no longer has a color change position to be detected, so the control to request the next word data is executed. Generate 30 areas and clear 25 buffers in circulation.
次に、当該色変化位置検出手段によって原画像データの
色変化位置が出力される一例を、各状態■1〜V5 の
動作を追いながら説明する。まず、原画像データの1ワ
一ド分の状態Vt 全次の様に仮足する。Next, an example in which the color change position of the original image data is output by the color change position detecting means will be explained while following the operations in each state (1) to (V5). First, the state Vt of one word of the original image data is temporarily added as follows.
Vl :0O11100001100000仮想画索2
1にはN ’OI+が入っているものとすると、状態■
2は
V2 :0010010001010000となる。仮
想両系21には、■1の最終ビットと同じ′0″が格納
される。バッファ25には初め全て0″が入っているの
で、状MAVsはV2と同じく、
Vl :0O10010001010000である。次
に状態■、は昇順優先回路部28により、先頭vcH(
も近い′1”として3ビツト目が検出され、その状態V
4は次のようになる。Vl:0O11100001100000 Virtual image search 2
Assuming that 1 contains N'OI+, the state ■
2 becomes V2:0010010001010000. The virtual double system 21 stores ``0'', which is the same as the last bit of ■1. Since the buffer 25 initially contains all 0'', the state MAVs is Vl: 0O10010001010000, the same as V2. Next, in state ■, the ascending priority circuit unit 28 controls the top vcH (
The 3rd bit is detected as '1' which is close to '1', and the state V
4 becomes as follows.
V4 :ooioooooooooooo。V4: ooiooooooooooooo.
V4は比較回路26により”1”が立っていることが認
識され1色変化位置情報として3”を出力する。さらに
次の色変化位置全検出すべく、V4はOR,回路24に
よりV5との論理和かとられ、バッファ25に格納され
る。バッファ25の新しい出力V、lはv4と同じであ
る。The comparing circuit 26 recognizes that V4 is set to "1" and outputs "3" as one color change position information.Furthermore, in order to detect all the next color change positions, V4 is ORed with V5 by the circuit 24. It is ORed and stored in buffer 25. The new output V,l of buffer 25 is the same as v4.
V、’:0010000000000000Vs′はマ
スク回路部27によ凱V2の3ビツト目の11”をマス
クする。V,':0010000000000000Vs' masks the third bit 11'' of the signal V2 by the mask circuit section 27.
即ち、次の様々、Vlの新たな状態Vs”e生ずる。That is, the following various new states Vs''e of Vl occur.
Vs’:0000010001010000■3′は昇
順優先回路部28により5次の様なV4の新たな状態V
4”fr生ずる。Vs': 0000010001010000■3' is a new state V of V4 such as 5th order by the ascending priority circuit section 28
4”fr occurs.
V4’ : OOOO010000000000■4′
は比較回路26によって1”が立っていることが認識さ
れ1色変化情′報″6”を出力する。V4': OOOO010000000000■4'
The comparison circuit 26 recognizes that 1" is set and outputs 1 color change information "6".
さらにV、/はOR回路24VCよってV、′との論理
和かとられ、■5′の新たな状態V、// T、生ずる
。Further, V,/ is logically summed with V,' by the OR circuit 24VC, and a new state V, //T of 5' is generated.
V、” :0O10010000000000回様にし
て、以下の動作全行なう。V,'': Perform all of the following operations 0010010000000000 times.
Vl :0000000001010000■4“:0
000000001000000色変化位置″10”出
力
V5”’ : 0010010001000000V3
”’ : 0000000000010000v、”
:0000000000010000色変化位置″12
″出力
V、”” : 0010010001010000v3
”” :0O00000000000000v 4””
: o o o o o o o o o o o
o o o o 。Vl:0000000001010000■4":0
000000001000000 Color change position ``10'' Output V5'': 0010010001000000V3
”': 0000000000010000v,”
:0000000000010000 Color change position ″12
"Output V,"": 0010010001010000v3
”” :0O00000000000000v 4””
: o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
o o o o o.
ここで比較回路26はV 4//I/が全て0′′であ
ることを認識してバッファ25をクリアし、次のワード
データを要求する。そして、当該ワードデータの色変化
位置検出動作を終了する。Here, the comparison circuit 26 recognizes that V4//I/ are all 0'', clears the buffer 25, and requests the next word data. Then, the color change position detection operation of the word data is completed.
再ひ第2図にもどる。色変化位置検出手段14及び15
によって発生された前ラインの色変化位置情報16及び
現ラインの色変化位置情報17は順次属性検出手段18
に入力される。属性検出手段18は現ラインのコーテン
グ方式がM)T方式であるかMR力式であるかによって
それぞれの方式に従って画像の属性全分析する。一般に
垂直参照コーティング方式は前ライン全参照して現ライ
ン’kt−3号化するため、1ラインで誤りが発生する
と以降(υライン全てに影・壽紮及ぼす。従って、数ラ
イン毎にランレングス・コーディングを入れて誤クリ波
及を防ぐ方式が用いられる。MR,方式においても、何
ライン毎にMHココ−ィングによるラインを挿入゛Tる
が、このライン数はに値と呼ばれ、ファクシミリ等では
に二4がよく用いられる。K値は圧縮を行なう前にセツ
ティングされる。属性検出手段18は、現ラインがMH
方式に指示されていれば前ラインの色変化位置情報16
を全て無視し、現ラインのこの色変化位置情報17より
ランレングス及びその包金検出する。また、現ラインが
MR方式に指示されていれは、情報16及び17より、
それらの位置関係全分析し、水平モード(Hモード)、
垂直モード(Vモード)、パスモード(Pモード)のい
ずれか全検出し、さらに各モードにおいて細かく属性に
分類する(CCfTT勧告T、4参照)。Return to Figure 2 again. Color change position detection means 14 and 15
The color change position information 16 of the previous line and the color change position information 17 of the current line generated by
is input. The attribute detection means 18 analyzes all attributes of the image according to whether the coating method of the current line is the M)T method or the MR method. In general, the vertical reference coating method refers to all previous lines and converts the current line to 'kt-3', so if an error occurs in one line, it affects all subsequent (υ) lines. Therefore, the run length is changed every few lines.・A method is used in which coding is inserted to prevent the spread of erroneous requests.In the MR method, a line by MH cocoing is inserted for every line. 24 is often used.The K value is set before compression.The attribute detection means 18 detects whether the current line is MH
If specified by the method, color change position information 16 of the previous line
is completely ignored, and the run length and its wrapper are detected from this color change position information 17 of the current line. Also, if the current line is instructed to the MR method, from information 16 and 17,
Analyze all their positional relationships, horizontal mode (H mode),
Either vertical mode (V mode) or path mode (P mode) is fully detected, and each mode is further classified into attributes in detail (see CCfTT Recommendation T, 4).
第4図は第2図の属性検出手段18のクローを示してい
る。aO−al * a2はそれぞれ現ライン上の色変
化位itヲ表わし、bl、b、は前ライン上の色変化位
lit表している。゛Cライン”及び”Rライン”はそ
れぞれ、現ラインの色変化位置読取り及び前ラインの色
変化位置d取り動作を表わしている。Po及びPRはそ
れぞれaQ及びblの示す位置の色を表わしている。詳
細なフローの説明については省略する。FIG. 4 shows the claw of the attribute detection means 18 of FIG. aO-al*a2 represents the color change position on the current line, and bl and b represent the color change position on the previous line. "C line" and "R line" respectively represent the operation of reading the color change position of the current line and the operation of taking the color change position d of the previous line.Po and PR represent the colors at the positions indicated by aQ and bl, respectively. A detailed explanation of the flow will be omitted.
第5図は属性検出手段18によって出力される属性情報
の一例全示している。M H/MR選択ビット31は現
ラインがMH方式とMR方式のいずれが選択されたか全
識別する。Pモード32.Hモード33.■モード34
の各識別ピットはMR。FIG. 5 shows an example of the attribute information outputted by the attribute detection means 18. The MH/MR selection bit 31 completely identifies whether the MH method or the MR method is selected for the current line. P mode 32. H mode 33. ■Mode 34
Each identification pit is MR.
が選択された時のみ有効であり、3つのモードのうちの
いずれが指足されるかは属性検出時に決まる。■モード
属性識別フィールド35は3ビツトの領域をもち、■モ
ードが指足された時に第4図のブロック71によって計
算される前ライン色変化位置に対する現ライン色変化位
置の相対的なずれ量として−3〜+3のいずれかを表示
する。RLフィールド37と色ビット36はMI(方式
でHモードあるいはMH方式が選択された時のランレン
グス及びその包金表わf′。即ち、@4図のブロック7
2.71)るいはブロック74で計算された結果及び色
が表示される。EOLビット38は、表示されている属
性情報が現ラインの最後であるかどうかを示す、ランレ
ングス全表示する場合、ランの最大長を表示できるビッ
ト数?もつよりも。is valid only when selected, and which of the three modes is selected is determined at the time of attribute detection. ■The mode attribute identification field 35 has a 3-bit area, and is used as the relative shift amount of the current line color change position with respect to the previous line color change position calculated by block 71 in FIG. 4 when the mode is added. Displays one of -3 to +3. The RL field 37 and the color bit 36 represent the run length and its envelope f' when H mode or MH mode is selected in MI (method). That is, block 7 in Figure @4
2.71) Alternatively, the results and colors calculated in block 74 are displayed. The EOL bit 38 indicates whether the displayed attribute information is the end of the current line.When displaying the entire run length, it is the number of bits that can display the maximum length of the run. More than one.
ランレングスを64の倍数とその剰余とに分けて表示す
ることにより、表示ビット数を短くすることができる。By dividing the run length into multiples of 64 and their remainders and displaying them, the number of display bits can be shortened.
即ち、0〜63までの数會表示する6ビノトの領域と、
メークアップ(64で除算した商)かターミネイト(剰
余)かを識別する1ビツトの合計7ビツトで表示するこ
とができる。That is, a 6-bit area that displays several numbers from 0 to 63,
It can be displayed with a total of 7 bits, 1 bit identifying whether it is a make-up (quotient divided by 64) or a terminator (remainder).
属性検出手段18から出力される属性情報19は次のコ
ード変換テーブル20によって、CCITT勧告T、4
に示されるような可変長コードに変換され、同時にその
コード長も策引されて出力される。The attribute information 19 output from the attribute detection means 18 is converted into CCITT Recommendation T, 4 by the following code conversion table 20.
It is converted into a variable length code as shown in , and at the same time, the code length is also calculated and output.
コード表から明らかなJ:うにMI−1コード及びMR
コードの場合、そのコード長は高々13ビツトであり、
従ってfiJ変長コードデータ及びコード長を表わす領
域は、そiLぞれ13ビツト及び4ビツトあれば十分で
ある。コードデータの形式は16ビツトの幅をもち、左
詰めで、16ビツトに満たない残9の領域には全て0゛
′が入っているのが望ましい。J: Sea urchin MI-1 code and MR evident from the code table
In the case of a code, the code length is at most 13 bits,
Therefore, it is sufficient for the fiJ variable length code data and the code length to have an area of 13 bits and 4 bits for iL, respectively. It is preferable that the code data format has a width of 16 bits, is left-justified, and the remaining 9 areas less than 16 bits are all filled with 0''.
第6図は第1図の編集手段8のフローを示している。ブ
ロック41のMl及びni はそれぞれi番目の可変長
コードデータ及びそのコード長を表わしている。ブロッ
ク42のmは直前までの編集によって何ビット目までコ
ードデータが満たされているか、そのビット位置を表し
ており、新たなコード・データMi k維続した時に満
たされるであろうビット位置n會計算する・判断43で
nが16ビツトを越えるかどうか全判定することによっ
て、1ワ一ド分のデータが満たされるかどうかを判断す
る。満たされる場合は、44.45のシフト操作を行な
い、46によってMOとMi“の論理和を出力する。
Mt’、 Mt″はそれぞれMiミラ半mビットと後半
(16−m)ビットに分割したものであり、Mj’はM
Oの空領域全補完して出力され、MOは次の編集動作の
ためにM j ”に更新される。MOはMi を継続し
ても1ワードに達しない場合は、シフト動作47を行な
ってMOとMn2の論理和をとった結果を再びMOとし
て1次の編集動作を行なう、判断48でページ終了であ
ると判定されれば、1ワードに満たないMO’<出力し
て編集動作を終了する。FIG. 6 shows the flow of the editing means 8 of FIG. Ml and ni of the block 41 represent the i-th variable length code data and its code length, respectively. m in the block 42 represents the bit position to which the code data has been filled by the previous editing, and the bit position n that will be filled when the new code data Mi k is continued. In calculation/judgment 43, it is determined whether or not n exceeds 16 bits, thereby determining whether data for one word is satisfied. If it is satisfied, the shift operation of 44.45 is performed, and the logical sum of MO and Mi'' is outputted by 46.
Mt' and Mt'' are respectively divided into Mi mira half m bits and second half (16-m) bits, and Mj' is M
The empty area of O is fully complemented and output, and MO is updated to M j '' for the next editing operation. If MO does not reach one word even after continuing Mi, shift operation 47 is performed. The logical sum of MO and Mn2 is used as MO again to perform the first editing operation. If it is determined in judgment 48 that the page is over, output MO'< less than one word and end the editing operation. do.
第7図は編集手段8の詳細なブロック図を示している。FIG. 7 shows a detailed block diagram of the editing means 8.
人力されたコード長情報はMiバッファ51に格納され
、mバッファ52の値を用いて。The manually entered code length information is stored in the Mi buffer 51, and the value of the m buffer 52 is used.
右シフタ53.及び左シフタ54によってそれぞれmビ
ット及び(16−m)ビットだけシフトされる。ここで
、シフタは与えられたシフト数だけ−iにシフトできる
ものが望ましい、その結果はそれぞれMl′バッファ5
5及びMi“バッファ56に格納される。一方、コード
長情報はまずniバッファ57に格納され、加算器58
によフ1mバ。Right shifter 53. and left shifter 54 by m bits and (16-m) bits, respectively. Here, it is desirable that the shifter be capable of shifting -i by a given number of shifts, and each result is sent to Ml' buffer 5.
5 and Mi" buffer 56. On the other hand, the code length information is first stored in the ni buffer 57, and the code length information is stored in the adder 58.
1 m bar.
ファ52の値と加算されてnバッファ59に格納される
。59は15の数までカウント可能で、それ以上の数が
入力されるとオーバフロー倍力60を発生する。このオ
ーバフロー信号ldマルチフレクサ6]C働きかけて編
集の手順全決足する。即ち、オーバフローでない時は、
Mi’バッファ55とMoバッファ63の出力=i(J
R回路61で論理和をとった結果がMOバッファ63へ
格納される。It is added to the value of the buffer 52 and stored in the n buffer 59. 59 can count up to 15 numbers, and when a number greater than that is input, an overflow boost 60 is generated. This overflow signal acts on the ld multiflexor 6]C to complete the entire editing procedure. That is, when there is no overflow,
Output of Mi' buffer 55 and Mo buffer 63 = i(J
The result of the logical sum performed by the R circuit 61 is stored in the MO buffer 63.
オーバフローの時は、OR回路61の結果はホストコン
ピータへ出力すべきデータとしてFIFO64へ送ら:
h、MOバッファ63へハMi” バッファ56の出力
が格納される。さらに、図には記載されていないが、ペ
ージ終了を示す制御情報は。In the event of an overflow, the result of the OR circuit 61 is sent to the FIFO 64 as data to be output to the host computer:
h, the output of the ``Mi'' buffer 56 is stored in the MO buffer 63. Furthermore, although not shown in the figure, control information indicating the end of the page is stored.
Moバッファの内容がその’24 F’IFO64へ送
られるように働きかける0以上の編集動作により、FI
FOにバッファされた固定長データは順次ホストコンピ
ュータへ出力される。Zero or more edit operations cause the contents of the Mo buffer to be sent to its '24 F'
The fixed length data buffered in the FO is sequentially output to the host computer.
以上の如く、不発明によれば原画像データ及び可変長コ
ードデータを各ビット並列に一括処理することにより高
速な符号化及び編集が可能となり、処理時間の短縮が可
能となる利点がある。As described above, according to the present invention, each bit of original image data and variable-length code data is processed in parallel in batches, thereby enabling high-speed encoding and editing, which has the advantage of shortening processing time.
第1図は本発明の原理全示す概略ブロック図、第2図は
第1図のエンコード手段のブロック図、第3図は第2図
の色変化位置検出手段の回路例全示す図、第4図は第2
図の属性検出手段の処理手順を示すフローチャート、第
5図は第2図の属性検出手段かつ出力される属性情報の
1例を示す図。
第6図は第1図の偏集手段の処理手順を示すフローチャ
ート、第7図は編集手段の具体的ブロック図である。
主要部分の符号の説明
1・・・・・ホストコンピュータ、2・・・・・・イメ
ージ圧縮装置、4 ・・・・エンコード手段、8・・・
・・・偏集手段。
第74 圀
卒6 図1 is a schematic block diagram showing the entire principle of the present invention, FIG. 2 is a block diagram of the encoding means shown in FIG. 1, FIG. 3 is a diagram showing a complete circuit example of the color change position detection means shown in FIG. 2, and FIG. The figure is the second
FIG. 5 is a flowchart showing the processing procedure of the attribute detecting means shown in FIG. 2; FIG. 5 is a diagram showing an example of the attribute information output by the attribute detecting means of FIG. 2; FIG. 6 is a flowchart showing the processing procedure of the concentration means of FIG. 1, and FIG. 7 is a concrete block diagram of the editing means. Explanation of symbols of main parts 1...Host computer, 2...Image compression device, 4...Encoding means, 8...
...A means of bias. No. 74 Kokuso 6 Figure
Claims (1)
像の有する属性に層目した圧縮方式を用いて可変長コー
ドデータに変換する画像情報圧縮装置直において、前記
ディジタルテークのうち前記画像の所定数の画素に相当
するデータ群毎にこれら各群を一括処理して前記篇性を
表わす可変長コードデータとそのコード長情報とを発生
するエンコード手段と、前記エンコード手段により連続
的に発生される複数の前記b」変長コードテークを前記
コード長情報を用いて複数の互いに分割された固定長テ
ークとして出力すべく、これ等相前後する可変長コード
テークのうち先行するデータの末尾にそれに統くテーク
の少くとも1部全付加するように動作する編集手段とを
含む画像情報圧縮装置。Directly at an image information compression device that converts digital takes obtained by scanning a predetermined image into variable-length code data using a compression method layered according to the attributes of the image, a predetermined number of the images among the digital takes are converted into variable length code data. encoding means for collectively processing each data group corresponding to each pixel to generate variable-length code data representing the character and its code length information; In order to output the variable-length codetakes of ``b'' as a plurality of mutually divided fixed-length takes using the code length information, merge them into the end of the preceding data among these successive variable-length codetakes. and editing means operable to add all of at least one part of the take.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP18820483A JPS6080370A (en) | 1983-10-07 | 1983-10-07 | Picture information compressor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP18820483A JPS6080370A (en) | 1983-10-07 | 1983-10-07 | Picture information compressor |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPS6080370A true JPS6080370A (en) | 1985-05-08 |
Family
ID=16219592
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP18820483A Pending JPS6080370A (en) | 1983-10-07 | 1983-10-07 | Picture information compressor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6080370A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS61238830A (en) * | 1985-04-17 | 1986-10-24 | Toray Ind Inc | High-performance crosslinked polyethylene resin foam |
| JPS6354067A (en) * | 1986-08-22 | 1988-03-08 | Fuji Xerox Co Ltd | Picture coding device and picture decoding device |
| JPS6461173A (en) * | 1987-08-31 | 1989-03-08 | Nec Corp | Pipeline coding circuit |
-
1983
- 1983-10-07 JP JP18820483A patent/JPS6080370A/en active Pending
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS61238830A (en) * | 1985-04-17 | 1986-10-24 | Toray Ind Inc | High-performance crosslinked polyethylene resin foam |
| JPS6354067A (en) * | 1986-08-22 | 1988-03-08 | Fuji Xerox Co Ltd | Picture coding device and picture decoding device |
| JPS6461173A (en) * | 1987-08-31 | 1989-03-08 | Nec Corp | Pipeline coding circuit |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5287193A (en) | Parallel processing architecture of run-length codes | |
| US5467413A (en) | Method and apparatus for vector quantization for real-time playback on low cost personal computers | |
| US20090010533A1 (en) | Method and apparatus for displaying an encoded image | |
| EP0040025A1 (en) | Real time data compression/decompression scheme for facsimile transmission system | |
| US5751860A (en) | Method for compressing and decompressing digital image data | |
| JPS60146326A (en) | Image conversion from bit map to run display | |
| JP2924964B2 (en) | Image information encoding device, image information decoding device, and image information encoding / decoding device | |
| US6094151A (en) | Apparatus and method for finite state machine coding of information selecting most probable state subintervals | |
| US5048104A (en) | Method and apparatus for transposing image data | |
| CN112118449B (en) | A method and device for image compression and decompression | |
| JPH09121170A (en) | Method and device for performing compression and restorationof digital picture signal | |
| JP3119025B2 (en) | Encoding device and decoding device | |
| US5760787A (en) | Data storage format | |
| JPS6360952B2 (en) | ||
| US6333996B1 (en) | Handwriting code processing device enabling reduction in load on processing of handwriting input device and processing method thereof | |
| JP3209396B2 (en) | Image data compression method and apparatus | |
| JP2687926B2 (en) | Code decoder | |
| JP2556047B2 (en) | Image information coding device | |
| JP2877244B2 (en) | Encoding device | |
| JPH0936749A (en) | Encoding / decoding apparatus and encoding method used therefor | |
| JPH06225166A (en) | Coding and decoding device | |
| JP3227237B2 (en) | Encoding device | |
| JP3293382B2 (en) | Data compression device and data decompression device | |
| JP3203352B2 (en) | Data decompression processor | |
| JP2798025B2 (en) | Video coding method and apparatus |