JP2000138837A - Image information processing unit - Google Patents

Image information processing unit

Info

Publication number
JP2000138837A
JP2000138837A JP10326043A JP32604398A JP2000138837A JP 2000138837 A JP2000138837 A JP 2000138837A JP 10326043 A JP10326043 A JP 10326043A JP 32604398 A JP32604398 A JP 32604398A JP 2000138837 A JP2000138837 A JP 2000138837A
Authority
JP
Japan
Prior art keywords
encoding
line
change points
image data
image
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
JP10326043A
Other languages
Japanese (ja)
Inventor
Hiroshi Maeda
宏 前田
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP10326043A priority Critical patent/JP2000138837A/en
Publication of JP2000138837A publication Critical patent/JP2000138837A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an image information processing unit with which a concerned line is discriminated as to whether it is compression coded or left uncompressed, without causing increase in a processing time and data are coded according to the discrimination. SOLUTION: This image information processing unit provided with a coding means, that applies coding and compression to binary data in the unit of lines, is provided with a change point counter 11 that counts number of change points of serial image data (a) before coding compression in the unit of lines, a control circuit 13 that adds the number of change points to a head of image data of a succeeding line by setting number of the change points to an S/P conversion register 12, that converts the serial image data (a) into parallel data, and a coding decoding section 8 that has a comparator circuit 15, which compares number of the change points added by the control circuit 13 with a prescribed value and that discriminates whether or not the line added with number of the change points is to be coded and compressed.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明はファクシミリ装置な
ど2値化データをライン単位に符号化圧縮する手段を備
えた画像情報処理装置に係わり、特に、符号化圧縮した
データのデータ量を少なくすることができる画像情報処
理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image information processing apparatus such as a facsimile apparatus having means for encoding and compressing binary data in units of lines, and more particularly to reducing the amount of encoded and compressed data. The present invention relates to an image information processing apparatus capable of performing the following.

【0002】[0002]

【従来の技術】ファクシミリ装置においては、原稿から
読み取った2値化画像データなどをMH(modified Huf
fman code )方式、MR(modified READ code)方式な
どと称される画像符号化方式により符号化圧縮して、符
号化データを送信したり、蓄積したりしている。しかし
ながら、上記符号化方式では、1ライン中の変化点(白
から黒に変化する点や、黒から白に変化する点)が多い
場合、符号化前の元の画像データのデータ量よりも符号
化データのデータ量の方が多くなってしまうという欠点
がある。そのため、符号化時に符号化データのデータ量
をライン単位に監視し、上記データ量が符号化前のデー
タのデータ量を超えた場合はそのラインの符号化を中止
してそのラインのデータを符号化前のデータのままで蓄
積するという技術が提供されるに至った。なお、特開平
6-197189号公報には、上記のような技術と共に、符号化
時に1ライン中の変化点数を監視し、上記変化点数が所
定値を超えた場合はそのラインの符号化を中止してその
ラインのデータを符号化前のデータのままで蓄積する技
術も示されている。
2. Description of the Related Art In a facsimile apparatus, binarized image data and the like read from a document are converted into MH (modified Huf) data.
The image data is encoded and compressed by an image encoding method called an fman code) method or an MR (modified READ code) method, and encoded data is transmitted or stored. However, in the above-described encoding method, when there are many change points (points that change from white to black and points that change from black to white) in one line, the coding amount is larger than the data amount of the original image data before coding. There is a disadvantage that the data amount of the coded data is increased. Therefore, during encoding, the data amount of the encoded data is monitored on a line basis, and if the data amount exceeds the data amount of the data before encoding, the encoding of the line is stopped and the data of the line is encoded. The technology of accumulating data as it was before the commercialization has been provided. In addition,
Japanese Patent Application Laid-Open No. 6-197189 discloses a technique that monitors the number of change points in one line at the time of encoding and stops the encoding of the line when the number of change points exceeds a predetermined value. There is also disclosed a technique for accumulating such data as it is before encoding.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、特開平
6-197189号公報に示された技術を含む従来の技術におい
ては、当該ラインを非圧縮のままにするという判定が上
記ラインの符号化を途中まで実行してから行われるの
で、処理時間が増大するという問題がある。本発明が解
決すべき課題は、上記のような従来の技術の問題を解消
し、処理時間の増大を招くことなく当該ラインを符号化
圧縮するか非圧縮のままにするかを判定し、その判定に
従って符号化を行うことができるファクシミリ装置など
画像情報処理装置を提供することにある。
SUMMARY OF THE INVENTION
In the conventional technology including the technology disclosed in Japanese Patent Application Laid-Open No. 6-197189, the processing time is increased since the determination that the line is to be left uncompressed is performed after the line is partially encoded. There is a problem of doing. The problem to be solved by the present invention is to solve the problems of the conventional technology as described above, and to determine whether the line should be coded and compressed or left uncompressed without increasing the processing time. An object of the present invention is to provide an image information processing apparatus such as a facsimile apparatus that can perform encoding according to a determination.

【0004】[0004]

【課題を解決するための手段】上記の課題を解決するた
めに、請求項1記載の発明では、2値化データをライン
単位に符号化圧縮する符号化手段を備えた画像情報処理
装置において、符号化圧縮前の2値化データの変化点数
をライン単位に数え、上記変化点数を次ラインの画像デ
ータの先頭に付加する変化点数付加手段と、上記変化点
数付加手段により付加された変化点数を所定の値と比較
することにより上記変化点数の付加されたラインを符号
化圧縮するか否かを判定する符号化判定手段とを備え
た。また、請求項2記載の発明では、2値化データをラ
イン単位に符号化圧縮する符号化手段を備えた画像情報
処理装置において、符号化圧縮前の2値化データの変化
点数をライン単位に数え、上記変化点数を所定の値と比
較することにより次ラインを符号化圧縮するか否かを判
定する符号化判定手段と、上記符号化判定手段により判
定された結果を示す符号化情報を次ラインの画像データ
の先頭に付加する符号化情報付加手段と、上記符号化情
報付加手段により付加された符号化情報に従ってそれぞ
れのラインの符号化圧縮を行う符号化手段とを備えた。
また、請求項3記載の発明では、請求項1または請求項
2記載の発明において、符号化手段による符号化圧縮処
理を行った画像データを記憶しておく画像記憶手段のメ
モリ残量を監視・把握する容量監視手段を備え、上記容
量監視手段により把握されたメモリ残量に応じて変化点
数が比較される所定の値を変更する構成にした。
According to the first aspect of the present invention, there is provided an image information processing apparatus including an encoding unit for encoding and compressing binary data in units of lines. The number of change points of the binary data before encoding and compression is counted in units of lines, and the number of change points added by the number of change points added to the beginning of the image data of the next line is calculated by the following: Encoding determination means for determining whether to compress and compress the line to which the number of change points has been added by comparing with a predetermined value. Further, in the image information processing apparatus provided with an encoding unit that encodes and compresses the binarized data in line units, the number of change points of the binarized data before encoding and compression is set in line units. Counting and comparing the number of change points with a predetermined value to determine whether or not to compress and compress the next line, and coding information indicating a result determined by the coding determination means as follows. An encoding information adding means for adding to the head of the image data of the line, and an encoding means for encoding and compressing each line according to the encoding information added by the encoding information adding means are provided.
According to a third aspect of the present invention, in the first or second aspect of the present invention, the remaining memory capacity of the image storage means for storing the image data subjected to the encoding and compression processing by the encoding means is monitored. There is provided a capacity monitoring means for ascertaining, and a configuration is provided in which a predetermined value with which the number of change points is compared is changed according to the remaining memory capacity ascertained by the capacity monitoring means.

【0005】上記のように構成にしたので、請求項1記
載の発明では、符号化圧縮前の2値化データの変化点数
がライン単位に数えられ、上記変化点数が次ラインの画
像データの先頭に付加され、付加された変化点数に基づ
いて上記変化点数の付加されたラインを符号化圧縮する
か否かが判定され、その判定に従ってそれぞれのライン
の符号化圧縮が行われる。請求項2記載の発明では、符
号化圧縮前の2値化データの変化点数がライン単位に数
えられ、上記変化点数に基づいて次ラインを符号化圧縮
するか否かが判定され、判定された結果を示す符号化情
報が次ラインの画像データの先頭に付加され、付加され
た符号化情報に従ってそれぞれのラインの符号化圧縮が
行われる。請求項3記載の発明では、請求項1または請
求項2記載の発明において、符号化圧縮処理を行った画
像データを記憶しておく画像記憶手段のメモリ残量に応
じて変化点数の比較される所定の値が変更される。
[0005] With the above configuration, the number of change points of the binary data before encoding and compression is counted in line units, and the number of change points is the head of the image data of the next line. It is determined based on the added number of change points whether or not the line to which the number of change points is added is to be encoded and compressed, and the encoding and compression of each line is performed according to the determination. According to the second aspect of the present invention, the number of change points of the binary data before encoding and compression is counted in line units, and it is determined whether or not to encode and compress the next line based on the number of change points. Encoding information indicating the result is added to the head of the image data of the next line, and encoding and compression of each line is performed according to the added encoding information. According to a third aspect of the present invention, in the first or second aspect of the present invention, the number of change points is compared in accordance with the remaining memory capacity of the image storage means for storing the image data subjected to the encoding and compression processing. The predetermined value is changed.

【0006】[0006]

