JP2003274154A - Image processing method - Google Patents

Image processing method

Info

Publication number
JP2003274154A
JP2003274154A JP2002070222A JP2002070222A JP2003274154A JP 2003274154 A JP2003274154 A JP 2003274154A JP 2002070222 A JP2002070222 A JP 2002070222A JP 2002070222 A JP2002070222 A JP 2002070222A JP 2003274154 A JP2003274154 A JP 2003274154A
Authority
JP
Japan
Prior art keywords
frequency
image
data
partial pixel
interpolation
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
JP2002070222A
Other languages
Japanese (ja)
Inventor
Naohisa Suzuki
尚久 鈴木
Shigeru Mizoguchi
茂 溝口
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2002070222A priority Critical patent/JP2003274154A/en
Publication of JP2003274154A publication Critical patent/JP2003274154A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • G06T3/4007Interpolation-based scaling, e.g. bilinear interpolation

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processing method which minimizes the burden on interpolation processing with no sense of visible degradation without contradicting in image contents. <P>SOLUTION: In the image processing method for extracting data including frequency (AC) components of a plurality of partial pixel areas being a unit of compression when image data compressed with a plurality of pixels as a unit together with frequency (AC) components by using orthogonal conversion to a spatial frequency area is restored from the compressed data to the non- compressed data, feature quantities of extracted frequency (AC) components of a plurality of partial pixel areas are compared with a preliminarily set spatial frequency characteristic threshold. High frequency data blocks and low frequency data blocks are discriminated as frequency characteristics, the result is associated with position information of a plurality of partial pixel areas, at least two kinds of filters for varying magnifications of image data, which have different interpolation precisions, are prepared, and the filters are switched and used with a plurality of partial pixel areas as a unit on the basis of the obtained result when magnifications of image data are varied (image data is enlarged or reduced). <P>COPYRIGHT: (C)2003,JPO

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、画像補間方法に係
り、特に、圧縮された画像データ形式であるJpegfile
画像において、画像内容に対する拡大縮小処理の最適方
法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image interpolation method, and more particularly, to a compressed image data format Jpegfile.
The present invention relates to an optimal method for enlarging / reducing the content of an image.

【0002】[0002]

【従来の技術】デジタルカメラ等で撮影したJpeg file
画像を、PCプリンタ若しくはダイレクトプリンタ等か
ら印刷する場合やDPEでプリントを行う場合がある。
このとき、プリントを行うJpeg file 画像の持つ画素数
と、所望のプリントサイズやプリント解像度に印刷する
ための必要画像画素数とは一致しないことが一般的で、
プリントドライバやアプリケーションによって元のJpeg
file 画像の全画素に対して所定のフィルタにて補間
等、拡大&縮小を行うことにより出力を最適化してい
る。又、デジタルデータのDCTを用いた圧縮画像ファ
イルからプリンタ用データを作成する補間方法として、
“特開平5−261982号“が知られている。
[Prior Art] Jpeg file taken with a digital camera
An image may be printed by a PC printer, a direct printer, or the like, or may be printed by a DPE.
At this time, it is general that the number of pixels of the Jpeg file image to be printed does not match the number of image pixels required to print to the desired print size or print resolution.
Original Jpeg by print driver or application
Output is optimized by performing enlargement / reduction, such as interpolation, with a predetermined filter for all pixels of the file image. Also, as an interpolation method for creating printer data from a compressed image file using the DCT of digital data,
"JP-A-5-261982" is known.

【0003】この具体的な方法は、Jpeg file 等、DC
T(離散コサイン変換)を用いた圧縮画像に対して、プ
リント指定サイズに合わせた逆DCT変換を用いて所望
の解像度データを算出するものである。
This concrete method is described in Jpeg file, DC, etc.
With respect to a compressed image using T (discrete cosine transform), a desired resolution data is calculated by using an inverse DCT transform matching a designated print size.

【0004】他の例として“特開平9−54825号
“の場合は、DCT変換された周波数領域の周波数デー
タに対して予め準備されている定数を用いて周波数デー
タの変換を行い、変更された周波数領域の周波数データ
の逆DCT変換することにより鮮明に補正された画像を
得るものである。
As another example, in the case of "Japanese Unexamined Patent Publication No. 9-54825", the frequency data is changed by converting the frequency data in the frequency domain DCT-converted by using a constant prepared in advance. By performing inverse DCT conversion of frequency data in the frequency domain, a sharply corrected image is obtained.

【発明が解決しようとする課題】デジタルカメラ等で撮
影したJpeg file 画像をプリントする場合に、Jpeg画像
Fileのサイズから印刷サイズのデータへ変換するための
拡大補間処理を行うが、自然画を対象とする銀塩写真並
みの出力を期待することから、この補間処理も一律に高
次補間(バイキュービック等)処理を実行する場合が通
常である。
[Problems to be Solved by the Invention] When printing a Jpeg file image taken with a digital camera or the like, the Jpeg image is printed.
Enlargement interpolation processing is performed to convert from File size to print size data, but this interpolation processing is uniformly high-order interpolation (bicubic Etc.) It is normal to execute processing.

【0005】又、プリント形態としては、処理能力の高
いPCからのプリントだけでなく、デジタルカメラから
プリンタへ直接プリントを行うダイレクトプリント等の
データ処理能力の低い機器によるプリント環境も形成さ
れてきている。この組み込み式のプリンタの処理能力で
は通常のプリント処理に加え、高次の補間処理は負荷と
して重いという問題があり、 印刷命令からプリント実行
の開始までの時間が長くなり、使い勝手が悪い状態が存
在した。自然画の画質を損ねることなく、補間処理とし
ては全体的に処理の軽く済む方法が求められる。上記従
来例のうち、“特開平5−261982号“において
は、解像度変換を行う逆DCT処理が重いという問題が
あり、もう1つの従来例“特開平9−54825号“に
おいては、画像補正のために周波数成分データに対して
一定の変更を加えるものであるが、 この場合、 各ブロッ
ク単位での接合部の整合性が問題になり、更に、この問
題は周波数成分の利用について言及しているが、 変倍に
対する画素補間等の機能は有していない。
Further, as a printing form, not only printing from a PC having a high processing capability, but also a printing environment using a device having a low data processing capability such as direct printing for directly printing from a digital camera to a printer has been formed. . This built-in printer has the problem that the high-order interpolation processing is heavy as a load in addition to the normal print processing, and the time from the print command to the start of print execution is long, resulting in poor usability. did. An interpolation method that does not impair the image quality of a natural image and that is light in overall processing is required. Among the above-mentioned conventional examples, "JP-A-5-261982" has a problem that the inverse DCT processing for performing resolution conversion is heavy, and in another conventional example, "JP-A-9-54825", there is a problem of image correction. Therefore, certain changes are made to the frequency component data, but in this case, the consistency of the joints in each block becomes a problem, and this problem also refers to the use of frequency components. However, it does not have functions such as pixel interpolation for scaling.

【0006】本発明は上記問題に鑑みてなされたもの
で、その目的とする処は、画像内容に逆らうことなく可
視的な劣化を感じることがないようにしつつ、補間処理
の負担を最小限に抑えることができる画像処理方法を提
供することにある。
The present invention has been made in view of the above problems, and an object of the present invention is to minimize the burden of interpolation processing while preventing visual deterioration from being felt against the contents of an image. An object is to provide an image processing method capable of suppressing.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するた
め、本明は、空間周波数領域へ直交変換を用いて複数画
素単位で周波数(交流)成分を含んで圧縮された画像デ
ータを、圧縮データから非圧縮データへ復元する時に、
圧縮の単位である複数の部分画素領域についての周波数
(交流)成分を含むデータを抽出することを特徴とする
画像処理方法において、抽出した複数の部分画素領域の
周波数(交流)成分の特徴量と、予め設定してある空間
周波数特性閾値とを比較し、周波数特性として高域周波
数データブロックと低域周波数データブロックに判定
し、その結果を複数の部分画素領域の位置情報に関連付
け、画像データ変倍用の補間精度の違うフィルタを少な
くとも2種類備え、画像データを変倍(拡大若しくは縮
小)する時に、先に求めた結果を元に複数の部分画素領
域単位で変倍用フィルタを切り替えて使用することを特
徴とする。
In order to achieve the above object, the present invention proposes to convert compressed image data containing a frequency (AC) component in units of a plurality of pixels into a spatial frequency domain by using orthogonal transformation. From uncompressed data to
In an image processing method characterized by extracting data including frequency (AC) components for a plurality of partial pixel regions that are compression units, a feature amount of frequency (AC) components of the extracted plurality of partial pixel regions and , The preset spatial frequency characteristic threshold value is compared, and the high frequency data block and the low frequency data block are determined as the frequency characteristic, and the result is associated with the position information of a plurality of partial pixel areas to change the image data. At least two types of filters with different interpolation precision for doubling are provided, and when scaling (enlarging or reducing) image data, the scaling filter is switched and used in multiple partial pixel area units based on the previously obtained result. It is characterized by doing.

