[go: up one dir, main page]

JP2013042449A - Image compression method, image decompression method, and image processing apparatus - Google Patents

Image compression method, image decompression method, and image processing apparatus Download PDF

Info

Publication number
JP2013042449A
JP2013042449A JP2011179566A JP2011179566A JP2013042449A JP 2013042449 A JP2013042449 A JP 2013042449A JP 2011179566 A JP2011179566 A JP 2011179566A JP 2011179566 A JP2011179566 A JP 2011179566A JP 2013042449 A JP2013042449 A JP 2013042449A
Authority
JP
Japan
Prior art keywords
image
region
data
information
completely
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
Application number
JP2011179566A
Other languages
Japanese (ja)
Other versions
JP5568781B2 (en
Inventor
Yusuke Hoshizuki
優佑 星月
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.)
Axell Corp
Original Assignee
Axell 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 Axell Corp filed Critical Axell Corp
Priority to JP2011179566A priority Critical patent/JP5568781B2/en
Publication of JP2013042449A publication Critical patent/JP2013042449A/en
Application granted granted Critical
Publication of JP5568781B2 publication Critical patent/JP5568781B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

【課題】 透明度情報を含む画像情報について、その透明度情報を含めて非可逆圧縮しても、伸長再生の際に、完全透明の領域及び完全不透明の領域の少なくとも一方において、画質を劣化させない。
【解決手段】 処理単位である矩形画像データを入力する(ステップS1)。次に、入力した矩形画素データを対象に、完全透明の領域と完全不透明の領域を抽出する(ステップS2)。次に、矩形画像データを、透明度情報、すなわちα値、を含めて、非可逆圧縮処理する(ステップS3)。ここで、静止画についての非可逆圧縮アルゴリズムとしては、例えば、JPEG(Joint Photographic Experts Group)やJPEG2000が典型的である。そして、上記ステップS3で得られた圧縮画像データと、ステップS2で得られた領域データとを併せて出力する(ステップS4)。
【選択図】 図1
PROBLEM TO BE SOLVED: To prevent image quality deterioration in at least one of a completely transparent area and a completely opaque area during decompression reproduction even if image information including transparency information is irreversibly compressed including the transparency information.
Rectangle image data, which is a processing unit, is input (step S1). Next, a completely transparent area and a completely opaque area are extracted for the input rectangular pixel data (step S2). Next, the rectangular image data is subjected to irreversible compression processing including transparency information, that is, an α value (step S3). Here, as a lossy compression algorithm for still images, for example, JPEG (Joint Photographic Experts Group) and JPEG2000 are typical. Then, the compressed image data obtained in step S3 and the area data obtained in step S2 are output together (step S4).
[Selection] Figure 1

Description

本発明は、遊技機等で表示される画像に対する画像圧縮方法、画像伸長方法、及び画像処理装置に関し、特に、非可逆圧縮による高圧縮によっても画質が比較的低下しないような画像圧縮方法、画像伸長方法、及び画像処理装置に関する。   The present invention relates to an image compression method, an image decompression method, and an image processing apparatus for an image displayed on a game machine or the like, and in particular, an image compression method and an image whose image quality is not relatively lowered even by high compression by irreversible compression. The present invention relates to a decompression method and an image processing apparatus.

パチンコ機、ゲーム機等の遊技機は、その遊技の進行に応じて、画像表示デバイス(典型的には、液晶表示装置(LCD:Liquid Crystal Display))に、精細な静止画や高速に変化する動画を表示することが今や常識となっている。   A gaming machine such as a pachinko machine or a game machine changes to an image display device (typically, a liquid crystal display (LCD)) as a still image or a high speed as the game progresses. Displaying video is now common sense.

ここで、例えばビットマップで表現されたカラー画像に関しては、各画素が典型的にはいわゆるR(赤色),G(緑色),B(青色)の各値を有している。   Here, for example, for a color image represented by a bitmap, each pixel typically has a so-called R (red), G (green), and B (blue) value.

また、1つの表示装置に大小様々な画像を重ねて表示することも行われるが、最近では、画像を重ねても、その画像を透過して下の画像が見えるような表示も可能になってきている。そのとき、各画素が、R,G,Bの情報に加えて持っているのが、透明度に係る情報(例えば、αと称される)である。   In addition, various large and small images are displayed on a single display device, but recently, even when images are superimposed, it is possible to display such that the image can be seen through the image. ing. At this time, in addition to the R, G, and B information, each pixel has information related to transparency (for example, referred to as α).

透明度αは、例えば0〜255で規定し、そのときα=0の場合を、以下「完全透明」と称し、α=255の場合を「完全不透明」と称し、また、それ以外、すなわち1≦α≦254の場合を「半透明」と称することとする。但し、αの値の0〜255は例示であり、精細度に応じて任意に設定可能である。例えば、特許文献1が、かかる透明度情報を含んだ画像データを処理する符号化装置及び復号化装置を開示している。   The transparency α is defined by, for example, 0 to 255. In this case, the case where α = 0 is referred to as “completely transparent”, the case where α = 255 is referred to as “completely opaque”, and otherwise, that is, 1 ≦ The case where α ≦ 254 is referred to as “translucent”. However, the value of 0 to 255 is an example, and can be arbitrarily set according to the definition. For example, Patent Literature 1 discloses an encoding device and a decoding device that process image data including such transparency information.

