JPH1198365A - Device and method for processing image - Google Patents
Device and method for processing imageInfo
- Publication number
- JPH1198365A JPH1198365A JP9256708A JP25670897A JPH1198365A JP H1198365 A JPH1198365 A JP H1198365A JP 9256708 A JP9256708 A JP 9256708A JP 25670897 A JP25670897 A JP 25670897A JP H1198365 A JPH1198365 A JP H1198365A
- Authority
- JP
- Japan
- Prior art keywords
- image data
- smoothing
- compression
- monitoring
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims description 31
- 238000009499 grossing Methods 0.000 claims abstract description 102
- 230000006835 compression Effects 0.000 claims abstract description 69
- 238000007906 compression Methods 0.000 claims abstract description 69
- 238000012544 monitoring process Methods 0.000 claims abstract description 34
- 238000003672 processing method Methods 0.000 claims description 10
- 238000010586 diagram Methods 0.000 description 11
- 238000013139 quantization Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 9
- 239000011159 matrix material Substances 0.000 description 7
- 238000009792 diffusion process Methods 0.000 description 3
- 238000009877 rendering Methods 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Landscapes
- Facsimile Image Signal Circuits (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、入力された画像デ
ータを圧縮する画像処理装置及びその方法に関するもの
である。[0001] 1. Field of the Invention [0002] The present invention relates to an image processing apparatus and method for compressing input image data.
【0002】[0002]
【従来の技術】従来、2値画像データの符号化方式とし
ては、2値画像データをラスタ単位に符号化していく符
号化方式が一般的に知られている。例えば、FAXで使
われているMH、MR、MMR符号化等の符号化方式で
は、2値画像データ内の白あるいは黒の連続する画素の
長さ(ランレングス)に基づいて2値画像データを符号
化する。2. Description of the Related Art Conventionally, as an encoding method for binary image data, an encoding method for encoding binary image data in raster units is generally known. For example, in coding methods such as MH, MR, and MMR coding used in FAX, binary image data is converted based on the length (run length) of continuous white or black pixels in the binary image data. Encode.
【0003】[0003]
【発明が解決しようとする課題】しかしながら、上記従
来の符号化方式によって符号化された符号は、2値画像
データの内容によって符号化量が異なる可変長符号であ
るため、圧縮率を制御し予定圧縮率(一定メモリ容量)
以下に抑えることは困難であった。一方で、上記のMH
符号化方式等の符号化方式より圧縮率がよく、さらに、
ディザ画像や誤差拡散画像等の疑似中間調画像も圧縮で
きる測符号化と算術符号を組み合わせた符号化方式が知
られている。しかし、この符号化方式でも次のような画
像に対しては圧縮率を高くすることができなかった。 (1)ランダム性が強い画像あるいは誤差拡散画像 (2)絵柄が非常に細かいディザ画像 本発明は上記の問題点に鑑みてなされたものであり、入
力された画像データを所定符号量以下に圧縮することが
できる画像処理装置及びその方法を提供することを目的
とする。However, since the code encoded by the above-mentioned conventional encoding method is a variable-length code whose encoding amount varies depending on the contents of the binary image data, the compression rate is controlled. Compression rate (constant memory capacity)
It was difficult to keep below. On the other hand, the above MH
The compression rate is better than encoding methods such as encoding method,
2. Description of the Related Art There is known an encoding method which combines arithmetic coding and arithmetic coding which can compress a pseudo halftone image such as a dither image or an error diffusion image. However, even with this encoding method, the compression ratio cannot be increased for the following images. (1) Image with strong randomness or error diffusion image (2) Dither image with very fine pattern The present invention has been made in view of the above problems, and compresses input image data to a predetermined code amount or less. It is an object of the present invention to provide an image processing apparatus and a method thereof that can perform the processing.
【0004】[0004]
【課題を解決するための手段】上記の目的を達成するた
めの本発明による画像処理装置は以下の構成を備える。
即ち、入力された画像データを圧縮する画像処理装置で
あって、前記入力された画像データを圧縮する圧縮手段
と、前記圧縮手段で圧縮された画像データの発生符号量
を監視する監視手段と、複数種類の平滑化度で画像デー
タを平滑化することができる平滑化手段と、前記監視手
段の監視結果に基づいて、前記画像データに対する前記
平滑化手段による平滑化と前記圧縮手段による圧縮を繰
り返し実行する実行手段とを備えることを特徴とする画
像処理装置。An image processing apparatus according to the present invention for achieving the above object has the following arrangement.
That is, an image processing device that compresses input image data, a compression unit that compresses the input image data, a monitoring unit that monitors a generated code amount of the image data compressed by the compression unit, A smoothing unit capable of smoothing the image data with a plurality of types of smoothing degrees; and, based on the monitoring result of the monitoring unit, repeating the smoothing of the image data by the smoothing unit and the compression by the compression unit. An image processing apparatus comprising: an execution unit that executes the image processing.
【0005】また、好ましくは、前記入力された画像デ
ータは、2値画像データである。また、好ましくは、前
記圧縮手段は、前記画像データを所定単位毎に分割して
圧縮する。また、好ましくは、前記監視手段の監視の結
果、前記圧縮手段で圧縮された画像データの発生符号量
が所定符号長より大きい場合、該発生符号量が該所定符
号量以下となるまで、前記実行手段は前記平滑化手段の
平滑化度を切り換えて、前記画像データに対する該平滑
化手段による平滑化と前記圧縮手段による圧縮を繰り返
し実行する。Preferably, the input image data is binary image data. Preferably, the compression unit divides the image data into predetermined units and compresses the image data. Also, preferably, as a result of monitoring by the monitoring means, when the generated code amount of the image data compressed by the compression means is larger than a predetermined code length, the execution is performed until the generated code amount becomes equal to or less than the predetermined code amount. The means switches the degree of smoothing of the smoothing means, and repeatedly executes the smoothing of the image data by the smoothing means and the compression by the compression means.
【0006】また、好ましくは、前記実行手段は、前記
平滑化手段による平滑化と前記圧縮手段による圧縮を繰
り返す回数が更新される毎に、該平滑化手段の平滑化度
が大きくなるように該平滑化度を切り換える。また、好
ましくは、前記圧縮手段は、前記画像データに対し予測
符号化を施すことで、該画像データを圧縮する。Preferably, the executing means increases the degree of smoothing of the smoothing means every time the number of times of repeating the smoothing by the smoothing means and the compression by the compressing means is updated. Switch the degree of smoothing. Preferably, the compression unit compresses the image data by performing predictive coding on the image data.
【0007】また、好ましくは、1ページ分の画像デー
タを所定単位毎に分割した各画像データに対する前記実
行手段の実行回数が異なる場合、前記実行手段の実行回
数が揃うように、前記所定単位毎に分割した各画像デー
タに対し、再度、前記実行手段を実行する。上記の目的
を達成するための本発明による画像処理方法は以下の構
成を備える。即ち、入力された画像データを圧縮する画
像処理方法であって、前記入力された画像データを圧縮
する圧縮工程と、前記圧縮工程で圧縮された画像データ
の発生符号量を監視する監視工程と、複数種類の平滑化
度で画像データを平滑化することができる平滑化工程
と、前記監視工程の監視結果に基づいて、前記画像デー
タに対する前記平滑化工程による平滑化と前記圧縮工程
による圧縮を繰り返し実行する実行工程とを備える。Preferably, when the number of executions of the execution unit is different for each image data obtained by dividing the image data for one page for each predetermined unit, the execution unit is provided with a predetermined number of execution times. The execution means is executed again for each of the divided image data. An image processing method according to the present invention for achieving the above object has the following configuration. That is, an image processing method for compressing input image data, a compression step of compressing the input image data, and a monitoring step of monitoring a generated code amount of the image data compressed in the compression step, A smoothing step capable of smoothing image data with a plurality of types of smoothing degrees, and smoothing of the image data by the smoothing step and compression by the compression step are repeated based on the monitoring result of the monitoring step. And an execution step of executing.
【0008】上記の目的を達成するための本発明による
コンピュータ可読メモリは以下の構成を備える。即ち、
入力された画像データを圧縮する画像処理のプログラム
コードが格納されたコンピュータ可読メモリであって、
前記入力された画像データを圧縮する圧縮工程のプログ
ラムコードと、前記圧縮工程で圧縮された画像データの
発生符号量を監視する監視工程のプログラムコードと、
複数種類の平滑化度で画像データを平滑化することがで
きる平滑化工程のプログラムコードと、前記監視工程の
監視結果に基づいて、前記画像データに対する前記平滑
化工程による平滑化と前記圧縮工程による圧縮を繰り返
し実行する実行工程のプログラムコードとを備える。A computer readable memory according to the present invention for achieving the above object has the following configuration. That is,
A computer-readable memory storing a program code of image processing for compressing input image data,
A program code of a compression step of compressing the input image data, and a program code of a monitoring step of monitoring a generated code amount of the image data compressed in the compression step,
Based on a program code of a smoothing step capable of smoothing image data with a plurality of types of smoothing degrees and a monitoring result of the monitoring step, smoothing of the image data by the smoothing step and compression of the image data by the compression step And a program code for an execution step of repeatedly executing compression.
【0009】[0009]
【発明の実施の形態】上述した圧縮率を高くできない画
像には、以下に説明する特徴を有している。 (1)誤差拡散画像などランダム性が強い画像 このような画像は、逆量子化してディザ処理した後に、
予測符号化で圧縮を行うと高い圧縮率を得られることが
知られている。 (2)絵柄が非常に細かいディザ画像 周期性の強いディザ画像であっても絵柄が細かすぎると
圧縮率が低くなることかが知られている。このような画
像に対しても、逆量子化してディザ処理した後に、予測
符号化で圧縮を行うと高い圧縮率を得られることが知ら
れている。DESCRIPTION OF THE PREFERRED EMBODIMENTS The above-mentioned image whose compression ratio cannot be increased has the following features. (1) Images with strong randomness such as error diffusion images Such images are dequantized and dithered,
It is known that a high compression rate can be obtained by performing compression by predictive coding. (2) Dither image with very fine pattern It is known that even a dither image with a strong periodicity, if the pattern is too fine, the compression ratio will decrease. It is known that a high compression ratio can be obtained for such an image by performing compression by predictive coding after inverse quantization and dither processing.
【0010】以上の特徴を踏まえて本発明を実現する。
以下、図面を参照して本発明の好適な実施形態を詳細に
説明する。図1は本発明の実施形態の画像処理システム
の構成を示す図である。図1では、ページプリンタに応
用した場合の全体のブロック図である。ホストコンピュ
ータ(以下、ホストと称する)10から、ページ記述言
語で書かれたPDLデータ(例えば、線の描画、矩形の
描画コマンド等)がI/F回路11を通して中間メモリ
12に記憶される。The present invention is realized based on the above features.
Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the drawings. FIG. 1 is a diagram illustrating a configuration of an image processing system according to an embodiment of the present invention. FIG. 1 is an overall block diagram when applied to a page printer. A host computer (hereinafter, referred to as a host) 10 stores PDL data (for example, a line drawing command, a rectangle drawing command, etc.) written in a page description language in an intermediate memory 12 through an I / F circuit 11.
【0011】1ページ分のPDLデータの転送が終了す
ると、レンダリング回路13でバンドメモリ14にラス
タイメージとして展開される。ここでバンド単位でラス
タイメージに展開するのは、1ページ分のラスタイメー
ジのバンドメモリを持たせると、A4サイズ400dp
iで2MB、600dpiで4MBの大容量メモリが必
要になるからである。When the transfer of one page of PDL data is completed, the rendering circuit 13 develops the raster image on the band memory 14. Here, the raster image is expanded in band units when the raster memory for one page is provided with an A4 size 400 dp.
This is because i requires a large capacity memory of 2 MB and 600 dpi requires 4 MB.
【0012】バンドメモリ14の後段に接続される各構
成要素で実行される処理は、バンド展開したラスタイメ
ージの処理になる。切換器15は、バンドメモリ14の
ラスタイメージデータを圧縮器16に入力し、圧縮を行
う。符号量制御器21は、圧縮器16で圧縮されたラス
タイメージデータの発生符号量と設定値22とを比較す
る。そして、発生符号量が設定値22以下になっている
場合は、そのまま圧縮されたラスタイメージデータを圧
縮メモリ17に格納する。尚、設定値22は、1/4か
ら1/8圧縮が達成できるような値がとられることにし
ている。The processing executed by each component connected to the subsequent stage of the band memory 14 is processing of a raster image that has been expanded into bands. The switch 15 inputs the raster image data of the band memory 14 to the compressor 16 and performs compression. The code amount controller 21 compares the generated code amount of the raster image data compressed by the compressor 16 with the set value 22. If the generated code amount is equal to or smaller than the set value 22, the compressed raster image data is stored in the compression memory 17 as it is. The set value 22 is set to a value that can achieve 1/4 to 1/8 compression.
【0013】1ページ分の圧縮されたラスタイメージデ
ータが圧縮メモリ17に格納されると、復号器18によ
り圧縮されたラスタイメージデータを復号した後、その
復号されたラスタイメージデータをページプリンタ19
で印刷する。以上説明したパスを使う代表的な例は、印
刷が中断できないようなページプリンタを使う画像処理
システムで、レンダリング速度がページプリンタの印刷
スピードで間に合わない場合である。この場合、限られ
た圧縮メモリに圧縮したラスタイメージデータを格納す
ると同時に、リアルタイムで復号してページプリンタに
印刷することになる。When the compressed raster image data for one page is stored in the compression memory 17, the raster image data compressed by the decoder 18 is decoded, and the decoded raster image data is sent to the page printer 19.
Print with. A typical example of using the above-described path is an image processing system using a page printer in which printing cannot be interrupted, in which the rendering speed cannot keep up with the printing speed of the page printer. In this case, the compressed raster image data is stored in a limited compression memory, and is simultaneously decoded in real time and printed on a page printer.
【0014】一方、符号量制御器21で、圧縮されたラ
スタイメージデータの発生符号量が設定値以上であると
判断された場合、バンドメモリ14に格納されているラ
スタイメージデータを平滑化処理回路20に入力し、こ
こで2値画像における平滑化処理を行う。次に、平滑化
処理されたラスタイメージデータを切換器15を通して
圧縮器16に入力し、圧縮を行う。そして、符号量制御
器21で、その圧縮されたラスタイメージデータの発生
符号量と設定値22とを再度比較する。比較の結果、発
生符号量が設定値22以上の場合、平滑化処理回路20
における平滑度を示す平滑化パラメータを1段階強くし
て、平滑化処理を行い、発生符号量が設定値以下になる
まで上記の処理を繰り返す。そして、発生符号量が設定
値22以下になったら、上述した圧縮メモリ17以降の
処理を実行する。On the other hand, when the code amount controller 21 determines that the generated code amount of the compressed raster image data is equal to or larger than the set value, the raster image data stored in the band memory 14 is smoothed by a smoothing processing circuit. 20 to perform a smoothing process on the binary image. Next, the smoothed raster image data is input to the compressor 16 through the switch 15 and compressed. Then, the code amount controller 21 compares the generated code amount of the compressed raster image data with the set value 22 again. As a result of the comparison, if the generated code amount is equal to or larger than the set value 22, the smoothing processing circuit 20
, The smoothing parameter indicating the degree of smoothing is increased by one step, a smoothing process is performed, and the above process is repeated until the generated code amount becomes equal to or less than the set value. Then, when the generated code amount becomes equal to or less than the set value 22, the above-described processing after the compression memory 17 is executed.
【0015】次に、平滑化処理回路20の詳細な構成に
ついて、図2を用いて説明する。図2は本発明の実施形
態の平滑化処理回路の詳細な構成を示す図である。30
は逆量子化器であり、入力された2値のラスタイメージ
データを多値のラスタイメージデータに逆量子化する。
この逆量子化は、2値のラスタイメージデータをN×N
ブロック(逆量子化マトリクス)毎に、各ブッロク内の
ドット数をカウントすることで、その2値のラスタイメ
ージデータを多値のラスタイメージデータに逆量子化す
る。また、図3の(a)〜(c)に示すように、逆量子
化器30には、逆量子化マトリクスとして、例えば、2
×2ブロック、4×4ブロック、8×8ブロックの3種
類が用意されている。そして、ブロックの大きさが大き
い程、平滑化パラメータが大きい平滑化処理を実行でき
る。Next, a detailed configuration of the smoothing processing circuit 20 will be described with reference to FIG. FIG. 2 is a diagram showing a detailed configuration of the smoothing processing circuit according to the embodiment of the present invention. 30
Denotes an inverse quantizer, which inversely quantizes the input binary raster image data into multi-value raster image data.
This inverse quantization converts the binary raster image data to N × N
By counting the number of dots in each block for each block (inverse quantization matrix), the binary raster image data is inversely quantized into multi-value raster image data. Also, as shown in FIGS. 3A to 3C, the inverse quantizer 30 includes, for example, 2
Three types of × 2 blocks, 4 × 4 blocks, and 8 × 8 blocks are prepared. Then, as the size of the block is larger, a smoothing process with a larger smoothing parameter can be executed.
【0016】33はマトリクス制御信号であり、符号量
制御器21から平滑化処理器20に入力され、ラスタイ
メージデータに施す平滑処理の平滑パラメータを制御す
ることができる。尚、一般的に、ラスタイメージデータ
は高周波のときは圧縮率が低く、低周波になるほど圧縮
率が高くなる傾向があるので、ラスタイメージデータの
内容に応じて平滑パラメータを制御する。Reference numeral 33 denotes a matrix control signal, which is input from the code amount controller 21 to the smoothing processor 20 and can control smoothing parameters for smoothing processing applied to raster image data. In general, the compression ratio of raster image data tends to be low when the frequency is high, and the compression ratio tends to increase when the frequency is low. Therefore, the smoothing parameter is controlled according to the contents of the raster image data.
【0017】31は補間処理回路であり、逆量子化され
たラスタイメージデータの画素数を逆量子化前のラスタ
イメージデータの画素数に補間する。例えば、逆量子化
マトリクスが2×2の場合は画素数が縦横半分になるの
で、補間処理回路31は2倍の線形補間処理を行う。同
様に、逆量子化マトリクスが4×4の場合は4倍の線形
補間、逆量子化マトリクスが8×8の場合は8倍の線形
補間処理を行うことになる。32は再ディザ化回路であ
り、補間処理されたラスタイメージデータのディザ処理
を行う。Reference numeral 31 denotes an interpolation processing circuit for interpolating the number of pixels of the raster image data which has been inversely quantized into the number of pixels of the raster image data before inverse quantization. For example, when the inverse quantization matrix is 2 × 2, the number of pixels becomes half the length and width, and the interpolation processing circuit 31 performs double linear interpolation processing. Similarly, when the inverse quantization matrix is 4 × 4, quadruple linear interpolation is performed, and when the inverse quantization matrix is 8 × 8, eight-fold linear interpolation is performed. A re-dithering circuit 32 dithers the interpolated raster image data.
【0018】次に、圧縮器16の詳細な構成について、
図4を用いて説明する。図4は本発明の実施形態の圧縮
器の詳細な構成を示す図である。60は予測符号化でラ
スタイメージデータの各画素を圧縮する場合の参照画素
を示している。「*」は符号化対象となる符号化対象画
素の位置である。また、その符号化対象画素に対する参
照画素は、符号化対象画素と同じラインの左隣り4画素
と8画素離れた位置にある画素と、1ライン上の4画素
の計10画素となっている。このように、符号化対象画
素の参照画素を符号化画素の左隣の4画素、8画素離れ
た位置の画素とすることにより、4×4ディザおよび8
×8ディザの周期性を利用した高能率な圧縮が実現でき
る。Next, a detailed configuration of the compressor 16 will be described.
This will be described with reference to FIG. FIG. 4 is a diagram showing a detailed configuration of the compressor according to the embodiment of the present invention. Reference numeral 60 denotes a reference pixel when each pixel of the raster image data is compressed by predictive coding. “*” Is the position of the encoding target pixel to be encoded. The reference pixels for the encoding target pixel are a total of 10 pixels, that is, four pixels on the same line as the encoding target pixel and eight pixels away from the pixel on the same line and four pixels on one line. In this manner, by setting the reference pixel of the encoding target pixel to the pixel located 4 pixels to the left of the encoding pixel and 8 pixels away from the encoding pixel, 4 × 4 dither and 8 pixels
Highly efficient compression utilizing the periodicity of × 8 dither can be realized.
【0019】そして、この符号化対象画素の内容に応じ
て(「0」あるいは「1」)で予測値を生成しRAM6
1に格納する。次に、RAM61に格納されている予測
値65を読み出し、符号化対象画素の画素値と一緒に予
測変換回路62に入力する。予測変換回路62では、画
素値と予測値が一致するならば「0」、不一致ならば
「1」を示す一致信号68を生成して算術符号器63に
入力する。Then, a predicted value is generated according to the content of the pixel to be encoded ("0" or "1"),
1 is stored. Next, the prediction value 65 stored in the RAM 61 is read and input to the prediction conversion circuit 62 together with the pixel value of the encoding target pixel. The prediction conversion circuit 62 generates a match signal 68 indicating “0” if the pixel value matches the prediction value and “1” otherwise.
【0020】また、RAM61から算術符号器63の算
術パラメータ66を読み出し、その算術パラメータ66
を用いて符号化対象画素を算術符号器63で算術符号化
する。尚、算術符号器63で行う算術符号化は、例え
ば、国際標準化されているQM−Coder等を用いる
ことができる。算術符号器63からは、一致信号68に
基づいて生成された更新信号67が更新回路64へ出力
され、更新回路64で予測値と算術パラメータが更新さ
れる。そして、更新回路64は、更新された予測値と算
術パラメータをRAM61に記憶する。これにより、適
応的な符号化が実現できる。The arithmetic parameter 66 of the arithmetic encoder 63 is read from the RAM 61, and the arithmetic parameter 66 is read.
Is arithmetically coded by the arithmetic coder 63 using The arithmetic coding performed by the arithmetic encoder 63 can use, for example, an internationally standardized QM-coder. An update signal 67 generated based on the coincidence signal 68 is output from the arithmetic encoder 63 to the update circuit 64, and the update circuit 64 updates the predicted value and the arithmetic parameter. Then, the update circuit 64 stores the updated predicted value and the arithmetic parameter in the RAM 61. Thereby, adaptive coding can be realized.
【0021】次に、本実施形態の画像処理システムで実
行される処理について、図5を用いて説明する。図5は
本発明の実施形態の画像処理システムで実行される処理
を示すフローチャートである。まず、ステップ101で
バンドメモリ14に格納されているラスタイメージデー
タを圧縮器16で圧縮する。次に、ステップS102
で、圧縮されたラスタイメージデータの発生符号量が設
定値以下であるか否かを判定する。設定値以下である場
合(ステップS102でYES)、処理を終了する。一
方、設定値より大きい場合(ステップS102でN
O)、ステップS103に進む。Next, the processing executed by the image processing system according to the present embodiment will be described with reference to FIG. FIG. 5 is a flowchart showing processing executed in the image processing system according to the embodiment of the present invention. First, in step 101, the raster image data stored in the band memory 14 is compressed by the compressor 16. Next, step S102
Then, it is determined whether or not the generated code amount of the compressed raster image data is equal to or smaller than a set value. If it is equal to or smaller than the set value (YES in step S102), the process ends. On the other hand, if it is larger than the set value (N in step S102)
O), and proceed to step S103.
【0022】次に、ステップS103で、平滑化処理回
路20の平滑化パラメータを1段階強くする。次に、ス
テップS104で、バンドメモリ14に格納されている
ラスタイメージデータを平滑化処理回路20に読み込
む。次に、ステップS105で、読み込んだラスタイメ
ージデータに対し、2×2の逆量子化マトリクスで逆量
子化する。そして、逆量子化されたラスタイメージデー
タに対し補間処理を施した後、再ディザ化する。そし
て、再ディザ化されたラスタイメージデータを圧縮器1
6で圧縮し、ステップ102に戻る。Next, in step S103, the smoothing parameter of the smoothing processing circuit 20 is increased by one step. Next, in step S104, the raster image data stored in the band memory 14 is read into the smoothing processing circuit 20. Next, in step S105, the read raster image data is inversely quantized using a 2 × 2 inverse quantization matrix. Then, after the interpolation processing is performed on the dequantized raster image data, the raster image data is re-dithered. Then, the re-dithered raster image data is compressed by the compressor 1.
Then, the process returns to step 102.
【0023】上記の処理において、ステップS102の
処理を満足しない場合は、処理を繰り返す毎に、平滑化
パラメータを1段階強くして、ステップS102の処理
を満足するまで繰り返す。尚、実施形態では、用意した
8×8の逆量子化までつかった平滑化処理以上のことは
できないが、これだけでもほとんどの画像で1/4から
1/8の圧縮が可能になる。In the above processing, if the processing in step S102 is not satisfied, the smoothing parameter is increased by one step every time the processing is repeated, and the processing is repeated until the processing in step S102 is satisfied. In the embodiment, although it is not possible to do more than the smoothing process using the prepared 8 × 8 inverse quantization, compression of 1/4 to 1/8 can be performed for most images by itself.
【0024】以上説明したように、本実施形態によれ
ば、圧縮器16で圧縮されたラスタイメージデータの発
生符号量に基づいて、圧縮前のラスタイメージデータを
平滑化した後、再び圧縮することができる。そのため、
設定値以上の発生符号量となる圧縮を実現することがで
きる。上述した実施形態において、設定値以下となるま
でに行う平滑化処理の回数は、各バンドですべて一緒に
なるとは限らない。As described above, according to the present embodiment, the raster image data before compression is smoothed based on the generated code amount of the raster image data compressed by the compressor 16, and then compressed again. Can be. for that reason,
It is possible to realize the compression with the generated code amount equal to or larger than the set value. In the above-described embodiment, the number of times the smoothing process is performed until the value becomes equal to or less than the set value is not always the same in each band.
【0025】例えば、図7の(a)は1ページ分のラス
タイメージデータを5つのバンド(#1〜#5)に分割
し、各バンドに対応するラスタイメージデータを圧縮し
た場合の発生符号量が設定値以下になるまでに行った平
滑化処理の回数を示している。図7の(a)に示すよう
に、バンド#1〜#5に対応するラスタイメージデータ
の平滑化処理の回数は、0、1、2、1、0となってい
る。このように、1ページ分のラスタイメージデータを
分割したバンドに対応するラスタイメージデータの平滑
化処理の回数にばらつきがあると、出力画像の画像品位
を落とす可能性が生じる。例えば、図7の(a)では、
バンド#3に対応するラスタイメージデータの平滑化度
(画像のぼけ具合)が大きく、その周囲に行くにしたが
って平滑化度が低い状態になっている。そのため、全体
的な出力画像の画像品位が悪くなってしまう。For example, FIG. 7A shows the generated code amount when one page of raster image data is divided into five bands (# 1 to # 5) and the raster image data corresponding to each band is compressed. Indicates the number of times the smoothing process was performed until the value became equal to or less than the set value. As shown in FIG. 7A, the number of times of smoothing processing of raster image data corresponding to bands # 1 to # 5 is 0, 1, 2, 1, 0. As described above, if the number of times of smoothing processing of the raster image data corresponding to the band obtained by dividing the raster image data for one page varies, the image quality of the output image may be degraded. For example, in FIG.
The degree of smoothing of the raster image data (the degree of blurring of the image) corresponding to band # 3 is large, and the degree of smoothing becomes lower toward the periphery. Therefore, the image quality of the entire output image deteriorates.
【0026】そこで、上記のように、1ページ分のラス
タイメージデータを分割したバンドに対応するラスタイ
メージデータの平滑化処理の回数が著しくばらつきがあ
る場合には、図7の(b)に示すように、各バンドに対
応するラスタイメージデータの平滑化処理の回数を所定
回数(ここでは、2回)に統一する。これにより、平滑
化処理の回数にばらつきがあるために、全体的な出力画
像の画像品位が落ちてしまうことを軽減することができ
る。Therefore, as described above, when the number of times of smoothing processing of the raster image data corresponding to the band obtained by dividing the raster image data for one page is remarkably varied, it is shown in FIG. 7B. In this manner, the number of times of smoothing processing of raster image data corresponding to each band is unified to a predetermined number (here, two times). As a result, it is possible to reduce the possibility that the image quality of the entire output image is degraded due to variations in the number of times of the smoothing process.
【0027】尚、上記の処理において問題となるのは、
バンド#2に対応するラスタイメージデータは、平滑化
処理を1回行った後に圧縮されたラスタイメージデータ
である。そのため、バンドメモリ14に格納されていた
時のラスタイメージデータを復元できないと、平滑化処
理を2回行った後に圧縮されたバンド#3に対応するラ
スタイメージデータと同レベルのラスタイメージデータ
が生成されないことになる。The problem with the above processing is that
The raster image data corresponding to band # 2 is raster image data compressed after performing the smoothing process once. Therefore, if the raster image data stored in the band memory 14 cannot be restored, the raster image data having the same level as the raster image data corresponding to the band # 3 compressed after performing the smoothing process twice is generated. Will not be.
【0028】そこで、図6に示すように、ラスタイメー
ジデータの平滑化処理を行う場合は、圧縮メモリ17に
格納された圧縮されたラスタイメージデータを復号器1
8で復号したラスタイメージデータが平滑化処理回路2
0に入力されるように結線することで、これを実現す
る。従って、処理の流れとしては、図7の(a)に示す
ように、各バンドに対応するラスターイメージデータの
平滑化処理を順次行い、平滑化処理された各ラスタイメ
ージデータを圧縮した後に、平滑化処理の回数が一番多
いバンド#3と同じ回数となるように、平滑化処理の回
数の足りない復号されたラスタイメージデータに対して
平滑化処理を行う。Therefore, as shown in FIG. 6, when performing smoothing processing of raster image data, the compressed raster image data stored in the compression memory 17 is decoded by the decoder 1.
Raster image data decoded in step 8
This is realized by connecting wires so that they are input to 0. Accordingly, as shown in FIG. 7A, the processing flow is to sequentially perform the smoothing processing of the raster image data corresponding to each band, compress each smoothed raster image data, and then perform the smoothing processing. The smoothing process is performed on the decoded raster image data for which the number of times of the smoothing process is insufficient, so that the number of times of the smoothing process is the same as that of band # 3.
【0029】尚、本発明は、複数の機器(例えば、ホス
トコンピュータ、インタフェース機器、リーダ、プリン
タ等)から構成されるシステムに適用しても、一つの機
器からなる装置(例えば、複写機、ファクシミリ装置
等)に適用してもよい。また、本発明の目的は、前述し
た実施形態の機能を実現するソフトウェアのプログラム
コードを記録した記憶媒体を、システムあるいは装置に
供給し、そのシステムあるいは装置のコンピュータ(ま
たはCPUやMPU)が記憶媒体に格納されたプログラ
ムコードを読出し実行することによっても、達成される
ことは言うまでもない。The present invention can be applied to a system including a plurality of devices (for example, a host computer, an interface device, a reader, a printer, etc.), but can be applied to a single device (for example, a copier, a facsimile) Device). Further, an object of the present invention is to provide a storage medium storing a program code of software for realizing the functions of the above-described embodiments to a system or an apparatus, and a computer (or CPU or MPU) of the system or apparatus to store the storage medium. Needless to say, this can also be achieved by reading and executing the program code stored in the program.
【0030】この場合、記憶媒体から読出されたプログ
ラムコード自体が上述した実施の形態の機能を実現する
ことになり、そのプログラムコードを記憶した記憶媒体
は本発明を構成することになる。プログラムコードを供
給するための記憶媒体としては、例えば、フロッピディ
スク、ハードディスク、光ディスク、光磁気ディスク、
CD−ROM、CD−R、磁気テープ、不揮発性のメモ
リカード、ROMなどを用いることができる。In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiment, and the storage medium storing the program code constitutes the present invention. As a storage medium for supplying the program code, for example, a floppy disk, a hard disk, an optical disk, a magneto-optical disk,
A CD-ROM, CD-R, magnetic tape, nonvolatile memory card, ROM, or the like can be used.
【0031】また、コンピュータが読出したプログラム
コードを実行することにより、前述した実施形態の機能
が実現されるだけでなく、そのプログラムコードの指示
に基づき、コンピュータ上で稼働しているOS(オペレ
ーティングシステム)などが実際の処理の一部または全
部を行い、その処理によって前述した実施の形態の機能
が実現される場合も含まれることは言うまでもない。When the computer executes the readout program code, not only the functions of the above-described embodiment are realized, but also an OS (Operating System) running on the computer based on the instruction of the program code. ) May perform some or all of the actual processing, and the processing may realize the functions of the above-described embodiments.
【0032】更に、記憶媒体から読出されたプログラム
コードが、コンピュータに挿入された機能拡張ボードや
コンピュータに接続された機能拡張ユニットに備わるメ
モリに書き込まれた後、そのプログラムコードの指示に
基づき、その機能拡張ボードや機能拡張ユニットに備わ
るCPUなどが実際の処理の一部または全部を行い、そ
の処理によって前述した実施形態の機能が実現される場
合も含まれることは言うまでもない。Further, after the program code read from the storage medium is written into a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, the program code is read based on the instruction of the program code. It goes without saying that the CPU included in the function expansion board or the function expansion unit performs part or all of the actual processing, and the functions of the above-described embodiments are realized by the processing.
【0033】本発明を上記記憶媒体に適用する場合、そ
の記憶媒体には、先に説明したフローチャートに対応す
るプログラムコードを格納することになるが、簡単に説
明すると、図8のメモリマップ例に示す各モジュールを
記憶媒体に格納することになる。すなわち、少なくとも
「圧縮モジュール」、「監視モジュール」、「平滑化モ
ジュール」および「実行モジュール」の各モジュールの
プログラムコードを記憶媒体に格納すればよい。When the present invention is applied to the storage medium, the storage medium stores program codes corresponding to the above-described flowcharts. Each module shown will be stored in a storage medium. In other words, at least the program code of each of the “compression module”, “monitoring module”, “smoothing module”, and “execution module” may be stored in the storage medium.
【0034】尚、「圧縮モジュール」は、入力された画
像データを圧縮する。「監視モジュール」は、圧縮され
た画像データの発生符号量を監視する。「平滑化モジュ
ール」は、複数種類の平滑化度で画像データを平滑化す
ることができる。「実行モジュール」は、監視結果に基
づいて、画像データに対する平滑化と圧縮を繰り返し実
行する。The "compression module" compresses the input image data. The “monitoring module” monitors the generated code amount of the compressed image data. The “smoothing module” can smooth image data with a plurality of types of smoothing degrees. The “execution module” repeatedly executes smoothing and compression on the image data based on the monitoring result.
【0035】[0035]
【発明の効果】以上説明したように、本発明によれば、
入力された画像データを所定符号量以下に圧縮すること
ができる画像処理装置及びその方法を提供できる。As described above, according to the present invention,
An image processing apparatus and method capable of compressing input image data to a predetermined code amount or less can be provided.
【図1】本発明の実施形態の画像処理システムの構成を
示す図である。FIG. 1 is a diagram illustrating a configuration of an image processing system according to an embodiment of the present invention.
【図2】本発明の実施形態の平滑化処理回路の詳細な構
成を示す図である。FIG. 2 is a diagram illustrating a detailed configuration of a smoothing processing circuit according to an embodiment of the present invention.
【図3】本発明の実施形態の逆量子化マトリクスの一例
を示す図である。FIG. 3 is a diagram illustrating an example of an inverse quantization matrix according to the embodiment of the present invention.
【図4】本発明の実施形態の圧縮器の詳細な構成を示す
図である。FIG. 4 is a diagram showing a detailed configuration of a compressor according to the embodiment of the present invention.
【図5】本発明の実施形態の画像処理システムで実行さ
れる処理を示すフローチャートである。FIG. 5 is a flowchart illustrating a process executed by the image processing system according to the embodiment of the present invention.
【図6】本発明の実施形態の他の構成例を示すブロック
図である。FIG. 6 is a block diagram showing another configuration example of the embodiment of the present invention.
【図7】本発明の実施形態の平滑化処理の回数が各バン
ドに対応するラスタイメージデータ毎にばらつきがある
場合に実行する処理を説明するための図である。FIG. 7 is a diagram for describing processing executed when the number of times of smoothing processing according to the embodiment of the present invention varies for each raster image data corresponding to each band.
【図8】本発明の実施形態を実現するプログラムコード
を格納した記憶媒体のメモリマップの構造を示す図であ
る。FIG. 8 is a diagram showing a structure of a memory map of a storage medium storing a program code for realizing an embodiment of the present invention.
10 ホスト 11 I/F回路 12 中間メモリ 13 レンダリング回路 14 バンドメモリ 15 切換器 16 圧縮器 17 圧縮メモリ 18 復号器 19 ページプリンタ 20 平滑化処理回路 21 符号量制御器 30 逆量子化器 31 補間処理回路 32 再ディザ化回路 Reference Signs List 10 Host 11 I / F circuit 12 Intermediate memory 13 Rendering circuit 14 Band memory 15 Switch 16 Compressor 17 Compression memory 18 Decoder 19 Page printer 20 Smoothing processing circuit 21 Code amount controller 30 Dequantizer 31 Interpolation processing circuit 32 Re-dithering circuit
Claims (15)
理装置であって、 前記入力された画像データを圧縮する圧縮手段と、 前記圧縮手段で圧縮された画像データの発生符号量を監
視する監視手段と、 複数種類の平滑化度で画像データを平滑化することがで
きる平滑化手段と、 前記監視手段の監視結果に基づいて、前記画像データに
対する前記平滑化手段による平滑化と前記圧縮手段によ
る圧縮を繰り返し実行する実行手段とを備えることを特
徴とする画像処理装置。1. An image processing apparatus for compressing input image data, comprising: compression means for compressing the input image data; and monitoring for monitoring a generated code amount of the image data compressed by the compression means. Means, smoothing means capable of smoothing image data with a plurality of types of smoothing degrees, and smoothing of the image data by the smoothing means and by the compression means based on the monitoring result of the monitoring means. An image processing apparatus comprising: an execution unit that repeatedly executes compression.
データであることを特徴とする請求項1に記載の画像処
理装置。2. The image processing apparatus according to claim 1, wherein the input image data is binary image data.
単位毎に分割して圧縮することを特徴とする請求項1に
記載の画像処理装置。3. The image processing apparatus according to claim 1, wherein the compression unit divides the image data into predetermined units and compresses the divided data.
段で圧縮された画像データの発生符号量が所定符号長よ
り大きい場合、該発生符号量が該所定符号量以下となる
まで、前記実行手段は前記平滑化手段の平滑化度を切り
換えて、前記画像データに対する該平滑化手段による平
滑化と前記圧縮手段による圧縮を繰り返し実行すること
を特徴とする請求項1に記載の画像処理装置。4. When the generated code amount of the image data compressed by the compression unit is larger than a predetermined code length as a result of monitoring by the monitoring unit, the execution is performed until the generated code amount becomes equal to or smaller than the predetermined code amount. 2. The image processing apparatus according to claim 1, wherein the means switches the degree of smoothing of the smoothing means, and repeatedly performs smoothing on the image data by the smoothing means and compression by the compression means.
平滑化と前記圧縮手段による圧縮を繰り返す回数が更新
される毎に、該平滑化手段の平滑化度が大きくなるよう
に該平滑化度を切り換えることを特徴とする請求項1に
記載の画像処理装置。5. The smoothing unit according to claim 1, wherein the number of times of repeating the smoothing by the smoothing unit and the compression by the compressing unit is updated. The image processing apparatus according to claim 1, wherein the image processing apparatus is switched.
予測符号化を施すことで、該画像データを圧縮すること
を特徴とする請求項1に記載の画像処理装置。6. The image processing apparatus according to claim 1, wherein the compression unit compresses the image data by performing predictive encoding on the image data.
分割した各画像データに対する前記実行手段の実行回数
が異なる場合、前記実行手段の実行回数が揃うように、
前記所定単位毎に分割した各画像データに対し、再度、
前記実行手段を実行することを特徴とする請求項1に記
載の画像処理装置。7. When the number of executions of the execution unit is different for each image data obtained by dividing one page of image data for each predetermined unit, the number of executions of the execution unit is equalized.
Again, for each image data divided for each predetermined unit,
The image processing apparatus according to claim 1, wherein the execution unit executes the execution unit.
理方法であって、 前記入力された画像データを圧縮する圧縮工程と、 前記圧縮工程で圧縮された画像データの発生符号量を監
視する監視工程と、 複数種類の平滑化度で画像データを平滑化することがで
きる平滑化工程と、 前記監視工程の監視結果に基づいて、前記画像データに
対する前記平滑化手段による平滑化と前記圧縮手段によ
る圧縮を繰り返し実行する実行工程とを備えることを特
徴とする画像処理方法。8. An image processing method for compressing input image data, comprising: a compression step of compressing the input image data; and a monitoring step of monitoring a generated code amount of the image data compressed in the compression step. A smoothing step capable of smoothing the image data with a plurality of types of smoothing degrees; a smoothing process for the image data based on a monitoring result of the monitoring process; An image processing method comprising the step of repeatedly executing compression.
データであることを特徴とする請求項8に記載の画像処
理方法。9. The image processing method according to claim 8, wherein the input image data is binary image data.
定単位毎に分割して圧縮することを特徴とする請求項8
に記載の画像処理方法。10. The image processing apparatus according to claim 8, wherein in the compression step, the image data is divided into predetermined units and compressed.
The image processing method according to 1.
工程で圧縮された画像データの発生符号量が所定符号量
より大きい場合、該発生符号量が該所定符号量以下とな
るまで、前記実行工程は前記平滑化工程の平滑化度を切
り換えて、前記画像データに対する該平滑化工程による
平滑化と前記圧縮工程による圧縮を繰り返し実行するこ
とを特徴とする請求項8に記載の画像処理方法。11. When the generated code amount of the image data compressed in the compression step is larger than a predetermined code amount as a result of monitoring in the monitoring step, the execution is performed until the generated code amount becomes equal to or smaller than the predetermined code amount. 9. The image processing method according to claim 8, wherein in the step, the degree of smoothing in the smoothing step is switched, and smoothing of the image data by the smoothing step and compression by the compression step are repeatedly executed.
る平滑化と前記圧縮工程による圧縮を繰り返す回数が更
新される毎に、該平滑化工程の平滑化度が大きくなるよ
うに該平滑化度を切り換えることを特徴とする請求項8
に記載の画像処理方法。12. The smoothing step includes increasing the smoothing degree of the smoothing step each time the number of times of repeating the smoothing by the smoothing step and the compression by the compressing step is updated. 9. The method according to claim 8, wherein
The image processing method according to 1.
し予測符号化を施すことで、該画像データを圧縮するこ
とを特徴とする請求項8に記載の画像処理方法。13. The image processing method according to claim 8, wherein in the compression step, the image data is compressed by performing predictive encoding on the image data.
に分割した各画像データに対する前記実行工程の実行回
数が異なる場合、前記実行工程の実行回数が揃うよう
に、前記所定単位毎に分割した各画像データに対し、再
度、前記実行工程を実行することを特徴とする請求項8
に記載の画像処理方法。14. When the number of executions of the execution step is different for each image data obtained by dividing one page of image data for each predetermined unit, the image data is divided for each predetermined unit so that the number of executions of the execution step is equal. 9. The method according to claim 8, wherein the execution step is executed again for each image data.
The image processing method according to 1.
処理のプログラムコードが格納されたコンピュータ可読
メモリであって、 前記入力された画像データを圧縮する圧縮工程のプログ
ラムコードと、 前記圧縮工程で圧縮された画像データの発生符号量を監
視する監視工程のプログラムコードと、 複数種類の平滑化度で画像データを平滑化することがで
きる平滑化工程のプログラムコードと、 前記監視工程の監視結果に基づいて、前記画像データに
対する前記平滑化手段による平滑化と前記圧縮手段によ
る圧縮を繰り返し実行する実行工程のプログラムコード
とを備えることを特徴とするコンピュータ可読メモリ。15. A computer-readable memory storing a program code for image processing for compressing input image data, wherein: a program code for a compression step for compressing the input image data; A program code of a monitoring step of monitoring the generated code amount of the image data obtained, a program code of a smoothing step capable of smoothing the image data with a plurality of types of smoothing degrees, and a monitoring result of the monitoring step. And a program code for an execution step of repeatedly performing smoothing of the image data by the smoothing unit and compression by the compression unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP25670897A JP3368186B2 (en) | 1997-09-22 | 1997-09-22 | Image processing apparatus and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP25670897A JP3368186B2 (en) | 1997-09-22 | 1997-09-22 | Image processing apparatus and method |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH1198365A true JPH1198365A (en) | 1999-04-09 |
JP3368186B2 JP3368186B2 (en) | 2003-01-20 |
Family
ID=17296372
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP25670897A Expired - Fee Related JP3368186B2 (en) | 1997-09-22 | 1997-09-22 | Image processing apparatus and method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3368186B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002218251A (en) * | 2001-01-23 | 2002-08-02 | Canon Inc | Image processor, image processing system, image processing method and storage medium |
-
1997
- 1997-09-22 JP JP25670897A patent/JP3368186B2/en not_active Expired - Fee Related
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002218251A (en) * | 2001-01-23 | 2002-08-02 | Canon Inc | Image processor, image processing system, image processing method and storage medium |
Also Published As
Publication number | Publication date |
---|---|
JP3368186B2 (en) | 2003-01-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6529633B1 (en) | Parallel difference coding method for lossless compression and real time decompression | |
US6567559B1 (en) | Hybrid image compression with compression ratio control | |
US6560369B1 (en) | Conversion of wavelet coded formats depending on input and output buffer capacities | |
US7136531B2 (en) | Image encoder, image encoding method, image encoding computer program, and storage medium | |
EP0750428B1 (en) | Image processing apparatus and method | |
JP2000069292A (en) | Image processing unit, its method and storage medium | |
US6072909A (en) | Image coding devise and image decoding devise using with image disassembly | |
US6968088B2 (en) | Modification of detected quantization step size from the encoded bitstream based on a region of interest (ROI) bitmask | |
US6377706B1 (en) | Compression framework incorporating decoding commands | |
JP4831547B2 (en) | Method for image compression and decompression acceleration | |
JPH09186883A (en) | Multi-value image encoding device | |
US6657576B2 (en) | Quantization unit setting apparatus, quantization unit setting method, coding apparatus, coding method, and information record medium | |
JPH0487460A (en) | Picture processor | |
JP3368186B2 (en) | Image processing apparatus and method | |
US6069980A (en) | Adaptive character image generation and synthesis | |
JP3170312B2 (en) | Image processing device | |
JP3023215B2 (en) | Image processing device | |
JPH10304362A (en) | Image signal processing unit and its method | |
JP3170313B2 (en) | Image processing device | |
JP2002051221A (en) | Device, system and method for encoding and decoding image and storage medium | |
JP2000261647A (en) | Image processing unit | |
JPH1098620A (en) | Picture processor | |
JP2993212B2 (en) | How to combine images | |
JP3027605B2 (en) | Image processing device | |
JPH099266A (en) | Device and method for image encoding |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20021011 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20081108 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20081108 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091108 Year of fee payment: 7 |
|
LAPS | Cancellation because of no payment of annual fees |