【0008】[0008]

【発明の実施の形態】以下に本発明の実施の形態を添付
図面に基づいて説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to the accompanying drawings.

【0009】一般的なデジタルカメラのデータ圧縮記録
形式であるJpeg File 形式の画像データを印刷する際
に、非圧縮データへ復元する前に、ブロック(8*8画
素)ごとに輝度、色度ベースのDCT(離散コサイン変
換)されたデータも取得し、ブロックごとの空間周波数
成分の内容を判定することで、ブロックのデータごとに
適した補間フィルタを設定することができる。こうする
ことで、1つの画像ファイルの中で印刷用拡大処理を行
う時に画質を落とすことなく、且つ、一様な高度な処理
時間の掛かる補間処理を実施しないで印刷用補間処理が
利用可能となる。
When image data of Jpeg File format which is a general digital camera data compression recording format is printed, luminance and chromaticity bases are set for each block (8 * 8 pixels) before being restored to uncompressed data. By also obtaining the DCT (discrete cosine transform) data of and determining the content of the spatial frequency component for each block, an interpolation filter suitable for each data of the block can be set. By doing this, the interpolation processing for printing can be used without degrading the image quality when performing the enlargement processing for printing in one image file, and without performing the interpolation processing that requires a uniform and high processing time. Become.

【0010】現在、最も一般的な画像圧縮ファイルの
“Jpeg file ”の情報省略と符号化・復号化について説
明する。
Information omission and encoding / decoding of "Jpeg file" of the most common image compression file at present will be described.

【0011】符号化については、通常、デジタルカメラ
やデジタルビデオ等では、静止画をJpegファイルにて保
存することが一般的になっている。この場合、入力機器
の受光素子であるCCD等の入った信号をA/D変換
後、フレームメモリーに取り込み、RGB若しくはCM
Yフィルタの情報を輝度と色度情報に変換する。その
後、8*8(64個)正方画素ブロックに分割する。
Regarding encoding, generally, in a digital camera, a digital video or the like, it is general to save a still image as a Jpeg file. In this case, the signal from the CCD, which is the light receiving element of the input device, is A / D converted and then taken into the frame memory, RGB or CM
The Y filter information is converted into luminance and chromaticity information. After that, it is divided into 8 * 8 (64) square pixel blocks.

【0012】図3のは輝度データのビットマップを8
*8ブロックに分割したうちの1ブロックのデータ例で
ある。においては、0〜255の画素値をレベルシフ
トして−128〜127の信号に変換する。において
は、DCT(離散コサイン変換)によりDCT係数を求
める。視覚特性を考慮した高周波成分の省略を大きく
した量子化テーブルであり、このテーブルを用いて左記
のの結果であるDCT係数に対して量子化を行う。
が量子化を行った結果である。この値をエントロピー符
号化してハフマン符号で表すことにより符号化信号であ
る圧縮データを生成する。
In FIG. 3, the bitmap of the luminance data is 8
* This is an example of data of one block of 8 blocks. In the above, the pixel values of 0 to 255 are level-shifted and converted into signals of -128 to 127. In, the DCT coefficient is obtained by DCT (discrete cosine transform). This is a quantization table in which omission of high-frequency components is increased in consideration of visual characteristics, and using this table, the DCT coefficient that is the result on the left is quantized.
Is the result of quantization. This value is entropy-coded and represented by a Huffman code to generate compressed data which is a coded signal.

【0013】次に、復号化においては符号化の逆の工程
を行う。
Next, in decoding, the reverse process of encoding is performed.

【0014】つまり、符号化信号を復号して、量子化D
CT係数の値を復号する。次に、逆量子化を行うために
量子化テーブルを乗ずることでDCT係数を得る。その
後、逆DCTを行うことでレベルシフトした画像が復元
され、更に逆レベルシフトの値128を加算することで
1ブロックの画像が復号される。
That is, the encoded signal is decoded and quantized D
Decode the value of the CT coefficient. Next, a DCT coefficient is obtained by multiplying the quantization table to perform inverse quantization. After that, the level-shifted image is restored by performing the inverse DCT, and the image of one block is decoded by further adding the value 128 of the inverse level shift.

【0015】説明では、輝度情報と色度情報に分割した
データを合成しRGB画像に変換することを省略した
が、符号化における流れとしては図2に示すように、カ
ラー画像を輝度成分(Y)と2つの色度成分(Cb,C
r)に変換し、その各々を符号化して合成することで、
圧縮画像を生成している。
In the description, the combination of the data divided into the luminance information and the chromaticity information and the conversion into the RGB image is omitted, but the flow in the encoding is as shown in FIG. ) And two chromaticity components (Cb, C
r), and encoding and synthesizing each of them,
Generates a compressed image.

【0016】以上のような、圧縮画像データファイルで
あるJpeg画像をプリントする方法としては、入力機器か
らの画像データをUSBや記憶メディアによってPCに
取り込んで画像を展開し、必要時応じて画像補正を加え
た後プリンタへデータを送る場合や入力機器からの画像
データを直接プリンタへ入力し、プリンタの中で、画像
を解凍し、必要に応じて画像補正を加えた後印刷を行う
等、幾種類かの選択肢がある。
As a method of printing a Jpeg image which is a compressed image data file as described above, the image data from the input device is taken into a PC by a USB or a storage medium, the image is expanded, and the image is corrected when necessary. When sending data to the printer after adding the image, inputting image data from the input device directly to the printer, decompressing the image in the printer, performing image correction if necessary, and printing. There are different kinds of options.

【0017】何れにしても入力画像をプリントするため
には、入力画像データの画素数を印刷モード及び印刷範
囲に一致する画素数に変換する必要がある。図1はJpeg
ファイルを解凍する過程とその際に取得する情報につい
て表したブロック図である。JpegファイルをRGBのビ
ットマップデータへ変換する過程においては、先ず、符
号テーブルを用いてエントロピー復号を行い、逆量子化
に使用する量子化テーブルを逆量子化を行う他にデータ
として記憶する。そして、この逆量子化されたデータ
は、ブロック単位のデータとして周波数変換されたもの
であり、このデータを画像周波数特性を得るためのデー
タとして位置情報と共に取得する。その後、逆DCT処
理と逆レベルシフトを行い、Ycc−RGB変換するこ
とで、通常のRGBビットマップデータに展開される。
In any case, in order to print the input image, it is necessary to convert the number of pixels of the input image data into the number of pixels which matches the print mode and the print range. Figure 1 is Jpeg
It is a block diagram showing the process of decompressing a file and the information acquired at that time. In the process of converting a Jpeg file into RGB bitmap data, first, entropy decoding is performed using a code table, and the quantization table used for inverse quantization is stored as data in addition to performing inverse quantization. The dequantized data is frequency-converted as data in block units, and this data is acquired together with position information as data for obtaining the image frequency characteristic. After that, inverse DCT processing and inverse level shifting are performed, and Ycc-RGB conversion is performed, so that normal RGB bitmap data is developed.

【0018】この圧縮画像解凍において、ブロック単位
の逆量子化されたデータを取得し、周波数特性を判定し
て補間フィルターの選択を行うことになるが、この一連
の流れをフローチャートである図4に示す。
In this compressed image decompression, dequantized data in block units are acquired, the frequency characteristic is judged, and the interpolation filter is selected. This series of flow is shown in the flowchart of FIG. Show.

【0019】8*8画素のブロック単位のDCTデータ
を取得すると同時に、画像ファイルはRGBビットマッ
プデータに展開する。
At the same time that the DCT data in block units of 8 * 8 pixels is acquired, the image file is expanded into RGB bitmap data.

【0020】取得した8*8画素のブロック単位の周波
数成分値(AC値)は低域の周波数から高域の周波数ま
で63個にて構成される。
The acquired frequency component value (AC value) in block units of 8 * 8 pixels is composed of 63 from low frequency to high frequency.

【0021】又、本実施の形態で使用する周波数データ
は輝度成分のものを利用するが、 色度成分のものを利用
する場合でも考えられる。
Further, the frequency data used in the present embodiment uses the luminance component, but it can be considered to use the chromaticity component.

【0022】Jpegファイルの量子化において、 高域周波
数成分は可成り丸めたれた値となり、実画像上は高域周
波数部分においては値が“0”になるものが多い。この
量子化の重み付けが存在するので、本実施の形態におい
ては、8*8画素のブロック内の周波数特性を代表する
値を63個のAC成分データを加算することで求めるこ
ととする。
In the quantization of the Jpeg file, the high frequency component has a considerably rounded value, and the actual image often has a value of "0" in the high frequency part. Since this quantization weighting exists, in the present embodiment, a value representing the frequency characteristic in the block of 8 * 8 pixels is obtained by adding 63 pieces of AC component data.

【0023】但し、周波数特性を代表する値は、AC成
分を使用して他の方法でも決めることはできる。例えば
周波数の低い領域の値の加算や、0〜63までのAC成
分の各項目に重み係数を乗算した後の総和等が考えられ
る。次に、元画像において8*8画素のブロックの総数
を求め、“n”として保存する。
However, the value representing the frequency characteristic can be determined by another method using the AC component. For example, addition of values in a low frequency region, summation after multiplying each item of AC components 0 to 63 by a weighting factor, and the like are conceivable. Next, the total number of blocks of 8 * 8 pixels in the original image is obtained and stored as "n".

【0024】検出判定は、画像の左上から8*8画素の
ブロック単位で行われ、最後の右下のブロックに至るま
で行われる。判定のため注目しているブロックを“B
C”とし、BC=1である左上のブロックから判定を開
始する。
The detection determination is performed in a block unit of 8 * 8 pixels from the upper left of the image, and is performed until the last lower right block. Select the block that you are paying attention to as "B
C ″, and the determination is started from the upper left block where BC = 1.

【0025】先ず、判定するブロックが最終ブロックを
修了していないか判断し、終了していない場合は判定作
業に移行する。BCの値で指定しているブロックのAC
成分の加算値と判定テーブル(T)と比較を行い、判定
テーブル値よりも大きい場合は、該当ブロックの周波数
特性が高域周波数と設定し、判定テーブル値よりも小さ
い場合は、該当ブロックの周波数特性が低域周波数と設
定する。この判定をBCの値が“n”を超えるまで行
う。
First, it is judged whether or not the block to be judged has completed the final block, and if it has not ended, the judgment work is started. AC of the block specified by the value of BC
The added value of the component is compared with the judgment table (T), and if it is larger than the judgment table value, the frequency characteristic of the corresponding block is set to a high frequency, and if it is smaller than the judgment table value, the frequency of the corresponding block is set. The characteristic is set to low frequency. This determination is repeated until the value of BC exceeds "n".

【0026】本実施の形態においては、“T=200”
と設定されており、1ブロック内のAC成分総加算の値
が200を超える場合は、高域周波数と設定となる。
In the present embodiment, "T = 200"
Is set, and when the value of the total sum of AC components in one block exceeds 200, the high frequency is set.

【0027】判定作業終了後、印刷のための拡大補間処
理において、判定に従い高域周波数と判定されたブロッ
クにおいては、品質の高い高次の補間処理(例えばキュ
ービック)を行い、低域周波数と判定されたブロックに
おいては、処理の軽い補間処理(例えばボックスフィル
タ)を行う。
After the completion of the determination work, in the enlarged interpolation process for printing, a high-quality high-order interpolation process (for example, cubic) is performed on the block determined to have the high-frequency according to the determination, and the block is determined to have the low-frequency. Interpolation processing (for example, box filter) that is light in processing is performed on the selected block.

【0028】こうして、画像全体に対して必要に応じ
て、空間周波数が高いデータがあるブロックにおいては
高次の補間処理を行い、それ以外のブロックにおいて
は、処理を簡単化することで、画質を落とすことなく拡
大補間処理量を削減する。
In this way, if necessary, high-order interpolation processing is performed on the entire image in a block having high spatial frequency data, and in other blocks, the processing is simplified to improve the image quality. The amount of expansion interpolation processing is reduced without dropping.

【0029】又、補間処理の切り替わる境界部分におい
て、更に滑らかな補間処理を行うために、境界部分と思
われる高域と低域の中間程度の周波数特性を持つブロッ
クに対して使用する補間処理フィルターを広域用と低域
用の間の性能を有するものを追加することで、 対応する
方法がある。これを行ったときのフローチャートを図5
に示す。8*8画素のブロック単位のDCTデータを取
得すると同時に、画像ファイルはRGBビットマップデ
ータに展開する。8*8画素のブロック単位の周波数特
性を代表する値を、63個のAC成分データを加算する
ことで求める。
Further, in order to perform smoother interpolation processing at the boundary portion where the interpolation processing is switched, an interpolation processing filter used for a block having a frequency characteristic in the middle of the high band and the low band which is considered to be the boundary part. There is a way to deal with it by adding the one that has the performance between wide area and low area. The flow chart when doing this is shown in FIG.
Shown in. At the same time as obtaining the DCT data in block units of 8 * 8 pixels, the image file is expanded into RGB bitmap data. A value representative of the frequency characteristic of a block unit of 8 * 8 pixels is obtained by adding 63 pieces of AC component data.

【0030】次に、元画像において8*8画素のブロッ
クの総数を求め、“n”として保存する。
Next, the total number of blocks of 8 * 8 pixels in the original image is calculated and stored as "n".

【0031】ここまでは、図4において説明した内容と
同じ工程で、BCの値がn以下であればBCの値で指定
されたブロックのAC成分総和の値とテーブル“T1
“の値を比較する。”T1“は8*8ブロックの画像の
空間周波数特性が大きい値を示しているか判定するため
のテーブル値で、 本実施の形態においては、”200
“を使用している。ブロック内の総和が200より大き
い時はBCで指定されたブロックは高域周波数ブロック
として設定を行う。
Up to this point, if the value of BC is n or less, the value of the total AC component of the block specified by the value of BC and the table "T1" are used in the same process as described with reference to FIG.
"Compare values of". T1 "is a table value for determining whether the spatial frequency characteristic of the image of the 8 * 8 block shows a large value, and in the present embodiment," 200 ".
When the sum in the block is larger than 200, the block designated by BC is set as a high frequency block.

【0032】又、”T1“以下の場合、次に”T2“の
値を比較する。”T2“は8*8ブロックの画像の空間
周波数特性が低域周波数特性と中間周波数特性を判別す
るための閾値テーブルである。本実施の形態において
は”80“を使用している。
If "T1" or less, the value of "T2" is compared next. “T2” is a threshold table for distinguishing the low frequency characteristic and the intermediate frequency characteristic from the spatial frequency characteristic of the image of 8 * 8 block. In this embodiment, "80" is used.

【0033】ここで、BCで指定されたブロックの値が
80より大きい場合は、BCで指定されたブロックは中
域周波数ブロックとして設定を行い、80より小さい場
合は、BCで指定されたブロックは低域周波数ブロック
として設定を行う。
Here, if the value of the block designated by BC is larger than 80, the block designated by BC is set as the middle frequency block, and if it is smaller than 80, the block designated by BC is Set as a low frequency block.

【0034】上記判定を画像全ての判定が終わるBCが
“n”を超えるまで行われ、判定作業終了後、印刷のた
めの拡大補間処理において、判定に従い高域周波数と判
定されたブロックにおいては、 品質の高い高次の補間処
理(例えばキュービック)を行い、中域周波数と判定さ
れたブロックにおいては、性能と処理の中庸な補間処理
(例えば”Triangle)を行う。低域周波数と判定された
ブロックにおいては、処理の軽い補間処理(例えばボッ
クスフィルタ)を行う。
The above determination is performed until BC for which all the images have been determined exceeds "n", and after the determination work is completed, in the enlarged interpolation processing for printing, in the block determined to have a high frequency according to the determination, High-quality high-order interpolation processing (for example, cubic) is performed, and for blocks that have been determined to have a mid-range frequency, moderate interpolation processing (for example, "Triangle") is performed on blocks that have low performance and processing. In (1), interpolation processing (for example, a box filter) that is light in processing is performed.