ところで、画像情報の効率的な格納や伝送を実現すべく、その冗長性を鑑みて画像情報を圧縮する処理を行うことが一般的である。ここで、かかる画像圧縮方法には、圧縮処理による損失がなく、元の画像と同じ画像を完全に復元できる「可逆圧縮方法」と、圧縮処理による損失があり、元の画像と同じ画像を表していることは分かるが、元の画像とは差異がある「非可逆圧縮方法」がある。「可逆圧縮方法」は、元の画像と同じ画像を完全に復元できる利点があるが、圧縮率は低くなる。他方、「非可逆圧縮方法」は、元の画像と同じ画像を完全には復元できないが、「可逆圧縮方法」に比べて圧縮率が高いという利点がある。従って、「可逆圧縮方法」と「非可逆圧縮方法」は、必要あるいは目的に応じて選択して使用される。   Incidentally, in order to realize efficient storage and transmission of image information, it is common to perform processing for compressing image information in view of the redundancy. Here, the image compression method has no loss due to the compression process, and there is a lossless compression method that can completely restore the same image as the original image, and there is a loss due to the compression process, which represents the same image as the original image. However, there is a “lossy compression method” that is different from the original image. The “lossless compression method” has an advantage that the same image as the original image can be completely restored, but the compression rate is low. On the other hand, the “lossy compression method” cannot completely restore the same image as the original image, but has an advantage of a higher compression rate than the “lossless compression method”. Therefore, the “reversible compression method” and the “irreversible compression method” are selected and used according to necessity or purpose.

一方、動画像の圧縮符号化処理においては、いわゆる「動き予測」や「動き補償」と呼ばれる処理を行うことが、標準化手法の1つとして確立されている。かかる技術を開示したものとして、例えば特許文献2がある。   On the other hand, in the compression coding processing of moving images, it is established as one of standardization methods to perform so-called “motion prediction” and “motion compensation”. For example, Patent Document 2 discloses such a technique.

特開2000−324501号公報JP 2000-324501 A 特開2001−112009号公報JP 2001-112009 A

ところで、「完全透明」が割り当てられた画素を含む画像情報を非可逆圧縮方法で圧縮すると、伸長した後に、完全透明領域と半透明又は完全不透明領域との境界付近において、完全透明の画素に淡い色が付いてしまって画質が低下する、という問題が生じる。また、「完全不透明」の領域においても、伸長後、完全不透明ではなく淡く透けてしまう部分が生じるという問題がある。   By the way, when image information including a pixel to which “completely transparent” is assigned is compressed by an irreversible compression method, after decompression, the pixel is completely transparent in the vicinity of the boundary between the completely transparent region and the semitransparent or completely opaque region. There arises a problem that the image quality deteriorates due to coloration. In addition, even in the “completely opaque” region, there is a problem that after expansion, there is a portion that is not completely opaque but lightly transparent.

本発明は上述のような事情から為されたものであり、本発明の目的は、透明度情報を含む画像情報について、その透明度情報を含めて非可逆圧縮しても、伸長再生の際に、完全透明の領域及び完全不透明の領域の少なくとも一方において、画質が劣化しない画像圧縮方法、画像伸長方法、及び画像処理装置を提供することにある。   The present invention has been made for the above-mentioned circumstances, and the object of the present invention is to completely complete image information including transparency information at the time of decompression and reproduction even if it is irreversibly compressed including the transparency information. An object of the present invention is to provide an image compression method, an image expansion method, and an image processing apparatus in which image quality does not deteriorate in at least one of a transparent region and a completely opaque region.

上記目的を達成するため、本発明の画像圧縮方法は、透明度の情報を含んだ画像情報を圧縮する方法であって、前記透明度の情報を含んだ画像情報に基づき、完全透明の領域及び完全不透明の領域の少なくとも一方を抽出し、前記透明度の情報を含んだ画像情報を非可逆圧縮し、その圧縮画像情報を、前記完全透明の領域及び前記完全不透明の領域の少なくとも一方を含む領域の領域データと併せて出力することを要旨とする。好適には、前記完全透明の領域及び前記完全不透明の領域の双方を抽出し、それらを含む領域の領域データも併せて出力する。   In order to achieve the above object, an image compression method of the present invention is a method for compressing image information including transparency information, and is based on the image information including the transparency information. Region information of a region including at least one of the completely transparent region and the completely opaque region, the image information including the transparency information is irreversibly compressed. The gist is to output together. Preferably, both the completely transparent area and the completely opaque area are extracted, and the area data of the area including them is also output.

また、前記画像情報は動画に係る画像であって、前記非可逆圧縮の処理において、動き補償処理を行うことを要旨とする。典型的には、この動画は、アニメーション画像である。   In addition, the image information is an image related to a moving image, and the gist is that motion compensation processing is performed in the lossy compression processing. Typically, this moving image is an animated image.

また、前記領域データも圧縮処理して出力することを要旨とする。   The gist of the invention is that the region data is also compressed and output.

また、上記目的を達成するため、本発明の画像伸長方法は、透明度の情報を含んだ原画像を非可逆圧縮して得られた圧縮画像情報と、前記原画像の完全透明の領域及び完全不透明の領域の少なくとも一方を含む領域の領域データとを入力し、前記圧縮画像情報に対し、前記非可逆圧縮に対応した伸長の処理を施し、伸長による復元画像情報の、前記領域データが示す領域については、完全透明及び完全不透明の少なくとも一方に係る情報でマスク処理を行うことを要旨とする。   In order to achieve the above object, the image decompression method of the present invention includes compressed image information obtained by irreversible compression of an original image including transparency information, a completely transparent region and a completely opaque image of the original image. Region data including at least one of the regions, the decompression processing corresponding to the lossy compression is performed on the compressed image information, and the region indicated by the region data in the decompressed image information by decompression The gist of the present invention is to perform mask processing with information relating to at least one of completely transparent and completely opaque.

