JPS6333350B2 - - Google Patents
Info
- Publication number
- JPS6333350B2 JPS6333350B2 JP52132346A JP13234677A JPS6333350B2 JP S6333350 B2 JPS6333350 B2 JP S6333350B2 JP 52132346 A JP52132346 A JP 52132346A JP 13234677 A JP13234677 A JP 13234677A JP S6333350 B2 JPS6333350 B2 JP S6333350B2
- Authority
- JP
- Japan
- Prior art keywords
- encoding
- image data
- encoded
- line
- data
- 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.)
- Expired
Links
- 238000000034 method Methods 0.000 claims description 43
- 239000000872 buffer Substances 0.000 claims description 35
- 238000010586 diagram Methods 0.000 description 16
- 238000001514 detection method Methods 0.000 description 3
- 238000000605 extraction Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000013144 data compression Methods 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 230000002596 correlated effect Effects 0.000 description 1
- 230000000875 corresponding effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
Landscapes
- Image Processing (AREA)
- Storing Facsimile Image Data (AREA)
Description
【発明の詳細な説明】
本発明は、文字、パターンなどの画像格納装置
特に符号化された画像データの格納装置に関する
ものである。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an image storage device for characters, patterns, etc., and particularly to a storage device for encoded image data.
従来、画像処理の分野で取り扱われる画像デー
タは、処理の容易さからほとんどがデイジタルデ
ータである。データが二次元構造をもちしかも濃
度情報をもつため、その構成要素であるビツトの
数はかなりのものになる。さらに、画像に規模、
解像度、階調度などに高度なそのを求めるとビツ
ト数は、飛躍的に増大する。したがつてこのよう
な画像データの格納には、容量の大きな格納装置
が必要となる。それには現在ある磁気デイスク、
磁気テープ等が供されるわけであるが、画像の格
納枚数の増大をはかりアクセス時間の短縮を求め
れば画像データの情報密度をあげることを考えね
ばならない。そこで現在画像伝送装置、特にフア
クシミリの分野で画像データの伝送量を軽減する
ために用いられているデータ圧縮を情報密度向上
に利用することが考えられる。 Conventionally, most image data handled in the field of image processing has been digital data because of ease of processing. Since the data has a two-dimensional structure and contains density information, the number of bits that make up the data is quite large. In addition, the image has a scale,
When higher resolution and gradation are required, the number of bits increases dramatically. Therefore, storing such image data requires a storage device with a large capacity. There are currently existing magnetic disks,
Although magnetic tapes and the like are used, if the number of stored images is increased and the access time is shortened, it is necessary to consider increasing the information density of image data. Therefore, it is conceivable to utilize data compression, which is currently used in image transmission devices, particularly in the field of facsimile, to reduce the amount of image data transmitted, to improve information density.
ここで言うデータ圧縮には、幾つかの符号化方
式が開発されているが、その中でも複数のライン
に相関のある符号化方式が、特に単調なパターン
の画像に対する圧縮率の面で非常に有効であり、
この方式を利用すれば情報密度の高に画像データ
の格納が可能となる。ところがこの方式はライン
単位で完結する符号化方式ではないため一度符号
化された画像を部分的に切出すなどの処理を行な
いたい時直接関係のない画像データまでも多量に
復号化しなければならず、情報密度は高くなつた
が、処理の面で極めて効率の悪くなるという欠点
が生じた。 Several encoding methods have been developed for the data compression mentioned here, but among them, the encoding method that correlates multiple lines is particularly effective in terms of compression rate for images with monotonous patterns. and
By using this method, it is possible to store image data with high information density. However, this method is not an encoding method that completes line by line, so when you want to perform processing such as cutting out parts of an image that has been encoded, you have to decode a large amount of image data that is not directly related. Although the information density has increased, the processing efficiency has become extremely low.
本発明の目的は、以上述べた欠点を除去し、高
い情報密度を有しているにもかかわらず、アクセ
ス時間が短く、効率のよい画像データの部分切り
出しの可能な符号化機能と格納機能を有する符号
化画像格納装置を提供することにある。 It is an object of the present invention to eliminate the above-mentioned drawbacks, to provide an encoding function and a storage function that allow for short access time and efficient partial extraction of image data despite having a high information density. An object of the present invention is to provide a coded image storage device having the following features.
本発明によれば、二次元画像を走査して得られ
た画像濃度データを2値化してライン単位で直列
に出力する画像入力手段と、前記画像入力装置に
より得られる画像データを符号化方式選択信号に
より1ラインで完結する符号化方式と複数のライ
ンに相関のある符号化方式のいずれか一方の方式
を選択し、符号化する符号化装置と、前記符号化
装置により得られる画像データを、先頭ラインか
ら順にnラインずつのセグメントに分割して、各
セグメントの最初のラインは1ラインで完結する
符号化方式により符号化を行い、残りのラインは
セグメント単位で複数のラインに相関のある符号
化方式により符号化できるように前記符号化装置
に、符号化方式選択信号を出力する符号化制御装
置と、前記符号化装置より得られた圧縮画像デー
タの一部又は全面をバツフアメモリに格納する一
方、格納された圧縮画像データ上で、1ラインで
完結する符号化方式により符号化されたラインデ
ータの先頭位置、即ち各セグメントの先頭位置を
セグメント順にバツフアメモリに格納し、アドレ
ステーブルを作成する格納制御装置と、圧縮画像
データおよびアドレステーブルを一活して格納し
ておく格納装置を有し、圧縮画像データを復号化
する際、1ラインで完結する符号化のされたライ
ンであれば、どのラインの先頭からでも復号化が
できるデータ構造の作成が可能である。 According to the present invention, image input means binarizes image density data obtained by scanning a two-dimensional image and outputs the binarized data serially line by line, and an encoding method is selected for the image data obtained by the image input device. An encoding device that selects and encodes either an encoding method that completes in one line or an encoding method that correlates to multiple lines depending on the signal, and image data obtained by the encoding device, The first line of each segment is divided into segments of n lines in order, and the first line of each segment is encoded using a coding method that completes with one line, and the remaining lines are encoded using a code that correlates with multiple lines in each segment. an encoding control device that outputs an encoding method selection signal to the encoding device so that the encoding method can be encoded; and a device that stores part or all of the compressed image data obtained from the encoding device in a buffer memory. , Storage control that stores the start position of line data encoded using an encoding method that completes in one line, that is, the start position of each segment, in the buffer memory in segment order on the stored compressed image data, and creates an address table. When decoding compressed image data, which line is coded to be completed in one line? It is possible to create a data structure that can be decrypted even from the beginning.
次に図面を参照しながら本発明について説明す
る。以後、図面の信号線に付している番号は、そ
の信号線上の信号をも指しているものとして説明
する。 Next, the present invention will be explained with reference to the drawings. Hereinafter, the numbers attached to signal lines in the drawings will be explained as referring to the signals on the signal lines.
第1図にブロツク図を示す。画像入力装置1は
FSS、ITV等のイメージスキヤナーを用いること
ができ、走査された画像データが多値であれば、
イメージスキヤナーの位置に多値データを2値化
する回路を設ける。符号化装置2は画像入力装置
1からの直列画像データを、符号化制御回路5か
らの符号化方式選択信号により、1ラインで完結
する符号化方式(例えばランレングス符号化方
式)と複数のラインに相関のある符号化方式(例
えば逐次符号化方式)のいずれかの方式を選択し
て、符号化する装置である。符号化制御装置5は
あらかじめ指定された数nに基づいて、前記画像
入力装置1の出力である画像データをnラインず
つのセグメントに分割し、各セグメントの第1ラ
インには1ラインで完結する符号化方式を指定
し、残りのラインにはセグメント単位で複数のラ
インに相関のある符号化方式が指定できるような
符号化方式選択信号を生成する装置である。格納
制御装置3は符号化装置2からの符号化画像デー
タを格納制御装置3内のバツフアメモリに、一部
あるいは全面を格納する際、符号化方式を後述の
方法で検出し符号化画像データ上での1ラインで
完結する符号化データの先頭位置即ちセグメント
の先頭位置を記憶しアドレステーブルを作成する
装置であり、格納装置4は符号化画像データとア
ドレステーブルを一活して格納する装置である。 Figure 1 shows a block diagram. The image input device 1
An image scanner such as FSS or ITV can be used, and if the scanned image data is multivalued,
A circuit for binarizing multivalued data is provided at the location of the image scanner. The encoding device 2 converts the serial image data from the image input device 1 into an encoding method that completes in one line (for example, a run-length encoding method) and a plurality of lines according to the encoding method selection signal from the encoding control circuit 5. This is an apparatus that performs encoding by selecting one of the encoding methods (for example, sequential encoding method) that have a correlation with the data. The encoding control device 5 divides the image data output from the image input device 1 into segments each having n lines based on a pre-specified number n, and the first line of each segment is completed with one line. This is a device that generates an encoding method selection signal that specifies an encoding method and can designate, for the remaining lines, an encoding method that is correlated to a plurality of lines on a segment-by-segment basis. When the storage control device 3 stores part or all of the encoded image data from the encoding device 2 in the buffer memory within the storage control device 3, the storage control device 3 detects the encoding method using the method described later and performs the following on the encoded image data. This is a device that stores the start position of the encoded data that is completed in one line, that is, the start position of the segment, and creates an address table.The storage device 4 is a device that stores the encoded image data and the address table. .
本発明の詳細なブロツク説明に入る前に、本発
明により画像データが符号化、格納される手順並
びにデータ構造について実施例に即して説明を行
う。第2図にデータ構造を示す。第2図aに画像
入力装置1の出力であり原画に対応させて表示し
た原画像データ9の概念図、bに格納制御装置3
のメモリ内に二次元的に配置した圧縮画像データ
14の概念図、cに格納制御装置3のメモリ内の
アドレステーブル21の概念図を示す。 Before entering into a detailed block description of the present invention, the procedure and data structure by which image data is encoded and stored according to the present invention will be explained based on an embodiment. Figure 2 shows the data structure. FIG. 2a is a conceptual diagram of the original image data 9 that is output from the image input device 1 and is displayed in correspondence with the original image, and FIG.
Fig. 3c shows a conceptual diagram of the compressed image data 14 arranged two-dimensionally in the memory of , and c shows a conceptual diagram of the address table 21 in the memory of the storage control device 3.
原画像データ9を符号化する際、画像データ全
体をまとめて符号化するのではなく、あらかじめ
指定された数nに基づいて、nラインずつのセグ
メント10,11に分割して、セグメント単位で
符号化する方式をとる。 When encoding the original image data 9, instead of encoding the entire image data all at once, it is divided into segments 10 and 11 of n lines each based on a pre-specified number n, and encoded in segment units. We will adopt a method of converting
セグメント単位で取出された原画像データ9は
セグメント内のラインによつて次の2種類の符号
化方式を用いて符号化する。まず各セグメントの
第1ライン12,13はランレングス符号化方式
によつて符号化し、セグメントの残りのラインは
逐次符号化方式によつて符号化する。ここで言う
逐次符号化方式とは、原理的には画像の現走査線
である符号化ラインの黒ラン信号と前走査線であ
る参照ラインの黒ラン信号との連結状態を調べ、
それを符号化する方式である。この符号化方式と
しては例えば特願昭52−82247号(特開昭54−
17615号)明細書の画像符号化装置がある。 The original image data 9 extracted in segments is encoded using the following two types of encoding methods depending on the lines within the segment. First, the first lines 12 and 13 of each segment are encoded using a run-length encoding method, and the remaining lines of the segment are encoded using a sequential encoding method. The sequential encoding method mentioned here basically involves checking the connection state between the black run signal of the encoded line, which is the current scan line of the image, and the black run signal of the reference line, which is the previous scan line.
This is a method of encoding it. Examples of this encoding method include Japanese Patent Application No. 52-82247 (Japanese Patent Application Laid-open No.
No. 17615) There is an image encoding device in the specification.
このようにして符号化されたデータは、第2図
bに示すようになる。一般に符号化されたデータ
は、同じ長さのデータを符号化してもデータ内容
によつて長さが変るので、符号化されたデータ上
では、各セグメント15,16の先頭アドレス1
7,19即ちランレングス符号化されたライン1
8,20の先頭アドレス17,19には規則性が
ない。そこで符号化の際に各セグメントの先頭ア
ドレス17,19をアドレステーブル21に、各
セグメント先頭アドレス格納装置22,23に記
憶しておき、原画像データ9のセグメント10,
11と、圧縮画像データ14のセグメント15,
16とを1対1に対応させるようにしている。し
たがつて圧縮画像データ14から部分画像を切出
す際には、原画像データ9において切出したい部
分画像の先頭ラインを含むセグメントが判れば圧
縮画像データ14において、該当セグメントの先
頭アドレス17,19をアドレステーブル21よ
り参照してくることにより、そのアドレスから復
号化を開始し必要なライン数の復号化が完了すれ
ばそこで復号化を打り切れば必要なデータの効率
の良い切出しができる。 The data encoded in this way becomes as shown in FIG. 2b. Generally, the length of encoded data changes depending on the data content even if data of the same length is encoded.
7,19 or run-length encoded line 1
There is no regularity in the first addresses 17 and 19 of 8 and 20. Therefore, during encoding, the start addresses 17 and 19 of each segment are stored in the address table 21 and the segment start address storage devices 22 and 23, and the segments 10 and 19 of the original image data 9 are
11 and segment 15 of compressed image data 14,
16 in one-to-one correspondence. Therefore, when cutting out a partial image from the compressed image data 14, if the segment containing the first line of the partial image to be cut out is known in the original image data 9, the starting addresses 17 and 19 of the corresponding segment in the compressed image data 14 are determined. By referring to the address table 21, decoding is started from that address, and when decoding of the required number of lines is completed, decoding is stopped there, allowing efficient extraction of the necessary data.
次に本発明の実施例の1つについて説明する。 Next, one embodiment of the present invention will be described.
第3図に符号化装置2のブロツク図を示す。画
像入力装置1によつて走査された画像は、2値の
原画像データ9として符号化装置2内のランレン
グス符号化回路30と逐次符号化回路31の両方
に、ライン毎直列に入力される。各符号化回路3
0,31は画像入力装置1からの入力クロツク信
号102に同期して同時に動作し、原画像データ
9を符号化する。符号化回路はそれぞれ符号化速
度が異なるため、その出力(符号化画像データ3
01,311)は、符号化回路出力クロツク信号
302,312に同期して、一度それぞれのバツ
フア32,33に取り込まれ、両バツフア共に1
ライン分の符号化画像データが格納された後、次
段の選択回路34に制御が移る。 FIG. 3 shows a block diagram of the encoding device 2. The image scanned by the image input device 1 is serially input line by line to both the run length encoding circuit 30 and the sequential encoding circuit 31 in the encoding device 2 as binary original image data 9. . Each encoding circuit 3
0 and 31 operate simultaneously in synchronization with the input clock signal 102 from the image input device 1 to encode the original image data 9. Since each encoding circuit has a different encoding speed, its output (encoded image data 3
01, 311) are once taken into the respective buffers 32, 33 in synchronization with the encoding circuit output clock signals 302, 312, and both buffers are 1
After the encoded image data for the line is stored, control is transferred to the next stage selection circuit 34.
ここで、第4図のブロツク図によりバツフア3
2,33の詳細を、ランレングス符号化回路バツ
フア32を例にとつて説明する。ランレングス符
号化バツフア32は、いわゆるバツフアメモリ
(シフトレジスター35)と、その他の制御部か
ら成つている。 Here, according to the block diagram of FIG.
The details of 2 and 33 will be explained by taking the run-length encoding circuit buffer 32 as an example. The run-length encoding buffer 32 consists of a so-called buffer memory (shift register 35) and other control sections.
ランレングス符号化回路30の出力であるラン
レングス符号化画像データ301は、ランレング
ス符号化回路出力クロツク信号302に同期して
(ORゲート39を介して)、シフトレジスター3
5に取り込まれる。このシフトレジスター35に
は、前述したように符号化画像データを1ライン
単位で取り込むが、その制御は直列に連続する符
号化画像データからライン区切り信号を検出して
行つている。 The run-length encoded image data 301, which is the output of the run-length encoder 30, is transferred to the shift register 3 in synchronization with the run-length encoder output clock signal 302 (via the OR gate 39).
It will be incorporated into 5. The shift register 35 takes in encoded image data line by line as described above, and its control is performed by detecting a line separation signal from the serially continuous encoded image data.
具体的には、符号化画像データ中に、例えば、
0(零)がk個連続すればライン区切り符号であ
るとあらかじめ符号化のとき決めておけばシフト
レジスター35の下位kビツト(入力側kビツ
ト)をk個のインバーター(41―1,41―
2,41―3,…,41―k)とANDゲート4
2を用いてライン区切りを検出(ライン同期信号
421)することができ、そのライン同期信号4
21を用いて、ランレングス符号化回路30に動
作停止信号325を出力し、1ライン分の符号化
画像データをシフトレジスター35へ格納するこ
とができる。ところが、1ライン分の符号化画像
データは、原画像データの内容によつて長さが異
なるため、シフトレジスター35の出力側にさま
ざまな長さの空ビツトができる。出力時に不要の
ビツトを出力しないために、この空ビツト分をシ
フトしなければならない。そのためには、前記ラ
イン同期信号421でフリツプフロツプ37をセ
ツトすることにより、発振器38を動作させ、そ
のクロツク信号381でシフトレジスター35の
内容をシフトすればよい。ここでシフト数はカウ
ンター36にあらかじめ符号化画像データ数即ち
データ入力時のシフト数を計数しておき、その補
数を用いて行つている。 Specifically, in the encoded image data, for example,
If it is decided in advance at the time of encoding that k consecutive zeros are a line delimiter code, the lower k bits of the shift register 35 (k bits on the input side) can be transferred to k inverters (41-1, 41-1).
2, 41-3,..., 41-k) and AND gate 4
2 can be used to detect a line break (line synchronization signal 421), and the line synchronization signal 4
21 can be used to output an operation stop signal 325 to the run-length encoding circuit 30 and store one line of encoded image data in the shift register 35. However, since the length of one line of encoded image data varies depending on the content of the original image data, empty bits of various lengths are generated on the output side of the shift register 35. In order not to output unnecessary bits during output, these empty bits must be shifted. To do this, the flip-flop 37 is set by the line synchronization signal 421 to operate the oscillator 38, and the clock signal 381 is used to shift the contents of the shift register 35. Here, the number of shifts is determined by counting the number of encoded image data, that is, the number of shifts at the time of data input, in advance in the counter 36, and using the complement of the number.
本バツフア32と次段の選択回路34との間で
やりとりする信号としては、符号化画像データ3
21、読出しクロツク341の他符号化画像デー
タ数322そのストローブ信号323およびライ
ン格納終了信号324があり、前段の画像入力装
置1との間には走査無効信号326がある。この
走査無効信号326は、画像入力装置1が現走査
線より走査を進めないようにし、データ出力を禁
じる信号である。 The signals exchanged between the main buffer 32 and the next stage selection circuit 34 include encoded image data 3
21, a readout clock 341, the number of encoded image data 322, a strobe signal 323, and a line storage end signal 324, and a scanning invalidation signal 326 between it and the preceding image input device 1. This scanning invalidation signal 326 is a signal that prevents the image input device 1 from advancing scanning beyond the current scanning line and prohibits data output.
以上述べたランレングス符号化回路バツフア3
2の動作は、そのまま逐次符号化回路バツフア3
3にもあてはまる。 Run-length encoding circuit buffer 3 described above
The operation of 2 is the same as that of the sequential encoding circuit buffer 3.
This also applies to 3.
第5図を用い、前記2つの符号化回路バツフア
32,33に、1ライン分の符号化画像データが
格納された後の選択回路34の動作を説明する。
符号化回路バツフア32,33からの2種のライ
ン格納終了信号324,334は各々フリツプフ
ロツプ47,48をセツトし、その出力信号と符
号化制御装置5からの符号化方式選択信号521
とANDゲート42がとられて選択された方(今、
それをランレングス符号化方式として話をすすめ
る)の発振器43を動作させる。 The operation of the selection circuit 34 after one line of encoded image data is stored in the two encoding circuit buffers 32 and 33 will be described with reference to FIG.
The two types of line storage completion signals 324 and 334 from the encoding circuit buffers 32 and 33 set flip-flops 47 and 48, respectively, and the output signals and the encoding method selection signal 521 from the encoding control device 5 are sent to flip-flops 47 and 48, respectively.
AND gate 42 is taken and the selected one (now,
This is referred to as a run-length encoding method).
その出力である読出しクロツク信号341は、
符号化回路バツフア32に送られ、選択された方
の1ライン分符号化画像データ321を要求す
る。その際符号化画像データの取り込み終了はあ
らかじめ符号化装置2より送られたデータ数32
2を、ストローブ信号323でラツチしてあるカ
ウンター44で読出しクロツク341を計数する
ことにより、桁下げ信号441を出力し、フリツ
プフロツプ47をリセツトし発振器43を発振停
止させることにより行なう。 Its output, the read clock signal 341, is
It is sent to the encoding circuit buffer 32 and requests the encoded image data 321 for one line of the selected one. At this time, the end of importing the encoded image data is 32, which is the number of data sent from the encoding device 2 in advance.
2 is performed by counting the readout clock 341 with the counter 44 latched by the strobe signal 323, outputting a carry down signal 441, resetting the flip-flop 47, and stopping the oscillator 43 from oscillating.
前述の符号化方式選択信号521は、符号化回
路バツフア32,33からの2種のライン格納終
了信号324,334のOR(ORゲート49)を
とり(格納終了の遅い方を検出)、この信号を基
にして符号化制御装置5が発生する信号である。 The above-mentioned encoding method selection signal 521 is obtained by ORing (OR gate 49) the two types of line storage end signals 324 and 334 from the encoding circuit buffers 32 and 33 (detecting the later end of storage). This is a signal generated by the encoding control device 5 based on .
本選択回路34から出る符号化画像データ34
3は回路内ではランレングス符号化回路バツフア
32と逐次符号化回路バツフア33の選択した方
に読出しクロツクを送り、要求した方しか符号化
画像データを出力しない方式にしているため、単
に2つの符号化回路バツフア32,33の出力3
21,331をORしているにすぎない。選択回
路出力クロツク344も同様である。 Encoded image data 34 output from the main selection circuit 34
3 is a system in which the read clock is sent to the selected one of the run-length encoding circuit buffer 32 and the sequential encoding circuit buffer 33, and only the one that requests it outputs the encoded image data. Output 3 of conversion circuit buffers 32 and 33
It's just ORing 21,331. The same goes for the selection circuit output clock 344.
次に、第6図のブロツク図を用い、符号化制御
装置5について説明する。 Next, the encoding control device 5 will be explained using the block diagram of FIG.
本装置は2つのレジスター51,53と1つの
プログラムカウンター52とで符号化制御回路5
を構成し、前述のように符号化方式選択信号52
1を符号化装置2に出力する機能をもつ。プログ
ラム用レジスター51は、画像入力装置1から画
像開始信号103を受け取り、それをストローブ
信号としてあらかじめ指定されている符号化パラ
メーター(n:セグメント内のライン数)111
を取り込む。それによつてプログラムされたn進
カウンター52が符号化装置2からのライン格納
終了信号346をn個計数する毎に、即ち原画像
データのnライン毎にキヤリー信号を出力し、そ
れを符号化方式選択信号521としている。一般
にキヤリー信号はn進カウンターでn個のクロツ
クを計数し終つた時に出力されるため本回路のよ
うにn個のライン格納終了信号の先頭で出力する
ようにするには、レジスター53にあらかじめパ
ラメーター(n−1)112をセツトしておき、
それを画像入力装置1からの画像開始信号103
でn進カウンターに初期設定することによつて行
なつている。 This device has two registers 51 and 53 and one program counter 52, and an encoding control circuit 5.
and the encoding method selection signal 52 as described above.
1 to the encoding device 2. The program register 51 receives an image start signal 103 from the image input device 1, and uses it as a strobe signal for a prespecified encoding parameter (n: number of lines in a segment) 111.
Incorporate. Each time the n-ary counter 52 programmed thereby counts n line storage end signals 346 from the encoding device 2, that is, every n lines of original image data, it outputs a carry signal, and uses it in the encoding method. A selection signal 521 is used. Generally, the carry signal is output when the n-ary counter finishes counting n clocks, so in order to output it at the beginning of the n line storage end signal as in this circuit, the register 53 must be set in advance to the parameter. (n-1) 112 is set,
The image start signal 103 from the image input device 1
This is done by initializing the n-ary counter with .
次に、格納制御装置3について説明する。 Next, the storage control device 3 will be explained.
第7図に一実施例のブロツク図を示す。前記符
号化装置2からの符号化画像データ343は、ク
ロツク信号344によつてバツフアメモリ61に
書き込まれる。と同時にアドレステーブルを作成
するために2つのシフトレジスター55,56
(それぞれモードビツト検出用とデータ終了信号
用)にも入力される。モードビツト検出用シフト
レジスター55は符号化画像データがランレング
ス符号化データか逐次符号化データかを判別する
ためのもので、具体的には符号化画像データに0
(零)がk個連続したライン区切符号に続く2ビ
ツトが10であれば以下のデータをランレングス符
号化データ、11であれば以下のデータを逐次符号
化データとあらかじめ符号化のとき決めておけば
k+1個のインバーター(57―0,57―1,
…57―k)とANDゲート58,59を用いて
ランレングス符号化データの先頭検出信号591
が作成できる。この信号が出ると同時にバツフア
メモリ用アドレスカウンター62の内容をアドレ
ステーブル用バツフア63に格納することにより
符号化画像データ上のランレングス符号化データ
の先頭アドレス、即ちセグメントの先頭アドレス
が順次格納されたアドレステーブルが出来あが
る。以上のようにして作成されたバツフアメモリ
61内の符号化画像データとアドレステーブル用
バツフア63内のアドレステーブルはデータ終了
と共に順次格納装置4へ転送される。そのための
データ終了信号601は、符号化画像データに1
がl個連続すればデータ終了とあらかじめ符号化
の時決めておけば、データ終了用シフトレジスタ
ー56とANDゲート60を用いて作ることがで
きる。 FIG. 7 shows a block diagram of one embodiment. Encoded image data 343 from the encoding device 2 is written into the buffer memory 61 in response to a clock signal 344. At the same time, two shift registers 55 and 56 are used to create an address table.
(for mode bit detection and data end signal, respectively) are also input. The mode bit detection shift register 55 is used to determine whether encoded image data is run-length encoded data or sequentially encoded data.
If the two bits following a line separator code with k consecutive zeros are 10, the following data is run-length encoded data, and if it is 11, the following data is sequentially encoded data. If you install k+1 inverters (57-0, 57-1,
…57-k) and AND gates 58 and 59 to detect the start of run-length encoded data 591
can be created. At the same time as this signal is output, the contents of the buffer memory address counter 62 are stored in the address table buffer 63, so that the start address of the run-length encoded data on the encoded image data, that is, the address where the start addresses of the segments are sequentially stored. The table is completed. The encoded image data in the buffer memory 61 and the address table in the address table buffer 63 created as described above are sequentially transferred to the storage device 4 upon completion of the data. The data end signal 601 for this purpose is 1 for encoded image data.
If it is determined in advance at the time of encoding that the data is complete if l consecutive numbers of the data are consecutive, the shift register 56 for data termination and the AND gate 60 can be used.
格納装置4は前記データ終了信号601を受け
るとアドレステーブル要求クロツク702を出力
し、アドレステーブル631を取り込み、次に符
号化画像データ要求クロツク701を出力し、符
号化画像データ611を取り込む。 When the storage device 4 receives the data end signal 601, it outputs an address table request clock 702, takes in the address table 631, then outputs an encoded image data request clock 701, and takes in the encoded image data 611.
第8図に磁気テープ80を例にとつて格納装置
4に格納されたm番目とm+1番目のアドレステ
ーブル801,803とm番目とm+1番目の符
号化画像データ802,804を示す。 FIG. 8 shows m-th and m+1-th address tables 801 and 803 and m-th and m+1-th encoded image data 802 and 804 stored in the storage device 4 using the magnetic tape 80 as an example.
なお、前述の格納制御装置3は、他の実施例と
して計算機を用いることもできる。それはバツフ
アメモリを計算機の主記憶部に、その他の部分は
プログラム、あるいはインターフエースに対応さ
せることによつて実現できる。また格納装置4は
計算機の標準の補助記憶装置(磁気テープ、磁気
デイスク等)であればいずれも利用可能である。 In addition, the above-mentioned storage control device 3 can also use a computer as another embodiment. This can be achieved by associating the buffer memory with the main memory of the computer and the other parts with programs or interfaces. Further, the storage device 4 can be any standard auxiliary storage device (magnetic tape, magnetic disk, etc.) for computers.
また前述の格納制御装置3の中のバツフアメモ
リ61の容量は画像一枚分収容できるのが最適で
あるが、たとえ小さくても、データ終了信号60
1を例えばメモリがいつぱいになつたことを検出
する信号に置き換え、若干の制御部を加えるだけ
で同様の動作を行うことができる。 The capacity of the buffer memory 61 in the storage control device 3 described above is optimally large enough to accommodate one image, but even if it is small, the data end signal 61
A similar operation can be performed by simply replacing 1 with a signal that detects when the memory becomes full and adding a few control sections.
以上述べたように、本発明による符号化画像格
納装置は符号化された画像データに対して、部分
切出しのできる情報を付加する機能を有しており
符号化画像切出装置を用いれば、本発明により得
られた圧縮データに対して効率の良い部分画像の
切出しが可能である。 As described above, the encoded image storage device according to the present invention has the function of adding information that allows partial extraction to encoded image data. It is possible to efficiently cut out partial images from the compressed data obtained by the invention.
第1図は本発明の構成を示すためのブロツク
図、第2図a,b,cは本発明を利用した場合の
画像データの符号化、格納手順を示したデータ構
造の概念図、第3図は本発明の実施例の一部を成
し、画像データを符号化する符号化装置2を説明
するためのブロツク図、第4図は前記符号化装置
2の一部を成し、符号化回路のバツフアとなる符
号化回路バツフアを説明するためのブロツク図、
第5図は前記符号化装置2の一部を成し、2種の
符号化回路バツフア内の符号化画像データを選択
する選択回路を説明するためのブロツク図、第6
図は本発明の一実施例の一部を成し、符号化装置
を制御する符号化制御装置5を説明するためのブ
ロツク図、第7図は本発明の一実施例の一部を成
し、符号化装置より符号化画像データを受け取
り、アドレステーブルを作成し、格納装置に符号
化画像データとアドレステーブルを格納する格納
制御装置3を説明するためのブロツク図、第8図
は格納装置を磁気テープとした時のアドレステー
ブルと符号化画像データの格納形態の説明図であ
る。
なお図において、1…画像入力装置、2…符号
化装置、3…格納制御装置、4…格納装置、5…
符号化制御装置、6…画像、7…符号化画像デー
タ、8…符号化パラメータ、9…原画像データ、
10…原画像データ第1セグメント、11…原画
像データ第2セグメント、12…原画像データ第
1セグメント第1ライン、13…原画像データ第
2セグメント第1ライン、14…符号化画像デー
タ、15…符号化画像データ第1セグメント、1
6…符号化画像データ第2セグメント、17…符
号化画像データ第1セグメント先頭アドレス、1
8…符号化画像データ上での原画像データ第1セ
グメント第1ライン、19…符号化画像データ第
2セグメント先頭アドレス、20…符号化画像デ
ータ上での原画像データ第2セグメント第1ライ
ン、21…アドレステーブル、22…第1セグメ
ント先頭アドレス格納位置、23…第2セグメン
ト先頭アドレス格納位置、30…ランレングス符
号化回路、31…逐次符号化回路、32…ランレ
ングス符号化回路バツフア、33…逐次符号化回
路バツフア、34…選択回路、35…シフトレジ
スター、36…カウンター、37…フリツプフロ
ツプ、38…発振器、39,40…ORゲート、
41―1,41―2,……41―k…インバータ
ー、42…ANDゲート、43…発振器、44…
カウンター、45…発振器、46…カウンター、
47,48…フリツプフロツプ、49…ORゲー
ト、50…単安定マルチバイブレーター、51…
プログラム用レジスター、52…プログラマブル
カウンター、53…レジスター、55,56…シ
フトレジスター、57―0,57―1,……57
―k…インバータ、58,59…ANDゲート、
60…ANDゲート、61…符号化画像データ用
バツフアメモリ、62…アドレスカウンター、6
3…アドレステーブル用バツフア、64…アドレ
スレジスター、80…磁気テーブル、101…原
画像データ、102…原画像データ出力クロツ
ク、103…画像開始信号、111…符号化パラ
メーターn、112…符号化パラメーターn−
1、301…ランレングス符号化データ、302
…ランレングス符号化データ出力クロツク、31
1…逐次符号化データ、312…逐次符号化デー
タ出力クロツク、321…ランレングス符号化デ
ータ、322…ランレングス符号化データ1ライ
ンビツト数、323…322ストローブ信号、3
24…ランレングス符号化データライン格納終了
信号、325…ランレングス符号化停止信号、3
26…走査無効信号、331…逐次符号化デー
タ、332…逐次符号化データ1ラインビツト
数、333…332ストローブ信号、334…逐
次符号化データ格納終了信号、335…逐次符号
化停止信号、336…走査無効信号、341…ラ
ンレングス符号化データ読出しクロツク、342
…逐次符号化データ読出しクロツク、343…符
号化画像データ、344…符号化データ出力クロ
ツク、346…1ライン符号化画像データ格納終
了信号、361…シフト終了信号、381…シフ
トクロツク、421…ライン同期信号、441,
461…桁下げ信号、511…プログラムデー
タ、521…符号化方式選択信号、591…ラン
レングス符号化データ先頭検出信号、601…符
号化画像データ、631…アドレステーブル、7
01…符号化データ要求クロツク、702…アド
レステーブル要求クロツク、801…m番目のア
ドレステーブル、802…m番目の符号化画像デ
ータ、803…m+1番目のアドレステーブル、
804…m+1番目の符号化画像データをそれぞ
れ示す。
FIG. 1 is a block diagram showing the configuration of the present invention, FIGS. 2 a, b, and c are conceptual diagrams of the data structure showing the steps for encoding and storing image data when the present invention is used. The figure is a block diagram for explaining an encoding device 2 which constitutes a part of an embodiment of the present invention and which encodes image data. A block diagram for explaining an encoding circuit buffer which is a circuit buffer,
FIG. 5 is a block diagram for explaining a selection circuit forming a part of the encoding device 2 and selecting encoded image data in two types of encoding circuit buffers;
The figure forms part of an embodiment of the present invention, and is a block diagram for explaining the encoding control device 5 that controls the encoding device. , a block diagram for explaining a storage control device 3 that receives encoded image data from an encoding device, creates an address table, and stores the encoded image data and address table in a storage device. FIG. 3 is an explanatory diagram of an address table and a storage form of encoded image data when used as a magnetic tape. In the figure, 1...image input device, 2...encoding device, 3...storage control device, 4...storage device, 5...
Encoding control device, 6... Image, 7... Encoded image data, 8... Encoding parameter, 9... Original image data,
10...Original image data first segment, 11...Original image data second segment, 12...Original image data first segment first line, 13...Original image data second segment first line, 14...Encoded image data, 15 ...Encoded image data first segment, 1
6...Encoded image data second segment, 17...Encoded image data first segment start address, 1
8... Original image data first segment first line on encoded image data, 19... Encoded image data second segment start address, 20... Original image data second segment first line on encoded image data, 21...Address table, 22...First segment start address storage position, 23...Second segment start address storage position, 30...Run length encoding circuit, 31...Sequential encoding circuit, 32...Run length encoding circuit buffer, 33 ... Sequential encoding circuit buffer, 34... Selection circuit, 35... Shift register, 36... Counter, 37... Flip-flop, 38... Oscillator, 39, 40... OR gate,
41-1, 41-2,... 41-k... Inverter, 42... AND gate, 43... Oscillator, 44...
counter, 45... oscillator, 46... counter,
47, 48... flip-flop, 49... OR gate, 50... monostable multivibrator, 51...
Program register, 52...Programmable counter, 53...Register, 55, 56...Shift register, 57-0, 57-1,...57
-k...Inverter, 58, 59...AND gate,
60...AND gate, 61...Buffer memory for encoded image data, 62...Address counter, 6
3...Address table buffer, 64...Address register, 80...Magnetic table, 101...Original image data, 102...Original image data output clock, 103...Image start signal, 111...Encoding parameter n, 112...Encoding parameter n −
1, 301...Run length encoded data, 302
...Run length encoded data output clock, 31
1... Sequentially encoded data, 312... Sequentially encoded data output clock, 321... Run length encoded data, 322... Number of bits per line of run length encoded data, 323... 322 Strobe signal, 3
24...Run-length encoding data line storage end signal, 325...Run-length encoding stop signal, 3
26...Scanning invalid signal, 331...Sequentially encoded data, 332...Number of bits per line of sequentially encoded data, 333...332 strobe signal, 334...Sequentially encoded data storage end signal, 335...Sequentially encoded stop signal, 336...Scanning Invalid signal, 341... Run length encoded data read clock, 342
...Sequential encoded data read clock, 343...Encoded image data, 344...Encoded data output clock, 346...1 line encoded image data storage end signal, 361...Shift end signal, 381...Shift clock, 421...Line synchronization signal ,441,
461... Decrement signal, 511... Program data, 521... Encoding method selection signal, 591... Run length encoded data head detection signal, 601... Encoded image data, 631... Address table, 7
01...Encoded data request clock, 702...Address table request clock, 801...mth address table, 802...mth encoded image data, 803...m+1th address table,
804...m+1-th encoded image data are respectively shown.
Claims (1)
タを2値化してライン単位で直列に出力する画像
入力手段と、前記画像入力手段により得られる画
像データを符号化方式選択信号により、2つの符
号化方式である1ラインで完結する符号化方式と
複数のラインに相関のある符号化方式のいずれか
一方の方式を選択し圧縮符号化する符号化手段
と、前記画像入力手段により得られる画像データ
を、先頭ラインから順にnラインずつのセグメン
トに分割して各セグメントの最初のラインは1ラ
インで完結する符号化方式により符号化を行い、
残りのラインはセグメント単位で複数のラインに
相関のある符号化方式により符号化できるように
前記符号化装置に符号化方式選択信号を出力する
符号化制御手段と、前記符号化制御手段により得
られた圧縮画像データの中、前端あるいは後端か
らの連続するデータの一部または全部をバツフア
メモリに格納する一方、圧縮データ上で、1ライ
ンで完結する符号化方式により符号化されたデー
タの先頭位置、即ち各セグメントの先頭位置をそ
のセグメントに一対一に対応づけてバツフアメモ
リに格納しアドレステーブルを作成する格納制御
手段と、圧縮画像データおよびアドレステーブル
を一活して格納しておく格納手段を有することを
特徴とする符号化画像格納装置。 2 符号化装置として、ランレングス符号化回路
と、逐次符号化回路と、信号選択回路とを含み、
それぞれ入力画像データを符号化し、選択信号に
よりいずれか一方の符号化信号を出力する特許請
求の範囲第1項記載の符号化画像格納装置。[Scope of Claims] 1. Image input means that binarizes image density data obtained by scanning a two-dimensional image and outputs the binarized data serially line by line, and an encoding system for the image data obtained by the image input means. an encoding means for compressing and encoding the image by selecting one of two encoding methods, an encoding method that completes in one line and an encoding method that correlates with a plurality of lines, according to a selection signal; The image data obtained by the input means is divided into segments of n lines sequentially from the first line, and the first line of each segment is encoded using an encoding method that is completed in one line.
encoding control means for outputting an encoding method selection signal to the encoding device so that the remaining lines can be encoded by an encoding method having a correlation with the plurality of lines in units of segments; In the compressed image data, part or all of the continuous data from the front end or the rear end is stored in the buffer memory, while the start position of the data encoded by the encoding method that is completed in one line on the compressed data is stored in the buffer memory. That is, it has a storage control means for storing the start position of each segment in a buffer memory in a one-to-one correspondence with that segment to create an address table, and a storage means for storing the compressed image data and the address table. A coded image storage device characterized by: 2. The encoding device includes a run-length encoding circuit, a sequential encoding circuit, and a signal selection circuit,
2. The encoded image storage device according to claim 1, wherein each input image data is encoded and one of the encoded signals is outputted according to a selection signal.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP13234677A JPS5465416A (en) | 1977-11-02 | 1977-11-02 | Encoded picture storing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP13234677A JPS5465416A (en) | 1977-11-02 | 1977-11-02 | Encoded picture storing device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5465416A JPS5465416A (en) | 1979-05-26 |
| JPS6333350B2 true JPS6333350B2 (en) | 1988-07-05 |
Family
ID=15079187
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP13234677A Granted JPS5465416A (en) | 1977-11-02 | 1977-11-02 | Encoded picture storing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5465416A (en) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| SE448922B (en) * | 1980-10-21 | 1987-03-23 | Ibm Svenska Ab | METHOD FOR PROCESSING VIDEO DATA BY AN OPTICAL SIGN IDENTIFICATION SYSTEM WITH A CHARACTER IDENTIFICATION DEVICE IN AN OPTICAL DOCUMENT READER |
| JPS58212253A (en) * | 1982-06-03 | 1983-12-09 | Mitsubishi Electric Corp | Control circuit of picture data memory |
| JPS61176291A (en) * | 1985-01-31 | 1986-08-07 | Canon Inc | image processing system |
| JP2669432B2 (en) * | 1986-05-28 | 1997-10-27 | オリンパス光学工業株式会社 | Image data transfer device |
| JPH01248874A (en) * | 1988-03-30 | 1989-10-04 | Matsushita Graphic Commun Syst Inc | Picture information processing method |
-
1977
- 1977-11-02 JP JP13234677A patent/JPS5465416A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5465416A (en) | 1979-05-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US3895184A (en) | Facsimile system with buffered transmission and reception | |
| US4750212A (en) | Image processing method and apparatus therefor | |
| US4334246A (en) | Data decompressor circuit | |
| GB1594130A (en) | Image data resolution change apparatus | |
| US3521241A (en) | Two-dimensional data compression | |
| CA1291822C (en) | Method and apparatus for processing an image signal | |
| JPS6333350B2 (en) | ||
| JPS6326588B2 (en) | ||
| EP0469716B1 (en) | Image processing apparatus | |
| JPS6338152B2 (en) | ||
| JPS586343B2 (en) | Kahensousasasenmitsudoseigyohoushiki | |
| JPS6122499B2 (en) | ||
| JP2624659B2 (en) | Superimposed block decoding device | |
| JP2595900B2 (en) | Change point coordinate detection device for binary image data | |
| JPS61128678A (en) | Image information processing system | |
| GB2149997A (en) | Image processing method and apparatus therefore | |
| JPH03293867A (en) | Facsimile equipment | |
| JPS5949750B2 (en) | Variable scanning line density control method | |
| JPS6235775A (en) | Decoding device for image code | |
| JPS6132867B2 (en) | ||
| JPH0131830B2 (en) | ||
| JPS6342472B2 (en) | ||
| JPH0695729B2 (en) | MR encoding device | |
| JPS59190779A (en) | Facsimile equipment | |
| JPS61256868A (en) | Data processing system |