【0035】図6は人物を撮影した画像であり、 サイズ
はUXGA(1600*1200)である。背景は梅林
であり、 この部分の空間周波数は高い画像と言える。
FIG. 6 shows an image of a person, the size of which is UXGA (1600 * 1200). The background is Umebayashi, and it can be said that the spatial frequency of this part is high.

【0036】図7は風景を撮影した画像であり、サイズ
はUXGA(1600*1200)である。全体的に空
間周波数の低い画像で画像圧縮効率が高い画像と言え
る。
FIG. 7 shows an image of a landscape, and the size is UXGA (1600 * 1200). It can be said that the image has a low spatial frequency and a high image compression efficiency.

【0037】先の図5で示したフローチャートに従って
図6及び図7の画像を拡大補間の切り替えの判定を行っ
た結果を図10及び図11に示す。
FIGS. 10 and 11 show the results of the determination of the switching of the enlarged interpolation of the images of FIGS. 6 and 7 according to the flow chart shown in FIG.

【0038】判定結果は、各ブロックの判定を1ドット
の画素に置換え、更に、そのドットの色情報が茶色の場
合は、判定が低域周波数特性を検出したことを示し、赤
色の場合は、判定が中域周波数特性を検出したことを示
し、黄色の場合は、判定が高域周波数特性を検出したこ
とを示している。
The judgment result is that the judgment of each block is replaced with a pixel of 1 dot, and further, when the color information of the dot is brown, it indicates that the judgment detects a low frequency characteristic, and when it is red, The judgment indicates that the mid-range frequency characteristic is detected, and the case of yellow indicates that the judgment detects the high-range frequency characteristic.

【0039】図10においては、アップで撮影されてい
る人物の肌の部分が低域周波数域と判定されている。ト
レーナー等の衣服の部分等は、中域周波数域と判定さ
れ、背景である梅林等の部分と、オブジェクトの切れ目
の部分が高域周波数域と判定されている。
In FIG. 10, the skin portion of the person photographed up close is determined to be the low frequency range. A part of clothes such as a trainer is determined to be in the middle frequency range, and a part of the background such as Bairin and the cut portion of the object are determined to be in the high frequency range.

【0040】図11においては、高域周波数域と判定さ
れるのは、画面の右端である地上部と、僅かながら青空
と雲の境目が高域周波数域のブロックと中域周波数域の
ブロックが混在している。これ以外の多くのブロックは
低域周波数域であり、このような構図の画像において
は、本実施の形態の処理効率の改善効果を最大に享受で
きる。
In FIG. 11, it is determined that the high frequency band is the ground part which is the right end of the screen, and the block of the high frequency band and the block of the middle frequency band where the boundary between the blue sky and the cloud is slightly. Mixed. Many other blocks are in the low frequency range, and the image of such composition can maximize the effect of improving the processing efficiency of the present embodiment.

【0041】図5のフローチャートの補間フィルターを
3種類切り替えて行うマルチ補間においては、スムーズ
な画像拡大補間を達成することができるが、印刷の拡大
比率が大きくなる、大きいサイズへの印刷の場合、 厳密
に観察すると、僅かに切り替えによる画像変化を見つけ
出すことが境界部分で可能となるため、 これに対応する
ために、高域、中域を判定後その範囲を隣接ブロック
(若しくは2ブロック分の隣接ブロック)に広げること
で、画質性能を向上した方式について開示する。図8は
上記隣接ブロックへの高い側の周波数を広げることを実
施したフローチャートである。左の1列のフローチャー
トである、データ読み込みと“T1”,“T2”テーブ
ルの比較と判定は図5で示したものと同じで、 BCのブ
ロックカウントが“n”を超えた後、の処理に追加が発
生する。再びBCのブロックカウントを“1”にセット
し、画像の左上の先頭に戻し、先の判定で、“T1”を
超えた高域周波数域と判断されたデータブロックを検出
する。検出後、そのブロックに隣接するブロックの設定
がどのようになっているかに拘らず高域へ変換する予約
を入れる。この作業をBCがカウントアップするまで実
行し、終了後、高域周波数域として予約を入れたブロッ
クを高域周波数ブロックに設定を変更する。
In the multi-interpolation in which the three kinds of interpolation filters in the flowchart of FIG. 5 are switched, smooth image enlargement interpolation can be achieved, but in the case of printing to a large size in which the enlargement ratio of printing is large, Strict observation makes it possible to find image changes due to slight switching at the boundary part. Therefore, in order to deal with this, after determining the high range and the middle range, the range is adjacent to a block (or adjacent to two blocks). A method in which the image quality performance is improved by disclosing it in each block will be disclosed. FIG. 8 is a flow chart for carrying out the widening of the higher frequency to the adjacent block. The data reading and the comparison and judgment of the "T1" and "T2" tables, which are the flowcharts in the left column, are the same as those shown in FIG. 5, and the processing after the block count of BC exceeds "n" Addition occurs. The block count of BC is set to "1" again, the top left corner of the image is returned to, and the data block determined to be a high frequency band exceeding "T1" in the previous determination is detected. After the detection, a reservation for converting to the high frequency band is made regardless of the setting of the block adjacent to the block. This operation is executed until the BC counts up, and after the end, the setting of the block reserved as the high frequency band is changed to the high frequency block.

【0042】次に、再びBCのブロックカウントを
“1”にセットし、画像の左上の先頭に戻し、先の判定
で、“T2”を超えた高域周波数域と判断されたデータ
ブロックを検出する。
Next, the block count of BC is set again to "1" and returned to the top left corner of the image, and a data block judged to be a high frequency band exceeding "T2" is detected in the previous judgment. To do.

【0043】検出後、そのブロックに隣接するブロック
の設定が、低域周波数域のブロックに設定されている場
合のみ中高域へ変換する予約を入れる。この作業をBC
がカウントアップするまで実行し、終了後、中域周波数
域として予約を入れたブロックを中域周波数ブロックに
設定を変更し修了する。
After the detection, a reservation for converting to the mid-high range is set only when the setting of the block adjacent to the block is set to the low-frequency block. This work is BC
Is executed until the counter counts up, and after that, the block reserved for the middle frequency band is changed to the middle frequency block and the process is completed.

【0044】終了後、印刷のための拡大補間処理におい
て、判定に従い高域周波数と判定されたブロックにおい
ては、品質の高い高次の補間処理(例えばキュービッ
ク)を行い、中域周波数と判定されたブロックにおいて
は、 性能と処理の中庸な補間処理(例えばTriangle)を
行う。低域周波数と判定されたブロックにおいては、処
理の軽い補間処理(例えばボックスフィルタ)を行う。
After the completion, in the enlargement interpolation process for printing, high-quality high-order interpolation process (for example, cubic) is performed on the block determined to have the high frequency according to the determination, and the block is determined to have the intermediate frequency. In the block, moderate interpolation processing (eg Triangle) is performed. Interpolation processing (for example, a box filter) that is light in processing is performed on the block determined to be the low frequency.

【0045】図8に示したフローチャートに従って図6
及び図7の画像を拡大補間の切り替えの判定を行った結
果を図15及び図16に示す。判定に対する結果の色分
けは先述の場合と同様である。図5で行った結果である
図10と図11と比べると、高域周波数域のブロックと
中域周波数域のブロックが共に範囲を拡大していること
が確認できる。この結果を切り替えによる拡大補間処理
を実行結果としてみると、境界部における変動量がより
目立たなくなる。
6 according to the flow chart shown in FIG.
And FIG. 15 and FIG. 16 show the results of the determination of the switching of the enlarged interpolation of the image of FIG. Color coding of the results for the determination is the same as in the case described above. Comparing FIG. 10 and FIG. 11, which are the results performed in FIG. 5, it can be confirmed that the blocks in the high frequency band and the blocks in the middle frequency band both expand the range. When this result is viewed as the execution result of the enlarged interpolation processing by switching, the variation amount at the boundary becomes less noticeable.

【0046】この結果を踏まえ、隣接ブロックを2ブロ
ック分の隣接ブロックとした場合を、図9のフローチャ
ートに示し、 その判定結果を図17と図18に示す。
Based on this result, the case where the adjacent blocks are the adjacent blocks for two blocks is shown in the flowchart of FIG. 9, and the determination results are shown in FIGS. 17 and 18.

【0047】この結果は、上記と同様に高域周波数域の
ブロックと中域周波数域のブロックが共に範囲を拡大し
ていることが確認できる。しかしながら、図17におい
ては、高域周波数域のブロックが判定したブロック総数
の中の可成りの比率を占めることが分かる。
From this result, it can be confirmed that both the blocks in the high frequency band and the blocks in the middle frequency band have expanded the range as in the above case. However, in FIG. 17, it can be seen that blocks in the high frequency band occupy a considerable ratio in the total number of blocks determined.

【0048】切り替え拡大補間処理において、高域周波
数域が画像全体における大半の比率を占めるようになる
と、切り替えに対する判定や処理の負荷が加わるため、
高域周波数域用の高次の補間フィルターによる単独の処
理に対して、本来の目的である処理効率が期待できなく
なることが分かる。
In the switching enlargement interpolation processing, if the high frequency range occupies the majority of the whole image, the load of judgment and processing for switching is added.
It can be seen that the processing efficiency, which is the original purpose, cannot be expected for a single processing by the high-order interpolation filter for the high frequency band.

【0049】この対応として、図13のフローチャート
において低域周波数域以外のブロックの画像全域に対す
る一定の比率を超えた時の判定方法を示している。
As a measure against this, the flow chart of FIG. 13 shows a determination method when a certain ratio of the blocks other than the low frequency band exceeds a certain ratio to the entire image.

【0050】元画像において、8*8画素のブロックの
総数“n”を求め、 判定のため注目しているブロックを
“BC”とし、BC=1である左上のブロックにセット
する。更に、高域周波数域のブロック総数をカウントす
るカウンタ“Count1”と中高域周波数域のブロッ
ク総数をカウントするカウンタ“Count2”の値を
“0”にセットする。検出は、画像の左上から8*8画
素のブロック単位で行われ、 最後の右下のブロックに至
るまで行われる。BCが“n”を超えた時点で“Cou
nt1”と“Count2”のカウントと判定基準を比
較する。本実施の形態においては、“Count1”の
値が総ブロック数の70%を超えるか、“Count
1”と“Count2”の総和が総ブロック数の80%
を超える場合を検出する仕組みになっている。上記設定
値を超えた場合、切り替え拡大補間処理は禁止され、高
域周波数域の拡大補間用フィルターのみで全ての画像に
対して実行するように設定している。
In the original image, the total number "n" of blocks of 8 * 8 pixels is obtained, and the block of interest for determination is set to "BC", which is set in the upper left block where BC = 1. Further, the value of the counter "Count1" for counting the total number of blocks in the high frequency band and the value of the counter "Count2" for counting the total number of blocks in the middle and high frequency bands are set to "0". The detection is performed in a block unit of 8 * 8 pixels from the upper left of the image, and is performed up to the last lower right block. When BC exceeds “n”, “Cou
The count of “nt1” and the count of “Count2” are compared with the determination criterion. In the present embodiment, the value of “Count1” exceeds 70% of the total number of blocks, or “Count”.
The sum of "1" and "Count2" is 80% of the total number of blocks.
It has a mechanism to detect the case of exceeding. When the set value is exceeded, the switching enlargement interpolation process is prohibited, and the enlargement interpolation filter in the high frequency range is set to be executed for all images.

【0051】但し、 “Count1”と“Count
2”の設定の仕方や値は他の値や方法が実行可能である
が、全体画像との関係で切り替えを禁止することであれ
ば他の方法でも同じことを意味する。
However, "Count1" and "Count
As for the setting method and value of 2 ", other values and methods can be executed, but if switching is prohibited in relation to the entire image, the same applies to other methods.

【0052】今まで説明してきた内容は、何れにおいて
も設定を行うと、入出力状況に拘らず1つの動作で全て
を判定していくが、次に印刷品位の設定や、入力サイ
ズ、出力サイズ、印刷モードから拡大補間処理倍率と入
力画像データにおける8*8ブロックの印刷サイズを求
め、これに適した拡大補間処理用切り替えテーブルの選
択方法について説明する。
With respect to the contents described so far, if setting is made in any case, all the judgments are made by one operation regardless of the input / output status. Next, the setting of print quality, input size, output size A method of obtaining the enlargement interpolation processing magnification and the print size of the 8 * 8 block in the input image data from the print mode and selecting the enlargement interpolation processing switching table suitable for this will be described.

【0053】先ず、 印刷品位による設定選択方法につい
ては、図14に設定したテーブル値の表を示す。
First, regarding the setting selection method according to the print quality, the table of the set table values is shown in FIG.

【0054】縦軸は、図5で示した3段階の補間フィル
ター切り替えてを実行するときのための高域周波数域と
中域周波数域を区別する“高域”と、中域周波数域と低
域周波数域を区別する“中域”の欄がある。
The vertical axis represents "high band" for distinguishing between the high band frequency band and the middle band frequency band for executing the three-stage interpolation filter switching shown in FIG. 5, and the middle band frequency band and the low band frequency band. There is a "middle range" column that distinguishes the frequency range.

【0055】横の軸は、印字品位の設定クラスになる。
表現方法は無限にあるが、 本実施の形態では、理解し易
いように“速い”、“普通”、“きれい“の3段階の例
とする。”速い“においては、画質より印字スピードを
重視したものであり、”きれい“においては、画質優先
である。”普通“の設定は、“速い”と“きれい“の中
間の扱いになる。
The horizontal axis is the print quality setting class.
Although there are an unlimited number of expression methods, in the present embodiment, an example of three stages of “fast”, “normal”, and “clean” is provided for easy understanding. In "fast", printing speed is prioritized over image quality, and in "clean", image quality is prioritized. The "normal" setting is somewhere between "fast" and "clean".

【0056】テーブルの値を見ると、“速い”設定の方
が高域及び中域のフィルタ使用する比率が抑えられてい
ることが分かる。このテーブルにおいては、“きれい”
の設定においてもフィルターを切り替えるようにしてい
るが、高域周波数域の補間を行う最高レベルのフィルタ
ー単独で補間を実行するようにしても良い。
From the values in the table, it can be seen that the "fast" setting reduces the ratio of high-frequency and mid-frequency filters used. In this table, "clean"
Although the filter is switched also in the setting of 1, the interpolation may be executed only by the highest level filter that performs the interpolation in the high frequency band.

【0057】このテーブルの判定を行う。フローチャー
トを図20に示す。プリンタに設定している印刷品位モ
ードを取得し、モードが“速い”であるかを判定する。
“速い”の場合は、中域設定を“80”に、高域設定を
“200”にして修了する。“速い”設定でない場合
は、“普通”であるかを判定する。“普通”の場合は、
中域設定を“60”に、高域設定を“150”にして修
了する。“普通” 設定でない場合は、排他法で、“き
れい”の設定となるので、中域設定を“40”に、高域
設定を“100”にして修了し、印刷命令を待つ。
This table is judged. The flowchart is shown in FIG. The print quality mode set in the printer is acquired, and it is determined whether the mode is "fast".
In the case of "fast", the middle range setting is set to "80" and the high range setting is set to "200", and the process is completed. When the setting is not "fast", it is determined whether it is "normal". In the case of "normal",
Complete with the mid range setting at "60" and the high range setting at "150". If the setting is not "normal", the setting is "clean" by the exclusion method, so the middle range setting is set to "40" and the high range setting is set to "100" to finish the process and wait for a print command.

【0058】次に、印刷品位の設定や入力サイズ、出力
サイズ、印刷モードから拡大補間処理倍率と入力画像デ
ータにおける8*8ブロックの印刷サイズを求め、これ
に適した拡大補間処理用切り替えテーブルの選択方法に
ついて説明する。
Next, the enlargement interpolation processing magnification and the print size of 8 * 8 blocks in the input image data are obtained from the print quality setting, input size, output size, and print mode, and the enlargement interpolation processing switching table suitable for this is obtained. The selection method will be described.

【0059】図19に設定したテーブル値の表を示す。FIG. 19 shows a table of set table values.

【0060】横の軸は、入力画像のデータを印刷サイズ
と印刷モード(解像度)より、必要となる拡大補間倍率
を表している。“3倍未満”と“3以上〜5倍未満”と
媒5倍以上“の3段階としてある。
The horizontal axis represents the enlargement interpolation magnification required for the print size and print mode (resolution) of the input image data. There are three levels of "less than 3 times", "3 or more and less than 5 times" and 5 times or more of the medium.

【0061】本実施の形態においては、入力画像サイズ
はUXGA(1600*1200)であり、印刷サイズ
設定が203mm*152mmの場合について説明する
と、印刷モード(解像度設定有り)においては、600
dpi(Dot Par Inch)のものと、360dpiが設定
できる。このうち600dpiで印刷する場合は、48
00*3600の画素が必要であり、補間倍率は3倍と
なり、“〜*5”の列に該当する360dpiで印刷す
る場合は、2877*2157の画素が必要であり、補
間倍率は1.8倍となり、“〜*3”の列に該当する。
In the present embodiment, the case where the input image size is UXGA (1600 * 1200) and the print size setting is 203 mm * 152 mm will be described. In the print mode (with resolution setting), 600
It is possible to set 360 (dpi) as the one for dpi (Dot Par Inch). Of these, 48 when printing at 600 dpi
00 * 3600 pixels are required, the interpolation magnification becomes 3 times, and when printing at 360 dpi corresponding to the column of "to * 5", 2877 * 2157 pixels are required and the interpolation magnification is 1.8. It is doubled and corresponds to the column of "to * 3".

【0062】縦軸は、入力画像データの8*8ブロック
の1辺の長さがどのくらいのサイズで印刷されるかによ
り分類したものである。本実施の形態の分類において
は、入力画像のサイズとプリントサイズにより求めら
れ、203mmを200(1600dotを8で除算)
で除算した値が2より小さいか2以上であるかで分類さ
れる。
The vertical axis is classified according to the size of the length of one side of the 8 * 8 block of the input image data to be printed. In the classification of the present embodiment, 203 mm is 200 (1600 dot divided by 8), which is obtained by the size of the input image and the print size.
It is classified by whether the value divided by is less than 2 or is 2 or more.

【0063】この分類の中で、更に図5で示した3段階
の補間フィルター切り替えてを実行する時のための高域
周波数域と中域周波数域を区別する“高域”と、中域周
波数域と低域周波数域を区別する“中域”の欄がある。
In this classification, the “high band” for distinguishing the high band frequency band and the middle band frequency band for executing the three-stage interpolation filter switching shown in FIG. 5 and the middle band frequency There is a "middle range" column that distinguishes the low and high frequencies.

【0064】テーブルの値を見ると、入力画像データの
8*8ブロックの1辺の長さの印刷サイズが大きいほど
拡大補間処理は高品位なフィルターの使用比率が高いよ
うに設定している。又、補間倍率に付いても、補間倍率
が大きいほど拡大補間処理は高品位なフィルターの使用
比率が高いように設定している。
Looking at the values in the table, the larger the print size of the length of one side of the 8 * 8 block of the input image data, the larger the interpolation ratio is set so that the use ratio of the high quality filter is high. Regarding the interpolation magnification, the larger the interpolation magnification is, the higher the use ratio of the high quality filter is set in the enlarged interpolation processing.

【0065】このテーブルの判定を行う。フローチャー
トを図21に示す。入力画像サイズを取得。続いて印刷
サイズとモード(解像度含む)を取得する。取得情報よ
り入力画像の拡大補間倍率“HB媒と、入力画像データ
の内8*8ブロックの1辺の印刷長さ”PS“を算出す
る。
This table is judged. A flow chart is shown in FIG. Get the input image size. Then, the print size and mode (including resolution) are acquired. From the acquired information, the enlargement interpolation magnification "HB medium and print length of one side of 8 * 8 block of input image data" PS "is calculated.

【0066】“PS”の値が2より小さいか、2以上で
あるかを判定し、2未満である時は高域用補間フィルタ
ーに“Cubic”、中域用補間フィルターに“Tri
angle”をセットする。2以上の場合は、高域用補
間フィルターに“Lanczos”、中域用補間フィル
ターに“Gaussian”をセットする。これは印刷
サイズにより、元データを大きく印刷する時には、より
高品位なフィルターを使用できるようにしたものであ
る。
It is determined whether the value of "PS" is less than 2 or more than 2, and when it is less than 2, "Cubic" is used for the high-frequency interpolation filter and "Tri" is used for the middle-frequency interpolation filter.
Set "angle". If it is 2 or more, set "Lanczos" to the high-frequency interpolation filter and "Gaussian" to the middle-frequency interpolation filter. This is a high-quality filter that can be used.

【0067】フィルターの設定が終了すると、拡大補間
倍率“HB媒が3未満であるかを判定し、3未満の場合
はテーブルの値をセットする。3以上である場合は、
“3以上5未満”か“5以上”であるかを判定し、その
結果に対応したテーブルをセットする。
When the setting of the filter is completed, it is judged whether or not the enlarged interpolation magnification "HB medium is less than 3. If it is less than 3, the table value is set. If it is 3 or more,
It is determined whether "3 or more and less than 5" or "5 or more", and the table corresponding to the result is set.

【0068】セットするテーブルは図19のテーブルの
内容となるが、下記のようになる。 “PS<2”の場合 “3未満” 中域設定=80、高域設定=200 ”3以上5未満” 中域設定=60、高域設定=150 “5以上” 中域設定=40、高域設定=100 “PS=2以上”の場合 “3未満” 中域設定=60、高域設定=150 ”3以上5未満” 中域設定=40、高域設定=100 “5以上” 中域設定=30、高域設定=80 本実施の形態では、テーブル化による切り替えにてフィ
ルターの切り替え値を決定したが、関数によるリニアな
切り変え値の算出方法等も考えられる。
The table to be set has the contents of the table of FIG. 19, but is as follows. "PS <2""Less than 3" Mid range setting = 80, High range setting = 200 "3 or more and less than 5" Mid range setting = 60, High range setting = 150 "5 or more" Mid range setting = 40, High Range setting = 100 "PS = 2 or more""Less than 3" Middle range setting = 60, High range setting = 150 "3 or more but less than 5" Middle range setting = 40, High range setting = 100 "5 or more" Middle range Setting = 30, high frequency setting = 80 In the present embodiment, the filter switching value is determined by switching using a table, but a method of calculating a linear switching value using a function or the like is also conceivable.

【0069】この他、印刷用紙の種類やプリンタに搭載
するインクの種類によるテーブル設定も同じ考えで実行
できる。
In addition, table setting depending on the type of printing paper and the type of ink loaded in the printer can be executed with the same idea.

【0070】図5に示した元画像8*8ブロックの判定
テーブル選別には各ブロックのAC成分(63個)の加
算値を用いたが、ブロックの特性を判定する方法とし
て、別の実施例を示す。
Although the added value of the AC components (63) of each block was used for selecting the determination table of the original image 8 * 8 block shown in FIG. 5, another method is used as a method for determining the characteristic of the block. Indicates.

【0071】図22はAC成分を低い周波数成分から1
0個単位でグループ化した物で(7グループ目は61〜
63の3個)、グループの値は各項目の加算としてい
る。
In FIG. 22, the AC component is reduced to 1 from the low frequency component.
Items grouped in units of 0 (the 7th group is 61-
63), and the group value is the addition of each item.

【0072】判定には、AC成分の“1〜10”、“1
1〜20”、…“61〜63”各項目ごとの設定値との
比較を行い、全て合致するものが“Yes”として図1
2のフローチャートのようにそのブロックにおけるフィ
ルターを設定することができる。
For determination, AC components of "1-10", "1"
1 to 20 ", ..." 61 to 63 "are compared with the setting values for each item, and if all match, the result is" Yes ".
The filter in that block can be set as in the flowchart of FIG.