好適には、前記原画像の完全透明の領域及び完全不透明の領域の双方を含む領域の領域データを入力し、伸長による復元画像情報の、前記領域データが示す領域については、完全透明及び完全不透明の双方に係る情報でマスク処理を行う。   Preferably, the region data of the region including both the completely transparent region and the completely opaque region of the original image is input, and the region indicated by the region data of the restored image information by decompression is completely transparent and completely opaque. Mask processing is performed using information relating to both of the above.

また、前記領域データも圧縮データとして入力され、その圧縮領域データに対して伸長処理を行って領域データを復元したのち、前記マスク処理を行う。   The area data is also input as compressed data. After decompressing the compressed area data to restore the area data, the mask process is performed.

また、上記目的を達成するため、本発明の画像処理装置は、透明度の情報を含んだ原画像を非可逆圧縮して得られた圧縮画像情報と、前記原画像の完全透明の領域及び完全不透明の領域の少なくとも一方を含む領域の領域データとを格納する格納部と、外部からの指令に基づき、前記格納部から前記圧縮画像情報を入力し、前記非可逆圧縮に対応した伸長の処理を施すデコーダと、前記格納部から前記領域データを入力し、伸長による復元画像情報の、前記領域データが示す領域については、完全透明及び完全不透明の少なくとも一方に係る情報でマスク処理を行うマスク処理部と、を備えることを要旨とする。   In order to achieve the above object, the image processing apparatus according to the present invention includes compressed image information obtained by irreversible compression of an original image including transparency information, a completely transparent region of the original image, and a completely opaque image. A storage unit that stores region data including a region including at least one of the regions, and the compressed image information is input from the storage unit based on an external command, and decompression processing corresponding to the lossy compression is performed. A decoder, and a mask processing unit that inputs the region data from the storage unit and performs mask processing with information relating to at least one of completely transparent and completely opaque in the region indicated by the region data of decompressed image information by decompression; The gist is to provide.

本発明の画像圧縮方法、画像伸長方法、及び画像処理装置によれば、透明度情報を含む画像情報について、その透明度情報を含めて非可逆圧縮しても、伸長再生の際に、完全透明領域又は不完全透明領域において、画質が劣化しない。   According to the image compression method, the image expansion method, and the image processing apparatus of the present invention, even if the image information including the transparency information is irreversibly compressed including the transparency information, the completely transparent region or the Image quality does not deteriorate in imperfectly transparent areas.

本発明の画像圧縮方法の一実施形態の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of one Embodiment of the image compression method of this invention. 本発明の画像圧縮方法の一実施形態の処理手順を説明するための図である。It is a figure for demonstrating the process sequence of one Embodiment of the image compression method of this invention. 本発明の画像伸長方法の一実施形態の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of one Embodiment of the image expansion | extension method of this invention. 本発明の画像伸長方法の一実施形態が実現される画像処理装置の概略構成を示すブロック図である。1 is a block diagram illustrating a schematic configuration of an image processing apparatus in which an embodiment of an image expansion method of the present invention is realized. 本発明の画像圧縮方法の一実施形態が実現される画像処理装置の概略構成を示すブロック図である。1 is a block diagram illustrating a schematic configuration of an image processing apparatus in which an embodiment of an image compression method of the present invention is realized.

以下、図面を参照して、本発明の実施の形態について詳細に説明する。
図1は、本発明の画像圧縮方法の一実施形態の処理手順を示すフローチャートである。なお、同図に示された処理は、いわゆる汎用のパーソナルコンピュータで実現できる。また、図2は、本発明の画像圧縮方法の一実施形態の処理手順を説明するための図である。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
FIG. 1 is a flowchart showing a processing procedure of an embodiment of an image compression method of the present invention. The processing shown in the figure can be realized by a so-called general-purpose personal computer. FIG. 2 is a diagram for explaining the processing procedure of an embodiment of the image compression method of the present invention.

そこで、まず、格納された全体の画像データから、図2(a)に示すような、処理単位である矩形画像データ(例えば、1024x768画素)を入力する(ステップS1)。次に、入力した矩形画素データを対象に、完全透明の領域と完全不透明の領域を抽出する(ステップS2)。図2(b)は、図2(a)に示した具体例たる画像データについて、完全透明の領域CTAを抽出した場合を示しており、図2(c)は、完全不透明の領域COAを抽出した場合を示している。   Therefore, first, rectangular image data (for example, 1024 × 768 pixels) as a processing unit as shown in FIG. 2A is input from the entire stored image data (step S1). Next, a completely transparent area and a completely opaque area are extracted for the input rectangular pixel data (step S2). FIG. 2B shows a case where a completely transparent area CTA is extracted from the image data as the specific example shown in FIG. 2A, and FIG. 2C shows a completely opaque area COA extracted. Shows the case.

次に、矩形画像データを、透明度情報、すなわちα値、を含めて、非可逆圧縮処理する(ステップS3)。ここで、静止画についての非可逆圧縮アルゴリズムとしては、例えば、JPEG(Joint Photographic Experts Group)やJPEG2000が典型的であるが、これに限られることはない。   Next, the rectangular image data is subjected to irreversible compression processing including transparency information, that is, an α value (step S3). Here, as a lossy compression algorithm for a still image, for example, JPEG (Joint Photographic Experts Group) and JPEG2000 are typical, but not limited thereto.

