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

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

Info

Publication number
JP4926128B2
JP4926128B2 JP2008159541A JP2008159541A JP4926128B2 JP 4926128 B2 JP4926128 B2 JP 4926128B2 JP 2008159541 A JP2008159541 A JP 2008159541A JP 2008159541 A JP2008159541 A JP 2008159541A JP 4926128 B2 JP4926128 B2 JP 4926128B2
Authority
JP
Japan
Prior art keywords
image data
resolution
image
quantization
coefficient
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.)
Expired - Fee Related
Application number
JP2008159541A
Other languages
Japanese (ja)
Other versions
JP2010004162A (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 JP2008159541A priority Critical patent/JP4926128B2/en
Publication of JP2010004162A publication Critical patent/JP2010004162A/en
Application granted granted Critical
Publication of JP4926128B2 publication Critical patent/JP4926128B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Description

本発明は、画像データを圧縮する画像処理装置、画像読取装置、画像形成装置、画像処理装置を実現するコンピュータプログラム、コンピュータプログラムを記録した記録媒体、及び画像処理方法に関する。   The present invention relates to an image processing apparatus that compresses image data, an image reading apparatus, an image forming apparatus, a computer program that realizes the image processing apparatus, a recording medium that records the computer program, and an image processing method.

スキャナ又はデジタルカメラ等から入力した画像データは、JPEG(Joint Photographic Experts Group)等の非可逆圧縮方式により圧縮してデータ量が削減され、転送又は保存等の処理が行われる。JPEG圧縮方式では、量子化を行う際に用いられる量子化係数(量子化の細かさを表す数値)を変えることで、画像データのデータ量及び画質が変化する。例えば、量子化係数の値を小さくした場合、画像データの画質が向上し、データ量は大きくなる。また、量子化係数の値を大きくした場合、画像データの画質が低下し、データ量は小さくなる。即ち、画像データの圧縮処理を行う際、ユーザが設定した画像データの圧縮率及び画質等に基づいて、適切な量子化係数を決定する必要がある。   Image data input from a scanner, digital camera, or the like is compressed by an irreversible compression method such as JPEG (Joint Photographic Experts Group) to reduce the amount of data, and processing such as transfer or storage is performed. In the JPEG compression method, the data amount and image quality of image data change by changing the quantization coefficient (numerical value indicating the fineness of quantization) used when performing quantization. For example, when the value of the quantization coefficient is reduced, the image quality of the image data is improved and the data amount is increased. Further, when the value of the quantization coefficient is increased, the image quality of the image data is lowered and the data amount is reduced. That is, when performing compression processing of image data, it is necessary to determine an appropriate quantization coefficient based on the compression rate and image quality of the image data set by the user.

特許文献1には、複数の量子化係数を、ユーザが行う操作毎に割り当てておくことで、ユーザが行った操作に最適な量子化係数が選択されるようにした画像処理装置が開示されている。特許文献1により、ユーザが意識しなくても、ユーザが行った操作に適した量子化係数が自動的に設定されることで、画像データの圧縮を行うことが可能となった。
特開2001−24897号公報
Patent Document 1 discloses an image processing apparatus in which a plurality of quantization coefficients are allocated for each operation performed by the user so that the optimum quantization coefficient for the operation performed by the user is selected. Yes. According to Patent Document 1, it is possible to compress image data by automatically setting a quantization coefficient suitable for an operation performed by a user without being conscious of the user.
JP 2001-24897 A

しかしながら、特許文献1では、画像データの解像度が考慮されておらず、設定された圧縮パラメータ(量子化係数)によっては、画像データの高周波成分が除去される場合がある。高周波成分が除去された場合、画像中の細かな模様及び小さな文字などの情報が欠落してしまい、過度な画質劣化を引き起こすことになる。図9は、解像度と周波数成分との関係について説明するための模式図であり、(a)は原稿、(b)は600dpiの解像度で読み取った画像データ、(c)は300dpiの解像度で読み取った画像データである。なお(b)と(c)は画素の大きさを統一して現している。原稿は、副走査方向に平行な複数のラインパターンである。この原稿をスキャナ等で読み取った場合、600dpiより300dpiで読み取った場合の方が、ラインパターンの周期(画素の間隔)が狭く、周波数成分が高くなっている。即ち、解像度が低くなるにつれて画像データの周波数特性は高周波数側に移行していく。そのため、低い解像度で読み取られた画像データを圧縮する際、高周波成分を過度に除去する圧縮パラメータ(量子化係数)を用いてしまうと、画像の情報自体が失われ、極端な画質劣化を引き起こすことになる。たとえば(c)であれば、ラインパターンがぼやけて消え去ってしまうといった劣化が起こる。また同様に、写真などの細かな模様や、文字の細部、小さな文字、などにおいても、読み取られる解像度が低くなればなるほど、圧縮時の情報欠落が激しくなり、過度な画質劣化を引き起こす。   However, in Patent Document 1, the resolution of image data is not taken into consideration, and a high-frequency component of image data may be removed depending on a set compression parameter (quantization coefficient). When the high-frequency component is removed, information such as fine patterns and small characters in the image is lost, which causes excessive image quality degradation. FIG. 9 is a schematic diagram for explaining the relationship between resolution and frequency components. (A) is a document, (b) is image data read at a resolution of 600 dpi, and (c) is read at a resolution of 300 dpi. Image data. Note that (b) and (c) represent the same pixel size. The document is a plurality of line patterns parallel to the sub-scanning direction. When this original is read by a scanner or the like, the line pattern period (pixel interval) is narrower and the frequency component is higher when the original is read at 300 dpi than at 600 dpi. That is, as the resolution is lowered, the frequency characteristic of the image data shifts to the high frequency side. Therefore, when compressing image data read at a low resolution, if the compression parameter (quantization coefficient) that removes excessively high-frequency components is used, the image information itself is lost, causing extreme image quality degradation. become. For example, in the case of (c), deterioration occurs such that the line pattern is blurred and disappears. Similarly, even in a fine pattern such as a photograph, details of characters, small characters, etc., the lower the resolution to be read, the more information is lost during compression, causing excessive image quality deterioration.

本発明は斯かる事情に鑑みてなされたものであり、その目的とするところは、画像の解像度に応じて適切な量子化係数を設定することにより、画像データの画質を劣化させず、画像データを圧縮して容量を小さくすることができる画像処理装置、画像読取装置、画像形成装置、画像処理装置を実現するコンピュータプログラム、コンピュータプログラムを記録した記録媒体、及び画像処理方法を提供することにある。   The present invention has been made in view of such circumstances, and an object of the present invention is to set an appropriate quantization coefficient in accordance with the resolution of the image so that the image data quality is not deteriorated. Is to provide an image processing apparatus, an image reading apparatus, an image forming apparatus, a computer program for realizing the image processing apparatus, a recording medium on which the computer program is recorded, and an image processing method. .

本発明に係る画像処理装置は、画像データを構成する各画素に所定の周波数変換を行って画素値を周波数係数に変換し、変換した周波数係数を量子化係数に基づいて量子化し、量子化して得られる量子化データを符号化することで、前記画像データを圧縮する画像処理装置において、画像データの解像度を、互いに略直交する二方向夫々について取得する取得手段と、該取得手段が取得した夫々の解像度の内、低い方の解像度に応じて量子化係数を設定する設定手段と、該設定手段が設定した量子化係数を用いて、前記画像データを圧縮する圧縮手段とを特徴とする。 An image processing apparatus according to the present invention performs predetermined frequency conversion on each pixel constituting image data to convert a pixel value into a frequency coefficient, and quantizes and quantizes the converted frequency coefficient based on a quantization coefficient. resulting quantized data to encode the said image processing apparatus for compressing image data, respectively the resolution of the image data, obtaining means for obtaining the people two directions respectively substantially orthogonal to each other, said acquisition means acquires s The setting means for setting the quantization coefficient in accordance with the lower one of the resolutions of the image data, and the compression means for compressing the image data using the quantization coefficient set by the setting means.

本発明に係る画像処理装置は、異なる複数の量子化係数を解像度に対応付けて記憶する量子化係数記憶手段をさらに備え、前記設定手段は、前記取得手段が取得した解像度に基づいて、前記量子化係数記憶手段から抽出した量子化係数を設定するようにしてあることを特徴とする。   The image processing apparatus according to the present invention further includes a quantization coefficient storage unit that stores a plurality of different quantization coefficients in association with the resolution, and the setting unit is configured to perform the quantization based on the resolution acquired by the acquisition unit. The quantization coefficient extracted from the quantization coefficient storage means is set.

本発明に係る画像処理装置は、前記設定手段は、所定の演算式を用いて量子化係数を設定するようにしてあることを特徴とする。   The image processing apparatus according to the present invention is characterized in that the setting means sets a quantization coefficient using a predetermined arithmetic expression.

本発明に係る画像処理装置は、前記設定手段は、解像度の高,低に対応して量子化係数を大,小に設定するようにしてあることを特徴とする。   The image processing apparatus according to the present invention is characterized in that the setting means sets the quantization coefficient to large or small corresponding to high or low resolution.

本発明に係る画像処理装置は、前記設定手段は、前記取得手段が取得した解像度が所定値より低い場合、量子化係数を1に設定するようにしてあることを特徴とする。   The image processing apparatus according to the present invention is characterized in that the setting means sets a quantization coefficient to 1 when the resolution acquired by the acquisition means is lower than a predetermined value.

本発明に係る画像読取装置は、原稿を走査して読み取り画像データを生成する読取手段と、本発明の画像処理装置とを備えることを特徴とする。   An image reading apparatus according to the present invention includes a reading unit that scans a document and generates read image data, and the image processing apparatus of the present invention.

本発明に係る画像読取装置は、前記読取手段は、走査する速度を変更可能に構成してあることを特徴とする。   The image reading apparatus according to the present invention is characterized in that the reading unit is configured to change a scanning speed.

本発明に係る画像形成装置は、本発明の画像処理装置と、前記圧縮手段が圧縮した画像データを記憶する画像データ記憶手段と、該画像データ記憶手段に記憶された画像データを伸張する伸張手段と、前記伸張手段が伸張した画像データを出力する出力手段とを備えることを特徴とする。   An image forming apparatus according to the present invention includes an image processing apparatus according to the present invention, an image data storage unit that stores image data compressed by the compression unit, and an expansion unit that expands image data stored in the image data storage unit. And an output means for outputting the decompressed image data.

本発明に係る画像形成装置は、原稿を走査して読み取り画像データを生成する読取手段を備え、前記読取手段は、走査する速度を変更可能に構成してあることを特徴とする。   An image forming apparatus according to the present invention includes a reading unit that scans a document and generates read image data, and the reading unit is configured to be capable of changing a scanning speed.

本発明に係るコンピュータプログラムは、コンピュータに、画像データを構成する各画素に所定の周波数変換を行って画素値を周波数係数に変換させ、変換させた周波数係数を量子化係数に基づいて量子化し、量子化して得られる量子化データを符号化させることで、前記画像データを圧縮させるコンピュータプログラムにおいて、前記コンピュータを、画像データの解像度を、互いに略直交する二方向夫々について取得する取得手段と、取得した夫々の解像度の内、低い方の解像度に応じて量子化係数を設定する設定手段、及び、該設定手段が設定した量子化係数を用いて、前記画像データを圧縮する圧縮手段として機能させることを特徴とする。 A computer program according to the present invention causes a computer to perform predetermined frequency conversion on each pixel constituting image data to convert a pixel value into a frequency coefficient, quantize the converted frequency coefficient based on a quantization coefficient, In a computer program for compressing the image data by encoding quantized data obtained by quantization, an acquisition unit that acquires the resolution of the image data in each of two directions substantially orthogonal to each other ; The setting means for setting the quantization coefficient in accordance with the lower resolution of the resolutions, and the compression means for compressing the image data using the quantization coefficient set by the setting means. It is characterized by.

本発明に係る記録媒体は、本発明に係るコンピュータプログラムが記録されていることを特徴とする。   The recording medium according to the present invention is recorded with the computer program according to the present invention.

本発明に係る画像処理方法は、画像データを構成する各画素に所定の周波数変換を行って画素値を周波数係数に変換し、変換した周波数係数を量子化係数に基づいて量子化し、量子化して得られる量子化データを符号化することで、前記画像データを圧縮する画像処理方法において、画像データの解像度を、互いに略直交する二方向夫々について取得するステップと、取得した夫々の解像度の内、低い方の解像度に応じて量子化係数を設定するステップと、設定した量子化係数を用いて、前記画像データを圧縮するステップとを備えることを特徴とする。 The image processing method according to the present invention performs predetermined frequency conversion on each pixel constituting image data to convert a pixel value into a frequency coefficient, and quantizes and quantizes the converted frequency coefficient based on the quantization coefficient. In the image processing method for compressing the image data by encoding the obtained quantized data, the step of acquiring the resolution of the image data in each of two directions substantially orthogonal to each other , and among each of the acquired resolutions, The method includes a step of setting a quantization coefficient in accordance with a lower resolution, and a step of compressing the image data using the set quantization coefficient.

本発明によれば、画像データを圧縮する際、画像データの解像度に応じた量子化係数を用いて圧縮を行う。そのため、どのような解像度の画像データに対しても、良好な画質の維持とデータ量の削減とのバランスを最適に保ちながら圧縮することが可能な画像処理装置を提供することができる。特に、画像データにおける文字の判読性や細かな模様の視認性などといった画質の維持と、データ量の削減(すなわち圧縮率の維持)との両立を図ることが可能となる。
また本発明では、画像データの互いに略直交する二方向夫々の解像度を取得し、低い方の解像度に基づいて量子化係数を設定する。そのため、両方向の解像度が異なる場合であっても、低い方の解像度に合わせた最適な設定で画像データを圧縮することができ、小さな文字や細かな模様などの情報が欠落するといった画質劣化を的確に防ぐことが可能な画像処理装置を提供することができる。
According to the present invention, when compressing image data, the compression is performed using a quantization coefficient corresponding to the resolution of the image data. Therefore, it is possible to provide an image processing apparatus capable of compressing image data of any resolution while maintaining an optimal balance between maintaining good image quality and reducing the amount of data. In particular, it is possible to achieve both the maintenance of image quality such as the legibility of characters and the visibility of fine patterns in image data and the reduction of the data amount (that is, the maintenance of the compression rate).
In the present invention, the resolution of each of the image data in two directions substantially orthogonal to each other is acquired, and the quantization coefficient is set based on the lower resolution. For this reason, even if the resolutions in both directions are different, the image data can be compressed with the optimum settings for the lower resolution, and image quality degradation such as missing information such as small characters and fine patterns can be accurately obtained. It is possible to provide an image processing apparatus that can be prevented.

また本発明によれば、異なる複数の量子化係数を解像度に対応付けて記憶しておき、画像データの解像度に基づいてそれに対応した量子化係数を抽出して設定する。そのため、さまざまな解像度の画像データに対してそれぞれ最適な画質が得られるよう調整された量子化係数を予め保持しておくことができ、それを用いて画像データを圧縮することにより、常に良好な画質を得ることが可能な画像処理装置を提供することができる。   According to the present invention, a plurality of different quantization coefficients are stored in association with the resolution, and the corresponding quantization coefficient is extracted and set based on the resolution of the image data. Therefore, it is possible to hold in advance the quantization coefficient adjusted to obtain the optimum image quality for image data of various resolutions, and compressing the image data using the same makes it always good. An image processing apparatus capable of obtaining image quality can be provided.

また本発明によれば、演算式を用いて量子化係数を設定する。そのため、予め複数の量子化係数を準備し保持しておく必要がなく、画像データの解像度に応じて自動的に最適な量子化係数を算出して設定することが可能な画像処理装置を提供することができる。またこれにより、画像データの解像度に応じて滑らかに量子化係数を変化させることができるため、解像度の少しの違いにより量子化係数が大きく切り替わって画質が急激に変化してしまうといった好ましくない現象を防ぐことができる。   According to the present invention, the quantization coefficient is set using an arithmetic expression. Therefore, it is not necessary to prepare and hold a plurality of quantization coefficients in advance, and an image processing apparatus capable of automatically calculating and setting an optimal quantization coefficient according to the resolution of image data is provided. be able to. This also allows the quantization coefficient to be changed smoothly in accordance with the resolution of the image data, so that an undesirable phenomenon such as a sharp change in image quality due to a large change in the quantization coefficient due to a slight difference in resolution. Can be prevented.

また本発明によれば、解像度が低く(又は高く)なるにつれ、量子化係数を小さく(又は大きく)設定する。そのため、解像度が低い画像データに対しては、細かく量子化を行うことで画像データの画質を維持するような圧縮を行い、解像度が高い画像データに対しては、粗く量子化を行うことで画像データのデータ量を大幅に削減するような圧縮を行うことが可能な画像処理装置を提供することができる。またこれにより、画像データにおける文字の判読性や細かな模様の視認性などの画質の維持と、データ量の削減(すなわち圧縮率の維持)との両立を図ることができる。   Further, according to the present invention, the quantization coefficient is set to be smaller (or larger) as the resolution becomes lower (or higher). Therefore, for image data with low resolution, compression is performed to maintain the image quality of the image data by performing fine quantization, and for image data with high resolution, the image is processed by coarse quantization. It is possible to provide an image processing apparatus capable of performing compression that significantly reduces the amount of data. As a result, it is possible to achieve both the maintenance of image quality such as the legibility of characters and the visibility of fine patterns in image data and the reduction of the data amount (that is, the maintenance of the compression rate).

また本発明によれば、解像度が所定値よりも低い場合、量子化係数を1に設定する。そのため、解像度が極端に低い画像データに対して、小さな文字や細かな模様などの情報の欠落を最大限に防ぎ、良好な画質の維持を図ることが可能な画像処理装置を提供することができる。   According to the present invention, when the resolution is lower than the predetermined value, the quantization coefficient is set to 1. Therefore, it is possible to provide an image processing apparatus that can prevent loss of information such as small characters and fine patterns to the maximum extent and maintain good image quality for image data with extremely low resolution. .

また本発明によれば、原稿を走査して読み取った画像データに対して、画像データの解像度に応じた適切な量子化係数を設定し、それを用いて画像データを圧縮することができる。そのため、良好な画質で、かつ、データ量の小さい画像データを得ることが可能な画像読取装置を提供することができる。   Further, according to the present invention, it is possible to set an appropriate quantization coefficient corresponding to the resolution of the image data for the image data read by scanning the document, and to compress the image data using the set quantization coefficient. Therefore, it is possible to provide an image reading apparatus that can obtain image data with good image quality and a small amount of data.

また本発明によれば、原稿を走査する速度が可変である。そのため、原稿の走査速度に応じて読み取られる画像データの解像度(特に副走査方向の解像度)が変わる場合であっても、常に適切な量子化係数を用いて画像データを圧縮することが可能な画像読取装置を提供することができる。   According to the present invention, the scanning speed of the original is variable. For this reason, even when the resolution of image data to be read (particularly the resolution in the sub-scanning direction) changes according to the scanning speed of the document, the image data can always be compressed using an appropriate quantization coefficient. A reader can be provided.

また本発明によれば、画像データの解像度に応じて適切な量子化係数を設定し、それを用いて画像データを圧縮したのち記憶し、さらに、記憶された画像データを伸張して出力する。そのため、どのような解像度の画像データに対しても、良好な画質を保ったままデータ量を削減して記憶することが可能で、さらに、圧縮による画質劣化の少ない良好な出力画像を得ることが可能な画像形成装置を提供することができる。またこれにより、データ量の大きな画像データに代わって、適切な画質で圧縮された画像データを記憶しておくことができるため、画像データの記憶に必要な容量が削減でき、さらに、画像データの書込みや読出しなどに必要な伝送時間を短縮することができる。   Further, according to the present invention, an appropriate quantization coefficient is set according to the resolution of the image data, the image data is compressed and stored using it, and the stored image data is expanded and output. Therefore, image data of any resolution can be stored with a reduced amount of data while maintaining good image quality, and a good output image with little deterioration in image quality due to compression can be obtained. A possible image forming apparatus can be provided. In addition, this makes it possible to store image data compressed with an appropriate image quality in place of image data with a large amount of data, thereby reducing the capacity required for storing image data and further reducing the amount of image data. Transmission time required for writing and reading can be shortened.

また本発明によれば、原稿を走査して読み取った画像データに対して、常に適切な量子化係数を設定し、それを用いて画像データを圧縮したのち記憶し、さらに、記憶された画像データを伸張して出力する。そのため、原稿を走査することによってさまざまな解像度で読み取られた画像データに対しても、常に良好な画質を維持したままデータ量を削減して記憶することが可能で、さらに、圧縮による画質の劣化が少ない良好な出力画像を得ることが可能な画像形成装置を提供することができる。   According to the present invention, an appropriate quantization coefficient is always set for image data read by scanning a document, and the image data is compressed and stored using the quantization coefficient. Is decompressed and output. For this reason, image data scanned at various resolutions by scanning a document can be stored with a reduced amount of data while maintaining good image quality at all times. Therefore, it is possible to provide an image forming apparatus capable of obtaining a good output image with a small amount of image data.

また本発明によれば、コンピュータによって前記画像処理装置を実現することができる。   According to the invention, the image processing apparatus can be realized by a computer.

また本発明によれば、パーソナルコンピュータなどの汎用のコンピュータにCD−ROM(Compact Disc−Read Only Memory)などの記録媒体を介して、あるいはネットワークからのダウンロードによりプログラムを読み込ませて、画像データに対し解像度に応じた適切な圧縮を施すことが可能となる。また、DSP(Digital Signal Processor)などでソフト処理を行うデジタル複写機や複合機に対しても同様に、フラッシュメモリや書き換え可能な記録媒体にプログラムを読み込ませて、画像データに対し解像度に応じた適切な圧縮処理を施すことが可能となる。   Further, according to the present invention, a general-purpose computer such as a personal computer is read through a recording medium such as a CD-ROM (Compact Disc-Read Only Memory) or downloaded from a network, and the image data is read. Appropriate compression according to the resolution can be performed. Similarly, for digital copiers and multi-function peripherals that perform software processing with a DSP (Digital Signal Processor) or the like, the program is read into a flash memory or a rewritable recording medium, and the image data according to the resolution. Appropriate compression processing can be performed.

以下、本発明を好適な実施形態を示す図面に基づいて詳述する。   Hereinafter, the present invention will be described in detail with reference to the drawings illustrating preferred embodiments.

(実施形態1)
図1は、本発明に係る画像処理装置である圧縮装置とそれを備える画像読取装置との構成を示すブロック図である。本実施形態に係る画像読取装置は、画像入力装置1、圧縮装置2、インターフェース3を備えており、本実施形態に係る圧縮装置2は、画像入力装置1及びインターフェース3の間に配設され、それぞれに接続されている。なお、画像読取装置の動作については、CPUなどのコントローラー(不図示)が使用者の指示に則り制御するものとする。
(Embodiment 1)
FIG. 1 is a block diagram illustrating a configuration of a compression device that is an image processing device according to the present invention and an image reading device including the compression device. The image reading apparatus according to the present embodiment includes an image input apparatus 1, a compression apparatus 2, and an interface 3. The compression apparatus 2 according to the present embodiment is disposed between the image input apparatus 1 and the interface 3, Connected to each. Note that the operation of the image reading apparatus is controlled by a controller (not shown) such as a CPU in accordance with a user instruction.

画像入力装置1は、読取素子を一方向(以下、主走査方向と言う)に並べたCCDラインセンサ(読取手段)1aを備えるスキャナ(又はデジタルカメラ)であって、画像入力装置1にセットされた原稿から画像データを読み取る。例えば、画像入力装置1は、図示しない光源から画像入力装置1にセットされた原稿に対して光を照射し、主走査方向に直交する方向(以下、副走査方向と言う)に相対移動させたCCDラインセンサ1aにより原稿から反射した反射光を受光し、反射光を赤(R)、緑(G)、青(B)に色分解された電気信号(以下、RGBアナログ信号と言う)に変換する。画像入力装置1は、電気信号を圧縮装置2に出力する。   The image input apparatus 1 is a scanner (or a digital camera) including a CCD line sensor (reading means) 1a in which reading elements are arranged in one direction (hereinafter referred to as a main scanning direction), and is set in the image input apparatus 1. Read image data from the original. For example, the image input apparatus 1 irradiates light on a document set on the image input apparatus 1 from a light source (not shown), and relatively moves in a direction orthogonal to the main scanning direction (hereinafter referred to as a sub-scanning direction). The CCD line sensor 1a receives reflected light reflected from the document, and converts the reflected light into an electrical signal (hereinafter referred to as RGB analog signal) that is color-separated into red (R), green (G), and blue (B). To do. The image input device 1 outputs an electrical signal to the compression device 2.

この場合、主走査方向の解像度は、CCDラインセンサ1aの受光素子の数によって決まり、例えば1インチあたり600個の受光素子が配置されていれば、主走査方向の解像度は600dpiとなる。一方、副走査方向の解像度は、CCDラインセンサ1aの移動速度によって決まる。例えば、一定の基準速度で移動しながら1ライン毎に0.0423mmの間隔で読み取るようタイミング調整されていれば、副走査方向の解像度は600dpiとなる。これに対して、基準速度の2倍の速さで移動させれば、1ライン毎の読み取り間隔は2倍の長さ(0.0846mm)になるため、副走査方向の解像度は300dpiとなる。逆に、基準速度の1/2倍の速さで移動させれば、1ライン毎の読み取り間隔は1/2倍の長さ(0.0212mm)になるため、副走査方向の解像度は1200dpiとなる。このように、一般的なスキャナでは、CCDラインセンサの移動速度を速くすると副走査方向の解像度は低く(読み取り間隔は粗く)なり、遅くすると解像度は高く(読み取り間隔は細かく)なる。なお、移動速度は前記コントローラーが制御するものとし、コントローラーは、使用者に指示された解像度に応じて移動速度を変更する。たとえば、使用者は画像入力装置1の原稿設置台(不図示)に原稿を置き、操作ボタン(不図示)を操作することで、原稿を読み取る動作を指示し、さらにどのような解像度(または基準解像度に対する変倍率であってもよい)で読み取るのかを指示する。そしてコントローラーは、使用者が指示した解像度に応じてCCDラインセンサの移動速度を決定し、決定した移動速度で原稿の読み取りを行うよう画像入力装置1を動作させる。   In this case, the resolution in the main scanning direction is determined by the number of light receiving elements of the CCD line sensor 1a. For example, if 600 light receiving elements are arranged per inch, the resolution in the main scanning direction is 600 dpi. On the other hand, the resolution in the sub-scanning direction is determined by the moving speed of the CCD line sensor 1a. For example, if the timing is adjusted to read at intervals of 0.0423 mm for each line while moving at a constant reference speed, the resolution in the sub-scanning direction is 600 dpi. On the other hand, if it is moved at twice the reference speed, the reading interval for each line will be twice as long (0.0846 mm), so the resolution in the sub-scanning direction will be 300 dpi. Conversely, if it is moved at a speed that is ½ times the reference speed, the reading interval for each line will be ½ times the length (0.0212 mm), so the resolution in the sub-scanning direction is 1200 dpi. Become. As described above, in a general scanner, when the moving speed of the CCD line sensor is increased, the resolution in the sub-scanning direction is lowered (the reading interval is coarse), and when it is delayed, the resolution is increased (the reading interval is fine). Note that the moving speed is controlled by the controller, and the controller changes the moving speed according to the resolution instructed by the user. For example, the user places an original on an original setting table (not shown) of the image input apparatus 1 and operates an operation button (not shown) to instruct an operation of reading the original, and to determine what resolution (or reference) It may be a variable magnification with respect to the resolution). Then, the controller determines the moving speed of the CCD line sensor according to the resolution instructed by the user, and operates the image input apparatus 1 so as to read the document at the determined moving speed.

