JP4218727B2 - Image reproduction method, image reproduction apparatus, and image reproduction program - Google Patents

Image reproduction method, image reproduction apparatus, and image reproduction program Download PDF

Info

Publication number
JP4218727B2
JP4218727B2 JP2007030140A JP2007030140A JP4218727B2 JP 4218727 B2 JP4218727 B2 JP 4218727B2 JP 2007030140 A JP2007030140 A JP 2007030140A JP 2007030140 A JP2007030140 A JP 2007030140A JP 4218727 B2 JP4218727 B2 JP 4218727B2
Authority
JP
Japan
Prior art keywords
image
channel
transmittance
component
region
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
JP2007030140A
Other languages
Japanese (ja)
Other versions
JP2007202165A (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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2007030140A priority Critical patent/JP4218727B2/en
Publication of JP2007202165A publication Critical patent/JP2007202165A/en
Application granted granted Critical
Publication of JP4218727B2 publication Critical patent/JP4218727B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Television Signal Processing For Recording (AREA)
  • 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 data structure, an image recording method, an image recording apparatus, and an image recording program.

カラー画像の表現にはR/G/B、Y/Cr/Cb等の3チャンネルの画像成分が必要である。また画像データは容量が大きいため、一般に圧縮されたデータ形式でリムーバブルメモリ又は通信回線により搬送される。圧縮処理方式としてはJPEG方式が広く普及している。圧縮された画像データは、圧縮方式に対応した伸張回路を用いたハードウェア処理により高速に伸張することができる。
従来、2つの画像を重畳合成したり、画像をクリッピングしたりするための透過率成分であるαチャンネルを3チャンネルの画像成分に付加した画像データが知られている(例えば特許文献1参照)。
To represent a color image, three-channel image components such as R / G / B and Y / Cr / Cb are required. In addition, since image data has a large capacity, it is generally conveyed by a removable memory or a communication line in a compressed data format. As a compression processing method, the JPEG method is widely used. The compressed image data can be expanded at high speed by hardware processing using an expansion circuit corresponding to the compression method.
Conventionally, there has been known image data in which an α channel, which is a transmittance component for superimposing and synthesizing two images or clipping an image, is added to an image component of three channels (see, for example, Patent Document 1).

特開2001−202504号公報JP 2001-202504 A

しかし、画像データの伸張回路は3チャンネルの画像データを伸張するために専用設計されていることも多い。例えばJPEG方式の伸張回路では、たとえJPEG形式の画像データであっても、4チャンネルの画像データを伸張することができない場合がある。かかる場合、透過率成分、あるいは画像成分及び透過率成分の両方はソフトウェア処理によって伸張しなければならない。このように、3チャンネルの画像成分と圧縮した透過率成分とで構成される4チャンネルの画像データは汎用性が低いという問題がある。   However, the image data decompression circuit is often designed exclusively for decompressing 3-channel image data. For example, a JPEG decompression circuit may not be able to decompress 4-channel image data even if it is JPEG format image data. In such a case, the transmittance component, or both the image component and the transmittance component, must be decompressed by software processing. As described above, the 4-channel image data composed of the 3-channel image component and the compressed transmittance component has a problem of low versatility.

本発明の目的は、透過率成分を付加した汎用性の高い画像データを再生する画像再生方法、装置及びプログラムを提供することにある。   An object of the present invention is to provide an image reproducing method, apparatus, and program for reproducing versatile image data to which a transmittance component is added.

上記目的を達成するために、本発明に係わる画像再生方法は、3チャンネルの画像成分と1チャンネルの透過率成分とを有する圧縮画像データを再生する画像再生方法であって、
前記圧縮画像データは、3チャンネルの画像成分が圧縮形式で記録される画像領域と、前記画像成分と同一の圧縮形式の透過率成分及び2チャンネルの擬似成分が記録される前記画像領域と同一のデータ構造の透過率領域とを含み、前記画像領域を復号する画像領域復号段階と、前記透過率領域を復号する透過率領域復号段階と、前記画像領域復号段階により復号された3チャンネルの復号画像成分と、前記透過率領域復号段階により復号された前記透過率領域から前記2チャンネルの擬似チャンネルを無視することにより得られる1チャンネルの復号透過率成分とを有する復号画像データを再生する画像再生段階、を有することを特徴とする。
復号画像成分と、復号透過率領域から2チャンネルの擬似チャンネルを無視することにより従来の4チャンネルの画像と同様の再生像を得ることができる。したがって、本発明に係わる画像再生方法によると、3チャンネルの画像成分が圧縮形式で記録される画像領域と、画像成分と同一の圧縮形式の透過率成分及び2チャンネルの疑似成分が記録される前記画像領域と同一のデータ構造の透過率領域とを有する画像データを通常の4チャンネルの圧縮画像データと同様に再生することができる。
In order to achieve the above object, an image reproduction method according to the present invention is an image reproduction method for reproducing compressed image data having a three-channel image component and a one-channel transmittance component,
The compressed image data is the same as the image area in which the three-channel image component is recorded in the compression format, the transmission component in the same compression format as the image component, and the image area in which the two-channel pseudo component is recorded. An image area decoding stage for decoding the image area, a transparency area decoding stage for decoding the transparency area, and a three-channel decoded image decoded by the image area decoding stage. An image reproduction step of reproducing decoded image data having a component and a one-channel decoded transmittance component obtained by ignoring the two-channel pseudo channel from the transmittance region decoded by the transmittance region decoding step It is characterized by having.
By ignoring the decoded image component and the two-channel pseudo channel from the decoded transmittance region, a reproduction image similar to the conventional four-channel image can be obtained. Therefore, according to the image reproduction method according to the present invention, the image area in which the image components of the three channels are recorded in the compression format, the transmittance component in the same compression format as the image components, and the pseudo component of the two channels are recorded. Image data having an image area and a transmittance area having the same data structure can be reproduced in the same manner as normal 4-channel compressed image data.

さらに本発明に係る画像データ構造では、前記画像領域及び前記透過率領域の構造は3チャンネルのJPEG形式であることを特徴とする。3チャンネルのJPEG形式を採用することによりさらに汎用性を高めることができる。
さらに本発明に係る画像データ構造では、画像成分、透過率成分及び疑似成分は1ファイルに記録されることを特徴とする。画像成分、透過率成分及び疑似成分を1ファイルに記録することにより透過率成分を付加された画像データの可搬性を向上させることができる。
Furthermore, in the image data structure according to the present invention, the structure of the image region and the transmittance region is a three-channel JPEG format. By adopting the 3-channel JPEG format, versatility can be further enhanced.
Further, the image data structure according to the present invention is characterized in that the image component, the transmittance component, and the pseudo component are recorded in one file. By recording the image component, the transmittance component, and the pseudo component in one file, the portability of the image data to which the transmittance component is added can be improved.

尚、本発明は方法の発明として特定できるだけでなく、プログラムの発明としても、そのプログラムを記録した記録媒体の発明としても、装置の発明としても特定することができる。また、本発明に備わる複数の手段の各機能は、構成自体で機能が特定されるハードウェア資源、プログラムにより機能が特定されるハードウェア資源、又はそれらの組み合わせにより実現される。また、これら複数の手段の各機能は、各々が物理的に互いに独立したハードウェア資源で実現されるものに限定されない。   The present invention can be specified not only as a method invention but also as a program invention, a recording medium recording the program, and a device invention. In addition, each function of the plurality of means provided in the present invention is realized by a hardware resource whose function is specified by the configuration itself, a hardware resource whose function is specified by a program, or a combination thereof. The functions of the plurality of means are not limited to those realized by hardware resources that are physically independent of each other.

以下、複数の実施例に基づいて本発明の実施の形態を説明する。
(第一実施例)
図2は、本発明の第一実施例による画像記録装置を示すブロック図である。この画像記録装置は、後述する画像記録プログラムを実行することにより画像データをリムーバブルメモリ18に記録するコンピュータシステムである。このコンピュータシステムは、CPU10、ROM12、RAM14、ディスプレイ16、キーボード28、マウス26、ハードディスク24、カードコントローラ20、ネットワークインタフェース22等を備え、これらの各構成要素は互いにバスで接続されている。
Embodiments of the present invention will be described below based on a plurality of examples.
(First Example)
FIG. 2 is a block diagram showing an image recording apparatus according to the first embodiment of the present invention. This image recording apparatus is a computer system that records image data in the removable memory 18 by executing an image recording program described later. This computer system includes a CPU 10, a ROM 12, a RAM 14, a display 16, a keyboard 28, a mouse 26, a hard disk 24, a card controller 20, a network interface 22, and the like, and these components are connected to each other by a bus.

CPU10は、ROM12に格納された画像記録プログラムを実行することにより、後述する画像データ処理を実行し、図示しないデバイスコントローラを介してRAM14、ディスプレイ16、ハードディスク24、カードコントローラ20等を制御する。ROM12は、CPU10が動作するために最低限必要な制御プログラムやデータが予め格納された不揮発性メモリである。RAM14は、各種のプログラムやデータが一時的に格納されるメモリである。ハードディスク24は、OSや画像記録プログラムが格納される不揮発性メモリである。画像記録プログラムや各種のデータは、所定のサーバからネットワークを介してダウンロードして入力してもよいし、リムーバブルメモリ18等のコンピュータ読み取り可能な記憶媒体から読み出して入力してもよい。カードコントローラ20は、リムーバブルメモリ18の読み書きを制御する。ネットワークインタフェース22は、モデムやネットワークインタフェースカードによって構成される。   The CPU 10 executes image data processing described later by executing an image recording program stored in the ROM 12, and controls the RAM 14, the display 16, the hard disk 24, the card controller 20, and the like via a device controller (not shown). The ROM 12 is a non-volatile memory in which a minimum control program and data necessary for the operation of the CPU 10 are stored in advance. The RAM 14 is a memory that temporarily stores various programs and data. The hard disk 24 is a nonvolatile memory that stores an OS and an image recording program. The image recording program and various data may be downloaded and input from a predetermined server via a network, or may be read from a computer-readable storage medium such as the removable memory 18 and input. The card controller 20 controls reading / writing of the removable memory 18. The network interface 22 is configured by a modem or a network interface card.

リムーバブルメモリ18に格納された画像データとネットワークインタフェース22を通じて送信される画像データとは、例えばプリンタ、ディスプレイ、プロジェクタ等の再生装置で利用される。プリンタ、ディスプレイ、プロジェクタ等の再生装置では本実施例による画像データを利用することにより、画像データの画像成分を、画像成分に付加された透過率成分を用いて他の画像データと合成し、合成画像を再生することができる。   The image data stored in the removable memory 18 and the image data transmitted through the network interface 22 are used in a playback device such as a printer, a display, or a projector. By using the image data according to the present embodiment in a playback device such as a printer, a display, or a projector, the image component of the image data is combined with other image data using the transmittance component added to the image component, and combined. Images can be played back.

図3は、本発明の第一実施例による画像データによって表現される画像30を示す模式図である。ハッチングを付した領域は透明な領域であって、画像30に図4に示すような別の画像32を重畳すると図5に示すように当該領域に別の画像32がはめ込み合成された合成画像34が形成される。   FIG. 3 is a schematic diagram showing an image 30 represented by image data according to the first embodiment of the present invention. The hatched area is a transparent area, and when another image 32 as shown in FIG. 4 is superimposed on the image 30, a composite image 34 in which the other image 32 is inserted into the area and synthesized as shown in FIG. Is formed.

図6は本発明の第一実施例による画像データに含まれる画像成分と透過率成分を説明するための模式図である。画像成分はR/G/B、Y/Cb/Crなどの3チャンネルの濃度情報で構成される。濃度情報は画素毎に記録された3つの階調値からなる。各階調値のレベル数は任意であって、例えば8ビットとし一画素当たり24ビットで画像成分を記録する。   FIG. 6 is a schematic diagram for explaining image components and transmittance components included in image data according to the first embodiment of the present invention. The image component is composed of density information of three channels such as R / G / B and Y / Cb / Cr. The density information is composed of three gradation values recorded for each pixel. The number of levels of each gradation value is arbitrary, for example, 8 bits, and image components are recorded at 24 bits per pixel.

透過率成分は1チャンネルの透過率情報で構成される。透過率情報は画像成分の画素毎に当該画素の透過率を階調値で規定する情報である。以下、透過率成分をαチャンネルというものとする。αチャンネルのレベル数は任意であるが、画像成分のレベル数と同一のレベル数であることが望ましい。8ビットのαチャンネルでは、例えば0を透明とし、255を不透明としてαチャンネルを定義する。αチャンネルでは2つの画素から合成画像の1画素を形成する処理における2つの画素の重み付けを規定することができる。αチャンネルが透明である画素は、αチャンネルが付加された画像成分によって表される画像と図4に示すような別の画像32とを重畳合成した場合、別の画像32の画素が優先して表示される。αチャンネルが不透明である画素は、同様の場合において、αチャンネルが付加された画像成分によって表される画像の画素が優先して表示される。図6では、αチャンネルが透明の範囲をハッチングにより示している。尚、αチャンネルが付加された画像成分によって表される画像と、その画像に重畳合成される画像との位置合わせは、別途座標を指定することにより行う。   The transmittance component is composed of transmittance information of one channel. The transmittance information is information that defines, for each pixel of the image component, the transmittance of the pixel by a gradation value. Hereinafter, the transmittance component is referred to as an α channel. The number of levels of the α channel is arbitrary, but is desirably the same as the number of levels of the image component. In the 8-bit α channel, for example, 0 is transparent and 255 is opaque to define the α channel. In the α channel, the weighting of two pixels in the process of forming one pixel of a composite image from two pixels can be defined. When the α channel is transparent, when the image represented by the image component to which the α channel is added and another image 32 as shown in FIG. 4 are superimposed and synthesized, the pixel of the other image 32 has priority. Is displayed. In the same case, the pixels in which the α channel is opaque are displayed with priority on the pixels of the image represented by the image component to which the α channel is added. In FIG. 6, the range in which the α channel is transparent is indicated by hatching. Note that alignment between the image represented by the image component to which the α channel is added and the image superimposed on the image is performed by separately specifying coordinates.

図7は画像記録装置において画像記録処理を実施する手段を示すブロック図である。各手段はハードウェアによって実現してもよいし、ソフトウェアによって実現してもよい。以下、画像記録プログラムのプロセスによって各手段を実現するものとして説明する。画像記録処理は、3チャンネルの画像成分、αチャンネル、第一疑似チャンネル、第二疑似チャンネルを圧縮してリムーバブルメモリ18、ハードディスク24、通信回線等に出力する処理である。   FIG. 7 is a block diagram showing means for performing image recording processing in the image recording apparatus. Each means may be realized by hardware or software. In the following description, each means is realized by the process of the image recording program. The image recording process is a process of compressing the image component of three channels, the α channel, the first pseudo channel, and the second pseudo channel and outputting them to the removable memory 18, the hard disk 24, the communication line, and the like.

DCTプロセスP100ではブロック毎にDCT(discrete cosine transform)を実施する。DCTプロセスP100には、Y/Cb/Cr等の3チャンネルの画像成分、αチャンネル、第一疑似チャンネル及び第二疑似チャンネルが入力され、DCTプロセスP100からは、それらのDCT係数が出力される。Y/Cb/Cr等の3チャンネルの画像成分と、αチャンネルとは、画像記録プログラムと別の画像編集プログラムから出力されるものである。   In the DCT process P100, DCT (discrete cosine transform) is performed for each block. The DCT process P100 receives three channel image components such as Y / Cb / Cr, the α channel, the first pseudo channel, and the second pseudo channel, and the DCT process P100 outputs their DCT coefficients. The three-channel image components such as Y / Cb / Cr and the α channel are output from an image editing program different from the image recording program.

第一疑似チャンネル及び第二疑似チャンネルは、画像記録プログラムの疑似成分形成プロセスP110からDCTプロセスP100に出力され、αチャンネルと同一のデータ構造を有する。すなわち、疑似成分形成プロセスP110は、αチャンネルと同一の画素数で同一レベル数の階調値で構成される2つの集合を第一疑似チャンネル及び第二疑似チャンネルとして出力する。疑似成分形成プロセスP110では、第一疑似チャンネル及び第二疑似チャンネルの全画素を0、255のように同一値に設定することにより、第一疑似チャンネル及び第二疑似チャンネルのエントロピーを0にすることが望ましい。これにより疑似成分の圧縮効率を最大限高めることができ、疑似成分によるリムーバブルメモリ18の容量の浪費を抑制することができる。   The first pseudo channel and the second pseudo channel are output from the pseudo component forming process P110 of the image recording program to the DCT process P100, and have the same data structure as the α channel. That is, the pseudo component forming process P110 outputs two sets of gradation values having the same number of pixels and the same level as the α channel as the first pseudo channel and the second pseudo channel. In the pseudo component forming process P110, by setting all the pixels of the first pseudo channel and the second pseudo channel to the same value such as 0 and 255, the entropy of the first pseudo channel and the second pseudo channel is set to 0. Is desirable. Thereby, the compression efficiency of the pseudo component can be maximized, and the waste of the capacity of the removable memory 18 due to the pseudo component can be suppressed.

量子化プロセスP120では量子化を実施する。量子化プロセスP120には、Y/Cb/Cr等の3チャンネルの画像成分、αチャンネル、第一疑似チャンネル及び第二疑似チャンネルのDCT係数が入力され、それらの量子化された値(量子化DCT係数)が出力される。量子化代表値は量子化テーブル36に格納されている。量子化プロセスP120では、入力されたDCT係数から量子化代表値が格納された量子化テーブルのアドレスを求め、求めたアドレスに格納された量子化代表値を読み出して量子化DCT係数として出力することにより、入力されたDCT係数を量子化する。量子化テーブル36は、チャンネル毎に異なるものを利用するが、特に第一疑似チャンネル及び第二疑似チャンネルについては量子化ステップ幅が他のチャンネルについて利用するものよりも大きいものを利用するとよい。これにより第一疑似チャンネル及び第二疑似チャンネルのエントロピーを他のチャンネルよりも大幅に低減することができる。   In the quantization process P120, quantization is performed. The quantization process P120 is input with image components of three channels such as Y / Cb / Cr, DCT coefficients of the α channel, the first pseudo channel, and the second pseudo channel, and their quantized values (quantized DCT). Coefficient) is output. The quantization representative value is stored in the quantization table 36. In the quantization process P120, the address of the quantization table in which the quantized representative value is stored is obtained from the input DCT coefficient, and the quantized representative value stored in the obtained address is read and output as the quantized DCT coefficient. Thus, the input DCT coefficient is quantized. A different quantization table 36 is used for each channel, and in particular, the first pseudo channel and the second pseudo channel may have a larger quantization step width than that used for other channels. Thereby, the entropy of the first pseudo channel and the second pseudo channel can be significantly reduced as compared with other channels.

ランレングス・ハフマン符号化プロセスP130ではランレングス符号化及びハフマン符号化を組み合わせた符号化を実施する。ランレングス・ハフマン符号化プロセスP130には、Y/Cb/Cr等の3チャンネルの画像成分、αチャンネル、第一疑似チャンネル及び第二疑似チャンネルの量子化DCT係数が入力され、例えばそれらのランレングス及びゼロランに続く値の各組についてハフマン符号を割り当てることにより符号化した値(ハフマン符号)が出力される。ハフマン符号はハフマンテーブルによって決まり、ハフマンテーブルはランレングス及びゼロランに続く値により決まる。ハフマン符号を復号するには、符号化に用いたハフマンテーブルが必要になる。ハフマンテーブルの可搬性を向上させるため、符号処理装置と復号処理装置間でハフマンテーブルを一義的に特定するためのプロトコルを規定することにより、ハフマンテーブル自体を渡すかわりに、符号化に用いたハフマンテーブルを構成するために必要な情報(ハフマンテーブル定義情報)を復号装置に渡すことが望ましい。   In the run-length Huffman encoding process P130, encoding combining run-length encoding and Huffman encoding is performed. The run-length Huffman encoding process P130 receives three-channel image components such as Y / Cb / Cr, α channel, first pseudo channel, and quantized DCT coefficients of the second pseudo channel, for example, their run lengths. And a value (Huffman code) encoded by assigning a Huffman code to each set of values following the zero run is output. The Huffman code is determined by the Huffman table, and the Huffman table is determined by the value following the run length and zero run. In order to decode the Huffman code, the Huffman table used for encoding is required. In order to improve the portability of the Huffman table, by defining a protocol for uniquely identifying the Huffman table between the code processing device and the decoding processing device, the Huffman table used for encoding instead of passing the Huffman table itself It is desirable to pass information (Huffman table definition information) necessary for configuring the table to the decoding device.