そして、上記ステップS3で得られた圧縮画像データと、ステップS2で得られた領域データとを併せて出力する(ステップS4)。なお、出力されたこれらのデータは、例えば、圧縮画像データを伸長して描画処理を行う画像処理装置のCGROM(Character Generator Read Only Memory)に格納に格納される。   Then, the compressed image data obtained in step S3 and the area data obtained in step S2 are output together (step S4). The output data is stored in a CGROM (Character Generator Read Only Memory) of an image processing apparatus that performs drawing processing by decompressing compressed image data, for example.

なお、上述の説明においては、ステップS2において、完全透明の領域データと併せて、完全不透明の領域データを抽出したが、完全不透明の領域と半透明の領域との間での画質劣化を問題にしないのであれば、抽出するのは完全透明の領域データのみであってもよい。また、上述の説明においては、領域データについては、そのまま出力したが、領域データに対しても圧縮符号化処理を行ってもよい。但し、この場合は可逆圧縮処理である。   In the above description, in step S2, the completely opaque area data is extracted together with the completely transparent area data. However, the image quality deterioration between the completely opaque area and the translucent area is a problem. If not, only the completely transparent area data may be extracted. In the above description, the area data is output as it is, but the compression encoding process may be performed on the area data. However, in this case, it is a reversible compression process.

次に、上述のように得られた圧縮画像データを伸長して描画処理する画像処理装置における伸長処理について説明する。図3は、かかる画像処理装置における画像伸長方法の手順を示すフローチャートである。図4は、本発明の画像伸長方法の一実施形態が実現される画像処理装置の概略構成を示すブロック図である。   Next, decompression processing in the image processing apparatus that decompresses the compressed image data obtained as described above and performs drawing processing will be described. FIG. 3 is a flowchart showing the procedure of the image decompression method in the image processing apparatus. FIG. 4 is a block diagram showing a schematic configuration of an image processing apparatus in which an embodiment of the image decompression method of the present invention is realized.

図4に示した画像処理装置は、中央処理装置(以下、CPU(Central Processing Unit)と称す)1と、画像表示プロセッサ(以下、VDP(Video Display Processor)と称す)2と、プログラムROM3と、CGROM4と、表示部5とを備えている。また、VDP2は、少なくとも、デコーダ21と、マスク処理部22と、描画回路23とを有している。ここで、前述のように、CGROM4には、上述のような方法で圧縮した、切り出した矩形に係る圧縮画像データと、それに対応した完全透明/不透明の領域データが格納されている。   4 includes a central processing unit (hereinafter referred to as a CPU (Central Processing Unit)) 1, an image display processor (hereinafter referred to as a VDP (Video Display Processor)) 2, a program ROM 3, A CGROM 4 and a display unit 5 are provided. The VDP 2 includes at least a decoder 21, a mask processing unit 22, and a drawing circuit 23. Here, as described above, the CGROM 4 stores compressed image data relating to the cut-out rectangle compressed by the above-described method, and completely transparent / opaque region data corresponding to the cut-out rectangle data.

そこで、まず、画像処理装置内のデコーダ21は、CPU1からの指令に基づき、CGROM4から、切り出された矩形に係る圧縮画像データを入力し(ステップS11)、伸長する(ステップS12)。その伸長画像データは、マスク処理部22に送られる。一方、マスク処理部22は、CGROM4から、入力した伸長画像データに対応した完全透明/不透明の領域データを入力する(ステップS13)。そして、マスク処理部22は、入力した伸長画像データに対して、入力した完全透明/不透明の領域データに基づき、マスク処理を行う(ステップS14)。例えば、完全透明領域については、図2(b)に示した領域データをマスクデータとして、伸長された画像データに対してマスク処理を行い、完全透明領域については、強制的に完全透明、すなわちα=0、とする。一方、完全不透明領域と指定されている領域については、図2(c)に示した領域データをマスクデータとして、伸長された画像データに対してマスク処理を行い、完全不透明領域と指定されている領域については、強制的に完全不透明、すなわちα=255、とする。これにより、非可逆の圧縮/伸長を介して得られた画像データであっても、完全透明部分に色が付いてしまうことや、完全不透明部分が微妙に透けてしまうという現象が回避され、完全透明部分及び完全不透明部分については、原画像と全く同じものが保証される。   Therefore, first, the decoder 21 in the image processing apparatus inputs compressed image data relating to the cut-out rectangle from the CGROM 4 based on a command from the CPU 1 (step S11), and decompresses it (step S12). The expanded image data is sent to the mask processing unit 22. On the other hand, the mask processing unit 22 inputs completely transparent / opaque area data corresponding to the input decompressed image data from the CGROM 4 (step S13). Then, the mask processing unit 22 performs a mask process on the input decompressed image data based on the input completely transparent / opaque region data (step S14). For example, for a completely transparent area, mask processing is performed on the decompressed image data using the area data shown in FIG. 2B as mask data. For a completely transparent area, it is forcibly completely transparent, that is, α = 0. On the other hand, for an area designated as a completely opaque area, the expanded image data is masked using the area data shown in FIG. 2C as mask data, and designated as a completely opaque area. For the region, it is forced to be completely opaque, that is, α = 255. As a result, even if the image data is obtained through irreversible compression / decompression, the phenomenon that the completely transparent part is colored or the completely opaque part is slightly transparent is avoided. For transparent and completely opaque parts, exactly the same as the original image is guaranteed.

マスク処理後の伸長画像データは、描画回路23に送られる(ステップS15)。描画回路23は、そのマスク処理後の伸長画像データを表示部5の所定位置に表示する。   The decompressed image data after the mask processing is sent to the drawing circuit 23 (step S15). The drawing circuit 23 displays the decompressed image data after the mask processing at a predetermined position on the display unit 5.

なお、完全透明/不透明の領域データについても圧縮されてCGROM4に格納されている場合には、マスク処理部22において、その伸長処理を行ってから、上述のマスク処理を行う。また、図4に示した画像処理装置において、マスク処理部22をデコーダ21から論理的に独立した構成としたが、マスク処理を行う機能としては、論理的のみならず、物理的にもデコーダ21に含まれるような構成であってもよい。   If the completely transparent / opaque area data is also compressed and stored in the CGROM 4, the mask processing unit 22 performs the decompression process and then performs the mask process described above. In the image processing apparatus shown in FIG. 4, the mask processing unit 22 is logically independent from the decoder 21, but the function of performing the mask processing is not only logical but physically also the decoder 21. May be included.

次に、画像が動画像(例えば、アニメーション画像)である場合の圧縮方法について説明する。図5は、本発明の動画に係る画像圧縮方法の一実施形態が実現される画像処理装置の概略構成を示すブロック図である。   Next, a compression method when the image is a moving image (for example, an animation image) will be described. FIG. 5 is a block diagram showing a schematic configuration of an image processing apparatus in which an embodiment of the image compression method according to the moving image of the present invention is realized.

同図に示す画像処理装置たるエンコーダ6は、完全透明/不透明領域抽出部601と、動き予測部602と、動き補償部603と、減算部604と、直交変換部605と、量子化部606と、可変長符号化部607と、逆量子化部608と、逆直交変換部609と、加算部610と、ピクチャ記憶部611、多重化部612とを備えている。なお、エンコーダ6に入力される動画の各フレームのピクチャデータは、前述のように各画素ごとに透明度の情報(例えば、α=0〜255)を有しているものとする。   The encoder 6 serving as the image processing apparatus shown in the figure includes a completely transparent / opaque region extracting unit 601, a motion predicting unit 602, a motion compensating unit 603, a subtracting unit 604, an orthogonal transform unit 605, and a quantizing unit 606. A variable length coding unit 607, an inverse quantization unit 608, an inverse orthogonal transform unit 609, an addition unit 610, a picture storage unit 611, and a multiplexing unit 612. Note that the picture data of each frame of the moving image input to the encoder 6 has transparency information (for example, α = 0 to 255) for each pixel as described above.

完全透明/不透明領域抽出部601は、図2を用いて説明したのと同様に、入力する各フレームのピクチャデータについて、完全透明の領域と完全不透明の領域を抽出し、領域データADとして多重化部612に送ると共に、ピクチャデータをそのまま後段に送出する。従って、以下の動画圧縮符号化処理は、透明度の情報も含めて行われる。   The completely transparent / opaque area extracting unit 601 extracts a completely transparent area and a completely opaque area from the picture data of each input frame, and multiplexes it as area data AD, as described with reference to FIG. The picture data is sent to the subsequent stage as it is. Therefore, the following moving image compression encoding process is performed including transparency information.

動き予測部602は、入力される符号化対象フレームとしてのピクチャを分割した各マクロブロックについて、ピクチャ記憶部611に記憶された直前のフレームに係るピクチャのマクロブロックから最も相関の高いマクロブロックを検索して、それらのマクロブロックを動き補償部603に送る。動き補償部603は、2つのマクロブロックの間で、ある固定領域として一体的に移動する部分がある場合に、その移動量を動きベクトルMVとして多重化部612に送ると共に、ピクチャ記憶部611からのマクロブロックを減算部604に供給する。   The motion prediction unit 602 searches for the macroblock with the highest correlation from the macroblocks of the picture related to the immediately preceding frame stored in the picture storage unit 611 for each macroblock obtained by dividing the picture as the input encoding target frame. Then, these macro blocks are sent to the motion compensation unit 603. When there is a part that moves integrally as a fixed area between two macroblocks, the motion compensation unit 603 sends the amount of movement to the multiplexing unit 612 as a motion vector MV, and from the picture storage unit 611. Are supplied to the subtracting unit 604.

減算部604は、符号化対象フレームとしてのピクチャの符号化対象マクロブロックから、動き補償部603から送られてきたマクロブロックのピクチャ情報を減算し、残差予測信号として、直交変換部605に供給する。なお、動き予測部602において、相関度の閾値を設定しておき、一定以上の相関性が認められない場合には、予測符号化を行わずに、すなわち減算部604において減算を行わずに、ピクチャ情報をそのまま直交変換部605に送るような構成にしてもよい。また、いわゆるIピクチャについてはそのまま送られる。   The subtraction unit 604 subtracts the macro block picture information sent from the motion compensation unit 603 from the encoding target macroblock of the picture as the encoding target frame, and supplies the sub information to the orthogonal transformation unit 605 as a residual prediction signal. To do. Note that, in the motion prediction unit 602, a threshold value of correlation is set, and when a correlation of a certain level or more is not recognized, without performing predictive coding, that is, without performing subtraction in the subtraction unit 604, The picture information may be sent to the orthogonal transform unit 605 as it is. A so-called I picture is sent as it is.

