JP2011044824A - Image processor, image processing method, and image processing program - Google Patents

Image processor, image processing method, and image processing program Download PDF

Info

Publication number
JP2011044824A
JP2011044824A JP2009190430A JP2009190430A JP2011044824A JP 2011044824 A JP2011044824 A JP 2011044824A JP 2009190430 A JP2009190430 A JP 2009190430A JP 2009190430 A JP2009190430 A JP 2009190430A JP 2011044824 A JP2011044824 A JP 2011044824A
Authority
JP
Japan
Prior art keywords
image data
image processing
image
compression
code amount
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
JP2009190430A
Other languages
Japanese (ja)
Inventor
Naoya Morita
直也 守田
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 JP2009190430A priority Critical patent/JP2011044824A/en
Publication of JP2011044824A publication Critical patent/JP2011044824A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To reduce the storage capacity of a memory required for image data compression. <P>SOLUTION: An image processing controller 4 predicts the amount of codes of image data subjected to compression by analyzing the pixel information of the image data subjected to image processing. Since it is not required to secure extra storage capacity of a memory in order to store the compressed image data, the storage capacity of a memory required for image data compression can be reduced. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、画像処理装置、画像処理方法、及び画像処理プログラムに関する。   The present invention relates to an image processing apparatus, an image processing method, and an image processing program.

従来より、画像データをメモリに格納可能な画像形成装置が知られている。画像データをメモリに格納することにより、画像データを何度も利用したり、加工編集したりすることができる。しかしながら、一般に画像データの記憶容量は大きいために、画像データをそのままの状態でメモリに格納した場合には、大きな記憶容量を有するメモリが必要になり、画像形成装置を安価に構成することが困難になる。このような背景から、画像データを圧縮してメモリに格納することにより、画像データの記憶容量を削減する画像圧縮技術が提案されている。   Conventionally, an image forming apparatus capable of storing image data in a memory is known. By storing the image data in the memory, the image data can be used and edited many times. However, since the storage capacity of image data is generally large, if the image data is stored in the memory as it is, a memory having a large storage capacity is required, and it is difficult to configure the image forming apparatus at low cost. become. Against this background, there has been proposed an image compression technique for reducing the storage capacity of image data by compressing the image data and storing it in a memory.

ところが上記の画像圧縮技術を用いたとしても、メモリの記憶容量は有限であるために、画像データを圧縮しながらメモリに格納している途中でメモリの記憶容量が足りなくなってしまうことがある。メモリの記憶容量が足りなくなった場合には、画像データの読み取り動作が行えなくなったり、画像形成装置全体のパフォーマンスが低下したりする可能性がある。このため、画像データを圧縮する際、画像データ全体の符号量(圧縮データ量)を予測し、予測された符号量に基づいてメモリの記憶容量を予め確保する画像圧縮技術が提案されている(特許文献1〜3参照)。   However, even if the above-described image compression technique is used, the storage capacity of the memory is limited, so that the storage capacity of the memory may become insufficient while the image data is being stored in the memory while being compressed. When the storage capacity of the memory is insufficient, there is a possibility that the image data reading operation cannot be performed or the performance of the entire image forming apparatus is deteriorated. For this reason, when compressing image data, an image compression technique has been proposed in which the code amount (compressed data amount) of the entire image data is predicted and the storage capacity of the memory is secured in advance based on the predicted code amount ( Patent Literatures 1 to 3).

しかしながら、従来の画像圧縮技術は、ブロックライン単位やページ単位の圧縮処理を行いながら画像データ全体の符号量を算出,予測する。このため、従来の画像圧縮技術によれば、圧縮処理された画像データを格納するためにメモリの記憶容量を余分に確保しなければならない。   However, the conventional image compression technique calculates and predicts the code amount of the entire image data while performing compression processing in block line units or page units. For this reason, according to the conventional image compression technology, it is necessary to secure an extra memory capacity in order to store the compressed image data.

本発明は、上記課題に鑑みてなされたものであって、その目的は、画像データの圧縮処理に要するメモリの記憶容量を削減可能な画像処理装置、画像処理方法、及び画像処理プログラムを提供することにある。   The present invention has been made in view of the above problems, and an object thereof is to provide an image processing apparatus, an image processing method, and an image processing program capable of reducing the storage capacity of a memory required for image data compression processing. There is.

上記課題を解決し、目的を達成するために、本発明は、画像データを記憶する記憶手段と、画像データに対して画像処理を施し、画像処理が施された画像データを記憶手段に転送する画像処理手段と、画像処理手段により画像処理が施された画像データを圧縮し、圧縮された画像データを記憶手段に転送する圧縮手段と、画像処理手段により画像処理が施された画像データの画素情報を解析することにより、圧縮手段により圧縮される画像データの符号量を予測する予測手段と、予測手段により予測された符号量と記憶手段が圧縮手段の出力に割当可能な記憶容量を比較し、比較結果に基づいて圧縮手段の動作を制御する制御手段とを備える画像処理装置を提供する。   In order to solve the above-described problems and achieve the object, the present invention provides storage means for storing image data, image processing on the image data, and transfer of the image data subjected to image processing to the storage means Image processing means, compression means for compressing image data subjected to image processing by the image processing means, and transferring the compressed image data to the storage means, and pixels of image data subjected to image processing by the image processing means By analyzing the information, the prediction means for predicting the code amount of the image data compressed by the compression means and the storage capacity that the storage means can allocate to the output of the compression means are compared with the code amount predicted by the prediction means. And an image processing apparatus including control means for controlling the operation of the compression means based on the comparison result.

上記課題を解決し、目的を達成するために、本発明は、画像データに対して画像処理を施し、画像処理が施された画像データを記憶手段に転送する画像処理工程と、画像処理が施された画像データを圧縮し、圧縮された画像データを記憶手段に転送する圧縮処理工程と、画像処理が施された画像データの画素情報を解析することにより、圧縮される画像データの符号量を予測する予測工程と、予測された符号量と圧縮された画像データの記憶に割当可能な記憶容量を比較し、比較結果に基づいて圧縮処理工程を制御する制御工程とを有する画像処理方法を提供する。   In order to solve the above-described problems and achieve the object, the present invention provides an image processing step of performing image processing on image data and transferring the image data subjected to image processing to a storage means, and image processing. Compressing the compressed image data, transferring the compressed image data to the storage means, and analyzing the pixel information of the image data subjected to the image processing, thereby reducing the code amount of the compressed image data Provided is an image processing method having a prediction step for prediction, and a control step for comparing the predicted code amount with a storage capacity that can be allocated to storage of compressed image data and controlling the compression processing step based on the comparison result To do.

上記課題を解決し、目的を達成するために、本発明は、画像データに対して画像処理を施し、画像処理が施された画像データを記憶手段に転送する画像処理ステップと、画像処理が施された画像データを圧縮し、圧縮された画像データを記憶手段に転送する圧縮処理ステップと、画像処理が施された画像データの画素情報を解析することにより、圧縮される画像データの符号量を予測する予測ステップと、予測された符号量と圧縮された画像データの記憶に割当可能な記憶容量を比較し、比較結果に基づいて圧縮処理ステップを制御する制御ステップとをコンピュータに実行させる画像処理プログラムを提供する。   In order to solve the above problems and achieve the object, the present invention provides an image processing step for performing image processing on image data and transferring the image data subjected to image processing to a storage means, and image processing. A compression processing step of compressing the compressed image data and transferring the compressed image data to the storage means; and analyzing pixel information of the image data subjected to the image processing, thereby reducing a code amount of the compressed image data Image processing for causing a computer to execute a prediction step for prediction and a control step for comparing the predicted code amount with a storage capacity that can be allocated to storage of compressed image data and controlling the compression processing step based on the comparison result Provide a program.

本発明によれば、画像データを圧縮する前に符号量を予測するので、画像データの圧縮処理に要するメモリの記憶容量を削減することができる。   According to the present invention, since the code amount is predicted before the image data is compressed, the storage capacity of the memory required for the compression process of the image data can be reduced.

図1は、本発明の実施形態となる画像形成装置の構成を示すブロック図である。FIG. 1 is a block diagram showing a configuration of an image forming apparatus according to an embodiment of the present invention. 図2は、本発明の第1の実施形態となる圧縮処理の流れを示すフローチャート図である。FIG. 2 is a flowchart showing the flow of compression processing according to the first embodiment of the present invention. 図3は、K版画像に対してランレングス符号化処理を施した場合の符号サイズを示す図である。FIG. 3 is a diagram illustrating a code size when the run-length encoding process is performed on the K plate image. 図4は、ディスクリプタ情報の構成を説明するための模式図である。FIG. 4 is a schematic diagram for explaining the configuration of descriptor information. 図5は、本発明の第2の実施形態となる圧縮処理の流れを示すフローチャート図である。FIG. 5 is a flowchart showing the flow of compression processing according to the second embodiment of the present invention. 図6は、データ転送ライン数が符号量に書き換えられたディスクリプタ情報の構成を示す模式図である。FIG. 6 is a schematic diagram illustrating a configuration of descriptor information in which the number of data transfer lines is rewritten to a code amount. 図7は、本発明の第3の実施形態となる圧縮処理の流れを示すフローチャート図である。FIG. 7 is a flowchart showing the flow of compression processing according to the third embodiment of the present invention. 図8は、本発明の第4の実施形態となる圧縮処理の流れを示すフローチャート図である。FIG. 8 is a flowchart showing the flow of compression processing according to the fourth embodiment of the present invention.

以下、図面を参照して、本発明の第1乃至第4の実施形態となる画像形成装置の構成及びその圧縮処理動作について説明する。   Hereinafter, the configuration of the image forming apparatus according to the first to fourth embodiments of the present invention and the compression processing operation thereof will be described with reference to the drawings.

〔第1の実施形態〕
始めに、図1乃至図3を参照して、本発明の第1の実施形態となる画像形成装置の構成及びその圧縮処理動作について説明する。
[First Embodiment]
First, the configuration of the image forming apparatus according to the first embodiment of the present invention and the compression processing operation thereof will be described with reference to FIGS. 1 to 3.

〔構成〕
本発明の第1の実施形態となる画像形成装置1は、図1に示すように、画像データ読取部2,スキャナ画像伸長コントローラ3,画像処理コントローラ4,プロッタ画像圧縮/伸長コントローラ5,プロッタ装置6,画像メモリ7,ハードディスクコントローラ8,ハードディスクドライブ装置(Hard Disk Drive:HDD)9,及び制御部10を備える。
〔Constitution〕
As shown in FIG. 1, an image forming apparatus 1 according to a first embodiment of the present invention includes an image data reading unit 2, a scanner image expansion controller 3, an image processing controller 4, a plotter image compression / decompression controller 5, and a plotter device. 6, an image memory 7, a hard disk controller 8, a hard disk drive (HDD) 9, and a control unit 10.

画像データ読取部2は、原稿上の領域を走査することにより原稿の画像データを光学的に読み取るものであり、例えばイメージスキャナにより実現される。画像データ読取部2は、読み取られた原稿の画像データを画像メモリ7に出力する。スキャナ画像伸長コントローラ3は、図示しないCPU(Central Processing Unit)及びロジックにより構成されている。スキャナ画像伸長コントローラ3は、制御部10からの動作指示命令に応じて、画像メモリ7内に格納されている圧縮画像データ(例えばJPEG(Joint Photographic Experts Group)画像データ)を伸長し、伸長された圧縮画像データを画像処理コントローラ4に出力する。   The image data reading unit 2 optically reads image data of a document by scanning an area on the document, and is realized by, for example, an image scanner. The image data reading unit 2 outputs the read image data of the document to the image memory 7. The scanner image expansion controller 3 includes a CPU (Central Processing Unit) and logic (not shown). The scanner image decompression controller 3 decompresses and decompresses compressed image data (for example, JPEG (Joint Photographic Experts Group) image data) stored in the image memory 7 in response to an operation instruction command from the control unit 10. The compressed image data is output to the image processing controller 4.

画像処理コントローラ4は、図示しないCPU及びロジックにより構成されている。画像処理コントローラ4は、制御部10からの動作指示命令に応じて、スキャナ画像伸長コントローラ3により伸長された画像データに対し画像処理を施し、画像処理された画像データを画像メモリ7に出力する。具体的には、画像処理コントローラ4は、画像データ読取部2により読み取られた画像データをプロッタ装置6で印刷出力するために、スキャナ画像伸長コントローラ3により伸長されたJPEG画像をCMYK画像に変換し、CMYK画像を画像メモリ7に出力する。画像処理コントローラ4は、本発明に係る画像処理手段及び予測手段として機能する。   The image processing controller 4 includes a CPU and logic not shown. The image processing controller 4 performs image processing on the image data expanded by the scanner image expansion controller 3 in response to an operation instruction command from the control unit 10, and outputs the image processed image data to the image memory 7. Specifically, the image processing controller 4 converts the JPEG image expanded by the scanner image expansion controller 3 into a CMYK image in order to print out the image data read by the image data reading unit 2 by the plotter device 6. The CMYK image is output to the image memory 7. The image processing controller 4 functions as an image processing unit and a prediction unit according to the present invention.

プロッタ画像圧縮/伸長コントローラ5は、図示しないCPU及びロジックにより構成されている。プロッタ画像圧縮/伸長コントローラ5は、制御部10からの動作指示命令に応じて、画像メモリ7内に格納されている画像データに対し圧縮/伸長処理を施し、圧縮/伸長処理が施された画像データを画像メモリ7に出力する。プロッタ画像圧縮/伸長コントローラ5は、本発明に係る圧縮手段として機能する。   The plotter image compression / decompression controller 5 includes a CPU and logic not shown. The plotter image compression / decompression controller 5 performs a compression / decompression process on the image data stored in the image memory 7 in response to an operation instruction command from the control unit 10, and the image subjected to the compression / decompression process Data is output to the image memory 7. The plotter image compression / decompression controller 5 functions as a compression unit according to the present invention.

プロッタ装置6は、画像データの印刷機能等を有する出力装置である。画像メモリ7は、スキャナ画像伸長コントローラ3により伸長される前の圧縮画像データ,画像処理コントローラ4により画像処理された画像データ,プロッタ画像圧縮/伸長コントローラ5により圧縮/伸長処理された画像データ等、各種の画像データを一時的に格納するためのものであり、例えばバッファメモリにより実現できる。画像メモリ7は、本発明に係る記憶手段として機能する。   The plotter device 6 is an output device having a printing function for image data. The image memory 7 includes compressed image data before being decompressed by the scanner image decompression controller 3, image data processed by the image processing controller 4, image data compressed / expanded by the plotter image compression / decompression controller 5, and the like. This is for temporarily storing various image data, and can be realized by, for example, a buffer memory. The image memory 7 functions as a storage unit according to the present invention.

ハードディスクコントローラ8は、図示しないCPU及びロジックにより構成され、制御部10からの動作指示命令に応じて、HDD9のステータスのリード及びデータ転送を行う。HDD9は、ハードディスクコントローラ8によって駆動制御される2次記憶装置であり、ハードディスクコントローラ8からの動作指示命令に応じて、各種画像データを記憶する。制御部10は、図示しないCPU及びロジックにより構成され、画像形成装置1全体の動作を制御する。制御部10は、本発明に係る制御手段として機能する。   The hard disk controller 8 is composed of a CPU and logic (not shown), and reads the status of the HDD 9 and transfers data in accordance with an operation instruction command from the control unit 10. The HDD 9 is a secondary storage device that is driven and controlled by the hard disk controller 8 and stores various image data in accordance with operation instruction commands from the hard disk controller 8. The control unit 10 includes a CPU and logic (not shown), and controls the operation of the entire image forming apparatus 1. The control unit 10 functions as a control unit according to the present invention.

〔圧縮処理動作〕
このような構成を有する画像形成装置1は、以下に示す圧縮処理動作を実行することにより、画像データの圧縮処理に要する画像メモリ7の記憶容量を削減する。以下、図2に示すフローチャートを参照して、圧縮処理を実行する際の画像形成装置1の動作の流れを説明する。
[Compression processing operation]
The image forming apparatus 1 having such a configuration reduces the storage capacity of the image memory 7 required for image data compression processing by executing the following compression processing operation. Hereinafter, the flow of the operation of the image forming apparatus 1 when executing the compression process will be described with reference to the flowchart shown in FIG.

図2に示すフローチャートは、画像処理コントローラ4が、画像データの画像処理を完了したタイミングで開始となり、圧縮処理はステップS1の処理に進む。なおこの圧縮処理は、画像処理が施された画像データのページ単位毎に繰り返し実行されるものとする。   The flowchart shown in FIG. 2 starts when the image processing controller 4 completes the image processing of the image data, and the compression processing proceeds to the processing of step S1. Note that this compression processing is repeatedly executed for each page of image data subjected to image processing.

ステップS1の処理では、画像処理コントローラ4が、画像データの符号量(圧縮画像データ量)を計数するための符号量カウンタNの値を0にリセットする。これにより、ステップS1の処理は完了し、圧縮処理はステップS2の処理に進む。   In the process of step S1, the image processing controller 4 resets the value of the code amount counter N for counting the code amount of the image data (compressed image data amount) to 0. Thereby, the process of step S1 is completed and a compression process progresses to the process of step S2.

ステップS2の処理では、画像処理コントローラ4が、画像メモリ7に転送する画像データを構成する1つの画素の情報(画素情報)を抽出し、抽出された画素情報を今回の処理対象の画素情報として前回の処理対象の画素情報と比較する。比較の結果、今回の処理対象の画素情報が前回の処理対象の画素情報と同じである場合、画像処理コントローラ4は圧縮処理をステップS4の処理に進める。一方、今回の処理対象の画素情報が前回の処理対象の画素情報と異なる場合には、画像処理コントローラ4は圧縮処理をステップS3の処理に進める。   In the process of step S2, the image processing controller 4 extracts information (pixel information) of one pixel constituting the image data to be transferred to the image memory 7, and uses the extracted pixel information as pixel information to be processed this time. Compare with the previous pixel information to be processed. As a result of the comparison, when the pixel information of the current process target is the same as the previous pixel information of the process target, the image processing controller 4 advances the compression process to the process of step S4. On the other hand, when the pixel information of the current process target is different from the pixel information of the previous process target, the image processing controller 4 advances the compression process to the process of step S3.

ステップS3の処理では、画像処理コントローラ4が、符号量カウンタNの値を増数する。符号化カウンタNの増数値は、プロッタ画像圧縮/伸長コントローラ5による画像データの圧縮形式によって異なる。具体的には、その後の処理においてプロッタ画像圧縮/伸長コントローラ5が4byteのK版画像データに対しランレングス符号化処理を施す場合には、図3(a)〜(c)に示すように、画像データの符号量は2byteとなるので、画像処理コントローラ4は符号量カウンタNの値を2増数する。これにより、ステップS3の処理は完了し、圧縮処理はステップS4の処理に進む。   In the process of step S3, the image processing controller 4 increments the value of the code amount counter N. The increment value of the encoding counter N differs depending on the compression format of the image data by the plotter image compression / decompression controller 5. Specifically, when the plotter image compression / decompression controller 5 performs the run-length encoding process on the 4-byte K plane image data in the subsequent processing, as shown in FIGS. Since the code amount of the image data is 2 bytes, the image processing controller 4 increments the value of the code amount counter N by 2. Thereby, the process of step S3 is completed and the compression process proceeds to the process of step S4.

ステップS4の処理では、画像処理コントローラ4が、前回の処理対象の画素情報を今回の処理対象の画素情報に書き換える。これにより、ステップS4の処理は完了し、圧縮処理はステップS5の処理に進む。   In the process of step S4, the image processing controller 4 rewrites the previous pixel information to be processed with the pixel information to be processed this time. Thereby, the process of step S4 is completed, and the compression process proceeds to the process of step S5.

ステップS5の処理では、画像処理コントローラ4が、画像メモリ7への画像データの転送が完了したか否か(画像データを構成する全ての画素に対する処理が完了したか否か)を判別する。判別の結果、画像データの転送が完了していない(画像データを構成する全ての画素に対する処理が完了していない)場合、画像処理コントローラ4は圧縮処理をステップS2の処理に戻す。一方、画像データの転送が完了した(画像データを構成する全ての画素に対する処理が完了した)場合には、画像処理コントローラ4は、圧縮処理をステップS6の処理に進める。   In step S5, the image processing controller 4 determines whether transfer of image data to the image memory 7 has been completed (whether processing has been completed for all the pixels constituting the image data). As a result of the determination, when the transfer of the image data is not completed (the process for all the pixels constituting the image data is not completed), the image processing controller 4 returns the compression process to the process of step S2. On the other hand, when the transfer of the image data is completed (processing for all the pixels constituting the image data is completed), the image processing controller 4 advances the compression process to the process of step S6.

ステップS6の処理では、制御部10が、符号量カウンタNの値を画像メモリ7に転送された画像データ全体の符号量と判断し、画像データ全体の符号量が圧縮された画像データの記憶に割り当て可能な画像メモリ7の記憶容量(割当可能メモリ容量)未満であるか否かを判別する。判別の結果、画像データ全体の符号量が割当可能メモリ容量未満である場合、制御部10は圧縮処理をステップS7の処理に進める。一方、画像データ全体の符号量が割当可能メモリ容量以上である場合には、制御部10は圧縮処理をステップS9の処理に進める。   In the process of step S6, the control unit 10 determines that the value of the code amount counter N is the code amount of the entire image data transferred to the image memory 7, and stores the image data in which the code amount of the entire image data is compressed. It is determined whether or not the storage capacity of the assignable image memory 7 is less than the assignable memory capacity. As a result of the determination, if the code amount of the entire image data is less than the allocatable memory capacity, the control unit 10 advances the compression process to the process of step S7. On the other hand, if the code amount of the entire image data is greater than the allocatable memory capacity, the control unit 10 advances the compression process to the process of step S9.

ステップS7の処理では、制御部10が、圧縮された画像データを記憶するための画像メモリ7の記憶領域を確保する。これにより、ステップS7の処理は完了し、圧縮処理はステップS8の処理に進める。   In the process of step S7, the control unit 10 secures a storage area of the image memory 7 for storing the compressed image data. Thereby, the process of step S7 is completed and the compression process proceeds to the process of step S8.

ステップS8の処理では、制御部10が、プロッタ画像圧縮/伸長コントローラ5を制御することにより、画像メモリ7から画像処理コントローラ4により画像処理された画像データを読み取り、読み取られた画像データを圧縮する。そしてプロッタ画像圧縮/伸長コントローラ5は、圧縮された画像データを画像メモリ7に書き込む。これにより、ステップS8の処理は完了し、一連の圧縮処理は終了する。   In the process of step S8, the control unit 10 controls the plotter image compression / decompression controller 5 to read the image data processed by the image processing controller 4 from the image memory 7 and compress the read image data. . Then, the plotter image compression / decompression controller 5 writes the compressed image data in the image memory 7. Thereby, the process of step S8 is completed and a series of compression processes are complete | finished.

ステップS9の処理では、制御部10が、ハードディスクコントローラ8を制御することにより、画像メモリ7から画像処理コントローラ4により画像処理された画像データを読み取り、読み取られた画像データをHDD9に格納する。これにより、ステップS9の処理は完了し、一連の圧縮処理は終了する。   In the process of step S <b> 9, the control unit 10 controls the hard disk controller 8 to read the image data image-processed by the image processing controller 4 from the image memory 7 and store the read image data in the HDD 9. Thereby, the process of step S9 is completed and a series of compression processes are complete | finished.

以上の説明から明らかなように、本発明の第1の実施形態となる圧縮処理では、画像処理コントローラ4が、画像処理された画像データの画素情報を解析することにより圧縮処理後の画像データの符号量を予測する。すなわち本発明の第1の実施形態となる圧縮処理では、画像処理コントローラ4が、画像データの圧縮処理が行われる前に画像データの符号量を予測する。従って本発明の第1の実施形態となる圧縮処理によれば、圧縮処理された画像データを保存するためにメモリの記憶容量を余分に確保する必要がなくなるので、画像データの圧縮処理に要するメモリの記憶容量を削減することができる。   As is apparent from the above description, in the compression processing according to the first embodiment of the present invention, the image processing controller 4 analyzes the pixel information of the image data that has undergone image processing to analyze the image data after the compression processing. Predict the code amount. That is, in the compression processing according to the first embodiment of the present invention, the image processing controller 4 predicts the code amount of the image data before the image data compression processing is performed. Therefore, according to the compression processing according to the first embodiment of the present invention, it is not necessary to secure an extra memory capacity for storing the compressed image data, so that the memory required for the compression processing of the image data is eliminated. Storage capacity can be reduced.

また本発明の第1の実施形態となる圧縮処理では、制御部10が、画像データ全体の符号量が割当可能メモリ量以上である場合、ハードディスクコントローラ8を制御することにより、画像データをHDD9に格納する。すなわち本発明の第1の実施形態となる圧縮処理では、制御部10が、画像データ全体の符号量が割当可能メモリ量以上である場合、プロッタ画像圧縮/伸長コントローラ5を起動させないので、余計なデータ転送動作がなくなり、画像形成装置1全体のパフォーマンスを向上させることができる。   In the compression processing according to the first embodiment of the present invention, the control unit 10 controls the hard disk controller 8 to transfer the image data to the HDD 9 when the code amount of the entire image data is equal to or larger than the allocatable memory amount. Store. That is, in the compression processing according to the first embodiment of the present invention, the control unit 10 does not activate the plotter image compression / decompression controller 5 when the code amount of the entire image data is greater than or equal to the allocatable memory amount. The data transfer operation is eliminated, and the overall performance of the image forming apparatus 1 can be improved.

〔第2の実施形態〕
次に、図4乃至図7を参照して、本発明の第2の実施形態となる画像形成装置の構成及びその圧縮処理動作について説明する。
[Second Embodiment]
Next, the configuration of the image forming apparatus according to the second embodiment of the present invention and the compression processing operation thereof will be described with reference to FIGS.

〔構成〕
本発明の第2の実施形態となる画像形成装置は、上記第1の実施形態の画像形成装置と同じ構成を有する。但し、本実施形態では、スキャナ画像伸長コントローラ3,画像処理コントローラ4,プロッタ画像圧縮/伸長コントローラ5,及びハードディスクコントローラ8は、画像メモリ7からどの程度のデータ量の画像データを読み書きするかを規定するディスクリプタ情報を有する。このディスクリプタ情報は、それぞれのコントローラ内部のレジスタ内に格納され、図4に示すように、次のディスクリプタ情報の格納アドレスを示すチェーン先アドレス,読み書きする画像データの先頭アドレスを示すデータ転送先アドレス,読み書きする画像データのデータ量をライン数で示すデータ転送ライン数,及び設定されたライン数のデータ転送が終了した場合にCPU割込が発生するか否かを示すフォーマット情報により構成されている。本発明では、このディスクリプタ情報により分割される画像データの単位をバンドと表現する。従って、このバンド単位でモードやフレーム情報等を変えることができる。
〔Constitution〕
The image forming apparatus according to the second embodiment of the present invention has the same configuration as the image forming apparatus according to the first embodiment. However, in this embodiment, the scanner image expansion controller 3, the image processing controller 4, the plotter image compression / decompression controller 5, and the hard disk controller 8 define how much image data is read from and written to the image memory 7. Descriptor information. This descriptor information is stored in a register in each controller. As shown in FIG. 4, a chain destination address indicating the storage address of the next descriptor information, a data transfer destination address indicating the head address of image data to be read and written, It consists of data transfer line number indicating the amount of image data to be read and written in the number of lines, and format information indicating whether or not a CPU interrupt occurs when data transfer of the set number of lines is completed. In the present invention, a unit of image data divided by this descriptor information is expressed as a band. Therefore, the mode, frame information, etc. can be changed for each band.

〔圧縮処理動作〕
このような構成を有する画像形成装置は、以下に示す圧縮処理動作を実行することにより、画像データの圧縮処理に要する画像メモリ7の記憶容量を削減する。以下、図5に示すフローチャートを参照して、圧縮処理を実行する際の画像形成装置の動作の流れを説明する。
[Compression processing operation]
The image forming apparatus having such a configuration reduces the storage capacity of the image memory 7 required for image data compression processing by executing the following compression processing operation. Hereinafter, the operation flow of the image forming apparatus when executing the compression process will be described with reference to the flowchart shown in FIG.

図5に示すフローチャートは、画像データの画像処理を完了したタイミングで開始となり、圧縮処理はステップS11の処理に進む。なおこの圧縮処理は、画像データのページ単位毎に繰り返し実行されるものとする。   The flowchart shown in FIG. 5 starts at the timing when the image processing of the image data is completed, and the compression processing proceeds to processing in step S11. This compression process is repeatedly executed for each page of image data.

ステップS11の処理では、画像処理コントローラ4が、1バンドあたりの画像データの符号量を計数するための符号量カウンタNの値を0にリセットする。これにより、ステップS11の処理は完了し、圧縮処理はステップS12の処理に進む。   In the process of step S11, the image processing controller 4 resets the value of the code amount counter N for counting the code amount of the image data per band to 0. Thereby, the process of step S11 is completed and a compression process progresses to the process of step S12.

ステップS12の処理では、画像処理コントローラ4が、ディスクリプタ情報を参照して、複数のバンドのうちの1つのバンドを抽出する。そして画像処理コントローラ4は、抽出されたバンドを構成する画素の情報(画素情報)を抽出し、抽出された画素情報を今回の処理対象の画素情報として前回の処理対象の画素情報と比較する。比較の結果、今回の処理対象の画素情報が前回の処理対象の画素情報と同じである場合、画像処理コントローラ4は圧縮処理をステップS14の処理に進める。一方、今回の処理対象の画素情報が前回の処理対象の画素情報と異なる場合には、画像処理コントローラ4は圧縮処理をステップS13の処理に進める。   In the process of step S12, the image processing controller 4 refers to the descriptor information and extracts one band from the plurality of bands. Then, the image processing controller 4 extracts information (pixel information) of the pixels constituting the extracted band, and compares the extracted pixel information with the pixel information of the previous processing target as the pixel information of the current processing target. As a result of the comparison, when the pixel information of the current process target is the same as the previous pixel information of the process target, the image processing controller 4 advances the compression process to the process of step S14. On the other hand, when the pixel information of the current process target is different from the pixel information of the previous process target, the image processing controller 4 advances the compression process to the process of step S13.

ステップS13の処理では、画像処理コントローラ4が、符号量カウンタNの値を増数する。これにより、ステップS13の処理は完了し、圧縮処理はステップS14の処理に進む。   In the process of step S13, the image processing controller 4 increments the value of the code amount counter N. Thereby, the process of step S13 is completed and the compression process proceeds to the process of step S14.

ステップS14の処理では、画像処理コントローラ4が、前回の処理対象の画素情報を今回の処理対象の画素情報に書き換える。これにより、ステップS14の処理は完了し、圧縮処理はステップS15の処理に進む。   In the process of step S14, the image processing controller 4 rewrites the previous pixel information to be processed with the pixel information to be processed this time. Thereby, the process of step S14 is completed, and the compression process proceeds to the process of step S15.

ステップS15の処理では、画像処理コントローラ4が、ステップS12の処理により抽出されたバンドに含まれる全ての画素に対する処理が完了したか否かを判別する。判別の結果、処理が完了していない場合、画像処理コントローラ4は圧縮処理をステップS12の処理に戻す。一方、処理が完了した場合には、画像処理コントローラ4は圧縮処理をステップS16の処理に進める。   In the process of step S15, the image processing controller 4 determines whether or not the process for all the pixels included in the band extracted by the process of step S12 has been completed. If the result of determination is that processing has not been completed, the image processing controller 4 returns the compression processing to the processing in step S12. On the other hand, when the process is completed, the image processing controller 4 advances the compression process to the process of step S16.

ステップS16の処理では、画像処理コントローラ4が、図6に示すように、ステップS12の処理により抽出されたバンドに対応するディスクリプタ情報のデータ転送ライン数が記述されているフィールドAに書き戻し処理を行ったか否かの有無と符号量カウンタNの値を書き戻す。また制御部10が、同様にして、画像処理コントローラ4のディスクリプタ情報に基づいて、プロッタ画像圧縮/伸長コントローラ5の出力側のディスクリプタ情報について、データ転送ライン数が記述されているフィールドAに書き戻し処理を行ったか否かの有無と符号量カウンタNの値を書き戻す。これにより、ステップS16の処理は完了し、圧縮処理はステップS17の処理に進む。   In the process of step S16, as shown in FIG. 6, the image processing controller 4 performs a write-back process to the field A in which the number of data transfer lines of descriptor information corresponding to the band extracted by the process of step S12 is described. Whether or not it has been performed and the value of the code amount counter N are written back. Similarly, the control unit 10 writes back the descriptor information on the output side of the plotter image compression / decompression controller 5 to the field A in which the number of data transfer lines is described based on the descriptor information of the image processing controller 4. Whether the process has been performed or not and the value of the code amount counter N are written back. Thereby, the process of step S16 is completed, and the compression process proceeds to the process of step S17.

ステップS17の処理では、画像処理コントローラ4が、画像データの転送が完了したか否か(画像データを構成する全てのバンドに対する処理が完了したか否か)を判別する。判別の結果、画像データの転送が完了していない(画像データを構成する全てのバンドに対する処理が完了していない)場合、画像処理コントローラ4は圧縮処理をステップS12の処理に戻す。一方、画像データの転送が完了した(画像データを構成する全てのバンドに対する処理が完了した)場合には、画像処理コントローラ4は、一連の圧縮処理を終了する。   In the process of step S17, the image processing controller 4 determines whether or not the transfer of the image data has been completed (whether or not the processing has been completed for all the bands constituting the image data). As a result of the determination, if the transfer of the image data is not completed (the process for all the bands constituting the image data is not completed), the image processing controller 4 returns the compression process to the process of step S12. On the other hand, when the transfer of the image data is completed (processing for all the bands constituting the image data is completed), the image processing controller 4 ends the series of compression processing.

なおこの圧縮処理が実行されている際、制御部10は、プロッタ画像圧縮/伸長コントローラ5の画像データの読み込み動作が画像処理コントローラ4の画像データの書き込み動作に追いつかないデータ量(例えば2バンド分の画像データ量)が画像メモリ7内にあるか否かを判別する。そしてそのような画像データ量がある場合、制御部10は、プロッタ画像圧縮/伸長コントローラ5を起動することにより画像データの圧縮動作を実行する。   When this compression processing is being executed, the control unit 10 determines the amount of data (for example, for two bands) that the image data reading operation of the plotter image compression / decompression controller 5 cannot catch up with the image data writing operation of the image processing controller 4. It is determined whether or not the image data amount is in the image memory 7. If there is such an amount of image data, the control unit 10 activates the plotter image compression / decompression controller 5 to execute the image data compression operation.

以上の説明から明らかなように、本発明の第2の実施形態となる圧縮処理では、画像処理コントローラ4が、画像処理された画像データの画素情報を解析することにより予測された画像データの符号量をディスクリプタ情報に書き戻し、制御部10が、書き戻されたディスクリプタ情報に基づいて、プロッタ画像圧縮/伸長コントローラ5の出力側のディスクリプタ情報を書き換える。従って、本発明の第2の実施形態となる圧縮処理によれば、上記第1の実施形態の圧縮処理により得られる効果に加えて、1ページ分の符号量を予測する前にバンド単位で圧縮機能を動作させることが可能となり、画像形成装置1全体のパフォーマンスを向上させることができるという効果が得られる。   As is apparent from the above description, in the compression processing according to the second embodiment of the present invention, the image processing controller 4 analyzes the pixel information of the image data subjected to the image processing, and predicts the code of the image data. The amount is written back into the descriptor information, and the control unit 10 rewrites the descriptor information on the output side of the plotter image compression / decompression controller 5 based on the written back descriptor information. Therefore, according to the compression processing according to the second embodiment of the present invention, in addition to the effect obtained by the compression processing of the first embodiment, compression is performed in band units before predicting the code amount for one page. The function can be operated, and the effect that the performance of the entire image forming apparatus 1 can be improved is obtained.

〔第3の実施形態〕
次に、図7を参照して、本発明の第3の実施形態となる画像形成装置の圧縮処理動作について説明する。なお本実施形態の画像形成装置の構成は、上記第2の実施形態の画像形成装置の構成と同じであるので、以下ではその説明を省略する。
[Third Embodiment]
Next, the compression processing operation of the image forming apparatus according to the third embodiment of the present invention will be described with reference to FIG. The configuration of the image forming apparatus according to the present embodiment is the same as that of the image forming apparatus according to the second embodiment, and thus the description thereof is omitted below.

〔圧縮処理動作〕
本実施形態の画像形成装置は、以下に示す圧縮処理動作を実行することにより、画像データの圧縮処理に要する画像メモリ7の記憶容量を削減する。以下、図7に示すフローチャートを参照して、圧縮処理を実行する際の画像形成装置の動作の流れを説明する。
[Compression processing operation]
The image forming apparatus according to the present embodiment reduces the storage capacity of the image memory 7 required for image data compression processing by executing the following compression processing operation. The operation flow of the image forming apparatus when executing the compression process will be described below with reference to the flowchart shown in FIG.

図7に示すフローチャートは、画像データの画像処理を完了したタイミングで開始となり、圧縮処理はステップS11の処理に進む。圧縮処理はステップS21の処理に進む。なおこの圧縮処理は、画像データのページ単位毎に繰り返し実行されるものとする。   The flowchart shown in FIG. 7 starts at the timing when the image processing of the image data is completed, and the compression processing proceeds to processing in step S11. The compression process proceeds to step S21. This compression process is repeatedly executed for each page of image data.

ステップS21の処理では、画像処理コントローラ4が、1バンドあたりの画像データの符号量を計数するための符号量カウンタNの値を0にリセットする。これにより、ステップS21の処理は完了し、圧縮処理はステップS22の処理に進む。   In step S21, the image processing controller 4 resets the value of the code amount counter N for counting the code amount of the image data per band to zero. Thereby, the process of step S21 is completed and a compression process progresses to the process of step S22.

ステップS22の処理では、画像処理コントローラ4が、複数のバンドのうちの1つのバンドを抽出する。そして画像処理コントローラ4は、抽出されたバンドを構成する画素の情報(画素情報)を抽出し、抽出された画素情報を今回の処理対象の画素情報として前回の処理対象の画素情報と比較する。比較の結果、今回の処理対象の画素情報が前回の処理対象の画素情報と同じである場合、画像処理コントローラ4は圧縮処理をステップS24の処理に進める。一方、今回の処理対象の画素情報が前回の処理対象の画素情報と異なる場合には、画像処理コントローラ4は圧縮処理をステップS23の処理に進める。   In the process of step S22, the image processing controller 4 extracts one band from the plurality of bands. Then, the image processing controller 4 extracts information (pixel information) of the pixels constituting the extracted band, and compares the extracted pixel information with the pixel information of the previous processing target as the pixel information of the current processing target. As a result of the comparison, when the pixel information of the current process target is the same as the previous pixel information of the process target, the image processing controller 4 advances the compression process to the process of step S24. On the other hand, when the pixel information of the current process target is different from the pixel information of the previous process target, the image processing controller 4 advances the compression process to the process of step S23.

ステップS23の処理では、画像処理コントローラ4が、符号量カウンタNの値を増数する。これにより、ステップS23の処理は完了し、圧縮処理はステップS24の処理に進む。   In the process of step S23, the image processing controller 4 increments the value of the code amount counter N. Thereby, the process of step S23 is completed, and the compression process proceeds to the process of step S24.

ステップS24の処理では、画像処理コントローラ4が、前回の処理対象の画素情報を今回の処理対象の画素情報に書き換える。これにより、ステップS24の処理は完了し、圧縮処理はステップS25の処理に進む。   In step S24, the image processing controller 4 rewrites the previous pixel information to be processed with the pixel information to be processed this time. Thereby, the process of step S24 is completed, and the compression process proceeds to the process of step S25.

ステップS25の処理では、画像処理コントローラ4が、ステップS22の処理により抽出されたバンドに含まれる全ての画素に対する処理が完了したか否かを判別する。判別の結果、処理が完了していない場合、画像処理コントローラ4は圧縮処理をステップS22の処理に戻す。一方、処理が完了した場合には、画像処理コントローラ4は圧縮処理をステップS26の処理に進める。   In the process of step S25, the image processing controller 4 determines whether or not the process for all the pixels included in the band extracted by the process of step S22 has been completed. If the result of determination is that processing has not been completed, the image processing controller 4 returns the compression processing to the processing in step S22. On the other hand, when the process is completed, the image processing controller 4 advances the compression process to the process of step S26.

ステップS26の処理では、画像処理コントローラ4が、ステップS22の処理により抽出されたバンドの画像データ量が符号量カウンタNの値以上であるか否かを判別する。判別の結果、画像データ量が符号量カウンタNの値以上である場合、画像処理コントローラ4は圧縮処理をステップS27の処理に進める。一方、画像データ量が符号量カウンタNの値未満である場合には、画像処理コントローラ4は圧縮処理をステップS28の処理に進める。   In the process of step S26, the image processing controller 4 determines whether or not the image data amount of the band extracted by the process of step S22 is greater than or equal to the value of the code amount counter N. As a result of the determination, if the amount of image data is equal to or greater than the value of the code amount counter N, the image processing controller 4 advances the compression process to the process of step S27. On the other hand, when the amount of image data is less than the value of the code amount counter N, the image processing controller 4 advances the compression process to the process of step S28.

ステップS27の処理では、画像処理コントローラ4が、図6に示すように、ステップS12の処理により抽出されたバンドに対応するディスクリプタ情報のデータ転送ライン数が記述されているフィールドAに書き戻し処理を行ったか否かの有無と符号量カウンタNの値を書き戻す。また制御部10が、画像処理コントローラ4のディスクリプタ情報に基づいて、同様にして、プロッタ画像圧縮/伸長コントローラ5の出力側のディスクリプタ情報について、データ転送ライン数が記述されているフィールドAに書き戻し処理を行ったか否かの有無と符号量カウンタNの値を書き戻す。これにより、ステップS27の処理は完了し、圧縮処理はステップS29の処理に進む。   In the process of step S27, as shown in FIG. 6, the image processing controller 4 performs a write-back process to the field A in which the number of data transfer lines of descriptor information corresponding to the band extracted by the process of step S12 is described. Whether or not it has been performed and the value of the code amount counter N are written back. Similarly, the control unit 10 writes back the descriptor information on the output side of the plotter image compression / decompression controller 5 to the field A in which the number of data transfer lines is described based on the descriptor information of the image processing controller 4. Whether the process has been performed or not and the value of the code amount counter N are written back. Thereby, the process of step S27 is completed, and the compression process proceeds to the process of step S29.

ステップS28の処理では、制御部10が、ハードディスクコントローラ8を制御することにより、ステップS22の処理により抽出されたバンドの画像データをHDD9に転送する。これにより、ステップ28の処理は完了し、圧縮処理はステップS29の処理に進む。   In the process of step S28, the control unit 10 controls the hard disk controller 8 to transfer the band image data extracted by the process of step S22 to the HDD 9. Thereby, the process of step 28 is completed, and the compression process proceeds to the process of step S29.

ステップS29の処理では、画像処理コントローラ4が、画像データの転送が完了したか否か(画像データを構成する全てのバンドに対する処理が完了したか否か)を判別する。判別の結果、画像データの転送が完了していない(画像データを構成する全てのバンドに対する処理が完了していない)場合、画像処理コントローラ4は圧縮処理をステップS21の処理に戻す。一方、画像データの転送が完了した(画像データを構成する全てのバンドに対する処理が完了した)場合には、画像処理コントローラ4は、圧縮処理をステップS30の処理に進める。   In the process of step S29, the image processing controller 4 determines whether or not the transfer of the image data has been completed (whether or not the processing has been completed for all the bands constituting the image data). As a result of the determination, if the transfer of the image data is not completed (the process for all the bands constituting the image data is not completed), the image processing controller 4 returns the compression process to the process of step S21. On the other hand, when the transfer of the image data is completed (processing for all the bands constituting the image data is completed), the image processing controller 4 advances the compression process to the process of step S30.

ステップS30の処理では、制御部10が、プロッタ画像圧縮/伸長コントローラ5を起動することにより、ディスクリプタ情報が書き換えられたバンドの画像データの圧縮動作を実行する。これにより、ステップS30の処理は完了し、一連の圧縮処理は終了する。   In the processing of step S30, the control unit 10 activates the plotter image compression / decompression controller 5 to execute the compression operation of the image data of the band in which the descriptor information is rewritten. Thereby, the process of step S30 is completed and a series of compression processes are complete | finished.

以上の説明から明らかなように、本発明の第3の実施形態となる圧縮処理では、プロッタ画像圧縮/伸長コントローラ5が、画像データ量が予測された符号量未満のバンドの画像データに対してのみ圧縮処理を実行し、画像データ量が予測された符号量以上のバンドの画像データをHDD9に記憶する。従って、本発明の第3の実施形態となる圧縮処理によれば、上記第1及び第2の実施形態となる圧縮処理により得られる効果に加えて、パフォーマンスの向上と画像メモリ7の記憶容量削減という効果を得ることができる。   As is apparent from the above description, in the compression processing according to the third embodiment of the present invention, the plotter image compression / decompression controller 5 applies to the image data of the band whose image data amount is less than the predicted code amount. Only the compression process is executed, and the image data of the band whose image data amount is larger than the predicted code amount is stored in the HDD 9. Therefore, according to the compression processing according to the third embodiment of the present invention, in addition to the effects obtained by the compression processing according to the first and second embodiments, the performance is improved and the storage capacity of the image memory 7 is reduced. The effect that can be obtained.

〔第4の実施形態〕
最後に、図8を参照して、本発明の第4の実施形態となる画像形成装置の圧縮処理動作について説明する。なお本実施形態の画像形成装置の構成は、上記第1の実施形態の画像形成装置の構成と同じであるので、以下ではその説明を省略する。
[Fourth Embodiment]
Finally, the compression processing operation of the image forming apparatus according to the fourth embodiment of the present invention will be described with reference to FIG. The configuration of the image forming apparatus according to the present embodiment is the same as that of the image forming apparatus according to the first embodiment, and thus the description thereof is omitted below.

〔圧縮処理動作〕
本実施形態の画像形成装置は、以下に示す圧縮処理動作を実行することにより、画像データの圧縮処理に要する画像メモリ7の記憶容量を削減する。以下、図8に示すフローチャートを参照して、圧縮処理を実行する際の画像形成装置の動作の流れを説明する。
[Compression processing operation]
The image forming apparatus according to the present embodiment reduces the storage capacity of the image memory 7 required for image data compression processing by executing the following compression processing operation. Hereinafter, the operation flow of the image forming apparatus when executing the compression process will be described with reference to the flowchart shown in FIG.

図8に示すフローチャートは、画像データの画像処理が完了したタイミングで開始となり、圧縮処理はステップS41の処理に進む。なおこの圧縮処理は、画像データのページ単位毎に繰り返し実行されるものとする。   The flowchart shown in FIG. 8 starts at the timing when the image processing of the image data is completed, and the compression processing proceeds to the processing of step S41. This compression process is repeatedly executed for each page of image data.

ステップS41の処理では、制御部10が、符号量を算出する際に間引く画像データのライン数を画像処理コントローラ4に通知する。これにより、ステップS41の処理は完了し、圧縮処理はステップS42の処理に進む。   In the process of step S41, the control unit 10 notifies the image processing controller 4 of the number of lines of image data to be thinned out when calculating the code amount. Thereby, the process of step S41 is completed and the compression process proceeds to the process of step S42.

ステップS42の処理では、画像処理コントローラ4が、画像データの符号量を計数するための符号量カウンタNの値を0にリセットする。これにより、ステップS42の処理は完了し、圧縮処理はステップS43の処理に進む。   In the process of step S42, the image processing controller 4 resets the value of the code amount counter N for counting the code amount of the image data to 0. Thereby, the process of step S42 is completed and a compression process progresses to the process of step S43.

ステップS43の処理では、画像処理コントローラ4が、転送する画像データを構成するラインを抽出する。2回目以後の処理において画像処理コントローラ4は、ステップS41の処理により指定されたライン数に従ってラインを間引いて抽出する。そして画像処理コントローラ4は、抽出されたラインを構成する画素の情報(画素情報)を抽出し、抽出された画素情報を今回の処理対象の画素情報として前回の処理対象の画素情報と比較する。比較の結果、今回の処理対象の画素情報が前回の処理対象の画素情報と同じである場合、画像処理コントローラ4は圧縮処理をステップS44の処理に進める。一方、今回の処理対象の画素情報が前回の処理対象の画素情報と異なる場合には、画像処理コントローラ4は圧縮処理をステップS43の処理に進める。   In the process of step S43, the image processing controller 4 extracts lines constituting the image data to be transferred. In the second and subsequent processes, the image processing controller 4 thins out and extracts lines according to the number of lines designated by the process of step S41. Then, the image processing controller 4 extracts the information (pixel information) of the pixels constituting the extracted line, and compares the extracted pixel information with the pixel information of the previous processing target as the pixel information of the current processing target. As a result of the comparison, when the pixel information of the current process target is the same as the previous pixel information of the process target, the image processing controller 4 advances the compression process to the process of step S44. On the other hand, when the pixel information of the current process target is different from the pixel information of the previous process target, the image processing controller 4 advances the compression process to the process of step S43.

ステップS44の処理では、画像処理コントローラ4が、符号量カウンタNの値を増数する。これにより、ステップS44の処理は完了し、圧縮処理はステップS45の処理に進む。   In the process of step S44, the image processing controller 4 increments the value of the code amount counter N. Thereby, the process of step S44 is completed and the compression process proceeds to the process of step S45.

ステップS45の処理では、画像処理コントローラ4が、前回の処理対象の画素情報を今回の処理対象の画素情報に書き換える。これにより、ステップS45の処理は完了し、圧縮処理はステップS46の処理に進む。   In step S45, the image processing controller 4 rewrites the previous pixel information to be processed into the pixel information to be processed this time. Thereby, the process of step S45 is completed, and the compression process proceeds to the process of step S46.

ステップS46の処理では、画像処理コントローラ4が、ステップS43の処理により抽出されたラインに含まれる全ての画素に対する処理が完了したか否かを判別する。判別の結果、処理が完了していない場合、画像処理コントローラ4は圧縮処理をステップS43の処理に戻す。一方、処理が完了した場合には、画像処理コントローラ4は圧縮処理をステップS47の処理に進める。   In the process of step S46, the image processing controller 4 determines whether or not the process for all the pixels included in the line extracted by the process of step S43 has been completed. If the result of determination is that processing has not been completed, the image processing controller 4 returns the compression processing to the processing in step S43. On the other hand, when the process is completed, the image processing controller 4 advances the compression process to the process of step S47.

ステップS47の処理では、画像処理コントローラ4が、主走査サイズが符号量カウンタNの値以上であるか否かを判別する。判別の結果、主走査サイズが符号量カウンタNの値以上である場合、画像処理コントローラ4は圧縮処理をステップS49の処理に進める。一方、主走査サイズが符号量カウンタNの値未満である場合には、画像処理コントローラ4は圧縮処理をステップS48の処理に進める。   In the process of step S47, the image processing controller 4 determines whether or not the main scanning size is equal to or greater than the value of the code amount counter N. If the main scanning size is greater than or equal to the value of the code amount counter N as a result of determination, the image processing controller 4 advances the compression process to the process of step S49. On the other hand, when the main scanning size is less than the value of the code amount counter N, the image processing controller 4 advances the compression process to the process of step S48.

ステップS48の処理では、画像処理コントローラ4が、圧縮処理によって膨張するライン数を計数するための符号膨張ライン数カウンタの値を1増数する。これにより、ステップS48の処理は完了し、圧縮処理はステップS49の処理に進む。   In the process of step S48, the image processing controller 4 increments the value of the code expansion line number counter for counting the number of lines expanded by the compression process by one. Thereby, the process of step S48 is completed, and the compression process proceeds to the process of step S49.

ステップS49の処理では、画像処理コントローラ4が、画像データの転送が完了したか否か(指定された全てのラインに対する処理が完了したか否か)を判別する。判別の結果、画像データの転送が完了していない(指定された全てのラインに対する処理が完了していない)場合、画像処理コントローラ4は圧縮処理をステップS52の処理に戻す。一方、画像データの転送が完了した(指定された全てのラインに対する処理が完了した)場合には、画像処理コントローラ4は、圧縮処理をステップS50の処理に進める。   In step S49, the image processing controller 4 determines whether transfer of image data has been completed (whether processing has been completed for all designated lines). As a result of the determination, when the transfer of the image data is not completed (the process for all the designated lines is not completed), the image processing controller 4 returns the compression process to the process of step S52. On the other hand, when the transfer of the image data is completed (processing for all the designated lines is completed), the image processing controller 4 advances the compression process to the process of step S50.

ステップS50の処理では、制御部10が、符号膨張ライン数カウンタの値をサンプルライン数で除算した値が所定値以上であるか否かを判別する。判別の結果、除算値が所定値以上である場合、制御部10は圧縮処理をステップS52の処理に進める。一方、除算値が所定値未満である場合には、制御部10は圧縮処理をステップS51の処理に進める。   In the process of step S50, the control unit 10 determines whether or not a value obtained by dividing the value of the code expansion line number counter by the number of sample lines is equal to or greater than a predetermined value. As a result of the determination, if the division value is equal to or greater than the predetermined value, the control unit 10 advances the compression process to the process of step S52. On the other hand, when the division value is less than the predetermined value, the control unit 10 advances the compression process to the process of step S51.

ステップS51の処理では、制御部10が、プロッタ画像圧縮/伸長コントローラ5を制御することにより、画像メモリ7から画像処理コントローラ4により画像処理された画像データを読み取り、読み取られた画像データを圧縮する。そしてプロッタ画像圧縮/伸長コントローラ5は、圧縮された画像データを画像メモリ7に書き込む。これにより、ステップS51の処理は完了し、一連の圧縮処理は終了する。   In the processing of step S51, the control unit 10 controls the plotter image compression / decompression controller 5 to read the image data image-processed by the image processing controller 4 from the image memory 7, and compress the read image data. . Then, the plotter image compression / decompression controller 5 writes the compressed image data in the image memory 7. Thereby, the process of step S51 is completed and a series of compression processes are complete | finished.

ステップS52の処理では、制御部10が、ハードディスクコントローラ8を制御することにより、画像処理コントローラ4により画像処理された画像データをHDD9に転送する。これにより、ステップ52の処理は完了し、一連の圧縮処理は終了する。   In the process of step S <b> 52, the control unit 10 controls the hard disk controller 8 to transfer the image data processed by the image processing controller 4 to the HDD 9. Thereby, the process of step 52 is completed and a series of compression processes are complete | finished.

以上の説明から明らかなように、本発明の第4の実施形態となる圧縮処理によれば、画像処理コントローラ4が、指定されたライン毎に間引いて画像データの画素情報を解析することにより、画像データの符号量を予測する。従って、本発明の第4の実施形態となる画像処理によれば、上記第1の実施形態となる画像処理により得られる効果に加えて、画像処理コントローラ4の計算負荷が減り、画像形成装置全体のパフォーマンスが向上するという効果を得ることができる。   As is clear from the above description, according to the compression processing according to the fourth embodiment of the present invention, the image processing controller 4 analyzes the pixel information of the image data by thinning out for each designated line. Predict the code amount of image data. Therefore, according to the image processing according to the fourth embodiment of the present invention, in addition to the effect obtained by the image processing according to the first embodiment, the calculation load of the image processing controller 4 is reduced, and the entire image forming apparatus is The effect of improving the performance of can be obtained.

以上、本発明者によってなされた発明を適用した実施の形態について説明したが、この実施の形態による本発明の開示の一部をなす記述及び図面により本発明は限定されることはない。例えば上記の圧縮処理動作をコンピュータプログラムにより規定し、各部のCPUにコンピュータプログラムを実行させることにより、上記の圧縮処理動作を実現するようにしてもよい。この場合、コンピュータプログラムは、ROM等に予め組み込まれて提供される。   As mentioned above, although embodiment which applied the invention made | formed by this inventor was demonstrated, this invention is not limited with the description and drawing which make a part of indication of this invention by this embodiment. For example, the above-described compression processing operation may be realized by defining the above-described compression processing operation by a computer program and causing the CPU of each unit to execute the computer program. In this case, the computer program is provided by being incorporated in advance in a ROM or the like.

但し、上記コンピュータプログラムは、インストール可能な形式又は実行可能な形式のファイルでCD-ROM,フレキシブルディスク(FD),CD-R,DVD(Digital Versatile Disk)等のコンピュータで読み取り可能な記録媒体に記録して提供するように構成してもよい。また上記コンピュータプログラムを、インターネット等のネットワークに接続されたコンピュータ上に格納し、ネットワーク経由でダウンロードさせることにより提供するように構成してもよい。また上記コンピュータプログラムをインターネット等のネットワーク経由で提供または配布するように構成してもよい。このように上記実施の形態に基づいて当業者等によりなされる他の実施の形態、実施例及び運用技術等は全て本発明の範疇に含まれる。   However, the above computer program is recorded in a computer-readable recording medium such as a CD-ROM, flexible disk (FD), CD-R, DVD (Digital Versatile Disk), etc. in an installable or executable format file. And may be provided. The computer program may be provided by being stored on a computer connected to a network such as the Internet and downloaded via the network. The computer program may be provided or distributed via a network such as the Internet. As described above, all other embodiments, examples, operation techniques, and the like made by those skilled in the art based on the above-described embodiments are all included in the scope of the present invention.

1 画像形成装置
2 画像データ読取部
3 スキャナ画像伸長コントローラ
4 画像処理コントローラ
5 プロッタ画像圧縮/伸長コントローラ
6 プロッタ装置
7 画像メモリ
8 ハードディスクコントローラ
9 ハードディスクドライブ装置(HDD)
10 制御部
DESCRIPTION OF SYMBOLS 1 Image forming apparatus 2 Image data reading part 3 Scanner image expansion | extension controller 4 Image processing controller 5 Plotter image compression / decompression controller 6 Plotter apparatus 7 Image memory 8 Hard disk controller 9 Hard disk drive apparatus (HDD)
10 Control unit

特開平5−161108号公報JP-A-5-161108 特開2003−11440号公報JP 2003-11440 A 特開2008−54209号公報JP 2008-54209 A

Claims (10)

画像データを記憶する記憶手段と、
画像データに対して画像処理を施し、画像処理が施された画像データを前記記憶手段に転送する画像処理手段と、
前記画像処理手段により画像処理が施された画像データを圧縮し、圧縮された画像データを前記記憶手段に転送する圧縮手段と、
前記画像処理手段により画像処理が施された画像データの画素情報を解析することにより、前記圧縮手段により圧縮される画像データの符号量を予測する予測手段と、
前記予測手段により予測された符号量と前記記憶手段が前記圧縮手段の出力に割当可能な記憶容量を比較し、比較結果に基づいて前記圧縮手段の動作を制御する制御手段と
を備えることを特徴とする画像処理装置。
Storage means for storing image data;
Image processing means for performing image processing on the image data and transferring the image data subjected to the image processing to the storage means;
Compression means for compressing the image data subjected to image processing by the image processing means, and transferring the compressed image data to the storage means;
A prediction unit that predicts a code amount of the image data compressed by the compression unit by analyzing pixel information of the image data subjected to the image processing by the image processing unit;
A control unit that compares the code amount predicted by the prediction unit with the storage capacity that the storage unit can allocate to the output of the compression unit, and controls the operation of the compression unit based on the comparison result. An image processing apparatus.
前記制御手段は、前記予測手段により予測された符号量が前記圧縮手段の出力に前記記憶手段が割当可能な記憶容量以上の大きさである場合、前記圧縮手段の動作を禁止することを特徴とする請求項1に記載の画像処理装置。   The control means prohibits the operation of the compression means when the code amount predicted by the prediction means is greater than or equal to a storage capacity that the storage means can allocate to the output of the compression means. The image processing apparatus according to claim 1. 前記制御手段は、前記予測手段により予測された符号量が前記圧縮手段の出力に前記記憶手段が割当可能な記憶容量以上の大きさである場合、前記画像処理手段により画像処理が施された画像データを第2の記憶手段に転送することを特徴とする請求項2に記載の画像処理装置。   When the code amount predicted by the prediction unit is greater than or equal to a storage capacity that can be allocated by the storage unit to the output of the compression unit, the control unit performs image processing on the image processed by the image processing unit. The image processing apparatus according to claim 2, wherein the data is transferred to the second storage unit. 前記画像処理手段は、画像データを構成する複数のバンド毎に前記記憶手段に転送する画像データ量を規定するディスクリプタ情報を備え、各バンドのディスクリプタ情報を前記予測手段により予測された各バンドの符号量に書き換え、書き換えられたディスクリプタ情報に従って前記記憶手段に画像データを転送することを特徴とする請求項1乃至請求項3のうち、いずれか1項に記載の画像処理装置。   The image processing means includes descriptor information that defines an amount of image data to be transferred to the storage means for each of a plurality of bands constituting image data, and the descriptor information of each band is encoded by the code of each band predicted by the prediction means. 4. The image processing apparatus according to claim 1, wherein the image data is transferred to the storage unit in accordance with the descriptor information rewritten to a quantity. 前記圧縮手段は、画像データを構成する複数のバンド毎に前記記憶手段に転送する画像データ量を規定するディスクリプタ情報を備え、各バンドのディスクリプタ情報を前記予測手段により予測された各バンドの符号量に書き換え、書き換えられたディスクリプタ情報に従って前記記憶手段に画像データを転送することを特徴とする請求項4に記載の画像処理装置。   The compression means includes descriptor information that defines the amount of image data to be transferred to the storage means for each of a plurality of bands constituting image data, and the descriptor information of each band is the code amount of each band predicted by the prediction means The image processing apparatus according to claim 4, wherein the image data is transferred to the storage unit according to the descriptor information rewritten. 前記圧縮手段は、画像データ量が前記予測手段により予測された符号量以上のバンドのディスクリプタ情報を書き換えることを特徴とする請求項5に記載の画像処理装置。   The image processing apparatus according to claim 5, wherein the compression unit rewrites descriptor information of a band whose image data amount is equal to or larger than a code amount predicted by the prediction unit. 前記制御手段は、画像データ量が前記予測手段により予測された符号量未満のバンドの画像データを第2の記憶手段に転送することを特徴とする請求項5に記載の画像処理装置。   The image processing apparatus according to claim 5, wherein the control unit transfers image data of a band whose image data amount is less than a code amount predicted by the prediction unit to the second storage unit. 前記予測手段は、画像データを指定されたライン毎に間引いて画素情報を解析することにより、前記圧縮手段により圧縮される画像データの符号量を予測することを特徴とする請求項1に記載の画像処理装置。   The prediction unit predicts a code amount of image data compressed by the compression unit by analyzing pixel information by thinning out image data for each designated line. Image processing device. 画像データに対して画像処理を施し、画像処理が施された画像データを記憶手段に転送する画像処理工程と、
画像処理が施された画像データを圧縮し、圧縮された画像データを前記記憶手段に転送する圧縮処理工程と、
画像処理が施された画像データの画素情報を解析することにより、圧縮される画像データの符号量を予測する予測工程と、
予測された符号量と圧縮された画像データの記憶に割当可能な記憶容量を比較し、比較結果に基づいて前記圧縮処理工程を制御する制御工程と
を有することを特徴とする画像処理方法。
An image processing step of performing image processing on the image data and transferring the image data subjected to the image processing to a storage unit;
A compression processing step of compressing the image data subjected to image processing and transferring the compressed image data to the storage means;
A prediction step of predicting a code amount of image data to be compressed by analyzing pixel information of image data subjected to image processing;
An image processing method comprising: a control step of comparing a predicted code amount and a storage capacity that can be allocated to storage of compressed image data, and controlling the compression processing step based on a comparison result.
画像データに対して画像処理を施し、画像処理が施された画像データを記憶手段に転送する画像処理ステップと、
画像処理が施された画像データを圧縮し、圧縮された画像データを前記記憶手段に転送する圧縮処理ステップと、
画像処理が施された画像データの画素情報を解析することにより、圧縮される画像データの符号量を予測する予測ステップと、
予測された符号量と圧縮された画像データの記憶に割当可能な記憶容量を比較し、比較結果に基づいて前記圧縮処理ステップを制御する制御ステップと
をコンピュータに実行させることを特徴とする画像処理プログラム。
An image processing step of performing image processing on the image data and transferring the image data subjected to the image processing to a storage unit;
A compression processing step of compressing the image data subjected to image processing and transferring the compressed image data to the storage means;
A prediction step of predicting a code amount of image data to be compressed by analyzing pixel information of image data subjected to image processing;
An image processing comprising: comparing a predicted code amount with a storage capacity that can be allocated to storage of compressed image data; and causing a computer to execute a control step of controlling the compression processing step based on a comparison result program.
JP2009190430A 2009-08-19 2009-08-19 Image processor, image processing method, and image processing program Pending JP2011044824A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009190430A JP2011044824A (en) 2009-08-19 2009-08-19 Image processor, image processing method, and image processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009190430A JP2011044824A (en) 2009-08-19 2009-08-19 Image processor, image processing method, and image processing program

Publications (1)

Publication Number Publication Date
JP2011044824A true JP2011044824A (en) 2011-03-03

Family

ID=43831938

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009190430A Pending JP2011044824A (en) 2009-08-19 2009-08-19 Image processor, image processing method, and image processing program

Country Status (1)

Country Link
JP (1) JP2011044824A (en)

Similar Documents

Publication Publication Date Title
US20150195553A1 (en) Data decompressing device and non-transitory computer readable medium
US8554003B2 (en) Image data processing apparatus, image data processing method, and computer readable medium
US7570822B2 (en) Image processing apparatus, printer and control method of the image processing
JP4165451B2 (en) Printing system, printing request terminal, compression algorithm selection program, and printing method
JP2006325186A (en) Image processing apparatus
JP2008205636A (en) Image processing device, image processing method of image processing device, and program
JP2006304243A (en) Image processor, printer and image processing method
JP2011044824A (en) Image processor, image processing method, and image processing program
JP2003084933A (en) Image processing device and program
US10089561B2 (en) Generating a raster image region by rendering in parallel plural regions of smaller height and segmenting the generated raster image region into plural regions of smaller width
JP2010073210A (en) Image processing apparatus
JP5441676B2 (en) Image processing apparatus and processing method thereof
JP2009044547A (en) Image processor and image processing method
JP2007030353A (en) Image forming device
JP5782388B2 (en) Image forming apparatus
JP4805194B2 (en) Image forming apparatus and image processing method
JP4363291B2 (en) Image processing apparatus, printer including the same, and control method of image processing apparatus
JP6775558B2 (en) Image stretcher and its control method and program
JP5732765B2 (en) Image data decoding device
JP3997851B2 (en) Image coding apparatus and image coding program
JP2009038740A (en) Image encoding device
JP2016208153A (en) Encoding device and encoding method
JP2007036489A (en) Device and method for processing image data, and image-data processing program
JP2008071054A (en) Data transfer control method, data processor, and image processor
JP2006313415A (en) Image processing apparatus