【発明の実施の形態】以下、本発明の実施の形態を図面
を参照して詳細に説明する。なお、ここでは本発明に係
る画像情報処理装置をファクシミリ装置に適用した場合
を例にとり説明する。図1は本発明の実施の形態の一例
を示すファクシミリ装置の構成ブロック図である。図示
するように、このファクシミリ装置は、プログラムを内
蔵したROMおよび上記プログラムに従って動作するC
PUなどを有して装置全体を管理・制御する制御部1、
利用者がファクシミリ装置に指示を与えるためのキーボ
ードおよびファクシミリ装置が利用者にメッセージなど
を与えるための表示手段などから成る操作表示部2、画
像データなどを一時的に格納しておくRAM3、原稿上
の画像を読み取るスキャナ4、復号化された画像データ
を記録紙へ出力するプロッタ5、公衆電話網を介して遠
隔のファクシミリ装置との間に呼を設定したりする網制
御装置(NCU)6、G3伝送制御手順などに従ってフ
ァクシミリ送受信を行う通信制御部7、蓄積する画像デ
ータや送信画像データを符号化手段により符号化したり
受信画像データなどを復号化したりする符号化復号化部
(DCR)8、低速モデムおよび高速モデムから成るモ
デム9、画像データを蓄積しておく画像メモリ(画像記
憶手段)10などを備えている。このようなファクシミ
リ装置でファクシミリ送信を行う場合、まず制御部1が
スキャナ4により画像データをRAM3に読み込み、そ
の画像データをDCR8によって符号化し、RAM3ま
たは画像メモリ10に格納する。また、操作表示部2に
より指定された宛先など発呼時指定情報を制御部1が取
得し、宛先情報を渡されたNCU6が指定の宛先との間
に呼を設定する。続いて、通信制御部7が低速モデムを
介してフェーズBを実行し、やがてフェーズCに移り、
RAM3または画像メモリ10内の上記符号化された画
情報をモデム9内の高速モデムにより変調し、NCU6
を介して送出する。あるいは、相手ファクシミリ装置に
合わせて符号化し直して送出する。受信時は、NCU6
が呼を設定した後、フェーズBに入り、低速モデムを介
して所定の交信を行い、フェーズCに入り、符号化され
た画像データを受信する。そして、その画像データをN
CU6、通信制御部7を介してRAM3に格納し、さら
にDCR8により復号化しRAM3を介してプロッタ5
に出力するか、または画像メモリ10に蓄積する。
Embodiments of the present invention will be described below in detail with reference to the drawings. Here, a case where the image information processing apparatus according to the present invention is applied to a facsimile apparatus will be described as an example. FIG. 1 is a configuration block diagram of a facsimile apparatus showing an example of an embodiment of the present invention. As shown in the figure, the facsimile apparatus has a ROM having a built-in program and a C which operates according to the program.
A control unit 1 having a PU or the like to manage and control the entire apparatus,
An operation display unit 2 including a keyboard for the user to give an instruction to the facsimile apparatus and a display means for the facsimile apparatus to give a message to the user; a RAM 3 for temporarily storing image data and the like; A scanner 4 for reading an image of the image, a plotter 5 for outputting the decoded image data to recording paper, a network control unit (NCU) 6 for setting up a call with a remote facsimile apparatus via a public telephone network, A communication control unit 7 for performing facsimile transmission and reception in accordance with a G3 transmission control procedure and the like; a coding / decoding unit (DCR) 8 for coding stored image data and transmission image data by a coding unit and decoding received image data and the like; A modem 9 comprising a low-speed modem and a high-speed modem; an image memory (image storage means) 10 for storing image data; It is provided. When facsimile transmission is performed by such a facsimile apparatus, first, the controller 1 reads image data into the RAM 3 using the scanner 4, encodes the image data using the DCR 8, and stores the image data in the RAM 3 or the image memory 10. Further, the control unit 1 acquires call-out designation information such as a destination specified by the operation display unit 2, and the NCU 6 to which the destination information has been passed sets a call with the specified destination. Subsequently, the communication control unit 7 executes the phase B via the low-speed modem, and then moves to the phase C,
The coded image information in the RAM 3 or the image memory 10 is modulated by the high-speed modem in the modem 9 and the NCU 6
Out via. Alternatively, it is re-encoded and transmitted according to the other party's facsimile machine. When receiving, NCU6
Sets up a call, enters phase B, performs predetermined communication via a low-speed modem, enters phase C, and receives encoded image data. Then, the image data is
The data is stored in the RAM 3 via the CU 6 and the communication control unit 7, decoded by the DCR 8, and plotted by the plotter 5 via the RAM 3.
Or stored in the image memory 10.

【0007】図2は本発明の第1の実施の形態における
上記ファクシミリ装置要部のデータフロー図であり、ス
キャナ4内には、ライン方向(主走査方向)画素列に対
応したシリアルビット列の画像データa中の変化点を数
える変化点カウンタ11、シリアルビット列の画像デー
タaを複数のパラレルデータに変換するS/P変換レジ
スタ12、当該ラインの変化点数を次ラインの画像デー
タの先頭に付加する変化点数付加手段を含む制御回路1
3を備え、RAM3内にはラインバッファ2 1として割
り当てられた領域を設け、DCR8内には、パラレルデ
ータをシリアルビット列の画像データbに変換するP/
S変換レジスタ14、上記P/S変換レジスタ14に変
化点数がセットされたときその値を所定の値と比較する
比較回路15などを備えている。以下、この実施の形態
の動作を説明する。まず、スキャナ4に原稿がセットさ
れ、その原稿の第1ライン(主走査方向の最も上側の読
み取りライン)を構成する画素列の濃淡画像データが白
黒2値のシリアルビット列の画像データaに変換され、
変化点カウンタ11およびS/P変換レジスタ12に与
えられる。上記変化点カウンタ11はそれぞれのライン
の読み取り開始時に制御回路13により0にリセットさ
れており、その後、入力された画像データaのレベルが
変化したとき、つまり、白から黒に変化したときと黒か
ら白に変化したときにカウントアップされ、その度毎に
その値が1だけ増加する。また、S/P変換レジスタ1
2は例えば16ビット構成であり、シリアルビット列が
16ビット分入力される毎に16ビットパラレルのパラ
レルデータを出力する。
FIG. 2 is a data flow diagram of a main part of the facsimile apparatus according to the first embodiment of the present invention. In the scanner 4, an image of a serial bit string corresponding to a pixel row in a line direction (main scanning direction) is provided. A change point counter 11 that counts change points in the data a, an S / P conversion register 12 that converts image data a of a serial bit string into a plurality of parallel data, and adds the number of change points of the line to the head of image data of the next line. Control circuit 1 including change point number adding means
The RAM 3 has an area allocated as a line buffer 21 and the DCR 8 has a P / P for converting parallel data into image data b of a serial bit string.
An S conversion register 14 and a comparison circuit 15 for comparing the value with a predetermined value when the number of change points is set in the P / S conversion register 14 are provided. Hereinafter, the operation of this embodiment will be described. First, an original is set on the scanner 4, and the grayscale image data of a pixel row constituting the first line (the uppermost reading line in the main scanning direction) of the original is converted into black-and-white binary serial bit string image data a. ,
The change point counter 11 and the S / P conversion register 12 are provided. The change point counter 11 is reset to 0 by the control circuit 13 at the start of reading each line, and thereafter, when the level of the input image data a changes, that is, when the level of the input image data a changes from white to black, and The count is incremented when the color changes from white to white, and the value is increased by 1 each time. Also, S / P conversion register 1
Reference numeral 2 denotes, for example, a 16-bit configuration, and outputs 16-bit parallel parallel data every time a serial bit string is input for 16 bits.

【0008】S/P変換レジスタ12の出力したパラレ
ル画像データは出力順にラインバッファ21に書き込ま
れ、ラインバッファ21に書き込まれた画像データは書
き込み順に読み出され、P/S変換レジスタ14におい
てシリアルビット列の画像データbに変換される。そし
て、この画像データbがDCR8内の符号化手段に与え
られ、符号化圧縮され、画像メモリ10に書き込まれ
る。一方、制御回路13は各ライン毎にS/P変換レジ
スタ12に入力されたビット数を数えており、それによ
り、第1ラインの画像読み取りの終了を検出すると、そ
のときの変化点カウンタ11の出力値つまり当該ライン
の変化点数をS/P変換レジスタ12にセットする。続
いて、第2ラインの読み取りが開始され、画像データa
が再びS/P変換レジスタ12に入力され始めるが、こ
のときまでには第1ラインの変化点数がS/P変換レジ
スタ12から読み出され、ラインバッファ21を介して
P/S変換レジスタ14にセットされ、そのパラレル出
力値である変化点数が予め比較回路15に与えられてい
る所定の値と比較され、その比較結果を示すレベルが比
較回路15から出力され、上記レベルに従って、DCR
8は次ライン(この場合は第2ライン)の符号化圧縮を
行うか否かを決定している。例えば、比較結果が変化点
数の方が大きいことを示していれば次ラインの符号化圧
縮を行わずに画像メモリ10に格納するのである。隣接
するラインの変化点数は類似しているので、次ラインの
変化点数を当該ラインの変化点数と同じとみなすのであ
る。以下、同様の動作をくり返す。
The parallel image data output from the S / P conversion register 12 is written to the line buffer 21 in the output order, and the image data written in the line buffer 21 is read out in the writing order. Is converted to image data b. Then, the image data b is given to the encoding means in the DCR 8, encoded and compressed, and written into the image memory 10. On the other hand, the control circuit 13 counts the number of bits input to the S / P conversion register 12 for each line. When the control circuit 13 detects the end of the image reading of the first line, the control circuit 13 controls the change point counter 11 at that time. The output value, that is, the number of change points of the line is set in the S / P conversion register 12. Subsequently, reading of the second line is started, and image data a
Starts to be input to the S / P conversion register 12 again. By this time, the number of change points of the first line is read out from the S / P conversion register 12 and is sent to the P / S conversion register 14 via the line buffer 21. The number of transition points, which is set as a parallel output value, is compared with a predetermined value previously given to the comparison circuit 15, and a level indicating the result of the comparison is output from the comparison circuit 15, and the DCR is determined according to the level.
Reference numeral 8 determines whether or not to perform coding compression on the next line (in this case, the second line). For example, if the comparison result indicates that the number of change points is larger, the data is stored in the image memory 10 without performing the encoding and compression of the next line. Since the number of change points of adjacent lines is similar, the number of change points of the next line is regarded as the same as the number of change points of the line. Hereinafter, the same operation is repeated.

【0009】図3に、ラインバッファ21を介してDC
R8に与えられるデータの構成を示す。なお、DCR8
は例えば画像メモリ10に格納する処理済みのそれぞれ
のラインの画像データの先頭に当該ラインの画像データ
が圧縮データか非圧縮データかを示す情報を付加する。
そして、画像メモリ10に格納した画像データを送信す
る場合は付加された上記情報に従って一旦復号化伸長
し、相手ファクシミリ装置の復号化機能に合わせて再び
符号化して送信する。また、このファクシミリ装置を画
像蓄積装置として用い、蓄積された画像データをプロッ
タ5により記録紙上に出力する場合も、上記のようにし
て復号化伸長する。上記のように、この実施の形態によ
れば、画像メモリ10に格納しておく画像データのデー
タ量を従来よりも少なくすることができるし、それぞれ
の非圧縮ラインについては、途中まで符号化圧縮を行っ
た後にそのラインの符号化圧縮を止めるというようなこ
とをしないので、その分だけ符号化圧縮処理が短時間で
終了する。本発明の第2の実施の形態では、画像メモリ
10のメモリ残量に応じて、変化点数と比較する所定の
値を変える。メモリ残量が大きいときは上記所定の値を
最小データ量をもたらす値よりも小さくして非圧縮のラ
インを増やし、メモリ残量が少なくなると所定の値を大
きくして非圧縮のラインを減らすのである。
[0009] FIG.
The structure of data given to R8 is shown. Note that DCR8
For example, information indicating whether the image data of the line is compressed data or non-compressed data is added to the head of the processed image data of each line stored in the image memory 10.
When transmitting the image data stored in the image memory 10, the image data is once decoded and decompressed in accordance with the added information, and is again encoded and transmitted in accordance with the decoding function of the partner facsimile machine. Also, when the facsimile apparatus is used as an image storage apparatus and the stored image data is output on a recording sheet by the plotter 5, the decoding and decompression are performed as described above. As described above, according to this embodiment, the amount of image data to be stored in the image memory 10 can be made smaller than before, and each uncompressed line can be encoded and compressed halfway. Is performed, the encoding / compression processing of the line is not stopped, so that the encoding / compression processing is completed in a short time. In the second embodiment of the present invention, a predetermined value to be compared with the number of change points is changed according to the remaining memory of the image memory 10. When the remaining memory capacity is large, the above-mentioned predetermined value is made smaller than the value that gives the minimum data amount to increase the number of uncompressed lines, and when the remaining memory capacity is small, the predetermined value is increased and the number of uncompressed lines is reduced. is there.

【0010】そのために、制御部1は画像メモリ11の
メモリ残量を常に監視している。つまり、制御部1は容
量監視手段としても働き、画像メモリ11の新たな領域
への書き込みが発生すると、それまでのメモリ残量から
その書き込み量を減じた値を更新されたメモリ残量と
し、メモリ消去が発生すると、それまでのメモリ残量に
メモリ消去量を加えた値を更新されたメモリ残量とし、
上記メモリ残量をRAM3内の所定領域に記憶しておく
のである。また、制御部1内の例えばフラッシュメモリ
などに図4に示すような所定値テーブルを設け、メモリ
残量Qに対応付けて予め所定の値を設定しておく。そし
て、制御部1はメモリ残量を更新する度に上記所定値テ
ーブルを参照し、所定の値を変更する必要が生じていれ
ば比較回路15 に与える所定の値を変更する。なお、所
定の値Kをテーブルから求める代わりに、 K=a(C−Q)+b というような計算式から求めてもよい。なお、上記計算
式において、a、b、Cは定数である。このように第2
の実施の形態によれば、メモリ残量が多いときは非圧縮
のまま画像メモリ10に格納されることが多くなるの
で、その分だけ符号化処理時間が短縮され、メモリ残量
が少なくなると、よりデータ量が少なくなるように符号
化が行われるので、画像メモリ10がいっぱいで格納で
きなくなるというような事態の発生を極めて少なくする
ことができる。
For this purpose, the control unit 1 constantly monitors the remaining amount of the image memory 11. That is, the control unit 1 also functions as a capacity monitoring unit, and when writing to a new area of the image memory 11 occurs, a value obtained by subtracting the writing amount from the remaining memory amount up to that time is set as the updated memory remaining amount, When memory erasure occurs, a value obtained by adding the memory erasure amount to the remaining memory amount is the updated memory remaining amount,
The remaining memory capacity is stored in a predetermined area in the RAM 3. In addition, a predetermined value table as shown in FIG. 4 is provided in, for example, a flash memory in the control unit 1, and a predetermined value is set in advance in association with the remaining memory amount Q. The control unit 1 refers to the predetermined value table each time the remaining memory capacity is updated, and changes the predetermined value given to the comparison circuit 15 if the predetermined value needs to be changed. Instead of obtaining the predetermined value K from the table, the predetermined value K may be obtained from a calculation formula such as K = a (C−Q) + b. In the above formula, a, b, and C are constants. Thus the second
According to the embodiment, when the remaining memory is large, the image data is often stored in the image memory 10 uncompressed. Therefore, the encoding processing time is reduced by that much, and when the remaining memory becomes small, Since the encoding is performed so that the data amount is further reduced, the occurrence of a situation in which the image memory 10 becomes full and cannot be stored can be extremely reduced.

【0011】図5は、本発明の第3の実施の形態を示す
ファクシミリ装置要部のデータフロー図である。図示す
るように、この実施の形態のファクシミリ装置は、スキ
ャナ4内に、変化点カウンタ11、上記変化点カウンタ
11の出力値である変化点数を所定の値と比較する比較
回路16、S/P変換レジスタ12、当該ラインの変化
点数の比較結果を符号化情報として次ラインの画像デー
タの先頭に付加する符号化情報付加手段を含む制御回路
13aを備え、RAM3内にはラインバッファ21とし
て割り当てられた領域を設け、DCR8内には、P/S
変換レジスタ14、上記P/S変換レジスタ14に符号
化情報がセットされたときその値に従って当該ラインを
符号化圧縮するか否かを判断する判断回路17などを備
えている。以下、この実施の形態の動作を説明する。ま
ず、スキャナ4に原稿がセットされ、その原稿の第1ラ
インを構成する画素列の濃淡画像データが白黒2値のシ
リアルビット列の画像データaに変換され、変化点カウ
ンタ11およびS/P変換レジスタ12に与えられる。
上記変化点カウンタ11はそれぞれのラインの読み取り
開始時に制御回路13aにより0にリセットされてお
り、その後、入力された画像データaのレベルが変化し
たとき、つまり、白から黒に変化したときと黒から白に
変化したときにカウントアップされ、その度毎にその値
が1だけ増加する。また、S/P変換レジスタ12は例
えば16ビット構成であり、シリアルビット列が16ビ
ット分入力される毎に16ビットパラレルのパラレルデ
ータを出力する。
FIG. 5 is a data flow diagram of a main part of a facsimile apparatus showing a third embodiment of the present invention. As shown in the figure, the facsimile apparatus of this embodiment includes a change point counter 11, a comparison circuit 16 for comparing the change point number, which is the output value of the change point counter 11, with a predetermined value, in the scanner 4, and an S / P The conversion register 12 includes a control circuit 13a including an encoding information adding means for adding a comparison result of the number of change points of the line as encoding information to the head of the image data of the next line. The DCR8 contains a P / S
A conversion register 14 and a determination circuit 17 for determining whether or not to compress and compress the line according to the value when the coding information is set in the P / S conversion register 14 are provided. Hereinafter, the operation of this embodiment will be described. First, an original is set on the scanner 4, and the grayscale image data of the pixel row constituting the first line of the original is converted into image data a of a binary serial bit string of black and white, a change point counter 11 and an S / P conversion register. 12 is given.
The change point counter 11 is reset to 0 by the control circuit 13a at the start of reading of each line, and thereafter, when the level of the input image data a changes, that is, when the level changes from white to black, The count is incremented when the color changes from white to white, and the value is increased by 1 each time. The S / P conversion register 12 has, for example, a 16-bit configuration, and outputs 16-bit parallel parallel data every time a 16-bit serial bit string is input.

