JP2007281591A - Image processing apparatus and program - Google Patents

Image processing apparatus and program Download PDF

Info

Publication number
JP2007281591A
JP2007281591A JP2006102025A JP2006102025A JP2007281591A JP 2007281591 A JP2007281591 A JP 2007281591A JP 2006102025 A JP2006102025 A JP 2006102025A JP 2006102025 A JP2006102025 A JP 2006102025A JP 2007281591 A JP2007281591 A JP 2007281591A
Authority
JP
Japan
Prior art keywords
resolution
image data
image
effective
conversion
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
JP2006102025A
Other languages
Japanese (ja)
Inventor
Kazunori So
一憲 宋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP2006102025A priority Critical patent/JP2007281591A/en
Publication of JP2007281591A publication Critical patent/JP2007281591A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processing apparatus for performing resolution conversion by taking into account a compression efficiency. <P>SOLUTION: The image processing apparatus 2 calculates a magnification factor or a reduction factor to convert the resolution of respective raster objects in PDL data into an output resolution and performs magnification/reduction processing and revision of an effective resolution at the same time when it is required to decrease the effective resolution of an image at the convenience of image compression of a post-stage in the case that the magnification/reduction processing is applied to any raster object. Further, the processing of decreasing the effective resolution is efficiently carried out at the same time of performing the magnification/reduction processing in the case that adaptive magnification/reduction processing is applied to each pixel so as to avoid fonts and graphics from causing jaggy. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、画像データの解像度を変換する画像処理装置に関する。   The present invention relates to an image processing apparatus that converts the resolution of image data.

例えば、特許文献1には、画像データを解像度変換によって縮小し、縮小された画像データを圧縮する画像出力装置が開示されている。
特開平7−87303号公報
For example, Patent Document 1 discloses an image output apparatus that reduces image data by resolution conversion and compresses the reduced image data.
JP-A-7-87303

本発明は、上述した背景からなされたものであり、圧縮効率を加味した解像度変換を行う画像処理装置を提供することを目的とする。   The present invention has been made from the above-described background, and an object thereof is to provide an image processing apparatus that performs resolution conversion in consideration of compression efficiency.

[画像処理装置]
上記目的を達成するために、本発明にかかる画像処理装置は、入力された画像データに応じて、実効解像度を決定する実効解像度決定手段と、前記実効解像度決定手段により決定された実効解像度で、入力された画像データを既定の目標解像度の画像データに変換する解像度変換手段とを有する。
[Image processing device]
In order to achieve the above object, an image processing apparatus according to the present invention includes an effective resolution determining unit that determines an effective resolution according to input image data, and an effective resolution determined by the effective resolution determining unit. Resolution conversion means for converting the input image data into image data of a predetermined target resolution.

好適には、前記解像度変換手段により解像度変換された画像データを基準値以下のデータサイズに圧縮する圧縮手段をさらに有し、前記実効解像度決定手段は、前記圧縮手段による圧縮率に応じて、前記実効解像度を決定する。   Preferably, the image processing apparatus further includes a compression unit that compresses the image data subjected to resolution conversion by the resolution conversion unit to a data size equal to or less than a reference value, and the effective resolution determination unit is configured to perform the compression according to a compression rate by the compression unit. Determine the effective resolution.

好適には、入力された画像データに基づいて、この画像データの圧縮特性を評価する圧縮評価手段をさらに有し、前記実効解像度決定手段は、前記圧縮評価手段による評価結果と、前記解像度変換手段による解像度変換の変換倍率とに基づいて、実行解像度を決定する。   Preferably, the image processing apparatus further includes compression evaluation means for evaluating a compression characteristic of the image data based on the input image data, and the effective resolution determination means includes the evaluation result by the compression evaluation means and the resolution conversion means. The execution resolution is determined on the basis of the conversion magnification of the resolution conversion by.

好適には、前記解像度変換手段は、前記実効解像度が前記目標解像度よりも低い場合に、解像度変換の変換率に応じて、複数の解像度変換方法のいずれかを選択し、選択された解像度変換方法を用いて解像度変換処理を行う。   Preferably, the resolution conversion means selects one of a plurality of resolution conversion methods according to a conversion rate of resolution conversion when the effective resolution is lower than the target resolution, and the selected resolution conversion method The resolution conversion process is performed using.

好適には、前記解像度変換手段は、入力された画像データを前記目標解像度の画像データに変換する処理と、目標解像度に変換された画像データの実効解像度を前記実効解像度決定手段により決定された実効解像度に変換する処理とを同時に行う。   Preferably, the resolution conversion means converts the input image data into image data of the target resolution, and the effective resolution of the image data converted to the target resolution determined by the effective resolution determination means. The process of converting to resolution is performed simultaneously.

[プログラム]
また、本発明にかかるプログラムは、入力された画像データに応じて、実効解像度を決定するステップと、決定された前記実効解像度で、入力された画像データを既定の目標解像度の画像データに変換するステップとをコンピュータに実行させる。
[program]
The program according to the present invention further includes a step of determining an effective resolution in accordance with the input image data, and converts the input image data into image data having a predetermined target resolution at the determined effective resolution. Causing the computer to execute the steps.

本発明の画像処理装置によれば、解像度変換後の圧縮効率を加味しながら、目標となる解像度の画像データを生成することができる。   According to the image processing apparatus of the present invention, it is possible to generate image data having a target resolution while taking into account the compression efficiency after resolution conversion.

