[go: up one dir, main page]

JP2006173993A - Image processing apparatus, method of controlling computer and program - Google Patents

Image processing apparatus, method of controlling computer and program Download PDF

Info

Publication number
JP2006173993A
JP2006173993A JP2004362566A JP2004362566A JP2006173993A JP 2006173993 A JP2006173993 A JP 2006173993A JP 2004362566 A JP2004362566 A JP 2004362566A JP 2004362566 A JP2004362566 A JP 2004362566A JP 2006173993 A JP2006173993 A JP 2006173993A
Authority
JP
Japan
Prior art keywords
image
processing apparatus
resolution
image processing
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2004362566A
Other languages
Japanese (ja)
Inventor
Hideki Baba
英樹 馬場
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP2004362566A priority Critical patent/JP2006173993A/en
Publication of JP2006173993A publication Critical patent/JP2006173993A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processing apparatus which determines a system which decompresses compression image data and performs image decompression processing by not only the performance of the side which outputs and displays an image but also considering the information of the image itself. <P>SOLUTION: The image processing apparatus which can elongate the compressing image data includes an image resolution acquisition part 42 which acquires the resolution of the image from the compression image data, an image decompression system determination part 44 which determines the image decompression system by comparing the resolution of the image with the output performance value of the image processing apparatus, and an image decompression processor 46 which decompress the above compression image data by the system determined by the image decompression system determination part 44. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、画像処理装置、コンピュータの制御方法及びプログラムに関し、特に圧縮画像データを伸張する技術に関する。   The present invention relates to an image processing apparatus, a computer control method, and a program, and more particularly to a technique for decompressing compressed image data.

従来、圧縮画像データを伸張する画像処理装置では、伸張した画像を表示する画像処理装置の出力側の性能(例えばモニタの出力解像度等)に応じて、圧縮画像データの伸張方式を変更しているものがある。例えば、下記特許文献1では、モニタが低解像度である場合にデータ切り捨て回路によりDCT変換係数の高周波数成分データの切り捨てをおこない、高解像度である場合には切り捨てをおこなわないこととして、低解像度モニタに画像を表示する場合には画像伸張処理の負荷を軽減している。
特開平5−68235号公報
2. Description of the Related Art Conventionally, in an image processing apparatus that decompresses compressed image data, the decompression method of the compressed image data is changed in accordance with the output-side performance (for example, the output resolution of a monitor) of the image processing apparatus that displays the decompressed image. There is something. For example, in Patent Document 1 below, it is assumed that the data truncation circuit truncates the high frequency component data of the DCT conversion coefficient when the monitor has a low resolution, and does not perform truncation when the monitor has a high resolution. When an image is displayed on the screen, the load of the image expansion process is reduced.
Japanese Patent Laid-Open No. 5-68235

しかしながら、上記従来技術においては、モニタが低解像度であるか高解像度であるかという出力側の性能のみに応じて、圧縮画像データの高周波数成分の切り捨てをおこなうか否かを決定していた。すなわち、元画像の属性値(解像度や色空間のチャネル数等)等の入力側の情報を考慮せずに、圧縮画像データの伸張方式を切り替えているため、例えばモニタが高解像度であったとしても、元画像の解像度がそれ以上であった場合に演算時間の短縮ができなかった。また、モニタが低解像度であったとしても、元画像の解像度がそれ以下であった場合に、必要以上に画質を落としてしまっていた。   However, in the above-described prior art, it is determined whether or not to cut off the high frequency component of the compressed image data depending only on the output side performance of whether the monitor has a low resolution or a high resolution. That is, since the compression method of the compressed image data is switched without considering the information on the input side such as the attribute value of the original image (resolution, number of channels in the color space, etc.), for example, the monitor is assumed to have a high resolution However, the calculation time could not be shortened when the resolution of the original image was higher than that. Even if the monitor has a low resolution, if the resolution of the original image is lower than that, the image quality is reduced more than necessary.

本発明は上記課題に鑑みてなされたものであって、その目的の一つは、画像を出力表示する側の性能のみによってだけでなく、画像自体の情報をも考慮して、圧縮画像データを伸張する方式を決定し画像伸張処理をおこなう画像処理装置、コンピュータの制御方法及びプログラムを提供することにある。   The present invention has been made in view of the above problems, and one of its purposes is to not only compress the image data in consideration of not only the performance of the image output and display side but also the information of the image itself. An object of the present invention is to provide an image processing apparatus, a computer control method, and a program for determining an expansion method and performing image expansion processing.

上記課題を解決するために、本発明にかかる画像処理装置は、圧縮画像データを伸張可能な画像処理装置であって、前記圧縮画像データから画像の属性値を取得する手段と、前記画像の属性値と前記画像処理装置の出力性能値との比較により、画像伸張方式を決定する画像伸張方式決定手段と、前記画像伸張方式決定手段により決定された方式により、前記圧縮画像データを伸張する手段と、を含むことを特徴とする。   In order to solve the above-described problems, an image processing apparatus according to the present invention is an image processing apparatus capable of decompressing compressed image data, the means for acquiring an attribute value of an image from the compressed image data, and the attribute of the image An image expansion method determining means for determining an image expansion method by comparing a value with an output performance value of the image processing apparatus, and a means for expanding the compressed image data by a method determined by the image expansion method determination means , Including.

また、本発明に係るコンピュータ(例えばパーソナルコンピュータ、サーバコンピュータ、プリンタ、複合機等である。以下、同様。)の制御方法は、圧縮画像データから画像の属性値を取得するステップと、前記画像の属性値と画像処理装置の出力性能値との比較により、画像伸張方式を決定する画像伸張方式決定ステップと、前記画像伸張方式決定ステップにより決定された方式により、前記圧縮画像データを伸張するステップと、を含むことを特徴とする。   In addition, a control method of a computer according to the present invention (for example, a personal computer, a server computer, a printer, a multifunction peripheral, etc., the same applies hereinafter) includes a step of acquiring an attribute value of an image from compressed image data, An image expansion method determining step for determining an image expansion method by comparing the attribute value and the output performance value of the image processing apparatus; and a step of expanding the compressed image data by the method determined by the image expansion method determination step; , Including.

また、本発明に係るプログラムは、圧縮画像データから画像の属性値を取得する手段、前記画像の属性値と画像処理装置の出力性能値との比較により、画像伸張方式を決定する画像伸張方式決定手段、及び、前記画像伸張方式決定手段により決定された方式により、前記圧縮画像データを伸張する手段、としてコンピュータを機能させるためのプログラムである。プログラムは、CD−ROM(Compact Disk - Read Only Memory)、DVD−ROM(Digital Versatile Disk - Read Only Memory)、メモリーカードその他のあらゆるコンピュータ読み取り可能な情報記憶媒体に格納することとしてもよい。   The program according to the present invention also includes means for acquiring an attribute value of an image from compressed image data, and an image expansion method determination for determining an image expansion method by comparing the attribute value of the image with an output performance value of the image processing apparatus. And a program for causing a computer to function as means for decompressing the compressed image data by the method determined by the image expansion method determination means. The program may be stored in a CD-ROM (Compact Disk-Read Only Memory), a DVD-ROM (Digital Versatile Disk-Read Only Memory), a memory card, or any other computer-readable information storage medium.

本発明では、圧縮画像データから画像の属性値を取得し、画像の属性値と画像処理装置の出力性能値との比較を行って画像伸張方式を決定し、その画像伸張方式によって圧縮画像データを伸張するものである。本発明によれば、画像の属性値と画像処理装置の出力性能値との両方を考慮して適切な画像伸張方式によって圧縮画像データを伸張することができる。   In the present invention, an attribute value of an image is acquired from the compressed image data, the image attribute value is compared with the output performance value of the image processing apparatus to determine an image expansion method, and the compressed image data is converted by the image expansion method. It extends. According to the present invention, the compressed image data can be decompressed by an appropriate image decompression method in consideration of both the attribute value of the image and the output performance value of the image processing apparatus.

本発明の一態様では、前記画像の属性値は、画像の解像度であり、前記画像処理装置の出力性能値は、出力解像度とする。こうすれば、画像の解像度と画像処理装置の出力解像度の値を比較することで適切な画像伸張方式によって圧縮画像データを伸張することができる。   In one aspect of the present invention, the attribute value of the image is an image resolution, and the output performance value of the image processing apparatus is an output resolution. In this way, the compressed image data can be decompressed by an appropriate image decompression method by comparing the image resolution and the output resolution value of the image processing apparatus.

本発明の一態様では、前記圧縮画像データは、所定ブロック単位で直交変換符号化された圧縮画像データであり、前記画像伸張方式決定手段は、前記画像の解像度と前記出力解像度との比較、及び、前記画像の解像度を前記出力解像度で割った商と前記圧縮画像データのブロックサイズとの比較により、前記圧縮画像データの伸張に用いる単位ブロックあたりのAC成分の画素数を決定することとする。こうすれば、前記圧縮画像データを伸張する際に、前記画像の解像度が前記出力解像度より大きい場合には計算負荷を軽減でき、前記画像の解像度が前記出力解像度以下の場合には、必要以上に画質を落とすことがないようにすることができる。   In one aspect of the present invention, the compressed image data is compressed image data that has undergone orthogonal transform coding in units of a predetermined block, and the image expansion method determination unit compares the resolution of the image with the output resolution, and The number of pixels of the AC component per unit block used for decompressing the compressed image data is determined by comparing the quotient obtained by dividing the resolution of the image by the output resolution with the block size of the compressed image data. In this way, when decompressing the compressed image data, the calculation load can be reduced if the resolution of the image is larger than the output resolution, and more than necessary if the resolution of the image is less than or equal to the output resolution. It is possible to prevent the image quality from being degraded.

本発明の一態様では、前記画像の属性値は、画像の色空間におけるチャネル数であり、前記画像処理装置の出力性能値は、出力色空間におけるチャネル数とする。こうすれば、画像の色空間におけるチャネル数と画像処理装置の出力色空間におけるチャネル数の値を比較することで適切な画像伸張方式によって圧縮画像データを伸張することができる。   In one aspect of the present invention, the attribute value of the image is the number of channels in the color space of the image, and the output performance value of the image processing device is the number of channels in the output color space. In this way, the compressed image data can be expanded by an appropriate image expansion method by comparing the number of channels in the color space of the image with the value of the number of channels in the output color space of the image processing apparatus.

本発明の一態様では、前記画像伸張方式決定手段は、前記画像の色空間におけるチャネル数が前記出力色空間におけるチャネル数よりも大きい場合に、前記圧縮画像データの所定ブロックのみを用いる。こうすれば、前記画像処理装置によっては出力できない情報を切り捨てることで画騒伸張処理の計算負荷を軽減することができる。   In one aspect of the present invention, the image expansion method determining means uses only a predetermined block of the compressed image data when the number of channels in the color space of the image is larger than the number of channels in the output color space. By so doing, it is possible to reduce the calculation load of the image expansion processing by discarding information that cannot be output depending on the image processing apparatus.

以下、本発明の好適な実施形態について図面に基づいて詳細に説明する。   DESCRIPTION OF EXEMPLARY EMBODIMENTS Hereinafter, preferred embodiments of the invention will be described in detail with reference to the drawings.

図1は、本発明の実施の形態に係る画像処理装置10のハードウェア構成図を示すものである。同図に示す画像処理装置10は、CPU(Central Processing Unit)14、RAM(Random Access Memory)16、及び、画像出力インターフェース18がバス12によって相互データ通信可能に接続される。また、画像出力インターフェース18はディスプレイ20に接続される。   FIG. 1 is a hardware configuration diagram of an image processing apparatus 10 according to an embodiment of the present invention. In the image processing apparatus 10 shown in the figure, a CPU (Central Processing Unit) 14, a RAM (Random Access Memory) 16, and an image output interface 18 are connected via a bus 12 so that mutual data communication is possible. The image output interface 18 is connected to the display 20.

CPU14は、図示しないROMに格納されるオペレーティングシステムに基づいて、画像処理装置10の各部を制御する。また、CPU14は、同様に図示しないROMに格納されるプログラムに基づいて、圧縮画像データを伸張する処理の演算をおこなうものである。バス12はアドレス及びデータを画像処理装置10の各部でやり取りするためのものである。RAM16には、圧縮画像データが格納されていることとするが、圧縮画像データはその他にもコンピュータ読み取り可能な記憶媒体に格納されることとしてもよい。また、RAM16はCPU14の作業用としても用いられる。そして、RAM16はVRAM(Video Random Access Memory)を含んで構成されており、CPU14によって伸張処理を施された出力画像データがVRAM上に描画されるとともに、その内容が画像出力インターフェース18を通してディスプレイ20に出力される。   The CPU 14 controls each unit of the image processing apparatus 10 based on an operating system stored in a ROM (not shown). Similarly, the CPU 14 performs an operation of decompressing the compressed image data based on a program stored in a ROM (not shown). The bus 12 is for exchanging addresses and data between the units of the image processing apparatus 10. The RAM 16 stores compressed image data, but the compressed image data may be stored in a computer-readable storage medium. The RAM 16 is also used for the work of the CPU 14. The RAM 16 includes a VRAM (Video Random Access Memory). The output image data expanded by the CPU 14 is drawn on the VRAM, and the contents are displayed on the display 20 through the image output interface 18. Is output.

図2は、画像処理装置10の機能ブロック図を示すものである。同図に示すように、画像処理装置10は、機能的には、ヘッダ情報解析部40、画像解像度取得部42、画像伸張方式決定部44、画像伸張処理部46、及び、画像出力部48とを含み構成されている。これらは、画像処理装置10において図示しないROMに格納されたプログラムを実行することにより実現される機能である。   FIG. 2 is a functional block diagram of the image processing apparatus 10. As shown in the figure, the image processing apparatus 10 functionally includes a header information analysis unit 40, an image resolution acquisition unit 42, an image expansion method determination unit 44, an image expansion processing unit 46, and an image output unit 48. It is comprised including. These are functions realized by executing a program stored in a ROM (not shown) in the image processing apparatus 10.

ヘッダ情報解析部40は、RAM14に格納された圧縮画像データ30のヘッダ情報を読み取り、解析するものである。上記圧縮画像データ30のヘッダ情報には、例えば、画像の解像度、縦の画素数、横の画素数、色空間のチャネル数やその他画像の属性値が格納されている。本実施例では、前記圧縮画像データは、静止画の画像圧縮の規格であるJPEG(Joint Photographic Expert Group)方式により圧縮されたものとするが、その他の画像圧縮方式であってもよい。   The header information analysis unit 40 reads and analyzes the header information of the compressed image data 30 stored in the RAM 14. The header information of the compressed image data 30 stores, for example, the image resolution, the number of vertical pixels, the number of horizontal pixels, the number of channels in the color space, and other image attribute values. In this embodiment, the compressed image data is compressed by the JPEG (Joint Photographic Expert Group) method, which is a standard for image compression of still images, but other image compression methods may be used.

JPEG方式による圧縮処理の概略は以下のとおりである。まずRGBビットマップ画像をYUVビットマップ画像に変換する。次に、YUVビットマップ画像を8×8画素からなる画素ブロックに分割する。そして、各画素ブロックをDCT(Discrete Cosine Transform)によって直交変換する。これにより8×8画素の各ブロックは、8×8空間周波数成分からなる周波数成分ブロックに変換される。図3には、上述のDCTによって直交変換された周波数成分ブロックが示されている。同図における左上の成分をDC成分、それ以外の部分をAC成分という。この周波数成分ブロックの周波数特性は、図4に示されるように、水平方向空間周波数は左から右にいくにつれて高周波数となり、垂直方向空間周波数は上から下にいくにつれて高周波数となり、全体としては左上から右下にいくにつれて高周波数となっている。一般に人間の視覚は高周波数成分には鈍感であることから、JPEG方式による圧縮においては、高周波数成分を切り捨ててデータ量を減らし(量子化)、さらにハフマン符号化を施してデータの圧縮を図っている。ここでは、1ブロックは8×8画素で構成されることとしたが、画像データを構成する画素数に応じて、1ブロックあたりの画素数を所定の数に設定して構成してもよい。   The outline of the compression processing by the JPEG method is as follows. First, the RGB bitmap image is converted into a YUV bitmap image. Next, the YUV bitmap image is divided into pixel blocks composed of 8 × 8 pixels. Each pixel block is orthogonally transformed by DCT (Discrete Cosine Transform). As a result, each block of 8 × 8 pixels is converted into a frequency component block composed of 8 × 8 spatial frequency components. FIG. 3 shows a frequency component block orthogonally transformed by the above-described DCT. The upper left component in the figure is called a DC component, and the other portion is called an AC component. As shown in FIG. 4, the frequency characteristic of the frequency component block is such that the horizontal spatial frequency becomes higher as it goes from left to right, and the vertical spatial frequency becomes higher as it goes from top to bottom. The frequency increases from the upper left to the lower right. In general, human vision is insensitive to high-frequency components, so in JPEG compression, the high-frequency components are cut off to reduce the amount of data (quantization), and then Huffman coding is used to compress the data. ing. Here, one block is composed of 8 × 8 pixels. However, the number of pixels per block may be set to a predetermined number according to the number of pixels constituting the image data.

画像解像度取得部42は、圧縮画像データから画像の属性値を取得するものである。具体的には、前記ヘッダ情報解析部40により解析されたヘッダ情報のうち、画像の解像度を表す情報を取得する。ここでは、ヘッダ情報の中に画像の解像度が含まれている場合にはそれを取得し、含まれていない場合でも、上記の縦の画素数と横の画素数とを掛け合わせることで画像解像度を取得する。   The image resolution acquisition unit 42 acquires image attribute values from the compressed image data. Specifically, information representing the resolution of the image is acquired from the header information analyzed by the header information analysis unit 40. Here, if the resolution of the image is included in the header information, it is acquired, and even if it is not included, the image resolution is obtained by multiplying the number of vertical pixels and the number of horizontal pixels. To get.

画像伸張方式決定部44は、画像の属性値(画像の解像度)と画像処理装置の出力性能値(画像処理装置出力解像度32)との比較により、画像伸張方式を決定するものである。具体的には、画像の解像度と出力解像度とを比較し、さらに、画像の解像度を出力解像度で割った商と圧縮画像データのブロックサイズとを比較することで、圧縮画像データの伸張に用いる単位ブロックあたりのAC成分の画素数を決定する。ここでブロックサイズとは、所定ブロックが8×8画素で構成されている場合には、ブロックサイズ=8×8とする。   The image expansion method determining unit 44 determines the image expansion method by comparing the image attribute value (image resolution) with the output performance value of the image processing device (image processing device output resolution 32). Specifically, the unit used for decompressing the compressed image data by comparing the resolution of the image with the output resolution, and further comparing the quotient obtained by dividing the image resolution by the output resolution with the block size of the compressed image data. The number of AC component pixels per block is determined. Here, the block size is assumed to be block size = 8 × 8 when the predetermined block is composed of 8 × 8 pixels.

次に、1ブロックあたりのAC成分の画素数の決定方法について説明する。CPU14は、画像解像度と出力解像度とを比較する。ここで画像解像度が出力解像度より大きいときは、画像解像度を出力解像度で割った商を求める。CPU14は、この商とブロックサイズとを比較し、この商がブロックサイズ以上の場合は、AC成分のすべてを切り捨てることとする。つまり、この場合はDC成分のみによって伸張処理をおこなう。以下、この方法を「伸張方式1」と呼ぶ。一方、画像解像度を出力解像度で割った商がブロックサイズ未満である場合には、AC成分の画素数を、例えば、ブロックサイズ/(画像解像度/出力解像度)−1とする。すなわち、ここでは、伸張処理に用いる1ブロックあたりの画素数は(画像解像度/出力解像度)の値に反比例するものとしている。以下、この方法を「伸張方式2」と呼ぶ。このように、画像の解像度が出力解像度よりも大きい場合には、画像の持っている情報のすべてを出力画像で表現できるわけではないので、画像のAC成分の高周波数成分の全てまたは一部を切り捨てて伸張処理をおこなう。こうすることで、画像の伸張処理に要する計算負荷を軽減することができる。また、画像の解像度が出力解像度以下である場合には、画質を落とさないために、DC成分とすべてのAC成分を用いて伸張処理をおこなうこととする。以下、この方法を「伸張方式3」と呼ぶ。   Next, a method for determining the number of AC component pixels per block will be described. The CPU 14 compares the image resolution with the output resolution. Here, when the image resolution is higher than the output resolution, a quotient obtained by dividing the image resolution by the output resolution is obtained. The CPU 14 compares this quotient with the block size, and if this quotient is greater than or equal to the block size, it will discard all AC components. That is, in this case, the expansion process is performed only with the DC component. Hereinafter, this method is referred to as “extension method 1”. On the other hand, when the quotient obtained by dividing the image resolution by the output resolution is less than the block size, the number of pixels of the AC component is, for example, block size / (image resolution / output resolution) −1. That is, here, the number of pixels per block used for the decompression process is inversely proportional to the value of (image resolution / output resolution). Hereinafter, this method is referred to as “expansion method 2”. In this way, when the resolution of the image is larger than the output resolution, not all the information that the image has can be expressed in the output image, so all or some of the high frequency components of the AC component of the image can be represented. Truncate and extend. By doing so, it is possible to reduce the calculation load required for image expansion processing. Further, when the resolution of the image is equal to or lower than the output resolution, the decompression process is performed using the DC component and all AC components in order not to deteriorate the image quality. Hereinafter, this method is referred to as “extension method 3”.

画像伸張処理部46は、前記画像伸張方式決定部44によって決定された圧縮画像の伸張方式によって、圧縮画像の伸張処理をおこなうものである。具体的には、前記画像伸張方式決定部44によって決定された圧縮画像の単位ブロックあたりのAC成分の画素数を用いて、各ブロックに対して逆DCT変換処理をおこない、変換処理が施された各ブロックを合成し、圧縮画像の伸張処理をおこなう。   The image decompression processing unit 46 performs decompression processing of the compressed image by the compressed image decompression method determined by the image decompression method determining unit 44. Specifically, using the number of pixels of the AC component per unit block of the compressed image determined by the image expansion method determination unit 44, inverse DCT conversion processing was performed on each block, and the conversion processing was performed. The blocks are combined and the compressed image is decompressed.

画像出力部48は、前記画像伸張処理46によって伸張された画像を画像出力インターフェース18を通して、ディスプレイ20に出力表示するものである。   The image output unit 48 outputs and displays the image expanded by the image expansion processing 46 on the display 20 through the image output interface 18.

以下、本画像処理装置10の動作の詳細について説明する。   Details of the operation of the image processing apparatus 10 will be described below.

図5は、本発明の実施に係る画像処理装置10における画像出力処理を示すフロー図である。この処理では、圧縮画像データのヘッダ情報を解析する(S101)。解析したヘッダ情報の中から、画像解像度を取得する(S102)。また、ヘッダ情報の中に画像解像度がない場合には、画像の縦と横の画素数などの画像の解像度に関する情報を取得し、画像解像度を計算する。前記の画像解像度と画像処理装置の出力解像度とから画像伸張方式決定処理をおこない(S103)、そこで決定された方式によって圧縮画像伸張処理をおこなう(S104)。この画像伸張方式決定処理および圧縮画像伸張処理に関しては、後述する。そして、伸張された画像を画像出力インターフェース18を通してディスプレイ20に出力表示する(S105)。   FIG. 5 is a flowchart showing image output processing in the image processing apparatus 10 according to the embodiment of the present invention. In this process, the header information of the compressed image data is analyzed (S101). Image resolution is acquired from the analyzed header information (S102). Further, when there is no image resolution in the header information, information on the resolution of the image such as the number of vertical and horizontal pixels of the image is acquired, and the image resolution is calculated. An image expansion method determination process is performed from the image resolution and the output resolution of the image processing apparatus (S103), and a compressed image expansion process is performed according to the determined method (S104). The image expansion method determination process and the compressed image expansion process will be described later. Then, the decompressed image is output and displayed on the display 20 through the image output interface 18 (S105).