直交変換部605は、減算部604から送られてきた対象マクロブロックの残差予測信号をn×nドット(nは例えば4)の単位ブロックに分割し、各単位ブロックに対して、離散コサイン変換(DCT:Discrete Cosine Transform)等の直交変換処理を行う。なお、直交変換処理としては、他に、アダマール変換(Hadamard Transform)がある。   The orthogonal transform unit 605 divides the residual prediction signal of the target macroblock sent from the subtraction unit 604 into unit blocks of n × n dots (n is 4 for example), and performs discrete cosine transform on each unit block. An orthogonal transformation process such as (DCT: Discrete Cosine Transform) is performed. In addition, as an orthogonal transformation process, there exists Hadamard transformation (Hadamard Transform).

量子化部606は、直交変換部605における直交変換処理が例えばDCT処理のときには、各単位ブロックのDCT係数を所定の除数(量子化ステップ)で除算して、余りを丸めて符号化(量子化)を行う。量子化部606で得られた、量子化された各単位ブロックのDCT係数は、可変長符号化部607と逆量子化部608に送られる。   When the orthogonal transform processing in the orthogonal transform unit 605 is, for example, DCT processing, the quantization unit 606 divides the DCT coefficient of each unit block by a predetermined divisor (quantization step), rounds the remainder, and encodes (quantization). )I do. The quantized DCT coefficient of each unit block obtained by the quantization unit 606 is sent to the variable length coding unit 607 and the inverse quantization unit 608.

逆量子化部608は、量子化部606から出力される量子化された各単位ブロックのDCT係数に上記所定の除数を乗算することにより、逆量子化の処理を行う。また、逆直交変換部609は、直交変換部605における直交変換に対応したそれとは逆の逆直交変換の処理を行い、復号したブロックからマクロブロックを再構成し、このマクロブロックを加算部610に送る。加算部610は、前述の動き補償部603から出力された最も相関の高いマクロブロックに係る情報に、逆直交変換部609から出力されたマクロブロックに係る情報を加算することにより、予測前のマクロブロックを復元し、必要に応じて(少なくともIピクチャに係るマクロブロックを)後続との比較のために、ピクチャ記憶部611に格納する。   The inverse quantization unit 608 performs inverse quantization processing by multiplying the DCT coefficient of each quantized unit block output from the quantization unit 606 by the predetermined divisor. Also, the inverse orthogonal transform unit 609 performs inverse orthogonal transform processing opposite to that corresponding to the orthogonal transform in the orthogonal transform unit 605, reconstructs a macro block from the decoded block, and sends the macro block to the adder 610. send. The adding unit 610 adds the information related to the macroblock output from the inverse orthogonal transform unit 609 to the information related to the macroblock having the highest correlation output from the motion compensation unit 603, thereby performing the macro before prediction. The block is restored and stored in the picture storage unit 611 for comparison with the subsequent (at least a macroblock related to the I picture) as necessary.

一方、可変長符号化部607は、量子化部606から出力された量子化されたDCT係数に対してブロックごとにハフマン符号化や算術符号化等の可変長符号化による可逆圧縮を行う。多重化部612は、可変長符号化部607からの符号化画像データと、動き補償部603からの動きベクトルMVと、完全透明/不透明領域抽出部601からの領域データADを入力し、それらを多重化して出力する。なお、領域データADをそのまま出力しているが、このエンコーダ6においても、領域データに対しても圧縮符号化処理を行ってもよい。   On the other hand, the variable length coding unit 607 performs lossless compression on the quantized DCT coefficient output from the quantization unit 606 by variable length coding such as Huffman coding or arithmetic coding for each block. The multiplexing unit 612 receives the encoded image data from the variable length encoding unit 607, the motion vector MV from the motion compensation unit 603, and the region data AD from the complete transparent / opaque region extraction unit 601 and inputs them. Multiplex and output. Although the area data AD is output as it is, the encoder 6 may perform the compression encoding process on the area data as well.

上述のエンコーダ6で得られた圧縮データを伸長して動画データとして再生する処理装置においても、図4で示した処理装置と同様概念の構成となる。すなわち、動画データに対して施した上述の処理とは逆の処理で伸長し、その後、領域データADに基づいてマスク処理を行う。これにより、非可逆の圧縮/伸長を介して得られた画像データであっても、完全透明部分に色が付いてしまうことや、完全不透明部分が微妙に透けてしまうという現象が回避され、完全透明部分及び完全不透明部分については、原画像と全く同じものが保証される。   The processing device that decompresses the compressed data obtained by the encoder 6 and reproduces it as moving image data has the same conceptual configuration as the processing device shown in FIG. That is, decompression is performed by the reverse process to the above process performed on the moving image data, and then the mask process is performed based on the area data AD. As a result, even if the image data is obtained through irreversible compression / decompression, the phenomenon that the completely transparent part is colored or the completely opaque part is slightly transparent is avoided. For transparent and completely opaque parts, exactly the same as the original image is guaranteed.

なお、上述した実施形態においては、完全透明部分及び完全不透明部分のみ、すなわちα=0の領域及びα=255の領域のみを保証したが、所望の幅を持たせて(例えば、α=0〜2及びα=253〜255というように)保証することもできる。   In the above-described embodiment, only the completely transparent portion and the completely opaque portion, that is, only the region of α = 0 and the region of α = 255 are guaranteed, but a desired width is given (for example, α = 0 to 0). 2 and α = 253-255).

本発明の画像圧縮方法、画像伸長方法、及び画像処理装置の一実施形態によれば、透明度情報を含む画像情報について、その透明度情報を含めて非可逆圧縮しても、伸長再生の際に、特に完全透明領域及び完全不透明において、画質が劣化しない。   According to one embodiment of the image compression method, the image expansion method, and the image processing apparatus of the present invention, the image information including the transparency information can be subjected to the decompression reproduction even if irreversibly compressed including the transparency information. In particular, the image quality does not deteriorate in a completely transparent region and completely opaque.

本発明の画像圧縮方法、画像伸長方法、及び画像処理装置は、例えばパチンコ機のような遊技機で表示される画像のデータに適用できる。   The image compression method, image decompression method, and image processing apparatus of the present invention can be applied to image data displayed on a gaming machine such as a pachinko machine.

1 CPU
2 画像表示プロセッサ
21 デコーダ
22 マスク処理部
23 描画回路
3 プログラムROM
4 CGROM
5 表示部
6 エンコーダ
601 完全透明/不透明抽出部
602 動き予測部
603 動き補償部
604 減算部
605 直交変換部
606 量子化部
607 可変長符号化部
608 逆量子化部
609 逆直交変換部
610 加算部
611 ピクチャ記憶部
612 多重化部
1 CPU
2 Image display processor 21 Decoder 22 Mask processing unit 23 Drawing circuit 3 Program ROM
4 CGROM
5 Display Unit 6 Encoder 601 Completely Transparent / Opaque Extraction Unit 602 Motion Prediction Unit 603 Motion Compensation Unit 604 Subtraction Unit 605 Orthogonal Transform Unit 606 Quantization Unit 607 Variable Length Coding Unit 608 Inverse Quantization Unit 609 Inverse Orthogonal Transform Unit 610 Addition Unit 611 Picture storage unit 612 Multiplexing unit

Claims (9)

透明度の情報を含んだ画像情報を圧縮する方法であって、
前記透明度の情報を含んだ画像情報に基づき、完全透明の領域及び完全不透明の領域の少なくとも一方を抽出し、
前記透明度の情報を含んだ画像情報を非可逆圧縮し、
その圧縮画像情報を、前記完全透明の領域及び前記完全不透明の領域の少なくとも一方を含む領域の領域データと併せて出力することを特徴とする画像圧縮方法。
A method for compressing image information including transparency information,
Based on the image information including the transparency information, extract at least one of a completely transparent region and a completely opaque region,
Irreversibly compresses the image information including the transparency information;
The compressed image information is output together with region data of a region including at least one of the completely transparent region and the completely opaque region.
前記完全透明の領域及び前記完全不透明の領域の双方を抽出し、それらを含む領域の領域データも併せて出力することを特徴とする請求項1に記載の画像圧縮方法。   2. The image compression method according to claim 1, wherein both the completely transparent area and the completely opaque area are extracted, and area data of the area including them is also output. 前記画像情報は動画に係る画像であって、前記非可逆圧縮の処理において、動き補償処理を行うことを特徴とする請求項1又は2に記載の画像圧縮方法。   The image compression method according to claim 1, wherein the image information is an image related to a moving image, and motion compensation processing is performed in the lossy compression processing. 前記動画は、アニメーション画像であることを特徴とする請求項3に記載の画像圧縮方法。   The image compression method according to claim 3, wherein the moving image is an animation image. 前記領域データも圧縮処理して出力することを特徴とする請求項1乃至4のいずれかに記載の画像圧縮方法。   The image compression method according to claim 1, wherein the region data is also compressed and output. 透明度の情報を含んだ原画像を非可逆圧縮して得られた圧縮画像情報と、前記原画像の完全透明の領域及び完全不透明の領域の少なくとも一方を含む領域の領域データとを入力し、
前記圧縮画像情報に対し、前記非可逆圧縮に対応した伸長の処理を施し、
伸長による復元画像情報の、前記領域データが示す領域については、完全透明及び完全不透明の少なくとも一方に係る情報でマスク処理を行うことを特徴とする画像伸長方法。
Input compressed image information obtained by irreversible compression of an original image including transparency information, and region data of a region including at least one of a completely transparent region and a completely opaque region of the original image,
The compressed image information is subjected to decompression processing corresponding to the lossy compression,
An image decompression method characterized by masking a region indicated by the region data of decompressed image information by decompression with information relating to at least one of completely transparent and completely opaque.
前記原画像の完全透明の領域及び完全不透明の領域の双方を含む領域の領域データを入力し、
伸長による復元画像情報の、前記領域データが示す領域については、完全透明及び完全不透明の双方に係る情報でマスク処理を行うことを特徴とする請求項6に記載の画像伸長方法。
Input region data of a region including both a completely transparent region and a completely opaque region of the original image;
The image decompression method according to claim 6, wherein the region indicated by the region data of the restored image information by decompression is masked with information relating to both complete transparency and complete opaqueness.
前記領域データも圧縮データとして入力され、その圧縮領域データに対して伸長処理を行って領域データを復元したのち、前記マスク処理を行うことを特徴とする請求項6又は7に記載の画像伸長方法。   8. The image decompression method according to claim 6, wherein the area data is also input as compressed data, the decompression process is performed on the compressed area data to restore the area data, and then the mask process is performed. . 透明度の情報を含んだ原画像を非可逆圧縮して得られた圧縮画像情報と、前記原画像の完全透明の領域及び完全不透明の領域の少なくとも一方を含む領域の領域データとを格納する格納部と、
外部からの指令に基づき、前記格納部から前記圧縮画像情報を入力し、前記非可逆圧縮に対応した伸長の処理を施すデコーダと、
前記格納部から前記領域データを入力し、伸長による復元画像情報の、前記領域データが示す領域については、完全透明及び完全不透明の少なくとも一方に係る情報でマスク処理を行うマスク処理部と、
を備えることを特徴とする画像処理装置。
A storage unit for storing compressed image information obtained by irreversibly compressing an original image including transparency information, and region data of a region including at least one of a completely transparent region and a completely opaque region of the original image When,
Based on an external command, the decoder inputs the compressed image information from the storage unit, and performs a decompression process corresponding to the lossy compression,
A mask processing unit that inputs the region data from the storage unit and performs mask processing with information related to at least one of completely transparent and completely opaque in the region indicated by the region data of decompressed restored image information,
An image processing apparatus comprising:
JP2011179566A 2011-08-19 2011-08-19 Image compression method, image expansion method, and image processing apparatus Expired - Fee Related JP5568781B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011179566A JP5568781B2 (en) 2011-08-19 2011-08-19 Image compression method, image expansion method, and image processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011179566A JP5568781B2 (en) 2011-08-19 2011-08-19 Image compression method, image expansion method, and image processing apparatus