【0073】尚、本実施の形態においては、切り替え判
定のために同じ画像のブロックに対して複数回判定のた
めの検索を行うフローチャートを示しているが、一連の
処理は、1回の処理にて達成することが可能であること
は言うまでもない。
In the present embodiment, a flow chart is shown in which a block of the same image is searched for a plurality of times for switching judgment, but a series of processing is performed once. It goes without saying that it can be achieved by

【0074】又、本実施の形態は、画像圧縮ファイルと
して“Jpeg file ”を利用した方法を開示したが、“Jp
eg2000 file “等、周波数成分への変換を利用した他の
ファイルに対しても同様な考え方で、注目画像の検出を
簡単な処理で、実現できることは言うまでもない。
Further, the present embodiment discloses a method using "Jpeg file" as an image compression file.
It goes without saying that the detection of the image of interest can be realized by a simple process with the same idea for other files using conversion into frequency components such as eg2000 file “.

【0075】[0075]

【発明の効果】以上の説明で明らかなように、本発明に
よれば、デジタルカメラから直接プリントする場合等の
ように、PCと比べ処理能力が低い組み込み式の機器に
おいては、プリンタの印刷サイズに一致するように画像
データを高次補間する処理は、可成りの負担になり、印
刷命令発行から印刷開始までの時間が掛かる等の問題が
あったが、本発明を使用することで、画像内容に逆らう
ことなく可視的な劣化を感じることがないようにしつ
つ、補間処理の負担を最小限に抑えることができるとい
う効果が得られる。
As is apparent from the above description, according to the present invention, in the case of a built-in device having a lower processing capacity than a PC, such as when printing directly from a digital camera, the print size of the printer The process of performing higher-order interpolation of the image data so as to match with the above has a problem that it takes a considerable load and takes time from the print command issuance to the print start. It is possible to obtain the effect that the burden of the interpolation processing can be minimized while preventing the visual deterioration from being felt without going against the contents.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明に係るJpeg画像解凍時に必要なデータを
取得する流れを示す概念図である。
FIG. 1 is a conceptual diagram showing a flow of acquiring data necessary for decompressing a Jpeg image according to the present invention.

【図2】本発明の画像データをJpeg形式へ変換する処理
過程の流れを示す概念図である。
FIG. 2 is a conceptual diagram showing a flow of a process of converting image data of the present invention into a Jpeg format.

【図3】本発明のJpegの画像圧縮単位である8*8Bloc
k を例にしたJpeg形式へ変換する処理過程を示す図であ
る。
FIG. 3 is 8 * 8 Bloc, which is a Jpeg image compression unit of the present invention.
It is a figure which shows the process of converting into Jpeg format which made k into the example.

【図4】本発明のJpeg画像解凍からブロック判定までの
フローチャートである。
FIG. 4 is a flowchart from Jpeg image decompression to block determination according to the present invention.

【図5】本発明の補間フィルター3種類に対応したJpeg
画像解凍からブロック判定までのフローチャートであ
る。
FIG. 5: Jpeg corresponding to three kinds of interpolation filters of the present invention
It is a flowchart from image decompression to block determination.

【図6】本発明の判定を検討するための元画像(Atyp
e)を示す図である。
FIG. 6 is an original image (Atyp for examining the judgment of the present invention.
It is a figure which shows e).

【図7】本発明の判定を検討する為の元画像(Btype)
を示す図である。
FIG. 7: Original image (Btype) for examining the judgment of the present invention
FIG.

【図8】本発明における高域周波数データブロックの隣
接ブロックのグループ化についてのフローチャートであ
る。
FIG. 8 is a flowchart for grouping adjacent blocks of a high frequency data block according to the present invention.

【図9】本発明における高域周波数データブロックの2
個隣接ブロックのグループ化についてのフローチャート
である。
FIG. 9 is a high frequency data block 2 according to the present invention.
It is a flowchart about grouping of individual adjacent blocks.

【図10】本発明のBase Type による周波数判定を行っ
たAtype画像判定結果を示す図である。
FIG. 10 is a diagram showing an A type image determination result of performing frequency determination based on Base Type of the present invention.

【図11】本発明のBase Type による周波数判定を行っ
たBtype画像判定結果を示す図である。
FIG. 11 is a diagram showing a B type image determination result of performing frequency determination based on Base Type of the present invention.

【図12】本発明のAC周波数データブロッククラスをn
(2以上)段階持つ周波数判定のフローチャートであ
る。
FIG. 12 shows the AC frequency data block class of the present invention as n.
It is a flowchart of the frequency determination which has (two or more) steps.

【図13】本発明の高域周波数データブロックの総数が
元画像における設定した比率を超えて存在する場合のフ
ローチャートである。
FIG. 13 is a flowchart when the total number of high frequency data blocks of the present invention exceeds the set ratio in the original image.

【図14】本発明の印字品位設定による補間判定用テー
ブルの切換表である。
FIG. 14 is a switching table of the interpolation determination table according to the print quality setting of the present invention.

【図15】隣接包含Typeによる周波数判定を行ったAty
pe画像判定結果を示す図である。
FIG. 15: Aty for which frequency judgment is performed based on adjacent inclusion type
It is a figure which shows a pe image determination result.

【図16】隣接包含Typeによる周波数判定を行ったBty
pe画像判定結果を示す図である。
FIG. 16: Bty for which frequency judgment is performed based on adjacent inclusion type
It is a figure which shows a pe image determination result.

【図17】2Block 隣接包含Typeによる周波数判定を行
ったAtype画像判定結果を示す図である。
FIG. 17 is a diagram showing Atype image determination results obtained by performing frequency determination based on 2Block adjacent inclusion type.

【図18】2Block 隣接包含Typeによる周波数判定を行
ったBtype画像判定結果を示す図である。
[Fig. 18] Fig. 18 is a diagram illustrating a B type image determination result in which a frequency determination is performed based on a 2Block adjacency inclusion type.

【図19】本発明の入力画像サイズ、印刷サイズ、印刷
モードによる補間判定用テーブルの切換表である。
FIG. 19 is a switching table of the interpolation determination table according to the input image size, print size, and print mode of the present invention.

【図20】本発明の印刷品位による使用補間フィルター
判定テーブルの切り分けを行うためのフローチャートで
ある。
FIG. 20 is a flow chart for dividing the used interpolation filter determination table according to the print quality of the present invention.

【図21】本発明の周波数判定においてプリンタの設定
(印字サイズ、印刷モード)と元画像のサイズによる使
用補間フィルター判定テーブルの切り分けを行うための
フローチャートである。
FIG. 21 is a flowchart for dividing the used interpolation filter determination table according to the printer settings (print size, print mode) and the size of the original image in the frequency determination of the present invention.

【図22】本発明のAC周波数データブロッククラスの
設定UI画面である。
FIG. 22 is a setting UI screen for an AC frequency data block class of the present invention.