図6は、画像伸張方式の決定処理を示すフロー図である。この処理では、画像解像度が出力解像度よりも大きいか否かを判断し(S201)、大きい場合には、さらに画像解像度を出力解像度で割った商が圧縮画像のブロックサイズ以上か否かを判断する(S202)。そこでブロックサイズ以上だと判断される場合には、伸張方式を1とし(S203)、そうでない場合には伸張方式を2とする(S204)。またS201において、画像解像度が出力解像度よりも大きくないと判断される場合には、伸張方式を3とする(S205)。   FIG. 6 is a flowchart showing the determination process of the image expansion method. In this process, it is determined whether or not the image resolution is larger than the output resolution (S201). If it is larger, it is further determined whether or not the quotient obtained by dividing the image resolution by the output resolution is equal to or larger than the block size of the compressed image. (S202). If it is determined that the block size is not smaller than 1, the expansion method is set to 1 (S203). Otherwise, the expansion method is set to 2 (S204). If it is determined in S201 that the image resolution is not larger than the output resolution, the expansion method is set to 3 (S205).

図7は、圧縮画像の伸張処理を示すフロー図である。この処理では、まず伸張方式が何であるかを判断する(S301)。伸張方式が1である場合には、圧縮画像データのAC成分すべてを切り捨てて伸張処理をおこなうこととする(S302)。また、伸張処理が2である場合には、AC成分の一部の高周波数成分を切り捨てて伸張処理をおこなうこととする(S303)。また、伸張処理が3である場合には、AC成分の切り捨てを行わずに伸張処理をおこなうこととする(S304)。S303において、伸張処理に用いる各画素ブロックあたりのAC成分の個数は、ブロックサイズ/(画像解像度/出力解像度)−1個とし、それ以外のAC成分は切り捨てることとする。ここで上記個数分のAC成分の選択方法は、低周波数成分から順に選択するものとし、具体的には、図3の点線によって示された順に左上から選択するものとする。そして、以上の処理で決定されたAC成分を用いて、各画素ブロックに対して逆DCT変換処理をおこない(S305)、各画素ブロックを合成し(S306)、出力画像を得る。   FIG. 7 is a flowchart showing decompression processing of a compressed image. In this process, it is first determined what the expansion method is (S301). If the decompression method is 1, all the AC components of the compressed image data are discarded and the decompression process is performed (S302). If the expansion process is 2, a part of the high frequency component of the AC component is discarded and the expansion process is performed (S303). If the decompression process is 3, the decompression process is performed without truncating the AC component (S304). In S303, the number of AC components per pixel block used for the decompression process is assumed to be block size / (image resolution / output resolution) -1, and other AC components are discarded. Here, the number of AC component selection methods is selected in order from the low frequency component, and specifically, from the upper left in the order indicated by the dotted line in FIG. Then, using the AC component determined by the above processing, inverse DCT conversion processing is performed on each pixel block (S305), and each pixel block is synthesized (S306) to obtain an output image.

以上説明した本発明の実施の形態に係る画像処理装置10によれば、画像を出力表示する側の性能のみによってだけでなく、画像自体の情報をも考慮して、圧縮画像データを伸張する方式を決定し、画像伸張処理をおこなうことができる。   According to the image processing apparatus 10 according to the embodiment of the present invention described above, a method for expanding compressed image data in consideration of not only the performance of the image output side but also the information of the image itself. Can be determined and image expansion processing can be performed.

なお、本発明は上記実施形態に限定されるものではない。   The present invention is not limited to the above embodiment.

例えば、上記実施例では、画像解像度および出力解像度を用いて、画像伸張方式を決定しているが、圧縮画像データの色空間におけるチャネル数および出力色空間におけるチャネル数から画像伸張方式を決定することとしてもよい。例えば、圧縮画像データの色空間がCIE−Lab(チャネル数=3)で出力色空間が白黒2値(チャネル数=1)であった場合には、画像の伸張処理には圧縮画像データの各画素ブロックのうちL(輝度)に相当するブロックのみを用いることとして、計算負荷を軽減できる。そのように、画像の色空間におけるチャネル数が出力色空間におけるチャネル数よりも大きい場合に、圧縮画像データの所定ブロックのみを用いて伸張処理をおこない、計算負荷を軽減することとしてもよい。   For example, in the above embodiment, the image expansion method is determined using the image resolution and the output resolution, but the image expansion method is determined from the number of channels in the color space of the compressed image data and the number of channels in the output color space. It is good. For example, when the color space of the compressed image data is CIE-Lab (number of channels = 3) and the output color space is binary black and white (number of channels = 1), each image of the compressed image data is used for image expansion processing. The calculation load can be reduced by using only the block corresponding to L (luminance) among the pixel blocks. As described above, when the number of channels in the color space of the image is larger than the number of channels in the output color space, the decompression process may be performed using only a predetermined block of the compressed image data to reduce the calculation load.

また、上記実施例では、画素ブロックをすべて用いて出力画像を生成しているが、不要な画素ブロックを飛ばし、所定画素ブロックのみを用いて圧縮画像を伸張する方式を追加してもよい。この場合に、どのブロックを用いるかは、ブロックサイズ/(画像解像度/出力解像度)の値に応じて決めてもよい。   In the above embodiment, an output image is generated using all pixel blocks. However, a method of skipping unnecessary pixel blocks and expanding a compressed image using only predetermined pixel blocks may be added. In this case, which block is used may be determined according to the value of block size / (image resolution / output resolution).

なお、上記実施例では、画像解像度および出力解像度を用いて、画像伸張方式を決定しているが、圧縮画像の縦および横の画素数と、出力解像度における縦および横の画素数との比較によって、画像伸張方式を決定することとしてもよい。すなわち、圧縮画像の縦の画素数が出力解像度における縦の画素数よりも大きい場合、もしくは、圧縮画像の横の画素数が出力解像度における横の画素数よりも大きい場合に、圧縮画像データのAC成分の一部または全ての高周波数成分を切り捨てて伸張するようにしてもよい。また、上記出力解像度における縦および横の画素数は、紙やディスプレイなどの出力媒体の縦または横の長さから算出したものであってもよい。   In the above embodiment, the image expansion method is determined by using the image resolution and the output resolution. However, by comparing the number of vertical and horizontal pixels of the compressed image with the number of vertical and horizontal pixels in the output resolution. The image expansion method may be determined. That is, when the number of vertical pixels in the compressed image is larger than the number of vertical pixels in the output resolution, or when the number of horizontal pixels in the compressed image is larger than the number of horizontal pixels in the output resolution, the AC of the compressed image data You may make it extend | stretch by truncating a part or all high frequency component of a component. The number of vertical and horizontal pixels in the output resolution may be calculated from the vertical or horizontal length of an output medium such as paper or a display.

本発明の実施の形態に係る画像処理装置のハードウェア構成図である。It is a hardware block diagram of the image processing apparatus which concerns on embodiment of this invention. 画像処理装置の機能ブロック図である。It is a functional block diagram of an image processing apparatus. DCTによって直交変換された周波数成分ブロックを示す図である。It is a figure which shows the frequency component block orthogonally transformed by DCT. 周波数成分ブロックの周波数特性を示す図である。It is a figure which shows the frequency characteristic of a frequency component block. 画像処理装置における画像出力処理を示すフロー図である。It is a flowchart which shows the image output process in an image processing apparatus. 画像伸張方式の決定処理を示すフロー図である。It is a flowchart which shows the determination process of an image expansion system. 圧縮画像の伸張処理を示すフロー図である。It is a flowchart which shows the expansion process of a compressed image.

符号の説明Explanation of symbols

10 画像処理装置、12 バス、14 CPU、16 RAM、18 画像出力インターフェース、20 ディスプレイ、30 圧縮画像データ、32 画像処理装置出力解像度、40 ヘッダ情報解析部、42 画像解像度取得部、44 画像伸張方式決定部、46 画像伸張処理部、48 画像出力部。
10 image processing device, 12 bus, 14 CPU, 16 RAM, 18 image output interface, 20 display, 30 compressed image data, 32 image processing device output resolution, 40 header information analysis unit, 42 image resolution acquisition unit, 44 image expansion method A determination unit, an image expansion processing unit, and an image output unit.

Claims (7)

圧縮画像データを伸張可能な画像処理装置において、
前記圧縮画像データから画像の属性値を取得する手段と、
前記画像の属性値と前記画像処理装置の出力性能値との比較により、画像伸張方式を決定する画像伸張方式決定手段と、
前記画像伸張方式決定手段により決定された方式により、前記圧縮画像データを伸張する手段と、
を含むことを特徴とする画像処理装置。
In an image processing apparatus capable of decompressing compressed image data,
Means for obtaining an attribute value of an image from the compressed image data;
An image expansion method determining means for determining an image expansion method by comparing the attribute value of the image and the output performance value of the image processing device;
Means for expanding the compressed image data according to a method determined by the image expansion method determining means;
An image processing apparatus comprising:
請求項1に記載の画像処理装置において、
前記画像の属性値は、画像の解像度であり、
前記画像処理装置の出力性能値は、出力解像度である、
ことを特徴とする画像処理装置。
The image processing apparatus according to claim 1.
The attribute value of the image is the resolution of the image,
The output performance value of the image processing apparatus is an output resolution.
An image processing apparatus.
請求項2に記載の画像処理装置において、
前記圧縮画像データは、所定ブロック単位で直交変換符号化された圧縮画像データであり、
前記画像伸張方式決定手段は、前記画像の解像度と前記出力解像度との比較、及び、前記画像の解像度を前記出力解像度で割った商と前記圧縮画像データのブロックサイズとの比較により、前記圧縮画像データの伸張に用いる単位ブロックあたりのAC成分の画素数を決定する、
ことを特徴とする画像処理装置。
The image processing apparatus according to claim 2,
The compressed image data is compressed image data subjected to orthogonal transform coding in a predetermined block unit,
The image decompression method determining means is configured to compare the compressed image by comparing the resolution of the image with the output resolution, and comparing the quotient obtained by dividing the resolution of the image by the output resolution with the block size of the compressed image data. Determine the number of AC component pixels per unit block used for data decompression.
An image processing apparatus.
請求項1に記載の画像処理装置において、
前記画像の属性値は、画像の色空間におけるチャネル数であり、
前記画像処理装置の出力性能値は、出力色空間におけるチャネル数である、
ことを特徴とする画像処理装置。
The image processing apparatus according to claim 1.
The attribute value of the image is the number of channels in the color space of the image,
The output performance value of the image processing apparatus is the number of channels in the output color space.
An image processing apparatus.
請求項4に記載の画像処理装置において、
前記画像伸張方式決定手段は、前記画像の色空間におけるチャネル数が前記出力色空間におけるチャネル数よりも大きい場合に、前記圧縮画像データの所定ブロックのみを用いる、
ことを特徴とする画像処理装置。
The image processing apparatus according to claim 4.
The image expansion method determining means uses only a predetermined block of the compressed image data when the number of channels in the color space of the image is larger than the number of channels in the output color space.
An image processing apparatus.
圧縮画像データから画像の属性値を取得するステップと、
前記画像の属性値と画像処理装置の出力性能値との比較により、画像伸張方式を決定する画像伸張方式決定ステップと、
前記画像伸張方式決定ステップにより決定された方式により、前記圧縮画像データを伸張するステップと、
を含むことを特徴とするコンピュータの制御方法。
Obtaining image attribute values from the compressed image data;
An image expansion method determination step for determining an image expansion method by comparing the attribute value of the image and the output performance value of the image processing apparatus;
Expanding the compressed image data according to the method determined by the image expansion method determination step;
A computer control method comprising:
圧縮画像データから画像の属性値を取得する手段、
前記画像の属性値と画像処理装置の出力性能値との比較により、画像伸張方式を決定する画像伸張方式決定手段、及び、
前記画像伸張方式決定手段により決定された方式により、前記圧縮画像データを伸張する手段、
としてコンピュータを機能させるためのプログラム。
Means for obtaining image attribute values from compressed image data;
An image expansion method determining means for determining an image expansion method by comparing the attribute value of the image and the output performance value of the image processing apparatus; and
Means for expanding the compressed image data according to a method determined by the image expansion method determining means;
As a program to make the computer function.
JP2004362566A 2004-12-15 2004-12-15 Image processing apparatus, method of controlling computer and program Pending JP2006173993A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004362566A JP2006173993A (en) 2004-12-15 2004-12-15 Image processing apparatus, method of controlling computer and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004362566A JP2006173993A (en) 2004-12-15 2004-12-15 Image processing apparatus, method of controlling computer and program

Publications (1)

Publication Number Publication Date
JP2006173993A true JP2006173993A (en) 2006-06-29

Family

ID=36674279

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004362566A Pending JP2006173993A (en) 2004-12-15 2004-12-15 Image processing apparatus, method of controlling computer and program

Country Status (1)

Country Link
JP (1) JP2006173993A (en)

Similar Documents

Publication Publication Date Title
JP3848443B2 (en) Compressed digital data processing method
US20080267495A1 (en) Image compressing method and image compressing apparatus
JP2005303979A (en) Image processing apparatus, image processing method, and program causing computer to execute the method
CN102595109B (en) Decoding method and device for JPEG image
JP5375372B2 (en) Compression encoding apparatus and decoding apparatus
US8547591B2 (en) Image processing apparatus and program for generating size-reduced image data with reduction ratio of chroma component greater than luminance component
JP5338630B2 (en) Image processing method and program, and image processing apparatus
JP2002077914A (en) Image decoding apparatus and image decoding method
JP2009077183A (en) Data compression apparatus, data compression / decompression system, and data compression method
JPH05176173A (en) Picture data compression method
US7003165B2 (en) Image processor and image processing method for decompressing progressive-coded compressed image data
JP2006173993A (en) Image processing apparatus, method of controlling computer and program
JP5757904B2 (en) Image compression device
JP2009111821A (en) Image encoding device, image decoding device, image data processing device, image encoding method, and image decoding method
JP3979020B2 (en) Image processing apparatus for sampling compressed image
JPH06225213A (en) Method and device or processing picture
KR20060022894A (en) Apparatus and method for generating thumbnail image in mobile terminal
JPH08204957A (en) Image processing method
US20060023951A1 (en) Method and system for processing an input image and generating an output image having low noise
JP3989343B2 (en) Image processing apparatus, image processing method, and recording medium on which image processing method is recorded
JP2006246374A (en) Image compression apparatus, image compression method, and image compression program
JPH08265755A (en) Image processing apparatus and image processing method
JPH1075464A (en) Image compression device and image decompression device
JPH09186861A (en) Image processing method and apparatus
JP3795960B2 (en) Image display device