Publications (2)

Publication Number Publication Date
JP2013042449A true JP2013042449A (en) 2013-02-28
JP5568781B2 JP5568781B2 (en) 2014-08-13

Family

ID=47890391

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011179566A Expired - Fee Related JP5568781B2 (en) 2011-08-19 2011-08-19 Image compression method, image expansion method, and image processing apparatus

Country Status (1)

Country Link
JP (1) JP5568781B2 (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08140085A (en) * 1994-11-04 1996-05-31 Matsushita Electric Ind Co Ltd Multivalued signal coding and decoding method
JPH08140096A (en) * 1994-11-04 1996-05-31 Matsushita Electric Ind Co Ltd Method and device for coding image signal
JPH09326024A (en) * 1996-06-06 1997-12-16 Matsushita Electric Ind Co Ltd Picture coding and decoding method and its device
JPH10164591A (en) * 1996-11-28 1998-06-19 Matsushita Electric Ind Co Ltd Image-encoding method and image-decoding method
JPH1132337A (en) * 1997-05-15 1999-02-02 Matsushita Electric Ind Co Ltd Data structure for transmitting picture and encoding method and decoding method
JPH11205788A (en) * 1998-01-13 1999-07-30 Matsushita Electric Ind Co Ltd Image compression device and image decompression device
JP2001128173A (en) * 1999-10-28 2001-05-11 Victor Co Of Japan Ltd Object encoding device
JP2001231048A (en) * 1996-05-17 2001-08-24 Matsushita Electric Ind Co Ltd Image decoder

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08140085A (en) * 1994-11-04 1996-05-31 Matsushita Electric Ind Co Ltd Multivalued signal coding and decoding method
JPH08140096A (en) * 1994-11-04 1996-05-31 Matsushita Electric Ind Co Ltd Method and device for coding image signal
JP2001231048A (en) * 1996-05-17 2001-08-24 Matsushita Electric Ind Co Ltd Image decoder
JPH09326024A (en) * 1996-06-06 1997-12-16 Matsushita Electric Ind Co Ltd Picture coding and decoding method and its device
JPH10164591A (en) * 1996-11-28 1998-06-19 Matsushita Electric Ind Co Ltd Image-encoding method and image-decoding method
JPH1132337A (en) * 1997-05-15 1999-02-02 Matsushita Electric Ind Co Ltd Data structure for transmitting picture and encoding method and decoding method
JPH11205788A (en) * 1998-01-13 1999-07-30 Matsushita Electric Ind Co Ltd Image compression device and image decompression device
JP2001128173A (en) * 1999-10-28 2001-05-11 Victor Co Of Japan Ltd Object encoding device

Also Published As

Publication number Publication date
JP5568781B2 (en) 2014-08-13

Similar Documents

Publication Publication Date Title
JP2008048396A (en) Method and system of compressing and/or reconstructing image information with low complexity
JPH1075457A (en) Moving object detector in moving image
GB2539241B (en) Video processing system
US20090297053A1 (en) Image encoding device and image encoding method
EP2129132A2 (en) Encoding/decoding device, encoding/decoding method and storage medium
WO2009087783A1 (en) Data generator for coding, method of generating data for coding, decoder and decoding method
JP2006512838A (en) Encoding dynamic graphic content views
TWI838558B (en) Method and system of stress compensation in display device
JP3918263B2 (en) Compression encoding apparatus and encoding method
US20150245069A1 (en) Image decoding apparatus, image decoding method, and program
JP3462867B2 (en) Image compression method and apparatus, image compression program, and image processing apparatus
US20080260272A1 (en) Image coding device, image coding method, and image decoding device
CN113422960A (en) Image transmission method and device
JP2016208356A (en) Image compression device, image compression method, image decompression device and image decompression method
CN103139566B (en) Method for the efficiently decoding of variable-length code (VLC)
Babu et al. Efficient lossless image compression using modified hierarchical prediction and context adaptive coding
JP5568781B2 (en) Image compression method, image expansion method, and image processing apparatus
JP6453652B2 (en) Video transmission system
US20050196056A1 (en) Image coding and decoding method
JP5540200B2 (en) Image compression method and image processing method
JPH08116540A (en) Image coder and image decoder using area division
CN106464882A (en) Techniques for processing video frames by a video encoder
US8462168B2 (en) Decompression system and method for DCT-base compressed graphic data with transparent attribute
US8326060B2 (en) Video decoding method and video decoder based on motion-vector data and transform coefficients data
JP2001326906A (en) Image compression management device and image compression management method used therefor

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130611

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130618

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130819

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20131008

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20131209

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140602

R150 Certificate of patent or registration of utility model

Ref document number: 5568781

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees