JPH05244367A - Image processor - Google Patents

Image processor

Info

Publication number
JPH05244367A
JPH05244367A JP4040984A JP4098492A JPH05244367A JP H05244367 A JPH05244367 A JP H05244367A JP 4040984 A JP4040984 A JP 4040984A JP 4098492 A JP4098492 A JP 4098492A JP H05244367 A JPH05244367 A JP H05244367A
Authority
JP
Japan
Prior art keywords
data
image
input
compression
compressed code
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
JP4040984A
Other languages
Japanese (ja)
Inventor
Yu Nameki
祐 行木
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP4040984A priority Critical patent/JPH05244367A/en
Publication of JPH05244367A publication Critical patent/JPH05244367A/en
Pending legal-status Critical Current

Links

Landscapes

  • Storing Facsimile Image Data (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

PURPOSE:To control the compressed code data storing area in an image storage device where an area is secured so that a memory overflow does not occur again when the memory overflow occurs. CONSTITUTION:The storing area is secured in a data storing means (page buffer) 6 based on the predicted quantity of compression sign data so that a control means 2 for inputting and compressing image data is provided and image data inputted from respective image input means is compressed by a data compressing means 4 so as to be stored in the data storing means 6 and stored in a data storing means (disk) 7. Then, stored data is read so as to be extended in a data extending means 5. When the storing area which is secured in the data storing means 6 overflows while inputting image data at the time of transmitting data to an image output device 20, the storage of compressed code data to the data storing means 6 is held, the input and compression processing of image data is continued and compressed code data is measured so that the storing area of the data storing means 6 is secured and an image input is permitted again.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、画像入力手段から入力
した画像データを圧縮符号データに圧縮して蓄積し、圧
縮符号データを伸長して画像出力手段に送り出す画像処
理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus for compressing image data input from image input means into compressed code data, accumulating the compressed code data, decompressing the compressed code data and sending it to the image output means.

【0002】[0002]

【従来の技術】近年、パーソナルコンピュータやワード
プロセッサの普及に伴い、オフィス等での業務において
複写等の処理がなされるイメージ情報が、多様かつ多量
化してきている。これに伴い、原稿の複写物を作製する
複写機においても、被複写画像の一層の高画質化が要求
されるのは勿論のこと、単に原稿の複写物を所定枚数だ
け複写したり、原稿の画像情報を拡大あるいは縮小して
複写するだけでなく、他の様々な機能が要求されてきて
いる。これには例えば、複数枚の原稿を任意の部数だけ
仕分けした状態での複写動作を電子的に行う電子RDH
(Electronic Recirculating Document Handler)
機能や、多数枚の原稿を記録用紙の片面に二枚ずつペー
ジを分割した状態で両面複写していき、原稿の画像がペ
ージ順に揃った一冊の小冊子となるように、原稿の画像
を編集して複写する製本機能等がある。
2. Description of the Related Art In recent years, with the widespread use of personal computers and word processors, image information to be subjected to processing such as copying in office work has been diversified and increased in quantity. Along with this, it is needless to say that even a copying machine for producing a copy of an original needs to further improve the image quality of the image to be copied. In addition to enlarging or reducing image information for copying, various other functions are required. For this purpose, for example, an electronic RDH that electronically performs a copying operation in a state where a plurality of originals are sorted by an arbitrary number of copies.
(Electronic Recirculating Document Handler)
Edit the original image so that the original image becomes a booklet in which the original images are arranged in page order by copying both sides of a large number of originals on a single side of the recording paper and dividing each page into two pages. Then, there is a bookbinding function for copying.

【0003】従来、この種の機能を実現し得る複写機と
しては、例えば次のようなデジタル複写機がある。すな
わち、このデジタル複写機は、原稿をADF(Automat
icDocument Feeder)にセットすることにより、原稿を
ADFによって自動的に複写機のプラテン上まで順次搬
送して、原稿の画像をスキャナーによって読み取り、デ
ジタル信号に一旦変換して記憶する。そして、この記憶
された画像情報を読み出してIOT(Image Output
Terminal)により画像の記録を行い、原稿の複写機能を
実現するように構成されている。
Conventionally, as a copying machine that can realize this kind of function, for example, there is the following digital copying machine. That is, in this digital copying machine, an original is copied into an ADF (automat
By setting the icDocment Feeder), the document is automatically conveyed by the ADF to the platen of the copying machine, the image of the document is read by the scanner, once converted into a digital signal and stored. Then, the stored image information is read out and IOT (Image Output) is set.
The image is recorded by the terminal (Terminal), and the copy function of the document is realized.

【0004】このようなデジタル複写機では、スキャナ
ーによって読み取られた原稿の画像情報を記憶するに当
たり、より多くの画像情報が記憶可能なように、原稿の
画像情報の情報論的な冗長度を圧縮して情報量を減少さ
せた状態で画像情報を記憶する画像記憶装置が使用され
ている。
In such a digital copying machine, when storing the image information of the document read by the scanner, the informational redundancy of the image information of the document is compressed so that more image information can be stored. An image storage device is used that stores image information while reducing the amount of information.

【0005】この画像記憶装置は、スキャナーから読み
込まれた画像情報を圧縮器によって圧縮した後、ハード
ディスク等からなる大容量の記憶装置に記憶する。その
際上記記憶装置に画像情報を記憶させるのに要する時間
は、シーク時間等も含めるとアクセス速度がほぼ1メガ
バイト/秒程度であり、圧縮器から記憶装置に送られる
画像情報の通常の転送速度10メガバイト/秒程度に比
べて遅いため、圧縮器によって圧縮された画像をそのま
ま記憶装置に転送して記憶することができない。そのた
め、圧縮器と記憶装置との間に画像情報をぺージ単位で
一時的に格納するバッファメモリを設け、このバッファ
メモリに圧縮器から転送されてくる画像情報をぺージ単
位で一時的に格納する。そして記憶装置と同期をとって
バッファメモリに一時的に格納された画像情報を記憶装
置に転送して記憶する。
In this image storage device, image information read from a scanner is compressed by a compressor and then stored in a large-capacity storage device such as a hard disk. At this time, the time required to store the image information in the storage device is about 1 megabyte / second including the seek time, and the normal transfer speed of the image information sent from the compressor to the storage device. Since it is slower than about 10 megabytes / second, the image compressed by the compressor cannot be transferred to the storage device and stored as it is. Therefore, a buffer memory that temporarily stores image information in page units is provided between the compressor and the storage device, and image information transferred from the compressor is temporarily stored in page units in this buffer memory. To do. Then, the image information temporarily stored in the buffer memory is transferred to and stored in the storage device in synchronization with the storage device.

【0006】その後、記憶装置から画像情報を取り出す
際にも同様に速度差を吸収するために、前述のバッファ
メモリに一時的に格納し、1ぺージ分の画像情報が揃っ
た時点で、伸長器に転送し順次複号化してIOTにより
画像の記憶を行うよう構成されている。
After that, when the image information is taken out from the storage device, similarly, in order to absorb the speed difference, the image data is temporarily stored in the above-mentioned buffer memory, and when one page of image information is gathered, it is expanded. The image is stored by the IOT after being transferred to a container and sequentially decoded.

【0007】このようなバッファメモリは、同期合わせ
を良好にするためや、原稿サイズの違い、画像情報の圧
縮率の変動を考慮すると、ある程度記憶容量に余裕を持
ち、あるいは記憶装置への入力、出力用に専用になって
いることが望ましい。しかし、メモリ容量の増大は、装
置全体のコストの増加に直接つながるため、現実には、
バッファメモリの管理方法を工夫して、汎用で多目的な
共通のバッファメモリとして実装されることが多い。そ
のため、バッファメモリは複数のジョブにより動的に制
御されており、一つ一つのジョブにはその都度必要最小
限のバッファメモリが割り当てられるように管理されて
いる。
[0007] Such a buffer memory has a certain amount of storage capacity in order to improve the synchronization, and in consideration of the difference in document size and the variation in the compression ratio of image information, or the input to the storage device. It is desirable to be dedicated for output. However, the increase in memory capacity directly leads to an increase in the cost of the entire device, so in reality,
It is often implemented as a general purpose and multipurpose common buffer memory by devising a management method of the buffer memory. Therefore, the buffer memory is dynamically controlled by a plurality of jobs, and each job is managed so that the minimum required buffer memory is allocated each time.

【0008】ところで、画像情報を圧縮処理する画像圧
縮器は、画像の規則性や、印字比率等によって出力する
符号データの大きさが一定ではなく、圧縮率が不安定な
ものが一般に多く用いられている。このような圧縮器で
は、圧縮後の圧縮符号データの量は画像情報によって大
きく変動し、実際に圧縮が終了するまでは正確な圧縮符
号データ量を知ることは不可能である。そのため、前述
のバッファメモリの領域を確保した後、スキャナーデー
タ画像情報を入力し、画像の圧縮を開始するが、事前に
圧縮後の圧縮符号データ量を、例えばA4、B5等の原
稿サイズ、写真原稿、網点原稿、文字原稿等の原稿の種
類等に応じて経験に基づく平均的な圧縮率等の値を持っ
て予測し、さらにそれよりある程度余裕を持って、バッ
ファメモリの領域を確保することが従来、一般的に行わ
れている。
By the way, as for the image compressor for compressing the image information, the size of the code data to be output is not constant due to the regularity of the image, the print ratio, etc., and the compression ratio is generally unstable. ing. In such a compressor, the amount of compressed code data after compression varies greatly depending on the image information, and it is impossible to know the exact amount of compressed code data until the actual compression. Therefore, after securing the area of the buffer memory described above, the scanner data image information is input and image compression is started, but the compression code data amount after compression is set in advance, for example, the document size such as A4 or B5, or the photograph. Predict with a value such as an average compression ratio based on experience according to the type of original such as original, halftone original, and character original, and secure a buffer memory area with some margin That is generally done conventionally.

【0009】しかしながら、実際に圧縮した結果、ある
程度余裕を持って確保したバッファメモリの領域をも越
え、いわゆるメモリオーバーフローが発生することを1
00%免れることはできない。このようなメモリオーバ
ーフローに対し、従来、特開昭60ー100873号公
報にて開示されているように、メモリオーバーフローが
発生した場合、画像情報の入力とバッファメモリへの格
納を中断し、他のジョブが解放した領域を加えて、より
大きな領域を確保し直してから、バッファメモリへの格
納を再度行う対処法が考案されている。
However, as a result of the actual compression, the so-called memory overflow may occur even if it exceeds the buffer memory area secured with some margin.
I can't get rid of 00%. In response to such a memory overflow, as disclosed in Japanese Patent Laid-Open No. 60-100873, when a memory overflow occurs, input of image information and storage in a buffer memory are interrupted, and another memory overflow occurs. A method has been devised in which the area released by the job is added to secure a larger area, and then the data is stored again in the buffer memory.

【0010】[0010]

【発明が解決しようとする課題】しかしながら、上記の
ような対処法は、一見良いように見えるが、前述したよ
うに圧縮後の圧縮符号データ量は画像情報によって大き
く変動し、実際に圧縮が終了するまでは正確な圧縮符号
データ量を知ることは不可能である。そのため、上記の
ような対処法では再入力時にもメモリオーバーフローが
再発生する可能性があり、再入力を繰り返す場合も生じ
る。さらに、このような試行錯誤のステップを踏んでい
る間は処理が進まないため、システム全体の生産性に大
きな影響を及ぼす結果となる。
However, although the above-described countermeasure seems to be good at first glance, as described above, the amount of compressed code data after compression varies greatly depending on the image information, and the compression actually ends. Until then, it is impossible to know the exact amount of compressed code data. Therefore, in the above countermeasure, the memory overflow may occur again at the time of re-input, and the re-input may be repeated. Further, since the processing does not proceed while taking such steps of trial and error, the productivity of the entire system is greatly affected.

【0011】そこで、本発明は、上記の課題を解決する
ものであって、メモリオーバーフローが発生した場合
に、再度メモリオーバーフローが発生しないように領域
を確保することが可能な画像記憶装置の圧縮符号データ
格納領域の制御方法を提供することを目的とするもので
ある。
Therefore, the present invention is to solve the above-mentioned problems, and when a memory overflow occurs, a compression code of an image storage device which can secure an area so that the memory overflow does not occur again. It is an object of the present invention to provide a method for controlling a data storage area.

【0012】[0012]

【課題を解決するための手段】そのために本発明は、図
1に示すように画像データを入力する画像入力手段11
〜19と、画像データを圧縮符号データに圧縮するデー
タ圧縮手段4と、少なくとも1ページ以上の画像データ
または圧縮符号データを格納可能なデータ格納手段6
と、該データ格納手段6の格納データを記憶・蓄積する
データ記憶手段7と、圧縮符号データを伸長し圧縮前の
元の画像データに復元するデータ伸長手段5と、画像デ
ータを出力する画像出力手段20と、及び画像入力手段
から入力される複数ページ分の画像データの圧縮を行う
ため上記データ格納手段6に対して圧縮符号データの予
測量に基づき格納領域を確保した後、画像データの入力
及び圧縮を行うように各手段を制御する制御手段2とを
備え、画像入力手段11〜19から入力した画像データ
をデータ圧縮手段4で圧縮符号データに圧縮してデータ
格納手段6に格納しデータ記憶手段7に蓄積した後、該
蓄積したデータを読み出してデータ伸長手段5で伸長
し、画像出力手段20に送るように構成した画像処理装
置において、画像データを圧縮した圧縮符号データ量を
計測するデータ量計測手段及びデータ格納手段の格納領
域のオーバーフロー検出手段22を備え、データ格納手
段7に確保した格納領域が画像データ入力中にオーバー
フローした場合には、データ格納手段6への圧縮符号デ
ータの格納を保留して画像データの入力及び圧縮処理を
続行して該画像データの圧縮符号データ量を計測し、計
測した圧縮符号データ量でデータ格納手段6の格納領域
を確保して再度画像入力を許可することを特徴とするも
のである。
Therefore, according to the present invention, an image input means 11 for inputting image data as shown in FIG.
To 19, a data compression unit 4 for compressing image data into compressed code data, and a data storage unit 6 capable of storing at least one page of image data or compressed code data.
A data storage means 7 for storing and accumulating the data stored in the data storage means 6, a data decompression means 5 for decompressing the compression code data to restore the original image data before compression, and an image output for outputting the image data. In order to compress the image data for a plurality of pages input from the means 20 and the image input means, a storage area is secured in the data storage means 6 based on the predicted amount of the compression code data, and then the image data is input. And the control means 2 for controlling each means so as to perform compression, and the image data input from the image input means 11 to 19 is compressed into compressed code data by the data compression means 4 and stored in the data storage means 6 to store the data. In the image processing device configured to store the data in the storage means 7, read the stored data, decompress it in the data decompression means 5, and send it to the image output means 20. If the storage area secured in the data storage means 7 overflows while the image data is being input, it is provided with a data amount measuring means for measuring the amount of compressed code data obtained by compressing the data and a storage area overflow detecting means 22 of the data storage means. The storage of the compressed code data in the data storage means 6 is suspended, the input of image data and the compression process are continued to measure the compressed code data amount of the image data, and the data storage means 6 is measured with the measured compressed code data amount. Is secured and the image input is permitted again.

【0013】[0013]

【作用】本発明の画像処理装置では、画像データを圧縮
した圧縮符号データ量を計測するデータ量計測手段及び
データ格納手段の格納領域のオーバーフロー検出手段2
2を備え、画像入力手段11〜19から入力した画像デ
ータをデータ圧縮手段4で圧縮符号データに圧縮してデ
ータ格納手段6に格納しデータ記憶手段7に蓄積した
後、該蓄積したデータを読み出してデータ伸長手段5で
伸長し、画像出力手段20に送り出す場合に、データ格
納手段7に確保した格納領域が画像データ入力中にオー
バーフローすると、データ格納手段6への圧縮符号デー
タの格納を保留して画像データの入力及び圧縮処理を続
行して該画像データの圧縮符号データ量を計測し、計測
した圧縮符号データ量でデータ格納手段6の格納領域を
確保して再度画像入力を許可するので、画像の再入力で
は、オーバーフローすることなくデータ格納手段7に確
保した格納領域に圧縮符号データを格納することができ
る。
In the image processing apparatus of the present invention, the data amount measuring means for measuring the compressed code data amount obtained by compressing the image data and the overflow detecting means 2 in the storage area of the data storing means 2 are provided.
2, the image data input from the image input means 11 to 19 is compressed into compressed code data by the data compression means 4, stored in the data storage means 6 and stored in the data storage means 7, and then the stored data is read out. When the storage area secured in the data storage means 7 overflows during image data input when the data is expanded by the data expansion means 5 and sent to the image output means 20, the storage of the compressed code data in the data storage means 6 is suspended. Since the input and compression processing of the image data is continued to measure the compressed code data amount of the image data, the storage area of the data storage means 6 is secured by the measured compressed code data amount, and the image input is permitted again. When the image is re-input, the compressed code data can be stored in the storage area secured in the data storage unit 7 without overflow.

【0014】[0014]

【実施例】以下、図面を参照しつつ本発明の実施例を説
明する。図1は本発明の画像処理装置の1実施例構成を
示す図、図2はページバッファ転送回路の構成例を示す
図である。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a diagram showing a configuration of an embodiment of an image processing apparatus of the present invention, and FIG. 2 is a diagram showing a configuration example of a page buffer transfer circuit.

【0015】図1において、画像制御装置1は、画像読
取装置の画像データとPCやFAX等の外部機器の画像
データとを切り替えるマルチプレクサ3、画像データを
圧縮する圧縮器4、圧縮符号データを元の画像データに
復元する伸長器5、ぺージバッファ6、大容量のデータ
蓄積用メモリとしてのディスク7、圧縮器4から出力さ
れた圧縮符号データをカウントする複合カウンタとアド
レス生成回路を有するページバッファ転送回路22、及
び制御回路2からなるものである。
In FIG. 1, the image control apparatus 1 includes a multiplexer 3 for switching the image data of the image reading apparatus and the image data of an external device such as a PC or FAX, a compressor 4 for compressing the image data, and a compression code data. 5, a page buffer 6, a page buffer 6, a disk 7 as a large-capacity data storage memory, and a page buffer having a composite counter for counting the compressed code data output from the compressor 4 and an address generation circuit. It comprises a transfer circuit 22 and a control circuit 2.

【0016】スキャナー18は、例えばCCDセンサを
使って原稿を読み取り画像データを入力する画像読取装
置であり、読取信号のオフセット調整、ゲイン調整を行
ってアナログの画像データをデジタルの画像データに変
換し、ギャップ補正、シェーディング補正等を行う。そ
して、カラー画像読み取りの場合には、R(赤)、G
(緑)、B(青)に色分解した3原色の画像データを取
り出し、その画像データに対して例えばEND(等価中
性濃度変換)、カラーマスキング、原稿サイズ検出、カ
ラー変換、UCR(下色除去)及び墨生成、網点除去及
びエッジ強調、TRC(色調補正制御)、縮拡処理、編
集処理を行う。このスキャナ18に取り付けられ、読み
取り原稿を自動的にフィードするのがADF19であ
る。
The scanner 18 is an image reading device that reads a document using, for example, a CCD sensor and inputs image data, and performs offset adjustment and gain adjustment of a read signal to convert analog image data into digital image data. , Gap correction, shading correction, etc. When reading a color image, R (red), G
Image data of the three primary colors separated into (green) and B (blue) are taken out, and for example, END (equivalent neutral density conversion), color masking, document size detection, color conversion, UCR (undercolor) Removal) and black generation, halftone dot removal and edge enhancement, TRC (color tone correction control), reduction / enlargement processing, and editing processing. The ADF 19 is attached to the scanner 18 and automatically feeds the read document.

【0017】PC17は、任意のパーソナルコンピュー
タであり、PCデコンポーザ16は、PC17のコード
データをビットマップに展開するものである。IOCP
11は、PC画像データの入力回路15、ページバッフ
ァ12、画像転送回路14、及び制御回路13からなる
外部機器制御回路装置であり、IOCPぺージバッファ
12に格納した画像データを適宜分割して転送する。
The PC 17 is an arbitrary personal computer, and the PC decomposer 16 expands the code data of the PC 17 into a bit map. IOCP
Reference numeral 11 denotes an external device control circuit device including a PC image data input circuit 15, a page buffer 12, an image transfer circuit 14, and a control circuit 13. The image data stored in the IOCP page buffer 12 is appropriately divided and transferred. To do.

【0018】画像出力装置20は、画像データから生成
された2値データに基づきレーザ光のオン/オフを各画
素毎に制御して網点により中間調画像を再現することが
できる、例えばレーザプリンタである。UI21は、デ
ィスプレイやコントロールパネル等で構成し、種々の機
能や編集の設定入力、その内容の表示出力を行うもので
ある。
The image output device 20 can control the on / off of the laser beam for each pixel based on the binary data generated from the image data to reproduce a halftone image by halftone dots, for example, a laser printer. Is. The UI 21 is composed of a display, a control panel, and the like, and inputs various functions and editing settings, and displays and outputs their contents.

【0019】また、画像制御装置1を構成するものは以
下のようなものである。マルチプレクサ3は、画像バス
8に接続する入力側のバスをスキャナ画像バス9かIO
CP画像バス10かに切り換えるものである。圧縮器4
は、圧縮モードとスルーモードとを有し、圧縮モードで
例えば適応予測符号化方式によりデータを圧縮処理する
ものである。適応予測符号化方式は、例えば画像データ
を8画素毎に複数の予測器で同時に予測し、最も的中率
の高かった予測器を次の8画素の予測に使用する方式で
ある。この場合、予測が的中した画素信号を
The components of the image control device 1 are as follows. The multiplexer 3 connects the input side bus connected to the image bus 8 to the scanner image bus 9 or IO.
It is switched to the CP image bus 10. Compressor 4
Has a compression mode and a through mode, and compresses data in the compression mode by, for example, an adaptive predictive coding method. The adaptive predictive coding method is a method in which, for example, image data is simultaneously predicted by a plurality of predictors for every 8 pixels, and the predictor with the highest hit rate is used for the prediction of the next 8 pixels. In this case, the pixel signal that the prediction hit

〔0〕、外
れた画素信号を〔1〕で置き換える。
[0], the deviated pixel signal is replaced by [1].

【0020】ぺージバッファ転送回路22は、図2に示
すようにアドレス生成回路31と2つのカウンタ32、
33から構成されている。アドレス生成回路31は、制
御回路2により初期設定されぺージバッファ6のアドレ
スを転送単位ごとに生成する回路であり、圧縮器4の出
力(圧縮符号データ)は、このアドレス生成回路31で
生成されたアドレスにしたがってぺージバッファ6に格
納される。また、アドレス生成回路31は、生成するア
ドレスを制御回路2に指定さた特定アドレスに固定する
ことも可能である。二つのカウンタ32、33のうち、
一つは符号データ量を計測するためのアップカウンタ3
3であり、制御回路2により符号データ量の読み出し、
カウンタ値の0へのリセットが可能である。もう一つ
は、メモリオーバーフローを検出するダウンカウンタ3
2であり、制御回路2によりカウント値の初期設定が可
能である。しかも、カウント値が0になると、制御回路
2に割り込み信号を発生し、この信号により制御回路2
ではメモリオーバーフローが発生したことを認識でき
る。
As shown in FIG. 2, the page buffer transfer circuit 22 includes an address generation circuit 31 and two counters 32,
It is composed of 33. The address generation circuit 31 is a circuit which is initialized by the control circuit 2 and generates the address of the page buffer 6 for each transfer unit. The output (compressed code data) of the compressor 4 is generated by this address generation circuit 31. It is stored in the page buffer 6 according to the address. Further, the address generation circuit 31 can fix the generated address to the specific address designated by the control circuit 2. Of the two counters 32 and 33,
One is an up counter 3 for measuring the code data amount.
3, the control circuit 2 reads the code data amount,
The counter value can be reset to 0. The other is a down counter 3 that detects memory overflow.
2, the count value can be initialized by the control circuit 2. Moreover, when the count value becomes 0, an interrupt signal is generated in the control circuit 2, and this signal causes the control circuit 2 to generate an interrupt signal.
Can recognize that a memory overflow has occurred.

【0021】伸長器5は、伸長モードとスルーモードと
を有し、伸長モードで圧縮データを伸長することによっ
て圧縮前の元の画像データに復元するものである。
The decompressor 5 has a decompression mode and a through mode, and decompresses the compressed data in the decompression mode to restore the original image data before compression.

【0022】ぺージバッファ6は、原稿の数ぺージ分の
画像データを格納するものであり、ディスク7の書き込
みデータやディスク7からの読み出しデータを一時的に
格納したり、画像出力する画像データをディスク7へ書
き込まずに一時的に格納し制御回路2により書き換えや
置き換え等の編集を行って出力するために用いるもので
ある。
The page buffer 6 stores image data for several pages of an original, and temporarily stores write data of the disk 7 and read data from the disk 7, and outputs image data for image output. Is temporarily stored in the disk 7 without being written, and the control circuit 2 edits the data such as rewriting or replacement and outputs the data.

【0023】ディスク7は、圧縮処理された大量の圧縮
符号データを蓄積する大容量のデータ蓄積用メモリであ
り、この書き込み、読み出しを制御するのがディスクコ
ントローラHDCである。ディスク7に蓄積するデータ
には、2値や多値の画像データ、コードデータがあり、
コードデータは、例えばPCデコンポーザ16でのビッ
トマップ化処理を行わずにIOCP画像バス10からマ
ルチプレクサ3、圧縮器4を通して入力されるものであ
る。従って、この場合、圧縮器4は、スルーモードとな
る。その他にスルーモードは、圧縮器4による圧縮処
理、伸長器5による伸長処理を行わずに、圧縮器4に入
力した画像データをそのままぺージバッファ6に格納し
て、あるいは直接出力する時に用いられる。
The disk 7 is a large-capacity data storage memory for storing a large amount of compressed coded data, and the disk controller HDC controls writing and reading. The data stored on the disk 7 includes binary and multi-valued image data and code data.
The code data is, for example, input from the IOCP image bus 10 through the multiplexer 3 and the compressor 4 without performing the bitmap processing in the PC decomposer 16. Therefore, in this case, the compressor 4 is in the through mode. In addition, the through mode is used when the image data input to the compressor 4 is directly stored in the page buffer 6 or directly output without performing the compression processing by the compressor 4 and the expansion processing by the decompressor 5. ..

【0024】次に、上記構成の画像制御装置1の動作概
要を説明する。まず、オペレータからジョブの指定を入
力するUI21を通して画像情報入力の要求を受け付け
ると、制御回路2は、ページバッファ6の空き領域を調
べ、A4、B5等の原稿サイズや文字原稿、写真原稿文
字/写真混在原稿、グラフィック原稿のような入力画像
の属性等から圧縮後の圧縮符号データ量として予め設定
された圧縮符号データ量に対し、さらにそれよりある程
度余裕を持って、ページバッファ6の領域を確保する。
そして、スキャナ18やADF19、IOCP11に画
像情報の入力を指示してMPX3を選択し、入力した画
像を圧縮する圧縮器4と圧縮した圧縮符号データを一時
的に格納するページバッファ6を起動する。また同時
に、ページバッファ転送回路22のアドレス生成回路3
1、圧縮器4から出力された圧縮符号データ量を計測す
るアップカウンタ33、及びページバッファ6の格納領
域のオーバーフローを検出するダウンカウンタ32を初
期化しておく。このようにして各処理部を起動すると、
圧縮符号データをバッファメモリ6の確保した領域に格
納し始める。
Next, an outline of the operation of the image control device 1 having the above configuration will be described. First, when a request for image information input is received from the operator through the UI 21 for inputting a job designation, the control circuit 2 checks the empty area of the page buffer 6, and determines the document size such as A4 and B5, the text document, the photo document character / The area of the page buffer 6 is secured with a certain amount of margin with respect to the compression code data amount preset as the compression code data amount after compression based on the attributes of the input image such as a photo mixed document and a graphic document. To do.
Then, the scanner 18, the ADF 19, and the IOCP 11 are instructed to input the image information, the MPX 3 is selected, and the compressor 4 that compresses the input image and the page buffer 6 that temporarily stores the compressed compression code data are activated. At the same time, the address generation circuit 3 of the page buffer transfer circuit 22.
1, an up counter 33 that measures the amount of compressed code data output from the compressor 4, and a down counter 32 that detects an overflow of the storage area of the page buffer 6 are initialized. When each processing unit is started in this way,
The compression code data starts to be stored in the reserved area of the buffer memory 6.

【0025】このとき、画像情報入力中に、圧縮符号デ
ータがバッファメモリ6の確保した領域を越えようとす
ると、ダウンカウンタ32が0になるのでメモリオーバ
ーフローが検知され、その情報が割り込みにより制御回
路2に通知される。その場合、制御回路2は、ページバ
ッファ転送回路22がバッファメモリ6の確保した領域
を越えて他のジョブの使用している領域に上書きしない
ようページバッファ転送回路22のアドレス生成回路3
1に対してアドレスを固定する等により圧縮符号データ
の書き込みを中断させる。
At this time, when the compressed code data tries to exceed the area secured by the buffer memory 6 during the input of the image information, the down counter 32 becomes 0, so that a memory overflow is detected and the information is interrupted by the control circuit. 2 will be notified. In that case, the control circuit 2 prevents the page buffer transfer circuit 22 from overwriting the area reserved by the buffer memory 6 and overwriting the area used by another job.
The writing of the compression code data is interrupted by fixing the address to 1.

【0026】このとき、従来の画像処理装置では、原稿
の画像情報を入力するスキャナ18やADF19、IO
CP11と、入力した画像を圧縮する圧縮器6も停止さ
せるところであるが、本発明ではそのまま続行させる。
そして、スキャナ18やADF19、IOCP11と圧
縮器4が画像情報の入力処理を終えた後、制御回路2
は、圧縮器6から出力された圧縮符号データ量の計測値
をページバッファ転送回路22のアップカウンタ33か
ら読み込む。そして、再度画像情報を入力する際にバッ
ファメモリ6の領域を確保するとき、この計測された圧
縮符号データ量の領域を確保することによって、再度の
メモリオーバーフローが発生しないようにする。
At this time, in the conventional image processing apparatus, the scanner 18, the ADF 19 and the IO for inputting the image information of the document are input.
The CP 11 and the compressor 6 for compressing the input image are also stopped, but in the present invention, they are continued.
Then, after the scanner 18, the ADF 19, the IOCP 11 and the compressor 4 finish the input process of the image information, the control circuit 2
Reads the measured value of the compressed code data amount output from the compressor 6 from the up counter 33 of the page buffer transfer circuit 22. Then, when the area of the buffer memory 6 is secured when the image information is input again, the area of the measured compressed code data amount is secured so that the memory overflow does not occur again.

【0027】図3は制御回路2による処理の流れを説明
するためのフローチャートである。まず、オペレータか
らUI21を通してジョブの要求を入力すると(ステッ
プ100)、制御回路2では、ぺージバッファ6の空き
領域を調べ、文字等の2値画像、写真・網点画像等の入
力画像の属性から圧縮後の圧縮符号データ量を予測し、
さらにそれよりある程度余裕を持ってぺージバッファ6
の領域を確保する(ステップ101)。そしてぺージバ
ッファ転送回路22のダウンカウンタを予測した圧縮後
の圧縮符号データ量に(ステップ102)、アドレス生
成回路を領域確保したぺージバッファ6のアドレスに
(ステップ103)、アップカウンタを0に(ステップ
104)、それぞれ初期化する。次に画像を圧縮する圧
縮器4を起動し(ステップ105)、原稿の画像情報を
入力するスキャナ18またはIOCP11に画像情報の
入力を指示する(ステップ106)。このように各部を
設定すると、圧縮符号データをぺージバッファ6の確保
した領域に格納し始め、制御回路2は、画像情報の入力
の終了待ちとなる(ステップ107)。
FIG. 3 is a flow chart for explaining the flow of processing by the control circuit 2. First, when a job request is input from the operator through the UI 21 (step 100), the control circuit 2 checks the empty area of the page buffer 6 and attributes of the input image such as a binary image such as a character or a photograph or a halftone dot image. Predict the amount of compressed code data after compression from
Furthermore, with a certain amount of leeway, page buffer 6
Area is secured (step 101). Then, the down counter of the page buffer transfer circuit 22 is set to the predicted compressed code data amount (step 102), to the address of the page buffer 6 where the address generation circuit has secured the area (step 103), and the up counter is set to 0. (Step 104), each is initialized. Next, the compressor 4 for compressing the image is activated (step 105), and the scanner 18 or the IOCP 11 for inputting the image information of the original is instructed to input the image information (step 106). When each section is set in this way, the compressed code data starts to be stored in the secured area of the page buffer 6, and the control circuit 2 waits for the end of the input of image information (step 107).

【0028】ここで、本発明の課題であるオーバーフロ
ーが発生したと仮定する。その場合、画像情報入力中
に、圧縮符号データがぺージバッファ6に確保した全領
域に格納されてしまい、ぺージバッファ転送回路22の
ダウンカウンタが0になる。そのため、ぺージバッファ
転送回路22から制御回路2に割り込み信号が入力され
る(ステップ108)。そこで制御回路2は、割り込み
処理の中で、メモリオーバーフロー発生という制御情報
を記憶し(ステップ109)、ページバッファ6の確保
した領域を越えて他のジョブが使用している領域に上書
きしないようにする。例えば領域を確保したぺージバッ
ファ6内の任意の一定アドレスを生成するようにぺージ
バッファ転送回路22のアドレス生成回路を設定し(ス
テップ110)、割り込み処理を終了する(ステップ1
11)。
Here, it is assumed that an overflow, which is the subject of the present invention, has occurred. In that case, the compressed code data is stored in the entire area secured in the page buffer 6 during the input of the image information, and the down counter of the page buffer transfer circuit 22 becomes zero. Therefore, an interrupt signal is input from the page buffer transfer circuit 22 to the control circuit 2 (step 108). Therefore, the control circuit 2 stores the control information indicating that a memory overflow has occurred in the interrupt process (step 109) so as not to overwrite the area reserved by the page buffer 6 to the area used by another job. To do. For example, the address generation circuit of the page buffer transfer circuit 22 is set so as to generate an arbitrary fixed address in the page buffer 6 that secures the area (step 110), and the interrupt processing is ended (step 1).
11).

【0029】スキャナ18またはIOCP11と、圧縮
器4が画像情報の入力と圧縮の処理を終了すると、制御
回路2は、前記割り込み処理の中で記憶したメモリオー
バーフロー発生という制御情報をチェックする(ステッ
プ112)。そして、オーバーフローが発生しなかった
場合には正常に画像情報の入力処理を終了する(ステッ
プ116)が、本発明の課題であるオーバーフローが発
生した場合には、圧縮器4から出力された圧縮符号デー
タ量を計測する。この計測では、ぺージバッファ転送回
路22のアップカウンタを読み出し、圧縮符号データ量
を読み出す(ステップ113)。
When the scanner 18 or IOCP 11 and the compressor 4 have finished the processing of inputting and compressing the image information, the control circuit 2 checks the control information stored in the interrupt processing that the memory overflow has occurred (step 112). ). Then, when the overflow does not occur, the input processing of the image information is normally terminated (step 116), but when the overflow which is the subject of the present invention occurs, the compression code output from the compressor 4 is generated. Measure the amount of data. In this measurement, the up-counter of the page buffer transfer circuit 22 is read and the compressed code data amount is read (step 113).

【0030】そして、再度画像情報を入力するために、
今度は計測した正確な圧縮符号データ量でぺージバッフ
ァ6の領域を確保する(ステップ115)。したがっ
て、これ以降は、再度領域確保したぺージバッファ6の
アドレスがぺージバッファ転送回路22のアドレス生成
回路に設定されているので、ステップ103以降のフロ
ーを繰り返し実行する。これにより、ぺージバッファ6
の領域が正確な圧縮符号データ量で確保してあるので、
オーバーフローは発生しえず、正常に画像情報の入力処
理が終了する(ステップ116)。
Then, in order to input the image information again,
This time, the area of the page buffer 6 is secured with the measured accurate compression code data amount (step 115). Therefore, after that, since the address of the page buffer 6 which has secured the area again is set in the address generation circuit of the page buffer transfer circuit 22, the flow after step 103 is repeatedly executed. This allows the page buffer 6
Since the area of is secured with the correct compression code data amount,
Overflow cannot occur, and the image information input process ends normally (step 116).

【0031】以上のような手続きにより、制御回路2
は、オーバーフロー発生と、その時の圧縮符号データ量
を正確に知ることが可能であり、再度画像情報を入力す
る際、ぺージバッファ6から正確な圧縮符号データ量の
領域を確保するようにすれば、再度のメモリオーバーフ
ローが発生しないようにすることができる。
By the procedure described above, the control circuit 2
Is capable of accurately knowing the occurrence of overflow and the amount of compressed code data at that time. If an area of an accurate amount of compressed code data is secured from the page buffer 6 when inputting image information again. , It is possible to prevent the memory overflow again.

【0032】なお、本発明は、上記の実施例に限定され
るものではなく、種々の変形が可能である。例えば上記
の実施例では、メモリオーバーフローの発生により領域
を確保したぺージバッファ6内の任意の一定アドレスを
生成するようにぺージバッファ転送回路22のアドレス
生成回路を設定するように説明したが、ぺージバッファ
6への格納を停止して圧縮処理を続行するように構成し
てもよいし、メモリオーバーフロー発生時のダミーアド
レスを予め設定しておくようにしてもよい。
The present invention is not limited to the above embodiment, but various modifications can be made. For example, in the above embodiment, the address generation circuit of the page buffer transfer circuit 22 is set so as to generate an arbitrary fixed address in the page buffer 6 which has secured the area due to the occurrence of the memory overflow. The compression in the page buffer 6 may be stopped and the compression process may be continued, or a dummy address when a memory overflow occurs may be set in advance.

【0033】[0033]

【発明の効果】以上述べたように、本発明によれば、圧
縮符号データ量を計測するカウンタを備え、そのカウン
タによりメモリオーバーフローが発生した場合に圧縮処
理を中断することなく続行させて圧縮符号データ量を測
定するので、リカバリ時には正確な圧縮符号データ量の
領域を確保することができ、メモリオーバーフローを発
生することなないようにすることができる。
As described above, according to the present invention, a counter for measuring the amount of compressed code data is provided, and when a memory overflow occurs by the counter, the compression process is continued without interruption and the compressed code is continued. Since the amount of data is measured, it is possible to secure an area of an accurate amount of compressed code data at the time of recovery, and it is possible to prevent memory overflow.

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

【図1】 本発明の画像処理装置の1実施例構成を示す
図である。
FIG. 1 is a diagram showing a configuration of an embodiment of an image processing apparatus of the present invention.

【図2】 ページバッファ転送回路の構成例を示す図で
ある。
FIG. 2 is a diagram showing a configuration example of a page buffer transfer circuit.

【図3】 制御回路2による処理の流れを説明するため
のフローチャートである。
FIG. 3 is a flowchart for explaining the flow of processing by the control circuit 2.

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

1…画像制御装置、2…制御回路、3…MPX(マルチ
プレクサ)、4…圧縮器、5…伸長器、6…ぺージバッ
ファ、7…ハードディスク、8…画像バス、9…スキャ
ナ画像バス、10…IOCP画像バス、11…IOCP
(Input/Output Coprocessor)、12…IOCPぺ
ージバッファ、13…IOCP制御回路、14…画像転
送回路、15…PCデータ入力回路、16…PCデコン
ポーザ、17…PC(パーソナルコンピュータ)、18
…スキャナ、19…ADF(Auto Document Termina
l)、21…UI(User Interface)、22…ぺージバ
ッファ転送回路。
1 ... Image control device, 2 ... Control circuit, 3 ... MPX (multiplexer), 4 ... Compressor, 5 ... Decompressor, 6 ... Page buffer, 7 ... Hard disk, 8 ... Image bus, 9 ... Scanner image bus, 10 … IOCP image bus, 11… IOCP
(Input / Output Coprocessor), 12 ... IOCP page buffer, 13 ... IOCP control circuit, 14 ... Image transfer circuit, 15 ... PC data input circuit, 16 ... PC decomposer, 17 ... PC (personal computer), 18
… Scanner, 19… ADF (Auto Document Termina
l), 21 ... UI (User Interface), 22 ... Page buffer transfer circuit.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 画像データを入力する画像入力手段と、
画像データを圧縮符号データに圧縮するデータ圧縮手段
と、少なくとも1ページ以上の画像データまたは圧縮符
号データを格納可能なデータ格納手段と、該データ格納
手段の格納データを記憶・蓄積するデータ記憶手段と、
圧縮符号データを伸長し圧縮前の元の画像データに復元
するデータ伸長手段と、画像データを出力する画像出力
手段と、及び画像入力手段から入力される複数ページ分
の画像データの圧縮を行うため上記データ格納手段に対
して圧縮符号データの予測量に基づき格納領域を確保し
た後、画像データの入力及び圧縮を行うように各手段を
制御する制御手段とを備え、画像入力手段から入力した
画像データをデータ圧縮手段で圧縮符号データに圧縮し
てデータ格納手段に格納しデータ記憶手段に蓄積した
後、該蓄積したデータを読み出してデータ伸長手段で伸
長し、画像出力手段に送るように構成した画像処理装置
において、 画像データを圧縮した圧縮符号データ量を計測するデー
タ量計測手段及びデータ格納手段の格納領域のオーバー
フロー検出手段を備え、データ格納手段に確保した格納
領域が画像データ入力中にオーバーフローした場合に
は、データ格納手段への圧縮符号データの格納を保留し
て画像データの入力及び圧縮処理を続行して該画像デー
タの圧縮符号データ量を計測し、計測した圧縮符号デー
タ量でデータ格納手段の格納領域を確保して再度画像入
力を許可することを特徴とする画像処理装置。
1. An image input means for inputting image data,
Data compression means for compressing image data into compressed code data, data storage means capable of storing at least one page of image data or compressed code data, and data storage means for storing / accumulating the stored data of the data storage means. ,
Data decompression means for decompressing compressed code data to restore the original image data before compression, image output means for outputting image data, and compression of image data for a plurality of pages input from the image input means. The image input from the image input means is provided with a control means for controlling each means so as to input and compress the image data after the storage area is secured in the data storage means based on the predicted amount of the compressed code data. The data is compressed into compressed code data by the data compression means, stored in the data storage means and accumulated in the data storage means, and then the accumulated data is read out, decompressed by the data decompression means and sent to the image output means. In an image processing apparatus, an overflow detection of a storage area of a data amount measuring unit and a data storage unit that measures a compressed code data amount obtained by compressing image data. If the storage area secured in the data storage means overflows during the image data input, the storage of the compressed code data in the data storage means is suspended and the input and compression processing of the image data is continued. An image processing apparatus, which measures a compression coded data amount of the image data, secures a storage area of a data storage unit with the measured compression coded data amount, and permits image input again.
JP4040984A 1992-02-27 1992-02-27 Image processor Pending JPH05244367A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4040984A JPH05244367A (en) 1992-02-27 1992-02-27 Image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4040984A JPH05244367A (en) 1992-02-27 1992-02-27 Image processor

Publications (1)

Publication Number Publication Date
JPH05244367A true JPH05244367A (en) 1993-09-21

Family

ID=12595694

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4040984A Pending JPH05244367A (en) 1992-02-27 1992-02-27 Image processor

Country Status (1)

Country Link
JP (1) JPH05244367A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0755148A2 (en) * 1995-07-17 1997-01-22 Canon Kabushiki Kaisha Image processing apparatus and method
US5835691A (en) * 1995-10-20 1998-11-10 Fuji Xerox Co., Ltd. Image processing apparatus with detection of an overflow and underflow in a code buffer
US7068846B1 (en) 1999-11-04 2006-06-27 Canon Kabushiki Kaisha Image input apparatus and control method therefor
JP2009200548A (en) * 2008-02-19 2009-09-03 Ricoh Co Ltd Image forming apparatus
JP2013138274A (en) * 2011-12-28 2013-07-11 Kyocera Document Solutions Inc Image scanning apparatus

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0755148A2 (en) * 1995-07-17 1997-01-22 Canon Kabushiki Kaisha Image processing apparatus and method
EP0755148A3 (en) * 1995-07-17 1998-03-04 Canon Kabushiki Kaisha Image processing apparatus and method
US5889596A (en) * 1995-07-17 1999-03-30 Canon Kabushiki Kaisha Controlling a reading unit of an image processing apparatus
US5835691A (en) * 1995-10-20 1998-11-10 Fuji Xerox Co., Ltd. Image processing apparatus with detection of an overflow and underflow in a code buffer
US7068846B1 (en) 1999-11-04 2006-06-27 Canon Kabushiki Kaisha Image input apparatus and control method therefor
JP2009200548A (en) * 2008-02-19 2009-09-03 Ricoh Co Ltd Image forming apparatus
JP2013138274A (en) * 2011-12-28 2013-07-11 Kyocera Document Solutions Inc Image scanning apparatus

Similar Documents

Publication Publication Date Title
JP3240638B2 (en) Image processing device
EP0249948B1 (en) Image information processing apparatus
JPH04252340A (en) Abnormality processing circuit for image processor
JPH04306058A (en) Digital picture recorder
JPH04331564A (en) Electrophotographic copying device
JP3030967B2 (en) Image processing device
JP3161031B2 (en) Image processing device
JP3733759B2 (en) Printer control apparatus and method, recording medium storing printer control program, and printer system
JP3028654B2 (en) Image processing device
JPH05244367A (en) Image processor
CA1249364A (en) Image processing system
JP2001146046A (en) Printing system
US5526137A (en) Image processing system and diagnosing method thereof
JP3232623B2 (en) Image processing device
JPH10208031A (en) Image processor
JPH0825716A (en) Electrophotographic page printer
JPH05336321A (en) Image processor
JPH11187261A (en) Image processor
JP2002236566A (en) Page print system and print data generating device
JP3170864B2 (en) Image processing device
JPH09219799A (en) Image processor and its method
JPH11313182A (en) Image forming device
JPH11187253A (en) Image processor and method
JPH106553A (en) Printer and its control method
JPH11266354A (en) Facsimile equipment, space addition method for the same and storage medium