まず、本発明がなされた背景を説明する。
例えば、プリンタ装置などの画像出力装置において、入力された画像データを圧縮し、圧縮された画像データを転送又は蓄積することにより、データ転送及びデータ蓄積に要する帯域を抑えている。また、入力された画像データの解像度が出力解像度よりも小さい場合には、例えば、画像出力装置内で解像度変換処理を行って、出力解像度の画像データが生成される。したがって、高解像度で出力可能な画像出力装置では、画像データのデータ量が特に大きくなるため、出力直前まで、できるだけデータ量を小さくしておくことが望ましい。
First, the background of the present invention will be described.
For example, in an image output device such as a printer device, the input image data is compressed, and the compressed image data is transferred or stored, thereby reducing the bandwidth required for data transfer and data storage. Further, when the resolution of the input image data is smaller than the output resolution, for example, resolution conversion processing is performed in the image output apparatus to generate image data of the output resolution. Therefore, in an image output apparatus capable of outputting at a high resolution, the data amount of image data is particularly large. Therefore, it is desirable to reduce the data amount as much as possible until immediately before output.

このような要求に対して、出力解像度以下の画像データが入力された場合には、入力された画像データをそのまま符号化して転送又は蓄積し、復号化された後に出力解像度への拡大処理を行い、出力解像度以上の画像データが入力された場合には、入力された画像データを出力解像度に縮小して符号化する方法が考えられる。しかしながら、この方法では、以下のような問題点があった。   In response to such a request, when image data less than the output resolution is input, the input image data is encoded and transferred or stored as it is, and after being decoded, the image is enlarged to the output resolution. When image data having an output resolution or higher is input, a method of encoding the input image data by reducing it to the output resolution can be considered. However, this method has the following problems.

PDLファイル内に複数種類の解像度のラスタオブジェクトがある場合、最終的に1つの画像拡大率にあうように2段階の拡大(縮小)処理が必要となり、その分、量子化処理を繰り返すため画質が劣化する。
また、画像符号化方式の符号化パラメータがきつくなると、符号化方式に起因するディフェクトが生じ、さらに後段の拡大処理によってディフェクトが増幅され、目に付くようになる。
また、上記のようにディフェクトが問題となる場合、画像の実効解像度を落とすやり方が一般的だが、その場合、縮小画像化してしまうと圧縮後の拡大処理でフォントやグラフィクスがジャギーになり画質が大幅に劣化する。
When there are multiple types of resolution raster objects in the PDL file, two-stage enlargement (reduction) processing is required to finally meet one image enlargement ratio, and since the quantization processing is repeated accordingly, the image quality is high. to degrade.
Further, when the encoding parameters of the image encoding method become tight, a defect due to the encoding method occurs, and the defect is amplified by the subsequent enlargement process and becomes noticeable.
In addition, when the defect is a problem as described above, it is common to reduce the effective resolution of the image, but in that case, if the image is reduced, the font and graphics become jaggy due to the enlargement process after compression, and the image quality is greatly increased. It deteriorates to.

そこで、本実施形態における画像処理装置は、以下のように解像度変換及び符号化処理(圧縮処理)を行う。
すなわち、PDLデータ内のラスタオブジェクトは、それぞれ出力解像度にあわせて拡大縮小処理を行う。
拡大縮小処理を行うときに、後段の画像圧縮の都合で画像の実効解像度を落とすことが必要になった場合は、拡大縮小処理と実効解像度の変更を同時に行う。
実効解像度を落とす処理において、フォントやグラフィクスがジャギーにならないように画素毎に適応的な拡大縮小処理を行う場合も、拡大縮小処理と同時に効率的に行うようにする。
Therefore, the image processing apparatus according to the present embodiment performs resolution conversion and encoding processing (compression processing) as follows.
That is, each raster object in the PDL data is subjected to enlargement / reduction processing according to the output resolution.
When performing the enlargement / reduction process, if it is necessary to reduce the effective resolution of the image due to the subsequent image compression, the enlargement / reduction process and the change of the effective resolution are performed simultaneously.
In the process of reducing the effective resolution, when adaptive enlargement / reduction processing is performed for each pixel so that fonts and graphics do not become jaggy, it is efficiently performed simultaneously with the enlargement / reduction process.

次に、本実施形態における画像処理装置2のハードウェア構成を説明する。
図1は、本発明にかかる画像処理装置2のハードウェア構成を、制御装置20を中心に例示する図である。
図1に例示するように、画像処理装置2は、CPU202及びメモリ204などを含む制御装置20、通信装置22、HDD・CD装置などの記録装置24、並びに、LCD表示装置あるいはCRT表示装置及びキーボード・タッチパネルなどを含むユーザインターフェース装置(UI装置)26から構成される。
画像処理装置2は、例えば、プリンタ装置10に設けられた処理装置であり、通信装置22又は記録装置24などを介して画像データを取得し、取得された画像データを出力解像度まで解像度変換し、解像度変換された画像データを符号化する。ここで、出力解像度とは、目標解像度の一例であり、出力装置(本例ではプリンタ装置10)で出力される画像の解像度である。
Next, a hardware configuration of the image processing apparatus 2 in the present embodiment will be described.
FIG. 1 is a diagram illustrating a hardware configuration of an image processing apparatus 2 according to the present invention, centering on a control apparatus 20.
As illustrated in FIG. 1, the image processing apparatus 2 includes a control device 20 including a CPU 202 and a memory 204, a communication device 22, a recording device 24 such as an HDD / CD device, an LCD display device or a CRT display device, and a keyboard. A user interface device (UI device) 26 including a touch panel and the like is included.
The image processing device 2 is a processing device provided in the printer device 10, for example, acquires image data via the communication device 22 or the recording device 24, converts the resolution of the acquired image data to an output resolution, The resolution-converted image data is encoded. Here, the output resolution is an example of the target resolution, and is the resolution of an image output by the output device (the printer device 10 in this example).

[画像処理プログラム]
図2は、制御装置20(図1)により実行される画像処理プログラム5の機能構成を例示する図である。
図2に例示するように、画像処理プログラム5は、PDL解析部500、画像復号部510、解像度変換部520、符号情報推定部530、解像度決定部540、画像統合部550、及び符号化部560を有する。
画像処理プログラム5は、PDLデータを解析し、ラスタデータの符号を一旦復号してから出力解像度に拡大処理を行って、プリント用(PrintReady)のデータを生成し、生成されたプリント用のデータ(出力解像度の画像データ)を符号量制御して符号化する。
[Image processing program]
FIG. 2 is a diagram illustrating a functional configuration of the image processing program 5 executed by the control device 20 (FIG. 1).
As illustrated in FIG. 2, the image processing program 5 includes a PDL analysis unit 500, an image decoding unit 510, a resolution conversion unit 520, a code information estimation unit 530, a resolution determination unit 540, an image integration unit 550, and an encoding unit 560. Have
The image processing program 5 analyzes the PDL data, once decodes the code of the raster data, performs an enlargement process to the output resolution, generates print data (PrintReady), and generates the print data ( The output resolution image data) is encoded by controlling the code amount.

画像処理プログラム5において、PDL解析部500は、入力されたPDLファイルを解析して、ラスタデータとベクタデータとを分離し、ベクタデータをラスタライズして画像統合部550に出力し、ラスタデータを画像復号部510に出力する。なお、本例では、ラスタデータが予測符号化方式で符号化されている場合を具体例とする。
また、PDL解析部500は、入力された画像データ(PDLファイル)の解像度(以下、入力解像度)と、出力解像度(目標解像度)とを比較して、拡大又は縮小すべき倍率を算出し、算出された倍率(拡大率又は縮小率)を解像度決定部540に出力する。
In the image processing program 5, the PDL analysis unit 500 analyzes the input PDL file, separates raster data and vector data, rasterizes the vector data, and outputs the raster data to the image integration unit 550. The data is output to the decoding unit 510. In this example, a specific example is a case where raster data is encoded by a predictive encoding method.
Also, the PDL analysis unit 500 compares the resolution of the input image data (PDL file) (hereinafter referred to as input resolution) with the output resolution (target resolution) to calculate the magnification to be enlarged or reduced. The obtained magnification (enlargement ratio or reduction ratio) is output to the resolution determination unit 540.

画像復号部510は、PDL解析部500から入力された符号データを復号化し、復号化された画像データを解像度変換部520に出力する。
また、画像復号部510は、圧縮効率を評価するための情報を符号情報推定部530に出力する。本例の画像復号部510は、復号化処理において生成されるシンボルの一部(本例では、予測的中に対応するシンボル)を符号情報推定部530に出力する。
The image decoding unit 510 decodes the code data input from the PDL analysis unit 500 and outputs the decoded image data to the resolution conversion unit 520.
In addition, the image decoding unit 510 outputs information for evaluating the compression efficiency to the code information estimation unit 530. The image decoding unit 510 in this example outputs a part of symbols generated in the decoding process (in this example, the symbol corresponding to predictive) to the code information estimation unit 530.

解像度変換部520は、解像度決定部540からの制御に応じて、画像復号部510から入力された画像データに対して解像度変換処理を施して、解像度変換された画像データ(出力解像度の画像データ)を画像統合部550に出力する。
本例の解像度変換部520は、解像度決定部540から入力される実効解像度及び出力解像度に応じて、入力された画像データを出力解像度へ解像度変換する処理と、出力解像度の画像データの実効解像度を変換する処理とを同時に行う。
また、本例の解像度変換部520は、フォント又はコンピュータグラフィックス(CG)を保護するように指示された場合には、フォント又はCG(以下、CG等)を保護しつつ、画像データの実効解像度を変換する。
The resolution conversion unit 520 performs resolution conversion processing on the image data input from the image decoding unit 510 in accordance with control from the resolution determination unit 540, and performs resolution conversion image data (image data of output resolution). Is output to the image integration unit 550.
The resolution conversion unit 520 of this example converts the input image data into the output resolution according to the effective resolution and output resolution input from the resolution determination unit 540, and converts the effective resolution of the image data of the output resolution. The conversion process is performed at the same time.
In addition, when instructed to protect the font or computer graphics (CG), the resolution conversion unit 520 of the present example protects the font or CG (hereinafter referred to as CG, etc.), and the effective resolution of the image data. Convert.

符号情報推定部530は、入力された画像データの圧縮特性を評価し、評価結果を解像度決定部540に出力する。
本例の符号情報推定部530は、画像復号部510から入力されるシンボル(予測的中に対応するシンボル)に基づいて、予測的中率を算出し、算出された予測的中率を解像度決定部540に出力する。予測的中率とは、例えば、(予測が的中した画素数)/(全画素数)である。
The code information estimation unit 530 evaluates the compression characteristics of the input image data and outputs the evaluation result to the resolution determination unit 540.
The code information estimation unit 530 of this example calculates a predictive middle rate based on the symbol (a symbol corresponding to the predictive medium) input from the image decoding unit 510, and determines the resolution of the calculated predictive middle rate. Output to the unit 540. The predictive predictive ratio is, for example, (number of pixels for which prediction was successful) / (total number of pixels).

解像度決定部540(制御手段)は、符号情報推定部530から入力された圧縮特性の評価結果と、PDL解析部500から入力された倍率(拡大率又は縮小率)とに基づいて、出力解像度に変換した後の画像データにおける実効解像度を決定し、決定された実効解像度を解像度変換部520に出力する。
本例の解像度決定部540は、符号情報推定部530から入力された予測的中率と、PDL解析部500から入力された倍率に基づいて、出力解像度に変換された後の画像データにおける予測的中率を推定し、推定された予測的中率に基づいて、予め用意された符号化パラメータ(圧縮率を制御するパラメータ)のいずれかで、既定の圧縮率を達成できるか否かを判断する。予め用意された符号化パラメータに対応する符号化処理(圧縮処理)は、画質劣化が許容範囲内におさまる程度の非可逆性を有する。
解像度決定部540は、予め用意された符号化パラメータのいずれを用いても既定の圧縮率が達成されない場合に、予め用意された符号化パラメータで既定の圧縮率が達成されるように、実効解像度を決定し、決定された実効解像度と、PDL解析部500から入力された倍率(出力解像度に対応)とを解像度変換部520に出力する。実効解像度とは、画素数のみで決定される解像度ではなく、画像要素そのものの解像度である。例えば、実効解像度は、均一サイズの画像ブロックを単一の画素値で塗り潰した場合の画像ブロック数で表現される。
The resolution determination unit 540 (control unit) determines the output resolution based on the compression characteristic evaluation result input from the code information estimation unit 530 and the magnification (enlargement rate or reduction rate) input from the PDL analysis unit 500. The effective resolution in the converted image data is determined, and the determined effective resolution is output to the resolution converter 520.
The resolution determination unit 540 of this example uses the predictive median input from the code information estimation unit 530 and the magnification input from the PDL analysis unit 500 to predictively the image data after being converted to the output resolution. Estimate the median rate, and based on the estimated predictive median rate, determine whether a predetermined compression rate can be achieved with one of the encoding parameters (parameters that control the compression rate) prepared in advance. . The encoding process (compression process) corresponding to the encoding parameters prepared in advance has irreversibility such that image quality deterioration falls within an allowable range.
The resolution determination unit 540 determines the effective resolution so that the predetermined compression rate can be achieved with the encoding parameter prepared in advance when the predetermined compression rate is not achieved with any of the encoding parameters prepared in advance. And the determined effective resolution and the magnification (corresponding to the output resolution) input from the PDL analysis unit 500 are output to the resolution conversion unit 520. The effective resolution is not the resolution determined only by the number of pixels, but the resolution of the image element itself. For example, the effective resolution is represented by the number of image blocks when a uniform size image block is filled with a single pixel value.

画像統合部550は、PDL解析部500から入力されたベクタデータ(ラスタライズ後)と、解像度変換部520から入力された画像データ(解像度変換されたデータ)とを統合し、統合された画像ファイルを符号化部560に出力する。   The image integration unit 550 integrates the vector data (after rasterization) input from the PDL analysis unit 500 and the image data (resolution-converted data) input from the resolution conversion unit 520, and outputs the integrated image file. The data is output to the encoding unit 560.

符号化部560は、画像統合部550から入力された画像ファイルを符号化する。
本例の符号化部560は、予め用意された符号化パラメータのいずれかを用いて、解像度変換された画像データを予測符号化方式で符号化する。なお、画像データの実効解像度を落とした場合には、予測的中率が向上するため、予測符号化方式による圧縮効率が向上する。
The encoding unit 560 encodes the image file input from the image integration unit 550.
The encoding unit 560 of the present example encodes the resolution-converted image data using a predictive encoding method using any of the encoding parameters prepared in advance. Note that when the effective resolution of the image data is reduced, the predictive predictive ratio is improved, so that the compression efficiency by the predictive coding method is improved.

図3は、解像度変換部520による解像度変換を例示する図である。なお、本図では、1次元方向の解像度変換を説明するが、2次元方向の解像度変換も同様である。また、図中のA〜Hそれぞれは、画素1〜画素8それぞれの画素値である。
図3(A)に例示する画素群(画素1〜画素8)は、最近傍法で1.5倍に拡大されると、図3(B)に例示する画素群(画素1〜画素12)となる。この拡大処理は、入力解像度の画像データを出力解像度の画像データに変換するものである。
次に、出力解像度の画像データ(画素1〜画素12)の実効解像度を1/2に落とすと、図3(C)に例示する画素群となる。本例では、実効解像度を1/2に落とすために、画像を2画素からなる画像ブロックに分割し、各画像ブロックをそれぞれの画像ブロックの平均画素値で塗り潰している。すなわち、画像に含まれる画素数は変化しないが、隣り合う2画素が同一の画素値で塗り潰されるため、図3(D)に例示するように、見かけ上、画像の解像度が1/2になっている。このように、画素数を変化させず、見かけ上の解像度を変化させる処理を、実効解像度の変換とよぶ。
FIG. 3 is a diagram illustrating resolution conversion by the resolution conversion unit 520. In addition, although this figure demonstrates the resolution conversion of a one-dimensional direction, the resolution conversion of a two-dimensional direction is also the same. In addition, A to H in the figure are pixel values of the pixels 1 to 8, respectively.
When the pixel group (pixel 1 to pixel 8) illustrated in FIG. 3A is enlarged 1.5 times by the nearest neighbor method, the pixel group (pixel 1 to pixel 12) illustrated in FIG. It becomes. This enlargement process converts image data with input resolution into image data with output resolution.
Next, when the effective resolution of the output resolution image data (pixel 1 to pixel 12) is reduced to ½, a pixel group illustrated in FIG. 3C is obtained. In this example, in order to reduce the effective resolution to ½, the image is divided into image blocks composed of two pixels, and each image block is filled with the average pixel value of each image block. That is, the number of pixels included in the image does not change, but since two adjacent pixels are filled with the same pixel value, the resolution of the image is apparently halved as illustrated in FIG. 3D. ing. The process of changing the apparent resolution without changing the number of pixels is called effective resolution conversion.

図3で説明した解像度変換処理は、入力解像度の画像データを出力解像度の画像データに変換する処理(図3(A)から図3(B)への処理)と、出力解像度の画像データの実効解像度を変化させる処理(図3(B)から図3(C)への処理)とを含むが、入力画像(図3(A)の画像)と、出力画像(図3(C)の画像)との関係は、一定のパターンで記述できる。すなわち、解像度変換部520は、倍率(出力解像度/入力解像度)及び実効解像度に対応付けられた変換式を予め用意することにより、入力解像度の画像データを出力解像度の画像データに変換する処理と、出力解像度の画像データの実効解像度を変化させる処理とを同時に行うことができる。   The resolution conversion process described with reference to FIG. 3 is a process of converting input resolution image data into output resolution image data (process from FIG. 3A to FIG. 3B), and effective output resolution image data. Including the process of changing the resolution (the process from FIG. 3B to FIG. 3C), but the input image (the image of FIG. 3A) and the output image (the image of FIG. 3C). Can be described in a certain pattern. That is, the resolution conversion unit 520 converts the image data of the input resolution into the image data of the output resolution by preparing a conversion formula associated with the magnification (output resolution / input resolution) and the effective resolution in advance. The process of changing the effective resolution of the image data of the output resolution can be performed simultaneously.

図4は、CG等を保存しながら実効解像度を変化させる処理を説明する図である。なお、本図では、1次元方向に実効解像度を落とす場合を具体例として説明するが、2次元方向に実効解像度を変換する場合も同様である。また、図中のA〜Hそれぞれは、画素1〜画素10それぞれの画素値である。
図4(A)に例示する画素群において、互いに隣接する画素が同一の画素値を有する場合には、これらの画素は、CG等を構成する画素と判断され、保存対象の画素となる。2次元画像の場合、例えば、注目画素の画素値が、注目画素の周囲にある8画素のいずれかと一致する場合には、解像度変換部520は、この注目画素を保存対象とする。
次に、解像度変換部520は、図4(A)に例示する画素群を複数の画像ブロックに分割し、分割された画像ブロックそれぞれを、平均画素値で塗り潰す。その際に、解像度変換部520は、保存対象の画素の画素値が変化しないように、平均画素値の算出処理、及び、平均画素値での塗潰し処理において、保存対象画素を除外する。結果として、図4(A)に例示する画素群は、図4(B)に例示する画素群に変換される。
なお、CG等を保存せずに実効解像度を変化させた場合には、図4(C)に例示するように、各画像ブロック(画素1〜3のブロック、画素4〜6のブロック、及び、画素7〜9のブロック)が、それぞれ均一な画素値で塗り潰されて、均一に実効解像度が変化するが、CG等を保存しつつ実効解像度を変化させると、図4(B)に例示するように、CG等の画素に相当する部分の画素値がそのまま保存される。
FIG. 4 is a diagram for explaining processing for changing the effective resolution while storing CG and the like. In this figure, the case where the effective resolution is reduced in the one-dimensional direction will be described as a specific example, but the same applies to the case where the effective resolution is converted in the two-dimensional direction. In addition, A to H in the figure are pixel values of the pixels 1 to 10, respectively.
In the pixel group illustrated in FIG. 4A, when adjacent pixels have the same pixel value, these pixels are determined to be pixels constituting CG or the like, and are pixels to be stored. In the case of a two-dimensional image, for example, when the pixel value of the target pixel matches any of the eight pixels around the target pixel, the resolution conversion unit 520 sets the target pixel as a storage target.
Next, the resolution conversion unit 520 divides the pixel group illustrated in FIG. 4A into a plurality of image blocks, and fills each of the divided image blocks with an average pixel value. At that time, the resolution conversion unit 520 excludes the storage target pixel in the calculation process of the average pixel value and the painting process with the average pixel value so that the pixel value of the pixel to be stored does not change. As a result, the pixel group illustrated in FIG. 4A is converted into the pixel group illustrated in FIG.
When the effective resolution is changed without storing CG or the like, as illustrated in FIG. 4C, each image block (a block of pixels 1 to 3, a block of pixels 4 to 6, and The blocks of pixels 7 to 9) are filled with uniform pixel values, and the effective resolution changes uniformly. However, when the effective resolution is changed while storing CG or the like, as illustrated in FIG. In addition, the pixel value corresponding to the pixel such as CG is stored as it is.

図5は、画像処理プログラム5(図2)による画像処理(S10)のフローチャートである。なお、本図では、PDLファイルに含まれる1つのラスタオブジェクトに対する画像処理のみを説明する。したがって、PDLファイルに複数のラスタオブジェクトが含まれている場合には、ラスタオブジェクトそれぞれについて画像処理(S10)が実施される。
図5に示すように、ステップ100(S100)において、PDL解析部500(図2)は、外部からPDLファイルが入力されると、PDLファイルに含まれるラスタオブジェクト(符号データ)を抽出し、抽出された符号データ(ラスタデータ)を画像復号部510に出力する。
また、PDL解析部500は、ラスタデータの解像度(入力解像度)と、出力解像度とを比較して、拡大又は縮小の倍率を算出し、算出された倍率を解像度決定部540に出力する。
FIG. 5 is a flowchart of image processing (S10) by the image processing program 5 (FIG. 2). In this figure, only image processing for one raster object included in the PDL file will be described. Therefore, when a plurality of raster objects are included in the PDL file, image processing (S10) is performed for each raster object.
As shown in FIG. 5, in step 100 (S100), when a PDL file is input from the outside, the PDL analysis unit 500 (FIG. 2) extracts and extracts raster objects (code data) included in the PDL file. The encoded data (raster data) is output to the image decoding unit 510.
In addition, the PDL analysis unit 500 compares the resolution (input resolution) of the raster data with the output resolution, calculates the enlargement or reduction magnification, and outputs the calculated magnification to the resolution determination unit 540.