フロントページの続き Fターム(参考) 5B057 AA11 BA02 CD06 CE05 CE06 CG05 CH07 CH18 DC01 DC16 5C076 AA21 AA22 AA32 BA05 BA06 BA07 BB25 BB40 5C078 AA04 BA57 CA22 CA31 CA34 DA02 Continued front page    F term (reference) 5B057 AA11 BA02 CD06 CE05 CE06                       CG05 CH07 CH18 DC01 DC16                 5C076 AA21 AA22 AA32 BA05 BA06                       BA07 BB25 BB40                 5C078 AA04 BA57 CA22 CA31 CA34                       DA02

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 空間周波数領域へ直交変換を用いて複数
画素単位で周波数(交流)成分を含んで圧縮された画像
データを、圧縮データから非圧縮データへ復元する時
に、圧縮の単位である複数の部分画素領域についての周
波数(交流)成分を含むデータを抽出することを特徴と
する画像処理方法において、 抽出した複数の部分画素領域の周波数(交流)成分の特
徴量と、予め設定してある空間周波数特性閾値とを比較
し、周波数特性として高域周波数データブロックと低域
周波数データブロックに判定し、その結果を複数の部分
画素領域の位置情報に関連付け、画像データ変倍用の補
間精度の違うフィルタを少なくとも2種類備え、画像デ
ータを変倍(拡大若しくは縮小)する時に、先に求めた
結果を元に複数の部分画素領域単位で変倍用フィルタを
切り替えて使用することを特徴とする画像処理方法。
1. A plurality of compression units are used when decompressing image data compressed from compressed data into uncompressed data by compressing image data containing a frequency (AC) component in a unit of a plurality of pixels using orthogonal transformation into a spatial frequency domain. In the image processing method, which is characterized by extracting the data including the frequency (AC) component of the partial pixel region of, the feature amount of the frequency (AC) component of the plurality of extracted partial pixel regions is set in advance. The spatial frequency characteristic threshold value is compared and the high frequency data block and the low frequency data block are determined as the frequency characteristic, and the result is associated with the position information of a plurality of partial pixel areas, and the interpolation accuracy for image data scaling is calculated. At least two types of different filters are provided, and when scaling (enlarging or reducing) image data, a scaling filter is performed in units of a plurality of partial pixel areas based on the previously obtained result. An image processing method characterized by using by switching the filter.
【請求項2】 高域周波数データブロックと判断された
部分画素領域においては、精度の高い高次のフィルタを
用い、低域周波数データブロックと判断された部分画素
領域においては、精度の低いフィルタを用いることを特
徴とする請求項1記載の画像処理方法。
2. A high-precision and high-order filter is used in a partial pixel area determined to be a high-frequency data block, and a low-precision filter is used in a partial pixel area determined to be a low-frequency data block. The image processing method according to claim 1, which is used.
【請求項3】 高域周波数データブロックと判断された
部分画素領域においては、その部分画素領域に隣接若し
くはn個分(nは自然数)の部分画素領域内に隣接する
ものを含めた高域周波数データブロックグループと、そ
の他の低域周波数データブロックグループに分けること
を特徴とする請求項1又は2記載の画像処理方法。
3. A high frequency band including a partial pixel region which is determined to be a high frequency data block and which is adjacent to the partial pixel region or adjacent to n (n is a natural number) partial pixel regions. 3. The image processing method according to claim 1, wherein the image processing method is divided into a data block group and another low frequency data block group.
【請求項4】 空間周波数領域へ直交変換を用いて複数
画素単位で周波数(交流)成分を含んで圧縮された画像
データを、圧縮データから非圧縮データへ復元する時
に、圧縮の単位である複数の部分画素領域についての周
波数(交流)成分を含むデータを抽出し、抽出した複数
の部分画素領域の周波数(交流)成分の特徴量と、予め
設定してある空間周波数特性閾値とを比較し、 周波数特
性としてn個(nは3以上)の周波数データブロックク
ラスに判定して切り分け、その結果を複数の部分画素領
域の位置情報に関連付け、画像データ変倍用の補間精度
の違うフィルタを少なくともn種類備え、 画像データを
変倍(拡大若しくは縮小)する時に、先に求めた結果を
元に、複数の部分画素領域単位で変倍用フィルタを切り
替えて使用することを特徴とする画像処理方法。
4. A plurality of compression units are used when decompressing image data compressed from compressed data to uncompressed data by compressing image data containing a frequency (AC) component in units of a plurality of pixels using orthogonal transformation to the spatial frequency domain. Data including a frequency (AC) component for the partial pixel region of is extracted, and the feature amount of the frequency (AC) component of the plurality of extracted partial pixel regions is compared with a preset spatial frequency characteristic threshold value, As frequency characteristics, n (n is 3 or more) frequency data block classes are determined and divided, the results are associated with position information of a plurality of partial pixel regions, and at least n filters with different interpolation precision for image data scaling are used. When the image data is scaled (enlarged or reduced) with different types, the scaling filter should be switched in units of multiple partial pixel areas based on the result obtained earlier. Image processing method according to claim.
【請求項5】 検出された高域周波数データブロックの
総数が画像全体に占める設定した比率若しくは値を超え
た場合、全ての画像データに対して一律に高域周波数デ
ータブロック補間用に設定した補間フィルタを使用する
ことを特徴とする請求項1〜4の何れかに記載の画像処
理方法。
5. When the total number of detected high frequency data blocks exceeds a set ratio or value occupying the entire image, interpolation is set uniformly for high frequency data block interpolation for all image data. The image processing method according to claim 1, wherein a filter is used.
【請求項6】 プリンタの設定を取得する手段を具備
し、少なくとも上記設定内容と元画像サイズ情報によ
り、元画における複数の部分画素領域の周波数(交流)
成分を周波数データブロッククラス分けするための、予
め設定してある空間周波数特性閾値を複数個設け、前記
設定により切り替えて実行することを特徴とする請求項
1〜5の何れかに記載の画像処理方法。
6. A frequency (alternating current) of a plurality of partial pixel regions in an original image, comprising means for acquiring printer settings, and based on at least the setting contents and original image size information.
The image processing according to any one of claims 1 to 5, wherein a plurality of preset spatial frequency characteristic threshold values for classifying components into frequency data block classes are provided, and the threshold values are switched according to the setting and executed. Method.
【請求項7】 圧縮画像データはJpeg File データであ
ることを特徴とする請求項1〜6の何れかに記載の画像
処理方法。
7. The image processing method according to claim 1, wherein the compressed image data is Jpeg File data.
【請求項8】 入力画像の画素数と出力プリントサイズ
を元に、印刷のための補間処理前に、入力画像の1画素
に対応する印刷サイズを算出し、算出結果より補間処理
用のフィルターを切り替えて使用する請求項1〜7の何
れかに記載の画像処理方法。
8. A print size corresponding to one pixel of the input image is calculated based on the number of pixels of the input image and the output print size, and a filter for the interpolation process is calculated from the calculation result. The image processing method according to claim 1, which is used by switching.
JP2002070222A 2002-03-14 2002-03-14 Image processing method Pending JP2003274154A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002070222A JP2003274154A (en) 2002-03-14 2002-03-14 Image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002070222A JP2003274154A (en) 2002-03-14 2002-03-14 Image processing method

Publications (1)

Publication Number Publication Date
JP2003274154A true JP2003274154A (en) 2003-09-26

Family

ID=29200854

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002070222A Pending JP2003274154A (en) 2002-03-14 2002-03-14 Image processing method

Country Status (1)

Country Link
JP (1) JP2003274154A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7885486B2 (en) 2006-07-31 2011-02-08 Fuji Xerox Co., Ltd. Image processing system, method for processing image and computer readable medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7885486B2 (en) 2006-07-31 2011-02-08 Fuji Xerox Co., Ltd. Image processing system, method for processing image and computer readable medium

Similar Documents

Publication Publication Date Title
JP3902968B2 (en) Image processing apparatus, control method therefor, computer program, and storage medium
JP4870743B2 (en) Selective chrominance decimation for digital images
JP4979655B2 (en) Image coding apparatus and control method thereof
US8023749B2 (en) Image compressing apparatus and image reading apparatus including the same, image processing apparatus including image compressing apparatus and image forming apparatus including the same, image compression processing method, computer program thereof, and recording medium
US7194128B1 (en) Data compression using principal components transformation
US7248735B2 (en) Compression and decompression method of image data
US7742521B2 (en) Method and system for processing signals via perceptive vectorial quantization, computer program product therefor
JP2007295416A (en) Image processing method and image processing apparatus
US6738169B1 (en) Image processing apparatus and method
JP3857509B2 (en) Image processing apparatus, image processing system, image encoding method, and storage medium
JP3984813B2 (en) Image processing apparatus and method, computer program, and storage medium
US6829385B2 (en) Apparatus and method for processing images, and a computer-readable medium
JP2003274154A (en) Image processing method
JP2007019878A (en) Image coding apparatus and image coding method
JP3989343B2 (en) Image processing apparatus, image processing method, and recording medium on which image processing method is recorded
US8532404B2 (en) Image processing apparatus, image processing method and computer-readable medium
JP2008236084A (en) Image processing method, image processor, image processing program and recording medium
JP2005269620A (en) Image compressing/expanding method, image compressing apparatus, image expanding apparatus
JP3979020B2 (en) Image processing apparatus for sampling compressed image
WO2004091221A2 (en) Fixed bit rate, intraframe compression and decompression of video
JP3914796B2 (en) Image processing device
JPH1023261A (en) Image-processing unit
JP3028745B2 (en) Image information processing device
JP2006024222A (en) Image processing apparatus and image processing method
JP2004112345A (en) Image processing apparatus, image processing method, and image processing program