インターフェース3は、例えばI/Oポートであって図示しないパーソナルコンピュータ(以下、パソコンと言う)等が接続されている。インターフェース3は、圧縮装置2においてJPEG圧縮処理が行われた画像データを、接続されたパソコンへ転送する。パソコンは、ディスプレイ又はプリンタ等の出力装置を有しており、圧縮装置2でJPEG圧縮された画像データは、出力装置から出力される。   The interface 3 is, for example, an I / O port to which a personal computer (hereinafter referred to as a personal computer) (not shown) is connected. The interface 3 transfers the image data subjected to the JPEG compression process in the compression device 2 to the connected personal computer. The personal computer has an output device such as a display or a printer, and the image data JPEG compressed by the compression device 2 is output from the output device.

圧縮装置2は、A/D変換部20、シェーディング補正部21、入力処理部22、JPEG圧縮部(圧縮手段)23、解像度取得部(取得手段)24、及びパラメータ設定部(設定手段)25等を備える。また、圧縮装置2は、フラッシュメモリ及びEPROM(Erasable Programmable ROM)の記憶部(量子化係数記憶手段)27を備え、記憶部27に複数の量子化テーブルを有する量子化テーブルデータベース(以下、量子化テーブルDBと言う)26が予め格納されている。   The compression device 2 includes an A / D conversion unit 20, a shading correction unit 21, an input processing unit 22, a JPEG compression unit (compression unit) 23, a resolution acquisition unit (acquisition unit) 24, a parameter setting unit (setting unit) 25, and the like. Is provided. The compression device 2 includes a flash memory and an EPROM (Erasable Programmable ROM) storage unit (quantization coefficient storage unit) 27, and the storage unit 27 includes a plurality of quantization tables (hereinafter referred to as quantization tables). 26 is referred to as table DB).

A/D変換部20は、画像入力装置1から入力されたRGBアナログ信号をデジタル信号(以下、RGB信号と言う)に変換する。シェーディング補正部21は、A/D変換部20において変換されたRGB信号から歪みを取り除く。RGB信号に含まれる歪みとは、例えば、画像データを読み取る際に原稿に照射する光により発生する照明ムラである。入力処理部22は、シェーディング補正部21において歪みが除去されたRGB信号のそれぞれに対してガンマ補正を行う。ガンマ補正とは、出力画像が所望の階調となるよう、画像データに対して階調の補正を行う処理である。   The A / D converter 20 converts the RGB analog signal input from the image input device 1 into a digital signal (hereinafter referred to as RGB signal). The shading correction unit 21 removes distortion from the RGB signal converted by the A / D conversion unit 20. The distortion included in the RGB signal is, for example, illumination unevenness caused by light irradiating a document when reading image data. The input processing unit 22 performs gamma correction on each of the RGB signals from which distortion has been removed by the shading correction unit 21. Gamma correction is a process for correcting the gradation of image data so that the output image has a desired gradation.

解像度取得部24は、前記コントローラー(不図示)から、原稿を読み取った際の主走査方向、及び副走査方向の解像度の情報を取得し、取得した解像度をパラメータ設定部25へ出力する。   The resolution acquisition unit 24 acquires resolution information in the main scanning direction and the sub-scanning direction when the document is read from the controller (not shown), and outputs the acquired resolution to the parameter setting unit 25.

ここでは、圧縮装置2に入力する画像データとして、CCDラインセンサ1aを有したスキャナで読み取った画像データを取り上げているが、それ以外の例として、デジタルカメラで読み取った画像データを入力してもよいし、さらに別の例として、ネットワークを介してダウンロードした画像データを入力してもよい。デジタルカメラから画像データを取り込む場合、カメラの有効画素数(1024×768画素、800×600画素等)の情報を用いて、有効画素数を解像度とみなして取り扱う。例えば、1024×768dpi、800×600dpiのように、有効画素数をそのまま解像度の単位に置き換えてもよいし、所定の演算を行って解像度の単位に置き換えてもよい。また、ダウンロードした画像データを取り込む場合は、画像データのヘッダ等に書き込まれた解像度の情報を用いる。例えば、TIFF(Tagged Image File Format)形式の画像データの場合、ヘッダに主走査方向及び副走査方向の解像度がそれぞれ書き込まれてあるので、その解像度の情報をそのまま利用することが可能である。また、TIFF形式の画像データをビットマップ形式に変換した後、圧縮装置2に入力すればよい。なお、これらの例に関しても、装置全体の動作の制御はコントローラー(不図示)が行うものとし、解像度取得部24は、解像度の情報をコントローラーから取得するものとする。   Here, image data read by a scanner having a CCD line sensor 1a is taken up as image data to be input to the compression device 2, but as another example, image data read by a digital camera may be input. As another example, image data downloaded via a network may be input. When capturing image data from a digital camera, the information regarding the number of effective pixels of the camera (1024 × 768 pixels, 800 × 600 pixels, etc.) is used and the number of effective pixels is regarded as the resolution. For example, the effective pixel number may be directly replaced with the resolution unit, such as 1024 × 768 dpi or 800 × 600 dpi, or may be replaced with the resolution unit by performing a predetermined calculation. Also, when downloading downloaded image data, resolution information written in the header of the image data is used. For example, in the case of image data in the TIFF (Tagged Image File Format) format, the resolution in the main scanning direction and the sub-scanning direction is written in the header, so that information on the resolution can be used as it is. Further, the image data in the TIFF format may be converted into the bitmap format and then input to the compression device 2. In these examples as well, the operation of the entire apparatus is controlled by a controller (not shown), and the resolution acquisition unit 24 acquires resolution information from the controller.

パラメータ設定部25は、解像度取得部24が取得した解像度に応じて最適な量子化テーブルを、量子化テーブルDB26から抽出する。なお、パラメータ設定部25は、副走査方向の解像度、又は、主走査方向及び副走査方向の解像度のうち粗い(低い)方の解像度に応じた量子化テーブルを、後述の設定テーブルを用いて抽出する。上述のようにCCDラインセンサ1aによる走査速度を変更することで、副走査方向の解像度を変更することができ、主走査方向の解像度が一定であるような場合、副走査方向の解像度を基準に量子化テーブルを抽出することで、入力解像度の変更に応じた適切な量子化テーブルを設定することができる。また、主走査方向と副走査方向の解像度のうち、低いほうの解像度を基準に量子化テーブルを抽出すれば、小さな文字や写真の中の細かな模様などの情報が欠落するといった画質劣化を、より的確に防ぐ量子化テーブルを設定することができる。この結果、良好な画質の維持と圧縮率の向上とを両立することができる。パラメータ設定部25は、量子化テーブルDB26から抽出した量子化テーブルをJPEG圧縮部23に設定する。   The parameter setting unit 25 extracts an optimal quantization table from the quantization table DB 26 according to the resolution acquired by the resolution acquisition unit 24. Note that the parameter setting unit 25 extracts a quantization table corresponding to the resolution in the sub-scanning direction or the coarser (lower) resolution of the resolutions in the main scanning direction and the sub-scanning direction using a setting table described later. To do. As described above, the resolution in the sub-scanning direction can be changed by changing the scanning speed of the CCD line sensor 1a. When the resolution in the main scanning direction is constant, the resolution in the sub-scanning direction is used as a reference. By extracting the quantization table, it is possible to set an appropriate quantization table according to the change of the input resolution. In addition, if the quantization table is extracted based on the lower resolution among the resolutions in the main scanning direction and the sub-scanning direction, image quality deterioration such as missing information such as small characters and fine patterns in the photo, It is possible to set a quantization table to prevent more accurately. As a result, it is possible to achieve both maintaining good image quality and improving the compression rate. The parameter setting unit 25 sets the quantization table extracted from the quantization table DB 26 in the JPEG compression unit 23.

JPEG圧縮部23は、パラメータ設定部25により設定された量子化テーブルを用いて、RGB信号を符号化する。   The JPEG compression unit 23 encodes the RGB signal using the quantization table set by the parameter setting unit 25.

図2は、JPEG圧縮部23の構成を示すブロック図である。JPEG圧縮部23は、色空間変換部231、サンプリング部232、DCT変換部233、量子化部234、ハフマン符号化部235、及び、ヘッダ情報生成部236等を有している。   FIG. 2 is a block diagram illustrating a configuration of the JPEG compression unit 23. The JPEG compression unit 23 includes a color space conversion unit 231, a sampling unit 232, a DCT conversion unit 233, a quantization unit 234, a Huffman encoding unit 235, a header information generation unit 236, and the like.

色空間変換部231は、RGB信号をYCbCr信号(Y:輝度信号、Cb:青方向の色相信号、Cr:赤方向の色相信号)に変換する。サンプリング部232は、色空間変換部231が変換したYCbCr信号のうち色相信号に対して所定のサンプリング比(例えば、4(Y):4(Cb):4(Cr))に応じて画素を間引く処理を行う。さらに、YCbCr信号それぞれについて、水平方向に8要素、垂直方向に8要素の8行8列の画素から構成されるブロックに分割する。   The color space conversion unit 231 converts the RGB signal into a YCbCr signal (Y: luminance signal, Cb: blue hue signal, Cr: red hue signal). The sampling unit 232 thins out pixels according to a predetermined sampling ratio (for example, 4 (Y): 4 (Cb): 4 (Cr)) with respect to the hue signal among the YCbCr signals converted by the color space conversion unit 231. Process. Further, each YCbCr signal is divided into blocks composed of 8 rows and 8 columns of pixels of 8 elements in the horizontal direction and 8 elements in the vertical direction.

DCT変換部233は、サンプリング部232が分割したブロック単位にDCT変換を行い、各ブロックを周波数成分の係数である周波数係数に変換する。なお、8行8列の整数値において、1行1列目のデータが基準データとなるDC成分(直流成分)、その他のデータがAC成分(交流成分)を示している。量子化部234は、DCT変換部233で得られた8行8列の周波数係数の各要素を、パラメータ設定部25により設定された量子化テーブルを用いて量子化する処理を行う。後に詳述するが、量子化テーブルは、輝度信号用と色相信号用との2種類のテーブルを有しており、各テーブルは8行8列の計64個の整数値(以下、量子化係数と言う)で表される。量子化部234は、DCT後の8行8列の周波数係数の各要素を量子化テーブルの対応する各要素で除算することで量子化する。   The DCT conversion unit 233 performs DCT conversion for each block divided by the sampling unit 232, and converts each block into a frequency coefficient that is a coefficient of a frequency component. In the integer value of 8 rows and 8 columns, the data in the first row and the first column indicate the DC component (direct current component) as the reference data, and the other data indicates the AC component (alternating current component). The quantization unit 234 performs a process of quantizing each element of the 8-by-8 frequency coefficient obtained by the DCT conversion unit 233 using the quantization table set by the parameter setting unit 25. As will be described in detail later, the quantization table has two types of tables for luminance signals and hue signals, and each table has a total of 64 integer values of 8 rows and 8 columns (hereinafter referred to as quantization coefficients). ). The quantization unit 234 performs quantization by dividing each element of the frequency coefficient of 8 rows and 8 columns after DCT by the corresponding element of the quantization table.

ハフマン符号化部235は、量子化部234において量子化されたYCbCr信号(量子化データ)を、一列に並べ直し、所定のハフマン符号テーブルに基づいて符号化処理を行い、符号データを生成する。ハフマン符号テーブルの値は、特に制限するものではなく、一般的に広く用いられている値を用いるものとする。ヘッダ情報生成部236は、ハフマン符号化部235で符号化された符号データの先頭に、画像データ単位(原稿1ページ単位)に生成したヘッダ情報を付加する。これにより、画像データの規格に準拠した形式のJPEGコードが出力される。なお、ヘッダ情報には画像データの幅及び高さ、圧縮時に用いた量子化テーブル、ハフマン符号化テーブル、並びにサンプリング比等の情報が規定のマーカー記号で区分けされ記述される。ヘッダ情報生成部236が出力したJPEGコードは、インターフェース3に接続されたパソコン等へ転送される。   The Huffman encoder 235 rearranges the YCbCr signals (quantized data) quantized by the quantizer 234 in a line, performs encoding processing based on a predetermined Huffman code table, and generates code data. The values in the Huffman code table are not particularly limited, and generally used values are used. The header information generation unit 236 adds header information generated in units of image data (one page of document) to the head of the code data encoded by the Huffman encoding unit 235. As a result, a JPEG code in a format compliant with the image data standard is output. In the header information, information such as the width and height of the image data, the quantization table used at the time of compression, the Huffman encoding table, and the sampling ratio are classified and described by a predetermined marker symbol. The JPEG code output from the header information generation unit 236 is transferred to a personal computer or the like connected to the interface 3.

図3及び図4は、量子化テーブルを模式的に示す図である。   3 and 4 are diagrams schematically showing the quantization table.

量子化テーブルは、輝度信号用と色相信号用との2種類のテーブルを有しており、各テーブルは8行8列の計64個の量子化係数で表される。量子化テーブルは、8行8列の左上(1行1列目)をDC成分の周波数係数に対する量子化係数、右下に向かって水平方向及び垂直方向共に高周波成分の周波数係数に対する量子化係数を有する。量子化テーブルは、複数で量子化テーブルDB26を構成し、記憶部27に予め複数種類記憶されている。そして、量子化テーブルDB26から解像度に応じた量子化テーブルが抽出される。本実施形態では、量子化テーブルDB26には、各周波数係数に対応する量子化係数が異なるセットAからセットEまでの量子化テーブル、及び、量子化係数が全て「1」の量子化テーブルが記憶されている。なお、セットAからセットEまでの量子化テーブルは、それぞれ所定の解像度の画像データを圧縮した際に最適な画質と圧縮率が得られるよう予め調整されたものである。このように、さまざまな解像度の画像データに対してそれぞれ最適な画質が得られるよう調整された量子化係数を予め保持しておき、それを用いて画像データを圧縮することにより、常に良好な画質を得ることができる。   The quantization table has two types of tables for luminance signal and hue signal, and each table is represented by a total of 64 quantization coefficients of 8 rows and 8 columns. In the quantization table, the upper left of 8 rows and 8 columns (first row and first column) is the quantization coefficient for the frequency coefficient of the DC component, and the quantization coefficient for the frequency coefficient of the high frequency component in the horizontal and vertical directions toward the lower right. Have. A plurality of quantization tables constitute a quantization table DB 26, and a plurality of types are stored in the storage unit 27 in advance. Then, a quantization table corresponding to the resolution is extracted from the quantization table DB 26. In the present embodiment, the quantization table DB 26 stores a quantization table from set A to set E having different quantization coefficients corresponding to each frequency coefficient, and a quantization table in which all the quantization coefficients are “1”. Has been. The quantization tables from set A to set E are adjusted in advance so as to obtain optimum image quality and compression rate when image data having a predetermined resolution is compressed. As described above, the quantization coefficient adjusted so as to obtain the optimum image quality for image data with various resolutions is held in advance, and the image data is compressed using the quantization coefficient so that the image quality is always good. Can be obtained.

図5は、量子化テーブルを設定する際に用いられる設定テーブルを模式的に示す図である。   FIG. 5 is a diagram schematically illustrating a setting table used when setting the quantization table.

図5に示す設定テーブルは、解像度R[dpi]と、量子化テーブルとが対応付けられている。例えば、解像度が400[dpi]の場合、セットBの量子化テーブルが設定される。また、解像度が300[dpi]より小さい場合、全て「1」の量子化係数をもつ量子化テーブルが設定される。図5の設定テーブルでは、解像度が粗く(低く)なるにつれ、量子化係数が小さい量子化テーブルが設定されるようになっている。そのため、解像度が低い画像データに対しては、細かく量子化を行うことで画像データの画質を維持するような圧縮を行い、解像度が高い画像データに対しては、粗く量子化を行うことで画像データのデータ量を大幅に削減するような圧縮を行うことができる。またこれにより、画像データにおける文字の判読性や細かな模様の視認性などの画質の維持と、データ量の削減(すなわち圧縮率の維持)との両立を図ることができる。また、解像度が所定値(300[dpi])より小さい場合には、全て「1」の量子化係数をもつ量子化テーブルが設定される。そのため、解像度が極端に低い画像データを圧縮する場合であっても、高周波成分の情報の欠落を最大限に防ぐことができ、小さな文字や細かな模様などの再現性を十分に維持した良好な画質を得ることができる。例えば、原稿に小さい文字を含んでいる場合、低い解像度で読み取ると鮮明な画像データが得られず、さらにそのような画像データに対して、高周波成分の情報を大幅に欠落させるような量子化テーブル(すなわち量子化係数が大きい量子化テーブル)を用いて圧縮を行うと、出力画像の文字の判読性が極端に失われてしまう。文字に限らず、原稿に細かな模様がある写真などを含んでいる場合も、模様の視認性が極端に失われてしまう。そのため、解像度が低い場合は、量子化係数が小さい量子化テーブルを設定することにより、高周波成分の情報の欠落を抑制することができ、出力画像の文字の判読性や模様の視認性といった画質を維持することができる。また、解像度が極端に低い場合は、最も情報の欠落が少ない量子化テーブル(すなわち量子化係数がすべて1の量子化テーブル)を設定することにより、出力画像の文字の判読性や模様の視認性が失われるといった画質劣化を最大限に抑制することができる。なお、量子化係数が1の量子化テーブルを設定する解像度、及び各量子化テーブルを設定する解像度は、例えば、細かな文字の判読性が保てる限界(文字が読めるか否か)を見極めて決定することができる。一方、高い解像度で読み取る場合は、鮮明な画像データが得られるため、高周波成分の情報を欠落させるような圧縮を行っても、文字の判読性や模様の視認性はほとんど失われない。そのため、量子化係数が大きい量子化テーブルを設定することにより、圧縮率の向上を実現することができる。   In the setting table illustrated in FIG. 5, the resolution R [dpi] is associated with the quantization table. For example, when the resolution is 400 [dpi], the quantization table of set B is set. When the resolution is smaller than 300 [dpi], a quantization table having quantization coefficients of “1” is set. In the setting table of FIG. 5, a quantization table having a small quantization coefficient is set as the resolution becomes coarse (lower). Therefore, for image data with low resolution, compression is performed to maintain the image quality of the image data by performing fine quantization, and for image data with high resolution, the image is processed by coarse quantization. Compression that significantly reduces the amount of data can be performed. As a result, it is possible to achieve both the maintenance of image quality such as the legibility of characters and the visibility of fine patterns in image data and the reduction of the data amount (that is, the maintenance of the compression rate). When the resolution is smaller than a predetermined value (300 [dpi]), a quantization table having a quantization coefficient of “1” is set. Therefore, even when compressing image data with extremely low resolution, it is possible to prevent loss of high-frequency component information to the maximum, and good reproducibility of small characters and fine patterns is maintained sufficiently Image quality can be obtained. For example, if a document contains small characters, a quantization table that does not provide clear image data when read at a low resolution, and that greatly eliminates high-frequency component information from such image data. When compression is performed using (that is, a quantization table having a large quantization coefficient), the readability of characters in the output image is extremely lost. The visibility of the pattern is extremely lost not only in the text but also in the case where the document includes a photograph with a fine pattern. For this reason, when the resolution is low, by setting a quantization table with a small quantization coefficient, it is possible to suppress the loss of high-frequency component information, and to improve image quality such as character readability and pattern visibility in the output image. Can be maintained. When the resolution is extremely low, by setting a quantization table with the least amount of missing information (that is, a quantization table with all the quantization coefficients of 1), the readability of the characters in the output image and the visibility of the pattern are set. Image quality deterioration such as loss of image quality can be minimized. Note that the resolution for setting the quantization table with a quantization coefficient of 1 and the resolution for setting each quantization table are determined by, for example, determining the limit (whether or not the character can be read) that can maintain the legibility of fine characters. can do. On the other hand, when reading at a high resolution, clear image data can be obtained. Therefore, even if compression is performed so that high-frequency component information is lost, character readability and pattern visibility are hardly lost. Therefore, the compression rate can be improved by setting a quantization table having a large quantization coefficient.

なお、本実施形態では、予め設定された量子化テーブルを、フラッシュメモリ及びEPROM等の記憶部27に記憶しているが、取得した解像度と所定の演算式とを用いて量子化テーブルを設定するようにしてもよい。量子化テーブルは、量子化テーブル(i、j)=デフォルト量子化テーブル(i、j)×(R’×α+β)の演算式により計算することができる。(i、j)は、量子化テーブルの(行、列)の位置を表している。R’は、R/100(ただし、100dpi≦解像度R≦1200dpi)である。デフォルト量子化テーブルは、基準となる所定の量子化テーブルである。デフォルト量子化テーブル、係数α(例えば「9/110」)、β(例えば「1/55」)は、例えば、さまざまな解像度の画像を用いて画質と圧縮率とを評価しながら所望の値を設定する。画質の基準としては、さまざまな大きさの文字の判読性、又は写真の中の模様、細部の再現性を見ればよい。この場合、解像度に応じて自動的に最適な量子化係数を算出して設定することができるため、予め複数の量子化テーブルを準備して記憶部27に保持しておく必要がなく、記憶部27の記憶容量を大幅に削減することができる。また、画像データの解像度に応じて滑らかに量子化係数を変化させることができるため、解像度の少しの違いにより量子化係数が大きく切り替わって画質が急激に変化してしまうといった好ましくない現象を防ぐことができる。   In the present embodiment, a preset quantization table is stored in the storage unit 27 such as a flash memory and an EPROM. However, the quantization table is set using the acquired resolution and a predetermined arithmetic expression. You may do it. The quantization table can be calculated by an arithmetic expression of quantization table (i, j) = default quantization table (i, j) × (R ′ × α + β). (I, j) represents the position of (row, column) in the quantization table. R ′ is R / 100 (where 100 dpi ≦ resolution R ≦ 1200 dpi). The default quantization table is a predetermined quantization table serving as a reference. The default quantization table, coefficients α (for example, “9/110”) and β (for example, “1/55”) are set to desired values while evaluating image quality and compression rate using images of various resolutions, for example. Set. As a standard of image quality, it is only necessary to look at the legibility of characters of various sizes, or the reproducibility of patterns and details in photographs. In this case, since the optimum quantization coefficient can be automatically calculated and set according to the resolution, it is not necessary to prepare a plurality of quantization tables in advance and hold them in the storage unit 27. 27 storage capacity can be greatly reduced. In addition, since the quantization coefficient can be changed smoothly according to the resolution of the image data, it is possible to prevent an undesired phenomenon in which the quantization coefficient is largely switched due to a slight difference in resolution and the image quality is rapidly changed. Can do.

次に、以上のように構成される圧縮装置2が行う画像データの圧縮処理について説明する。図6は、圧縮装置2の動作を示すフローチャートである。   Next, image data compression processing performed by the compression apparatus 2 configured as described above will be described. FIG. 6 is a flowchart showing the operation of the compression device 2.

圧縮装置2は、まず、処理の対象となる画像データの主走査方向、及び副走査方向の解像度を取得する(S1)。解像度の情報は、装置全体の動作を制御しているコントローラーから取得する。次に、圧縮装置2は、副走査方向の解像度が主走査方向の解像度よりも低いか否かを判断する(S2)。   First, the compression device 2 acquires the resolution in the main scanning direction and the sub-scanning direction of the image data to be processed (S1). The resolution information is acquired from a controller that controls the operation of the entire apparatus. Next, the compression device 2 determines whether or not the resolution in the sub-scanning direction is lower than the resolution in the main scanning direction (S2).