ステップ105(S105)において、画像復号部510は、PDL解析部500から入力された符号データを復号化し、復号化された画像データ(ラスタデータ)を解像度変換部520に出力する。
また、画像復号部510は、符号データを復号化する途中で生成されるシンボルのうち、ランを示すシンボル(すなわち、予測の連続的中数)を符号情報推定部530に出力する。
In step 105 (S105), the image decoding unit 510 decodes the code data input from the PDL analysis unit 500, and outputs the decoded image data (raster data) to the resolution conversion unit 520.
Also, the image decoding unit 510 outputs, to the code information estimation unit 530, a symbol indicating a run (that is, a continuous middle number of predictions) among symbols generated in the middle of decoding the code data.

ステップ110(S110)において、符号情報推定部530は、画像復号部510から入力されたランのシンボルに基づいて、画像全体の予測的中率を算出し、算出された予測的中率を圧縮特性の評価値として解像度決定部540に出力する。   In step 110 (S110), the code information estimation unit 530 calculates a predictive middle rate of the entire image based on the run symbol input from the image decoding unit 510, and uses the calculated predictive middle rate as a compression characteristic. The evaluation value is output to the resolution determination unit 540.

ステップ115(S115)において、解像度決定部540は、PDL解析部500から入力された倍率に基づいて、画像の拡大処理(すなわち、画素数を増加させる解像度変換)が必要であるか否かを判断する。
画像処理プログラム5は、拡大処理が必要である場合には、S120の処理に移行し、拡大処理が不要である場合には、S140の処理に移行する。
In step 115 (S115), the resolution determination unit 540 determines whether image enlargement processing (that is, resolution conversion that increases the number of pixels) is necessary based on the magnification input from the PDL analysis unit 500. To do.
The image processing program 5 proceeds to the process of S120 when the enlargement process is necessary, and proceeds to the process of S140 when the enlargement process is not necessary.

ステップ120(S120)において、解像度決定部540は、符号情報推定部530から入力された評価値(予測的中率)と、PDL解析部500から入力された倍率(拡大率又は縮小率)とに基づいて、出力解像度に変換された後の画像データにおける予測的中率を算出し、算出された予測的中率に基づいて、予め用意された符号化パラメータのいずれかで既定の圧縮率を達成できるか否かを判断する。
画像処理プログラム5は、いずれの符号化パラメータでも既定の圧縮率が達成できないと判断された場合に、画像の実効解像度を落とすべく、S125の処理に移行し、いずれかの符号化パラメータで既定の圧縮率が達成できると判断された場合に、S140の処理に移行する。
In step 120 (S120), the resolution determination unit 540 uses the evaluation value (predictive median) input from the code information estimation unit 530 and the magnification (enlargement rate or reduction rate) input from the PDL analysis unit 500. Based on the calculated predictive predictive ratio in the image data after being converted to the output resolution, the predetermined compression ratio is achieved with any of the encoding parameters prepared in advance based on the calculated predictive predictive ratio. Determine if you can.
When it is determined that the default compression rate cannot be achieved with any encoding parameter, the image processing program 5 proceeds to the process of S125 in order to reduce the effective resolution of the image. When it is determined that the compression ratio can be achieved, the process proceeds to S140.

ステップ125(S125)において、解像度決定部540は、符号情報推定部530から入力された評価値(予測的中率)と、PDL解析部500から入力された倍率(拡大率又は縮小率)とに基づいて、実効解像度を決定する。実効解像度は、圧縮処理による画質劣化が許容範囲内となる符号化パラメータを用いて、出力解像度の画像データを既定の圧縮率に変換できるように決定される。例えば、解像度決定部540は、適用すべき実効解像度と、倍率及び予測的中率の組合せとを互いに対応付けてテーブルを有し、倍率及び予測的中率に対応する実効解像度をテーブルから読み出す。
解像度決定部540は、決定された実効解像度と、倍率とを解像度変換部520に出力する。
In step 125 (S125), the resolution determination unit 540 uses the evaluation value (predictive median) input from the code information estimation unit 530 and the magnification (enlargement rate or reduction rate) input from the PDL analysis unit 500. Based on this, the effective resolution is determined. The effective resolution is determined so that the image data of the output resolution can be converted into a predetermined compression rate by using an encoding parameter in which the image quality deterioration due to the compression processing is within an allowable range. For example, the resolution determination unit 540 has a table in which the effective resolution to be applied and the combination of the magnification and the predictive middle rate are associated with each other, and reads the effective resolution corresponding to the magnification and the predictive middle rate from the table.
The resolution determination unit 540 outputs the determined effective resolution and magnification to the resolution conversion unit 520.

ステップ130(S130)において、解像度変換部520は、CG等を保護するようユーザから指示されているか否かを判断する。
画像処理プログラム5は、CG等を保護するよう指示されている場合には、S135の処理に移行し、CG等を保護するよう指示されていない場合には、S145の処理に移行する。
In step 130 (S130), the resolution conversion unit 520 determines whether or not the user has instructed to protect the CG or the like.
If the image processing program 5 is instructed to protect CG or the like, the process proceeds to S135. If the instruction is not directed to protect CG or the like, the image processing program 5 proceeds to S145.

ステップ135(S135)において、解像度変換部520は、解像度決定部540から入力された倍率が1.5倍以上であるか否かを判断する。
画像処理プログラム5は、拡大の倍率が1.5倍以上である場合に、S145の処理に移行し、拡大の倍率が1.5倍未満である場合に、S150の処理に移行する。
拡大率が1.5倍以上で実効解像度変換を行う場合は、CG等を保護しつつ実効解像度を変換しても結果が変わらないためである。
In step 135 (S135), the resolution conversion unit 520 determines whether or not the magnification input from the resolution determination unit 540 is 1.5 or more.
The image processing program 5 proceeds to the process of S145 when the enlargement magnification is 1.5 times or more, and proceeds to the process of S150 when the enlargement magnification is less than 1.5 times.
This is because when the effective resolution conversion is performed at an enlargement ratio of 1.5 times or more, the result does not change even if the effective resolution is converted while protecting CG or the like.

ステップ140(S140)において、解像度決定部530は、実効解像度の変換を禁止して、倍率(拡大率又は縮小率)を解像度変換部520に出力する。
解像度変換部520は、解像度決定部530から入力された倍率で、画像復号部510から入力された画像データを拡大又は縮小して、出力解像度の画像データを生成する。
In step 140 (S140), the resolution determination unit 530 prohibits the conversion of the effective resolution and outputs the magnification (enlargement rate or reduction rate) to the resolution conversion unit 520.
The resolution conversion unit 520 enlarges or reduces the image data input from the image decoding unit 510 with the magnification input from the resolution determination unit 530 to generate image data of output resolution.

ステップ145(S145)において、解像度変換部520は、図3に例示したように、解像度決定部530から入力された倍率及び実効解像度に応じて、画像復号部510から入力された画像データに対して、画素数を変化させる解像度変換処理と、画像の実効解像度を変化させる処理とを施す。   In step 145 (S145), as illustrated in FIG. 3, the resolution conversion unit 520 applies the image data input from the image decoding unit 510 according to the magnification and effective resolution input from the resolution determination unit 530. A resolution conversion process for changing the number of pixels and a process for changing the effective resolution of the image are performed.

ステップ150(S150)において、解像度変換部520は、図4に例示したように、解像度決定部530から入力された倍率及び実効解像度に応じて、画像復号部510から入力された画像データに対して、画素数を変化させる解像度変換処理と、CG等の画素値を保護しつつ画像の実効解像度を変化させる処理とを施す。   In step 150 (S150), as illustrated in FIG. 4, the resolution conversion unit 520 performs the processing on the image data input from the image decoding unit 510 according to the magnification and effective resolution input from the resolution determination unit 530. Then, resolution conversion processing for changing the number of pixels and processing for changing the effective resolution of the image while protecting pixel values such as CG are performed.

ステップ155(S155)において、解像度変換部520は、解像度変換された画像データを、画像統合部550を介して符号化部560に出力する。
符号化部560は、予め用意された符号化パラメータを用いて、入力された画像データを予測符号化方式で符号化する。
In step 155 (S155), the resolution conversion unit 520 outputs the resolution-converted image data to the encoding unit 560 via the image integration unit 550.
The encoding unit 560 encodes input image data by a predictive encoding method using encoding parameters prepared in advance.

以上説明したように、本実施形態における画像処理装置2は、例えば、圧縮しづらい高精彩な画像をプリントする場合も、拡大縮小処理と、符号量制御上必要となる実効解像度を落とす処理とを同時に行うことが出来るため、各処理をシーケンシャルに行うことがなくなるため、高い生産性を実現できる。   As described above, the image processing apparatus 2 according to the present embodiment performs, for example, enlargement / reduction processing and processing for reducing the effective resolution necessary for code amount control even when printing a high-definition image that is difficult to compress. Since it can be performed simultaneously, each process is not performed sequentially, so that high productivity can be realized.

なお、変形例として、拡大縮小処理(画素数を変化させる処理)と、実効解像度を変化させる処理とを直列に実施してもよい。この場合にも、出力解像度の画像データ(すなわち、拡大縮小処理がなされた場合の画像データ)の圧縮効率を推定して、拡大縮小処理が施された画像データに対して、推定結果に応じて実効解像度を変更し、その後に符号化する。
また、上記実施形態では、出力解像度の画像データにおける予測的中率を圧縮特性の評価値として用いたが、予測誤差の出現頻度などを用いてもよい。また、JPEG方式を用いる場合には、非ゼロ係数の個数などを用いてもよい。
As a modification, the enlargement / reduction process (process for changing the number of pixels) and the process for changing the effective resolution may be performed in series. Also in this case, the compression efficiency of the output resolution image data (that is, the image data when the enlargement / reduction process is performed) is estimated, and the image data subjected to the enlargement / reduction process is subjected to the estimation result. Change the effective resolution and then encode.
In the above embodiment, the predictive predictive value in the image data of the output resolution is used as the evaluation value of the compression characteristic, but the appearance frequency of the prediction error may be used. Further, when the JPEG method is used, the number of non-zero coefficients may be used.

本発明にかかる画像処理装置2のハードウェア構成を、制御装置20を中心に例示する図である。2 is a diagram illustrating a hardware configuration of an image processing apparatus 2 according to the present invention, centering on a control device 20. FIG. 制御装置20(図1)により実行される画像処理プログラム5の機能構成を例示する図である。It is a figure which illustrates the function structure of the image processing program 5 performed by the control apparatus 20 (FIG. 1). 解像度変換部520による解像度変換を例示する図である。It is a figure which illustrates resolution conversion by the resolution conversion part 520. FIG. CG等を保存しながら実効解像度を変化させる処理を説明する図である。It is a figure explaining the process which changes an effective resolution, preserve | saving CG etc. 画像処理プログラム5(図2)による画像処理(S10)のフローチャートである。It is a flowchart of the image processing (S10) by the image processing program 5 (FIG. 2).

符号の説明Explanation of symbols

2・・・画像処理装置
5・・・画像処理プログラム
500・・・PDL解析部
510・・・画像復号部
520・・・解像度変換部
530・・・符号情報推定部
540・・・解像度決定部
550・・・画像統合部
560・・・符号化部
DESCRIPTION OF SYMBOLS 2 ... Image processing apparatus 5 ... Image processing program 500 ... PDL analysis part 510 ... Image decoding part 520 ... Resolution conversion part 530 ... Code information estimation part 540 ... Resolution determination part 550: Image integration unit 560: Encoding unit