【0012】S/P変換レジスタ12の出力したパラレ
ル画像データは出力順にラインバッファ21に書き込ま
れ、ラインバッファ21に書き込まれた画像データは書
き込み順に読み出され、P/S変換レジスタ14におい
てシリアルビット列の画像データbに変換される。そし
て、この画像データbがDCR8内の符号化手段に与え
られ、符号化圧縮され、画像メモリ10に書き込まれ
る。一方、制御回路13aは各ライン毎にS/P変換レ
ジスタ12に入力されたビット数を数えており、それに
より、第1ラインの画像読み取りの終了を検出すると、
そのときの変化点カウンタ11の出力値つまり当該ライ
ンの変化点数を比較回路16に与え、予め設定しておい
た所定の値と比較させる。そして、その比較結果である
符号化情報をS/P変換レジスタ12にセットする。例
えば、比較結果が変化点数の方が大きいことを示してい
れば、上記符号化情報は次ラインの符号化圧縮を行わな
い旨を示している。続いて、第2ラインの読み取りが開
始され、画像データaが再びS/P変換レジスタ12に
入力され始めるが、このときまでには第2ラインの画像
データの先頭に挿入された上記符号化情報がS/P変換
レジスタ12から読み出され、ラインバッファ21を介
してP/S変換レジスタ14にセットされ、そのパラレ
ル出力値である符号化情報が判断回路17に与えられ、
それによって、DCR8は次ライン(この場合は第2ラ
イン)の符号化圧縮を行ったり、行わなかったりする。
以下、同様の動作をくり返す。なお、DCR8は例えば
画像メモリ10に格納するそれぞれのラインの画像デー
タの先頭に当該ラインの画像データが圧縮データか非圧
縮データかを示す情報を付加する。上記のように第3の
実施の形態によれば、第1の実施の形態と同様に、画像
メモリ10に格納しておく画像データのデータ量をより
少なくすることができるし、それぞれの非圧縮ラインに
ついては、途中まで符号化圧縮を行った後にそのライン
の符号化圧縮を止めるというようなことをしないので、
その分だけ符号化圧縮処理が短時間で終了する。なお、
第3の実施の形態においても、第2の実施の形態と同様
に、比較回路16に与える所定の値を画像メモリ10の
メモリ残量に応じて変えることができる。以上、画像情
報処理装置がファクシミリ装置の場合を例にとり説明し
たが、これに限らず、本発明は画像蓄積装置や複合機能
装置などにも有効に適用することができる。
The parallel image data output from the S / P conversion register 12 is written to the line buffer 21 in the output order, and the image data written in the line buffer 21 is read out in the writing order. Is converted to image data b. Then, the image data b is given to the encoding means in the DCR 8, encoded and compressed, and written into the image memory 10. On the other hand, the control circuit 13a counts the number of bits input to the S / P conversion register 12 for each line, and upon detecting the end of the image reading of the first line,
The output value of the change point counter 11 at that time, that is, the number of change points of the line is given to the comparison circuit 16 and compared with a predetermined value set in advance. Then, the coded information as the comparison result is set in the S / P conversion register 12. For example, if the comparison result indicates that the number of change points is larger, the coded information indicates that the next line is not coded and compressed. Subsequently, the reading of the second line is started, and the image data a starts to be input again to the S / P conversion register 12. By this time, the coding information inserted at the head of the image data of the second line is obtained. Is read from the S / P conversion register 12, set in the P / S conversion register 14 via the line buffer 21, and the encoded information which is the parallel output value is given to the determination circuit 17.
As a result, the DCR 8 performs or does not perform coding compression of the next line (in this case, the second line).
Hereinafter, the same operation is repeated. The DCR 8 adds, for example, to the head of the image data of each line stored in the image memory 10, information indicating whether the image data of the line is compressed data or uncompressed data. As described above, according to the third embodiment, similarly to the first embodiment, the data amount of the image data stored in the image memory 10 can be reduced, and the respective uncompressed As for the line, since the encoding compression of the line is not stopped after performing the encoding compression halfway,
The encoding / compression processing is completed in that short time. In addition,
Also in the third embodiment, the predetermined value given to the comparison circuit 16 can be changed according to the remaining amount of the image memory 10 as in the second embodiment. The case where the image information processing apparatus is a facsimile apparatus has been described above as an example. However, the present invention is not limited to this, and the present invention can be effectively applied to an image storage apparatus and a multifunction device.

【0013】[0013]

【発明の効果】以上説明したように、本発明は以下のよ
うな優れた効果を発揮する。請求項1記載の発明では、
符号化圧縮前の2値化データの変化点数がライン単位に
数えられ、上記変化点数が次ラインの画像データの先頭
に付加され、付加された変化点数に基づいて上記変化点
数の付加されたラインを符号化圧縮するか否かが判定さ
れ、その判定に従ってそれぞれのラインの符号化圧縮が
行われるので、画像記憶手段に格納しておく画像データ
のデータ量をより少なくすることができるし、それぞれ
の非圧縮ラインについては、途中まで符号化圧縮を行っ
た後にそのラインの符号化圧縮を止めるというようなこ
とをしないので、その分だけ符号化圧縮処理時間を短く
することができる。また、請求項2記載の発明では、符
号化圧縮前の2値化データの変化点数がライン単位に数
えられ、上記変化点数に基づいて次ラインを符号化圧縮
するか否かが判定され、判定された結果を示す符号化情
報が次ラインの画像データの先頭に付加され、付加され
た符号化情報に従ってそれぞれのラインの符号化圧縮が
行われるので、請求項1記載の発明と同様に、画像記憶
手段に格納しておく画像データのデータ量をより少なく
することができるし、それぞれの非圧縮ラインについて
は、途中まで符号化圧縮を行った後にそのラインの符号
化圧縮を止めるというようなことをしないので、その分
だけ符号化圧縮処理時間を短くすることができる。ま
た、請求項3記載の発明では、請求項1または請求項2
記載の発明において、符号化圧縮処理を行った画像デー
タを記憶しておく画像記憶手段のメモリ残量が多いとき
は非圧縮のまま上記画像記憶手段に格納されることが多
くなるので、その分だけ符号化処理時間が短縮され、メ
モリ残量が少なくなると、よりデータ量が少なくなるよ
うに符号化が行われるので、上記画像記憶手段がいっぱ
いで格納できなくなるというような事態の発生を極めて
少なくすることができる。
As described above, the present invention has the following excellent effects. In the invention according to claim 1,
The number of change points of the binary data before encoding and compression is counted in line units, the number of change points is added to the beginning of the image data of the next line, and the number of change points is added based on the added number of change points. It is determined whether or not to compress and compress the data, and the coding and compression of each line is performed according to the determination, so that the data amount of the image data stored in the image storage unit can be further reduced. With respect to the non-compressed line, the encoding / compression of the line is not stopped after the encoding / compression is performed halfway, so that the encoding / compression processing time can be shortened accordingly. According to the second aspect of the present invention, the number of change points of the binary data before encoding and compression is counted in line units, and it is determined whether or not to encode and compress the next line based on the number of change points. The encoding information indicating the result of the addition is added to the head of the image data of the next line, and encoding and compression of each line are performed according to the added encoding information. It is possible to reduce the amount of image data stored in the storage means, and for each uncompressed line, perform encoding compression halfway and then stop encoding compression of that line. , The encoding / compression processing time can be shortened accordingly. According to the third aspect of the present invention, in the first aspect or the second aspect,
In the described invention, when the remaining amount of memory of the image storage means for storing the image data subjected to the encoding and compression processing is large, the image data is often stored in the image storage means uncompressed. Only when the encoding processing time is shortened and the remaining memory capacity is reduced, encoding is performed so that the data amount is further reduced. can do.

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

【図1】本発明の実施の形態の一例を示すファクシミリ
装置の構成ブロック図。
FIG. 1 is a configuration block diagram of a facsimile apparatus showing an example of an embodiment of the present invention.

【図2】本発明の第1の実施の形態を示す上記ファクシ
ミリ装置要部のデータフロー図。
FIG. 2 is a data flow diagram of the main part of the facsimile apparatus showing the first embodiment of the present invention.

【図3】本発明の第1の実施の形態におけるファクシミ
リ装置要部の説明図。
FIG. 3 is an explanatory diagram of a main part of the facsimile apparatus according to the first embodiment of the present invention.

【図4】本発明の第2の実施の形態を示すファクシミリ
装置要部のデータ構成図。
FIG. 4 is a data configuration diagram of a main part of a facsimile apparatus according to a second embodiment of the present invention.

【図5】本発明の第3の実施の形態を示す上記ファクシ
ミリ装置要部のデータフロー図。
FIG. 5 is a data flow diagram of a main part of the facsimile apparatus showing a third embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1:制御部(容量監視手段)、3:RAM、4:スキャ
ナ、8:符号化復号化部(符号化手段)、10:画像メ
モリ、11:変化点カウンタ、12:S/P変換レジス
タ、13:制御回路(変化点数付加手段、符号化情報付
加手段)、14:P/S変換レジスタ、15:比較回
路、16:比較回路(符号化判定手段)
1: control unit (capacity monitoring unit), 3: RAM, 4: scanner, 8: encoding / decoding unit (encoding unit), 10: image memory, 11: change point counter, 12: S / P conversion register, 13: control circuit (change point addition means, coding information addition means), 14: P / S conversion register, 15: comparison circuit, 16: comparison circuit (coding determination means)

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 2値化データをライン単位に符号化圧縮
する符号化手段を備えた画像情報処理装置において、符
号化圧縮前の2値化データの変化点数をライン単位に数
え、上記変化点数を次ラインの画像データの先頭に付加
する変化点数付加手段と、上記変化点数付加手段により
付加された変化点数を所定の値と比較することにより上
記変化点数の付加されたラインを符号化圧縮するか否か
を判定する符号化判定手段とを備えたことを特徴とする
画像情報処理装置。
1. An image information processing apparatus comprising an encoding means for encoding and compressing binary data in line units, wherein the number of change points of the binary data before encoding and compression is counted in line units, and Is added to the beginning of the image data of the next line, and the number of change points added by the change point number addition means is compared with a predetermined value to encode and compress the line to which the number of change points is added. An image information processing apparatus comprising: an encoding determination unit configured to determine whether or not the image processing is performed.
【請求項2】 2値化データをライン単位に符号化圧縮
する符号化手段を備えた画像情報処理装置において、符
号化圧縮前の2値化データの変化点数をライン単位に数
え、上記変化点数を所定の値と比較することにより次ラ
インを符号化圧縮するか否かを判定する符号化判定手段
と、上記符号化判定手段により判定された結果を示す符
号化情報を次ラインの画像データの先頭に付加する符号
化情報付加手段と、上記符号化情報付加手段により付加
された符号化情報に従ってそれぞれのラインの符号化圧
縮を行う符号化手段とを備えたことを特徴とする画像情
報処理装置。
2. An image information processing apparatus comprising an encoding means for encoding and compressing binary data in line units, wherein the number of change points of the binary data before encoding and compression is counted in line units, and Is compared with a predetermined value to determine whether or not to compress and compress the next line. The coding information indicating the result determined by the coding determination unit is used as image data of the next line. An image information processing apparatus comprising: an encoded information adding unit to be added to the head; and an encoding unit that performs encoding and compression of each line according to the encoded information added by the encoded information adding unit. .
【請求項3】 前記符号化手段による符号化圧縮処理を
行った画像データを記憶しておく画像記憶手段のメモリ
残量を監視・把握する容量監視手段を備え、上記容量監
視手段により把握されたメモリ残量に応じて変化点数が
比較される所定の値を変更する構成にしたことを特徴と
する請求項1または請求項2記載の画像情報処理装置。
3. A capacity monitoring means for monitoring and grasping the remaining amount of memory in an image storage means for storing the image data which has been subjected to the encoding and compression processing by the encoding means, wherein the capacity monitoring means grasps the remaining capacity. 3. The image information processing apparatus according to claim 1, wherein a predetermined value with which the number of change points is compared is changed according to the remaining amount of memory.
JP10326043A 1998-10-30 1998-10-30 Image information processing unit Pending JP2000138837A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10326043A JP2000138837A (en) 1998-10-30 1998-10-30 Image information processing unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10326043A JP2000138837A (en) 1998-10-30 1998-10-30 Image information processing unit

Publications (1)

Publication Number Publication Date
JP2000138837A true JP2000138837A (en) 2000-05-16

Family

ID=18183477

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10326043A Pending JP2000138837A (en) 1998-10-30 1998-10-30 Image information processing unit

Country Status (1)

Country Link
JP (1) JP2000138837A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005217659A (en) * 2004-01-28 2005-08-11 Fuji Television Network Inc Audio/video signal multiplexer
JP2008028534A (en) * 2006-07-19 2008-02-07 Pentax Corp Digital camera

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005217659A (en) * 2004-01-28 2005-08-11 Fuji Television Network Inc Audio/video signal multiplexer
JP2008028534A (en) * 2006-07-19 2008-02-07 Pentax Corp Digital camera
US8009924B2 (en) 2006-07-19 2011-08-30 Hoya Corporation Method and apparatus for recording image data

Similar Documents

Publication Publication Date Title
US4688100A (en) Video data encoding/decoding apparatus
JPH0828820B2 (en) Image data coding circuit
JPH07264417A (en) Image coding method
US6577768B1 (en) Coding method, code converting method, code converting apparatus, and image forming apparatus
JP2000138837A (en) Image information processing unit
KR100234733B1 (en) Conversion apparatus of facsimile signal in facsimile tv
JP2626773B2 (en) Facsimile machine
JPH06121174A (en) Encoder/decoder
JP3222576B2 (en) Encoding device
JP3734082B2 (en) Image processing apparatus and image data storage method of image processing apparatus
JP3270232B2 (en) Data compression device
JP3295502B2 (en) Facsimile apparatus control method and facsimile apparatus
JPH06152811A (en) Facsimile equipment
JP2695501B2 (en) Facsimile machine
JPH06197189A (en) Facsimile equipment
JP3879900B2 (en) Facsimile device
JP2806310B2 (en) Encoding device and facsimile device having the same
KR960014318B1 (en) Data compressing method of facsimile
JP2003153008A (en) Image coding device and image decoding device
JP2002281320A (en) Method for controlling facsimile equipment and facsimile equipment
JP3983592B2 (en) Image communication device
JP3349894B2 (en) Control method for facsimile machine
JPH0553365U (en) Facsimile machine with automatic coding system discrimination function
JP3261206B2 (en) Image coding method
JPH01245762A (en) Facsimile equipment