副走査方向の解像度のほうが低い場合(S2:YES)、圧縮装置2は、副走査方向の解像度を画像データの解像度Rとし(S3)、処理をS5に移す。一方、主走査方向の解像度のほうが高い場合、若しくは解像度が等しい場合(S2:NO)、圧縮装置2は、主走査方向の解像度を画像データの解像度Rとし(S4)、処理をS5に移す。圧縮装置2は、図5に示す設定テーブルに基づいて量子化テーブルを設定するため、解像度Rが300[dpi]未満であるか否かを判定する(S5)。解像度が300[dpi]未満である場合(S5:YES)、圧縮装置2は、量子化係数が全て「1」の量子化テーブルを量子化テーブルDB26から抽出する(S6)。その後、圧縮装置2は、処理をS8に移す。   When the resolution in the sub-scanning direction is lower (S2: YES), the compression apparatus 2 sets the resolution in the sub-scanning direction as the resolution R of the image data (S3), and moves the process to S5. On the other hand, when the resolution in the main scanning direction is higher or the resolutions are equal (S2: NO), the compression device 2 sets the resolution in the main scanning direction as the resolution R of the image data (S4), and moves the process to S5. Since the compression apparatus 2 sets the quantization table based on the setting table shown in FIG. 5, the compression apparatus 2 determines whether or not the resolution R is less than 300 [dpi] (S5). When the resolution is less than 300 [dpi] (S5: YES), the compression device 2 extracts a quantization table having all quantization coefficients “1” from the quantization table DB 26 (S6). Thereafter, the compression device 2 moves the process to S8.

解像度が300[dpi]未満でない場合(S5:NO)、圧縮装置2は、図5の設定テーブルに基づいて、解像度に応じた量子化テーブルを量子化テーブルDB26から抽出する(S7)。例えば、解像度が400[dpi]の場合、圧縮装置2は、セットBの量子化テーブルを量子化テーブルDB26から抽出する。その後、圧縮装置2は、処理をS8に移す。なお、解像度が300[dpi]未満の場合の量子化テーブルを予め量子化テーブルDB26に記憶しているが、量子化テーブルを用意しておかず、解像度が300[dpi]未満の場合に、量子化係数を1に設定するプログラムとしてもよい。   When the resolution is not less than 300 [dpi] (S5: NO), the compression device 2 extracts a quantization table corresponding to the resolution from the quantization table DB 26 based on the setting table of FIG. 5 (S7). For example, when the resolution is 400 [dpi], the compression device 2 extracts the quantization table of set B from the quantization table DB 26. Thereafter, the compression device 2 moves the process to S8. Note that the quantization table when the resolution is less than 300 [dpi] is stored in advance in the quantization table DB 26. However, if the quantization table is not prepared and the resolution is less than 300 [dpi], quantization is performed. A program for setting the coefficient to 1 may be used.

S8では、圧縮装置2は、抽出した量子化テーブルを用いて、画像データに対してJPEG圧縮処理を施す。JPEG圧縮処理は一般的な規格に準拠した処理とし、その中で行われる量子化処理において、前記抽出した量子化テーブルを用いて量子化を行うことにより、画像データの解像度に応じた最適な圧縮処理を施すことができる。   In S8, the compression apparatus 2 performs JPEG compression processing on the image data using the extracted quantization table. JPEG compression processing conforms to general standards, and in the quantization processing performed in the JPEG compression processing, by performing quantization using the extracted quantization table, optimal compression according to the resolution of the image data Processing can be performed.

なお、画像データを取得する画像入力装置1と、画像データを圧縮する圧縮装置2とを別々に構成しているが、一つの装置としてもよい。例えば、圧縮装置2が、CCDラインセンサを備える構成であってもよい。   Note that the image input device 1 that acquires image data and the compression device 2 that compresses image data are configured separately, but may be a single device. For example, the compression device 2 may include a CCD line sensor.

(実施形態2)
次に、実施形態1で説明した画像データを圧縮する圧縮装置2を備える画像形成装置について説明する。
(Embodiment 2)
Next, an image forming apparatus including the compression device 2 that compresses the image data described in the first embodiment will be described.

図7は、画像形成装置の構成を示すブロック図である。本実施形態の画像形成装置は、圧縮装置2と、圧縮装置2から出力されたJPEGコードを記憶するハードディスク(画像データ記憶手段)4と、JPEGコードを復号したのち画像データを良好に再現するための処理を施す伸張装置5とを備えている。ハードディスク4は、圧縮装置2が圧縮した画像データを記憶する。以下、伸張装置5の機能について説明する。なお、以下に説明する機能は、圧縮装置2が備えていてもよい。圧縮装置2は、実施形態1と同様であるため説明は省略する。   FIG. 7 is a block diagram illustrating a configuration of the image forming apparatus. The image forming apparatus according to the present embodiment reproduces image data satisfactorily after the compression device 2, the hard disk (image data storage means) 4 that stores the JPEG code output from the compression device 2, and the JPEG code is decoded. And a decompression device 5 for performing the above processing. The hard disk 4 stores the image data compressed by the compression device 2. Hereinafter, functions of the decompressing device 5 will be described. Note that the function described below may be included in the compression device 2. Since the compression apparatus 2 is the same as that of Embodiment 1, description is abbreviate | omitted.

伸張装置5は、JPEG伸張部51、色補正部52、黒生成/下色除去部53、空間フィルタ部54、中間調生成部55、及び領域分離部56等を備える。   The expansion device 5 includes a JPEG expansion unit 51, a color correction unit 52, a black generation / undercolor removal unit 53, a spatial filter unit 54, a halftone generation unit 55, a region separation unit 56, and the like.

JPEG伸張部51は、JPEGコードを復号し、RGB信号の画像データに伸張する。具体的には、JPEGコードからヘッダ情報を抜き出し、ハフマン符号化テーブル、量子化テーブル、サンプリング比などの値を取り出す。取り出したハフマン符号化テーブルを用いて、JPEGコードに含まれる符号データを、YCbCr信号の周波数係数のデータに復号する。その際、8行8列のブロック単位のデータに整列し、ブロック毎の各要素に、取り出した量子化テーブルを乗算することで逆量子化の処理を行う。その後、ブロック毎に逆DCT変換を行うことでYCbCr信号の周波数係数のデータを画像データに戻す。さらに、取り出したサンプリング比に応じて間引いた画素を補間したのち、YCbCr信号からRGB信号に色空間を変換する処理を行い、最終的にRGB信号の画像データを出力する。   The JPEG decompression unit 51 decodes the JPEG code and decompresses it to RGB signal image data. Specifically, header information is extracted from the JPEG code, and values such as a Huffman encoding table, a quantization table, and a sampling ratio are extracted. Using the extracted Huffman coding table, the code data included in the JPEG code is decoded into data of the frequency coefficient of the YCbCr signal. At that time, the data is arranged in units of blocks of 8 rows and 8 columns, and the inverse quantization process is performed by multiplying each element of each block by the extracted quantization table. Thereafter, the frequency coefficient data of the YCbCr signal is returned to the image data by performing inverse DCT transform for each block. Further, after interpolating the thinned pixels according to the extracted sampling ratio, a process of converting the color space from the YCbCr signal to the RGB signal is performed, and finally the image data of the RGB signal is output.

色補正部52では、RGB信号をRGB信号の補色であるCMY(C:シアン・M:マゼンタ・Y:イエロー)の濃度信号に変換し、かつ出力装置(出力手段)6において忠実な色再現ができるよう、CMYの濃度信号に色補正処理を施す。   The color correction unit 52 converts the RGB signal into a density signal of CMY (C: cyan, M: magenta, Y: yellow) which is a complementary color of the RGB signal, and faithful color reproduction is performed in the output device (output means) 6. Color correction processing is performed on the CMY density signal so that it can be performed.

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

空間フィルタ部54は、黒生成/下色除去部53で得られたCMYKの画像データに対して、デジタルフィルタを用いた空間フィルタ処理を施す。画像データを適切に先鋭化もしくは平滑化することにより、出力装置6が出力する画像にぼやけ、または粒状性劣化を生じることを防止することができる。   The spatial filter unit 54 performs a spatial filter process using a digital filter on the CMYK image data obtained by the black generation / undercolor removal unit 53. By appropriately sharpening or smoothing the image data, it is possible to prevent the image output from the output device 6 from blurring or causing deterioration in graininess.

領域分離部56は、JPEG伸張部51から入力されたRGB信号に対し、画像データの各画素がどのような種類の領域に属するか、例えば黒文字/色文字/網点等いずれの領域に属する画素であるのかを判定する。領域分離部56は、分離結果を黒生成/下色除去部53、空間フィルタ部54、及び中間調生成部55へ出力する。分離結果を受けた各部においては、領域に応じた適切な処理の切り替えが行われる。   The region separation unit 56 determines what kind of region each pixel of the image data belongs to, for example, black character / color character / halftone dot, etc., for the RGB signal input from the JPEG decompression unit 51. It is determined whether it is. The region separation unit 56 outputs the separation result to the black generation / undercolor removal unit 53, the spatial filter unit 54, and the halftone generation unit 55. In each unit that has received the separation result, an appropriate process is switched according to the region.

中間調生成部55は、CMYKの画像データに対して、階調補正処理及び中間調生成処理を施す。中間調生成処理は、画像を複数の画素に分割して階調を再現できるようにする処理であり、2値又は多値のディザ法・誤差拡散法等を用いることができる。また、中間調生成部55は、画像データの濃度値を、出力装置6の特性値である網点面積率に変換する処理を行ってもよい。中間調生成部55は、処理されたCMYKの画像データを伸張装置5に接続された出力装置6へ出力する。そして、出力装置6では、CMYK信号に基づいて、最終的な出力画像が形成される。なお、出力装置6は、電子写真方式プリンタ又はインクジェット方式プリンタ等の画像を再現する装置であり、液晶ディスプレイ等の画像表示装置であっても構わない。   The halftone generation unit 55 performs gradation correction processing and halftone generation processing on the CMYK image data. The halftone generation process is a process for dividing an image into a plurality of pixels so that gradation can be reproduced, and a binary or multi-value dither method / error diffusion method or the like can be used. Further, the halftone generation unit 55 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 output device 6. The halftone generation unit 55 outputs the processed CMYK image data to the output device 6 connected to the decompression device 5. Then, the output device 6 forms a final output image based on the CMYK signal. The output device 6 is a device that reproduces an image such as an electrophotographic printer or an inkjet printer, and may be an image display device such as a liquid crystal display.