図1は第一実施例による画像データの構造を示すデータ構造図である。書き込みプロセスP150では、リムーバブルメモリ18に図1の構造で画像データを書き込む。以下、画像領域及び透過率領域にJPEG圧縮のフォーマットでデータを格納するものとして説明するが、画像領域及び透過率領域に格納するデータの圧縮方式及びフォーマットは互いに同一の形式でさえあればJPEG圧縮のフォーマットに限定されるものではない。具体的には例えば、圧縮にウェーブレット変換、予測符号化、マルコフ符号化等を用いてもよい。またフォーマットは標準化されていないものであってもよい。   FIG. 1 is a data structure diagram showing the structure of image data according to the first embodiment. In the writing process P150, the image data is written in the removable memory 18 with the structure of FIG. In the following description, it is assumed that data is stored in the JPEG compression format in the image area and the transmission area. However, as long as the compression method and format of the data stored in the image area and the transmission area are the same, JPEG compression is used. It is not limited to the format. Specifically, for example, wavelet transform, predictive coding, Markov coding, or the like may be used for compression. The format may not be standardized.

本実施例の画像データは、前述したとおり、3チャンネルの画像成分にαチャンネルを付加したものである。画像データは可搬性を向上させるため1ファイルに格納することが望ましい。例えば画像成分は、JFIFフォーマットのファイル内の本画像の圧縮データ領域に3チャンネルのJPEG圧縮のフォーマットで格納する。これにより画像成分は、通常の3チャンネルのJPEG圧縮データとして復号可能となる。αチャンネルは第一疑似チャンネル及び第二疑似チャンネルとともにファイル内の透過率領域に3チャンネルのJPEG圧縮のフォーマットで格納する。透過率領域は、例えばJFIFフォーマットのAPP1内にサムネイル画像の圧縮データを格納するのと同じように、JFIFフォーマットのAPP7内の圧縮データ領域に格納する。これによりαチャンネル及び第一疑似チャンネル及び第二疑似チャンネルは、APP7の部分のみを切り出すことにより、そのまま通常の3チャンネルのJPEG圧縮データとして復号可能となる。αチャンネルを利用するときには、復号された第一疑似チャンネル及び第二疑似チャンネルは無視すればよい。画像領域及び透過率領域の詳細なデータ構造については3チャンネルのJPEG圧縮のフォーマットであるものとして説明を省略する。   As described above, the image data of this embodiment is obtained by adding an α channel to the image components of three channels. It is desirable to store the image data in one file in order to improve portability. For example, the image component is stored in the compressed data area of the main image in the JFIF format file in the 3-channel JPEG compression format. As a result, the image component can be decoded as normal three-channel JPEG compressed data. The α channel is stored together with the first pseudo channel and the second pseudo channel in the JPEG compression format of 3 channels in the transmittance area in the file. The transparency area is stored in the compressed data area in the JFIF format APP7 in the same manner as the compressed data of the thumbnail image is stored in the JFIF format APP1, for example. Accordingly, the α channel, the first pseudo channel, and the second pseudo channel can be decoded as normal three-channel JPEG compressed data by cutting out only the APP7 portion. When the α channel is used, the decoded first pseudo channel and second pseudo channel may be ignored. The detailed data structure of the image area and the transmittance area is omitted because it is a 3-channel JPEG compression format.

第一実施例に係る構造の画像データは、画像成分も透過率成分も同じ3チャンネルのJPEG圧縮のフォーマットで記録されるため、画像成分と透過率成分とを同一の処理方式で復号することができる。したがって、透過率成分を付加された本実施例による画像データ構造は汎用性が高い。   Since the image data having the structure according to the first embodiment is recorded in the same 3-channel JPEG compression format as the image component and the transmittance component, the image component and the transmittance component can be decoded by the same processing method. it can. Therefore, the image data structure according to this embodiment to which the transmittance component is added is highly versatile.

(第二実施例)
本発明の第二実施例は、第一疑似チャンネル及び第二疑似チャンネルの処理が第一実施例と異なり、その他の点では第一実施例と共通する。
図8は画像記録装置において画像記録処理を実施する手段を示すブロック図である。DCTプロセスP105ではブロック毎にDCT(discrete cosine transform)を実施する。DCTプロセスP105には、Y/Cb/Cr等の3チャンネルの画像成分及びαチャンネルが入力され、DCTプロセスP105からは、それらのDCT係数が出力される。
(Second embodiment)
The second embodiment of the present invention differs from the first embodiment in the processing of the first pseudo channel and the second pseudo channel, and is otherwise common to the first embodiment.
FIG. 8 is a block diagram showing means for performing image recording processing in the image recording apparatus. In the DCT process P105, DCT (discrete cosine transform) is performed for each block. Three-channel image components such as Y / Cb / Cr and α channel are input to the DCT process P105, and those DCT coefficients are output from the DCT process P105.

第一疑似チャンネル及び第二疑似チャンネルは、疑似成分形成プロセスP112から量子化プロセスP120に出力され、αチャンネルのDCT係数と同一のデータ構造を有する。すなわち、疑似成分形成プロセスP112は、αチャンネルと同一の画素数で同一レベル数の階調値で構成される2つの集合を第一疑似チャンネル及び第二疑似チャンネルとして出力する。疑似成分形成プロセスP112では、第一疑似チャンネル及び第二疑似チャンネルの全画素を0、255のように同一値に設定することにより、第一疑似チャンネル及び第二疑似チャンネルのエントロピーを0にすることが望ましい。これにより疑似成分の圧縮効率を最大限高めることができ、疑似成分によるリムーバブルメモリ18の容量の浪費を抑制することができる。
量子化プロセスP120、ランレングス・ハフマン符号化プロセスP130、ハフマン符号化プロセスP140及び書き込みプロセスP150については、第一実施例と同様であるため説明を省略する。
The first pseudo channel and the second pseudo channel are output from the pseudo component forming process P112 to the quantization process P120, and have the same data structure as the DCT coefficient of the α channel. That is, the pseudo component forming process P112 outputs two sets of gradation values having the same number of pixels and the same level as the α channel as the first pseudo channel and the second pseudo channel. In the pseudo component formation process P112, the entropy of the first pseudo channel and the second pseudo channel is set to 0 by setting all the pixels of the first pseudo channel and the second pseudo channel to the same value such as 0 and 255. Is desirable. Thereby, the compression efficiency of the pseudo component can be maximized, and the waste of the capacity of the removable memory 18 due to the pseudo component can be suppressed.
Since the quantization process P120, the run-length Huffman encoding process P130, the Huffman encoding process P140, and the writing process P150 are the same as those in the first embodiment, description thereof is omitted.

(第三実施例)
本発明の第三実施例は、第一疑似チャンネル及び第二疑似チャンネルの処理が第一実施例と異なり、その他の点では第一実施例と共通する。
図9は画像記録装置において画像記録処理を実施する手段を示すブロック図である。DCTプロセスP105については第二実施例と同様であるため説明を省略する。
(Third embodiment)
The third embodiment of the present invention differs from the first embodiment in the processing of the first pseudo channel and the second pseudo channel, and is otherwise common to the first embodiment.
FIG. 9 is a block diagram showing means for performing image recording processing in the image recording apparatus. Since the DCT process P105 is the same as that of the second embodiment, the description thereof is omitted.

量子化プロセスP125では量子化を実施する。量子化プロセスP125には、Y/Cb/Cr等の3チャンネルの画像成分及びαチャンネルのDCT係数が入力され、それらの量子化された値(量子化DCT係数)が出力される。量子化代表値は量子化テーブル36に格納されている。量子化プロセスP125では、入力されたDCT係数から量子化代表値が格納された量子化テーブルのアドレスを求め、求めたアドレスに格納された量子化代表値を読み出して量子化DCT係数として出力することにより、入力されたDCT係数を量子化する。   In the quantization process P125, quantization is performed. The quantization process P125 receives three-channel image components such as Y / Cb / Cr and α-channel DCT coefficients, and outputs their quantized values (quantized DCT coefficients). The quantization representative value is stored in the quantization table 36. In the quantization process P125, the address of the quantization table in which the quantized representative value is stored is obtained from the input DCT coefficient, the quantized representative value stored in the obtained address is read and output as the quantized DCT coefficient. Thus, the input DCT coefficient is quantized.

第一疑似チャンネル及び第二疑似チャンネルは、画像記録プログラムの疑似成分形成プロセスP114からランレングス・ハフマン符号化プロセスP130に出力され、αチャンネルの量子化DCT係数と同一のデータ構造を有する。すなわち、疑似成分形成プロセスP114は、αチャンネルと同一の画素数で同一レベル数の階調値で構成される2つの集合を第一疑似チャンネル及び第二疑似チャンネルとして出力する。疑似成分形成プロセスP114では、第一疑似チャンネル及び第二疑似チャンネルの全画素を0、255のように同一値に設定することにより、第一疑似チャンネル及び第二疑似チャンネルのエントロピーを0にすることが望ましい。これにより疑似成分の圧縮効率を最大限高めることができ、疑似成分によるリムーバブルメモリ18の容量の浪費を抑制することができる。尚、第一疑似チャンネル及び第二疑似チャンネルを復号するための量子化テーブルは疑似成分形成プロセスから書き込みプロセスに出力してもよい。第一疑似チャンネル及び第二疑似チャンネルは復号しても利用価値がないものである。したがって、第一疑似チャンネル及び第二疑似チャンネルの復号処理は、符号処理に対応させて行う必要はなく、いわばでたらめに行ってもよい。このため、第一疑似チャンネル及び第二疑似チャンネルの量子化テーブルはフォーマットさえαチャンネルの量子化テーブルと一致させておけば、その内容自体は何でもよい。
ランレングス・ハフマン符号化プロセスP130、ハフマン符号化プロセスP140及び書き込みプロセスP150については、第一実施例と同様であるため説明を省略する。
The first pseudo channel and the second pseudo channel are output from the pseudo component forming process P114 of the image recording program to the run-length Huffman encoding process P130, and have the same data structure as the quantized DCT coefficient of the α channel. That is, the pseudo component forming process P114 outputs two sets of gradation values having the same number of pixels and the same number of levels as the α channel as the first pseudo channel and the second pseudo channel. In the pseudo component formation process P114, the entropy of the first pseudo channel and the second pseudo channel is set to 0 by setting all the pixels of the first pseudo channel and the second pseudo channel to the same value such as 0 and 255. Is desirable. Thereby, the compression efficiency of the pseudo component can be maximized, and the waste of the capacity of the removable memory 18 due to the pseudo component can be suppressed. The quantization table for decoding the first pseudo channel and the second pseudo channel may be output from the pseudo component forming process to the writing process. The first pseudo channel and the second pseudo channel are not useful even if they are decoded. Therefore, the decoding process of the first pseudo channel and the second pseudo channel need not be performed in correspondence with the code process, and may be performed in a random manner. For this reason, as long as the quantization table of the first pseudo channel and the second pseudo channel matches the quantization table of the α channel, the contents themselves may be anything.
Since the run-length Huffman encoding process P130, the Huffman encoding process P140, and the writing process P150 are the same as those in the first embodiment, description thereof is omitted.

(第四実施例)
本発明の第四実施例は、第一疑似チャンネル及び第二疑似チャンネルの処理が第一実施例と異なり、その他の点では第一実施例と共通する。
図10は画像記録装置において画像記録処理を実施する手段を示すブロック図である。DCTプロセスP105及び量子化プロセスP125については第三実施例と同様であるため説明を省略する。
(Fourth embodiment)
The fourth embodiment of the present invention differs from the first embodiment in the processing of the first pseudo channel and the second pseudo channel, and is otherwise common to the first embodiment.
FIG. 10 is a block diagram showing means for performing image recording processing in the image recording apparatus. Since the DCT process P105 and the quantization process P125 are the same as those in the third embodiment, description thereof will be omitted.

ランレングス・ハフマン符号化プロセスP135ではランレングス符号化及びハフマン符号化を組み合わせた符号化を実施する。ランレングス・ハフマン符号化プロセスP135には、Y/Cb/Cr等の3チャンネルの画像成分、αチャンネルが入力され、例えばそれらのランレングス及びゼロランに続く値の各組についてハフマン符号を割り当てることにより符号化した値(ハフマン符号)が出力される。ハフマン符号はハフマンテーブルによって決まり、ハフマンテーブルはランレングス及びゼロランに続く値により決まる。ハフマン符号を復号するには、符号化に用いたハフマンテーブルが必要になる。ハフマンテーブルの可搬性を向上させるため、符号処理装置と復号処理装置間でハフマンテーブルを一義的に特定するためのプロトコルを規定することにより、ハフマンテーブル自体を渡すかわりに、符号化に用いたハフマンテーブルを構成するために必要な情報(ハフマンテーブル定義情報)を復号装置に渡すことが望ましい。   In the run-length Huffman encoding process P135, encoding combining run-length encoding and Huffman encoding is performed. The run-length Huffman encoding process P135 receives three channels of image components such as Y / Cb / Cr and the α channel, and assigns a Huffman code to each set of values following the run length and zero run, for example. The encoded value (Huffman code) is output. The Huffman code is determined by the Huffman table, and the Huffman table is determined by the value following the run length and zero run. In order to decode the Huffman code, the Huffman table used for encoding is required. In order to improve the portability of the Huffman table, by defining a protocol for uniquely identifying the Huffman table between the code processing device and the decoding processing device, the Huffman table used for encoding instead of passing the Huffman table itself It is desirable to pass information (Huffman table definition information) necessary for configuring the table to the decoding device.

第一疑似チャンネル及び第二疑似チャンネルは、画像記録プログラムの疑似成分形成プロセスP118から書き込みプロセスP150に出力され、αチャンネルのハフマン符号と同一のデータ構造を有する。疑似成分形成プロセスP118では、0ランの長さが第一疑似チャンネル及び第二疑似チャンネルの1ブロックの画素数に一致するランレングス符号のハフマン符号をブロック毎に出力することにより、第一疑似チャンネル及び第二疑似チャンネルのデータ量を最小化することが望ましい。尚、第一疑似チャンネル及び第二疑似チャンネルを復号するための量子化テーブル及びハフマンテーブル定義情報は疑似成分形成プロセスP118から書き込みプロセスP150に出力してもよい。第一疑似チャンネル及び第二疑似チャンネルの量子化テーブル及びハフマンテーブル定義情報は、フォーマットさえαチャンネルの量子化テーブル及びハフマンテーブル定義情報と一致させておけば、その内容自体は何でもよい。
書き込みプロセスP150については第一実施例と同様であるため説明を省略する。
The first pseudo channel and the second pseudo channel are output from the pseudo component forming process P118 of the image recording program to the writing process P150, and have the same data structure as the Huffman code of the α channel. In the pseudo component forming process P118, the first pseudo channel is output by outputting a Huffman code of a run length code in which the length of 0 run matches the number of pixels of one block of the first pseudo channel and the second pseudo channel for each block. It is desirable to minimize the data amount of the second pseudo channel. The quantization table and the Huffman table definition information for decoding the first pseudo channel and the second pseudo channel may be output from the pseudo component forming process P118 to the writing process P150. The quantization table and Huffman table definition information of the first pseudo channel and the second pseudo channel may be anything as long as the format matches the quantization table and Huffman table definition information of the α channel.
Since the writing process P150 is the same as that of the first embodiment, the description thereof is omitted.

第一実施例による画像データの構造を示すデータ構造図である。It is a data structure figure which shows the structure of the image data by a 1st Example. 第一実施例による画像記録装置を示すブロック図である。1 is a block diagram illustrating an image recording apparatus according to a first embodiment. 画像を示す模式図である。It is a schematic diagram which shows an image. 画像を示す模式図である。It is a schematic diagram which shows an image. 合成画像を示す模式図である。It is a schematic diagram which shows a synthesized image. 第一実施例に関する模式図である。It is a schematic diagram regarding a 1st Example. 第一実施例に関するブロック図である。It is a block diagram regarding the first embodiment. 第二実施例に関するブロック図である。It is a block diagram regarding the second embodiment. 第三実施例に関するブロック図である。It is a block diagram regarding the third embodiment. 第四実施例に関するブロック図である。It is a block diagram regarding the fourth embodiment.

符号の説明Explanation of symbols

P100…DCTプロセス、P105…DCTプロセス、P110…疑似成分形成プロセス、P112…疑似成分形成プロセス、P114…疑似成分形成プロセス、P116…疑似成分形成プロセス、P118…疑似成分形成プロセス、P120…量子化プロセス、P125…量子化プロセス、P130…ランレングス・ハフマン符号化プロセス、P135…ランレングス・ハフマン符号化プロセス、P140…ハフマン符号化プロセス、P145…ハフマン符号化プロセス、P150…書き込みプロセス。   P100 ... DCT process, P105 ... DCT process, P110 ... Pseudo component formation process, P112 ... Pseudo component formation process, P114 ... Pseudo component formation process, P116 ... Pseudo component formation process, P118 ... Pseudo component formation process, P120 ... Quantization process , P125 ... quantization process, P130 ... run-length Huffman encoding process, P135 ... run-length Huffman encoding process, P140 ... Huffman encoding process, P145 ... Huffman encoding process, P150 ... write process.

Claims (9)

圧縮画像データを再生する画像再生方法であって、
前記圧縮画像データは、3チャンネルの画像成分が圧縮形式で記録される画像領域及び、前記画像成分と同一の圧縮形式の透過率成分並びに2チャンネルの擬似成分が記録される前記画像領域と同一のデータ構造の透過率領域とを含み、
前記画像領域を復号する画像領域復号段階と、
前記透過率領域を復号する透過率領域復号段階と、
前記画像領域復号段階により復号された3チャンネルの復号画像成分と、前記透過率領域復号段階により復号された前記透過率領域から前記2チャンネルの擬似チャンネルを無視することにより得られる1チャンネルの復号透過率成分とを有する復号画像データを再生する画像再生段階と、
を有することを特徴とする画像再生方法。
An image reproduction method for reproducing compressed image data,
The compressed image data is the same as the image area in which the image components of the three channels are recorded in the compression format, the transmittance component in the same compression format as the image components, and the image area in which the pseudo components of the two channels are recorded. Including the transparency region of the data structure,
An image region decoding stage for decoding the image region;
A transmittance region decoding step of decoding the transmittance region;
One channel decoded transmission obtained by ignoring the two-channel pseudo channel from the three-channel decoded image component decoded by the image region decoding step and the transmittance region decoded by the transmittance region decoding step. An image reproduction stage for reproducing decoded image data having a rate component;
An image reproduction method comprising:
前記画像領域復号段階と前記透過率領域復号段階は、同一の処理方式で復号を行うことを特徴とする請求項1に記載の画像再生方法。   The image reproducing method according to claim 1, wherein the image region decoding step and the transmittance region decoding step perform decoding by the same processing method. 前記画像領域及び前記透過率領域の構造は3チャンネルのJPEG形式であることを特徴とする請求項1又は2に記載の画像再生方法。   3. The image reproducing method according to claim 1, wherein the structure of the image area and the transmittance area is a three-channel JPEG format. 画像成分、透過率成分及び擬似成分は1ファイルに記録されることを特徴とする請求項1から3のいずれか一項に記載の画像再生方法。   The image reproducing method according to claim 1, wherein the image component, the transmittance component, and the pseudo component are recorded in one file. 圧縮画像データを再生する画像再生装置であって、
前記圧縮画像データは、3チャンネルの画像成分が圧縮形式で記録される画像領域及び、前記画像成分と同一の圧縮形式の透過率成分並びに2チャンネルの擬似成分が記録される前記画像領域と同一のデータ構造の透過率領域とを含み、
前記画像領域を復号する画像領域復号手段と、
前記透過率領域を復号する透過率領域復号手段と、
前記画像領域復号手段により復号された3チャンネルの復号画像成分と、前記透過率領域復号手段により復号された前記透過率領域から前記2チャンネルの擬似チャンネルを無視することにより得られる1チャンネルの復号透過率成分とを有する復号画像データを再生する画像再生手段と、
を有することを特徴とする画像再生装置。
An image reproduction device for reproducing compressed image data,
The compressed image data is the same as the image area in which the image components of three channels are recorded in a compressed format, the transmittance component in the same compression format as the image components, and the image region in which the pseudo components of two channels are recorded. Including the transparency region of the data structure,
Image region decoding means for decoding the image region;
A transmittance region decoding means for decoding the transmittance region;
One channel decoded transmission obtained by ignoring the two-channel pseudo channel from the three-channel decoded image component decoded by the image region decoding unit and the transmittance region decoded by the transmittance region decoding unit. Image reproduction means for reproducing decoded image data having a rate component;
An image reproducing apparatus comprising:
前記画像領域復号手段と前記透過率領域復号手段は、同一の処理方式で復号を行うことを特徴とする請求項5に記載の画像再生装置。   6. The image reproduction apparatus according to claim 5, wherein the image area decoding unit and the transmittance area decoding unit perform decoding by the same processing method. 前記画像領域及び前記透過率領域の構造は3チャンネルのJPEG形式であることを特徴とする請求項5又は6に記載の画像再生装置。   7. The image reproducing apparatus according to claim 5, wherein the structure of the image area and the transmittance area is a three-channel JPEG format. 画像成分、透過率成分及び擬似成分は1ファイルに記録されることを特徴とする請求項5から7のいずれか一項に記載の画像再生装置。   The image reproducing apparatus according to claim 5, wherein the image component, the transmittance component, and the pseudo component are recorded in one file. 圧縮画像データを再生する画像再生プログラムであって、
前記圧縮画像データは、3チャンネルの画像成分が圧縮形式で記録される画像領域及び、前記画像成分と同一の圧縮形式の透過率成分並びに2チャンネルの擬似成分が記録される前記画像領域と同一のデータ構造の透過率領域とを含み、
前記画像領域を復号する画像領域復号手段と、
前記透過率領域を復号する透過率領域復号手段と、
前記画像領域復号手段により復号された3チャンネルの復号画像成分と、前記透過率領域復号手段により復号された前記透過率領域から前記2チャンネルの擬似チャンネルを無視することにより得られる1チャンネルの復号透過率成分とを有する復号画像データを再生する画像再生手段としてコンピュータを機能させることを特徴とする画像再生プログラム。
An image reproduction program for reproducing compressed image data,
The compressed image data is the same as the image area in which the image components of three channels are recorded in a compressed format, the transmittance component in the same compression format as the image components, and the image region in which the pseudo components of two channels are recorded. Including the transparency region of the data structure,
Image region decoding means for decoding the image region;
A transmittance region decoding means for decoding the transmittance region;
One channel decoded transmission obtained by ignoring the two-channel pseudo channel from the three-channel decoded image component decoded by the image region decoding unit and the transmittance region decoded by the transmittance region decoding unit. An image reproduction program that causes a computer to function as image reproduction means for reproducing decoded image data having a rate component.
JP2007030140A 2007-02-09 2007-02-09 Image reproduction method, image reproduction apparatus, and image reproduction program Expired - Fee Related JP4218727B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007030140A JP4218727B2 (en) 2007-02-09 2007-02-09 Image reproduction method, image reproduction apparatus, and image reproduction program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007030140A JP4218727B2 (en) 2007-02-09 2007-02-09 Image reproduction method, image reproduction apparatus, and image reproduction program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2003010009A Division JP3938054B2 (en) 2003-01-17 2003-01-17 Computer-readable storage medium on which data having an image data structure is recorded, image recording method, apparatus, and program

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2007052570A Division JP4218728B2 (en) 2007-03-02 2007-03-02 Image recording / reproducing method, image recording / reproducing apparatus, and image recording / reproducing program

Publications (2)

Publication Number Publication Date
JP2007202165A JP2007202165A (en) 2007-08-09
JP4218727B2 true JP4218727B2 (en) 2009-02-04

Family

ID=38456209

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007030140A Expired - Fee Related JP4218727B2 (en) 2007-02-09 2007-02-09 Image reproduction method, image reproduction apparatus, and image reproduction program

Country Status (1)

Country Link
JP (1) JP4218727B2 (en)

Also Published As

Publication number Publication date
JP2007202165A (en) 2007-08-09

Similar Documents

Publication Publication Date Title
US7801326B2 (en) Digital watermark and film mark
US6563946B2 (en) Image processing apparatus and method
US6668086B1 (en) Tile-based image data decoding method and apparatus
US7565025B2 (en) Image recording method for image data having image components of three channels and a transmission ratio component of one channel, apparatus and computer readable recording medium storing program
US8175401B2 (en) Image processing apparatus and computer readable medium storing program therefor
JP4218727B2 (en) Image reproduction method, image reproduction apparatus, and image reproduction program
JP4218728B2 (en) Image recording / reproducing method, image recording / reproducing apparatus, and image recording / reproducing program
US6640011B1 (en) Signal-editing device and signal-editing method
US7773815B2 (en) System and method for compressing compressed data
JP5247793B2 (en) Image processing apparatus, image processing method, and program
JP4831349B2 (en) Image processing apparatus, image forming apparatus, image forming system, and program
JP2006108997A (en) Method and device for processing information, program, and storage medium
JP3023215B2 (en) Image processing device
JP4029699B2 (en) Data editing apparatus, data editing method, and program
JP2000023157A (en) Encoded image file generation method and device therefor, image restoration method and device therefor and computer readable recording medium recording program for making computer execute the methods
JP2002051221A (en) Device, system and method for encoding and decoding image and storage medium
JP4878040B2 (en) Image encoding apparatus, image encoding method, image encoding program, and recording medium
JP4353986B2 (en) Image composition apparatus, image composition method, image composition program, and computer-readable recording medium on which image composition program is recorded
US10977834B2 (en) Semiconductor device and method for image processing and image compression using the semiconductor device
JP3954052B2 (en) Image composition apparatus, image composition method, image composition program, and computer-readable recording medium on which image composition program is recorded
JP3897499B2 (en) Encoding apparatus and encoding method
JP2003178521A (en) Method of copying compressed digital data
JP2005064664A (en) Compression method of data file
JP2002247340A (en) Picture data processing method and picture data processor and recording medium with picture data processing program recorded
JPH11284840A (en) Image forming device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20081010

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

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

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

Free format text: PAYMENT UNTIL: 20111121

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees