JP2013197984A - Jpeg compression device and image reader - Google Patents
Jpeg compression device and image reader Download PDFInfo
- Publication number
- JP2013197984A JP2013197984A JP2012064091A JP2012064091A JP2013197984A JP 2013197984 A JP2013197984 A JP 2013197984A JP 2012064091 A JP2012064091 A JP 2012064091A JP 2012064091 A JP2012064091 A JP 2012064091A JP 2013197984 A JP2013197984 A JP 2013197984A
- Authority
- JP
- Japan
- Prior art keywords
- unit
- image data
- jpeg compression
- identification information
- 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.)
- Granted
Links
Images
Abstract
Description
本明細書に開示される発明は、JPEG圧縮装置に用いられる技術に関する。 The invention disclosed in this specification relates to a technique used in a JPEG compression apparatus.
従来から、画像データに対して圧縮処理を行い、圧縮画像データを生成する装置が知られている(例えば、特許文献1)。この装置では、原稿の表裏両面の画像データを読み取る表面用の画像読取手段及び裏面用の画像読取手段を更に備えることがあり、これらの画像読取手段を用いて読み取られた表裏両面の画像データに対して圧縮処理を行うことが求められることがある。従来技術では、原稿の表面を読み取った画像データと、原稿の裏面を読み取った画像データを、それぞれ別々の処理回路を用いて圧縮処理を行い、圧縮画像データを同時に生成する技術が開示されている。 2. Description of the Related Art Conventionally, an apparatus that performs compression processing on image data and generates compressed image data is known (for example, Patent Document 1). This apparatus may further include a front-side image reading unit and a back-side image reading unit for reading image data on both sides of the document, and the image data on the front and back sides read by using these image reading units. On the other hand, it may be required to perform compression processing. In the prior art, a technique is disclosed in which image data obtained by reading the front side of a document and image data obtained by reading the back side of the document are compressed using separate processing circuits to generate compressed image data simultaneously. .
このように、圧縮画像データを生成する装置では、複数の圧縮画像データを生成することが求められることがある。しかし、従来技術のように複数の圧縮画像データを生成するのに、例えば、表面や裏面の圧縮画像データを生成するのに、複数の処理回路を用意する必要があると、処理回路の回路規模が増大する問題が生じる。 As described above, an apparatus that generates compressed image data may be required to generate a plurality of compressed image data. However, in order to generate a plurality of compressed image data as in the prior art, for example, if it is necessary to prepare a plurality of processing circuits to generate the compressed image data of the front surface and the back surface, the circuit scale of the processing circuit This increases the problem.
本明細書に開示される発明は、画像データにJPEG圧縮処理を行うJPEG圧縮装置において、回路規模の増大を抑制する技術を開示する。 The invention disclosed in this specification discloses a technique for suppressing an increase in circuit scale in a JPEG compression apparatus that performs JPEG compression processing on image data.
本明細書によって開示されるJPEG圧縮装置は、1又は複数の入力画像データに対して、複数の処理からなるJPEG圧縮処理を行うJPEG圧縮装置であって、少なくとも、いずれの前記入力画像データであるか否かを識別する情報を有する識別情報に応じて前記入力画像データを取得し、JPEG圧縮処理の最小処理単位であるブロック単位の画像データが単数又は複数からなる画像データと前記識別情報とを出力する取得出力部と、前記取得出力部から出力された前記ブロック単位の画像データに対して、前記複数の処理のうち、独立して処理を行うことが可能な処理を実行し、該処理を実行された前記ブロック単位の画像データと前記識別情報とを出力する独立圧縮処理部と、同じ識別情報である前記独立圧縮処理部から出力された前記画像データ毎に前記複数の処理のうち、その他の処理を実行し、前記識別情報に応じたJPEG圧縮処理された画像データとして出力する非独立圧縮処理部と、を備える。 The JPEG compression apparatus disclosed in this specification is a JPEG compression apparatus that performs JPEG compression processing including a plurality of processes on one or a plurality of input image data, and at least any of the input image data. The input image data is acquired according to identification information having information for identifying whether or not, and image data consisting of one or a plurality of block-unit image data, which is a minimum processing unit of JPEG compression processing, and the identification information An acquisition output unit that outputs, and processing that can be performed independently of the plurality of processes on the block-unit image data that is output from the acquisition output unit. The independent compression processing unit that outputs the executed block-unit image data and the identification information, and the independent compression processing unit that is the same identification information are output Among the plurality of processes for each of the image data, other processing is executed, and a non-independent compression processing section for outputting as a JPEG compressed image data corresponding to the identification information.
このJPEG圧縮装置では、JPEG圧縮処理を構成する複数の処理のうち、ブロック単位で独立して処理を行うことが可能な処理については、ブロック単位の画像データに対して独立圧縮処理部が処理を実行する。そのため、1又は複数の画像データに対してJPEG圧縮処理を行って複数の圧縮画像データを生成する際に、ブロック単位で独立して処理を行うことが可能な処理については、いずれの圧縮画像データに属するブロック単位の画像データに対しても共通の独立圧縮処理部を用いて処理を実行することができ、JPEG圧縮処理を構成する全ての処理について異なる処理回路を用いて処理を実行していた従来技術に比べて、回路規模の増大を抑制することができる。 In this JPEG compression apparatus, an independent compression processing unit performs processing on block-unit image data for processing that can be independently performed on a block-by-block basis among a plurality of processes constituting the JPEG compression processing. Run. Therefore, when performing JPEG compression processing on one or a plurality of image data to generate a plurality of compressed image data, any compressed image data can be processed independently for each block. Can be executed using a common independent compression processing unit, and all the processes constituting the JPEG compression process are executed using different processing circuits. Compared to the prior art, an increase in circuit scale can be suppressed.
このJPEG圧縮装置では、前記独立圧縮処理部は、前記ブロック単位で離散コサイン変換を行うDCT変換部と、前記離散コサイン変換により生成された前記ブロック単位の各成分に対して量子化を行う量子化部と、量子化された前記ブロック単位の各成分を、関連付けられた前記識別情報に応じて切り替えて出力する第1出力切替部と、を備え、前記非独立圧縮処理部は、同一の前記識別情報に関連付けられた前記ブロック単位の各成分に対してエントロピ符号化を行い、エントロピ符号化された前記ブロック単位の各成分を前記識別情報に応じて出力する複数のエントロピ符号化出力部と、を備える構成としても良い。このJPEG圧縮装置によれば、JPEG圧縮処理を構成する複数の処理を実行する構成のうち、エントロピ符号化出力部を除く他の構成を共通に使用することができ、回路規模の増大を抑制することができる。 In this JPEG compression apparatus, the independent compression processing unit includes a DCT transform unit that performs discrete cosine transform in units of blocks, and a quantization that performs quantization on each component in units of blocks generated by the discrete cosine transform And a first output switching unit that switches and outputs each quantized component in accordance with the associated identification information, and the non-independent compression processing units have the same identification A plurality of entropy coding output units that perform entropy coding on each component of the block unit associated with information and output each component of the block unit that has been entropy coded according to the identification information; and It is good also as a structure provided. According to this JPEG compression apparatus, the configuration other than the entropy encoding output unit can be used in common among the configurations that execute a plurality of processes constituting the JPEG compression process, and an increase in circuit scale is suppressed. be able to.
このJPEG圧縮装置では、前記独立圧縮処理部は、前記ブロック単位で離散コサイン変換を行うDCT変換部と、前記離散コサイン変換により生成された前記ブロック単位の各成分に対して量子化を行う量子化部と、を備え、前記非独立圧縮処理部は、前記量子化部により量子化された前記ブロック単位の各成分を、関連付けられた前記識別情報に応じてエントロピ符号化を行うエントロピ符号化部と、前記識別情報に応じて前記ブロック単位の各成分を出力する第2出力切替部と、を備え、前記エントロピ符号化部は、前記識別情報毎に1つ前に出力された前記ブロック単位の各成分の先頭成分を保持する複数の保持部と、前記ブロック単位の成分群の先頭成分から、当該ブロック単位の成分群に関連付けられた前記識別情報に対応する前記保持部に保持された前記先頭成分を差し引いて、前記先頭成分の差分を出力する差分取得部と、を有し、前記差分された前記先頭成分と、前記ブロック単位の成分群の先頭成分以外の成分とに対してエントロピ符号化を行う構成としても良い。このJPEG圧縮装置によれば、JPEG圧縮処理を構成する複数の処理を実行する構成のうち、エントロピ符号化部に含まれる保持部を除く他の構成を共通に使用することができ、回路規模の増大を抑制することができる。 In this JPEG compression apparatus, the independent compression processing unit includes a DCT transform unit that performs discrete cosine transform in units of blocks, and a quantization that performs quantization on each component in units of blocks generated by the discrete cosine transform An entropy encoding unit that performs entropy encoding on each component of the block unit quantized by the quantization unit according to the associated identification information, and the non-independent compression processing unit A second output switching unit that outputs each component of the block unit according to the identification information, and the entropy encoding unit outputs each of the block units output one before for each of the identification information Corresponding to the identification information associated with the component group of the block unit from a plurality of holding units that hold the head component of the component and the head component of the component unit of the block unit A difference acquisition unit that subtracts the head component held in the storage unit and outputs a difference between the head components, and the difference between the head component and the head component other than the head component of the block unit component group It is good also as a structure which performs entropy encoding with respect to these components. According to this JPEG compression apparatus, it is possible to use in common a configuration other than the holding unit included in the entropy encoding unit among the configurations that execute a plurality of processes constituting the JPEG compression process. The increase can be suppressed.
このJPEG圧縮装置では、前記独立圧縮処理部は、更に、前記識別情報に応じた複数の量子化テーブルと、前記識別情報に応じて前記量子化テーブルを切り替えて、切り替えられた量子化テーブルの情報を出力する第1セレクタと、を備え、前記量子化部は、前記第1セレクタによって出力された量子化テーブルの情報を用いて前記量子化を行う構成としても良い。このJPEG圧縮装置によれば、第1セレクタによって出力された量子化テーブルの情報を用いて入力画像データを好適に量子化することができる。 In this JPEG compression apparatus, the independent compression processing unit further switches a plurality of quantization tables according to the identification information and the quantization table according to the identification information, and information of the switched quantization table The quantization unit may be configured to perform the quantization using information of a quantization table output by the first selector. According to this JPEG compression apparatus, it is possible to suitably quantize the input image data using the information in the quantization table output by the first selector.
このJPEG圧縮装置では、前記非独立圧縮処理部は、更に、前記識別情報に応じた複数のエントロピ符号化テーブルと、前記識別情報に応じて前記エントロピ符号化テーブルを切り替えて、切り替えられたエントロピ符号化テーブルの情報を出力する第2セレクタと、を備え、前記エントロピ符号化部は、前記第2セレクタによって出力されたエントロピ符号化テーブルの情報を用いて前記エントロピ符号化を行う構成としても良い。このJPEG圧縮装置によれば、第2セレクタによって出力されたエントロピ符号化テーブルの情報を用いて入力画像データを好適にエントロピ符号化することができる。 In this JPEG compression apparatus, the non-independent compression processing unit further switches between a plurality of entropy encoding tables corresponding to the identification information and the entropy encoding tables corresponding to the identification information, and the switched entropy codes. A second selector that outputs the information of the encoding table, and the entropy encoding unit may perform the entropy encoding using the information of the entropy encoding table output by the second selector. According to this JPEG compression apparatus, the input image data can be suitably entropy-encoded using the information in the entropy encoding table output by the second selector.
このJPEG圧縮装置では、前記識別情報は、更に、JPEG圧縮処理の圧縮率に関する情報を有し、前記量子化テーブルは、前記JPEG圧縮処理の圧縮率に関する情報に応じた数有り、前記第1セレクタは、前記JPEG圧縮処理の圧縮率に関する情報に応じて、切り替えられた量子化テーブルの情報を出力し、前記量子化部は、前記第1セレクタによって出力された量子化テーブルの情報を用いて前記量子化を行う構成としても良い。このJPEG圧縮装置によれば、第1セレクタがJPEG圧縮処理の圧縮率に関する情報に応じて出力する量子化テーブルの情報を切り替えるので、入力画像データの圧縮率を効率的に増加させることができる。 In this JPEG compression apparatus, the identification information further includes information related to a compression rate of JPEG compression processing, and the quantization table includes a number corresponding to information related to the compression rate of the JPEG compression processing, and the first selector Outputs the information of the switched quantization table according to the information on the compression rate of the JPEG compression process, and the quantization unit uses the information of the quantization table output by the first selector to It is good also as a structure which performs quantization. According to this JPEG compression apparatus, the first selector switches the quantization table information to be output according to the information on the compression rate of the JPEG compression process, so that the compression rate of the input image data can be increased efficiently.
このJPEG圧縮装置では、前記識別情報は、更に、JPEG圧縮処理の圧縮率に関する情報を有し、前記エントロピ符号化テーブルは、前記JPEG圧縮処理の圧縮率に関する情報に応じた数有り、前記第2セレクタは、前記JPEG圧縮処理の圧縮率に関する情報に応じて、切り替えられたエントロピ符号化テーブルの情報を出力し、前記エントロピ符号化部は、前記第2セレクタによって出力されたエントロピ符号化テーブルの情報を用いて前記エントロピ符号化を行う構成としても良い。このJPEG圧縮装置によれば、第2セレクタがJPEG圧縮処理の圧縮率に関する情報に応じて出力するエントロピ符号化テーブルの情報を切り替えるので、入力画像データに応じた圧縮率に設定することができる。 In this JPEG compression apparatus, the identification information further includes information related to a compression rate of JPEG compression processing, and the entropy encoding table has a number corresponding to information related to the compression rate of the JPEG compression processing, and the second The selector outputs information of the switched entropy coding table according to the information regarding the compression rate of the JPEG compression process, and the entropy coding unit outputs information of the entropy coding table output by the second selector. It is good also as a structure which performs the said entropy encoding using. According to this JPEG compression apparatus, since the second selector switches the information of the entropy coding table to be output according to the information regarding the compression rate of the JPEG compression process, it is possible to set the compression rate according to the input image data.
このJPEG圧縮装置では、前記識別情報は、前記JPEG圧縮処理の処理条件を有し、1つの前記入力画像データに対して前記処理条件の異なる複数のJPEG圧縮処理を行う構成としても良い。このJPEG圧縮装置によれば、1つの入力画像データに対して処理条件の異なる複数のJPEG圧縮処理を行う場合において、回路規模の増大を抑制することができる。 In this JPEG compression apparatus, the identification information may have a processing condition for the JPEG compression process, and a plurality of JPEG compression processes with different processing conditions may be performed on one input image data. According to this JPEG compression apparatus, it is possible to suppress an increase in circuit scale when performing a plurality of JPEG compression processes with different processing conditions for one input image data.
本明細書に開示される発明は、上記のJPEG圧縮装置を備えた画像読取装置にも具現化される。本明細書によって開示される画像処理装置は、上記に記載のJPEG圧縮装置と、更に、前記入力画像データを取得し、取得された入力画像データを順に前記記憶部に記憶させる入力画像データ取得部、を備え、前記取得出力部は、前記記憶部に記憶された入力画像データが前記ブロック単位分の画像データが記憶されたことに応じて、前記識別情報とともに、少なくとも前記ブロック単位分の画像データを取得する。この画像処理装置によれば、記憶部には、ブロック単位分の画像データ程度を記憶する記憶容量しか必要なく、記憶部に必要とされる記憶容量を抑制することができる。 The invention disclosed in this specification is also embodied in an image reading apparatus including the above-described JPEG compression apparatus. An image processing apparatus disclosed in the present specification includes the JPEG compression apparatus described above, and an input image data acquisition unit that acquires the input image data and sequentially stores the acquired input image data in the storage unit The acquisition output unit includes at least the block unit image data together with the identification information in response to the input image data stored in the storage unit being stored in the block unit image data. To get. According to this image processing apparatus, the storage unit only needs a storage capacity for storing about the amount of image data for each block, and the storage capacity required for the storage unit can be suppressed.
この画像読取装置では、前記入力画像データ取得部は、少なくとも、読取対象物を読み取って前記画像データを生成する画像読取部、を備え、前記JPEG圧縮装置は、前記入力画像データに対してJPEG圧縮処理を行い、前記少なくとも1つの入力画像データは、前記画像読取部が読み取った前記画像データである構成としても良い。この画像読取装置によれば、画像読取部を用いて生成された画像データを含む複数の画像データに対してJPEG圧縮処理を行う画像読取装置において、当該画像読取装置に含まれるJPEG圧縮装置の回路規模が増大することを抑制することができる。 In this image reading apparatus, the input image data acquisition unit includes at least an image reading unit that reads the object to be read and generates the image data, and the JPEG compression device compresses the input image data using JPEG compression. Processing may be performed so that the at least one input image data is the image data read by the image reading unit. According to this image reading apparatus, in an image reading apparatus that performs JPEG compression processing on a plurality of image data including image data generated using an image reading unit, the circuit of the JPEG compression apparatus included in the image reading apparatus An increase in scale can be suppressed.
本明細書に開示される発明によれば、JPEG圧縮装置の回路規模の増大を抑制することができる。 According to the invention disclosed in this specification, an increase in the circuit scale of the JPEG compression apparatus can be suppressed.
以下、本発明の実施形態について図面を用いて説明する。尚、本発明の実施の形態は、下記の実施形態に何ら限定されることはなく、本発明の技術的範囲に属する限り種々の形態を採りうる。本形態は、JPEG圧縮装置の一例として、原稿の画像を読み取る画像読取装置10を用いて説明する。
Hereinafter, embodiments of the present invention will be described with reference to the drawings. The embodiments of the present invention are not limited to the following embodiments, and various forms can be adopted as long as they belong to the technical scope of the present invention. This embodiment will be described using an
1.画像読取装置の構成
図1は、画像読取装置10の断面図を示している。画像読取装置10は、搬送ローラ121〜129を用いて、給紙トレイ110に載置された原稿を、搬送路(鎖線)に沿って、排紙トレイ130まで搬送する。搬送路の上流側にはCIS(Contact Image Sensor)231が、搬送路の下流側には、CIS230が、それぞれ設けられている。CIS231は、上流側の位置で、搬送路上を搬送される図1における上方向の原稿の面を読み取る。また、CIS230は、搬送路上を搬送される原稿の図1における下方向の原稿の面を読み取る。
1. Configuration of Image Reading Device FIG. 1 is a cross-sectional view of an
なお、これ以降の説明において、原稿が給紙トレイ110に載置された際に、図1における上方向の原稿の面を原稿の表面とし、図1における下方向の原稿の面を原稿の裏面とする。
In the following description, when an original is placed on the
図2は、画像読取装置10の電気的な構成を示す回路ブロック図である。画像読取装置10は、CPU30と、ROM32と、RAM33と、デバイス駆動部34と、読取補正・画像処理部36と、JPEG圧縮部40と、画像読取部22(入力画像データ取得部、画像読取部の一例)と、USBインターフェイス(以下、I/F)24と、操作部28と、を主要部として備える。
FIG. 2 is a circuit block diagram showing an electrical configuration of the
そして、CPU30と、ROM32と、RAM33と、デバイス駆動部34と、読取補正・画像処理部36と、JPEG圧縮部40と、USB I/F24(入力画像データ取得部の別例)と、操作部28とは、バス29を介して接続されている。
The
ROM32には、画像読取装置10の動作を制御するための各種のプログラムが記憶されており、CPU30はROM32から読み出したプログラムに従って各部の制御を行う。
The
デバイス駆動部34は、画像読取部22に接続されており、CPU30からの命令に基づいて読み取りを制御する信号を画像読取部22に送信する。画像読取部22は、デバイス駆動部34からの信号に基づいて原稿を読み取り、読み取った読取データを読取補正・画像処理部36に出力する。
The
画像読取部22は、CIS231とCIS230とを備える。詳細には、画像読取部22は、CIS230を用いて原稿の表面を読み取り、アナログ信号の表面の読取データを生成する。また、画像読取部22は、CIS231を用いて原稿の裏面を読み取り、アナログ信号の裏面の読取データを生成する。
The
読取補正・画像処理部36は、画像読取部22に接続されており、画像読取部22から出力されるアナログ信号である読取データをデジタル信号である画像データに変換する。そして、読取補正・画像処理部36は、その変換された画像データにシェーディング補正等の各種読取補正や、拡大、縮小、強調処理といった画像処理を行う。そして、その各種補正された画像データは、輝度(Y)、色差(Cb、Cr)の3つからなる各色成分の画像データとしてRAM33に記憶される。
The reading correction /
USB I/F24は、ネットワーク回線を介して画像読取装置10を外部のPCに接続する。RAM33には、読取補正・画像処理部36によって各種補正された画像データや、USB I/F24を介して画像読取装置10外部から入力された画像データである入力画像データが一時的に記憶される。
The USB I /
JPEG圧縮部40は、RAM33に記憶された入力画像データ(表面の画像データ、裏面の画像データ、USB I/F24を介して入力された画像データ)をJPEG圧縮してJPEG圧縮画像データを生成する。そして、そのJPEG圧縮画像データが、再びRAM33に記憶される。
The
操作部28は、スタートキー、ストップキー、テンキー等から構成されるボタン群からなり、使用者から動作指示を受けつける。
The
2.画像読取装置の両面読取について
次に、画像読取装置10によって、原稿の両面が読み取られた入力画像データ(表面の画像データ、裏面の画像データ)が順々にRAM33に記憶され、そのRAM33に記憶された入力画像データをJPEG圧縮する実施例について説明する。
2. Next, the input image data (front-side image data and back-side image data) obtained by reading both sides of the document by the
最初に、原稿の両面が読み取られた入力画像データ(表面の画像データ、裏面の画像データ)が順々にRAM33に記憶されることについて説明する。
First, a description will be given of how the input image data (front side image data and back side image data) obtained by reading both sides of the document is sequentially stored in the
画像読取装置10は、給紙トレイ110に載置された原稿は、CIS231の読取位置に到達すると、原稿の裏面の読み取りを開始する。すると、RAM33には、CIS231によって読み取られ、読取補正・画像処理部36によって各種補正された裏面の画像データがCIS231の1ライン毎に順に記憶される。
When the original placed on the
次に、画像読取装置10は、原稿がCIS230の読取位置に到達すると、原稿の表面の読み取りを開始する。この時点では、原稿の後端が、CIS231の読取位置を通過していない。RAM33には、CIS230によって読み取られ、読取補正・画像処理部36によって各種補正された表面の画像データと、上述した裏面の画像データとが、それぞれ1ライン毎に順に記憶される。
Next, when the original reaches the reading position of the
そして、原稿の後端が、CIS231の読取位置を通過すると、CIS231の原稿の裏面の読み取りは終了する。そして、RAM33には、表面の画像データが1ライン毎に順に記憶される。そして、CIS230の原稿の表面の読み取りは、CIS230の読取位置を原稿の後端が通過するまで行われる。
When the trailing edge of the document passes through the reading position of the
3.画像データのJPEG圧縮について
次に、図3及び図6を用いて、RAM33に記憶された入力画像データを、JPEG圧縮部40を用いてJPEG圧縮することについて説明する。図3と図6とは、CPU30とRAM33とJPEG圧縮部40との構成を示す図を示している。図3と図6とは、入力データ切替部44と、間引き部45と、点線56に含まれる構成群(DCT変換部46からジグザグシーケンス部50まで、独立圧縮部の一例)は、同じ構成であるが、エントロピ符号化部58(非独立圧縮部の一例)が実施形態として異なる。
3. Next, JPEG compression of input image data stored in the
以降の説明として、輝度(Y)、色差(Cb、Cr)の3つからなる各色成分の空間的な間引きを表すサンプリングファクタとして4:2:0の形式でJPEG圧縮を行うことを例示して説明する。 In the following description, JPEG compression is performed in the form of 4: 2: 0 as a sampling factor that represents spatial thinning of each of the three color components of luminance (Y) and color difference (Cb, Cr). explain.
図3は、CPU30とRAM33とJPEG圧縮部40との構成をそれぞれ示している。RAM33には、画像読取装置10の両面読取によって、表面の画像データと裏面の画像データが記憶される。図3は、RAM33に記憶された画像データが、JPEG圧縮部40によってJPEG圧縮され、再びRAM33にJPEG圧縮された画像データが記憶される構成を示している。
FIG. 3 shows the configurations of the
JPEG圧縮部40は、複数の処理からなるJPEG圧縮処理を行う複数の構成から構成されている。JPEG圧縮部40は、入力データ切替部44と、間引き部45と、離散コサイン変換部(以下、DCT変換部)46と、量子化部48と、セレクタ48Aと、ジグザグシーケンス部50と、エントロピ符号化部58と、から構成されている。なお、入力データ切替部44と間引き部45とが、取得出力部の一例である。
The
入力データ切替部44は、CPU30からの指示によって、RAM33に記憶されている表面の画像データ、裏面の画像データを取得し、16×16個の画素データから構成されているブロックデータ毎に、後述する識別情報と共に、間引き部45に出力する。
The input
図4は、CPU30の処理面フラグ切り替え処理を示すフローチャートを示している。「 2.画像読取装置の両面読取について 」において上述したように、表面の画像データ、裏面の画像データは1ライン毎に記憶される。
FIG. 4 is a flowchart showing the processing surface flag switching process of the
CPU30は、RAM33に、表面の画像データが16ライン分、記憶されているかどうかを判断する(S2)。具体的には、CPU30は、RAM33に表面の画像データが何ライン記憶されたかどうかをカウントすることで判断できる。
The
CPU30は、RAM33に、表面の画像データが16ライン分、記憶されていない場合(S2:NO)、RAM33に裏面の画像データが16ライン分、記憶されているかどうかを判断する(S4)。CPU30は、RAM33に、裏面の画像データが16ライン分、記憶されていない場合(S4:NO)、S2に戻る。
If the front surface image data for 16 lines is not stored in the RAM 33 (S2: NO), the
CPU30は、RAM33に表面の画像データが16ライン分、記憶されている場合(S2:YES)、RAM33に記憶されている処理面フラグを表面に設定する(S6)。そして、CPU30は、入力データ切替部44に対して、表面であることを示す識別情報を入力する(S8)。
When the surface image data for 16 lines is stored in the RAM 33 (S2: YES), the
入力データ切替部44は、CPU30から表面であることを示す識別情報が入力されると、RAM33から表面の画像データの取得を開始する。そして、入力データ切替部44は、取得した表面の画像データから、16×16個の画素データ毎に、表面であることを示す識別情報とともに、間引き部45に出力する。
When the identification information indicating that the surface is the front surface is input from the
図5は、輝度(Y)、色差(Cb、Cr)の3つのうち、輝度(Y)成分の画像データを示している。図5に示すように、輝度(Y)成分の画像データは、複数の画素データによって構成されており、残り2つの成分である色差(Cb、Cr)も、同様に構成されている。 FIG. 5 shows image data of a luminance (Y) component among three of luminance (Y) and color difference (Cb, Cr). As shown in FIG. 5, the luminance (Y) component image data is composed of a plurality of pixel data, and the remaining two components, ie, the color differences (Cb, Cr), are similarly constructed.
間引き部45は、JPEG圧縮のサンプリングファクタとして4:2:0の形式の場合、輝度(Y)成分に関しては、図5に示す、8×8個の画素データのブロックデータ(JPEG圧縮処理の最小処理単位であるブロック単位の画像データの一例)毎にDCT変換部46に出力する。一方、色差(Cb、Cr)成分に関しては、間引き部45は、16×16の画素データから縦横それぞれ2分の1に縮小することにより8×8個の画素データのブロックデータとしてDCT変換部46に出力する。
In the case of 4: 2: 0 as the sampling factor for JPEG compression, the thinning-out
入力データ切替部44と間引き部45とによって、輝度(Y)のブロックデータY1、Y2、Y3、Y4と、色差(Cb、Cr)の2つのブロックデータの計6個のブロックデータを、各ブロックデータ毎に順番に、入力データ切替部44が出力する。この輝度(Y)のブロックデータY1、Y2、Y3、Y4と、色差(Cb、Cr)の2つの間引かれたブロックデータの計6個がJPEG圧縮処理の1単位(1MCU)となる。
By the input
入力データ切替部44と間引き部45とは、1MCUのブロックデータを生成し、各ブロックデータ毎に、DCT変換部46に出力し終えると、次の16×16個の画素データに対して、1MCUの6個のブロックデータを生成し、各ブロックデータ毎に、DCT変換部46に出力していく。
When the input
CPU30は、入力データ切替部44が表面の画像データを16ライン分、取得が完了しているかどうかを判断する(S10)。CPU30は、入力データ切替部44の16×16個の画素データの読み出しが完了するのを待機し(S10:NO)、16×16個の画素データの読み出しが完了すると(S10:YES)、S4の処理に進む。
The
CPU30は、RAM33に、裏面の画像データが16ライン分、記憶されているかどうかを判断する(S4)。CPU30は、RAM33に裏面の画像データが16ライン分、記憶されている場合(S4:YES)、RAM33に記憶されている処理面フラグを表面に設定する(S16)。そして、CPU30は、入力データ切替部44に対して、裏面であることを示す識別情報を入力する(S18)。
The
入力データ切替部44と間引き部45とは、上述した表面の画像データのように、1MCUの6個のブロックデータを生成し、各ブロックデータ毎に、順番に、DCT変換部46に出力していく。
The input
「 2.画像読取装置の両面読取について 」で説明したように、表面の画像データと裏面の画像データとは、読み取った順番に1ライン毎に記憶部33に記憶される。従来の画像読取装置では、表面の画像データに対してJPEG圧縮処理が完了するまで、裏面の画像データに対してJPEG圧縮処理をしない構成であったため、表面の画像データのJPEG圧縮処理が完了するまで、裏面の画像データを記憶部33に記憶しておかなければならない。その為、記憶部33の記憶容量が大きくなるという問題がある。
As described in “2. Double-Sided Reading of Image Reading Device”, the front side image data and the back side image data are stored in the
一方、本発明の画像読取装置10は、上述したS2及びS4のフローチャートの処理を行い、入力データ切替部44と間引き部45とが、S2とS4の処理に対応する表面であるか裏面であるかを示す識別情報と、その識別情報に対応したブロックデータとを、順に、DCT変換部46に出力していく。そのため、画像読取装置10は、ブロックデータ毎に処理するので、記憶部33に1枚分の原稿の画像データ分の記憶容量を必要としない。
On the other hand, the
次、JPEG圧縮においては、上述した間引き部45の間引処理の他に、DCT変換処理、量子化処理、ジグザクシーケンス処理、エントロピ符号化処理といった、いくつかの処理によって、最終的に、JPEG圧縮された画像データが作成される。そのうち、DCT変換、量子化処理、ジグザクシーケンス処理に関しては、ブロックデータ毎に独立して処理が行える。一方、エントロピ符号化処理に関しては、後述するブロックデータ間における依存関係によって処理を行うため、ブロックデータ毎に独立して処理は行えない。
Next, in JPEG compression, in addition to the thinning process of the thinning
DCT変換部46は、間引き部45から出力されたブロックデータを、当該ブロックデータ単位でDCT変換し、8×8個の周波数データに変換する。
The
DCT変換部46は、8×8個の周波数データを、量子化部48に出力するとともに、該識別情報(表面であるか裏面であるか)を、量子化部48とセレクタ48Aとにそれぞれ出力する。
The
量子化とは、DCT変換された8×8個の周波数データを、8×8個の定数からなるテーブル(量子化テーブル)で、それぞれ割り算し、小数点を切り捨て若しくは四捨五入等をすることで、周波数データの端数を切り捨てることである。DCT変換された8×8個の周波数データは、低周波数成分から高周波数成分といった形で並べられている。JPEG圧縮の圧縮率を上げる際には、この高周波成分の周波数データをできるだけ切り捨てるように量子化テーブルを設定することで、画像データの圧縮率が増加する。 Quantization means that 8 × 8 frequency data subjected to DCT conversion is divided by 8 × 8 constant table (quantization table), and the decimal point is rounded down or rounded off. The data is rounded down. The DCT-transformed 8 × 8 frequency data are arranged in the form of low frequency components to high frequency components. When the compression rate of JPEG compression is increased, the compression rate of the image data is increased by setting the quantization table so that the frequency data of this high frequency component is cut off as much as possible.
JPEG圧縮部40は、第1量子化テーブル48Bと、第2量子化テーブル48Cと、を有している。そして、CPU30から第1量子化テーブル48Bと、第2量子化テーブル48Cとをそれぞれ変更できるように構成されている。CPU30は、各面毎に量子化テーブルの定数を変更することで、表面や裏面といった各面に応じて画像データの圧縮率を変更することができる。
The
セレクタ48Aは、DCT変換部46から出力される識別情報から、表面であれば第1量子化テーブル48Bと、裏面であれば第2量子化テーブル48Cと、いったように切り替えて、量子化部48に出力する。
The
すると、量子化部48は、表面か裏面かいずれかに該当する量子化テーブル48B、48Cの定数に応じて、8×8個の周波数データを、量子化処理を行う。そして、量子化部48は、8×8個の量子化されたデータと該識別情報とを、ジグザグシーケンス部50に出力する。
Then, the
ジグザグシーケンス部50は、量子化されたデータにジグザグスキャンを行い、8×8個のデータの各周波数成分が直流成分(以後、DC成分)、交流成分(以後、AC成分)の順に、またAC成分では低周波数から高周波数の順に並ぶように各周波数成分を並び替える。そして、ジグザグシーケンス部50は、ジグザグスキャンによって並び替えられたデータ(該処理を実行されたブロック単位の画像データの一例)と該識別情報とを、エントロピ符号化部58に出力する。
The
4.エントロピ符号化処理について 〜第1実施形態〜
まず、図3のエントロピ符号化部58について説明する。図3のエントロピ符号化部58は、出力データ切替部52と第1エントロピ符号化器54Aと第2エントロピ符号化器54Bとを備えている。
4). Entropy encoding process -first embodiment-
First, the
出力データ切替部52は、ジグザグシーケンス部50から入力される識別情報に応じて、ジグザグスキャンされた8×8個のデータを、該当する識別情報に対応するエントロピ符号化器54A、54Bのいずれかに出力する。なお、第1実施形態では、識別情報が表面で有る場合は、第1エントロピ符号化器54Aに出力され、識別情報が裏面である場合は、第2エントロピ符号化器54Bに出力される。
The output
エントロピ符号化器54A、54Bは、DC成分とAC成分とからなる8×8のデータに対して、周知のエントロピ符号化処理を行う。しかし、DC成分とAC成分とでは、エントロピ符号化処理の方法が異なる。
The
図7は、ジグザグスキャンによって並び替えられたDC成分とAC成分を示した図である。エントロピ符号化器54A、54Bは、エントロピ符号化器54A、54Bに入力されたDC成分(図7:DC(i))から、前回入力されたDC成分(図7:DC(i−1)、以下、前回DC成分)との差分の値に対して、エントロピ符号化処理を行う。
FIG. 7 is a diagram showing the DC component and the AC component rearranged by the zigzag scan. The
エントロピ符号化器54A、54Bは、それぞれ保持部55A、55Bを有している。保持部55A、55Bには、前回DC成分、つまり、エントロピ符号化器54A、54Bに入力されたDC成分よりも1つ前に入力され、入力されたDC成分と同一の識別情報(表面、裏面)を有するDC成分が、保持部55A、55Bに保持されている。
The
エントロピ符号化器54A、54Bは、入力されたDC成分から保持部55A、55Bに記憶された前回DC成分を差し引いてDC差分値を算出する。エントロピ符号化器54A、54Bは、DC差分値を算出後、保持部55A、55Bの前回DC成分を入力されたDC成分へと更新する。
The
エントロピ符号化器54A、54Bは、算出されたDC差分値とAC成分に対して、それぞれエントロピ符号化処理を行う。エントロピ符号化器54Aは、エントロピ符号化処理によって生成されたデータを表面のJPEG圧縮画像データとして、RAM33に出力する。また、エントロピ符号化器54Bは、エントロピ符号化処理によって生成されたデータを裏面のJPEG圧縮画像データとして、RAM33に出力する。
The
5.エントロピ符号化処理について 〜第2実施形態〜
まず、図6のエントロピ符号化部58について説明する。図6のエントロピ符号化部58は、第3のエントロピ符号化器70と、出力部72とを備えている。
5. Entropy encoding process -second embodiment-
First, the
図8は、エントロピ符号化部58の構成を示している。エントロピ符号化部58は、第1実施形態で説明した複数の処理を含むエントロピ符号化処理を行う複数の構成から構成されている。エントロピ符号化器70は、第1実施形態で説明した保持部55A、55Bの他に、第1選出部60と、第2選出部62と、差分取得部64と、更新部66と、符号化部68と、セレクタ68Aと、を含む。また、出力部72は、第1実施形態で説明した出力データ切替部52の他に、符号データ出力部76A、76Bを含む。
FIG. 8 shows the configuration of the
第1選出部60は、ジグザグシーケンス部50から出力され、DC成分とAC成分とからなる8×8のデータからDC成分を選出し、差分取得部64及び更新部66に出力する。また、残ったAC成分を、符号化部68に出力する。
The
第2選出部62は、ジグザグシーケンス部50から入力される識別情報に応じて、該当する識別情報に対応する保持部55A、55Bに記憶された前回DC成分を読み出し、差分取得部64に出力する。
The
差分取得部64は、第1選出部60から出力されたDC成分から、第2選出部62から出力された前回DC成分を差し引いてDC差分値を算出し、算出したDC差分値を符号化部68に出力する。
The
符号化とは、一列に並んだ8×8個の2進数のデータを、ハフマンテーブルを使って置換することである。ハフマンテーブルでは、2進数のデータに含まれる「1」と「0」で示されるパターンを、「1」と「0」で示される異なるパターンへと置換する対応関係が設定されている。ハフマンテーブルでは、置換後におけるパターンの桁数が、置換前におけるパターンの桁数よりも少なくなるように決定されている。JPEG圧縮の圧縮率を上げる際には、8×8個の2進数のデータに多数含まれるパターンをできるだけ桁数の少ないパターンに置換されるように対応関係を設定することで、入力画像データの圧縮率が増加する。 Encoding is to replace 8 × 8 binary data arranged in a line using a Huffman table. In the Huffman table, a correspondence relationship is set in which a pattern indicated by “1” and “0” included in binary data is replaced with a different pattern indicated by “1” and “0”. In the Huffman table, the number of digits of the pattern after replacement is determined to be smaller than the number of digits of the pattern before replacement. When increasing the compression rate of JPEG compression, by setting the correspondence so that many patterns contained in 8 × 8 binary data are replaced with patterns with as few digits as possible, the input image data The compression rate increases.
JPEG圧縮部40は、第1ハフマンテーブル68Bと、第2ハフマンテーブル68Cと、を有している。そして、CPU30から第1ハフマンテーブル68Bと、第2ハフマンテーブル68Cとをそれぞれ変更できるように構成されている。CPU30は、各面毎にハフマンテーブルの対応関係を変更することで、表面や裏面といった各面に応じて入力画像データの圧縮率を変更することができる。
The
セレクタ68Aは、ジグザグシーケンス部50から出力される識別情報から、表面であれば第1ハフマンテーブル68Bと、裏面であれば第2ハフマンテーブル68Cと、いったように切り替えて、符号化部68に出力する。
The
すると、符号化部68は、差分取得部64から出力されるDC差分値と、第1選出部60から出力されるAC成分と、をこの順に並べた8×8個の2進数のデータに対して、表面か裏面かいずれかに該当するハフマンテーブル68B、68Cの対応関係に応じてハフマン符号化処理を行う。そして、符号化部68は、符号化されたデータと該識別情報とを、出力部72に出力する。
Then, the
更新部66は、符号化部68が符号化されたデータを出力後、ジグザグシーケンス部50から入力される識別情報に応じて、該当する識別情報に対応する保持部55A、55Bの前回DC成分を、第1選出部60から出力されるDC成分へと更新する。
The
出力データ切替部52は、符号化部68から入力される識別情報に応じて、符号化されたデータを、該当する識別情報に対応する第1符号データ出力部76A、第2符号データ出力部76Bのいずれかに出力する。なお、第2実施形態では、識別情報が表面で有る場合は、第1符号データ出力部76Aに出力され、識別情報が裏面である場合は、第2符号データ出力部76Bに出力される。
The output
第1符号データ出力部76Aは、エントロピ符号化処理によって生成されたデータを表面のJPEG圧縮画像データとして、RAM33に出力する。また、第2符号データ出力部76Bは、エントロピ符号化処理によって生成されたデータを裏面のJPEG圧縮画像データとして、RAM33に出力する。
The first code
3.本実施形態の効果
(1)実施形態1、2の画像読取装置10では、JPEG圧縮処理を構成する複数の処理のうち、ブロックデータ毎に独立して処理が行える一部の処理については、ブロックデータに対して共通の構成を用いて処理を行う。そのため、JPEG圧縮処理を構成する全ての処理について異なる構成を用いて処理を行う場合に比べて、JPEG圧縮部40の回路規模の増大を抑制することができる。
3. Advantages of the present embodiment (1) In the
(2)具体的には、実施形態1、2の画像読取装置10では、JPEG圧縮処理を構成する複数の処理を行う構成のうち、ブロックデータ毎に独立して処理が行えるDCT変換部からジグザグシーケンス部50までの処理については、共通の構成を用いて処理を行い、エントロピ符号化部58におけるエントロピ符号化処理については、識別情報が共通となるブロックデータ間における依存関係によって処理を行う必要があることから、ブロックデータに関連付けられた識別情報毎の個別の構成を用いて処理を行う。ジグザグシーケンス部までの構成を共通化することで、JPEG圧縮部40の回路規模の増大を抑制することができる。
(2) Specifically, in the
(3)さらに、実施形態2の画像読取装置10では、エントロピ符号化部58に含まれるエントロピ符号化器70において、一部の構成を共通化する。具体的には、ブロックデータ間における依存関係によって切り替える必要がある前回DC成分について、識別情報毎の保持部55A、55Bを用意し、エントロピ符号化器70に含まれるその他の構成について共通化する。これによって、JPEG圧縮部40の回路規模の増大をさらに抑制することができる。
(3) Furthermore, in the
<他の実施形態>
本発明は上記記述及び図面によって説明した実施形態に限定されるものではなく、例えば次のような種々の態様も本発明の技術的範囲に含まれる。
(1)上記実施形態では、読取機能を有する画像読取装置10を用いて説明を行ったが、本発明はこれに限られない。例えば、読取機能に加えて、プリンタ機能、コピー機能、ファクシミリ機能などのうちの少なくとも1つの機能を更に備えた複合機であっても良い。
<Other embodiments>
The present invention is not limited to the embodiments described with reference to the above description and the drawings, and for example, the following various aspects are also included in the technical scope of the present invention.
(1) Although the above embodiment has been described using the
(2)また、読取機能を有していなくても良い。本発明は、画像データに対してJPEG圧縮処理のみを行う機能を備えており、例えばUSB I/F24を介して画像読取装置10外部のPCから入力された画像データに対してJPEG圧縮処理を行うのであれば、必ずしも読取機能を有していなくてもよい。
(2) The reading function may not be provided. The present invention has a function of performing only JPEG compression processing on image data. For example, JPEG compression processing is performed on image data input from a PC outside the
(3)上記実施形態では、画像データの圧縮形式として、JPEG圧縮を用いて説明を行ったが、本発明はこれに限られない。圧縮処理が複数の処理によって構成されており、その複数の処理に各データ毎に独立して処理が行える独立圧縮処理と、各データ毎に独立して処理が行えず、データ間における依存関係によって処理を行うる非独立圧縮処理を備えている圧縮形式であれば適用することができる。 (3) Although the above embodiment has been described using JPEG compression as the compression format of image data, the present invention is not limited to this. The compression process consists of multiple processes, and the multiple processes can be processed independently for each data, and the independent process for each data cannot be performed independently, depending on the dependency between the data Any compression format having a non-independent compression process that performs processing can be applied.
(4)上記実施形態では、複数の画像データをJPEG圧縮する例として、原稿の両面読取によって読み取った表面の画像データと裏面の画像データとをJPEG圧縮する場合について説明を行ったが、本発明はこれに限らない。例えば、図9に示すように、原稿の表面のみ読み取りを行い、表面の画像データとUSB I/F24を介して入力された画像データとをJPEG圧縮してもよい。また、USB I/F24を介して入力された複数の画像データをJPEG圧縮してもよい。
(4) In the above embodiment, as an example of JPEG compression of a plurality of image data, a case where JPEG compression is performed on the image data on the front side and the image data on the back side read by double-sided reading of the document has been described. Is not limited to this. For example, as shown in FIG. 9, only the surface of the document may be read, and the image data on the surface and the image data input via the USB I /
(5)この場合、識別情報は、表面であることを示す情報や裏面であることを示す情報に代わって、該当する入力画像データの画像種類(テキスト、写真等)を示す情報であってもよい。識別情報が、画像種類を示す情報である場合、画像種類によって圧縮率が決定されることから、識別情報に基づいてハフマンテーブルを切り替えることで、画像データの圧縮率を効率的に増加させることができる。 (5) In this case, the identification information may be information indicating the image type (text, photograph, etc.) of the corresponding input image data instead of the information indicating the front surface or the information indicating the back surface. Good. When the identification information is information indicating the image type, the compression rate is determined by the image type. Therefore, the compression rate of the image data can be increased efficiently by switching the Huffman table based on the identification information. it can.
(6)また、識別情報は、該当する入力画像データの圧縮率などの圧縮条件に関する情報であってもよい。識別情報が、圧縮条件に関する情報である場合、識別情報に基づいて量子化テーブルを切り替えることで、入力画像データに応じた圧縮率に設定することができる。 (6) Further, the identification information may be information relating to compression conditions such as the compression rate of the corresponding input image data. When the identification information is information related to the compression condition, the compression rate corresponding to the input image data can be set by switching the quantization table based on the identification information.
(7)上記実施形態では、JPEG圧縮部40が第1量子化テーブル48Bと、第2量子化テーブル48Cと、を有する場合について説明を行ったが、本発明はこれに限らない。例えば、図9に示すように、JPEG圧縮部40がm個の量子化テーブル48B〜48Nを有していても良い。識別情報には、該当する入力画像データの圧縮率などの圧縮条件に関する情報が含まれており、量子化テーブル48B〜48Nには、各圧縮率に適した量子化テーブルが記憶されている。そして、セレクタ48Aは、識別情報の入力画像データの圧縮条件に関する情報から使用する量子化テーブル48B〜48Nを切り替る。これによって、量子化部48では、入力画像データを当該入力画像データに応じた圧縮率に設定することができる。
(7) Although the case where the
(8)上記実施形態では、JPEG圧縮部40が第1ハフマンテーブル68Bと、第2ハフマンテーブル68Cと、を有する場合について説明を行ったが、本発明はこれに限らない。例えば、図10に示すように、JPEG圧縮部40がm個のハフマンテーブル68B〜68Nを有していても良い。識別情報には、該当する入力画像データの画像種類を示す情報が含まれており、ハフマンテーブル68B〜68Nには、各画像種類を示す情報に適したハフマンテーブルが記憶されている。そして、セレクタ68Aは、識別情報の入力画像データの画像種類を示す情報から使用するハフマンテーブル68B〜68Nを切り替る。これによって、符号化部68では、入力画像データの圧縮率を効率的に増加させることができる。
(8) Although the case where the
(9)上記実施形態では、複数の画像データをJPEG圧縮する例を用いて説明を行ったが、1つの入力画像データに対して異なる複数の圧縮条件を設定してJPEG圧縮してもよい。この場合でも、異なる圧縮条件のJPEG圧縮を異なる構成を用いて処理を行う場合に比べて、JPEG圧縮部40の回路規模の増大を抑制することができる。
(9) Although the above embodiment has been described using an example in which a plurality of image data is JPEG compressed, JPEG compression may be performed by setting a plurality of different compression conditions for one input image data. Even in this case, an increase in the circuit scale of the
10:画像読取装置、22:画像読取部、30:CPU、33:RAM、40:JPEG圧縮部、44:入力データ切替部、45:間引き部、46:DCT変換器、48:量子化部、50:ジグザグシーケンス部、52:出力データ切替部、54:エントロピ符号化器、55:保持部、58:エントロピ符号化部、64:差分取得部、66:更新部、68:符号化部、70:エントロピ符号化器、72:出力部、76:符号データ出力部 10: Image reading device, 22: Image reading unit, 30: CPU, 33: RAM, 40: JPEG compression unit, 44: Input data switching unit, 45: Decimation unit, 46: DCT converter, 48: Quantization unit, 50: Zigzag sequence unit, 52: Output data switching unit, 54: Entropy encoder, 55: Holding unit, 58: Entropy encoding unit, 64: Difference acquisition unit, 66: Update unit, 68: Encoding unit, 70 : Entropy encoder 72: Output unit 76: Code data output unit
Claims (10)
少なくとも、いずれの前記入力画像データであるか否かを識別する情報を有する識別情報に応じて前記入力画像データを取得し、JPEG圧縮処理の最小処理単位であるブロック単位の画像データが単数又は複数からなる画像データと前記識別情報とを出力する取得出力部と、
前記取得出力部から出力された前記ブロック単位の画像データに対して、前記複数の処理のうち、独立して処理を行うことが可能な処理を実行し、該処理を実行された前記ブロック単位の画像データと前記識別情報とを出力する独立圧縮処理部と、
同じ識別情報である前記独立圧縮処理部から出力された前記画像データ毎に前記複数の処理のうち、その他の処理を実行し、前記識別情報に応じたJPEG圧縮処理された画像データとして出力する非独立圧縮処理部と、
を備える、
JPEG圧縮装置。 A JPEG compression apparatus that performs JPEG compression processing consisting of a plurality of processes on one or a plurality of input image data,
The input image data is acquired in accordance with identification information having at least information for identifying which of the input image data, and one or a plurality of block-unit image data that is a minimum processing unit of JPEG compression processing An output unit for outputting the image data and the identification information, and
For the block-unit image data output from the acquisition output unit, a process that can be performed independently of the plurality of processes is executed, and the block unit that has been subjected to the process is executed. An independent compression processing unit for outputting image data and the identification information;
For each of the image data output from the independent compression processing unit having the same identification information, the other processing is executed among the plurality of processes and output as JPEG compressed image data corresponding to the identification information. An independent compression processing unit;
Comprising
JPEG compression device.
前記独立圧縮処理部は、
前記ブロック単位で離散コサイン変換を行うDCT変換部と、
前記離散コサイン変換により生成された前記ブロック単位の各成分に対して量子化を行う量子化部と、
量子化された前記ブロック単位の各成分を、関連付けられた前記識別情報に応じて切り替えて出力する第1出力切替部と、
を備え、
前記非独立圧縮処理部は、
同一の前記識別情報に関連付けられた前記ブロック単位の各成分に対してエントロピ符号化を行い、エントロピ符号化された前記ブロック単位の各成分を前記識別情報に応じて出力する複数のエントロピ符号化出力部と、
を備える、
JPEG圧縮装置。 The JPEG compression apparatus according to claim 1,
The independent compression processing unit
A DCT transform unit for performing discrete cosine transform in units of blocks;
A quantization unit that performs quantization on each block unit generated by the discrete cosine transform;
A first output switching unit that switches and outputs each quantized component in accordance with the associated identification information;
With
The non-independent compression processing unit is:
A plurality of entropy-encoded outputs that perform entropy coding on each component of the block unit associated with the same identification information, and output the entropy-coded component of the block unit according to the identification information And
Comprising
JPEG compression device.
前記独立圧縮処理部は、
前記ブロック単位で離散コサイン変換を行うDCT変換部と、
前記離散コサイン変換により生成された前記ブロック単位の各成分に対して量子化を行う量子化部と、
を備え、
前記非独立圧縮処理部は、
前記量子化部により量子化された前記ブロック単位の各成分を、関連付けられた前記識別情報に応じてエントロピ符号化を行うエントロピ符号化部と、
前記識別情報に応じて前記ブロック単位の各成分を出力する第2出力切替部と、
を備え、
前記エントロピ符号化部は、
前記識別情報毎に1つ前に出力された前記ブロック単位の各成分の先頭成分を保持する複数の保持部と、
前記ブロック単位の成分群の先頭成分から、当該ブロック単位の成分群に関連付けられた前記識別情報に対応する前記保持部に保持された前記先頭成分を差し引いて、前記先頭成分の差分を出力する差分取得部と、を有し、
前記差分された前記先頭成分と、前記ブロック単位の成分群の先頭成分以外の成分とに対してエントロピ符号化を行う、
JPEG圧縮装置。 The JPEG compression apparatus according to claim 1,
The independent compression processing unit
A DCT transform unit for performing discrete cosine transform in units of blocks;
A quantization unit that performs quantization on each block unit generated by the discrete cosine transform;
With
The non-independent compression processing unit is:
An entropy encoding unit that performs entropy encoding on each component of the block unit quantized by the quantization unit according to the associated identification information;
A second output switching unit that outputs each component of the block unit according to the identification information;
With
The entropy encoder is
A plurality of holding units that hold the leading component of each component of the block unit that was output immediately before each of the identification information;
Subtracting the head component held in the holding unit corresponding to the identification information associated with the block unit component group from the head component of the block unit component group, and outputting the difference of the head component An acquisition unit,
Entropy encoding is performed on the difference between the head component and a component other than the head component of the block-based component group.
JPEG compression device.
前記独立圧縮処理部は、
更に、
前記識別情報に応じた複数の量子化テーブルと、
前記識別情報に応じて前記量子化テーブルを切り替えて、切り替えられた量子化テーブルの情報を出力する第1セレクタと、
を備え、
前記量子化部は、
前記第1セレクタによって出力された量子化テーブルの情報を用いて前記量子化を行う、
JPEG圧縮装置。 The JPEG compression apparatus according to claim 2 or 3,
The independent compression processing unit
Furthermore,
A plurality of quantization tables according to the identification information;
A first selector that switches the quantization table according to the identification information and outputs information of the switched quantization table;
With
The quantization unit is
Performing the quantization using information in the quantization table output by the first selector;
JPEG compression device.
前記非独立圧縮処理部は、
更に、
前記識別情報に応じた複数のエントロピ符号化テーブルと、
前記識別情報に応じて前記エントロピ符号化テーブルを切り替えて、切り替えられたエントロピ符号化テーブルの情報を出力する第2セレクタと、
を備え、
前記エントロピ符号化部は、
前記第2セレクタによって出力されたエントロピ符号化テーブルの情報を用いて前記エントロピ符号化を行う、
JPEG圧縮装置。 A JPEG compression apparatus according to any one of claims 2 to 4,
The non-independent compression processing unit is:
Furthermore,
A plurality of entropy encoding tables according to the identification information;
A second selector that switches the entropy coding table according to the identification information and outputs information of the switched entropy coding table;
With
The entropy encoder is
Performing the entropy encoding using information in the entropy encoding table output by the second selector;
JPEG compression device.
前記識別情報は、更に、JPEG圧縮処理の圧縮率に関する情報を有し、
前記量子化テーブルは、前記JPEG圧縮処理の圧縮率に関する情報に応じた数有り、
前記第1セレクタは、前記JPEG圧縮処理の圧縮率に関する情報に応じて、切り替えられた量子化テーブルの情報を出力し、
前記量子化部は、
前記第1セレクタによって出力された量子化テーブルの情報を用いて前記量子化を行う、
JPEG圧縮装置。 The JPEG compression apparatus according to claim 4,
The identification information further includes information on the compression rate of the JPEG compression process,
The quantization table has a number corresponding to information related to the compression rate of the JPEG compression process,
The first selector outputs information of the switched quantization table according to information on the compression rate of the JPEG compression process,
The quantization unit is
Performing the quantization using information in the quantization table output by the first selector;
JPEG compression device.
前記識別情報は、更に、JPEG圧縮処理の圧縮率に関する情報を有し、
前記エントロピ符号化テーブルは、前記JPEG圧縮処理の圧縮率に関する情報に応じた数有り、
前記第2セレクタは、前記JPEG圧縮処理の圧縮率に関する情報に応じて、切り替えられたエントロピ符号化テーブルの情報を出力し、
前記エントロピ符号化部は、
前記第2セレクタによって出力されたエントロピ符号化テーブルの情報を用いて前記エントロピ符号化を行う、
JPEG圧縮装置。 The JPEG compression device according to claim 5,
The identification information further includes information on the compression rate of the JPEG compression process,
The entropy encoding table has a number corresponding to information related to the compression rate of the JPEG compression process,
The second selector outputs information of the switched entropy coding table according to the information regarding the compression rate of the JPEG compression process,
The entropy encoder is
Performing the entropy encoding using information in the entropy encoding table output by the second selector;
JPEG compression device.
前記識別情報は、前記JPEG圧縮処理の処理条件を有し、
1つの前記入力画像データに対して前記処理条件の異なる複数のJPEG圧縮処理を行う、
JPEG圧縮装置。 The JPEG compression apparatus according to any one of claims 1 to 7,
The identification information has processing conditions for the JPEG compression processing,
A plurality of JPEG compression processes with different processing conditions are performed on one input image data.
JPEG compression device.
更に、
前記入力画像データを取得し、取得された入力画像データを順に前記記憶部に記憶させる入力画像データ取得部、
を備え、
前記取得出力部は、
前記記憶部に記憶された入力画像データが少なくとも前記ブロック単位分の画像データが記憶されたことに応じて、前記識別情報とともに、前記ブロック単位分の画像データを取得する、
画像読取装置。 A JPEG compression device according to any one of claims 1 to 8,
Furthermore,
An input image data acquisition unit for acquiring the input image data and sequentially storing the acquired input image data in the storage unit;
With
The acquisition output unit
The input image data stored in the storage unit acquires image data for the block unit together with the identification information in response to the image data for at least the block unit being stored.
Image reading device.
前記入力画像データ取得部は、
少なくとも、読取対象物を読み取って前記入力画像データを生成する画像読取部、
を備え、
前記JPEG圧縮装置は、前記入力画像データに対してJPEG圧縮処理を行い、
前記少なくとも1つの入力画像データは、前記画像読取部が読み取った前記画像データである、
画像読取装置。 The image reading apparatus according to claim 9, wherein
The input image data acquisition unit
An image reading unit that reads at least a reading object and generates the input image data;
With
The JPEG compression device performs JPEG compression processing on the input image data,
The at least one input image data is the image data read by the image reading unit,
Image reading device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012064091A JP5843158B2 (en) | 2012-03-21 | 2012-03-21 | JPEG compression device, image reading device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012064091A JP5843158B2 (en) | 2012-03-21 | 2012-03-21 | JPEG compression device, image reading device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2013197984A true JP2013197984A (en) | 2013-09-30 |
JP5843158B2 JP5843158B2 (en) | 2016-01-13 |
Family
ID=49396380
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2012064091A Active JP5843158B2 (en) | 2012-03-21 | 2012-03-21 | JPEG compression device, image reading device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5843158B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2016001793A (en) * | 2014-06-11 | 2016-01-07 | ブラザー工業株式会社 | Conversion device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0488752A (en) * | 1990-07-31 | 1992-03-23 | Canon Inc | Picture processor |
JPH0575875A (en) * | 1991-09-18 | 1993-03-26 | Tokyo Electric Co Ltd | Picture encoding device |
JPH06164939A (en) * | 1992-11-16 | 1994-06-10 | Fuji Xerox Co Ltd | Encoder for picture signal |
JPH0738761A (en) * | 1993-07-22 | 1995-02-07 | Minolta Co Ltd | Encoder |
JP2000050263A (en) * | 1998-07-28 | 2000-02-18 | Hitachi Ltd | Image coder, decoder and image-pickup device using them |
JP2001339728A (en) * | 2000-05-29 | 2001-12-07 | Matsushita Graphic Communication Systems Inc | Image encoding method and encoding apparatus |
JP2007274449A (en) * | 2006-03-31 | 2007-10-18 | Matsushita Electric Ind Co Ltd | Double-sided image scanner |
-
2012
- 2012-03-21 JP JP2012064091A patent/JP5843158B2/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0488752A (en) * | 1990-07-31 | 1992-03-23 | Canon Inc | Picture processor |
JPH0575875A (en) * | 1991-09-18 | 1993-03-26 | Tokyo Electric Co Ltd | Picture encoding device |
JPH06164939A (en) * | 1992-11-16 | 1994-06-10 | Fuji Xerox Co Ltd | Encoder for picture signal |
JPH0738761A (en) * | 1993-07-22 | 1995-02-07 | Minolta Co Ltd | Encoder |
JP2000050263A (en) * | 1998-07-28 | 2000-02-18 | Hitachi Ltd | Image coder, decoder and image-pickup device using them |
JP2001339728A (en) * | 2000-05-29 | 2001-12-07 | Matsushita Graphic Communication Systems Inc | Image encoding method and encoding apparatus |
JP2007274449A (en) * | 2006-03-31 | 2007-10-18 | Matsushita Electric Ind Co Ltd | Double-sided image scanner |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2016001793A (en) * | 2014-06-11 | 2016-01-07 | ブラザー工業株式会社 | Conversion device |
US9374594B2 (en) | 2014-06-11 | 2016-06-21 | Brother Kogyo Kabushiki Kaisha | Converting apparatus |
Also Published As
Publication number | Publication date |
---|---|
JP5843158B2 (en) | 2016-01-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2708443C1 (en) | Internal prediction method and an encoder and a decoder using it | |
JP6407389B2 (en) | Data encoding and decoding | |
CN105847831B (en) | Video coding apparatus and video decoder | |
CN110691244B (en) | Method and apparatus for binarization and context adaptive coding of syntax in video coding | |
JP4949462B2 (en) | Code amount estimation method, apparatus, program thereof, and recording medium | |
EP3139609B1 (en) | Method and apparatus for block-based significance map and significance group flag context selection | |
KR20170108367A (en) | Method and apparatus for processing a video signal based on intra prediction | |
EP3306930A1 (en) | Encoding device, decoding device, and encoding and decoding method thereof | |
WO2012138032A1 (en) | Method for encoding and decoding image information | |
CN107409224A (en) | Method and apparatus for handling vision signal | |
CN107211153A (en) | Method and apparatus for handling vision signal | |
US9729890B2 (en) | Method and apparatus for unification of significance map context selection | |
JP5843158B2 (en) | JPEG compression device, image reading device | |
EP3264771A1 (en) | Coding device and decoding device | |
JP2011109460A (en) | Image processing method and program, and image processing apparatus | |
CN105991895A (en) | Apparatus and method for data decoding | |
JP6142833B2 (en) | Electronics | |
CN114009036A (en) | Image encoding device, image decoding device, image encoding method, and image decoding method | |
JP2012134776A (en) | Image processing device, image processing method, and program | |
US11251808B2 (en) | Image decoding device | |
JP3867857B2 (en) | Color image processing device | |
JP2001309182A (en) | Image processing unit and method | |
CN113994695A (en) | Image encoding device, image decoding device, image encoding method, and image decoding method | |
JP2014099742A (en) | Color/monochromatic determination | |
KR20190143418A (en) | A method and an apparatus for encoding/decoding residual coefficient |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20140312 |
|
RD05 | Notification of revocation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7425 Effective date: 20140408 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20150205 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20150210 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20150330 |
|
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: 20151023 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20151105 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5843158 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |