JP2011044824A - Image processor, image processing method, and image processing program - Google Patents
Image processor, image processing method, and image processing program Download PDFInfo
- 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
Links
Images
Abstract
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 (
しかしながら、従来の画像圧縮技術は、ブロックライン単位やページ単位の圧縮処理を行いながら画像データ全体の符号量を算出,予測する。このため、従来の画像圧縮技術によれば、圧縮処理された画像データを格納するためにメモリの記憶容量を余分に確保しなければならない。 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乃至第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
画像データ読取部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
画像処理コントローラ4は、図示しないCPU及びロジックにより構成されている。画像処理コントローラ4は、制御部10からの動作指示命令に応じて、スキャナ画像伸長コントローラ3により伸長された画像データに対し画像処理を施し、画像処理された画像データを画像メモリ7に出力する。具体的には、画像処理コントローラ4は、画像データ読取部2により読み取られた画像データをプロッタ装置6で印刷出力するために、スキャナ画像伸長コントローラ3により伸長されたJPEG画像をCMYK画像に変換し、CMYK画像を画像メモリ7に出力する。画像処理コントローラ4は、本発明に係る画像処理手段及び予測手段として機能する。
The
プロッタ画像圧縮/伸長コントローラ5は、図示しないCPU及びロジックにより構成されている。プロッタ画像圧縮/伸長コントローラ5は、制御部10からの動作指示命令に応じて、画像メモリ7内に格納されている画像データに対し圧縮/伸長処理を施し、圧縮/伸長処理が施された画像データを画像メモリ7に出力する。プロッタ画像圧縮/伸長コントローラ5は、本発明に係る圧縮手段として機能する。
The plotter image compression /
プロッタ装置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
ハードディスクコントローラ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
〔圧縮処理動作〕
このような構成を有する画像形成装置1は、以下に示す圧縮処理動作を実行することにより、画像データの圧縮処理に要する画像メモリ7の記憶容量を削減する。以下、図2に示すフローチャートを参照して、圧縮処理を実行する際の画像形成装置1の動作の流れを説明する。
[Compression processing operation]
The
図2に示すフローチャートは、画像処理コントローラ4が、画像データの画像処理を完了したタイミングで開始となり、圧縮処理はステップS1の処理に進む。なおこの圧縮処理は、画像処理が施された画像データのページ単位毎に繰り返し実行されるものとする。
The flowchart shown in FIG. 2 starts when the
ステップS1の処理では、画像処理コントローラ4が、画像データの符号量(圧縮画像データ量)を計数するための符号量カウンタNの値を0にリセットする。これにより、ステップS1の処理は完了し、圧縮処理はステップS2の処理に進む。
In the process of step S1, the
ステップS2の処理では、画像処理コントローラ4が、画像メモリ7に転送する画像データを構成する1つの画素の情報(画素情報)を抽出し、抽出された画素情報を今回の処理対象の画素情報として前回の処理対象の画素情報と比較する。比較の結果、今回の処理対象の画素情報が前回の処理対象の画素情報と同じである場合、画像処理コントローラ4は圧縮処理をステップS4の処理に進める。一方、今回の処理対象の画素情報が前回の処理対象の画素情報と異なる場合には、画像処理コントローラ4は圧縮処理をステップS3の処理に進める。
In the process of step S2, the
ステップS3の処理では、画像処理コントローラ4が、符号量カウンタNの値を増数する。符号化カウンタNの増数値は、プロッタ画像圧縮/伸長コントローラ5による画像データの圧縮形式によって異なる。具体的には、その後の処理においてプロッタ画像圧縮/伸長コントローラ5が4byteのK版画像データに対しランレングス符号化処理を施す場合には、図3(a)〜(c)に示すように、画像データの符号量は2byteとなるので、画像処理コントローラ4は符号量カウンタNの値を2増数する。これにより、ステップS3の処理は完了し、圧縮処理はステップS4の処理に進む。
In the process of step S3, the
ステップS4の処理では、画像処理コントローラ4が、前回の処理対象の画素情報を今回の処理対象の画素情報に書き換える。これにより、ステップS4の処理は完了し、圧縮処理はステップS5の処理に進む。
In the process of step S4, the
ステップS5の処理では、画像処理コントローラ4が、画像メモリ7への画像データの転送が完了したか否か(画像データを構成する全ての画素に対する処理が完了したか否か)を判別する。判別の結果、画像データの転送が完了していない(画像データを構成する全ての画素に対する処理が完了していない)場合、画像処理コントローラ4は圧縮処理をステップS2の処理に戻す。一方、画像データの転送が完了した(画像データを構成する全ての画素に対する処理が完了した)場合には、画像処理コントローラ4は、圧縮処理をステップS6の処理に進める。
In step S5, the
ステップS6の処理では、制御部10が、符号量カウンタNの値を画像メモリ7に転送された画像データ全体の符号量と判断し、画像データ全体の符号量が圧縮された画像データの記憶に割り当て可能な画像メモリ7の記憶容量(割当可能メモリ容量)未満であるか否かを判別する。判別の結果、画像データ全体の符号量が割当可能メモリ容量未満である場合、制御部10は圧縮処理をステップS7の処理に進める。一方、画像データ全体の符号量が割当可能メモリ容量以上である場合には、制御部10は圧縮処理をステップS9の処理に進める。
In the process of step S6, the
ステップS7の処理では、制御部10が、圧縮された画像データを記憶するための画像メモリ7の記憶領域を確保する。これにより、ステップS7の処理は完了し、圧縮処理はステップS8の処理に進める。
In the process of step S7, the
ステップS8の処理では、制御部10が、プロッタ画像圧縮/伸長コントローラ5を制御することにより、画像メモリ7から画像処理コントローラ4により画像処理された画像データを読み取り、読み取られた画像データを圧縮する。そしてプロッタ画像圧縮/伸長コントローラ5は、圧縮された画像データを画像メモリ7に書き込む。これにより、ステップS8の処理は完了し、一連の圧縮処理は終了する。
In the process of step S8, the
ステップS9の処理では、制御部10が、ハードディスクコントローラ8を制御することにより、画像メモリ7から画像処理コントローラ4により画像処理された画像データを読み取り、読み取られた画像データをHDD9に格納する。これにより、ステップS9の処理は完了し、一連の圧縮処理は終了する。
In the process of step S <b> 9, the
以上の説明から明らかなように、本発明の第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
また本発明の第1の実施形態となる圧縮処理では、制御部10が、画像データ全体の符号量が割当可能メモリ量以上である場合、ハードディスクコントローラ8を制御することにより、画像データをHDD9に格納する。すなわち本発明の第1の実施形態となる圧縮処理では、制御部10が、画像データ全体の符号量が割当可能メモリ量以上である場合、プロッタ画像圧縮/伸長コントローラ5を起動させないので、余計なデータ転送動作がなくなり、画像形成装置1全体のパフォーマンスを向上させることができる。
In the compression processing according to the first embodiment of the present invention, the
〔第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
〔圧縮処理動作〕
このような構成を有する画像形成装置は、以下に示す圧縮処理動作を実行することにより、画像データの圧縮処理に要する画像メモリ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
ステップS12の処理では、画像処理コントローラ4が、ディスクリプタ情報を参照して、複数のバンドのうちの1つのバンドを抽出する。そして画像処理コントローラ4は、抽出されたバンドを構成する画素の情報(画素情報)を抽出し、抽出された画素情報を今回の処理対象の画素情報として前回の処理対象の画素情報と比較する。比較の結果、今回の処理対象の画素情報が前回の処理対象の画素情報と同じである場合、画像処理コントローラ4は圧縮処理をステップS14の処理に進める。一方、今回の処理対象の画素情報が前回の処理対象の画素情報と異なる場合には、画像処理コントローラ4は圧縮処理をステップS13の処理に進める。
In the process of step S12, the
ステップS13の処理では、画像処理コントローラ4が、符号量カウンタNの値を増数する。これにより、ステップS13の処理は完了し、圧縮処理はステップS14の処理に進む。
In the process of step S13, the
ステップS14の処理では、画像処理コントローラ4が、前回の処理対象の画素情報を今回の処理対象の画素情報に書き換える。これにより、ステップS14の処理は完了し、圧縮処理はステップS15の処理に進む。
In the process of step S14, the
ステップS15の処理では、画像処理コントローラ4が、ステップS12の処理により抽出されたバンドに含まれる全ての画素に対する処理が完了したか否かを判別する。判別の結果、処理が完了していない場合、画像処理コントローラ4は圧縮処理をステップS12の処理に戻す。一方、処理が完了した場合には、画像処理コントローラ4は圧縮処理をステップS16の処理に進める。
In the process of step S15, the
ステップ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
ステップS17の処理では、画像処理コントローラ4が、画像データの転送が完了したか否か(画像データを構成する全てのバンドに対する処理が完了したか否か)を判別する。判別の結果、画像データの転送が完了していない(画像データを構成する全てのバンドに対する処理が完了していない)場合、画像処理コントローラ4は圧縮処理をステップS12の処理に戻す。一方、画像データの転送が完了した(画像データを構成する全てのバンドに対する処理が完了した)場合には、画像処理コントローラ4は、一連の圧縮処理を終了する。
In the process of step S17, the
なおこの圧縮処理が実行されている際、制御部10は、プロッタ画像圧縮/伸長コントローラ5の画像データの読み込み動作が画像処理コントローラ4の画像データの書き込み動作に追いつかないデータ量(例えば2バンド分の画像データ量)が画像メモリ7内にあるか否かを判別する。そしてそのような画像データ量がある場合、制御部10は、プロッタ画像圧縮/伸長コントローラ5を起動することにより画像データの圧縮動作を実行する。
When this compression processing is being executed, the
以上の説明から明らかなように、本発明の第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
〔第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
ステップS22の処理では、画像処理コントローラ4が、複数のバンドのうちの1つのバンドを抽出する。そして画像処理コントローラ4は、抽出されたバンドを構成する画素の情報(画素情報)を抽出し、抽出された画素情報を今回の処理対象の画素情報として前回の処理対象の画素情報と比較する。比較の結果、今回の処理対象の画素情報が前回の処理対象の画素情報と同じである場合、画像処理コントローラ4は圧縮処理をステップS24の処理に進める。一方、今回の処理対象の画素情報が前回の処理対象の画素情報と異なる場合には、画像処理コントローラ4は圧縮処理をステップS23の処理に進める。
In the process of step S22, the
ステップS23の処理では、画像処理コントローラ4が、符号量カウンタNの値を増数する。これにより、ステップS23の処理は完了し、圧縮処理はステップS24の処理に進む。
In the process of step S23, the
ステップS24の処理では、画像処理コントローラ4が、前回の処理対象の画素情報を今回の処理対象の画素情報に書き換える。これにより、ステップS24の処理は完了し、圧縮処理はステップS25の処理に進む。
In step S24, the
ステップS25の処理では、画像処理コントローラ4が、ステップS22の処理により抽出されたバンドに含まれる全ての画素に対する処理が完了したか否かを判別する。判別の結果、処理が完了していない場合、画像処理コントローラ4は圧縮処理をステップS22の処理に戻す。一方、処理が完了した場合には、画像処理コントローラ4は圧縮処理をステップS26の処理に進める。
In the process of step S25, the
ステップS26の処理では、画像処理コントローラ4が、ステップS22の処理により抽出されたバンドの画像データ量が符号量カウンタNの値以上であるか否かを判別する。判別の結果、画像データ量が符号量カウンタNの値以上である場合、画像処理コントローラ4は圧縮処理をステップS27の処理に進める。一方、画像データ量が符号量カウンタNの値未満である場合には、画像処理コントローラ4は圧縮処理をステップS28の処理に進める。
In the process of step S26, the
ステップ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
ステップS28の処理では、制御部10が、ハードディスクコントローラ8を制御することにより、ステップS22の処理により抽出されたバンドの画像データをHDD9に転送する。これにより、ステップ28の処理は完了し、圧縮処理はステップS29の処理に進む。
In the process of step S28, the
ステップS29の処理では、画像処理コントローラ4が、画像データの転送が完了したか否か(画像データを構成する全てのバンドに対する処理が完了したか否か)を判別する。判別の結果、画像データの転送が完了していない(画像データを構成する全てのバンドに対する処理が完了していない)場合、画像処理コントローラ4は圧縮処理をステップS21の処理に戻す。一方、画像データの転送が完了した(画像データを構成する全てのバンドに対する処理が完了した)場合には、画像処理コントローラ4は、圧縮処理をステップS30の処理に進める。
In the process of step S29, the
ステップS30の処理では、制御部10が、プロッタ画像圧縮/伸長コントローラ5を起動することにより、ディスクリプタ情報が書き換えられたバンドの画像データの圧縮動作を実行する。これにより、ステップS30の処理は完了し、一連の圧縮処理は終了する。
In the processing of step S30, the
以上の説明から明らかなように、本発明の第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 /
〔第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
ステップS42の処理では、画像処理コントローラ4が、画像データの符号量を計数するための符号量カウンタNの値を0にリセットする。これにより、ステップS42の処理は完了し、圧縮処理はステップS43の処理に進む。
In the process of step S42, the
ステップS43の処理では、画像処理コントローラ4が、転送する画像データを構成するラインを抽出する。2回目以後の処理において画像処理コントローラ4は、ステップS41の処理により指定されたライン数に従ってラインを間引いて抽出する。そして画像処理コントローラ4は、抽出されたラインを構成する画素の情報(画素情報)を抽出し、抽出された画素情報を今回の処理対象の画素情報として前回の処理対象の画素情報と比較する。比較の結果、今回の処理対象の画素情報が前回の処理対象の画素情報と同じである場合、画像処理コントローラ4は圧縮処理をステップS44の処理に進める。一方、今回の処理対象の画素情報が前回の処理対象の画素情報と異なる場合には、画像処理コントローラ4は圧縮処理をステップS43の処理に進める。
In the process of step S43, the
ステップS44の処理では、画像処理コントローラ4が、符号量カウンタNの値を増数する。これにより、ステップS44の処理は完了し、圧縮処理はステップS45の処理に進む。
In the process of step S44, the
ステップS45の処理では、画像処理コントローラ4が、前回の処理対象の画素情報を今回の処理対象の画素情報に書き換える。これにより、ステップS45の処理は完了し、圧縮処理はステップS46の処理に進む。
In step S45, the
ステップS46の処理では、画像処理コントローラ4が、ステップS43の処理により抽出されたラインに含まれる全ての画素に対する処理が完了したか否かを判別する。判別の結果、処理が完了していない場合、画像処理コントローラ4は圧縮処理をステップS43の処理に戻す。一方、処理が完了した場合には、画像処理コントローラ4は圧縮処理をステップS47の処理に進める。
In the process of step S46, the
ステップS47の処理では、画像処理コントローラ4が、主走査サイズが符号量カウンタNの値以上であるか否かを判別する。判別の結果、主走査サイズが符号量カウンタNの値以上である場合、画像処理コントローラ4は圧縮処理をステップS49の処理に進める。一方、主走査サイズが符号量カウンタNの値未満である場合には、画像処理コントローラ4は圧縮処理をステップS48の処理に進める。
In the process of step S47, the
ステップS48の処理では、画像処理コントローラ4が、圧縮処理によって膨張するライン数を計数するための符号膨張ライン数カウンタの値を1増数する。これにより、ステップS48の処理は完了し、圧縮処理はステップS49の処理に進む。
In the process of step S48, the
ステップS49の処理では、画像処理コントローラ4が、画像データの転送が完了したか否か(指定された全てのラインに対する処理が完了したか否か)を判別する。判別の結果、画像データの転送が完了していない(指定された全てのラインに対する処理が完了していない)場合、画像処理コントローラ4は圧縮処理をステップS52の処理に戻す。一方、画像データの転送が完了した(指定された全てのラインに対する処理が完了した)場合には、画像処理コントローラ4は、圧縮処理をステップS50の処理に進める。
In step S49, the
ステップS50の処理では、制御部10が、符号膨張ライン数カウンタの値をサンプルライン数で除算した値が所定値以上であるか否かを判別する。判別の結果、除算値が所定値以上である場合、制御部10は圧縮処理をステップS52の処理に進める。一方、除算値が所定値未満である場合には、制御部10は圧縮処理をステップS51の処理に進める。
In the process of step S50, the
ステップS51の処理では、制御部10が、プロッタ画像圧縮/伸長コントローラ5を制御することにより、画像メモリ7から画像処理コントローラ4により画像処理された画像データを読み取り、読み取られた画像データを圧縮する。そしてプロッタ画像圧縮/伸長コントローラ5は、圧縮された画像データを画像メモリ7に書き込む。これにより、ステップS51の処理は完了し、一連の圧縮処理は終了する。
In the processing of step S51, the
ステップS52の処理では、制御部10が、ハードディスクコントローラ8を制御することにより、画像処理コントローラ4により画像処理された画像データをHDD9に転送する。これにより、ステップ52の処理は完了し、一連の圧縮処理は終了する。
In the process of step S <b> 52, the
以上の説明から明らかなように、本発明の第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
以上、本発明者によってなされた発明を適用した実施の形態について説明したが、この実施の形態による本発明の開示の一部をなす記述及び図面により本発明は限定されることはない。例えば上記の圧縮処理動作をコンピュータプログラムにより規定し、各部の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
10 Control unit
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.
画像処理が施された画像データを圧縮し、圧縮された画像データを前記記憶手段に転送する圧縮処理工程と、
画像処理が施された画像データの画素情報を解析することにより、圧縮される画像データの符号量を予測する予測工程と、
予測された符号量と圧縮された画像データの記憶に割当可能な記憶容量を比較し、比較結果に基づいて前記圧縮処理工程を制御する制御工程と
を有することを特徴とする画像処理方法。 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.
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) |
-
2009
- 2009-08-19 JP JP2009190430A patent/JP2011044824A/en active Pending
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 |