JPS6141466B2 - - Google Patents
Info
- Publication number
- JPS6141466B2 JPS6141466B2 JP2921377A JP2921377A JPS6141466B2 JP S6141466 B2 JPS6141466 B2 JP S6141466B2 JP 2921377 A JP2921377 A JP 2921377A JP 2921377 A JP2921377 A JP 2921377A JP S6141466 B2 JPS6141466 B2 JP S6141466B2
- Authority
- JP
- Japan
- Prior art keywords
- code
- run
- white
- run length
- length
- 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 4
- 238000006243 chemical reaction Methods 0.000 description 3
- 239000003086 colorant Substances 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Landscapes
- Compression, Expansion, Code Conversion, And Decoders (AREA)
- Reduction Or Emphasis Of Bandwidth Of Signals (AREA)
Description
【発明の詳細な説明】
(1) 発明の利用分野
本発明は、ランレングスを主体とするフアクシ
ミリ符号化方式などの改良に関するものである。DETAILED DESCRIPTION OF THE INVENTION (1) Field of Application of the Invention The present invention relates to improvements in facsimile encoding systems mainly based on run lengths.
(2) 従来技術
フアクシミリのランレングス符号化方式には各
種の方式が提案されているが、一つの分類として
開放型と閉鎖型に分けられる。前者は、たとえば
公知のワイヤ符号やB符号の如く、ある規則に従
つていくらでも長いランが表現できる符号系であ
る。後者は、あらかじめ定められた長さまでは表
現できるがそれ以上は定義できない符号体系であ
つて、たとえば、モデイフアイドハフマン符号が
それに当る。後者にあつては走査線にそれ以上の
画素がある場合には適用できないという問題があ
つた。(2) Prior Art Various types of facsimile run-length encoding systems have been proposed, but they can be classified into open types and closed types. The former is a code system, such as the well-known wire code or B code, that can express any long run according to certain rules. The latter is a code system that can express up to a predetermined length but cannot define anything beyond that, such as a modified Huffman code. The latter method had a problem in that it could not be applied when there were more pixels in the scanning line.
(3) 発明の目的
本発明は、これを同じ符号体系の範囲で、いか
に長くとも適用できるようにすることを目的とす
るものである。(3) Purpose of the invention The purpose of the present invention is to enable this to be applied within the same coding system for any length of time.
(4) 発明の総括説明
第1図は従来の公知の一般的なランレングス符
号化フアクシミリの構成を示すものである。イメ
ージセンサ1から得られた画像信号はすなわち、
白黒レベルに対応する2値レベルの信号は計数回
路2においてランレングスを計数する。そして符
号変換部3において所定の符号(表現し得るラン
レングスの上限があるような符号)に変換する。
このとき、前述のモデイフアイドハフマン符号の
場合には、ROM(読出専用記憶装置)4を索表
することによつて行なわれる。この結果は送信部
5に送られ伝送される。このとき、所定の長さよ
り長いときには前述の如く符号体系から符号化が
不可能になる。これを解決するため、黒あるいは
白のようなある所定の状態の継続(ラン)が、表
現し得る符号より長い場合、そのランを分割して
符号化し、その分割して符号化された2つの符号
の間に他の状態(すなわち上記ある所定の状態が
黒であるとき、他の状態は白である)がランが0
存在することを表わす符号を挿入するようにした
ものである。(4) General description of the invention FIG. 1 shows the configuration of a conventional, well-known general run-length encoding facsimile. The image signal obtained from the image sensor 1 is, in other words,
A counting circuit 2 counts the run length of the binary level signal corresponding to the black and white level. Then, the code converter 3 converts it into a predetermined code (a code that has an upper limit on the run length that can be expressed).
At this time, in the case of the modified Huffman code described above, this is done by searching the ROM (read-only storage device) 4. This result is sent to the transmitter 5 and transmitted. At this time, if the length is longer than a predetermined length, encoding becomes impossible due to the encoding system as described above. To solve this problem, when the continuation (run) of a certain predetermined state such as black or white is longer than the code that can be represented, the run is divided and encoded, and the two divided and encoded If the other states (i.e. when the above given state is black, the other states are white) between the signs run 0
A code is inserted to indicate that it exists.
たとえば、白の状態のランレングスが1800であ
ることを従来のモデイフアイドハフマン符号
(MH符号)で表わそうとすると、従来のMHでは
表現し得るランレングスの最大値は1728+63であ
るから、上記1800を1つの符号で表わすことはで
きない。 For example, if we try to express the run length of the white state as 1800 using a conventional modified Huffman code (MH code), the maximum value of the run length that can be expressed using conventional MH is 1728 + 63, so The above 1800 cannot be represented by one code.
そこで本発明によれば、この白の1800を(白)
1728+(黒)0+(白)72と表わす。これは白M
(1728)+白T(0)+黒T(0)+白M(64)+白
T(8)と表わされる。ここでMはメイクアツプ
(Make up)符号、Tはターミネイテイング
(Terminating)符号語である。これを符号で表
わすと
と符号化される。 Therefore, according to the present invention, this white 1800 (white)
It is expressed as 1728 + (black) 0 + (white) 72. This is white M
(1728)+white T(0)+black T(0)+white M(64)+white T(8). Here, M is a make up code and T is a terminating code word. Expressing this with a sign is encoded as
(5) 実施例
以下、本発明を実施例を参照して詳細に説明す
る。(5) Examples Hereinafter, the present invention will be explained in detail with reference to examples.
本発明の実施例では、前記符号変換回路3と
ROM4の間に継続の分割のための回路を挿入す
ることによつて前記の問題点を解決している。 In the embodiment of the present invention, the code conversion circuit 3 and
The above problem is solved by inserting a circuit for continuation division between the ROMs 4.
すなわち、計数結果は、従来の如く直ちにこれ
でROMを索表するのではなく、一且引算回路6
において、既定最大数N(ここでは国際規格の
1728とする)と比較する。この結果は、判定回路
7に加えられ、負ならば“1”、正ならば“0”
という出力に変換される。これは引算回路の
MSB(最大桁)に一致する。ただし引算結果0
は負に含める。 In other words, the counting results are not immediately retrieved from the ROM as in the conventional method, but instead are stored in the subtraction circuit 6.
, the default maximum number N (here, the international standard
1728). This result is added to the judgment circuit 7, and if it is negative, it is "1", and if it is positive, it is "0".
is converted to the output. This is the subtraction circuit
Matches the MSB (most significant digit). However, the subtraction result is 0
is included in the negative.
もし負ならば、すなわち、1728より等しいか小
さいときには既定の符号体系で符号化できるの
で、そのままゲート8を経てROM4を索表す
る。 If it is negative, that is, if it is equal to or smaller than 1728, it can be encoded using the predetermined encoding system, so it passes through gate 8 and searches for ROM 4 as it is.
一方、もし正なら、すなわち、これの分割を行
なう。このため、まず、“1728”という値のみを
ゲート9を経てROM4に送る。ついで遅延素子
10により遅延した信号により“0”というラン
レングス結果をゲート11を経てROMに送り、
最後に遅延素子12を経て引算回路の結果を
ROMに送る。ここで、0というランレングス結
果は、反対の色、すなわち、今符号化しようとす
るランが白なら黒に対応するものであり、モデイ
フアイドハフマン符号のように白、黒が別符号の
場合にはこの情報を添えて別の表から索表するこ
とが必要である。 On the other hand, if it is positive, then we do this division. Therefore, first, only the value "1728" is sent to the ROM 4 via the gate 9. Next, the run length result of "0" is sent to the ROM via the gate 11 by the signal delayed by the delay element 10.
Finally, the result of the subtraction circuit is passed through the delay element 12.
Send to ROM. Here, the run length result of 0 corresponds to the opposite color, that is, if the run to be encoded is white, it corresponds to black, and if white and black are different codes as in modified Huffman codes, It is necessary to add this information and look it up from another table.
以上のようにしてROMを索表した結果は順次
符号変換回路3へ送られ、伝送される。 The results of searching the ROM as described above are sequentially sent to the code conversion circuit 3 and transmitted.
受信部においては、特に以上のようなことによ
る変更はなく、そのまま復号化すればよい。 In the receiving section, there is no particular change due to the above, and the data can be decoded as is.
さて、以上の構成には、次のような各種の変形
が考えられる。 Now, the following various modifications can be considered to the above configuration.
(1) ランレングスの最大値が既定最大数Nの2倍
以上に大きくなるようなフアクシミリ装置にお
いては、上記の操作を2度以上繰返せばよい。(1) For facsimile devices in which the maximum run length value is twice or more the predetermined maximum number N, the above operation may be repeated two or more times.
(2) 本発明の実施例では、符号変換部3とROM
4の間で行なつたが、計数部2であらかじめ本
発明の実施例の如くなるように構成してもよ
い。(2) In the embodiment of the present invention, the code conversion unit 3 and the ROM
4, the counting section 2 may be configured in advance as in the embodiment of the present invention.
(3) 国際規格のモデイフアイドハフマン符号で
は、たとえば白の場合、1728は17ビツトで表現
されるが、1666は10ビツトである。したがつ
て、場合によつては、1728より長いランを1728
とその余りとして表現せず、1666とその余りと
して表現することも考えられよう。ただし、回
路増はまぬかれない。(3) In the international standard modified Huffman code, for example, in the case of white, 1728 is expressed in 17 bits, but 1666 is expressed in 10 bits. Therefore, in some cases, runs longer than 1728
Instead of expressing it as 1666 and its remainder, it might be possible to express it as 1666 and its remainder. However, an increase in circuits cannot be avoided.
(4) フアクシミリに限らず、状態の継続時間を符
号化する方式全般に適用可能である。(4) It is applicable not only to facsimile but also to any method that encodes the duration of a state.
(5) 本発明は、必要意義は薄いが原理的には開放
型の符号体系にも適用可能である。これは、た
とえば受信部における復号器のレジスタのビツ
ト数に制限がある場合に有効であろう。(5) The present invention can also be applied to an open code system in principle, although it is not necessarily significant. This may be useful, for example, if the number of bits in the decoder register in the receiving section is limited.
本発明では国際規格における正規の最大値N
=1728の場合を述べたが、この国際規格におい
ても1728+63=1791までは表現可能である。 In the present invention, the normal maximum value N in the international standard
= 1728, but even in this international standard, it is possible to express up to 1728 + 63 = 1791.
したがつてN=1792と考えて構成することも
同様に可能である。 Therefore, it is also possible to consider N=1792.
(6) まとめ
以上説明した如く、本発明によれば、閉鎖型
の符号系を使用してこれより長いランプの可能
性を有する装置のランレングスを符号化できる
点、極めて有効である。特に、A4版のみでな
くB4版などの大きな文書を扱う場合、あるい
は解像度が増加した場合など実用に供してすこ
ぶる効果は大きい。(6) Summary As explained above, the present invention is extremely effective in that a closed code system can be used to encode the run length of a device that has the possibility of a longer lamp. This is particularly effective in practical applications, such as when handling large documents such as not only A4 size but also B4 size, or when the resolution has increased.
第1図は、従来のランレングスス符号化フアク
シミリ装置の構成ブロツク図である。第2図は、
本発明の実施例におけるランの分割ならびに反対
色の挿入を行なうための回路構成を示すものであ
る。
1……イメージセンサ、2……計数回路、3…
…符号変換部、4……ROM、5……送信部、6
……引算回路、7……判定回路、8,9,11,
13……ゲート、10……遅延素子。
FIG. 1 is a block diagram of a conventional run-length encoding facsimile apparatus. Figure 2 shows
3 shows a circuit configuration for dividing a run and inserting opposite colors in an embodiment of the present invention. 1... Image sensor, 2... Counting circuit, 3...
...Code converter, 4...ROM, 5...Transmitter, 6
...Subtraction circuit, 7...Judgment circuit, 8, 9, 11,
13...gate, 10...delay element.
Claims (1)
得るランレングスの上限がある符号で符号化する
方式において、一方のレベルの1つのランレング
スを分割し、その分割点に他のレベルの信号のラ
ンレングスが零である符号を挿入して符号化する
ことを特徴とする符号化の拡張方式。1 In a method of encoding the run length of a binary level signal with a code that has an upper limit on the run length that can be expressed, one run length of one level is divided and the signal of the other level is inserted at the dividing point. An extended encoding method characterized by encoding by inserting a code with a run length of zero.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2921377A JPS53115122A (en) | 1977-03-18 | 1977-03-18 | Encoding extension system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2921377A JPS53115122A (en) | 1977-03-18 | 1977-03-18 | Encoding extension system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS53115122A JPS53115122A (en) | 1978-10-07 |
| JPS6141466B2 true JPS6141466B2 (en) | 1986-09-16 |
Family
ID=12269905
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2921377A Granted JPS53115122A (en) | 1977-03-18 | 1977-03-18 | Encoding extension system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS53115122A (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS61228728A (en) * | 1985-04-03 | 1986-10-11 | Oki Electric Ind Co Ltd | Coding circuit |
-
1977
- 1977-03-18 JP JP2921377A patent/JPS53115122A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS53115122A (en) | 1978-10-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS60140981A (en) | Method and device for decoding digital coded word of coded word system | |
| JPH0460391B2 (en) | ||
| JPH04241576A (en) | Image encoder | |
| JP2962518B2 (en) | Image data encoding device | |
| US5960117A (en) | Method of adaptive arithmetic encoding/decoding according to JBIG standard | |
| US6385341B1 (en) | Technique for decoding variable length data codes | |
| JPH04270564A (en) | Serial picture data compression system having color information | |
| JPS6141466B2 (en) | ||
| JPH04270569A (en) | Data compression system for picture processor | |
| JPH022350B2 (en) | ||
| JPH0149072B2 (en) | ||
| JP2002091407A (en) | Image display device | |
| JP2795023B2 (en) | Encoding device | |
| JP3226358B2 (en) | Run length encoding method | |
| KR100276768B1 (en) | Changed Pixel Detector for Encoding Image Data | |
| JP2556047B2 (en) | Image information coding device | |
| JPS6359308B2 (en) | ||
| JPH09121286A (en) | Method and device for compressing picture data | |
| JPS59156073A (en) | Data decoding device | |
| JPS5927502B2 (en) | encoding device | |
| JPH0423867B2 (en) | ||
| KR890004316B1 (en) | Convertor to run-length codes | |
| JPS6294077A (en) | Image data transmission device | |
| JPS61105930A (en) | Data encoder | |
| KR960006601A (en) | Method and apparatus for encoding / decoding of image signal by bit division |