Claims (6)

入力された画像データに応じて、実効解像度を決定する実効解像度決定手段と、
前記実効解像度決定手段により決定された実効解像度で、入力された画像データを既定の目標解像度の画像データに変換する解像度変換手段と
を有する画像処理装置。
Effective resolution determining means for determining the effective resolution according to the input image data;
An image processing apparatus comprising: resolution conversion means for converting input image data into image data having a predetermined target resolution at the effective resolution determined by the effective resolution determination means.
前記解像度変換手段により解像度変換された画像データを基準値以下のデータサイズに圧縮する圧縮手段
をさらに有し、
前記実効解像度決定手段は、前記圧縮手段による圧縮率に応じて、前記実効解像度を決定する
請求項1に記載の画像処理装置。
Compression means for compressing the image data whose resolution has been converted by the resolution conversion means to a data size of a reference value or less;
The image processing apparatus according to claim 1, wherein the effective resolution determination unit determines the effective resolution in accordance with a compression rate by the compression unit.
入力された画像データに基づいて、この画像データの圧縮特性を評価する圧縮評価手段
をさらに有し、
前記実効解像度決定手段は、前記圧縮評価手段による評価結果と、前記解像度変換手段による解像度変換の変換倍率とに基づいて、実行解像度を決定する
請求項2に記載の画像処理装置。
A compression evaluation means for evaluating the compression characteristics of the image data based on the input image data;
The image processing apparatus according to claim 2, wherein the effective resolution determination unit determines an execution resolution based on an evaluation result by the compression evaluation unit and a conversion magnification of resolution conversion by the resolution conversion unit.
前記解像度変換手段は、前記実効解像度が前記目標解像度よりも低い場合に、解像度変換の変換率に応じて、複数の解像度変換方法のいずれかを選択し、選択された解像度変換方法を用いて解像度変換処理を行う
請求項1に記載の画像処理装置。
The resolution conversion unit selects one of a plurality of resolution conversion methods according to a conversion rate of resolution conversion when the effective resolution is lower than the target resolution, and uses the selected resolution conversion method to select a resolution. The image processing apparatus according to claim 1, wherein conversion processing is performed.
前記解像度変換手段は、入力された画像データを前記目標解像度の画像データに変換する処理と、目標解像度に変換された画像データの実効解像度を前記実効解像度決定手段により決定された実効解像度に変換する処理とを同時に行う
請求項1に記載の画像処理装置。
The resolution conversion means converts the input image data into image data of the target resolution, and converts the effective resolution of the image data converted to the target resolution into the effective resolution determined by the effective resolution determination means. The image processing apparatus according to claim 1, wherein the processing is performed simultaneously.
入力された画像データに応じて、実効解像度を決定するステップと、
決定された前記実効解像度で、入力された画像データを既定の目標解像度の画像データに変換するステップと
をコンピュータに実行させるプログラム。
Determining the effective resolution according to the input image data;
Converting the input image data into image data of a predetermined target resolution at the determined effective resolution.
JP2006102025A 2006-04-03 2006-04-03 Image processing apparatus and program Pending JP2007281591A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006102025A JP2007281591A (en) 2006-04-03 2006-04-03 Image processing apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006102025A JP2007281591A (en) 2006-04-03 2006-04-03 Image processing apparatus and program

Publications (1)

Publication Number Publication Date
JP2007281591A true JP2007281591A (en) 2007-10-25

Family

ID=38682637

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006102025A Pending JP2007281591A (en) 2006-04-03 2006-04-03 Image processing apparatus and program

Country Status (1)

Country Link
JP (1) JP2007281591A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014131262A (en) * 2012-11-30 2014-07-10 Oki Data Corp Image processing apparatus and method, and image forming apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014131262A (en) * 2012-11-30 2014-07-10 Oki Data Corp Image processing apparatus and method, and image forming apparatus

Similar Documents

Publication Publication Date Title
JP4732203B2 (en) Image encoding apparatus, decoding apparatus, control method therefor, computer program, and computer-readable storage medium
JP4795161B2 (en) Image processing apparatus, control method therefor, computer program, and computer-readable storage medium
JP5173873B2 (en) Image coding apparatus and control method thereof
JP4687918B2 (en) Image processing apparatus and program
JP2003348358A (en) Image processing apparatus
US8396308B2 (en) Image coding based on interpolation information
US9769486B2 (en) Information processing apparatus, method of controlling the same, and storage medium
JP2012019357A (en) Image processing device and compression method
JP2008042683A (en) Image processing apparatus and its control method, computer program and computer readable storage medium
JP5520099B2 (en) Image processing apparatus and control method thereof
JP2007281591A (en) Image processing apparatus and program
JP2009296590A (en) Image processing device and image processing method
JP4432469B2 (en) Encoding apparatus, encoding method and program thereof
JP4784814B2 (en) Encoding apparatus, encoding method, and program
JP2007166492A (en) Image processor, encoding method, and program
JP4182480B2 (en) Encoding apparatus, encoding method and program thereof
JP4957572B2 (en) Image processing apparatus, image processing system, image processing method, and image processing program
JP4613771B2 (en) Encoding apparatus, encoding method and program thereof
JP4419136B2 (en) Image encoding apparatus, image encoding method and program thereof
JP4795160B2 (en) Image processing apparatus, control method therefor, computer program, and computer-readable storage medium
JP5538985B2 (en) Image coding apparatus and control method thereof
JP2006254189A (en) Image-encoding apparatus, image-encoding method and program therefor
JP2016208153A (en) Encoding device and encoding method
WO2022268236A1 (en) Image compression and associated color approximation
JP2005235029A (en) Image demagnification method and device, and program