JP2007281591A - Image processing apparatus and program - Google Patents
Image processing apparatus and program Download PDFInfo
- 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
Links
Images
Landscapes
- Image Processing (AREA)
- Editing Of Facsimile Originals (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
Abstract
Description
本発明は、画像データの解像度を変換する画像処理装置に関する。 The present invention relates to an image processing apparatus that converts the resolution of image data.
例えば、特許文献1には、画像データを解像度変換によって縮小し、縮小された画像データを圧縮する画像出力装置が開示されている。
本発明は、上述した背景からなされたものであり、圧縮効率を加味した解像度変換を行う画像処理装置を提供することを目的とする。 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
As illustrated in FIG. 1, the image processing apparatus 2 includes a
The image processing device 2 is a processing device provided in the
[画像処理プログラム]
図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
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
Also, the
画像復号部510は、PDL解析部500から入力された符号データを復号化し、復号化された画像データを解像度変換部520に出力する。
また、画像復号部510は、圧縮効率を評価するための情報を符号情報推定部530に出力する。本例の画像復号部510は、復号化処理において生成されるシンボルの一部(本例では、予測的中に対応するシンボル)を符号情報推定部530に出力する。
The
In addition, the
解像度変換部520は、解像度決定部540からの制御に応じて、画像復号部510から入力された画像データに対して解像度変換処理を施して、解像度変換された画像データ(出力解像度の画像データ)を画像統合部550に出力する。
本例の解像度変換部520は、解像度決定部540から入力される実効解像度及び出力解像度に応じて、入力された画像データを出力解像度へ解像度変換する処理と、出力解像度の画像データの実効解像度を変換する処理とを同時に行う。
また、本例の解像度変換部520は、フォント又はコンピュータグラフィックス(CG)を保護するように指示された場合には、フォント又はCG(以下、CG等)を保護しつつ、画像データの実効解像度を変換する。
The
The
In addition, when instructed to protect the font or computer graphics (CG), the
符号情報推定部530は、入力された画像データの圧縮特性を評価し、評価結果を解像度決定部540に出力する。
本例の符号情報推定部530は、画像復号部510から入力されるシンボル(予測的中に対応するシンボル)に基づいて、予測的中率を算出し、算出された予測的中率を解像度決定部540に出力する。予測的中率とは、例えば、(予測が的中した画素数)/(全画素数)である。
The code
The code
解像度決定部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
The
The
画像統合部550は、PDL解析部500から入力されたベクタデータ(ラスタライズ後)と、解像度変換部520から入力された画像データ(解像度変換されたデータ)とを統合し、統合された画像ファイルを符号化部560に出力する。
The
符号化部560は、画像統合部550から入力された画像ファイルを符号化する。
本例の符号化部560は、予め用意された符号化パラメータのいずれかを用いて、解像度変換された画像データを予測符号化方式で符号化する。なお、画像データの実効解像度を落とした場合には、予測的中率が向上するため、予測符号化方式による圧縮効率が向上する。
The
The
図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
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
図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
Next, the
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
In addition, the
ステップ105(S105)において、画像復号部510は、PDL解析部500から入力された符号データを復号化し、復号化された画像データ(ラスタデータ)を解像度変換部520に出力する。
また、画像復号部510は、符号データを復号化する途中で生成されるシンボルのうち、ランを示すシンボル(すなわち、予測の連続的中数)を符号情報推定部530に出力する。
In step 105 (S105), the
Also, the
ステップ110(S110)において、符号情報推定部530は、画像復号部510から入力されたランのシンボルに基づいて、画像全体の予測的中率を算出し、算出された予測的中率を圧縮特性の評価値として解像度決定部540に出力する。
In step 110 (S110), the code
ステップ115(S115)において、解像度決定部540は、PDL解析部500から入力された倍率に基づいて、画像の拡大処理(すなわち、画素数を増加させる解像度変換)が必要であるか否かを判断する。
画像処理プログラム5は、拡大処理が必要である場合には、S120の処理に移行し、拡大処理が不要である場合には、S140の処理に移行する。
In step 115 (S115), the
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
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
The
ステップ130(S130)において、解像度変換部520は、CG等を保護するようユーザから指示されているか否かを判断する。
画像処理プログラム5は、CG等を保護するよう指示されている場合には、S135の処理に移行し、CG等を保護するよう指示されていない場合には、S145の処理に移行する。
In step 130 (S130), the
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
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
The
ステップ145(S145)において、解像度変換部520は、図3に例示したように、解像度決定部530から入力された倍率及び実効解像度に応じて、画像復号部510から入力された画像データに対して、画素数を変化させる解像度変換処理と、画像の実効解像度を変化させる処理とを施す。
In step 145 (S145), as illustrated in FIG. 3, the
ステップ150(S150)において、解像度変換部520は、図4に例示したように、解像度決定部530から入力された倍率及び実効解像度に応じて、画像復号部510から入力された画像データに対して、画素数を変化させる解像度変換処理と、CG等の画素値を保護しつつ画像の実効解像度を変化させる処理とを施す。
In step 150 (S150), as illustrated in FIG. 4, the
ステップ155(S155)において、解像度変換部520は、解像度変換された画像データを、画像統合部550を介して符号化部560に出力する。
符号化部560は、予め用意された符号化パラメータを用いて、入力された画像データを予測符号化方式で符号化する。
In step 155 (S155), the
The
以上説明したように、本実施形態における画像処理装置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・・・画像処理装置
5・・・画像処理プログラム
500・・・PDL解析部
510・・・画像復号部
520・・・解像度変換部
530・・・符号情報推定部
540・・・解像度決定部
550・・・画像統合部
560・・・符号化部
DESCRIPTION OF SYMBOLS 2 ... Image processing apparatus 5 ...
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.
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)
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 |
-
2006
- 2006-04-03 JP JP2006102025A patent/JP2007281591A/en active Pending
Cited By (1)
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 |