この構成によれば、画像データの解像度に応じてJPEG圧縮用パラメータが適切に切替えられるため、出力装置6から最終的に出力される画像についてもJPEG圧縮による画質劣化の少ない良好な画質を実現できる。また、どのような解像度の画像データであっても画質を極端に劣化させることなく圧縮して保存することができるため、画像データそのものを保存しておく必要がなく、ハードディスク4のデータ容量が削減され、さらに外部へのデータ送信時間の短縮、及びハードディスク4へのデータ書込み及び読出しなど装置内部のデータ伝送時間をも短縮することが可能となる。   According to this configuration, since the JPEG compression parameters are appropriately switched according to the resolution of the image data, it is possible to realize a good image quality with little image quality degradation due to JPEG compression for the image finally output from the output device 6. . Further, since image data of any resolution can be compressed and stored without extremely degrading the image quality, it is not necessary to store the image data itself, and the data capacity of the hard disk 4 is reduced. In addition, it is possible to shorten the data transmission time to the outside, and to shorten the data transmission time inside the apparatus such as data writing to and reading from the hard disk 4.

以上説明したように、上述の実施形態の圧縮装置2は、画像データの解像度に基づいて、量子化テーブルを量子化テーブルDB26から抽出し、設定する。これにより、画像データの解像度に応じた適切な量子化係数が設定でき、画像データの画質を劣化させず、画像データを圧縮し、データ量を小さくすることができる。   As described above, the compression device 2 according to the above-described embodiment extracts and sets the quantization table from the quantization table DB 26 based on the resolution of the image data. Thereby, an appropriate quantization coefficient according to the resolution of the image data can be set, and the image data can be compressed and the data amount can be reduced without degrading the image quality of the image data.

本発明の別の適用例として、コンピュータに実行させるためのプログラムコード(実行形式プログラム、中間コードプログラム、ソースプログラム)を記録したコンピュータ読み取り可能な記録媒体に、本画像処理方法(圧縮処理方法)を記録する構成とすることもできる。これによると、本画像処理を行うプログラムコードを記録した記録媒体を持ち運び自在に提供することができる。   As another application example of the present invention, the present image processing method (compression processing method) is recorded on a computer-readable recording medium in which program code (execution format program, intermediate code program, source program) to be executed by a computer is recorded. It can also be set as the structure recorded. According to this, it is possible to provide a portable recording medium on which a program code for performing this image processing is recorded.

図8は、本発明の別の適用例を示す概略図である。パソコン11は、記録媒体からプログラムコードを実行し、スキャナ10により読み取った画像データの圧縮処理を行い、記憶する。また、パソコン11は、記憶した画像データを復号し、プリンタ12から出力する。このように、複合機のように固定された場所でなくても、プログラムコードを記録した記録媒体を読み取ることができるパソコン11があれば、場所に関係なく、本画像処理を行うことができる。   FIG. 8 is a schematic view showing another application example of the present invention. The personal computer 11 executes the program code from the recording medium, compresses the image data read by the scanner 10, and stores it. Further, the personal computer 11 decodes the stored image data and outputs it from the printer 12. As described above, even if the computer 11 can read the recording medium on which the program code is recorded, it is possible to perform the main image processing regardless of the place, even if the place is not a fixed place such as a multifunction machine.

なお、この記録媒体としては、マイクロコンピュータで処理が行われるために図示していないメモリ、例えばROMのようなものそのものがプログラムメディアであってもよいし、また、図示していないが外部記憶装置としてプログラム読み取り装置が設けられ、そこに記録媒体を挿入することで読み取り可能なプログラムメディアであってもよい。いずれの場合においても、格納されているプログラムコードはマイクロプロセッサがアクセスして実行させる構成であってもよいし、あるいは、いずれの場合もプログラムコードを読み出し、読み出されたプログラムコードは、マイクロコンピュータの図示されていないプログラム記憶エリアにダウンロードされて、そのプログラムコードが実行される方式であってもよい。このダウンロード用のプログラムは予め本体装置に格納されているものとする。   As the recording medium, a memory (not shown) such as a ROM itself may be a program medium because processing is performed by a microcomputer, or an external storage device (not shown) may be used. As a program medium, a program medium that can be read by inserting a recording medium therein may be used. In any case, the stored program code may be configured to be accessed and executed by a microprocessor, or in any case, the program code is read and the read program code is a microcomputer. The program code may be downloaded to a program storage area (not shown) and executed. It is assumed that this download program is stored in the main device in advance.

上記プログラムメディアは、本体と分離可能に構成される記録媒体であり、磁気テープ又はカセットテープ等のテープ系、フロッピー(登録商標)ディスク又はハードディスク等の磁気ディスク、CD−ROM/MO(Magneto-Optical Disc)/MD/DVD等の光ディスクのディスク系、IC(Integrated Circuit)カード(メモリカードを含む)/光カード等のカード系、もしくは、マスクROM、EPROM、EEPROM(Electrically Erasable Programmable ROM)、フラッシュROM等による半導体メモリを含めた固定的にプログラムを担持する媒体であってもよい。   The program medium is a recording medium configured to be separable from the main body, and includes a tape system such as a magnetic tape or a cassette tape, a magnetic disk such as a floppy (registered trademark) disk or a hard disk, a CD-ROM / MO (Magneto-Optical). Disc) / MD / DVD optical discs, IC (Integrated Circuit) cards (including memory cards) / optical cards, etc., or mask ROM, EPROM, EEPROM (Electrically Erasable Programmable ROM), flash ROM It may be a medium that carries a fixed program including a semiconductor memory.

また、インターネットを含む通信ネットワークを接続可能なシステム構成を持つことで、通信ネットワークからプログラムコードをダウンロードするように流動的にプログラムコードを担持する媒体であってもよい。なお、このように通信ネットワークからプログラムコードをダウンロードする場合には、そのダウンロード用のプログラムは予め本体装置に格納しておくか、あるいは別な記録媒体からインストールされるものであってもよい。なお、本発明は、上記プログラムコードが電子的な伝送で具現化された、搬送波に埋め込まれたコンピュータデータ信号の形態でも実現され得る。   In addition, a medium that can connect a communication network including the Internet and that carries the program code in a fluid manner so as to download the program code from the communication network may be used. When the program code is downloaded from the communication network in this way, the program for downloading may be stored in the main device in advance or installed from another recording medium. The present invention can also be realized in the form of a computer data signal embedded in a carrier wave in which the program code is embodied by electronic transmission.

上記記録媒体は、デジタルカラー画像形成装置又はコンピュータシステムに備えられるプログラム読み取り装置により読み取られることで上述した画像処理方法が実行される。特に、後者の場合、本画像処理方法をユーザの好みに応じて用いることが可能となる。コンピュータシステムは、フラットベッドスキャナ、フィルムスキャナ、又はデジタルカメラ等の画像入力装置、所定のプログラムがロードされることにより上記画像処理方法など様々な処理が行われるコンピュータ、コンピュータの処理結果を表示するCRT(Cathode Ray Tube)ディスプレイ又は液晶ディスプレイ等の画像表示装置、及びコンピュータの処理結果を紙媒体等に出力するプリンタより構成される。さらには、ネットワークを介してサーバーなどに接続するための通信手段としてのモデム等が備えられる。   The above-described image processing method is executed by reading the recording medium by a digital color image forming apparatus or a program reading apparatus provided in a computer system. In particular, in the latter case, the present image processing method can be used according to the user's preference. The computer system includes an image input device such as a flatbed scanner, a film scanner, or a digital camera, a computer that performs various processes such as the image processing method by loading a predetermined program, and a CRT that displays the processing results of the computer. (Cathode Ray Tube) An image display device such as a display or a liquid crystal display, and a printer that outputs a processing result of a computer to a paper medium or the like. Further, a modem or the like as a communication means for connecting to a server or the like via a network is provided.

本発明に係る画像処理装置である圧縮装置とそれを備える画像読取装置との構成を示すブロック図である。1 is a block diagram illustrating a configuration of a compression device that is an image processing device according to the present invention and an image reading device including the compression device. FIG. JPEG圧縮部の構成を示すブロック図である。It is a block diagram which shows the structure of a JPEG compression part. 量子化テーブルを模式的に示す図である。It is a figure which shows a quantization table typically. 量子化テーブルを模式的に示す図である。It is a figure which shows a quantization table typically. 量子化テーブルを設定する際に用いられる設定テーブルを模式的に示す図である。It is a figure which shows typically the setting table used when setting a quantization table. 圧縮装置の動作を示すフローチャートである。It is a flowchart which shows operation | movement of a compression apparatus. 画像形成装置の構成を示すブロック図である。1 is a block diagram illustrating a configuration of an image forming apparatus. 本発明の別の適用例を示す概略図である。It is the schematic which shows another example of application of this invention. 解像度と周波数成分との関係について説明するための模式図であり、(a)は原稿、(b)は600dpiの解像度で読み取った画像データであり、(c)は300dpiの解像度で読み取った画像データである。It is a schematic diagram for demonstrating the relationship between a resolution and a frequency component, (a) is a manuscript, (b) is the image data read with the resolution of 600 dpi, (c) is the image data read with the resolution of 300 dpi It is.

符号の説明Explanation of symbols

1 画像入力装置
1a CCDラインセンサ
2 圧縮装置
3 インターフェース
20 A/D変換部
21 シェーディング補正部
22 入力処理部
23 JPEG圧縮部
24 解像度取得部
25 パラメータ設定部
26 量子化テーブルDB
DESCRIPTION OF SYMBOLS 1 Image input device 1a CCD line sensor 2 Compression apparatus 3 Interface 20 A / D conversion part 21 Shading correction part 22 Input processing part 23 JPEG compression part 24 Resolution acquisition part 25 Parameter setting part 26 Quantization table DB

Claims (12)

画像データを構成する各画素に所定の周波数変換を行って画素値を周波数係数に変換し、変換した周波数係数を量子化係数に基づいて量子化し、量子化して得られる量子化データを符号化することで、前記画像データを圧縮する画像処理装置において、
画像データの解像度を、互いに略直交する二方向夫々について取得する取得手段と、
該取得手段が取得した夫々の解像度の内、低い方の解像度に応じて量子化係数を設定する設定手段と、
該設定手段が設定した量子化係数を用いて、前記画像データを圧縮する圧縮手段と
を備えることを特徴とする画像処理装置。
Predetermined frequency conversion is performed on each pixel constituting the image data to convert the pixel value into a frequency coefficient, the converted frequency coefficient is quantized based on the quantization coefficient, and the quantized data obtained by quantization is encoded. In the image processing apparatus for compressing the image data,
Acquisition means for acquiring the resolution of the image data in each of two directions substantially orthogonal to each other ;
Setting means for setting a quantization coefficient in accordance with the lower resolution of the respective resolutions acquired by the acquisition means;
An image processing apparatus comprising: compression means for compressing the image data using the quantization coefficient set by the setting means.
異なる複数の量子化係数を解像度に対応付けて記憶する量子化係数記憶手段
をさらに備え、
前記設定手段は、
前記取得手段が取得した解像度に基づいて、前記量子化係数記憶手段から抽出した量子化係数を設定するようにしてある
ことを特徴とする請求項1に記載の画像処理装置。
A quantization coefficient storage means for storing a plurality of different quantization coefficients in association with the resolution;
The setting means includes
Based on the resolution acquired by the acquisition unit, an image processing apparatus according to claim 1, characterized in that it is to be set the quantization coefficient extracted from the quantized coefficient storing means.
前記設定手段は、
所定の演算式を用いて量子化係数を設定するようにしてある
ことを特徴とする請求項1に記載の画像処理装置。
The setting means includes
The image processing apparatus according to claim 1, wherein the quantization coefficient is set using a predetermined arithmetic expression.
前記設定手段は、
解像度の高,低に対応して量子化係数を大,小に設定するようにしてある
ことを特徴とする請求項1からの何れか一つに記載の画像処理装置。
The setting means includes
The image processing apparatus according to any one of claims 1 to 3 , wherein the quantization coefficient is set to be large or small corresponding to high or low resolution.
前記設定手段は、
前記取得手段が取得した解像度が所定値より低い場合、量子化係数を1に設定するようにしてある
ことを特徴とする請求項1からの何れか一つに記載の画像処理装置。
The setting means includes
5. The image processing apparatus according to claim 1, wherein when the resolution acquired by the acquisition unit is lower than a predetermined value, the quantization coefficient is set to 1. 5 .
原稿を走査して読み取り画像データを生成する読取手段と、
請求項1からの何れか一つに記載の画像処理装置と
を備えることを特徴とする画像読取装置。
Reading means for scanning a document and generating read image data;
Image reading apparatus characterized by comprising an image processing apparatus according to claim 1, any one of 5.
前記読取手段は、
走査する速度を変更可能に構成してある
ことを特徴とする請求項に記載の画像読取装置。
The reading means includes
The image reading apparatus according to claim 6 , wherein the scanning speed can be changed.
請求項1からの何れか一つに記載の画像処理装置と、
前記圧縮手段が圧縮した画像データを記憶する画像データ記憶手段と、
該画像データ記憶手段に記憶された画像データを伸張する伸張手段と、
前記伸張手段が伸張した画像データを出力する出力手段と
を備えることを特徴とする画像形成装置。
An image processing apparatus according to any one of claims 1 to 5 ,
Image data storage means for storing the image data compressed by the compression means;
Decompression means for decompressing image data stored in the image data storage means;
An image forming apparatus comprising: an output unit that outputs image data expanded by the expansion unit.
原稿を走査して読み取り画像データを生成する読取手段
を備え、
前記読取手段は、
走査する速度を変更可能に構成してある
ことを特徴とする請求項に記載の画像形成装置。
Scanning means that scans a document and generates scanned image data;
The reading means includes
The image forming apparatus according to claim 8 , wherein the scanning speed is changeable.
コンピュータに、画像データを構成する各画素に所定の周波数変換を行って画素値を周波数係数に変換させ、変換させた周波数係数を量子化係数に基づいて量子化し、量子化して得られる量子化データを符号化させることで、前記画像データを圧縮させるコンピュータプログラムにおいて、
前記コンピュータを、
画像データの解像度を、互いに略直交する二方向夫々について取得する取得手段と、
取得した夫々の解像度の内、低い方の解像度に応じて量子化係数を設定する設定手段、及び、
該設定手段が設定した量子化係数を用いて、前記画像データを圧縮する圧縮手段
として機能させることを特徴とするコンピュータプログラム。
Quantized data obtained by causing the computer to perform a predetermined frequency conversion on each pixel constituting the image data to convert the pixel value into a frequency coefficient, quantize the converted frequency coefficient based on the quantization coefficient, and quantize In a computer program for compressing the image data by encoding
The computer,
Acquisition means for acquiring the resolution of the image data in each of two directions substantially orthogonal to each other ;
Setting means for setting the quantization coefficient according to the lower resolution of the acquired resolutions , and
A computer program that functions as a compression unit that compresses the image data using a quantization coefficient set by the setting unit.
請求項10に記載のコンピュータプログラムが記録されていることを特徴とするコンピュータでの読取り可能な記録媒体。 A computer-readable recording medium on which the computer program according to claim 10 is recorded. 画像データを構成する各画素に所定の周波数変換を行って画素値を周波数係数に変換し、変換した周波数係数を量子化係数に基づいて量子化し、量子化して得られる量子化データを符号化することで、前記画像データを圧縮する画像処理方法において、
画像データの解像度を、互いに略直交する二方向夫々について取得するステップと、
取得した夫々の解像度の内、低い方の解像度に応じて量子化係数を設定するステップと、
設定した量子化係数を用いて、前記画像データを圧縮するステップと
を備えることを特徴とする画像処理方法。
Predetermined frequency conversion is performed on each pixel constituting the image data to convert the pixel value into a frequency coefficient, the converted frequency coefficient is quantized based on the quantization coefficient, and the quantized data obtained by quantization is encoded. In the image processing method for compressing the image data,
Obtaining the resolution of the image data in each of two directions substantially orthogonal to each other ;
A step of setting a quantization coefficient according to a lower resolution among the acquired resolutions ;
And a step of compressing the image data using a set quantization coefficient.
JP2008159541A 2008-06-18 2008-06-18 Image processing apparatus, image reading apparatus, image forming apparatus, computer program, recording medium, and image processing method Expired - Fee Related JP4926128B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008159541A JP4926128B2 (en) 2008-06-18 2008-06-18 Image processing apparatus, image reading apparatus, image forming apparatus, computer program, recording medium, and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008159541A JP4926128B2 (en) 2008-06-18 2008-06-18 Image processing apparatus, image reading apparatus, image forming apparatus, computer program, recording medium, and image processing method

Publications (2)

Publication Number Publication Date
JP2010004162A JP2010004162A (en) 2010-01-07
JP4926128B2 true JP4926128B2 (en) 2012-05-09

Family

ID=41585530

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008159541A Expired - Fee Related JP4926128B2 (en) 2008-06-18 2008-06-18 Image processing apparatus, image reading apparatus, image forming apparatus, computer program, recording medium, and image processing method

Country Status (1)

Country Link
JP (1) JP4926128B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101835230B1 (en) * 2016-09-09 2018-03-06 국민대학교산학협력단 Event high definition video recording method and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3825940B2 (en) * 1999-07-05 2006-09-27 キヤノン株式会社 Image processing apparatus and control method thereof
JP4194216B2 (en) * 2000-04-26 2008-12-10 キヤノン株式会社 Image processing apparatus and method
JP2002191050A (en) * 2000-12-22 2002-07-05 Fuji Xerox Co Ltd Image coder and method

Also Published As

Publication number Publication date
JP2010004162A (en) 2010-01-07

Similar Documents

Publication Publication Date Title
JP4732488B2 (en) Image processing apparatus, image forming apparatus, image reading apparatus, image processing method, image processing program, and computer-readable recording medium
US8265401B2 (en) Image compressing apparatus, image compressing method, image decompressing apparatus, image decompressing method, image forming apparatus and recording medium
JP4176114B2 (en) Image compression apparatus, image reading apparatus including the same, image processing apparatus including the image compression apparatus, image forming apparatus including the same, and image compression processing method
US8792735B2 (en) Image compressing apparatus which extracts black text edge pixels from an image and compresses a layer with black text edge pixels extracted
US8849021B2 (en) Image processing apparatus, method, and storage medium for high speed compression processing
JP4707751B2 (en) Image compression method, image compression apparatus, image forming apparatus, computer program, and recording medium
JP4115460B2 (en) Image processing apparatus and method, and computer program and recording medium
JP5089713B2 (en) Image compression apparatus, compressed image output apparatus, image compression method, computer program, and recording medium
US7013050B2 (en) Image encoding apparatus and method, program code, and storage medium
JP4156631B2 (en) Image processing method and image processing apparatus
JP4037824B2 (en) Image encoding method and image apparatus
US20110135198A1 (en) Chrominance encoding and decoding of a digital image
JP2004336453A (en) Copying machine, image processing system, program and storage medium
JP2004112695A (en) Image processing apparatus and processing method thereof
JP2004194278A (en) Image processing apparatus, program, computer readable storage medium and image processing method
JP4926128B2 (en) Image processing apparatus, image reading apparatus, image forming apparatus, computer program, recording medium, and image processing method
JP4040528B2 (en) Image processing apparatus, image processing method, image processing program, recording medium storing image processing program, and image forming apparatus including image processing apparatus
JP2004336487A (en) Facsimile machine, program and storage medium
JP2004128664A (en) Image processor and processing method
JP4031442B2 (en) Image processing apparatus and image forming apparatus having the same
JP5011223B2 (en) Image processing apparatus, image forming apparatus including the same, image processing program, and recording medium
JP4711879B2 (en) Image processing apparatus, image forming apparatus, computer program, recording medium, and image processing method
JP2015122618A (en) Information processing device, information processing method, and program
JP2005269380A (en) Device, method and program for processing image
JP2005051764A (en) Image processing apparatus, program, computer-readable storage medium, and image processing method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100826

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20111025

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20111108

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20111224

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: 20120117

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120207

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150217

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4926128

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees