JP4711879B2 - Image processing apparatus, image forming apparatus, computer program, recording medium, and image processing method - Google Patents

Image processing apparatus, image forming apparatus, computer program, recording medium, and image processing method Download PDF

Info

Publication number
JP4711879B2
JP4711879B2 JP2006126659A JP2006126659A JP4711879B2 JP 4711879 B2 JP4711879 B2 JP 4711879B2 JP 2006126659 A JP2006126659 A JP 2006126659A JP 2006126659 A JP2006126659 A JP 2006126659A JP 4711879 B2 JP4711879 B2 JP 4711879B2
Authority
JP
Japan
Prior art keywords
image
designation
resolution
magnification
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.)
Active
Application number
JP2006126659A
Other languages
Japanese (ja)
Other versions
JP2007300393A (en
Inventor
秀義 吉村
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.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP2006126659A priority Critical patent/JP4711879B2/en
Publication of JP2007300393A publication Critical patent/JP2007300393A/en
Application granted granted Critical
Publication of JP4711879B2 publication Critical patent/JP4711879B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Image Processing (AREA)

Description

本発明は、画像を圧縮し、圧縮された画像を伸張する画像処理装置、該画像処理装置を備える画像形成装置、前記画像処理装置をコンピュータで実現するためのコンピュータプログラム、該コンピュータプログラムを記録した記録媒体及び画像処理方法に関する。   The present invention relates to an image processing apparatus that compresses an image and decompresses the compressed image, an image forming apparatus including the image processing apparatus, a computer program for realizing the image processing apparatus by a computer, and the computer program recorded therein. The present invention relates to a recording medium and an image processing method.

スキャナ又はデジタルカメラなどでカラー画像の画像処理を行う場合、画像データのデータ量が多いため、従来からJPEG(Joint Photographic Experts Group)又はJPEG2000などの非可逆圧縮方式により圧縮された圧縮画像データを用いて画像データの転送又は画像データの保管などの処理が行われている。   When performing color image processing with a scanner or digital camera, the amount of image data is large, so conventionally compressed image data compressed by an irreversible compression method such as JPEG (Joint Photographic Experts Group) or JPEG2000 is used. Processing such as transfer of image data or storage of image data is performed.

これらの圧縮方式では、主に量子化と符号化の2つの方法によりデータ量の削減を行っている。例えば、JPEG方式の場合、入力された画像の各画素に対して、離散コサイン変換(Discrete Cosine Transform:DCT)を施し、画素値を周波数変換の各基底関数の周波数成分毎の係数である周波数係数に変換する。量子化は、変換された周波数係数を近似する操作である。一般的な画像の場合、周波数係数の絶対値は、高い次数の周波数成分(高周波成分)ほど小さな値になる傾向があり、また、人間の視覚特性が高周波に対する分解能が低いことを利用して、周波数係数のうち低周波成分は細かく量子化し、高周波成分は粗く量子化することによって、大きくデータ量の削減を行う。   In these compression methods, the amount of data is reduced mainly by two methods of quantization and encoding. For example, in the case of the JPEG method, a discrete cosine transform (DCT) is performed on each pixel of an input image, and the pixel value is a frequency coefficient that is a coefficient for each frequency component of each basis function of frequency conversion. Convert to Quantization is an operation that approximates the transformed frequency coefficient. In the case of a general image, the absolute value of the frequency coefficient tends to be smaller as the higher order frequency component (high frequency component), and the human visual characteristics have a lower resolution for high frequency, Of the frequency coefficient, the low frequency component is finely quantized and the high frequency component is coarsely quantized to greatly reduce the amount of data.

カラー画像を符号化する場合、RGB信号で符号化するよりもYCbCr(Y:輝度信号、Cb:Y成分とB成分との色差信号、Cr:Y成分とR成分との色差信号)信号で符号化した方が、符号量が少なくなるため、JPEG方式では、一般的にYCbCrの信号を入力として、信号要素毎に水平方向に8要素、垂直方向に8要素を1ブロックとする複数のブロックに入力画像を分割する。その後、1ブロック単位でDCTを実行し、DCT後の8行8列の周波数係数の各要素を、同じく8行8列の計64個の量子化係数で構成される量子化テーブルの対応する各要素で除算することで量子化される。JPEG方式ではこれら8行8列の量子化テーブルが量子化特性を決定する。この量子化された結果の整数部(量子化インデックス)を用いてJPEG方式の圧縮画像データは生成される。   When a color image is encoded, it is encoded with a YCbCr (Y: luminance signal, Cb: color difference signal between Y component and B component, Cr: color difference signal between Y component and R component) signal rather than encoding with an RGB signal. Since the code amount is smaller when the signal is converted to the JPEG method, generally, a YCbCr signal is input as an input, and each signal element is divided into a plurality of blocks each having 8 elements in the horizontal direction and 8 elements in the vertical direction as one block. Divide the input image. After that, DCT is performed in units of one block, and each element of the frequency coefficient of 8 rows and 8 columns after DCT is similarly assigned to each of the corresponding quantization tables of a total of 64 quantization coefficients of 8 rows and 8 columns. It is quantized by dividing by elements. In the JPEG method, these 8 × 8 quantization tables determine the quantization characteristics. JPEG compressed image data is generated using the integer part (quantization index) of the quantized result.

圧縮画像データの伸張時には、圧縮時に用いた量子化テーブルを逆量子化テーブルとし、逆量子化テーブルの各要素と、量子化インデックスを積算する逆量子化によって周波数係数を復元する。JPEG方式では、量子化の際に用いられた量子化テーブルを伸張時の逆量子化の際に用いる逆量子化テーブルに一致させるために、圧縮画像データに量子化テーブルが付加される。JPEG方式では、この逆量子化テーブルが逆量子化特性を決定する。その後、逆離散コサイン変換(Inverse Discrete Cosine Transform:IDCT)を行ってYCbCr信号を復元する。   When decompressing the compressed image data, the quantization table used at the time of compression is used as an inverse quantization table, and the frequency coefficient is restored by inverse quantization that integrates each element of the inverse quantization table and the quantization index. In the JPEG method, the quantization table is added to the compressed image data in order to make the quantization table used for quantization coincide with the inverse quantization table used for inverse quantization during decompression. In the JPEG method, this inverse quantization table determines the inverse quantization characteristics. Thereafter, an inverse discrete cosine transform (IDCT) is performed to restore the YCbCr signal.

また、JPEG2000方式では、DCTの代わりに離散ウェーブレット変換(Discrete Wavelet Transform:DWT)が用いられる。JPEG2000方式の量子化は、DWT処理後の周波数係数に対して、コードブロック毎に指定された量子化ステップにて量子化を行う明示的量子化、及び符号化後のビットプレーンを全値「0」見なしとして切り捨てることにより、データ量の削減を行うポスト量子化の2種類の量子化方法がある。明示的量子化を行った場合には、コードブロック毎の量子化ステップが記録される。ポスト量子化を行った場合には、「0」見なしされたビットプレーンの情報が記録される。JPEG2000方式では、これらコードブロック毎の量子化ステップ、及び「0」見なしを行うビットプレーンの選択方法が量子化特性を決定する。圧縮画像データの伸張時には、これら記録された情報を参照して、データ伸張が行われ、これらの記録されたコードブロック毎の量子化ステップ及び「0」見なしされたビットプレーンの情報が逆量子化特性を決定する。   In the JPEG2000 system, discrete wavelet transform (DWT) is used instead of DCT. In the JPEG2000 quantization, explicit quantization for performing quantization at a quantization step specified for each code block is performed on the frequency coefficient after DWT processing, and the bit plane after encoding is set to all values “0”. There are two types of quantization methods, post-quantization, which reduce the amount of data by rounding down as “not considered”. When explicit quantization is performed, a quantization step for each code block is recorded. When post-quantization is performed, information of bit planes regarded as “0” is recorded. In the JPEG2000 system, the quantization step for each code block and the bit plane selection method for performing “0” determination determine the quantization characteristics. When decompressing the compressed image data, the recorded information is referred to and the data decompression is performed. The quantization step for each recorded code block and the information of the bit plane regarded as “0” are inversely quantized. Determine characteristics.

圧縮画像データに基づいて、画像をプリンタに印刷し又は表示装置の画面に表示する場合、圧縮画像データを伸張した後、伸張後の画像データを印刷時又は画面表示時の解像度、画像の大きさなどに応じて変倍処理を行い印刷又は表示を行う。   When printing an image on a printer or displaying it on the screen of a display device based on the compressed image data, after expanding the compressed image data, the resolution and image size when the expanded image data is printed or displayed on the screen Depending on the above, a scaling process is performed and printing or display is performed.

例えば、カラー複写機などにおいて、高解像度スキャナで取得した複数の画像から構成される全景を一枚の用紙に印刷する場合、又はデジタルカメラにおいて、撮影した画像データをその場でレビュー用に小型の液晶表示装置で表示する場合は、高解像度から低解像度への変換、画像の大きさを縮小するなどの縮小処理を行う必要がある。   For example, in a color copying machine or the like, when printing an entire view composed of a plurality of images acquired by a high-resolution scanner on one sheet of paper, or in a digital camera, the captured image data is small for review on the spot. In the case of displaying on a liquid crystal display device, it is necessary to perform reduction processing such as conversion from high resolution to low resolution and reduction of the image size.

縮小処理の手法としては、単純間引きによる画素数の削減、バイリニア法、バイキュービック法等を用いた近傍点を用いた補間方式による縮小処理方法が知られている。縮小処理を行う場合に、伸張後の画像に縮小処理後の解像度で表現できない高周波成分が含まれていたときは、縮小処理を行うことにより、折り返し歪みが原因となるエリアシングモアレ(モアレ)が発生する。また、プリンタ又は表示装置が、ディザ法などのハーフトーン階調表現処理を行っていた場合には、ディザ法マトリクスで表現される周波数よりも高い周波数成分が縮小対象の画像に含まれているときにもモアレが発生する。   As a reduction processing method, a reduction processing method based on interpolation using a neighboring point using a reduction in the number of pixels by simple thinning, a bilinear method, a bicubic method, or the like is known. When performing a reduction process, if the expanded image contains a high-frequency component that cannot be expressed with the resolution after the reduction process, the reduction process causes aliasing moire (moire) that causes aliasing distortion. appear. In addition, when the printer or the display device has performed halftone gradation expression processing such as dithering, when a frequency component higher than the frequency represented by the dithering matrix is included in the image to be reduced Moire also occurs.

そこで、従来、モアレの発生を防止するために、伸張された画像に対して、縮小処理の変倍率に応じたローパスフィルタ処理を施し、高周波成分の除去が行われている。   Therefore, conventionally, in order to prevent the occurrence of moiré, a low-pass filter process corresponding to the scaling factor of the reduction process is performed on the expanded image to remove high frequency components.

また、モアレの発生を少なくするため、撮像素子により撮影された画像のデータを直交変換及び量子化し、逆量子化時に量子化係数の値を量子化係数よりも小さくして逆量子化し、その後に解像度変換を行う装置が提案されている(特許文献1参照)。   In addition, in order to reduce the occurrence of moiré, the image data captured by the image sensor is orthogonally transformed and quantized, and the inverse quantization is performed by making the quantization coefficient value smaller than the quantization coefficient at the time of inverse quantization. An apparatus for performing resolution conversion has been proposed (see Patent Document 1).

また、特定の画像の周波数成分より低周波成分を抽出して圧縮し、残りの高周波成分は抽出された低周波成分との関連情報に基づいて表現し、低周波成分と関連情報とを合成することにより簡易画像データを生成する。生成された簡易画像データから低周波成分を抽出するとともに関連情報を取り出し、低周波成分に基づいて高周波成分を復号し、低周波成分と高周波成分とを結合して原画像を復元する方法が提案されている(特許文献2参照)。
特開平10−341369号公報 特開2000−299781号公報
Also, the low frequency components are extracted from the frequency components of a specific image and compressed, and the remaining high frequency components are expressed based on the information related to the extracted low frequency components, and the low frequency components and the related information are synthesized. Thus, simple image data is generated. Proposed a method to extract low-frequency components from the generated simple image data, extract related information, decode high-frequency components based on the low-frequency components, and combine the low-frequency components and high-frequency components to restore the original image (See Patent Document 2).
JP-A-10-341369 JP 2000-299781 A

しかしながら、従来のローパスフィルタを用いる手法では、ローパスフィルタ処理のために多くの処理時間が必要になるとともに、処理を行うための演算回路などの資源が必要であるという欠点があった。   However, the conventional method using the low-pass filter has a drawback that a large amount of processing time is required for the low-pass filter processing and resources such as an arithmetic circuit for performing the processing are required.

また、特許文献1の例にあっては、ローパスフィルタ処理を削減することはできるものの、出力解像度の出力画像及び出力解像度よりも低解像度の出力画像を同時に出力することを意図している。したがって、予め指定された出力解像度に合わせて単一の画像出力を行う場合に、予め解像度変換を行うことが判明しているときでも、不要な周波数成分を持った圧縮画像データを生成する必要があり、圧縮画像データを記憶するため大容量の記憶領域を備える必要があった。   The example of Patent Document 1 intends to simultaneously output an output image having an output resolution and an output image having a lower resolution than the output resolution, although low-pass filter processing can be reduced. Therefore, when performing a single image output in accordance with a predesignated output resolution, it is necessary to generate compressed image data having unnecessary frequency components even when it is known that resolution conversion is performed in advance. In order to store compressed image data, it is necessary to provide a large-capacity storage area.

また、特許文献2の例にあっては、低周波成分と高周波成分とを分離して別々に取り扱い、その後分離した低周波成分と高周波成分とを合成して簡易画像データを作成する。このため、縮小処理が不要な同一解像度での印刷又はメモリカードへのデータ記憶時などにおいても合成処理を行う必要があり、処理量が増加する虞があった。   In the example of Patent Document 2, a low frequency component and a high frequency component are separated and handled separately, and then the separated low frequency component and high frequency component are synthesized to create simple image data. For this reason, it is necessary to perform the synthesis process even when printing at the same resolution that does not require a reduction process or when storing data in a memory card, which may increase the amount of processing.

本発明は、斯かる事情に鑑みてなされたものであり、伸張した画像を低解像度へ変換する指定又は該画像を縮小する指定を受け付け、画像を圧縮した圧縮画像データを保存するか否かの指定を受け付け、圧縮画像データを保存するか否かに応じて、受け付けた指定に対応する解像度の変換倍率又は画像の縮小倍率に基づいて、周波数係数を量子化するため異なる量子化係数を有する複数の量子化情報から1つの量子化情報を選択し、選択された量子化情報を用いて周波数係数を量子化することにより、モアレの発生による画質低下を抑制できるとともに、圧縮率の向上と必要な記憶領域を削減することができ、保存された圧縮画像データを再度使用する場合に、所望の低解像度への変換又は画像の縮小に対応することができる画像処理装置、該画像処理装置を備える画像形成装置、前記画像処理装置をコンピュータで実現するためのコンピュータプログラム、該コンピュータプログラムを記録した記録媒体及び画像処理方法を提供することを目的とする。 The present invention has been made in view of such circumstances, and accepts an instruction to convert an expanded image to a low resolution or an instruction to reduce the image, and whether or not to save compressed image data obtained by compressing the image. Plural having different quantization coefficients for quantizing the frequency coefficient based on the conversion magnification of the resolution corresponding to the received designation or the reduction ratio of the image depending on whether to accept the designation and save the compressed image data By selecting one quantized information from the quantized information and quantizing the frequency coefficient using the selected quantized information, it is possible to suppress deterioration in image quality due to the occurrence of moire and improve the compression rate and necessary. it is possible to reduce the storage area, when using the compressed image data stored again, the desired conversion or image processing apparatus that can be associated to the reduction of the image to a low resolution, And to provide an image forming apparatus including an image processing apparatus, a computer program for realizing the image processing apparatus by a computer, the recording medium and image processing method recorded the computer program.

また、本発明の他の目的は、圧縮画像データを保存するか否かに応じて、受け付けた指定に対応する解像度の変換倍率又は画像の縮小倍率に基づいて、量子化データを逆量子化するため異なる逆量子化係数を有する複数の逆量子化情報から1つの逆量子化情報を選択し、選択された逆量子化情報を用いて量子化データを逆量子化して画像を伸張することにより、モアレの発生による画質低下を抑制できる画像処理装置、該画像処理装置を備える画像形成装置、前記画像処理装置をコンピュータで実現するためのコンピュータプログラム、該コンピュータプログラムを記録した記録媒体及び画像処理方法を提供することにある。 Another object of the present invention is to inversely quantize the quantized data based on the conversion magnification of the resolution corresponding to the received designation or the image reduction magnification, depending on whether or not to save the compressed image data. Therefore, by selecting one inverse quantization information from a plurality of inverse quantization information having different inverse quantization coefficients, by dequantizing the quantized data using the selected inverse quantization information and expanding the image, An image processing apparatus capable of suppressing deterioration in image quality due to occurrence of moiré, an image forming apparatus including the image processing apparatus, a computer program for realizing the image processing apparatus by a computer, a recording medium storing the computer program, and an image processing method It is to provide.

本発明に係る画像処理装置は、画像の各画素に所定の周波数変換を行って画素値を周波数係数に変換し、変換された周波数係数を量子化し、量子化された量子化データを符号化して画像を圧縮し、圧縮された画像を伸張する画像処理装置において、周波数係数を量子化するため解像度の変換倍率又は画像の縮小倍率が小さいほど高周波成分に対応する量子化係数が大きい複数の量子化情報を記憶する記憶手段と、伸張した画像を低解像度へ変換する指定又は該画像を縮小する指定を受け付ける受付手段と、該受付手段で受け付けた指定に対応する解像度の変換倍率又は画像の縮小倍率に基づいて、記憶された量子化情報を選択する第1選択手段と、画像を圧縮した圧縮画像データを保存するか否かの指定を受け付ける手段とを備え、圧縮画像データを保存しない指定を受け付けた場合、前記第1選択手段は、受け付けた指定に対応する解像度の変換倍率又は画像の縮小倍率に応じた量子化情報を選択するように構成してあり、圧縮画像データを保存する指定を受け付けた場合、前記第1選択手段は、前記解像度の変換倍率又は画像の縮小倍率に関わらず所定の量子化情報を選択するように構成してあり、前記第1選択手段で選択された量子化情報を用いて周波数係数を量子化するように構成してあることを特徴とする。 An image processing apparatus according to the present invention performs predetermined frequency conversion on each pixel of an image to convert a pixel value into a frequency coefficient, quantizes the converted frequency coefficient, and encodes quantized quantized data. In an image processing apparatus that compresses an image and expands the compressed image, the quantization coefficient corresponding to the high-frequency component is increased as the resolution conversion magnification or the image reduction magnification is decreased in order to quantize the frequency coefficient. Storage means for storing information, accepting means for accepting designation for converting an expanded image to a low resolution or for reducing the image, and conversion ratio of resolution corresponding to designation accepted by the accepting means or reduction ratio for image based on, comprising: a first selecting means for selecting the stored quantized information, and means for accepting a designation of whether to store compressed image data compressed image, the compressed image The first selecting means is configured to select the quantization information corresponding to the conversion magnification of the resolution or the reduction ratio of the image corresponding to the received designation. The first selection means is configured to select predetermined quantization information regardless of the resolution conversion magnification or the image reduction magnification when receiving an instruction to save image data. The frequency coefficient is quantized using the quantization information selected by the means.

本発明に係る画像処理装置は、量子化データを逆量子化するため解像度の変換倍率又は画像の縮小倍率が小さいほど高周波成分に対応する逆量子化係数が小さい複数の逆量子化情報を記憶する記憶手段と、前記受付手段で受け付けた指定に対応する解像度の変換倍率又は画像の縮小倍率に基づいて、記憶された逆量子化情報を選択する第2選択手段とを備え、圧縮画像データを保存しない指定を受け付けた場合、前記第2選択手段は、受け付けた指定に対応する解像度の変換倍率又は画像の縮小倍率に関わらず所定の逆量子化情報を選択するように構成してあり、圧縮画像データを保存する指定を受け付けた場合、前記第2選択手段は、前記解像度の変換倍率又は画像の縮小倍率に応じた逆量子化情報を選択するように構成してあり、前記第2選択手段で選択された逆量子化情報を用いて量子化データを逆量子化して画像を伸張するように構成してあることを特徴とする。 The image processing apparatus according to the present invention stores a plurality of pieces of inverse quantization information having a smaller inverse quantization coefficient corresponding to a high frequency component as a resolution conversion magnification or an image reduction magnification is smaller in order to inverse quantize quantized data. Storage means and second selection means for selecting the stored inverse quantization information based on the resolution conversion magnification or the image reduction magnification corresponding to the designation received by the reception means, and storing the compressed image data The second selecting means is configured to select predetermined dequantization information regardless of the resolution conversion magnification or the image reduction magnification corresponding to the received designation, and the compressed image when receiving a designation to store data, the second selection means, Yes and configured to select the inverse quantization information corresponding to the reduction magnification of the conversion ratio or image of the resolution, the first Characterized in that is arranged to stretch the image by inverse quantizing the quantized data using the inverse quantization information selected by the selecting means.

本発明に係る画像形成装置は、前述の本発明のいずれか1つに係る画像処理装置を備え、該画像処理装置で伸張された画像を形成することを特徴とする。   An image forming apparatus according to the present invention includes the image processing apparatus according to any one of the above-described present inventions, and forms an image expanded by the image processing apparatus.

本発明に係るコンピュータプログラムは、コンピュータに、画像の各画素に所定の周波数変換を行って画素値を周波数係数に変換し、変換された周波数係数を量子化し、量子化された量子化データを符号化して画像を圧縮し、圧縮された画像を伸張させるためのコンピュータプログラムにおいて、コンピュータを、伸張した画像を低解像度へ変換する指定又は該画像を縮小する指定に対応する解像度の変換倍率又は画像の縮小倍率に基づいて、周波数係数を量子化するため異なる量子化係数を有する複数の量子化情報から1つの量子化情報を選択する第1選択手段として機能させ、圧縮画像データを保存しない指定を受け付けた場合、前記第1選択手段は、前記変換する指定又は縮小する指定に対応する解像度の変換倍率又は画像の縮小倍率が小さいほど高周波成分に対応する量子化係数が大きい量子化情報を選択するように構成してあり、圧縮画像データを保存する指定を受け付けた場合、前記第1選択手段は、前記解像度の変換倍率又は画像の縮小倍率に関わらず所定の量子化情報を選択するように構成してあり、コンピュータを、選択された量子化情報を用いて周波数係数を量子化する手段としてさらに機能させることを特徴とする。 A computer program according to the present invention performs a predetermined frequency conversion on each pixel of an image to convert a pixel value into a frequency coefficient, quantizes the converted frequency coefficient, and encodes the quantized quantized data. In a computer program for compressing an image and compressing the compressed image, the computer converts the decompressed image to a low resolution or a resolution conversion magnification or image corresponding to the specification to reduce the image. based on the reduction ratio, specified not to function as a first selecting means for selecting one of the quantization information from a plurality of quantization information with different quantization coefficients for quantizing, store the compressed image data frequency coefficients When the first selection means receives the conversion, the conversion ratio of the resolution or the reduction ratio of the image corresponding to the specification to convert or the specification to reduce The smaller the smaller the quantization information, the larger the quantization coefficient corresponding to the high frequency component is selected. When the designation to save the compressed image data is received, the first selecting means It is configured to select predetermined quantization information regardless of the reduction magnification of the image, and the computer further functions as means for quantizing the frequency coefficient using the selected quantization information. .

本発明に係るコンピュータプログラムは、コンピュータを、前記変換する指定又は縮小する指定に対応する解像度の変換倍率又は画像の縮小倍率に基づいて、量子化データを逆量子化するための異なる逆量子化係数を有する逆量子化情報から1つの逆量子化情報を選択する第2選択手段として機能させ、圧縮画像データを保存しない指定を受け付けた場合、前記第2選択手段は、前記変換する指定又は縮小する指定に対応する解像度の変換倍率又は画像の縮小倍率に関わらず所定の逆量子化情報を選択するように構成してあり、圧縮画像データを保存する指定を受け付けた場合、前記第2選択手段は、前記解像度の変換倍率又は画像の縮小倍率が小さいほど高周波成分に対応する逆量子化係数が小さい逆量子化情報を選択するように構成してあり、コンピュータを、選択された逆量子化情報を用いて量子化データを逆量子化して画像を伸張する手段としてさらに機能させることを特徴とする。 A computer program according to the present invention, the computer, on the basis of the reduction magnification of the corresponding resolution of the conversion ratio or image designation to specify or reduced to the transformation, different inverse quantization coefficients for inverse quantizing the quantized data to function from the inverse quantization information as a second selecting means for selecting one of the inverse quantization information having, when receiving a specification that does not store the compressed image data, the second selection means, designated for the conversion or It is configured to select predetermined inverse quantization information regardless of the conversion magnification of the resolution corresponding to the specification to reduce or the reduction magnification of the image, and when the designation to save the compressed image data is received, the second selection The means is configured to select inverse quantization information having a smaller inverse quantization coefficient corresponding to a high-frequency component as the resolution conversion magnification or the image reduction magnification is smaller. Ri, a computer, characterized in that to further function as a means for decompressing the image by inverse quantizing the quantized data using the inverse quantization information selected.

本発明に係るコンピュータでの読み取りが可能な記録媒体は、前述の本発明のいずれか1つに係るコンピュータプログラムを記録してあることを特徴とする。   A computer-readable recording medium according to the present invention records a computer program according to any one of the above-described present invention.

本発明に係る画像処理方法は、画像の各画素に所定の周波数変換を行って画素値を周波数係数に変換し、変換された周波数係数を量子化し、量子化された量子化データを符号化して画像を圧縮し、圧縮された画像を伸張する画像処理方法において、周波数係数を量子化するため解像度の変換倍率又は画像の縮小倍率が小さいほど高周波成分に対応する量子化係数が大きい複数の量子化情報を記憶しておき、伸張した画像を低解像度へ変換する指定又は該画像を縮小する指定を受け付け、画像を圧縮した圧縮画像データを保存するか否かの指定を受け付け、圧縮画像データを保存しない指定を受け付けた場合、前記変換する指定又は縮小する指定に対応する解像度の変換倍率又は画像の縮小倍率に応じた量子化情報を選択し、圧縮画像データを保存する指定を受け付けた場合、前記解像度の変換倍率又は画像の縮小倍率に関わらず所定の量子化情報を選択し、選択された量子化情報を用いて周波数係数を量子化することを特徴とする。 An image processing method according to the present invention performs predetermined frequency conversion on each pixel of an image to convert a pixel value into a frequency coefficient, quantizes the converted frequency coefficient, and encodes quantized quantized data. In an image processing method that compresses an image and expands the compressed image, the quantization coefficient corresponding to the high frequency component is increased as the resolution conversion magnification or the image reduction magnification is decreased in order to quantize the frequency coefficient. Stores information, accepts the designation to convert the decompressed image to low resolution or the designation to reduce the image, accepts the designation of whether to save the compressed image data obtained by compressing the image, and saves the compressed image data When the designation to not be accepted is received, the quantization information corresponding to the conversion magnification of the resolution or the reduction magnification of the image corresponding to the designation to convert or to reduce is selected, and the compressed image data is selected. When receiving a specification that exists, select the resolution predetermined quantization information regardless reduction magnification of conversion ratio or image, characterized by quantizing the frequency coefficients by using the selected quantization information.

本発明に係る画像処理方法は、量子化データを逆量子化するため解像度の変換倍率又は画像の縮小倍率が小さいほど高周波成分に対応する逆量子化係数が小さい複数の逆量子化情報を記憶しておき圧縮画像データを保存しない指定を受け付けた場合、前記変換する指定又は縮小する指定に対応する解像度の変換倍率又は画像の縮小倍率に関わらず所定の逆量子化情報を選択し、圧縮画像データを保存する指定を受け付けた場合、前記解像度の変換倍率又は画像の縮小倍率に応じた逆量子化情報を選択し、選択された逆量子化情報を用いて量子化データを逆量子化して画像を伸張することを特徴とする。 The image processing method according to the present invention stores a plurality of pieces of inverse quantization information having a smaller inverse quantization coefficient corresponding to a high frequency component as a resolution conversion magnification or an image reduction magnification is smaller in order to inverse quantize quantized data. In addition, when an instruction not to save compressed image data is received, predetermined dequantization information is selected regardless of the conversion magnification of the resolution or the reduction ratio of the image corresponding to the conversion specification or the reduction specification, and the compressed image is selected. When designation to save data is accepted, the inverse quantization information corresponding to the resolution conversion magnification or the image reduction magnification is selected, and the quantized data is inversely quantized using the selected inverse quantization information to generate an image. It is characterized by extending.

本発明にあっては、周波数係数を量子化するため異なる量子化係数を有する複数の量子化情報(例えば、量子化テーブル)を記憶する。量子化テーブルは、例えば、8行8列の配列であり、左上をDC成分の周波数係数に対する量子化係数、右下に向かって水平方向及び垂直方向共に高周波成分の周波数係数に対する量子化係数を有する。各周波数係数に対応する量子化係数が異なる複数の量子化テーブルを記憶する。画像を圧縮した圧縮画像データを保存するか否かの指定を受け付けるとともに、伸張した画像を低解像度へ変換する指定又は該画像を縮小する指定を受け付けた場合、受け付けた指定に対応する解像度の変換倍率又は画像の縮小倍率に基づいて、記憶された量子化テーブルの中から1つの量子化テーブルを選択する。 In the present invention, a plurality of pieces of quantization information (for example, quantization tables) having different quantization coefficients are stored in order to quantize the frequency coefficients. The quantization table is, for example, an array of 8 rows and 8 columns, and has an upper left quantization coefficient for the frequency coefficient of the DC component and a quantization coefficient for the frequency coefficient of the high frequency component in the horizontal and vertical directions toward the lower right. . A plurality of quantization tables having different quantization coefficients corresponding to each frequency coefficient are stored. When specifying whether or not to save compressed image data obtained by compressing an image, and when receiving a specification for converting an expanded image to a low resolution or a specification for reducing the image, conversion of the resolution corresponding to the received specification One quantization table is selected from the stored quantization tables based on the magnification or the image reduction magnification.

例えば、解像度の変換倍率又は画像の縮小倍率が小さいほど、高周波成分に対応する量子化係数が大きい量子化テーブルを選択する。所定の周波数変換(例えば、離散コサイン変換)により画素値(画素の輝度信号、色差信号など)が周波数係数に変換される。変換された周波数係数を量子化係数で除算して量子化する場合、高周波成分に対応する量子化係数が大きい量子化テーブルを用いることにより、高周波成分の量子化インデックス(量子化された結果の整数部分)が小さくなり、画像中の高周波成分が減衰する。これにより、解像度の変換倍率又は画像の縮小倍率が小さいほど顕著に発生するモアレを抑制し画質を改善する。また、周波数係数よりも大きい値の量子化係数で量子化した場合、量子化インデックスは「0」となり、高周波成分に対応する量子化係数が大きい量子化テーブルを用いることにより、多くの高周波成分で量子化インデックスが「0」となり、符号量を少なくして圧縮率を向上させる。
具体的には、圧縮画像データを保存しない指定を受け付けた場合、解像度の変換倍率又は画像の縮小倍率に応じた量子化テーブルを選択する。例えば、解像度の変換倍率又は画像の縮小倍率が小さいほど、高周波成分に対応する量子化係数が大きい量子化テーブルを選択する。これにより、解像度の変換倍率又は画像の縮小倍率が小さいほど顕著に発生するモアレを抑制し画質を改善する。また、圧縮画像データを保存するか否かの指定を受け付け、圧縮画像データを保存する必要がないことを確認することができ、後日利用者により指定され得る種々の解像度の変換倍率又は画像の縮小倍率に対応させるために圧縮率を控える必要がなく、圧縮率を向上させるとともに必要な記憶領域を削減する。
また、圧縮画像データを保存する指定を受け付けた場合、記憶された量子化テーブルのうち所定の量子化テーブルを選択する。例えば、指定された解像度の変換倍率又は画像の縮小倍率に拘わらず、記憶された量子化テーブルのうち、高周波成分に対応する量子化係数が最も小さい所定の量子化テーブルを選択する。これにより、保存された圧縮画像データが後日使用される場合、利用者により指定され得る種々の解像度の変換倍率又は画像の縮小倍率に対応させることができる
For example, a quantization table having a larger quantization coefficient corresponding to a high-frequency component is selected as the resolution conversion magnification or the image reduction magnification is smaller. Pixel values (pixel luminance signals, color difference signals, etc.) are converted into frequency coefficients by predetermined frequency conversion (for example, discrete cosine conversion). When the converted frequency coefficient is divided by the quantization coefficient for quantization, a quantization table having a large quantization coefficient corresponding to the high frequency component is used to obtain a quantization index of the high frequency component (an integer resulting from the quantization). Part) becomes smaller, and the high-frequency components in the image are attenuated. As a result, the smaller the conversion magnification of the resolution or the reduction ratio of the image, the more moiré that occurs more conspicuously, thereby improving the image quality. In addition, when quantization is performed with a quantization coefficient having a value larger than the frequency coefficient, the quantization index is “0”. By using a quantization table having a large quantization coefficient corresponding to the high frequency component, a large number of high frequency components can be obtained. The quantization index becomes “0”, the code amount is reduced, and the compression rate is improved.
Specifically, when a designation not to store compressed image data is received, a quantization table corresponding to the resolution conversion magnification or the image reduction magnification is selected. For example, a quantization table having a larger quantization coefficient corresponding to a high-frequency component is selected as the resolution conversion magnification or the image reduction magnification is smaller. As a result, the smaller the conversion magnification of the resolution or the reduction ratio of the image, the more moiré that occurs more conspicuously, thereby improving the image quality. It is also possible to accept designation of whether or not to save the compressed image data, confirm that it is not necessary to save the compressed image data, and conversion resolutions of various resolutions or image reductions that can be designated by the user at a later date There is no need to refrain from the compression rate in order to correspond to the magnification, and the compression rate is improved and the necessary storage area is reduced.
In addition, when a designation to save the compressed image data is received, a predetermined quantization table is selected from the stored quantization tables. For example, a predetermined quantization table having the smallest quantization coefficient corresponding to the high-frequency component is selected from the stored quantization tables regardless of the designated resolution conversion magnification or image reduction magnification. As a result, when the stored compressed image data is used at a later date, it is possible to correspond to various resolution conversion magnifications or image reduction magnifications that can be designated by the user .

また、本発明にあっては、量子化データ(例えば、量子化インデックス)を逆量子化するため異なる逆量子化係数を有する複数の逆量子化情報(例えば、逆量子化テーブル)を記憶する。逆量子化テーブルは、例えば、量子化テーブルと同様、8行8列の配列であり、左上をDC成分の周波数係数に対する逆量子化係数、右下に向かって水平方向及び垂直方向共に高周波成分の周波数係数に対する逆量子化係数を有する。各周波数係数に対応する逆量子化係数が異なる複数の逆量子化テーブルを記憶する。画像を圧縮した圧縮画像データを保存するか否かの指定を受け付けるとともに、伸張した画像を低解像度へ変換する指定又は該画像を縮小する指定を受け付けた場合、受け付けた指定に対応する解像度の変換倍率又は画像の縮小倍率に基づいて、記憶された逆量子化テーブルの中から1つの逆量子化テーブルを選択する。 In the present invention, a plurality of dequantization information (for example, dequantization table) having different dequantization coefficients for dequantizing quantized data (for example, quantization index) is stored. The inverse quantization table is, for example, an array of 8 rows and 8 columns, similar to the quantization table. The upper left is the inverse quantization coefficient for the DC component frequency coefficient, and the lower right is the high-frequency component in both the horizontal and vertical directions. It has an inverse quantization coefficient for a frequency coefficient. A plurality of inverse quantization tables having different inverse quantization coefficients corresponding to each frequency coefficient are stored. When specifying whether or not to save compressed image data obtained by compressing an image, and when receiving a specification for converting an expanded image to a low resolution or a specification for reducing the image, conversion of the resolution corresponding to the received specification One inverse quantization table is selected from the stored inverse quantization tables based on the magnification or the image reduction magnification.

例えば、解像度の変換倍率又は画像の縮小倍率が小さいほど、高周波成分に対応する逆量子化係数が小さい逆量子化テーブルを選択する。量子化データに逆量子化係数を積算して逆量子化する場合、高周波成分に対応する逆量子化係数が小さい逆量子化テーブルを用いることにより、逆量子化後の復元された周波数係数は、高周波成分の周波数係数が小さくなり、所定の周波数変換の逆変換(例えば、逆離散コサイン変換)により画素値(画素の輝度信号、色差信号など)に変換した場合、画像中の高周波成分が減衰する。これにより、解像度の変換倍率又は画像の縮小倍率が小さいほど顕著に発生するモアレを抑制し画質を改善する。
具体的には、圧縮画像データを保存しない指定を受け付けた場合、記憶された逆量子化テーブルのうち所定の逆量子化テーブルを選択する。例えば、指定された解像度の変換倍率又は画像の縮小倍率に拘わらず、記憶された逆量子化テーブルのうち、高周波成分に対応する逆量子化係数が最も大きい所定の逆量子化テーブルを選択する。これにより、指定された解像度の変換倍率又は画像の縮小倍率に応じて高周波成分の復元量を変化させ、変倍後の画像におけるモアレの発生による画質低下を抑制する。
また、圧縮画像データを保存する指定を受け付けた場合、解像度の変換倍率又は画像の縮小倍率に応じた逆量子化テーブルを選択する。例えば、解像度の変換倍率又は画像の縮小倍率が小さいほど、高周波成分に対応する逆量子化係数が小さい逆量子化テーブルを選択する。これにより、解像度の変換倍率又は画像の縮小倍率が小さいほど顕著に発生するモアレを抑制し画質を改善する
For example, an inverse quantization table having a smaller inverse quantization coefficient corresponding to a high-frequency component is selected as the resolution conversion magnification or the image reduction magnification is smaller. When the inverse quantization coefficient is added to the quantized data and inverse quantization is performed, by using an inverse quantization table having a small inverse quantization coefficient corresponding to the high frequency component, the restored frequency coefficient after the inverse quantization is When the frequency coefficient of the high frequency component is reduced and converted to a pixel value (pixel luminance signal, color difference signal, etc.) by inverse transformation of predetermined frequency transformation (for example, inverse discrete cosine transformation), the high frequency component in the image is attenuated. . As a result, the smaller the conversion magnification of the resolution or the reduction ratio of the image, the more moiré that occurs more conspicuously, thereby improving the image quality.
Specifically, when the designation not to save the compressed image data is received, a predetermined inverse quantization table is selected from the stored inverse quantization tables. For example, a predetermined inverse quantization table having the largest inverse quantization coefficient corresponding to the high-frequency component is selected from the stored inverse quantization tables regardless of the conversion resolution of the designated resolution or the image reduction magnification. As a result, the restoration amount of the high frequency component is changed according to the conversion magnification of the designated resolution or the reduction magnification of the image, and the deterioration in image quality due to the occurrence of moire in the image after scaling is suppressed.
When a designation for saving the compressed image data is received, an inverse quantization table corresponding to the resolution conversion magnification or the image reduction magnification is selected. For example, an inverse quantization table having a smaller inverse quantization coefficient corresponding to a high-frequency component is selected as the resolution conversion magnification or the image reduction magnification is smaller. As a result, the smaller the conversion magnification of the resolution or the reduction ratio of the image, the more moiré that occurs more conspicuously, thereby improving the image quality .

本発明にあっては、画像を圧縮した圧縮画像データを保存するか否かの指定を受け付けるとともに、伸張した画像を低解像度へ変換する指定又は該画像を縮小する指定を受け付け、受け付けた指定に対応する解像度の変換倍率又は画像の縮小倍率に基づいて、周波数係数を量子化するため異なる量子化係数を有する複数の量子化情報から1つの量子化情報を選択し、選択された量子化情報を用いて周波数係数を量子化することにより、モアレの発生による画質低下を抑制できるとともに、圧縮率の向上と必要な記憶領域を削減することができる。
また、圧縮画像データを保存しない指定を受け付けた場合、解像度の変換倍率又は画像の縮小倍率に応じた量子化情報を選択し、選択された量子化情報を用いて周波数係数を量子化することにより、モアレの発生による画質低下を抑制できるとともに、圧縮率の向上と必要な記憶領域を削減することができる。
また、圧縮画像データを保存する指定を受け付けた場合、所定の量子化情報を選択し、選択された量子化情報を用いて周波数係数を量子化することにより、保存された圧縮画像データを再度使用する場合に、所望の低解像度への変換又は画像の縮小に対応することができる
In the present invention, the designation of whether or not to save the compressed image data obtained by compressing the image is accepted, the designation for converting the decompressed image to low resolution or the designation for reducing the image is accepted, and the designation designated One quantization information is selected from a plurality of quantization information having different quantization coefficients in order to quantize the frequency coefficient based on the corresponding resolution conversion magnification or image reduction magnification, and the selected quantization information is selected. By using and quantizing the frequency coefficient, it is possible to suppress deterioration in image quality due to the occurrence of moire, improve the compression rate, and reduce the necessary storage area.
In addition, when a designation not to store compressed image data is accepted, quantization information corresponding to the resolution conversion magnification or image reduction magnification is selected, and the frequency coefficient is quantized using the selected quantization information. In addition, it is possible to suppress deterioration in image quality due to the occurrence of moire, improve the compression rate, and reduce the necessary storage area.
In addition, when the designation to save the compressed image data is accepted, the predetermined compressed information is selected, and the frequency coefficient is quantized using the selected quantized information, so that the saved compressed image data is used again. In this case, conversion to a desired low resolution or image reduction can be supported .

また、本発明にあっては、受け付けた指定に対応する解像度の変換倍率又は画像の縮小倍率に基づいて、量子化データを逆量子化するため異なる逆量子化係数を有する複数の逆量子化情報から1つの逆量子化情報を選択し、選択された逆量子化情報を用いて量子化データを逆量子化して画像を伸張することにより、モアレの発生による画質低下を抑制できる。
また、圧縮画像データを保存しない指定を受け付けた場合、記憶された逆量子化情報のうち所定の逆量子化情報を選択し、選択された逆量子化情報を用いて量子化データを逆量子化することにより、モアレの発生による画質低下を抑制できる。
また、圧縮画像データを保存する指定を受け付けた場合、解像度の変換倍率又は画像の縮小倍率に応じた逆量子化情報を選択し、選択された逆量子化情報を用いて量子化データを逆量子化することにより、モアレの発生による画質低下を抑制できる。
In the present invention, a plurality of dequantization information having different dequantization coefficients for dequantizing the quantized data based on the conversion magnification of the resolution or the image reduction magnification corresponding to the received designation. By selecting one inverse quantization information from the above, and dequantizing the quantized data using the selected inverse quantization information to expand the image, it is possible to suppress degradation in image quality due to the occurrence of moire.
In addition, when the designation not to save the compressed image data is accepted, the predetermined inverse quantization information is selected from the stored inverse quantization information, and the quantized data is inversely quantized using the selected inverse quantization information. By doing so, it is possible to suppress image quality deterioration due to the occurrence of moire.
In addition, when an instruction to save the compressed image data is received, the inverse quantization information corresponding to the resolution conversion magnification or the image reduction magnification is selected, and the quantized data is inversely quantized using the selected inverse quantization information. Therefore, it is possible to suppress deterioration in image quality due to the occurrence of moire.

以下、本発明を実施の形態を示す図面に基づいて説明する。図1は本発明に係る画像処理装置を備える画像形成装置100の構成を示すブロック図である。画像形成装置100(例えば、デジタル複合機)は、画像入力部1、画像処理部2(画像処理装置)、画像形成手段としての画像出力部4などを備える。画像入力部1で原稿を読み込むことにより得られたRGB(R:赤、G:緑、B:青)のアナログ信号の画像データは、画像処理部2へ出力され、画像処理部2で所定の処理が行われ、CMYeK(C:シアン、M:マゼンダ、Ye:イエロー、K:黒)のデジタルカラー信号として画像出力部4へ出力される。   Hereinafter, the present invention will be described with reference to the drawings illustrating embodiments. FIG. 1 is a block diagram illustrating a configuration of an image forming apparatus 100 including an image processing apparatus according to the present invention. An image forming apparatus 100 (for example, a digital multi-function peripheral) includes an image input unit 1, an image processing unit 2 (image processing device), an image output unit 4 as an image forming unit, and the like. Image data of analog signals of RGB (R: red, G: green, B: blue) obtained by reading an original with the image input unit 1 is output to the image processing unit 2, and the image processing unit 2 performs a predetermined process. The process is performed and output to the image output unit 4 as a digital color signal of CMYeK (C: cyan, M: magenta, Ye: yellow, K: black).

画像入力部1は、例えば、CCD(Charged Coupled Device)を備え、原稿画像からの反射光像をRGBのアナログ信号として読み取り、読み取ったRGB信号を画像処理部2へ出力する。また、画像出力部4は、原稿画像の画像データを記録紙上に出力する電子写真方式又はインクジェット方式などのプリンタである。また、画像出力部4は、ディスプレイ等の表示装置であってもよい。   The image input unit 1 includes, for example, a CCD (Charged Coupled Device), reads a reflected light image from a document image as an RGB analog signal, and outputs the read RGB signal to the image processing unit 2. The image output unit 4 is a printer such as an electrophotographic system or an inkjet system that outputs image data of a document image onto a recording sheet. The image output unit 4 may be a display device such as a display.

本発明のデジタル複合機は、一度使用した画像データを後述するデータ記憶部27に記憶しておき、次回以降は画像入力部1からの画像データの入力が無くとも、データ記憶部27に記憶された画像データを用いて画像形成用データを生成して画像出力部4へ出力することができる機能を有する。   The digital multi-function peripheral according to the present invention stores once used image data in a data storage unit 27 described later, and is stored in the data storage unit 27 after the next time even if no image data is input from the image input unit 1. It has a function of generating image forming data using the obtained image data and outputting it to the image output unit 4.

データ記憶部27への画像データの記憶の形態として、画像の出力を複数部数行うために一時的に記憶する場合、及び後日の再利用を見越して永続的に記憶(保存する)場合の2通りある。ユーザは、画像データを保存(永続的に記憶)するか否かを明示的に指定することができる。ユーザは「ファイリング有効」を指定することにより、画像データをデータ記憶部27に記憶(保存)することができる。本発明のデジタル複合機では、ユーザが「ファイリング有効」を指定しない場合(すなわち、「ファイリング無効」)であっても、画像データを一時的にデータ記憶部27に記憶する。これにより、画像入力部1から複数回の画像データの入力が無い場合でも、データ記憶部27に記憶された画像データを用いて複数部数の画像出力を実現することができる。   There are two types of storage of image data in the data storage unit 27: temporary storage for outputting a plurality of images, and permanent storage (storing) in anticipation of reuse at a later date. is there. The user can explicitly specify whether to save (permanently store) the image data. The user can store (save) the image data in the data storage unit 27 by designating “Filing valid”. In the digital multi-function peripheral of the present invention, the image data is temporarily stored in the data storage unit 27 even when the user does not designate “filing valid” (that is, “filing invalid”). Thereby, even when there is no image data input from the image input unit 1 a plurality of times, a plurality of image outputs can be realized using the image data stored in the data storage unit 27.

画像処理部2は、A/D変換部21、シェーディング補正部22、入力階調補正部23、色空間変換部24、量子化係数算出部25、画像圧縮部26、データ記憶部27、逆量子化係数算出部28、画像伸張部29、変倍処理部30、色補正部31、領域分離処理部32、黒生成下色除去部33、空間フィルタ処理部34、中間調出力階調処理部35、操作部36、制御部37などを備える。   The image processing unit 2 includes an A / D conversion unit 21, a shading correction unit 22, an input tone correction unit 23, a color space conversion unit 24, a quantization coefficient calculation unit 25, an image compression unit 26, a data storage unit 27, an inverse quantum A conversion coefficient calculation unit 28, an image expansion unit 29, a scaling processing unit 30, a color correction unit 31, a region separation processing unit 32, a black generation and under color removal unit 33, a spatial filter processing unit 34, and a halftone output tone processing unit 35 , An operation unit 36, a control unit 37, and the like.

操作部36は、タッチパネル方式の操作パネルであり、ユーザの操作指定を受け付ける各種キー及びスイッチ、ユーザに対して報知する情報を表示する液晶ディスプレイなどを備えている。例えば、ユーザの操作指定としては、水平方向及び垂直方向に対して独立に指定された25%から400%の中での1%刻みでの変倍率指定、データ保存の要否(ファイリングの有効・無効)の指定、出力対象となる画像データの指定、出力部数指定などが含まれる。ユーザの操作指定は、上述以外にも各処理部の動作を指定するためのパラメータを含んでもよい。また、画像出力部4が表示装置である場合には、ユーザ操作指定には、解像度の変換なども含まれる。なお、操作部36に代えて、デジタル複合機が、例えば、パーソナルコンピュータ等の外部機器とネットワーク等を介して接続されている場合には、外部機器での操作により実現する構成であってもよい。   The operation unit 36 is a touch panel type operation panel, and includes various keys and switches that accept user operation designations, a liquid crystal display that displays information to be notified to the user, and the like. For example, the user's operation can be specified as a scaling factor in increments of 1% from 25% to 400% specified independently in the horizontal and vertical directions, whether data storage is necessary (effective filing Invalid), image data to be output, and the number of copies to be output. The user operation designation may include parameters for designating the operation of each processing unit in addition to the above. When the image output unit 4 is a display device, the user operation designation includes resolution conversion and the like. In addition, instead of the operation unit 36, when a digital multifunction peripheral is connected to an external device such as a personal computer via a network or the like, a configuration realized by an operation on the external device may be used. .

A/D変換部21は、画像入力部1から入力されたRGBの反射率信号(反射率データ)をデジタル信号に変換し、変換後のRGBの反射率信号をシェーディング補正部22へ出力する。   The A / D conversion unit 21 converts the RGB reflectance signal (reflectance data) input from the image input unit 1 into a digital signal, and outputs the converted RGB reflectance signal to the shading correction unit 22.

シェーディング補正部22は、A/D変換された反射率信号に対して、シェーディング補正処理を施す。シェーディング補正処理は、画像入力部1の照明系、結像系、及び撮像系の構成に起因して画像信号に生じる各種の歪みを取除くために行われる。シェーディング補正部22は、補正後の反射率信号を入力階調補正部23へ出力する。   The shading correction unit 22 performs a shading correction process on the A / D converted reflectance signal. The shading correction process is performed to remove various distortions that occur in the image signal due to the configuration of the illumination system, the imaging system, and the imaging system of the image input unit 1. The shading correction unit 22 outputs the corrected reflectance signal to the input tone correction unit 23.

入力階調補正部23は、シェーディング補正処理が施された反射率信号に、入力階調補正処理を施す。入力階調補正処理は、反射率信号を、濃度信号など画像処理部2が扱いやすい信号に変換する処理である。入力階調補正部23は、反射率信号に、カラーバランス処理をさらに施しても良い。入力階調補正部23は、処理後の反射率信号(RGB信号)を色空間変換部24へ出力する。   The input tone correction unit 23 performs input tone correction processing on the reflectance signal that has been subjected to the shading correction processing. The input tone correction process is a process for converting the reflectance signal into a signal that can be easily handled by the image processing unit 2, such as a density signal. The input tone correction unit 23 may further perform color balance processing on the reflectance signal. The input tone correction unit 23 outputs the processed reflectance signal (RGB signal) to the color space conversion unit 24.

色空間変換部24は、後段の画像圧縮部26が圧縮処理を行いやすいようにRGBの信号をYCbCr(Y:輝度信号、Cb:b色差信号、Cr:r色差信号)の信号に変換する。   The color space conversion unit 24 converts the RGB signal into a YCbCr (Y: luminance signal, Cb: b color difference signal, Cr: r color difference signal) signal so that the subsequent image compression unit 26 can easily perform the compression process.

量子化係数算出部25は、複数の量子化テーブルを記憶している。量子化テーブルは後述するように、画像圧縮部26で画像データを圧縮する場合に、画像データに施される周波数変換、例えば、離散コサイン変換(Discrete Cosine Transform:DCT)により、YCbCr信号が変換された周波数係数を量子化するために用いられる。量子化係数算出部25は、操作部36から入力される水平方向及び垂直方向に対して独立に指定された変倍率、画像データの保存の要否(ファイリングの有効・無効)の指定に基づいて、複数の量子化テーブルの中から所要の1つの量子化テーブルを選択し、選択した量子化テーブルを画像圧縮部26へ出力する。   The quantization coefficient calculation unit 25 stores a plurality of quantization tables. As will be described later, when the image compression unit 26 compresses the image data, the quantization table converts the YCbCr signal by frequency conversion applied to the image data, for example, Discrete Cosine Transform (DCT). Used to quantize the frequency coefficient. The quantization coefficient calculation unit 25 is input based on the scaling factor independently specified for the horizontal direction and the vertical direction input from the operation unit 36 and the necessity of storing image data (validation / invalidity of filing). Then, one required quantization table is selected from the plurality of quantization tables, and the selected quantization table is output to the image compression unit 26.

画像圧縮部26は、例えば、JPEG方式で画像データを圧縮する処理を行う。画像圧縮部26は、色空間変換部24から入力されたYCbCr信号(画像データの画素値)に対して、例えば、8×8画素から構成されるブロック毎に、周波数変換である離散コサイン変換(Discrete Cosine Transform:DCT)を施し、画素値をそれぞれの基底関数の周波数成分毎の係数である周波数係数に変換する。   The image compression unit 26 performs a process of compressing image data using, for example, the JPEG method. The image compression unit 26 performs discrete cosine transform (frequency conversion) on the YCbCr signal (pixel value of the image data) input from the color space conversion unit 24 for each block composed of 8 × 8 pixels, for example. Discrete Cosine Transform (DCT) is applied to convert the pixel value into a frequency coefficient that is a coefficient for each frequency component of each basis function.

画像圧縮部26は、量子化係数算出部25から入力された量子化テーブルを用いて、変換した周波数係数に対して量子化処理を行う。より具体的には、画像圧縮部26は、8×8の配列で構成される周波数係数の各係数を、8×8の配列で構成される量子化テーブルの各量子化係数で除算することにより、変換した周波数係数を近似する。   The image compression unit 26 performs quantization processing on the converted frequency coefficient using the quantization table input from the quantization coefficient calculation unit 25. More specifically, the image compression unit 26 divides each coefficient of the frequency coefficient configured by the 8 × 8 array by each quantization coefficient of the quantization table configured by the 8 × 8 array. Approximate the converted frequency coefficient.

画像圧縮部26は、量子化された量子化データ(量子化された結果の整数部分である量子化インデックス)に対して所定の符号化処理(例えば、ランレングス符号化、ハフマン符号化、エントロピー符号化、及び複数の符号化手法を用いた複合的な符号化など)を行うことにより画像データを圧縮し、圧縮画像データをデータ記憶部27に記憶する。   The image compression unit 26 performs a predetermined encoding process (for example, run-length encoding, Huffman encoding, entropy encoding) on the quantized quantized data (quantization index that is an integer part of the quantized result). Image data is compressed, and the compressed image data is stored in the data storage unit 27.

データ記憶部27は、半導体メモリ又はハードディスクドライブ(HDD)などにより構成され、画像圧縮部26で圧縮された圧縮画像データ、及び操作部36から入力されたユーザの指定に関する情報を記憶する。   The data storage unit 27 includes a semiconductor memory or a hard disk drive (HDD), and stores compressed image data compressed by the image compression unit 26 and information related to user designation input from the operation unit 36.

また、データ記憶部27は、ユーザからの出力対象となる画像データの指定、出力部数の指定に基づいて、出力部数が「1」であれば1回、複数部数であればそれに応じた複数回、後段の処理部に対象の圧縮画像データ及びユーザ指定を出力する。また、ユーザの指定のうち、データ保存の要否(ファイリングの有効・無効)の指定に応じてデータ記憶部27に記憶された圧縮画像データとユーザ指定の保存期間の扱いが異なる。例えば、ファイリングが無効に設定されている場合は、指定の出力部数分、後段の処理部に出力対象となる圧縮画像データ及びユーザ指定を出力した段階で、記憶された圧縮画像データ及びユーザ指定は消去される。また、ファイリングが有効に設定されている場合には、出力対象の圧縮画像データ及びユーザ指定は、別途ユーザから明示的な消去指定が行われない限り、データ記憶部27に保持されたままの永続的データとして扱われる。データ記憶部27内の永続的データは、操作部36からのユーザ指定によって画像入力部1からの画像データの再入力無しで、後段の処理部に出力対象の圧縮画像データ及びユーザ指定を出力することができる。   In addition, the data storage unit 27, based on the designation of the image data to be output from the user and the designation of the number of output copies, once if the number of output copies is “1”, and multiple times corresponding to the number of copies if the number of copies is plural. The target compressed image data and user designation are output to the subsequent processing unit. Further, among the user designations, the handling of the compressed image data stored in the data storage unit 27 and the user-designated retention period differs depending on the designation of whether or not to save data (validation / invalidity of filing). For example, when filing is set to be invalid, the compressed image data and user designation stored at the stage where the compressed image data and user designation to be output are output to the processing unit in the subsequent stage for the designated number of output copies. Erased. In addition, when filing is set to be effective, the compressed image data to be output and the user designation are stored in the data storage unit 27 as long as they are not explicitly erased by the user. Treated as static data. The permanent data in the data storage unit 27 outputs the compressed image data to be output and the user designation to the subsequent processing unit without the re-input of the image data from the image input unit 1 by the user designation from the operation unit 36. be able to.

逆量子化係数算出部28は、後述するように、画像伸張部29で圧縮画像データを伸張する場合に、符号化されたデータを復号化して得られた量子化データを逆量子化するための複数の逆量子化テーブルを記憶している。逆量子化係数算出部28は、データ記憶部27から出力されるユーザ指定中に含まれるファイリング有効・無効と、水平方向及び垂直方向に対して独立に指定された変倍率に基づいて、画像伸張時に用いる逆量子化テーブル(例えば、輝度信号に適用するための逆量子化テーブル、r色差信号及びb色差信号に適用するための逆量子化テーブル)を画像伸張部29へ出力する。   As will be described later, the inverse quantization coefficient calculation unit 28 performs inverse quantization on the quantized data obtained by decoding the encoded data when the image decompression unit 29 decompresses the compressed image data. A plurality of inverse quantization tables are stored. The inverse quantization coefficient calculation unit 28 performs image decompression based on the filing validity / invalidity included in the user designation output from the data storage unit 27 and the scaling factor designated independently in the horizontal and vertical directions. An inverse quantization table (for example, an inverse quantization table to be applied to a luminance signal, an inverse quantization table to be applied to an r color difference signal, and a b color difference signal) to be used sometimes is output to the image expansion unit 29.

画像伸張部29は、データ記憶部27から出力されたデータを復号化し、復号化して得られた8×8の配列で構成される量子化データを、8×8の配列で構成される逆量子化テーブルの各逆量子化係数で乗算することにより、周波数係数に変換する。   The image decompression unit 29 decodes the data output from the data storage unit 27, and converts the quantized data composed of the 8 × 8 array obtained by the decoding into the inverse quantum composed of the 8 × 8 array. Multiply by each inverse quantization coefficient of the quantization table to convert to a frequency coefficient.

画像伸張部29は、変換された周波数係数に対して、8×8画素から構成されるブロック毎に、周波数変換の逆変換である逆離散コサイン変換(Inverse Discrete Cosine Transform:IDCT)を施し、YCbCrの信号で構成される画像データを伸張する。   The image decompression unit 29 performs an inverse discrete cosine transform (IDCT), which is an inverse transform of the frequency transform, for each block composed of 8 × 8 pixels with respect to the transformed frequency coefficient, and YCbCr The image data composed of these signals is expanded.

変倍処理部30は、画像伸張部29が伸張したYCbCrの信号に対して主走査方向及び副走査方向の変倍を行い、画像解像度及び画像サイズの変更を行う。   The scaling processing unit 30 performs scaling in the main scanning direction and sub-scanning direction on the YCbCr signal expanded by the image expansion unit 29, and changes the image resolution and image size.

色補正部31は、YCbCrの信号をCMYe(C:シアン・M:マゼンタ・Ye:イエロー)の濃度信号に変換し、かつ画像出力部4における色再現の忠実化実現のために、CMYeの濃度信号に色補正処理を施す。色補正処理は、具体的には、不要吸収成分をそれぞれ含むCMYeのトナーやインクの分光特性に基づいた色濁りを、CMYeの濃度信号から取除く処理である。色補正部31は、変換したCMYeの濃度信号を領域分離処理部32及び黒生成下色除去部33へ出力する。   The color correction unit 31 converts the YCbCr signal into a CMYe (C: cyan, M: magenta, Ye: yellow) density signal, and the CMYe density for realizing color reproduction in the image output unit 4. Color correction processing is performed on the signal. Specifically, the color correction process is a process of removing color turbidity based on the spectral characteristics of CMYe toner and ink each containing an unnecessary absorption component from the CMYe density signal. The color correction unit 31 outputs the converted CMYe density signal to the region separation processing unit 32 and the black generation and under color removal unit 33.

領域分離処理部32は、色補正部31から入力されたCMYeの濃度信号に基づき、領域分離処理を行う。領域分離処理部32は、分離結果を黒生成下色除去部33、空間フィルタ処理部34、中間調出力階調処理部35へ出力する。   The region separation processing unit 32 performs region separation processing based on the CMYe density signal input from the color correction unit 31. The region separation processing unit 32 outputs the separation result to the black generation and under color removal unit 33, the spatial filter processing unit 34, and the halftone output tone processing unit 35.

黒生成下色除去部33は、色補正部31から入力された濃度信号を構成するCMYeの色信号に基づいて、黒(K)の色信号を生成する黒生成処理を行う。また、黒生成下色除去部33は、CMYeの色信号に対して下色除去処理を施す。下色除去処理は、CMYeの色信号から黒生成処理で生成された黒の色信号を差し引いて新たなCMYeの色信号を得る処理である。これらの処理の結果、CMYeの濃度信号は、CMYeKの色信号からなる画像データに変換される。   The black generation and under color removal unit 33 performs black generation processing for generating a black (K) color signal based on the CMYe color signal constituting the density signal input from the color correction unit 31. Further, the black generation and under color removal unit 33 performs under color removal processing on the CMYe color signal. The under color removal process is a process of obtaining a new CMYe color signal by subtracting the black color signal generated by the black generation process from the CMYe color signal. As a result of these processes, the CMYe density signal is converted into image data composed of CMYeK color signals.

空間フィルタ処理部34は、黒生成下色除去部33で得られたCMYeKの画像データに対して、デジタルフィルタを用いた空間フィルタ処理を施す。これによって画像の空間周波数特性が補正されるので、画像出力部4が出力する画像にぼやけ、または粒状性劣化を生じることを防止することができる。   The spatial filter processing unit 34 performs spatial filter processing using a digital filter on the CMYeK image data obtained by the black generation and under color removal unit 33. As a result, the spatial frequency characteristic of the image is corrected, so that it is possible to prevent the image output from the image output unit 4 from being blurred or causing deterioration in graininess.

中間調出力階調処理部35は、CMYeKの画像データに対して、階調補正処理および中間調生成処理を施す。中間調生成処理は、画像を複数の画素に分割して階調を再現できるようにする処理であり、2値や多値のディザ法・誤差拡散法等を用いることができる。また、中間調出力階調処理部35は、画像データの濃度値を、画像出力部4の特性値である網点面積率に変換する処理を行っても良い。中間調出力階調処理部35は、処理されたCMYeKの画像データを画像出力部4へ出力する。   The halftone output tone processing unit 35 performs tone correction processing and halftone generation processing on the CMYeK image data. The halftone generation process is a process for dividing an image into a plurality of pixels so that gradation can be reproduced. A binary or multi-value dither method, an error diffusion method, or the like can be used. Further, the halftone output gradation processing unit 35 may perform processing for converting the density value of the image data into a halftone dot area ratio that is a characteristic value of the image output unit 4. The halftone output gradation processing unit 35 outputs the processed CMYeK image data to the image output unit 4.

制御部37は、CPUで構成され、画像処理部2の各処理を制御する。   The control unit 37 is configured by a CPU and controls each process of the image processing unit 2.

次に、量子化係数算出部25について、より具体的に説明する。量子化係数算出部25は、画像圧縮時に用いる量子化テーブルを画像圧縮部26へ出力する。例えば、JPEG方式の圧縮処理では、8行8列の計64個の量子化係数で構成される量子化テーブルが必要であり、輝度信号用に1個、r色差信号及びb色差信号に共通で用いられる1個の計2個の量子化テーブルを画像圧縮部26へ出力する。   Next, the quantization coefficient calculation unit 25 will be described more specifically. The quantization coefficient calculation unit 25 outputs a quantization table used at the time of image compression to the image compression unit 26. For example, JPEG compression processing requires a quantization table composed of a total of 64 quantization coefficients of 8 rows and 8 columns, one for the luminance signal, common to the r color difference signal and the b color difference signal. A total of two used quantization tables are output to the image compression unit 26.

量子化係数算出部25は、例えば、輝度信号用に1個、r色差信号及びb色差信号に共通で用いられる1個の計2個の量子化テーブルを1セットとして計9セット保持し、データ保存の要否(ファイリングの有効・無効)の指定、ユーザから指定された水平方向の変倍率及び垂直方向の変倍率に従って、いずれのセットを画像圧縮部26に出力するのが適正かを選択し、選択した量子化テーブルを画像圧縮部26へ出力する。   The quantization coefficient calculation unit 25 holds, for example, a total of nine quantization tables, one set for a luminance signal and one set commonly used for an r color difference signal and a b color difference signal. Select which set is appropriate for output to the image compression unit 26 according to the necessity of saving (validation / invalidity of filing), the horizontal scaling factor and the vertical scaling factor specified by the user. The selected quantization table is output to the image compression unit 26.

図2は輝度信号用の量子化テーブルの一例を示す説明図であり、図3はr色差信号及びb色差信号用の量子化テーブルの一例を示す説明図である。量子化テーブル夫々は、8行8列の配列であり、左上にDC成分の周波数係数に対する量子化係数、左上から右にいくにつれて、水平方向に周波数が高い基底関数に対応する周波数係数に対する量子化係数、左上から下にいくにつれて、垂直方向に周波数が高い基底関数に対応する周波数係数に対する量子化係数、右下に水平方向、垂直方向共に周波数が高い基底関数に対応する周波数係数に対する量子化係数を有する。   FIG. 2 is an explanatory diagram illustrating an example of a quantization table for luminance signals, and FIG. 3 is an explanatory diagram illustrating an example of a quantization table for r color difference signals and b color difference signals. Each quantization table is an array of 8 rows and 8 columns, the quantization coefficient for the frequency coefficient of the DC component in the upper left, and the quantization for the frequency coefficient corresponding to the basis function having a higher frequency in the horizontal direction from the upper left to the right. Coefficient, quantization coefficient for the frequency coefficient corresponding to the basis function with high frequency in the vertical direction from the top left to the bottom, and the quantization coefficient for the frequency coefficient corresponding to the basis function with high frequency in the horizontal and vertical directions at the bottom right Have

図に示すように、量子化テーブル夫々は、例えば、水平方向、垂直方向のそれぞれの変倍率指定が25%以上34%未満の場合、34%以上50%未満、50%以上の3状態に対応して、水平方向3状態、垂直方向3状態の組み合わせである計9状態のそれぞれに異なる量子化係数を有する。また、これらの量子化テーブルは、変倍率が小さくなるにつれて高周波に相当する量子化係数が大きくなるように設定されている。なお、変倍率に限定されるものではなく、解像度の変換率であってもよい。   As shown in the figure, each of the quantization tables corresponds to, for example, three states of 34% or more and less than 50% and 50% or more when the scaling factor designation in the horizontal direction and vertical direction is 25% or more and less than 34% Thus, each of nine states, which is a combination of three states in the horizontal direction and three states in the vertical direction, has a different quantization coefficient. These quantization tables are set so that the quantization coefficient corresponding to the high frequency increases as the scaling factor decreases. Note that the conversion ratio is not limited to the scaling factor, and may be a resolution conversion rate.

量子化係数算出部25は、操作部36から取得したユーザの指定が、データ保存が不要(ファイリングが無効に設定されている)である場合、操作部36から取得したユーザ指定の水平方向及び垂直方向に対する変倍率に基づいて、9つの量子化テーブルのうちの1つを選択して画像圧縮部26へ出力する。   When the user designation acquired from the operation unit 36 indicates that data storage is not required (filing is set to invalid), the quantization coefficient calculation unit 25 acquires the user-specified horizontal direction and vertical direction acquired from the operation unit 36. Based on the scaling factor with respect to the direction, one of the nine quantization tables is selected and output to the image compression unit 26.

また、量子化係数算出部25は、操作部36から取得したユーザの指定が、データ保存が要(ファイリングが有効に設定されている)である場合、ユーザから指定された水平方向の変倍率及び垂直方向の変倍率とは無関係に所定の量子化テーブルを選択する。この所定の量子化テーブルは、ファイリングが無効に設定されている場合に、水平方向、垂直方向のそれぞれの変倍率が50%以上の場合に選択される量子化テーブルと同一のものである。なお、図2及び図3は圧縮時のYCbCr信号のサンプリング比が均等の場合の例である。   Further, when the user designation acquired from the operation unit 36 requires data storage (when filing is set to be effective), the quantization coefficient calculation unit 25 and the horizontal scaling factor designated by the user and A predetermined quantization table is selected regardless of the vertical scaling factor. This predetermined quantization table is the same as the quantization table selected when the scaling factor in the horizontal direction and the vertical direction is 50% or more when filing is disabled. 2 and 3 are examples when the sampling ratio of the YCbCr signal at the time of compression is uniform.

次に、逆量子化係数算出部28について、より具体的に説明する。逆量子化係数算出部28は、画像伸張時に用いる逆量子化テーブルを画像伸張部29へ出力する。例えば、JPEG方式の伸張処理では、8行8列の計64個の逆量子化係数で構成される逆量子化テーブルが必要であり、輝度信号用に1個、r色差信号及びb色差信号に共通で用いられる1個の計2個の逆量子化テーブルを画像伸張部29へ出力する。   Next, the inverse quantization coefficient calculation unit 28 will be described more specifically. The inverse quantization coefficient calculation unit 28 outputs an inverse quantization table used at the time of image expansion to the image expansion unit 29. For example, in the decompression process of the JPEG system, an inverse quantization table composed of a total of 64 inverse quantization coefficients of 8 rows and 8 columns is required, one for the luminance signal, one for the r color difference signal, and the b color difference signal. A total of two inverse quantization tables used in common are output to the image expansion unit 29.

逆量子化係数算出部28は、例えば、輝度信号用に1個、r色差信号及びb色差信号に共通で用いられる1個の計2個の逆量子化テーブルを1セットとして計9セット保持し、データ保存の要否(ファイリングの有効・無効)の指定、ユーザから指定された水平方向の変倍率及び垂直方向の変倍率に従って、いずれのセットを画像伸張部29へ出力するのが適正かを選択し、選択した逆量子化テーブルを画像伸張部29へ出力する。   The inverse quantization coefficient calculation unit 28 holds, for example, a total of nine sets of two inverse quantization tables, one for the luminance signal and one commonly used for the r color difference signal and the b color difference signal. Which set is appropriate to be output to the image decompression unit 29 in accordance with designation of necessity of data storage (validation / invalidity of filing), horizontal scaling factor and vertical scaling factor designated by the user The selected inverse quantization table is output to the image decompression unit 29.

図4は輝度信号用の逆量子化テーブルの一例を示す説明図であり、図5はr色差信号及びb色差信号用の逆量子化テーブルの一例を示す説明図である。逆量子化テーブル夫々は、8行8列の配列であり、左上にDC成分の周波数係数に対する逆量子化係数、左上から右にいくにつれて、水平方向に周波数が高い基底関数に対応する周波数係数に対する逆量子化係数、左上から下にいくにつれて、垂直方向に周波数が高い基底関数に対応する周波数係数に対する逆量子化係数、右下に水平方向、垂直方向共に周波数が高い基底関数に対応する周波数係数に対する逆量子化係数を有する。   FIG. 4 is an explanatory diagram illustrating an example of a dequantization table for luminance signals, and FIG. 5 is an explanatory diagram illustrating an example of an inverse quantization table for r color difference signals and b color difference signals. Each of the inverse quantization tables is an array of 8 rows and 8 columns, with the inverse quantization coefficient corresponding to the frequency coefficient of the DC component at the upper left, and the frequency coefficient corresponding to the basis function having a higher frequency in the horizontal direction from the upper left to the right. Inverse quantization coefficient, as it goes from top left to bottom, the inverse quantization coefficient for the frequency coefficient corresponding to the basis function whose frequency is high in the vertical direction, and the frequency coefficient corresponding to the base function whose frequency is high in both the horizontal direction and the vertical direction at the bottom right With inverse quantization coefficients.

図に示すように、逆量子化テーブル夫々は、例えば、水平方向、垂直方向のそれぞれの変倍率指定が25%以上34%未満の場合、34%以上50%未満、50%以上の3状態に対応して、水平方向3状態、垂直方向3状態の組み合わせである計9状態のそれぞれに異なる逆量子化係数を有する。また、これらの逆量子化テーブルは、変倍率が小さくなるにつれて高周波に相当する逆量子化係数が小さくなるように設定されている。なお、変倍率に限定されるものではなく、解像度の変換率であってもよい。   As shown in the figure, each of the inverse quantization tables has, for example, three states of 34% or more and less than 50% and 50% or more when the scaling factors in the horizontal direction and the vertical direction are 25% or more and less than 34%, respectively. Correspondingly, each of 9 states, which is a combination of 3 states in the horizontal direction and 3 states in the vertical direction, has different inverse quantization coefficients. These inverse quantization tables are set so that the inverse quantization coefficient corresponding to the high frequency decreases as the scaling factor decreases. Note that the conversion ratio is not limited to the scaling factor, and may be a resolution conversion rate.

逆量子化係数算出部28は、操作部36から取得したユーザの指定が、データ保存が要(ファイリングが有効に設定されている)である場合、操作部36から取得したユーザ指定の水平方向及び垂直方向に対する変倍率に基づいて、9つの逆量子化テーブルのうちの1つを選択して画像伸張部29へ出力する。   When the user designation obtained from the operation unit 36 requires data storage (when filing is set to be effective), the inverse quantization coefficient calculation unit 28 determines the user-specified horizontal direction obtained from the operation unit 36 and Based on the scaling factor with respect to the vertical direction, one of the nine inverse quantization tables is selected and output to the image expansion unit 29.

また、逆量子化係数算出部28は、操作部36から取得したユーザの指定が、データ保存が不要(ファイリングが無効に設定されている)である場合、ユーザから指定された水平方向の変倍率及び垂直方向の変倍率とは無関係に所定の逆量子化テーブルを選択する。この所定の逆量子化テーブルは、ファイリングが有効に設定されている場合に、水平方向、垂直方向のそれぞれの変倍率が50%以上の場合に選択される逆量子化テーブルと同一のものである。なお、図4及び図5は圧縮時のYCbCr信号のサンプリング比が均等の場合の例である。   In addition, when the user designation acquired from the operation unit 36 indicates that data storage is unnecessary (filing is set to be invalid), the inverse quantization coefficient calculation unit 28 determines the horizontal scaling factor designated by the user. A predetermined inverse quantization table is selected regardless of the vertical scaling factor. The predetermined inverse quantization table is the same as the inverse quantization table selected when the scaling factor in the horizontal direction and the vertical direction is 50% or more when filing is enabled. . 4 and 5 are examples in which the sampling ratio of the YCbCr signal at the time of compression is equal.

図2及び図4に示すように、水平方向、垂直方向のそれぞれの変倍率が50%以上の場合に選択される輝度信号用の量子化テーブルの量子化係数は、水平方向、垂直方向のそれぞれの変倍率が50%以上の場合に選択される輝度信号用の逆量子化テーブルの逆量子化係数と同一のものである。また、図3及び図5に示すように、水平方向、垂直方向のそれぞれの変倍率が50%以上の場合に選択されるr色差信号及びb色差信号用の量子化テーブルの量子化係数は、水平方向、垂直方向のそれぞれの変倍率が50%以上の場合に選択されるr色差信号及びb色差信号用の逆量子化テーブルの逆量子化係数と同一のものである。   As shown in FIG. 2 and FIG. 4, the quantization coefficient of the quantization table for the luminance signal selected when the scaling factors in the horizontal direction and the vertical direction are 50% or more are respectively in the horizontal direction and the vertical direction. This is the same as the inverse quantization coefficient of the inverse quantization table for the luminance signal that is selected when the scaling factor is 50% or more. Also, as shown in FIGS. 3 and 5, the quantization coefficient of the quantization table for the r color difference signal and the b color difference signal selected when the scaling factors in the horizontal direction and the vertical direction are 50% or more are: This is the same as the inverse quantization coefficient of the inverse quantization table for the r color difference signal and the b color difference signal selected when the scaling ratio in the horizontal direction and the vertical direction is 50% or more.

次に画像の圧縮処理及び伸張処理について説明する。まず、データ保存の指定がない場合、すなわち、ファイリングが無効の場合について説明する。画像処理部2は、画像圧縮の際に用いる量子化テーブルを、水平方向、垂直方向のそれぞれの変倍率に応じて、量子化係数算出部25が保持する9セットの中から選択して使用する。これらの量子化テーブルは、図2及び図3に示すように、変倍率が小さくなるに応じて高周波に相当する量子化係数が大きくなるように設定されている。このため、DCT後の周波数係数を量子化すると、水平方向、垂直方向のそれぞれの変倍率が小さい場合には、高周波部分の量子化データはDC成分側の量子化データに比べて小さい値となる。   Next, image compression processing and decompression processing will be described. First, a case where data storage is not designated, that is, a case where filing is invalid will be described. The image processing unit 2 selects and uses a quantization table used for image compression from nine sets held by the quantization coefficient calculation unit 25 in accordance with the scaling factors in the horizontal direction and the vertical direction. . As shown in FIGS. 2 and 3, these quantization tables are set so that the quantization coefficient corresponding to the high frequency increases as the scaling factor decreases. For this reason, when the frequency coefficient after DCT is quantized, the quantized data in the high-frequency part becomes smaller than the quantized data on the DC component side when the horizontal and vertical scaling factors are small. .

画像伸張に用いる逆量子化テーブルは、データ保存の指定がない場合、すなわち、ファイリングが無効の場合には、水平方向、垂直方向のそれぞれの変倍率によらず所定(一定)の逆量子化テーブルが用いられるため、逆量子化によって復元される周波数係数は、変倍率が小さいほど、変倍率が大きい場合に比べてDCTの基底関数の高周波に相当する部分の値が小さくなる。結果として、変倍率が小さい場合には画像伸張後の画像中の高周波成分が減衰することになる。   The inverse quantization table used for image expansion is a predetermined (constant) inverse quantization table regardless of the scaling factor in the horizontal direction and the vertical direction when data storage is not designated, that is, when filing is disabled. Therefore, the frequency coefficient restored by inverse quantization has a smaller value corresponding to the high frequency of the basis function of the DCT as the scaling factor is smaller than when the scaling factor is larger. As a result, when the variable magnification is small, the high frequency component in the image after the image expansion is attenuated.

画像伸張の後に行われる変倍処理において、ユーザに指定された水平方向、垂直方向のそれぞれの変倍率に応じて変倍が実施される。この際、伸張後の画像データに縮小処理後の解像度で表現できない高周波成分が含まれていた場合には、縮小処理にて折り返し歪みが原因によるエリアシングモアレ(モアレ)が発生するが、画像圧縮の際に用いる量子化テーブルを水平方向、垂直方向のそれぞれの変倍率に応じて選択することにより、伸張後の画像データ中に含まれる縮小処理後の解像度で表現できない高周波成分は減衰しており、折り返し歪みが原因によるエリアシングモアレ(モアレ)の発生が抑制され、結果として画質の改善が可能となる。この高周波成分の減衰には、従来はローパスフィルタ処理を行う必要があった。本実施の形態ではローパスフィルタ処理を行わずに高周波成分の減衰を実現でき、比較的低リソースでの画質改善が可能となる。   In scaling processing performed after image expansion, scaling is performed according to the respective scaling factors in the horizontal and vertical directions specified by the user. At this time, if the decompressed image data includes a high-frequency component that cannot be expressed by the resolution after the reduction process, aliasing moire (moire) due to aliasing distortion occurs in the reduction process. By selecting the quantization table to be used at the time according to the scaling factor in the horizontal and vertical directions, the high-frequency components that cannot be expressed with the reduced resolution included in the decompressed image data are attenuated. The occurrence of aliasing moire (moire) due to aliasing distortion is suppressed, and as a result, the image quality can be improved. Conventionally, it has been necessary to perform low-pass filter processing to attenuate the high-frequency component. In the present embodiment, attenuation of high frequency components can be realized without performing low pass filter processing, and image quality can be improved with relatively low resources.

次に、データ保存の指定がある場合、すなわち、ファイリングが有効の場合における画像の圧縮処理及び伸張処理について説明する。画像処理部2は、画像圧縮の際に用いる量子化テーブルとして、水平方向、垂直方向のそれぞれの変倍率によらず、所定(一定)の量子化テーブルを選択して画像圧縮を行う。その後、画像伸張を行う際に用いる逆量子化テーブルは、水平方向、垂直方向のそれぞれの変倍率に応じて、逆量子化係数算出部28が保持する9セットの中から1つを選択して使用する。逆量子化テーブルは、図4及び図5に示すように、変倍率が小さい場合には、変倍率が大きい場合に比べて、基底関数の周波数が高いほど対応する逆量子化係数が小さくなるように設定されている。このため、逆量子化後の復元された周波数係数は、変倍率が小さい場合ほど高周波部分の周波数係数が小さい値となる。変倍率が小さい場合には、画像圧縮時の量子化テーブルの量子化係数より逆量子化テーブルの逆量子化係数が、高周波部分において小さく設定されているため、変倍率が小さい場合には画像伸張後の画像中の高周波成分が減衰することになる。   Next, an image compression process and an expansion process when data storage is designated, that is, when filing is valid will be described. The image processing unit 2 performs image compression by selecting a predetermined (constant) quantization table as a quantization table used for image compression, regardless of the scaling factors in the horizontal direction and the vertical direction. After that, the inverse quantization table used for image expansion is selected from 9 sets held by the inverse quantization coefficient calculation unit 28 according to the respective scaling factors in the horizontal direction and the vertical direction. use. As shown in FIGS. 4 and 5, the inverse quantization table shows that when the scaling factor is small, the corresponding inverse quantization coefficient is smaller as the basis function frequency is higher than when the scaling factor is large. Is set to For this reason, the restored frequency coefficient after inverse quantization has a smaller frequency coefficient in the high frequency part as the scaling factor is smaller. When the scaling factor is small, the inverse quantization coefficient of the inverse quantization table is set smaller in the high frequency part than the quantization coefficient of the quantization table at the time of image compression. The high frequency component in the later image is attenuated.

画像伸張の後に行われる変倍処理において、ユーザに指定された水平方向、垂直方向のそれぞれの変倍率に応じて変倍が実施される。この際、伸張後の画像データに縮小処理後の解像度で表現できない高周波成分が含まれていた場合には、縮小処理にて折り返し歪みが原因によるエリアシングモアレ(モアレ)が発生するが、画像伸張の際に用いる逆量子化テーブルを水平方向、垂直方向のそれぞれの変倍率に応じて変えることで、伸張後の画像データ中に含まれる縮小処理後の解像度で表現できない高周波成分は減衰しており、折り返し歪みが原因によるエリアシングモアレ(モアレ)の発生が抑制され、画質の改善が可能となる。この高周波成分の減衰には、従来はローパスフィルタ処理を行う必要があった。本実施の形態ではローパスフィルタ処理を行わずに高周波成分の減衰を実現でき、比較的低リソースでの画質改善が可能となる。   In scaling processing performed after image expansion, scaling is performed according to the respective scaling factors in the horizontal and vertical directions specified by the user. At this time, if the decompressed image data includes a high-frequency component that cannot be expressed by the resolution after the reduction process, aliasing moire (moire) due to aliasing distortion occurs in the reduction process. By changing the inverse quantization table used in the image according to the scaling factor in the horizontal and vertical directions, the high-frequency components that cannot be expressed with the resolution after reduction included in the decompressed image data are attenuated. The occurrence of aliasing moire (moiré) due to aliasing distortion is suppressed, and image quality can be improved. Conventionally, it has been necessary to perform low-pass filter processing to attenuate the high-frequency component. In the present embodiment, attenuation of high frequency components can be realized without performing low pass filter processing, and image quality can be improved with relatively low resources.

データ保存の指定がない場合、すなわち、ファイリングが無効の場合、画像入力段階のユーザ指定に基づいた画像出力のみが可能であればよいため、必要とするデータ記憶領域の容量は小さければ小さいほどよい。この場合、ユーザに指定された水平方向、垂直方向のそれぞれの変倍率に応じて、変倍率が小さいほど、大きな量子化係数を用いることで、前述の高周波成分の除去と共に、小さな量子化係数を用いた場合に比べ、比較的大きな圧縮率を達成できる。これにより、変倍率が小さい場合には必要となるデータ記憶領域の容量は少なくなるという利点がある。   When data storage is not specified, that is, when filing is disabled, it is only necessary to be able to output an image based on user specification at the image input stage, so the smaller the required data storage area, the better . In this case, depending on the horizontal and vertical scaling factors specified by the user, the smaller the scaling factor, the larger the quantization factor used, thereby removing the high-frequency component and reducing the smaller quantization factor. A relatively large compression ratio can be achieved as compared with the case where it is used. As a result, there is an advantage that the capacity of the data storage area required when the scaling factor is small is reduced.

一方、データ保存の指定がある場合、すなわち、ファイリングが有効の場合、データ記憶領域が保持すべき画像データは、画像入力段階のユーザ指定中の変倍率のみならず、データが保存された後に、後日指定され得るあらゆる変倍率に対応できなければならない。このため、画像圧縮時には最も小さい量子化係数で構成される量子化テーブルで圧縮を行うことにより、保存された圧縮画像データを再度使用する場合に、所望の画像の縮小に対応することができる。   On the other hand, if data storage is specified, that is, if filing is enabled, the image data to be stored in the data storage area is not only the scaling factor that is specified by the user at the image input stage, but also after the data is stored. It must be able to accommodate any scaling factor that can be specified at a later date. For this reason, when compressing the stored compressed image data again, it is possible to cope with the reduction of the desired image by compressing with the quantization table composed of the smallest quantization coefficient at the time of image compression.

図6及び図7は画像処理部2の圧縮処理及び伸張処理の手順を示すフローチャートである。画像処理部2は、ユーザからの操作の有無を判定し(S11)、操作がない場合(S11でNO)、ステップS11の処理を続け、ユーザからの操作があるまで待機する。   6 and 7 are flowcharts showing the procedure of the compression process and the expansion process of the image processing unit 2. The image processing unit 2 determines whether or not there is an operation from the user (S11). If there is no operation (NO in S11), the image processing unit 2 continues the process of step S11 and waits until there is an operation from the user.

ユーザからの操作があった場合(S11でYES)、画像処理部2は、低解像度への変換又は画像の縮小の指定を受け付け(S12)、出力画像の出力部数、入力される画像データのデータ保存の要否の指定を受け付ける(S13)。   When there is an operation from the user (YES in S11), the image processing unit 2 accepts the designation of conversion to low resolution or image reduction (S12), the number of output copies of the output image, the data of the input image data The designation of necessity of storage is accepted (S13).

画像処理部2は、ファイリング出力の指定の有無を判定し(S14)、ファイリング出力の指定がない場合(S14でNO)、保存されたデータではなく画像入力部1から入力される画像データに基づいて処理するとして、画像入力処理(例えば、シェーディング補正、入力階調補正など)を行い(S15)、入力された画像データに対するデータ保存の指定の有無を判定する(S16)。   The image processing unit 2 determines whether or not the filing output is specified (S14). When the filing output is not specified (NO in S14), the image processing unit 2 is based on the image data input from the image input unit 1 instead of the stored data. Then, image input processing (for example, shading correction, input tone correction, etc.) is performed (S15), and it is determined whether or not data storage is designated for the input image data (S16).

データ保存の指定がある場合(S16でYES)、画像処理部2は、所定の量子化テーブルを選択し(S17)、入力された画像データに対して離散コサイン変換を行う(S19)。データ保存の指定がない場合(S16でNO)、画像処理部2は、低解像度への変換倍率又は画像の縮小倍率(変倍率)に応じた量子化テーブルを選択し(S18)、ステップS19の処理を行う。   When data storage is specified (YES in S16), the image processing unit 2 selects a predetermined quantization table (S17), and performs discrete cosine transform on the input image data (S19). When data storage is not designated (NO in S16), the image processing unit 2 selects a quantization table corresponding to the conversion magnification to low resolution or the image reduction magnification (magnification) (S18), and in step S19. Process.

画像処理部2は、離散コサイン変換により変換された周波数係数を量子化し(S20)、量子化された量子化データを符号化し(S21)、圧縮された圧縮画像データを記憶する(S22)。   The image processing unit 2 quantizes the frequency coefficient converted by the discrete cosine transform (S20), encodes the quantized quantized data (S21), and stores the compressed image data that has been compressed (S22).

画像処理部2は、記憶した圧縮画像データを読み出し(S23)、データ保存の指定の有無を判定する(S24)。データ保存の指定がある場合(S24でYES)、画像処理部2は、低解像度への変換倍率又は画像の縮小倍率(変倍率)に応じた逆量子化テーブルを選択し(S25)、圧縮画像データを復号化する(S27)。データ保存の指定がない場合(S24でNO)、画像処理部2は、所定の逆量子化テーブルを選択し(S26)、ステップS27の処理を行う。   The image processing unit 2 reads the stored compressed image data (S23), and determines whether data storage is designated (S24). When data storage is specified (YES in S24), the image processing unit 2 selects an inverse quantization table corresponding to the conversion ratio to low resolution or the image reduction ratio (magnification ratio) (S25), and the compressed image Data is decrypted (S27). When data storage is not designated (NO in S24), the image processing unit 2 selects a predetermined inverse quantization table (S26), and performs the process of step S27.

画像処理部2は、復号化されたデータを逆量子化し(S28)、逆量子化により変換された周波数係数に対して逆離散コサイン変換を行い(S29)、伸張された画像データに基づいて画像出力処理(例えば、変倍処理、色補正処理など)を行う(S30)。一方、ステップS14で、ファイリング出力の指定がある場合(S14でYES)、保存されたデータに基づいて処理するとして、画像処理部2は、ステップS23以降の処理を続ける。   The image processing unit 2 inversely quantizes the decoded data (S28), performs inverse discrete cosine transform on the frequency coefficient converted by the inverse quantization (S29), and performs image processing based on the decompressed image data. Output processing (for example, scaling processing, color correction processing, etc.) is performed (S30). On the other hand, when filing output is specified in step S14 (YES in S14), the image processing unit 2 continues the processing from step S23 onward, assuming that processing is performed based on the stored data.

画像処理部2は、指定部数の画像出力を行ったか否かを判定し(S31)、指定部数の画像出力を行っていない場合(S31でNO)、ステップS23以降の処理を続ける。指定部数の画像出力を行った場合(S31でYES)、画像処理部2は、データ保存の指定の有無を判定する(S32)。データ保存の指定がない場合(S32でNO)、画像処理部2は、圧縮画像データを消去し(S33)、処理を終了する。データ保存の指定がある場合(S32でYES)、画像処理部2は、記憶された圧縮画像データをそのまま保存して処理を終了する。   The image processing unit 2 determines whether or not the designated number of images have been output (S31). If the designated number of images have not been output (NO in S31), the processing from step S23 is continued. When the designated number of images have been output (YES in S31), the image processing unit 2 determines whether data storage is designated (S32). When data storage is not designated (NO in S32), the image processing unit 2 deletes the compressed image data (S33) and ends the process. If data storage is designated (YES in S32), the image processing unit 2 stores the stored compressed image data as it is and ends the process.

以上説明したように、本発明にあっては、解像度の変換倍率又は画像の縮小倍率に基づいて、変倍率に対応して量子化係数が異なる量子化テーブルのうちの1つを選択して周波数係数を量子化することにより、モアレの発生による画質低下を抑制できるとともに、圧縮率の向上と必要な記憶領域を削減することができる。また、解像度の変換倍率又は画像の縮小倍率に基づいて、変倍率に対応して逆量子化係数が異なる逆量子化テーブルのうちの1つを選択して逆量子化することにより、モアレの発生による画質低下を抑制できる。   As described above, in the present invention, based on the conversion magnification of the resolution or the reduction magnification of the image, one of the quantization tables having different quantization coefficients corresponding to the magnification is selected and the frequency is selected. By quantizing the coefficients, it is possible to suppress image quality degradation due to the occurrence of moire, improve the compression rate, and reduce the necessary storage area. Also, moiré is generated by selecting and dequantizing one of the inverse quantization tables having different inverse quantization coefficients corresponding to the variable magnification based on the resolution conversion magnification or the image reduction magnification. Image quality degradation due to

また、本発明にあっては、圧縮画像データを保存しない指定を受け付けた場合(ファイリングが無効の場合)、圧縮時には、解像度の変換倍率又は画像の縮小倍率に応じて量子化テーブルを選択して圧縮し、伸張時には、所定(一定の)の逆量子化テーブルを選択して伸張することにより、モアレの発生による画質低下を抑制できるとともに、圧縮率の向上と必要な記憶領域を削減することができる。また、圧縮画像データを保存する指定を受け付けた場合(ファイリングが有効の場合)、圧縮時には、所定(一定)の量子化テーブルを選択して圧縮し、伸張時には、解像度の変換倍率又は画像の縮小倍率に応じて逆量子化テーブルを選択して伸張することにより、保存された圧縮画像データを再度使用する場合に、所望の低解像度への変換又は画像の縮小に対応することができるとともに、モアレの発生による画質低下を抑制できる。   In the present invention, when a designation not to save compressed image data is accepted (when filing is disabled), a compression table is selected according to the resolution conversion magnification or the image reduction magnification during compression. When compressing and decompressing, by selecting and decompressing a predetermined (constant) inverse quantization table, it is possible to suppress degradation in image quality due to the occurrence of moire, improve the compression rate, and reduce the required storage area. it can. In addition, when a designation to save compressed image data is accepted (when filing is enabled), a predetermined (constant) quantization table is selected and compressed during compression, and a resolution conversion magnification or image reduction is performed during expansion. By selecting and expanding the inverse quantization table according to the magnification, when the stored compressed image data is used again, it is possible to cope with conversion to a desired low resolution or image reduction and moire. The deterioration of image quality due to the occurrence of the

上述の実施の形態では、ファイリングが無効の場合には、水平方向、垂直方向のそれぞれの変倍率指定によらず一定の逆量子化テーブルを選択し、ファイリングが有効の場合には水平方向、垂直方向のそれぞれの変倍率指定によらず一定の量子化テーブルを選択する構成であるが、これに限定されるものではなく、ファイリングが無効の場合にも、水平方向、垂直方向のそれぞれの変倍率指定に応じて逆量子化テーブルを選択することもでき、また、ファイリングが有効の場合にも、水平方向、垂直方向のそれぞれの変倍率指定に応じて量子化テーブルを選択することもできる。これによっても、高周波成分を除去するという目的を果たすことが可能な逆量子化テーブルのセット、あるいは量子化テーブルのセットを選択し得る。   In the above embodiment, when filing is disabled, a constant inverse quantization table is selected regardless of the horizontal and vertical scaling factors specified, and when filing is enabled, horizontal and vertical are selected. This is a configuration that selects a fixed quantization table regardless of the direction scaling factor, but is not limited to this, and even when filing is disabled, each scaling factor in the horizontal and vertical directions The inverse quantization table can be selected according to the designation, and even when filing is enabled, the quantization table can be selected according to the respective scaling factors in the horizontal direction and the vertical direction. This also makes it possible to select a set of inverse quantization tables or a set of quantization tables that can achieve the purpose of removing high-frequency components.

上述の実施の形態では、画像圧縮及び画像伸張の方式として、JPEG方式を例示しているが、画素値から基底関数の周波数成分毎の周波数係数に変換し、周波数係数を量子化することにより、データ量の圧縮を行う非可逆方式の場合、他の画像圧縮及び画像伸張方式にも適用可能である。例えば、本発明は、JPEG2000方式にも適用できる。画像圧縮の際のDWT後の周波数係数は、コードブロック毎の量子化ステップによって明示的な量子化可能であるが、この量子化ステップを、ファイリングの有効・無効、水平方向及び垂直方向のそれぞれの変倍率指定に応じて、量子化係数算出部で選択するとともに、画像伸張の際の逆量子化において使用する逆量子化ステップを、ファイリングの有効・無効、水平方向及び垂直方向のそれぞれの変倍率指定に応じて、逆量子化係数算出部で選択することができる。また、JPEG2000方式におけるポスト量子化に対して適用することも可能である。この場合は、画像圧縮の際に「0」見なしを行うべきビットプレーンの情報を、ファイリングの有効・無効、水平方向及び垂直方向のそれぞれの変倍率指定に応じて、量子化係数算出部で選択し、画像伸張の際に「0」見なしを行うべきビットプレーンの情報を、ファイリングの有効・無効、水平方向及び垂直方向のそれぞれの変倍率指定に応じて、逆量子化係数算出部で選択することができる。   In the above-described embodiment, the JPEG method is exemplified as the image compression and image expansion method. However, by converting the pixel value to the frequency coefficient for each frequency component of the basis function, and quantizing the frequency coefficient, In the case of the irreversible method for compressing the data amount, it can be applied to other image compression and image expansion methods. For example, the present invention can be applied to the JPEG2000 system. The frequency coefficient after DWT at the time of image compression can be explicitly quantized by a quantization step for each code block. This quantization step is applied to each of filing valid / invalid, horizontal and vertical directions. In accordance with the scaling factor specification, the quantization coefficient calculation unit selects the inverse quantization step to be used in the inverse quantization when expanding the image, the filing valid / invalid, horizontal and vertical scaling factors respectively. Depending on the designation, it can be selected by the inverse quantization coefficient calculator. Also, it can be applied to post-quantization in the JPEG2000 system. In this case, information on the bit plane that should be regarded as “0” when compressing the image is selected by the quantization coefficient calculation unit in accordance with the filing validity / invalidity and the horizontal and vertical scaling factors. Then, the information of the bit plane that should be regarded as “0” at the time of image expansion is selected by the inverse quantization coefficient calculation unit according to the filing validity / invalidity and the respective scaling factors in the horizontal direction and the vertical direction. be able to.

上述の実施の形態において、量子化テーブルの量子化係数、逆量子化テーブルの逆量子化係数、変倍率の区分などは一例であって、これに限定されるものではない。また、保持する量子化テーブル及び逆量子化テーブル夫々の数は、9に限定されるものではない。   In the above-described embodiment, the quantization coefficient of the quantization table, the inverse quantization coefficient of the inverse quantization table, the division of the scaling factor, and the like are examples, and are not limited thereto. Further, the number of quantization tables and inverse quantization tables held is not limited to nine.

本発明は、RGBからYCrCbに変換された信号への適用に限定されるものではなく、RGBからYIQに変換された信号に対しても適用することができる。   The present invention is not limited to application to signals converted from RGB to YCrCb, but can also be applied to signals converted from RGB to YIQ.

上述の実施の形態において、画像入力部1としては、例えば、フラットベッドスキャナ、フィルムスキャナ、デジタルカメラ、携帯電話機などが用いられる。また、画像出力部4としては、例えば、CRTディスプレイ、液晶ディスプレイなどの画像表示装置、処理結果を記録紙などに出力する電子写真方式又はインクジェット方式のプリンタなどが用いられる。さらに画像形成装置100としては、ネットワークを介してサーバ装置などに接続するための通信手段としてのモデムなどを備えることもできる。また、画像入力部1から画像データを取得する代わりに、ネットワークを介して外部記憶装置、サーバ装置などから画像データを取得する構成であってもよい。   In the above-described embodiment, as the image input unit 1, for example, a flat bed scanner, a film scanner, a digital camera, a mobile phone, or the like is used. Further, as the image output unit 4, for example, an image display device such as a CRT display or a liquid crystal display, an electrophotographic system or an ink jet system printer that outputs a processing result to a recording paper or the like is used. Further, the image forming apparatus 100 may include a modem as a communication unit for connecting to a server apparatus or the like via a network. Further, instead of acquiring the image data from the image input unit 1, the image data may be acquired from an external storage device, a server device, or the like via a network.

本発明はコンピュータに実行させるためのコンピュータプログラムを記録したコンピュータでの読み取り可能な記録媒体に、画像を圧縮、伸張する際に適切な量子化テーブル及び逆量子化テーブルを選択する処理を行うコンピュータプログラムを記録することもできる。この結果、上記画像処理を行うコンピュータプログラムを記録した記録媒体を持ち運び自在に提供することができる。記録媒体としては、マイクロコンピュータで処理が行われるために図示しないメモリ、例えばROMのようなプログラムメディアであってもよく、図示しない外部記憶装置としてのプログラム読取装置が設けられ、そこに記録媒体を挿入することで読み取り可能なプログラムメディアであってもよい。いずれの場合においても、格納されているコンピュータプログラムはマイクロプロセッサがアクセスして実行させる構成であってもよいし、コンピュータプログラムを読み出し、読み出されたコンピュータプログラムは、マイクロコンピュータの図示されていないプログラム記憶エリアにダウンロードされて、そのコンピュータプログラムが実行される方式であってもよい。この場合、ダウンロード用のコンピュータプログラムは予め本体装置に格納されているものとする。ここで、上記プログラムメディアは、本体と分離可能に構成される記録媒体であり、磁気テープやカセットテープ等のテープ系、フレキシブルディスクやハードディスク等の磁気ディスク並びにCD−ROM/MO/MD/DVD等の光ディスクのディスク系、ICカード(メモリカードを含む)/光カード等のカード系、あるいはマスクROM、EPROM(Erasable Programmable Read Only Memory)、EEPROM(Electrically Erasable Programmable Read Only Memory)、フラッシュROM等による半導体メモリを含めた固定的にコンピュータプログラムを担持する媒体であってもよい。また、この場合、インターネットを含む通信ネットワークを接続可能なシステム構成であることから、通信ネットワークからコンピュータプログラムをダウンロードするように流動的にコンピュータプログラムを担持する媒体であってもよい。なお、このように通信ネットワークからコンピュータプログラムをダウンロードする場合には、そのダウンロード用のコンピュータプログラムは予め本体装置に格納しておくか、あるいは別の記録媒体からインストールされるものであってもよい。   The present invention relates to a computer program for performing processing for selecting an appropriate quantization table and inverse quantization table when compressing and expanding an image on a computer-readable recording medium on which a computer program to be executed by a computer is recorded. Can also be recorded. As a result, it is possible to provide a portable recording medium on which a computer program for performing the image processing is recorded. The recording medium may be a non-illustrated memory, for example, a program medium such as a ROM because processing is performed by a microcomputer, and a program reading device as an external storage device (not illustrated) is provided, and the recording medium is stored therein. It may be a program medium that can be read by being inserted. In any case, the stored computer program may be configured to be accessed and executed by the microprocessor, or the computer program read out may be a program (not shown) of the microcomputer. A method may be used in which the computer program is downloaded to the storage area and executed. In this case, it is assumed that the computer program for download is stored in the main device in advance. Here, the program medium is a recording medium configured to be separable from the main body, such as a tape system such as a magnetic tape or a cassette tape, a magnetic disk such as a flexible disk or a hard disk, and a CD-ROM / MO / MD / DVD. Semiconductors such as optical discs, IC cards (including memory cards) / optical cards, etc., or mask ROM, EPROM (Erasable Programmable Read Only Memory), EEPROM (Electrically Erasable Programmable Read Only Memory), flash ROM, etc. It may be a medium that carries a computer program fixedly including a memory. Further, in this case, since the system configuration is connectable to a communication network including the Internet, the medium may be a medium that fluidly carries the computer program so as to download the computer program from the communication network. When the computer program is downloaded from the communication network in this way, the computer program for download may be stored in the main device in advance or installed from another recording medium.

本発明に係る画像処理装置を備える画像形成装置の構成を示すブロック図である。1 is a block diagram illustrating a configuration of an image forming apparatus including an image processing apparatus according to the present invention. 輝度信号用の量子化テーブルの一例を示す説明図である。It is explanatory drawing which shows an example of the quantization table for luminance signals. r色差信号及びb色差信号用の量子化テーブルの一例を示す説明図である。It is explanatory drawing which shows an example of the quantization table for r color difference signals and b color difference signals. 輝度信号用の逆量子化テーブルの一例を示す説明図である。It is explanatory drawing which shows an example of the dequantization table for luminance signals. r色差信号及びb色差信号用の逆量子化テーブルの一例を示す説明図である。It is explanatory drawing which shows an example of the inverse quantization table for r color difference signals and b color difference signals. 画像処理部の圧縮処理及び伸張処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the compression process of an image process part, and an expansion process. 画像処理部の圧縮処理及び伸張処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the compression process of an image process part, and an expansion process.

符号の説明Explanation of symbols

1 画像入力部
2 画像処理部
4 画像出力部
25 量子化係数算出部
26 画像圧縮部
27 データ記憶部
28 逆量子化係数算出部
29 画像伸張部
36 操作部
37 制御部
DESCRIPTION OF SYMBOLS 1 Image input part 2 Image processing part 4 Image output part 25 Quantization coefficient calculation part 26 Image compression part 27 Data storage part 28 Inverse quantization coefficient calculation part 29 Image expansion part 36 Operation part 37 Control part

Claims (8)

画像の各画素に所定の周波数変換を行って画素値を周波数係数に変換し、変換された周波数係数を量子化し、量子化された量子化データを符号化して画像を圧縮し、圧縮された画像を伸張する画像処理装置において、
周波数係数を量子化するため解像度の変換倍率又は画像の縮小倍率が小さいほど高周波成分に対応する量子化係数が大きい複数の量子化情報を記憶する記憶手段と、
伸張した画像を低解像度へ変換する指定又は該画像を縮小する指定を受け付ける受付手段と、
該受付手段で受け付けた指定に対応する解像度の変換倍率又は画像の縮小倍率に基づいて、記憶された量子化情報を選択する第1選択手段と
画像を圧縮した圧縮画像データを保存するか否かの指定を受け付ける手段と
を備え、
圧縮画像データを保存しない指定を受け付けた場合、前記第1選択手段は、受け付けた指定に対応する解像度の変換倍率又は画像の縮小倍率に応じた量子化情報を選択するように構成してあり、
圧縮画像データを保存する指定を受け付けた場合、前記第1選択手段は、前記解像度の変換倍率又は画像の縮小倍率に関わらず所定の量子化情報を選択するように構成してあり
前記第1選択手段で選択された量子化情報を用いて周波数係数を量子化するように構成してあることを特徴とする画像処理装置。
Performs a predetermined frequency conversion on each pixel of the image, converts the pixel value into a frequency coefficient, quantizes the converted frequency coefficient, encodes the quantized quantized data, compresses the image, and compresses the image In an image processing apparatus for decompressing
Storage means for storing a plurality of pieces of quantization information having a larger quantization coefficient corresponding to a high frequency component as a resolution conversion magnification or an image reduction magnification is smaller in order to quantize the frequency coefficient;
Accepting means for accepting designation for converting the decompressed image to low resolution or designation for reducing the image;
First selection means for selecting stored quantization information based on a conversion magnification of a resolution or an image reduction magnification corresponding to the designation received by the reception means ;
Means for accepting designation as to whether to save compressed image data obtained by compressing an image ,
When the designation not to store the compressed image data is received, the first selection unit is configured to select quantization information corresponding to the conversion magnification of the resolution or the image reduction magnification corresponding to the received designation,
The first selecting means is configured to select predetermined quantization information regardless of the resolution conversion magnification or the image reduction magnification when the designation to save the compressed image data is received ,
An image processing apparatus, wherein the frequency coefficient is quantized using the quantization information selected by the first selection means.
量子化データを逆量子化するため解像度の変換倍率又は画像の縮小倍率が小さいほど高周波成分に対応する逆量子化係数が小さい複数の逆量子化情報を記憶する記憶手段と、
前記受付手段で受け付けた指定に対応する解像度の変換倍率又は画像の縮小倍率に基づいて、記憶された逆量子化情報を選択する第2選択手段と
を備え、
圧縮画像データを保存しない指定を受け付けた場合、前記第2選択手段は、受け付けた指定に対応する解像度の変換倍率又は画像の縮小倍率に関わらず所定の逆量子化情報を選択するように構成してあり、
圧縮画像データを保存する指定を受け付けた場合、前記第2選択手段は、前記解像度の変換倍率又は画像の縮小倍率に応じた逆量子化情報を選択するように構成してあり、
前記第2選択手段で選択された逆量子化情報を用いて量子化データを逆量子化して画像を伸張するように構成してあることを特徴とする請求項1に記載の画像処理装置。
Storage means for storing a plurality of inverse quantization information in which the inverse quantization coefficient corresponding to the high frequency component is smaller as the resolution conversion magnification or the image reduction magnification is smaller in order to inverse quantize the quantized data;
Second selection means for selecting the stored inverse quantization information based on the conversion magnification of the resolution or the image reduction magnification corresponding to the designation received by the reception means;
When the designation not to store the compressed image data is received, the second selection means is configured to select predetermined dequantization information regardless of the conversion ratio of the resolution or the reduction ratio of the image corresponding to the received designation. And
When the designation to save the compressed image data is received, the second selection means is configured to select inverse quantization information according to the resolution conversion magnification or the image reduction magnification,
The image processing apparatus according to claim 1, characterized in that is arranged to stretch the image by inverse quantizing the quantized data using the inverse quantization information selected by said second selection means.
請求項1又は請求項に記載の画像処理装置を備え、該画像処理装置で伸張された画像を形成することを特徴とする画像形成装置。 An image processing apparatus according to claim 1 or claim 2, the image forming apparatus, and forming a decompressed image in the image processing apparatus. コンピュータに、画像の各画素に所定の周波数変換を行って画素値を周波数係数に変換し、変換された周波数係数を量子化し、量子化された量子化データを符号化して画像を圧縮し、圧縮された画像を伸張させるためのコンピュータプログラムにおいて、
コンピュータを、伸張した画像を低解像度へ変換する指定又は該画像を縮小する指定に対応する解像度の変換倍率又は画像の縮小倍率に基づいて、周波数係数を量子化するため異なる量子化係数を有する複数の量子化情報から1つの量子化情報を選択する第1選択手段として機能させ、
圧縮画像データを保存しない指定を受け付けた場合、前記第1選択手段は、前記変換する指定又は縮小する指定に対応する解像度の変換倍率又は画像の縮小倍率が小さいほど高周波成分に対応する量子化係数が大きい量子化情報を選択するように構成してあり、
圧縮画像データを保存する指定を受け付けた場合、前記第1選択手段は、前記解像度の変換倍率又は画像の縮小倍率に関わらず所定の量子化情報を選択するように構成してあり、
コンピュータを、選択された量子化情報を用いて周波数係数を量子化する手段としてさらに機能させることを特徴とするコンピュータプログラム。
The computer performs a predetermined frequency conversion on each pixel of the image, converts the pixel value into a frequency coefficient, quantizes the converted frequency coefficient, encodes the quantized quantized data, compresses the image, and compresses the image In a computer program for decompressing a recorded image,
A plurality of computers having different quantization coefficients for quantizing the frequency coefficient based on a conversion conversion factor of a resolution corresponding to a specification for converting an expanded image to a low resolution or a specification for reducing the image, or a reduction magnification of the image first selecting means and to thereby function to select one of the quantization information from the quantization information,
When the designation not to store the compressed image data is received, the first selection means determines the quantization coefficient corresponding to the high-frequency component as the conversion magnification of the resolution corresponding to the designation of conversion or the designation of reduction or the image reduction magnification is smaller. Is configured to select quantization information with a large
The first selecting means is configured to select predetermined quantization information regardless of the resolution conversion magnification or the image reduction magnification when the designation to save the compressed image data is received,
A computer program for causing a computer to further function as means for quantizing a frequency coefficient using selected quantization information.
コンピュータを、前記変換する指定又は縮小する指定に対応する解像度の変換倍率又は画像の縮小倍率に基づいて、量子化データを逆量子化するための異なる逆量子化係数を有する逆量子化情報から1つの逆量子化情報を選択する第2選択手段として機能させ、
圧縮画像データを保存しない指定を受け付けた場合、前記第2選択手段は、前記変換する指定又は縮小する指定に対応する解像度の変換倍率又は画像の縮小倍率に関わらず所定の逆量子化情報を選択するように構成してあり、
圧縮画像データを保存する指定を受け付けた場合、前記第2選択手段は、前記解像度の変換倍率又は画像の縮小倍率が小さいほど高周波成分に対応する逆量子化係数が小さい逆量子化情報を選択するように構成してあり、
コンピュータを、選択された逆量子化情報を用いて量子化データを逆量子化して画像を伸張する手段としてさらに機能させることを特徴とする請求項に記載のコンピュータプログラム。
The computer, on the basis of the reduction magnification of the corresponding resolution of the conversion ratio or image designation to specify or reduced to convert, from the inverse quantization information having different inverse quantization coefficients for inverse quantizing the quantized data 1 One of the to to function second selecting means for selecting an inverse quantization information,
When a designation not to store compressed image data is received, the second selection means selects predetermined dequantization information regardless of the conversion magnification of the resolution or the reduction magnification of the image corresponding to the designation to convert or the designation to reduce Configured to
When the designation to save the compressed image data is received, the second selection unit selects the inverse quantization information having a smaller inverse quantization coefficient corresponding to the high frequency component as the conversion factor of the resolution or the reduction factor of the image is smaller. It is configured as
5. The computer program according to claim 4 , further causing the computer to function as means for dequantizing the quantized data using the selected dequantization information and decompressing the image.
請求項4又は請求項に記載のコンピュータプログラムを記録してあることを特徴とするコンピュータでの読み取りが可能な記録媒体。 Recording medium readable on a computer, characterized in that are recorded thereon a computer program according to claim 4 or claim 5. 画像の各画素に所定の周波数変換を行って画素値を周波数係数に変換し、変換された周波数係数を量子化し、量子化された量子化データを符号化して画像を圧縮し、圧縮された画像を伸張する画像処理方法において、
周波数係数を量子化するため解像度の変換倍率又は画像の縮小倍率が小さいほど高周波成分に対応する量子化係数が大きい複数の量子化情報を記憶しておき
伸張した画像を低解像度へ変換する指定又は該画像を縮小する指定を受け付け、
画像を圧縮した圧縮画像データを保存するか否かの指定を受け付け、
圧縮画像データを保存しない指定を受け付けた場合、前記変換する指定又は縮小する指定に対応する解像度の変換倍率又は画像の縮小倍率に応じた量子化情報を選択し、
圧縮画像データを保存する指定を受け付けた場合、前記解像度の変換倍率又は画像の縮小倍率に関わらず所定の量子化情報を選択し、
選択された量子化情報を用いて周波数係数を量子化することを特徴とする画像処理方法。
Performs a predetermined frequency conversion on each pixel of the image, converts the pixel value into a frequency coefficient, quantizes the converted frequency coefficient, encodes the quantized quantized data, compresses the image, and compresses the image In an image processing method for decompressing
Frequency coefficients stores the plurality of quantization information quantization coefficient is large, corresponding to the high-frequency component as the reduction ratio of the resolution conversion magnification or image for quantizing is small,
Accepts a designation to convert the decompressed image to low resolution or a designation to reduce the image,
Accepts whether to save compressed image data compressed image,
When the designation not to save the compressed image data is received, the conversion information of the resolution corresponding to the designation to convert or the designation to reduce, or the quantization information according to the reduction magnification of the image,
When receiving the designation to save the compressed image data , select predetermined quantization information regardless of the conversion magnification of the resolution or the reduction magnification of the image ,
An image processing method characterized in that a frequency coefficient is quantized using selected quantization information.
量子化データを逆量子化するため解像度の変換倍率又は画像の縮小倍率が小さいほど高周波成分に対応する逆量子化係数が小さい複数の逆量子化情報を記憶しておき
圧縮画像データを保存しない指定を受け付けた場合、前記変換する指定又は縮小する指定に対応する解像度の変換倍率又は画像の縮小倍率に関わらず所定の逆量子化情報を選択し、
圧縮画像データを保存する指定を受け付けた場合、前記解像度の変換倍率又は画像の縮小倍率に応じた逆量子化情報を選択し、
選択された逆量子化情報を用いて量子化データを逆量子化して画像を伸張することを特徴とする請求項に記載の画像処理方法。
Stores the plurality of inverse quantization information dequantized coefficient smaller corresponding more to the high-frequency component reduction magnification of resolution conversion magnification or image is smaller for inversely quantizing quantized data,
When the designation not to save the compressed image data is received, the predetermined inverse quantization information is selected regardless of the conversion magnification of the resolution or the image reduction magnification corresponding to the designation to convert or the designation to reduce,
When receiving the designation to save the compressed image data , select the inverse quantization information according to the conversion magnification of the resolution or the reduction magnification of the image ,
The image processing method according to claim 7 , wherein the image is expanded by dequantizing the quantized data using the selected dequantization information.
JP2006126659A 2006-04-28 2006-04-28 Image processing apparatus, image forming apparatus, computer program, recording medium, and image processing method Active JP4711879B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006126659A JP4711879B2 (en) 2006-04-28 2006-04-28 Image processing apparatus, image forming apparatus, computer program, recording medium, and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006126659A JP4711879B2 (en) 2006-04-28 2006-04-28 Image processing apparatus, image forming apparatus, computer program, recording medium, and image processing method

Publications (2)

Publication Number Publication Date
JP2007300393A JP2007300393A (en) 2007-11-15
JP4711879B2 true JP4711879B2 (en) 2011-06-29

Family

ID=38769518

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006126659A Active JP4711879B2 (en) 2006-04-28 2006-04-28 Image processing apparatus, image forming apparatus, computer program, recording medium, and image processing method

Country Status (1)

Country Link
JP (1) JP4711879B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10108130A (en) * 1996-09-30 1998-04-24 Sanyo Electric Co Ltd Image processing unit
JPH10262252A (en) * 1997-03-12 1998-09-29 Matsushita Electric Ind Co Ltd Low resolution video signal forming device and its method
JPH11511632A (en) * 1995-10-12 1999-10-05 サーノフ コーポレイション Method and apparatus for resizing an image using discrete cosine transform

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11511632A (en) * 1995-10-12 1999-10-05 サーノフ コーポレイション Method and apparatus for resizing an image using discrete cosine transform
JPH10108130A (en) * 1996-09-30 1998-04-24 Sanyo Electric Co Ltd Image processing unit
JPH10262252A (en) * 1997-03-12 1998-09-29 Matsushita Electric Ind Co Ltd Low resolution video signal forming device and its method

Also Published As

Publication number Publication date
JP2007300393A (en) 2007-11-15

Similar Documents

Publication Publication Date Title
US5379122A (en) Decompression of standard ADCT-compressed images
JP5052569B2 (en) Image compression apparatus, image compression method, image expansion apparatus, image expansion method, image forming apparatus, computer program, and recording medium
JP4365957B2 (en) Image processing method and apparatus and storage medium
US7013050B2 (en) Image encoding apparatus and method, program code, and storage medium
US7536055B2 (en) Image compression device, image output device, image decompression device, printer, image processing device, copier, image compression method, image decompression method, image processing program, and storage medium storing the image processing program
US7646925B2 (en) Image processing apparatus, image processing method, program, and storage medium
US20050276500A1 (en) Image encoding apparatus, and image processing apparatus and its control method
JP2007336467A (en) Image compression apparatus, image reader with the same, image processor with image compression apparatus, image forming apparatus with the same, method of image compression processing, computer program hereof, and recording medium
US20070252850A1 (en) Image processing method and image processing apparatus
JP4822396B2 (en) Image enhancement device
JP5383416B2 (en) Image processing apparatus, control method therefor, and program
US7149350B2 (en) Image compression apparatus, image depression apparatus and method thereof
US20060056714A1 (en) Image process device, image processing program, and recording medium
JP4711879B2 (en) Image processing apparatus, image forming apparatus, computer program, recording medium, and image processing method
JPH1175183A (en) Image signal processing method and device and storage medium
JP3732674B2 (en) Color image compression method and color image compression apparatus
JP4486847B2 (en) Method and apparatus for creating halftone images from compressed images
JP4926128B2 (en) Image processing apparatus, image reading apparatus, image forming apparatus, computer program, recording medium, and image processing method
JP3709106B2 (en) Image compression and decompression device
JP2007295319A (en) Image processing apparatus and image forming apparatus equipped therewith
JP4262145B2 (en) Image processing apparatus and control method thereof
JP2010004279A (en) Image processor and image forming apparatus including the same
JP3825871B2 (en) Image processing apparatus and method, and computer-readable recording medium storing image processing program code
JP2015049631A (en) Image processing apparatus, image forming apparatus, image processing method, program, and recording medium
JP2003274193A (en) System for encoding still image

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080806

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110104

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110302

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110322

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110322

R150 Certificate of patent or registration of utility model

Ref document number: 4711879

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150