JP2011166219A - Encoding apparatus, decoding apparatus, and program - Google Patents

Encoding apparatus, decoding apparatus, and program Download PDF

Info

Publication number
JP2011166219A
JP2011166219A JP2010023264A JP2010023264A JP2011166219A JP 2011166219 A JP2011166219 A JP 2011166219A JP 2010023264 A JP2010023264 A JP 2010023264A JP 2010023264 A JP2010023264 A JP 2010023264A JP 2011166219 A JP2011166219 A JP 2011166219A
Authority
JP
Japan
Prior art keywords
signal
array
conversion
unit
image signal
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
JP2010023264A
Other languages
Japanese (ja)
Other versions
JP5309046B2 (en
Inventor
Shinichi Sakaida
慎一 境田
Yoshiaki Shishikui
善明 鹿喰
Kazuhisa Iguchi
和久 井口
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.)
Japan Broadcasting Corp
Original Assignee
Nippon Hoso Kyokai NHK
Japan Broadcasting 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 Nippon Hoso Kyokai NHK, Japan Broadcasting Corp filed Critical Nippon Hoso Kyokai NHK
Priority to JP2010023264A priority Critical patent/JP5309046B2/en
Publication of JP2011166219A publication Critical patent/JP2011166219A/en
Application granted granted Critical
Publication of JP5309046B2 publication Critical patent/JP5309046B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To encode and decode a Bayer array image without subjecting the image to demosaicing and without degrading encoding efficiency. <P>SOLUTION: An encoding apparatus includes a signal array conversion unit (11) that generates an image signal having been subjected to array conversion in which arrays of respective colors of a color image signal of Bayer arrays are arranged in a square lattice shape without any gap and a flag signal indicating the type of the array conversion, parameter determination units (22, 23 and 24) for determining parameters used for encoding of the array converted image signal based upon the flag signal, and signal processing units (13, 14, 15 and 16) using the parameters to subject the signal converted by the signal array conversion unit to signal processing to encode the signal. A decoding apparatus includes units (32, 33 and 34) for acquiring a parameter signal and performing decoding using the parameters. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、ベイヤ配列の画像信号を符号化する符号化装置、ベイヤ配列の画像信号を復号する復号装置、及びベイヤ配列の画像信号を符号化、復号するプログラムに関するものである。   The present invention relates to an encoding device that encodes Bayer array image signals, a decoding device that decodes Bayer array image signals, and a program that encodes and decodes Bayer array image signals.

画像信号、映像信号の圧縮符号化技術は、方式の国際標準化や実応用に伴い進展している。中でも、現在のデジタル放送やDVDで利用されているMPEG−2方式は、世界的に広く使われる汎用符号化方式となっている。また、Blu−ray(登録商標)や日本のワンセグで利用されているMPEG−4 AVC/H.264方式は、MPEG−2方式の約2倍の符号化効率を達成しており、普及が広まっている。これらの符号化方式は、画像信号を周波数領域の信号に変換し、画像信号が特徴的に有する低域信号に電力を集中させた上で、人間の視覚特性を考慮した量子化処理により効率的に圧縮する方式である。画像信号から周波数領域信号への変換は、MPEG−2で用いられている離散コサイン変換(DCT:Discrete Cosine Transform)、MPEG−4 AVC/H.264で用いられている、DCTをベースとした整数直交変換や、JPEG2000等で用いられているウエーブレット変換、その他、アダマール変換、スラント変換、カルーネン−レーベ変換など種々の技法がある。   Image signal and video signal compression coding techniques have been developed with international standardization and practical application of the system. Among them, the MPEG-2 system currently used in digital broadcasting and DVD is a general-purpose encoding system widely used worldwide. In addition, MPEG-4 AVC / H.V. Used in Blu-ray (registered trademark) and One Seg in Japan. The H.264 system achieves about twice the encoding efficiency of the MPEG-2 system, and has become widespread. These encoding methods convert image signals into frequency domain signals, concentrate power on low-frequency signals that are characteristic of image signals, and efficiently perform quantization processing that takes into account human visual characteristics. This is a compression method. The conversion from an image signal to a frequency domain signal is performed by using a discrete cosine transform (DCT) used in MPEG-2, MPEG-4 AVC / H. There are various techniques such as integer orthogonal transformation based on DCT used in H.264, wavelet transformation used in JPEG2000, etc., Hadamard transformation, slant transformation, and Karhunen-Labe transformation.

一方、画像信号を取得するデジタルカメラなどのセンサの多くは、CCDやCMOSのように単一の光センサとカラーフィルタとを組み合わせて色の識別を行っている。一般的には入射される光をベイヤ配列(ベイヤパターン)に分離する。   On the other hand, many sensors such as digital cameras that acquire image signals identify colors by combining a single photosensor and a color filter, such as a CCD or CMOS. In general, incident light is separated into a Bayer array (Bayer pattern).

図13に、ベイヤ配列の例を示す。図13の例では、水平方向に緑(G1)と赤(R)、又は緑(G2)と青(B)のそれぞれ2色が周期的に現れる。垂直方向には、緑(G1)と青(B)、又は緑(G2)と赤(R)のそれぞれ2色が周期的に現れる。よって、1つの画像内で、緑は赤又は青の2倍の画素数を有することになる。これは、緑、青、赤のうち、緑が人間の視覚感度の高い輝度信号に最も近い特性を有しているためである。   FIG. 13 shows an example of the Bayer array. In the example of FIG. 13, two colors of green (G1) and red (R) or green (G2) and blue (B) appear periodically in the horizontal direction. In the vertical direction, two colors of green (G1) and blue (B) or green (G2) and red (R) appear periodically. Accordingly, in one image, green has twice as many pixels as red or blue. This is because of green, blue, and red, green has the closest characteristic to a luminance signal with high human visual sensitivity.

ベイヤ配列の画像信号は1つの画素位置に1つの色信号しか存在しないため、1画素に対して3色を生成する処理を施す必要がある。この処理はデモザイク処理又はデモザイキング処理などと呼ばれている。デモザイク処理により全画素位置に3色をそろえると、この画像はベイヤ配列の画像に比べて情報量が3倍に増大する。   Since the Bayer array image signal has only one color signal at one pixel position, it is necessary to perform processing for generating three colors for one pixel. This processing is called demosaic processing or demosaicing processing. When three colors are aligned at all pixel positions by demosaic processing, the amount of information in this image increases three times as compared with an image in the Bayer array.

ベイヤ配列の画像信号を対象に圧縮符号化する場合、基本的にはデモザイク処理により全画素位置に3色の信号をそろえた形で符号化処理を行う。また、圧縮符号化では、RGB信号で符号化するのではなく、RGB信号をYCbCr信号などの輝度信号と色差信号とに変換してから符号化処理を行うことが多い。前述のように、デモザイク処理を行うと、画像の情報量がベイヤ配列時の3倍に増大する。そこで、デモザイク処理を行わずに圧縮符号化する技法もある(例えば、特許文献1参照)。   When compression encoding is performed on a Bayer array image signal, the encoding process is basically performed in a form in which signals of three colors are arranged at all pixel positions by demosaic processing. In compression encoding, encoding is often performed after converting an RGB signal into a luminance signal such as a YCbCr signal and a color difference signal, rather than encoding with an RGB signal. As described above, when the demosaic process is performed, the information amount of the image increases to three times that in the Bayer arrangement. Therefore, there is a technique of performing compression encoding without performing demosaic processing (see, for example, Patent Document 1).

デモザイクを行わず符号化処理を行うためには、RGB信号又はYCbCr信号からなるベイヤ配列画像信号の各色信号を、正方格子状にそろうように隙間なく整列させる必要がある。正方格子状への整列の仕方によって、輝度信号の画像が、元のベイヤ配列画像信号に対して垂直方向に半分のサイズになる場合と、水平方向に半分のサイズになる場合とがある。信号形式としてはYCbCrの4:2:2フォーマット信号が形成される。   In order to perform the encoding process without performing the demosaicing, it is necessary to align the color signals of the Bayer array image signal made up of RGB signals or YCbCr signals without gaps so as to be aligned in a square lattice pattern. Depending on the method of alignment in a square lattice, the luminance signal image may be half the size in the vertical direction or half the size in the horizontal direction with respect to the original Bayer array image signal. As a signal format, a 4: 2: 2 format signal of YCbCr is formed.

図14に、ベイヤ配列の映像信号を符号化する、従来の符号化装置4のブロック図を示す。符号化装置4は、信号配列変換部11と、減算部12と、時間周波数変換部13と、量子化部14と、係数走査部15と、可変長符号化部16と、逆量子化部17と、周波数時間変換部18と、画像メモリ19と、予測処理部20と、加算部21とを備える。   FIG. 14 is a block diagram of a conventional encoding device 4 that encodes a video signal having a Bayer array. The encoding device 4 includes a signal array conversion unit 11, a subtraction unit 12, a time frequency conversion unit 13, a quantization unit 14, a coefficient scanning unit 15, a variable length encoding unit 16, and an inverse quantization unit 17. A frequency time conversion unit 18, an image memory 19, a prediction processing unit 20, and an addition unit 21.

信号配列変換部11は、符号化装置1に入力されたベイヤ配列の映像信号を、YCbCr信号などの輝度信号及び色差信号からなる色空間の信号に色空間変換し、色空間変換後の信号を減算部12及び予測処理部20に出力する。   The signal array conversion unit 11 performs color space conversion of the Bayer array video signal input to the encoding device 1 into a color space signal including a luminance signal and a color difference signal such as a YCbCr signal, and the signal after the color space conversion is performed. The result is output to the subtraction unit 12 and the prediction processing unit 20.

減算部12は、信号配列変換部11から入力される画像信号と、予測処理部20から入力される予測画像との差分信号を生成し、時間周波数変換部13に出力する。   The subtraction unit 12 generates a difference signal between the image signal input from the signal array conversion unit 11 and the predicted image input from the prediction processing unit 20 and outputs the difference signal to the time-frequency conversion unit 13.

時間周波数変換部13は、減算部12から供給される差分信号に対して小領域の画素ブロックごとに時間領域の信号(画像信号)を周波数領域の信号に変換する処理を行い、周波数領域の信号(変換係数信号)を量子化部14に出力する。変換処理には、MPEG−2などで利用されているDCTや、MPEG−4 AVC/H.264で利用されている整数直交変換や、JPEG2000などで利用されているウエーブレット変換等が適用可能である。   The time-frequency conversion unit 13 performs a process of converting a time-domain signal (image signal) into a frequency-domain signal for each small-area pixel block with respect to the difference signal supplied from the subtraction unit 12, thereby generating a frequency-domain signal. (Transform coefficient signal) is output to the quantization unit 14. For the conversion process, DCT used in MPEG-2, MPEG-4 AVC / H. An integer orthogonal transform used in H.264, a wavelet transform used in JPEG 2000, or the like can be applied.

量子化部14は、時間周波数変換部13から入力される変換係数信号に対し、小領域の画素ブロックに対応する量子化テーブルを選択して量子化処理を行い、量子化係数信号を係数走査部15及び逆量子化部17に出力する。   The quantization unit 14 selects a quantization table corresponding to the pixel block in the small area and performs a quantization process on the conversion coefficient signal input from the time-frequency conversion unit 13, and converts the quantization coefficient signal into a coefficient scanning unit. 15 and the inverse quantization unit 17.

係数走査部15は、量子化部14から入力される量子化係数信号を、所定の順序で走査して並び替え、可変長符号化部16に出力する。この並び替えにより、ゼロではない量子化係数信号は、ほぼ絶対値の大きい順に並び替えられることになる。   The coefficient scanning unit 15 scans and rearranges the quantized coefficient signals input from the quantization unit 14 in a predetermined order, and outputs them to the variable length coding unit 16. By this rearrangement, the non-zero quantized coefficient signals are rearranged in the order of almost absolute values.

可変長符号化部16は、係数走査部15から入力される量子化係数信号について可変長符号化処理を施しビットストリームを生成するとともに、予測処理部20から入力される動きベクトルの情報も可変長符号化を施して出力する。   The variable length encoding unit 16 performs a variable length encoding process on the quantized coefficient signal input from the coefficient scanning unit 15 to generate a bitstream, and information on motion vectors input from the prediction processing unit 20 is also variable length. Encode and output.

逆量子化部17は、量子化部14から入力される量子化係数信号について逆量子化処理を行って周波数時間変換部18に出力する。   The inverse quantization unit 17 performs an inverse quantization process on the quantization coefficient signal input from the quantization unit 14 and outputs the result to the frequency time conversion unit 18.

周波数時間変換部18は、逆量子化部17から入力される周波数領域の信号を時間領域の信号へ変換する処理(例えば、IDCT;Inverse Discrete Cosine Transform)を行い、加算部21に出力する。   The frequency time conversion unit 18 performs processing (for example, IDCT; Inverse Discrete Cosine Transform) to convert the frequency domain signal input from the inverse quantization unit 17 into a time domain signal, and outputs the signal to the addition unit 21.

加算部21は、周波数時間変換部18から入力される時間領域の信号と、予測処理部20から入力される予測画像とを加算処理して復号画像を生成し、画像メモリ19に出力する。   The adder 21 adds the time domain signal input from the frequency time converter 18 and the predicted image input from the prediction processor 20 to generate a decoded image, and outputs the decoded image to the image memory 19.

予測処理部20は、画面間予測(インター予測)処理、又は画面内予測(イントラ予測)処理を行う。これらの処理は、例えば画像を矩形に分割したブロックを単位として行われる。画面内予測の場合には、画像メモリ19に蓄積された符号化済みの近傍画素から、符号化対象となるブロックの画素を予測する。この予測処理は、例えばMPEG−4 AVC/H.264規格で規定されているイントラ予測処理が適用可能である。画面間予測の場合には、ブロック単位での動き補償予測処理が施される。動き予測の方法としては、画像メモリ19に蓄えられた画像を用いたブロックマッチングや勾配法などの方法が適用可能であり、これらの方法はMPEG−2やMPEG−4 AVC/H.264などの規格の符号化でも利用されている。予測処理部20は、生成した予測画像を減算部12及び加算部21に出力する。また、動きベクトルの情報を可変長符号化部16に出力する。   The prediction processing unit 20 performs inter-screen prediction (inter prediction) processing or intra-screen prediction (intra prediction) processing. These processes are performed in units of blocks obtained by dividing an image into rectangles, for example. In the case of intra prediction, the pixel of the block to be encoded is predicted from the encoded neighboring pixels stored in the image memory 19. This prediction process is, for example, MPEG-4 AVC / H. Intra prediction processing defined in the H.264 standard is applicable. In the case of inter-screen prediction, motion compensation prediction processing is performed in units of blocks. As a motion prediction method, a method such as block matching or a gradient method using an image stored in the image memory 19 can be applied, and these methods are MPEG-2, MPEG-4 AVC / H. It is also used in encoding of standards such as H.264. The prediction processing unit 20 outputs the generated predicted image to the subtraction unit 12 and the addition unit 21. Also, the motion vector information is output to the variable length coding unit 16.

特開2008−141326号公報JP 2008-141326 A

以上説明したように、ベイヤ配列画像信号をデモザイク処理することなく符号化処理で利用可能な形式に変換することが可能である。しかし、この変換を行うと、輝度信号の画像サイズが元のベイヤ配列画像に対して垂直方向又は水平方向に半分のサイズになる。   As described above, it is possible to convert the Bayer array image signal into a format that can be used in the encoding process without demosaicing. However, when this conversion is performed, the image size of the luminance signal becomes half the size in the vertical or horizontal direction with respect to the original Bayer array image.

これらの信号を圧縮符号化する際には、DCTなどの周波数変換処理が施される。この際、一般的には画像を正方形のブロックに分割して変換処理が施される。時間周波数変換部13による正方形のブロックでの変換処理、量子化部14による量子化処埋、及び係数走査部15による走査処理は、水平方向、垂直方向の周波数成分がブロック内で同等であることを仮定している。そのため、ベイヤ配列画像信号を正方格子状へ詰める変換を施して周波数成分が水平方向又は垂直方向に半分になっている信号に対して、水平方向、垂直方向の周波数成分が同等であることを仮定した処理を行うことは、符号化効率の低下につながる。また、正方形ブロック内の画像の周波数成分は必ずしも水平方向、垂直方向に同等であるとは限らず、画像によって異なるという問題があった。   When these signals are compression encoded, a frequency conversion process such as DCT is performed. At this time, generally, the image is divided into square blocks and subjected to conversion processing. The conversion processing in the square block by the time frequency conversion unit 13, the quantization processing by the quantization unit 14, and the scanning processing by the coefficient scanning unit 15 have the same frequency components in the horizontal and vertical directions in the block. Is assumed. Therefore, it is assumed that the frequency components in the horizontal direction and the vertical direction are equivalent to the signal in which the frequency components are halved in the horizontal direction or the vertical direction by performing the conversion for packing the Bayer array image signal into a square lattice shape. Performing the above processing leads to a decrease in encoding efficiency. In addition, the frequency components of the images in the square block are not necessarily equal in the horizontal direction and the vertical direction, and there is a problem that they differ depending on the images.

本発明の目的は、上記問題を解決するため、ベイヤ配列画像信号をデモザイク処理することなく符号化する場合に、符号化効率を向上させる符号化装置及びプログラムを提供することにある。また、該符号化装置により符号化された符号化ストリームを適切に復号する復号装置及びプログラムを提供することにある。   In order to solve the above problem, an object of the present invention is to provide an encoding device and a program that improve encoding efficiency when a Bayer array image signal is encoded without demosaicing. Another object of the present invention is to provide a decoding device and a program for appropriately decoding an encoded stream encoded by the encoding device.

上記課題を解決するため、本発明は、ベイヤ配列画像信号を正方格子状へ整列させる配列変換の種類に応じて、周波数変換処理及びその後の処理について適応的に切り替える。   In order to solve the above-described problems, the present invention adaptively switches between frequency conversion processing and subsequent processing in accordance with the type of array conversion for aligning Bayer array image signals in a square lattice pattern.

すなわち、本発明に係る符号化装置は、ベイヤ配列のカラー画像信号をブロック単位で符号化する符号化装置であって、ベイヤ配列のカラー画像信号の各色の配列を正方格子状に隙間なく整列するように配列変換した画像信号及び前記配列変換の種類を示すフラグ信号を生成する信号配列変換手段と、前記フラグ信号に基づいて、前記配列変換した画像信号を符号化する際のパラメータを決定するパラメータ決定手段と、前記パラメータを用いて、前記配列変換した画像信号を信号処理して符号化する信号処理手段と、を備えることを特徴とする。   That is, an encoding apparatus according to the present invention is an encoding apparatus that encodes a Bayer array color image signal in units of blocks, and aligns the color array of Bayer array color image signals in a square lattice pattern without gaps. A signal arrangement conversion means for generating an image signal subjected to the array conversion and a flag signal indicating the type of the array conversion, and a parameter for determining a parameter for encoding the image signal subjected to the array conversion based on the flag signal And determining means; and signal processing means for performing signal processing and encoding of the image signals subjected to the array conversion using the parameters.

また、前記パラメータ決定手段は、前記配列変換の種類に基づいて、画像信号を周波数信号へ変換する処理を行う際の処理単位となるブロックの形状を前記パラメータとし決定する変換制御手段からなり、前記信号処理手段は、前記形状のブロック単位で前記配列変換した画像信号を周波数信号に変換し、該周波数信号を量子化して符号化することを特徴とする。   Further, the parameter determination means comprises conversion control means for determining, as the parameter, the shape of a block as a processing unit when performing processing for converting an image signal into a frequency signal based on the type of the array conversion, The signal processing means converts the image signal subjected to the array conversion in units of blocks of the shape into a frequency signal, and quantizes and encodes the frequency signal.

また、本発明に係る符号化装置において、前記フラグ信号は、前記配列変換が、ベイヤ配列のカラー画像信号の各色の配列を水平方向の解像度を保ったまま正方格子状に整列する水平保存変換、又はベイヤ配列のカラー画像信号の各色の配列を垂直方向の解像度を保ったまま正方格子状に整列する垂直保存のいずれかであることを示す信号であり、前記パラメータ決定手段は、前記配列変換が前記水平保存変換であることを示すフラグ信号を取得した場合には、前記ブロックの形状を垂直方向のライン数よりも水平方向の画素数が大きいものに決定し、前記配列変換が前記垂直保存変換であることを示すフラグ信号を取得した場合には、前記ブロックの形状を水平方向の画素数よりも垂直方向のライン数が大きいものに決定することを特徴とする。   Further, in the encoding device according to the present invention, the flag signal is a horizontal storage conversion in which the array conversion aligns the array of each color of the color image signal of the Bayer array in a square lattice shape while maintaining the horizontal resolution. Or a signal indicating that the arrangement of each color of the color image signal of the Bayer arrangement is one of the vertical storages arranged in a square lattice pattern while maintaining the resolution in the vertical direction, and the parameter determining means When the flag signal indicating the horizontal storage conversion is acquired, the shape of the block is determined to be larger in the number of pixels in the horizontal direction than the number of lines in the vertical direction, and the array conversion is the vertical storage conversion. If the flag signal indicating that the number of lines is acquired, the shape of the block is determined to have a larger number of lines in the vertical direction than the number of pixels in the horizontal direction. That.

また、本発明に係る符号化装置において、前記パラメータ決定手段は、前記信号配列変換手段から前記信号配列変換を行った画像を取得し、周波数成分を解析して周波数成分に偏りがあるか否かを判定し、偏りがないと判定した場合には、前記ブロックの形状を正方形に決定することを特徴とする。   Further, in the encoding device according to the present invention, the parameter determination unit acquires the image subjected to the signal sequence conversion from the signal sequence conversion unit, analyzes the frequency component, and determines whether the frequency component is biased. If it is determined that there is no bias, the shape of the block is determined to be a square.

また、本発明に係る復号装置は、ベイヤ配列のカラー画像信号をブロック単位で符号化した符号化ストリームを復号する復号装置であって、前記符号化ストリームを可変長復号、逆係数走査、及び逆量子化した信号を周波数時間変換する際の処理単位となるブロックの形状を示す情報を表すパラメータ信号を取得するパラメータ取得手段と、該取得したパラメータ信号によって特定される形状のブロック単位で、前記符号化ストリームを可変長復号、逆係数走査、及び逆量子化した周波数信号を、画像信号に変換する周波数時間変換手段と、を備えることを特徴とする。   A decoding apparatus according to the present invention is a decoding apparatus that decodes an encoded stream obtained by encoding a color image signal of a Bayer array in units of blocks, and the encoded stream is subjected to variable length decoding, inverse coefficient scanning, and inverse processing. Parameter acquisition means for acquiring a parameter signal representing information indicating the shape of a block that is a processing unit when frequency-time-converting a quantized signal, and the code in block units having a shape specified by the acquired parameter signal Frequency time conversion means for converting a frequency signal obtained by variable-length decoding, inverse coefficient scanning, and inverse quantization of a quantized stream into an image signal.

また、本発明は、ベイヤ配列のカラー画像信号をブロック単位で符号化する符号化装置を構成するコンピュータに、(a)ベイヤ配列のカラー画像信号の各色の配列を正方格子状に隙間なく整列するように配列変換した画像信号を生成するステップと、(b)前記配列変換の種類に基づいて、前記配列変換した画像信号を周波数信号へ変換する処理を行う際の処理単位となるブロックの形状を決定するステップと、(c)前記決定した形状のブロック単位で、前記配列変換した画像信号を周波数信号に変換し、該周波数信号を量子化して符号化するステップと、を実行させるためのプログラムとしても特徴付けられる。   The present invention also provides a computer that constitutes an encoding device that encodes a Bayer array color image signal in units of blocks. (A) The color array of Bayer array color image signals is arranged in a square lattice pattern without gaps. The step of generating the image signal subjected to the array conversion in this way, and (b) the shape of the block serving as a processing unit when performing the process of converting the image signal subjected to the array conversion into a frequency signal based on the type of the array conversion. As a program for executing a determination step, and (c) converting the array-converted image signal into a frequency signal and quantizing and encoding the frequency signal in block units of the determined shape. Is also characterized.

また、本発明に係る符号化装置において、前記パラメータ決定手段は、前記フラグ信号に基づいて、量子化処理を行う際の量子化マトリクスを前記パラメータとして決定する量子化マトリクス決定手段からなり、前記信号処理手段は、前記量子化マトリクスを用いて前記配列変換した画像信号を周波数変換した信号を量子化し、該量子化した信号を符号化することを特徴とする。   Further, in the encoding device according to the present invention, the parameter determination means includes quantization matrix determination means for determining a quantization matrix for performing a quantization process as the parameter based on the flag signal, and the signal The processing means quantizes a signal obtained by frequency-converting the image signal subjected to the array conversion using the quantization matrix, and encodes the quantized signal.

また、本発明に係る符号化装置において、前記フラグ信号は、前記配列変換が、ベイヤ配列のカラー画像信号の各色の配列を水平方向の解像度を保ったまま正方格子状に整列する水平保存変換、又はベイヤ配列のカラー画像信号の各色の配列を垂直方向の解像度を保ったまま正方格子状に整列する垂直保存のいずれかであることを示す信号であり、前記パラメータ決定手段は、前記配列変換が前記水平保存変換であることを示すフラグ信号を取得した場合には、前記量子化マトリクスを水平方向の量子化ステップが垂直方向の量子化ステップよりも細かいものに決定し、前記配列変換が前記垂直保存変換であることを示すフラグ信号を取得した場合には、前記量子化マトリクスを垂直方向の量子化ステップが水平方向の量子化ステップよりも細かいものに決定することを特徴とする。   Further, in the encoding device according to the present invention, the flag signal is a horizontal storage conversion in which the array conversion aligns the array of each color of the color image signal of the Bayer array in a square lattice shape while maintaining the horizontal resolution. Or a signal indicating that the arrangement of each color of the color image signal of the Bayer arrangement is one of the vertical storages arranged in a square lattice pattern while maintaining the resolution in the vertical direction, and the parameter determining means When the flag signal indicating the horizontal storage conversion is acquired, the quantization matrix is determined such that the horizontal quantization step is finer than the vertical quantization step, and the array conversion is performed in the vertical conversion step. When a flag signal indicating conservative conversion is acquired, the quantization step in the vertical direction is greater than the horizontal step in the quantization matrix. And determining shopping.

また、本発明に係る復号装置は、ベイヤ配列のカラー画像信号をブロック単位で符号化した符号化ストリームを復号する復号装置であって、前記符号化ストリームを可変長復号及び逆係数走査した信号を量子化する際の量子化マトリクスの情報を表すパラメータ信号を取得するパラメータ取得手段と、該取得したパラメータ信号によって特定される量子化マトリクスを用いて、前記符号化ストリームを可変長復号及び逆係数走査した信号を、逆量子化する逆量子化手段と、を備えることを特徴とする。   A decoding apparatus according to the present invention is a decoding apparatus that decodes an encoded stream obtained by encoding a color image signal of a Bayer array in units of blocks, and a signal obtained by performing variable length decoding and inverse coefficient scanning on the encoded stream. Using the parameter acquisition means for acquiring the parameter signal representing the quantization matrix information at the time of quantization, and the quantization matrix specified by the acquired parameter signal, the encoded stream is subjected to variable length decoding and inverse coefficient scanning. And an inverse quantization means for inversely quantizing the received signal.

また、本発明は、ベイヤ配列のカラー画像信号をブロック単位で符号化する符号化装置を構成するコンピュータに、(a)ベイヤ配列のカラー画像信号の各色の配列を正方格子状に隙間なく整列するように配列変換した画像信号を生成するステップと、(b)前記配列変換の種類に基づいて、量子化処理を行う際の量子化マトリクスを決定するステップと、(c)前記決定した量子化マトリクスを用いて、前記配列変換した画像信号を周波数変換した信号を量子化し、該量子化した信号を符号化するステップと、を実行させるためのプログラムとしても特徴付けられる。   The present invention also provides a computer that constitutes an encoding device that encodes a Bayer array color image signal in units of blocks. (A) The color array of Bayer array color image signals is arranged in a square lattice pattern without gaps. Generating an array-converted image signal in this way, (b) determining a quantization matrix for performing a quantization process based on the type of array conversion, and (c) the determined quantization matrix And a step of quantizing a signal obtained by frequency-converting the image signal subjected to the array conversion, and encoding the quantized signal.

また、本発明に係る符号化装置において、前記パラメータ決定手段は、前記フラグ信号に基づいて、係数走査処理を行う際の係数走査順を前記パラメータとして決定する走査順決定手段からなり、前記信号処理手段は、前記係数走査順で前記配列変換した画像信号を周波数変換して量子化した信号を走査して並び替え、該並び替えられた信号を符号化することを特徴とする。   Further, in the encoding device according to the present invention, the parameter determining means includes scanning order determining means for determining a coefficient scanning order when performing coefficient scanning processing as the parameter based on the flag signal, and the signal processing The means scans and rearranges the quantized signals obtained by frequency-converting the array-converted image signals in the coefficient scanning order, and encodes the rearranged signals.

また、本発明に係る符号化装置において、前記フラグ信号は、前記配列変換が、ベイヤ配列のカラー画像信号の各色の配列を水平方向の解像度を保ったまま正方格子状に整列する水平保存変換、又はベイヤ配列のカラー画像信号の各色の配列を垂直方向の解像度を保ったまま正方格子状に整列する垂直保存のいずれかであることを示す信号であり、前記パラメータ決定手段は、前記配列変換が前記水平保存変換であることを示すフラグ信号を取得した場合には、前記走査順を垂直方向よりも水平方向の走査が多いものに決定し、前記配列変換が前記垂直保存変換であることを示すフラグ信号である場合には、前記走査順として水平方向よりも垂直方向の走査が多いものに決定することを特徴とする。   Further, in the encoding device according to the present invention, the flag signal is a horizontal storage conversion in which the array conversion aligns the array of each color of the color image signal of the Bayer array in a square lattice shape while maintaining the horizontal resolution. Or a signal indicating that the arrangement of each color of the color image signal of the Bayer arrangement is one of the vertical storages arranged in a square lattice pattern while maintaining the resolution in the vertical direction, and the parameter determining means When the flag signal indicating the horizontal storage conversion is acquired, the scanning order is determined to be more horizontal scanning than the vertical direction, and the array conversion is the vertical storage conversion. In the case of a flag signal, the scanning order is determined so that the number of scanning in the vertical direction is larger than that in the horizontal direction.

また、本発明に係る復号装置は、ベイヤ配列のカラー画像信号をブロック単位で符号化した符号化ストリームを復号する復号装置であって、前記符号化ストリームを可変長復号した信号を逆係数走査する際の係数走査順の情報を表すパラメータ信号を取得するパラメータ取得手段と、該取得したパラメータ信号によって特定される係数走査順で、前記可変長復号した信号を、逆走査して並び替える逆係数走査手段と、を備えることを特徴とする。   The decoding apparatus according to the present invention is a decoding apparatus that decodes an encoded stream obtained by encoding a color image signal of a Bayer array in units of blocks, and performs inverse coefficient scanning on a signal obtained by variable-length decoding the encoded stream. Parameter acquisition means for acquiring a parameter signal representing information of the coefficient scanning order at the time, and inverse coefficient scanning for rearranging and rearranging the variable length decoded signals in the coefficient scanning order specified by the acquired parameter signal And means.

また、本発明は、ベイヤ配列のカラー画像信号をブロック単位で符号化する符号化装置を構成するコンピュータに、(a)ベイヤ配列のカラー画像信号の各色の配列を正方格子状に隙間なく整列するように配列変換した画像信号を生成するステップと、(b)前記配列変換の種類に基づいて、係数走査処理を行う際の係数走査順を決定するステップと、(c)前記決定した係数走査順で、前記配列変換した画像信号を周波数変換して量子化した信号を走査して並び替え、該並び替えられた信号を符号化するステップと、を実行させるためのプログラムとしても特徴付けられる。   The present invention also provides a computer that constitutes an encoding device that encodes a Bayer array color image signal in units of blocks. (A) The color array of Bayer array color image signals is arranged in a square lattice pattern without gaps. Generating an image signal subjected to the array conversion as described above, (b) determining a coefficient scanning order when performing coefficient scanning processing based on the type of the array conversion, and (c) the determined coefficient scanning order. Thus, the present invention can also be characterized as a program for executing the steps of scanning and rearranging the signals obtained by frequency-converting and quantizing the image signals subjected to the array conversion, and encoding the rearranged signals.

本発明によれば、ベイヤ配列画像をデモザイク処理することなく、かつ符号化効率を低下させないで、符号化及び復号することが可能となる。   According to the present invention, it is possible to encode and decode a Bayer array image without performing demosaic processing and without reducing encoding efficiency.

本発明による実施例1の符号化装置のブロック図である。It is a block diagram of the encoding apparatus of Example 1 by this invention. ベイヤ配列画像を水平方向の解像度を保存するように配列変換する例を示す図である。It is a figure which shows the example which carries out the array conversion so that the resolution of a horizontal direction may be preserve | saved for a Bayer array image. ベイヤ配列画像を垂直方向の解像度を保存するように配列変換する例を示す図である。It is a figure which shows the example which carries out the array conversion of the Bayer array image so that the resolution of a perpendicular direction may be preserve | saved. ベイヤ配列画像を水平方向又は垂直方向の解像度を保存するように配列変換した画像の輝度信号の周波数帯域を示す図である。It is a figure which shows the frequency band of the luminance signal of the image which carried out the array conversion of the Bayer array image so that the resolution of a horizontal direction or a vertical direction may be preserve | saved. 本発明による実施例1の符号化装置におけるブロックサイズの決定方法例を示すフローチャートである。It is a flowchart which shows the example of the determination method of the block size in the encoding apparatus of Example 1 by this invention. 本発明による実施例1の復号装置のブロック図である。It is a block diagram of the decoding apparatus of Example 1 by this invention. 本発明による実施例2の符号化装置のブロック図である。It is a block diagram of the encoding apparatus of Example 2 by this invention. 本発明による実施例2の符号化装置における量子化マトリクスの例を示す図である。It is a figure which shows the example of the quantization matrix in the encoding apparatus of Example 2 by this invention. 本発明による実施例2の復号装置のブロック図である。It is a block diagram of the decoding apparatus of Example 2 by this invention. 本発明による実施例3の符号化装置のブロック図である。It is a block diagram of the encoding apparatus of Example 3 by this invention. 本発明による実施例3の符号化装置における係数の走査順を示す図である。It is a figure which shows the scanning order of the coefficient in the encoding apparatus of Example 3 by this invention. 本発明による実施例3の復号装置のブロック図である。It is a block diagram of the decoding apparatus of Example 3 by this invention. ベイヤ配列の例を示す図である。It is a figure which shows the example of a Bayer arrangement | sequence. 従来の符号化装置のブロック図である。It is a block diagram of the conventional encoding apparatus.

以下、本発明による実施例1の符号化装置及び復号装置について、図面を参照して詳細に説明する。   Hereinafter, an encoding device and a decoding device according to a first embodiment of the present invention will be described in detail with reference to the drawings.

[符号化装置]
図1は、本発明による実施例1の符号化装置1を示すブロック図である。符号化装置1は、信号配列変換部11と、減算部12と、時間周波数変換部13と、量子化部14と、係数走査部15と、可変長符号化部16と、逆量子化部17と、周波数時間変換部18と、画像メモリ19と、予測処理部20と、加算部21と、変換制御部22とを備える。符号化装置1は、従来の符号装置(図14参照)と比較して、さらに変換制御部22を備える点で相違する。なお、従来の符号装置(図14参照)と同じ構成要素には同一の参照番号を付して説明を省略する。
[Encoding device]
FIG. 1 is a block diagram showing an encoding apparatus 1 according to the first embodiment of the present invention. The encoding device 1 includes a signal array conversion unit 11, a subtraction unit 12, a time frequency conversion unit 13, a quantization unit 14, a coefficient scanning unit 15, a variable length encoding unit 16, and an inverse quantization unit 17. A frequency time conversion unit 18, an image memory 19, a prediction processing unit 20, an addition unit 21, and a conversion control unit 22. The encoding device 1 is different from the conventional encoding device (see FIG. 14) in that it further includes a conversion control unit 22. In addition, the same reference number is attached | subjected to the same component as the conventional encoding device (refer FIG. 14), and description is abbreviate | omitted.

信号配列変換部11は、符号化装置1に入力されたベイヤ配列の映像信号を、YCbCrなどの符号化処理に適した形式の信号に色空間変換し、デモザイク処理を行うことなく、正方格子状に隙間なく整列させる。   The signal array conversion unit 11 performs color space conversion of a Bayer array video signal input to the encoding device 1 into a signal in a format suitable for encoding processing such as YCbCr, and performs square mosaic without performing demosaic processing. Align without gaps.

図2は、ベイヤ配列画像をデモザイク処理を行わずに水平方向の解像度を保つように配列変換する例を示す図である。図2(a)は、RGB信号のベイヤ配列a1、RGB信号のベイヤ配列a1のうちG信号を取り出したG信号配列a2、RGB信号のベイヤ配列a1のうちB信号を取り出したB信号配列a3、及びRGB信号のベイヤ配列a1のうちR信号を取り出したR信号配列a4を示す図である。この図から明らかなように、G信号配列a2、B信号配列a3、及びR信号配列a4は、画素立置によって隙間のある配置となる。   FIG. 2 is a diagram illustrating an example in which Bayer array images are array-converted so as to maintain the horizontal resolution without performing demosaic processing. FIG. 2A shows a Bayer array a1 of RGB signals, a G signal array a2 that extracts G signals from the Bayer array a1 of RGB signals, and a B signal array a3 that extracts B signals from the Bayer array a1 of RGB signals. FIG. 6 is a diagram illustrating an R signal array a4 obtained by extracting an R signal from the Bayer array a1 of RGB signals. As is clear from this figure, the G signal array a2, the B signal array a3, and the R signal array a4 are arranged with a gap due to the pixel standing.

図2(b)は、RGB信号のベイヤ配列a1のRGB信号を、画像の符号化形式の一例であるYCbCr信号へ色空間変換を行った場合の、YCbCr信号のベイヤ配列b1、YCbCr信号のベイヤ配列b1のうちY信号を取り出したY信号配列b2、YCbCr信号のベイヤ配列b1のうちCb信号を取り出したCb信号配列b3、及びYCbCr信号のベイヤ配列b1のうちCr信号を取り出したCr信号配列b4を示す図である。この図から明らかなように、Y信号配列b2、Cb信号配列b3、及びCr信号配列b4は、画素立置によって隙間のある配置となる。色空間変換は、例えば式(1)に示す行列変換により行われる。   FIG. 2B shows the Bayer array b1 of the YCbCr signal and the Bayer of the YCbCr signal when the RGB signal of the Bayer array a1 of the RGB signal is subjected to color space conversion to a YCbCr signal which is an example of an image encoding format. The Y signal array b2 from which the Y signal is extracted from the array b1, the Cb signal array b3 from which the Cb signal is extracted from the Bayer array b1 of the YCbCr signal, and the Cr signal array b4 from which the Cr signal is extracted from the Bayer array b1 of the YCbCr signal. FIG. As is clear from this figure, the Y signal array b2, the Cb signal array b3, and the Cr signal array b4 are arranged with a gap due to the pixel placement. The color space conversion is performed, for example, by matrix conversion shown in Expression (1).

Figure 2011166219
輝度信号は主にG信号に対応する。輝度信号はベイヤ配列を保ったまま変換されるため、Y1及びY2で表される。
Figure 2011166219
The luminance signal mainly corresponds to the G signal. Since the luminance signal is converted while maintaining the Bayer array, it is represented by Y1 and Y2.

Y(Y1/Y2)CbCr信号に色空間変換されたベイヤ配列画像信号は、画素位置によって存在する隙間を埋めるように整列させられる。図2(c)は、配列変換後のYCbCr信号c1、配列変換後のYCbCr信号c1のうちY信号を取り出したY信号配列c2、配列変換後のYCbCr信号c1のうちCb信号を取り出したCb信号配列c3、及び配列変換後のYCbCr信号c1のうちCr信号を取り出したCr信号配列c4を示す図である。輝度信号については、Y1又はY2の画素位置を垂直方向にずらして隙間を埋める(図中ではY2を垂直方向にずらしている)。このとき、単純に位置だけをずらす場合と、画素位置と画素の連続性を考慮して画素値にフィルタ処理を施した後に画素位置をずらす方法がある。2つの色差信号Cr及びCbについては、隙間のないように位置をずらされる。この場合も位置だけをずらす方法と、画素位置を考慮してフィルタ処理を施した後にずらす方法がある。最終的には、輝度信号の画像は元のベイヤ配列画像に対して垂直方向に半分のサイズとなる。信号としてはYCbCrの4:2:2フォーマット信号が形成される。このように、輝度信号の水平解像度を保存したまま画素位置をずらす変換のことを、以下、「水平保存変換」と呼ぶ。なお、図2(b)及び図2(c)においては、変換前後の各画素の対応関係を明確にするために、各画素に番号を振っており、同一番号を付した画素は同一の画素であることを示している。   The Bayer array image signals that have been color space converted into Y (Y1 / Y2) CbCr signals are aligned so as to fill in the gaps that exist according to the pixel positions. FIG. 2C shows the YCbCr signal c1 after the array conversion, the Y signal array c2 obtained by extracting the Y signal from the YCbCr signal c1 after the array conversion, and the Cb signal obtained by extracting the Cb signal from the YCbCr signal c1 after the array conversion. It is a figure which shows Cr signal arrangement | sequence c4 which took out Cr signal out of arrangement | sequence c3 and YCbCr signal c1 after arrangement | sequence conversion. For the luminance signal, the pixel position of Y1 or Y2 is shifted in the vertical direction to fill the gap (in the figure, Y2 is shifted in the vertical direction). At this time, there are a method of simply shifting the position and a method of shifting the pixel position after filtering the pixel value in consideration of the pixel position and the continuity of the pixel. The positions of the two color difference signals Cr and Cb are shifted so that there is no gap. In this case as well, there are a method of shifting only the position, and a method of shifting after performing the filtering process in consideration of the pixel position. Eventually, the luminance signal image has a half size in the vertical direction with respect to the original Bayer array image. As a signal, a YCbCr 4: 2: 2 format signal is formed. Such conversion that shifts the pixel position while preserving the horizontal resolution of the luminance signal is hereinafter referred to as “horizontal storage conversion”. In FIG. 2B and FIG. 2C, in order to clarify the correspondence between the pixels before and after conversion, each pixel is numbered, and the pixels with the same numbers are the same pixels. It is shown that.

図3は、ベイヤ配列画像をデモザイク処理を行わずに垂直方向の解像度を保つように配列変換する例を示す図である。図3(a)(b)は図2(a)(b)と同じであるため、説明を省略する。   FIG. 3 is a diagram illustrating an example in which Bayer array images are array-converted so as to maintain vertical resolution without performing demosaic processing. Since FIGS. 3A and 3B are the same as FIGS. 2A and 2B, description thereof is omitted.

Y(Y1/Y2)CbCr信号に色空間変換されたベイヤ配列画像信号は、画素位置によって存在する隙間を埋めるように整列させられる。図3(c)は、配列変換後のYCbCr信号c1、配列変換後のYCbCr信号c1のうちY信号を取り出したY信号配列c2、配列変換後のYCbCr信号c1のうちCb信号を取り出したCb信号配列c3、及び配列変換後のYCbCr信号c1のうちCr信号を取り出したCr信号配列c4を示す図である。輝度信号については、Y1又はY2の画素位置を水平方向にずらして隙間を埋める(図中ではY2を水平方向にずらしている)。このとき、単純に位置だけをずらす場合と、画素位置と画素の連続性を考慮して画素値にフィルタ処理を施した後に画素位置をずらす方法がある。2つの色差信号Cr及びCbについては、垂直方向へ並ぶように位置をずらして隙間のないようにする。この場合も位置だけをずらす方法と、画素位置を考慮してフィルタ処埋を施した後にずらす方法がある。最終的には、元のベイヤ配列画像に対して水平方向に輝度信号が半分のサイズになった信号となる。信号としてはYCbCrの4:2:2フォーマット信号が形成される。このように、輝度信号の垂直解像度を保存したまま画素位置をずらす変換のことを、以下、「垂直保存変換」と呼ぶ。なお、図3(b)及び図3(c)においては、変換前後の各画素の対応関係を明確にするために、各画素に番号を振っており、同一番号を付した画素は同一の画素であることを示している。   The Bayer array image signals that have been color space converted into Y (Y1 / Y2) CbCr signals are aligned so as to fill in the gaps that exist according to the pixel positions. FIG. 3C shows the YCbCr signal c1 after the array conversion, the Y signal array c2 obtained by extracting the Y signal from the YCbCr signal c1 after the array conversion, and the Cb signal obtained by extracting the Cb signal from the YCbCr signal c1 after the array conversion. It is a figure which shows Cr signal arrangement | sequence c4 which took out Cr signal out of arrangement | sequence c3 and YCbCr signal c1 after arrangement | sequence conversion. For the luminance signal, the pixel position of Y1 or Y2 is shifted in the horizontal direction to fill the gap (in the figure, Y2 is shifted in the horizontal direction). At this time, there are a method of simply shifting the position and a method of shifting the pixel position after filtering the pixel value in consideration of the pixel position and the continuity of the pixel. The two color difference signals Cr and Cb are shifted in position so as to be aligned in the vertical direction so that there is no gap. In this case as well, there are a method of shifting only the position, and a method of shifting after performing filter processing in consideration of the pixel position. Eventually, the luminance signal becomes a half size signal in the horizontal direction with respect to the original Bayer array image. As a signal, a YCbCr 4: 2: 2 format signal is formed. Such conversion that shifts the pixel position while maintaining the vertical resolution of the luminance signal is hereinafter referred to as “vertical storage conversion”. In FIGS. 3B and 3C, in order to clarify the correspondence between the pixels before and after the conversion, each pixel is numbered, and the pixels with the same numbers are the same pixels. It is shown that.

図4は、ベイヤ配列画像の周波数帯域、及びベイヤ配列画像に対して水平保存変換又は垂直保存変換を行った画像の輝度信号の周波数帯域を示す図である。図4において、水平軸は右にいくにつれて水平方向の周波数が高くなることを示し、垂直軸は下にいくにつれて垂直方向の周波数が高くなることを示している。図4(a)は、水平保存変換又は垂直保存変換を行う前の、ベイヤ配列画像の周波数帯域を示す図である。ベイヤ配列画像は全画素がある場合の画像と比較して、水平方向及び垂直方向に対して斜め45度の方向の帯域が半分になっているため、斜線を付した領域内に周波数スペクトルが存在することになる。図4(b)は、ベイヤ配列画像に対して水平保存変換を行った画像の周波数帯域を示す図である。水平方向の解像度は全画素がある場合と等しくなるが、垂直方向の解像度は全画素がある場合の半分になるため、斜線を付した領域内に周波数スペクトルが存在することになる。図4(c)は、ベイヤ配列画像に対して垂直保存変換を行った画像の周波数帯域を示す図である。垂直方向の解像度は全画素がある場合と等しくなるが、水平方向の解像度は全画素がある場合の半分になるため、斜線を付した領域内に周波数スペクトルが存在することになる。   FIG. 4 is a diagram illustrating a frequency band of a Bayer array image and a frequency band of a luminance signal of an image obtained by performing horizontal storage conversion or vertical storage conversion on the Bayer array image. In FIG. 4, the horizontal axis indicates that the frequency in the horizontal direction increases as it goes to the right, and the vertical axis indicates that the frequency in the vertical direction increases as it goes down. FIG. 4A is a diagram illustrating a frequency band of a Bayer array image before performing horizontal storage conversion or vertical storage conversion. Compared to the image with all pixels, the Bayer array image has half the band in the direction of 45 degrees diagonally with respect to the horizontal and vertical directions, so there is a frequency spectrum in the shaded area. Will do. FIG. 4B is a diagram illustrating a frequency band of an image obtained by performing horizontal storage conversion on the Bayer array image. The resolution in the horizontal direction is the same as when all the pixels are present, but the resolution in the vertical direction is half that when all the pixels are present, so that a frequency spectrum exists in the hatched region. FIG. 4C is a diagram illustrating a frequency band of an image obtained by performing vertical storage conversion on the Bayer array image. Although the resolution in the vertical direction is equal to that in the case where all the pixels are present, the resolution in the horizontal direction is half that in the case where there are all the pixels, so that a frequency spectrum exists in the hatched region.

再び図1に戻って、符号化装置1の構成について説明する。信号配列変換部11は、信号配列変換後の映像信号を減算部12及び予測処理部20に出力し、水平保存変換又は垂直保存変換の種類を示すフラグ信号を変換制御部22に出力する。   Returning to FIG. 1 again, the configuration of the encoding device 1 will be described. The signal array conversion unit 11 outputs the video signal after the signal array conversion to the subtraction unit 12 and the prediction processing unit 20, and outputs a flag signal indicating the type of horizontal storage conversion or vertical storage conversion to the conversion control unit 22.

変換制御部22は、信号配列変換部11から入力されるフラグ信号に基づいて、時間周波数変換部13の変換を行う際の処理単位となるブロックの形状を決定し、決定したブロックの形状の情報を表すパラメータ信号を時間周波数変換部13及び周波数時間変換部18に出力する。   Based on the flag signal input from the signal array conversion unit 11, the conversion control unit 22 determines the shape of a block serving as a processing unit when performing the conversion of the time-frequency conversion unit 13, and information on the determined block shape Is output to the time-frequency conversion unit 13 and the frequency-time conversion unit 18.

変換制御部22におけるブロックの形状の決定方法について説明する。符号化規格の変換処理として、MPEG−2では8画素×8ラインブロックサイズのDCT、MPEG−4 AVC/H.264では4画素×4ラインと8画素×8ラインの整数直交変換が用いられている。両者とも正方形ブロックであるが、これは2次元信号である画像信号が水平方向及び垂直方向ともに同等の周波数成分を有していることを仮定している。一方で、本発明が対象としているベイヤ配列画像信号を配列変換した信号は前述のように配列変換の種類の違いによって、同じ正方形ブロック内でも水平、垂直の周波数帯域が一方の半分になっているという特徴がある。そこで、ベイヤ配列からの信号配列変換の種類に応じて処理単位となるブロックの形状を切り替える。   A method of determining the block shape in the conversion control unit 22 will be described. As an encoding standard conversion process, in MPEG-2, an 8-pixel × 8-line block size DCT, MPEG-4 AVC / H. H.264 uses integer orthogonal transformation of 4 pixels × 4 lines and 8 pixels × 8 lines. Both are square blocks, but this assumes that the image signal, which is a two-dimensional signal, has the same frequency component in both the horizontal and vertical directions. On the other hand, the signal obtained by array conversion of the Bayer array image signal targeted by the present invention has half the horizontal and vertical frequency bands in the same square block due to the difference in the type of array conversion as described above. There is a feature. Therefore, the shape of the block serving as a processing unit is switched according to the type of signal array conversion from the Bayer array.

配列変換が水平保存変換の場合には、垂直方向に対して水平方向は2倍の周波数帯域を有するため、処理単位となるブロックの形状が水平方向に長い長方形となるように、例えば16画素×8ラインや8画素×4ラインといったサイズに決定する。一方、配列変換が垂直保存変換の場合には、水平に対して垂直方向は2倍の周波数帯域を有するため、処理単位となるブロックの形状が垂直方向に長い長方形となるように、例えば8画素×16ラインや4画素×8ラインといったサイズに決定する。   When the array conversion is horizontal storage conversion, the horizontal direction has twice as many frequency bands as the vertical direction, so that the shape of the block serving as a processing unit is, for example, 16 pixels × The size is determined to be 8 lines or 8 pixels × 4 lines. On the other hand, when the array conversion is vertical storage conversion, since the vertical direction has twice the frequency band with respect to the horizontal, for example, 8 pixels so that the shape of the block as a processing unit is a rectangle that is long in the vertical direction. The size is determined to be × 16 lines or 4 pixels × 8 lines.

ただし、例えば、画像が滑らかで周波数帯域が低周波領域に集中する場合のように、周波数帯域に概ね偏りがない(周波数帯域と垂直方向の周波数帯域が同等である)場合には、配列変換によらず正方形のブロックを利用することも可能である。また、変換制御部22は、信号配列変換部11から信号配列変換後の画像を取得して周波数成分を解析する機能を有することができ、周波数成分の解析結果により、長方形又は正方形のブロックを適宜選択することも可能である。   However, for example, when the image is smooth and the frequency band is concentrated in the low frequency region, the frequency band is not substantially biased (the frequency band and the frequency band in the vertical direction are equivalent). Regardless, square blocks can be used. Further, the conversion control unit 22 can have a function of acquiring the image after the signal array conversion from the signal array conversion unit 11 and analyzing the frequency component. Depending on the analysis result of the frequency component, the conversion control unit 22 appropriately selects a rectangular or square block. It is also possible to select.

図5は、変換制御部22が周波数成分解析段を有する場合の、ブロックサイズの決定方法の一例を示すフローチャートである。ステップS101にて、変換制御部22は、周波数成分解析段によって、信号配列変換部11から信号配列変換後の画像を取得して周波数成分を解析する。   FIG. 5 is a flowchart illustrating an example of a block size determination method when the conversion control unit 22 includes a frequency component analysis stage. In step S101, the conversion control unit 22 acquires the image after the signal array conversion from the signal array conversion unit 11 and analyzes the frequency component by the frequency component analysis stage.

ステップS102にて、変換制御部22は、周波数成分解析段によって、周波数に偏りがあるか否かを判定し、周波数に偏りがあると判定した場合には処理をステップS103に進め、周波数に偏りがないと判定した場合には処理をステップS106に進める。   In step S102, the conversion control unit 22 determines whether the frequency is biased by the frequency component analysis stage. If it is determined that the frequency is biased, the process proceeds to step S103, where the frequency bias is biased. If it is determined that there is no data, the process proceeds to step S106.

ステップS103にて、変換制御部22は、信号配列変換部11からフラグ信号を取得し、水平保存変換が行われたか否かを判定し、水平保存変換が行われたと判定した場合には処理をステップS104に進め、垂直保存変換が行われたと判定した場合には処理をステップS105に進める。   In step S103, the conversion control unit 22 acquires a flag signal from the signal array conversion unit 11, determines whether horizontal storage conversion has been performed, and performs processing when determining that horizontal storage conversion has been performed. Proceeding to step S104, if it is determined that vertical storage conversion has been performed, the process proceeds to step S105.

変換制御部22は、ステップS104にて、ブロックの形状を水平方向に長いものに決定し、ステップS105にて、ブロックの形状を垂直方向に長いものに決定し、ステップS106にて、ブロックの形状を正方形に決定する。   In step S104, the conversion control unit 22 determines that the shape of the block is long in the horizontal direction, determines in step S105 that the shape of the block is long in the vertical direction, and in step S106, determines the shape of the block. To square.

時間周波数変換部13は、変換制御部22からパラメータ信号を取得し、パラメータ信号によって特定される形状のブロック単位で、画像信号を周波数信号へ変換する。   The time-frequency conversion unit 13 acquires a parameter signal from the conversion control unit 22 and converts the image signal into a frequency signal in units of blocks having a shape specified by the parameter signal.

周波数時間変換部18は、変換制御部で決定されたブロックと同一の形状のブロック単位で、時間周波数変換部13で行われた変換とは逆の変換処理を行い、周波数信号を画像信号へ変換する。   The frequency time conversion unit 18 performs a conversion process opposite to the conversion performed by the time frequency conversion unit 13 in units of blocks having the same shape as the block determined by the conversion control unit, and converts the frequency signal into an image signal. To do.

変換制御部22でブロックの形状を長方形に決定した場合には、決定したブロックの形状に合わせた量子化マトリクスを用いて、量子化部14における量子化及び逆量子化部17における逆量子化が行われる。また、決定したブロックの形状に合わせた係数走査順で、係数走査部15における係数走査が行われる。   When the transform control unit 22 determines the block shape as a rectangle, the quantization in the quantization unit 14 and the inverse quantization in the dequantization unit 17 are performed using a quantization matrix that matches the determined block shape. Done. In addition, coefficient scanning in the coefficient scanning unit 15 is performed in the coefficient scanning order according to the determined block shape.

[復号装置]
図6は、本発明による実施例1の復号装置5のブロック図である。復号装置5は、可変長復号部31と、逆係数走査部32と、逆量子化部33と、周波数時間変換部34と、加算部35と、画像メモリ36と、予測処理部37とを備える。
[Decoding device]
FIG. 6 is a block diagram of the decoding device 5 according to the first embodiment of the present invention. The decoding device 5 includes a variable length decoding unit 31, an inverse coefficient scanning unit 32, an inverse quantization unit 33, a frequency time conversion unit 34, an addition unit 35, an image memory 36, and a prediction processing unit 37. .

可変長復号部31は、復号装置5に入力される符号化ストリームに可変長復号処理を施し逆係数走査部32に出力するとともに、動きベクトルの情報を復号して予測処理部37に出力する。   The variable length decoding unit 31 performs variable length decoding processing on the encoded stream input to the decoding device 5 and outputs it to the inverse coefficient scanning unit 32, and also decodes motion vector information and outputs it to the prediction processing unit 37.

逆係数走査部32は、可変長復号部31から入力される1次元配列の量子化係数信号を走査して並び替えて2次元配列にし、逆量子化部33に出力する。   The inverse coefficient scanning unit 32 scans and rearranges the one-dimensional array of quantized coefficient signals input from the variable length decoding unit 31 to form a two-dimensional array, and outputs the two-dimensional array to the inverse quantization unit 33.

逆量子化部33は、逆係数走査部32から入力される量子化信号に対して逆量子化処理を施して差分信号の変換係数を取得し、周波数時間変換部34に出力する。   The inverse quantization unit 33 performs an inverse quantization process on the quantized signal input from the inverse coefficient scanning unit 32 to acquire a transform coefficient of the difference signal, and outputs it to the frequency time conversion unit 34.

周波数時間変換部34は、符号化装置1からパラメータ信号として、符号化装置1の変換制御部22で決定したブロックの形状を表す情報を取得する。そして、パラメータ信号によって特定される形状のブロック単位で、逆量子化部33から入力される差分信号の周波数領域の信号(変換係数信号)に対して周波数時間変換(例えば、IDCT)を施し、得られる差分信号を加算部35に出力する。なお、パラメータ信号としてブロックの形状を取得してもよいし、復号装置5が複数の形状のブロックを記憶しておき、パラメータ信号としてどのブロックを選択するかの情報のみを取得してもよい。   The frequency time conversion unit 34 acquires information representing the shape of the block determined by the conversion control unit 22 of the encoding device 1 as a parameter signal from the encoding device 1. Then, frequency-time conversion (for example, IDCT) is performed on the frequency domain signal (transform coefficient signal) of the differential signal input from the inverse quantization unit 33 in block units having a shape specified by the parameter signal. The difference signal is output to the adder 35. Note that the shape of the block may be acquired as the parameter signal, or the decoding device 5 may store a plurality of shape blocks and acquire only information on which block to select as the parameter signal.

加算部35は、周波数時間変換部34から得られる差分信号と、予測処理部37から入力される予測画像とを加算して画像信号を復元し、外部及び画像メモリ36に出力する。   The addition unit 35 adds the difference signal obtained from the frequency time conversion unit 34 and the predicted image input from the prediction processing unit 37 to restore the image signal, and outputs the image signal to the outside and the image memory 36.

予測処理部37は、画像メモリ36から得られる参照画像を用いた画面内予測、又は画像メモリ36から得られる参照画像及び可変長復号部31から得られる動きベクトルを用いた画面間予測により予測画像を生成し、加算部35に出力する。   The prediction processing unit 37 predicts an image by intra prediction using a reference image obtained from the image memory 36 or inter-screen prediction using a reference image obtained from the image memory 36 and a motion vector obtained from the variable length decoding unit 31. Is output to the adder 35.

実施例1の符号化装置1によれば、周波数帯域を考慮した適切な形状のブロック単位で時間周波数変換することができるので、符号化効率を向上でき、画像の劣化を低減させることができる。また、復号装置5によれば、符号化装置1で符号化した符号化ストリームを適切に復号できるようになる。   According to the encoding apparatus 1 of the first embodiment, time-frequency conversion can be performed in units of blocks having an appropriate shape in consideration of the frequency band, so that encoding efficiency can be improved and image degradation can be reduced. Moreover, according to the decoding device 5, the encoded stream encoded by the encoding device 1 can be appropriately decoded.

次に、本発明による実施例2の符号化装置及び復号装置について、図面を参照して詳細に説明する。なお、実施例1と同じ構成要素には同一の参照番号を付して説明を省略する。   Next, an encoding device and a decoding device according to Embodiment 2 of the present invention will be described in detail with reference to the drawings. In addition, the same reference number is attached | subjected to the same component as Example 1, and description is abbreviate | omitted.

図7は、本発明による実施例2の符号化装置2のブロック図である。符号化装置2は、信号配列変換部11と、減算部12と、時間周波数変換部13と、量子化部14と、係数走査部15と、可変長符号化部16と、逆量子化部17と、周波数時間変換部18と、画像メモリ19と、予測処理部20と、加算部21と、量子化マトリクス決定部23とを備える。実施例2の符号化装置2は、実施例1の符号化装置1(図1参照)と比較して、変換制御部22に代えて量子化マトリクス決定部23を備える点で相違する。   FIG. 7 is a block diagram of the encoding apparatus 2 according to the second embodiment of the present invention. The encoding device 2 includes a signal array conversion unit 11, a subtraction unit 12, a time frequency conversion unit 13, a quantization unit 14, a coefficient scanning unit 15, a variable length encoding unit 16, and an inverse quantization unit 17. A frequency time conversion unit 18, an image memory 19, a prediction processing unit 20, an addition unit 21, and a quantization matrix determination unit 23. The encoding device 2 according to the second embodiment is different from the encoding device 1 according to the first embodiment in that a quantization matrix determination unit 23 is provided instead of the conversion control unit 22 (see FIG. 1).

信号配列変換部11は、入力されるベイヤ配列画像信号を色空間変換し、信号配列変換の種類を示す信号を量子化マトリクス決定部23へ出力する。   The signal array conversion unit 11 performs color space conversion on the input Bayer array image signal, and outputs a signal indicating the type of signal array conversion to the quantization matrix determination unit 23.

量子化マトリクス決定部23は、信号配列変換部11から入力されるフラグ信号に基づいて量子化部14における量子化で用いる量子化マトリクスを選択して決定し、決定した量子化マトリクスの情報を表すパラメータ信号を量子化部14及び逆量子化部17に出力する。なお、量子化マトリクスは予め複数種類用意されているものとする。DCTなどの変換による符号化で、例えば8画素×8ラインブロックを単位として処理する場合、画素から変換された係数の量子化は1つのパラメータで行われることが多い。人間の視覚は、低い周波数成分に敏感で、高い周波数成分には比較的鈍感であるため、変換された係数に対し周波数成分ごとに量子化ステップを変えるようにするのが一般的である。そのため、量子化マトリクス(量子化テーブル)を用意して、係数ごとに異なる値で割り算することで量子化処理が行われる。   The quantization matrix determination unit 23 selects and determines a quantization matrix used for quantization in the quantization unit 14 based on the flag signal input from the signal array conversion unit 11, and represents information on the determined quantization matrix The parameter signal is output to the quantization unit 14 and the inverse quantization unit 17. Note that a plurality of types of quantization matrices are prepared in advance. When encoding is performed by conversion such as DCT and processing is performed in units of, for example, 8 pixels × 8 line blocks, the coefficients converted from the pixels are often quantized with one parameter. Since human vision is sensitive to low frequency components and relatively insensitive to high frequency components, it is common to change the quantization step for each frequency component for the transformed coefficients. Therefore, the quantization process is performed by preparing a quantization matrix (quantization table) and dividing by a different value for each coefficient.

図8は、量子化マトリクス決定部23が決定し、量子化部14における量子化に用いられる量子化マトリクスの例を示す図である。図8(a)は、8画素×8ラインのブロックを単位として量子化する場合に、従来のMPEG−2やMPEG−4 AVC/H.264で用いられる量子化マトリクスの例を示す図である。変換係数を対応する量子化マトリクスの値で除算することにより、左上の直流成分については細かい量子化が可能となり、右下の高周波数成分については粗い量子化が可能となる。量子化マトリクス決定部23は、水平方向又は垂直方向の周波数成分に応じて異なる量子化マトリクスを選択して決定し、量子化ステップを変える。水平保存変換の場合には、水平方向に高い周波数成分が多いため、例えば図8(b)に示すように、水平方向の量子化ステップが垂直方向の量子化ステップよりも小さくなる量子化マトリクスを用いる。一方、垂直保存変換の場合には、垂直方向に高い周波数成分が多いため、例えば図8(c)に示すように、垂直方向の量子化ステップが水平方向の量子化ステップよりも小さくなる量子化マトリクスを用いる。量子化マトリクス決定部23は、決定した量子化マトリクスを表すパラメータ信号を量子化部14及び逆量子化部17に出力する。   FIG. 8 is a diagram illustrating an example of a quantization matrix determined by the quantization matrix determination unit 23 and used for quantization in the quantization unit 14. FIG. 8A shows a conventional MPEG-2 or MPEG-4 AVC / H.MP when quantizing a block of 8 pixels × 8 lines. 2 is a diagram illustrating an example of a quantization matrix used in H.264. By dividing the transform coefficient by the value of the corresponding quantization matrix, fine quantization is possible for the DC component at the upper left, and coarse quantization is possible for the high frequency component at the lower right. The quantization matrix determination unit 23 selects and determines a different quantization matrix according to the frequency component in the horizontal direction or the vertical direction, and changes the quantization step. In the case of horizontal storage conversion, since there are many high frequency components in the horizontal direction, for example, as shown in FIG. 8B, a quantization matrix in which the horizontal quantization step is smaller than the vertical quantization step is used. Use. On the other hand, in the case of vertical storage conversion, since there are many high frequency components in the vertical direction, for example, as shown in FIG. 8C, the quantization step in the vertical direction is smaller than the quantization step in the horizontal direction. Use a matrix. The quantization matrix determination unit 23 outputs a parameter signal representing the determined quantization matrix to the quantization unit 14 and the inverse quantization unit 17.

量子化部14は、量子化マトリクス決定部23からパラメータ信号を取得し、パラメータ信号により特定された量子化マトリクスを用いて、時間周波数変換部13で変換された変換係数信号を量子化する。量子化係数は、実施例1と同様に係数走査部15により定められた順序での走査によって並び替えが行われ、可変長符号化部16により符号化処理が施され符号化ストリームとして出力される。   The quantization unit 14 obtains a parameter signal from the quantization matrix determination unit 23, and quantizes the transform coefficient signal transformed by the time frequency transform unit 13 using the quantization matrix specified by the parameter signal. The quantized coefficients are rearranged by scanning in the order determined by the coefficient scanning unit 15 as in the first embodiment, encoded by the variable length encoding unit 16, and output as an encoded stream. .

一方、量子化された信号は、実施例1と同様、予測処理部20で利用する信号を生成するため、逆量子化部17へも供給される。逆量子化部17は、量子化マトリクス決定部23から決定した量子化マトリクスを表すパラメータ信号を取得し、パラメータ信号により特定された量子化マトリクスを用いて逆量子化する。逆量子化された係数信号は、実施例1と同様に周波数時間変換部18によって時間領域信号に変換され画像メモリ19に蓄えられる。   On the other hand, the quantized signal is also supplied to the inverse quantization unit 17 in order to generate a signal to be used in the prediction processing unit 20 as in the first embodiment. The inverse quantization unit 17 acquires a parameter signal representing the quantization matrix determined from the quantization matrix determination unit 23, and performs inverse quantization using the quantization matrix specified by the parameter signal. The inversely quantized coefficient signal is converted into a time domain signal by the frequency time conversion unit 18 and stored in the image memory 19 as in the first embodiment.

[復号装置]
図9は、本発明による実施例2の復号装置6のブロック図である。復号装置6は、可変長復号部31と、逆係数走査部32と、逆量子化部33と、周波数時間変換部34と、加算部35と、画像メモリ36と、予測処理部37とを備える点で実施例1の復号装置5と同じであるが、パラメータ信号が逆量子化部33に入力されている点が相違する。
[Decoding device]
FIG. 9 is a block diagram of the decoding device 6 according to the second embodiment of the present invention. The decoding device 6 includes a variable length decoding unit 31, an inverse coefficient scanning unit 32, an inverse quantization unit 33, a frequency time conversion unit 34, an addition unit 35, an image memory 36, and a prediction processing unit 37. This is the same as the decoding device 5 of the first embodiment in that the parameter signal is input to the inverse quantization unit 33.

逆量子化部33は、符号化装置2からパラメータ信号として、符号化装置2の量子化マトリクス決定部23で選択した量子化マトリクスを表す情報を取得する。そして、パラメータ信号により特定された量子化マトリクスを用いて、逆係数走査部32から入力される量子化信号に対して逆量子化処理を施して差分信号の変換係数を取得し、周波数時間変換部34に出力する。なお、パラメータ信号として量子化マトリクスを取得してもよいし、復号装置6が複数の量子化マトリクスを記憶するか、MPEGのプロファイル情報として量子化マトリクスを取得し、パラメータ信号としてどの量子化マトリクスを選択するかの情報のみを取得してもよい。   The inverse quantization unit 33 acquires information representing the quantization matrix selected by the quantization matrix determination unit 23 of the encoding device 2 as a parameter signal from the encoding device 2. Then, using the quantization matrix specified by the parameter signal, the quantization signal input from the inverse coefficient scanning unit 32 is subjected to inverse quantization processing to obtain the transform coefficient of the difference signal, and the frequency time conversion unit 34. Note that a quantization matrix may be acquired as a parameter signal, or the decoding device 6 stores a plurality of quantization matrices, acquires a quantization matrix as MPEG profile information, and determines which quantization matrix as a parameter signal. Only information on whether to select may be acquired.

実施例2の符号化装置2によれば、周波数帯域を考慮した適切な量子化マトリクスを用いて変換係数を量子化することができるので、符号化効率を向上でき、画像の劣化を低減させることができる。また、復号装置6によれば、符号化装置2で符号化した符号化ストリームを適切に復号できるようになる。   According to the encoding device 2 of the second embodiment, since the transform coefficient can be quantized using an appropriate quantization matrix considering the frequency band, encoding efficiency can be improved and image degradation can be reduced. Can do. Further, according to the decoding device 6, the encoded stream encoded by the encoding device 2 can be appropriately decoded.

次に、本発明による実施例3の符号化装置3について、図面を参照して詳細に説明する。なお、実施例1と同じ構成要素には同一の参照番号を付して説明を省略する。   Next, the encoding device 3 according to the third embodiment of the present invention will be described in detail with reference to the drawings. In addition, the same reference number is attached | subjected to the same component as Example 1, and description is abbreviate | omitted.

図10は、本発明による実施例3の符号化装置3のブロック図である。符号化装置3は、信号配列変換部11と、減算部12と、時間周波数変換部13と、量子化部14と、係数走査部15と、可変長符号化部16と、逆量子化部17と、周波数時間変換部18と、画像メモリ19と、予測処理部20と、加算部21と、走査順決定部24とを備える。実施例1の符号化装置1(図1参照)と比較して、変換制御部22に代えて走査順決定部24を備える点で相違する。   FIG. 10 is a block diagram of the encoding apparatus 3 according to the third embodiment of the present invention. The encoding device 3 includes a signal array conversion unit 11, a subtraction unit 12, a time frequency conversion unit 13, a quantization unit 14, a coefficient scanning unit 15, a variable length encoding unit 16, and an inverse quantization unit 17. A frequency time conversion unit 18, an image memory 19, a prediction processing unit 20, an addition unit 21, and a scanning order determination unit 24. Compared with the encoding apparatus 1 (see FIG. 1) of the first embodiment, the difference is that a scanning order determination unit 24 is provided instead of the conversion control unit 22.

信号配列変換部11は、入力されるベイヤ配列画像信号を色空間変換し、信号配列変換の種類を示すフラグ信号を走査順決定部24へ出力する。   The signal array conversion unit 11 performs color space conversion on the input Bayer array image signal and outputs a flag signal indicating the type of signal array conversion to the scanning order determination unit 24.

走査順決定部24は、信号配列変換部11から入力されるフラグ信号に基づいて、係数走査部15において係数走査処理をする際の係数の走査(スキャン)順を選択して決定し、決定した係数走査順の情報を表すパラメータ信号を係数走査部15に出力する。なお、係数の走査順は予め複数種類用意されているものとする。   Based on the flag signal input from the signal array conversion unit 11, the scanning order determination unit 24 selects and determines the coefficient scanning (scanning) order when the coefficient scanning unit 15 performs the coefficient scanning process. A parameter signal representing information on the coefficient scanning order is output to the coefficient scanning unit 15. Note that a plurality of types of coefficient scanning orders are prepared in advance.

図11は、走査順決定部24が決定し、係数走査部15における量子化係数の走査に用いられる走査順の例を示す図である。図11(a)は、従来のMPEG−2方式やMPEG−4 AVC/H.264方式で用いられる、ジグザグスキャンと呼ばれる走査順を示している。また、粗い量子化をされた高周波数成分はゼロになることが多い。このように走査順を定めることで、ゼロ係数をまとめて符号化でき、効率が向上する。実施例3では、水平方向又は垂直方向の周波数成分に応じて走査順を変える。例えば水平保存変換の場合には、水平方向の周波数成分に偏るので、例えば図11(b)に示すように、垂直方向よりも水平方向の走査が多くなる順序で走査する。一方、垂直保存変換の場合には、垂直方向の周波数成分に偏るので、例えば図11(c)に示すように、水平方向よりも垂直方向の走査が多くなる順序で走査する。走査順決定部24は、決定された走査順を表すパラメータ信号を係数走査部15へ出力する。   FIG. 11 is a diagram illustrating an example of the scanning order determined by the scanning order determination unit 24 and used for scanning the quantized coefficients in the coefficient scanning unit 15. FIG. 11A shows a conventional MPEG-2 system and MPEG-4 AVC / H. A scanning order called a zigzag scan used in the H.264 system is shown. Also, the coarsely quantized high frequency component often becomes zero. By determining the scanning order in this way, the zero coefficients can be encoded together and efficiency is improved. In the third embodiment, the scanning order is changed according to the frequency component in the horizontal direction or the vertical direction. For example, in the case of horizontal storage conversion, since it is biased to frequency components in the horizontal direction, as shown in FIG. On the other hand, in the case of vertical storage conversion, since it is biased to the frequency component in the vertical direction, as shown in FIG. The scanning order determination unit 24 outputs a parameter signal representing the determined scanning order to the coefficient scanning unit 15.

係数走査部15は、走査順決定部24からパラメータ信号を取得し、パラメータ信号によって特定された走査順で、量子化係数の並び替えを行う。   The coefficient scanning unit 15 acquires the parameter signal from the scanning order determination unit 24 and rearranges the quantization coefficients in the scanning order specified by the parameter signal.

[復号装置]
図12は、本発明の実施例3による復号装置7のブロック図である。復号装置7は、可変長復号部31と、逆係数走査部32と、逆量子化部33と、周波数時間変換部34と、加算部35と、画像メモリ36と、予測処理部37とを備える点で実施例1の復号装置5及び実施例2の復号装置6と同じであるが、パラメータ信号が逆係数走査部32に入力されている点が相違する。
[Decoding device]
FIG. 12 is a block diagram of the decoding device 7 according to the third embodiment of the present invention. The decoding device 7 includes a variable length decoding unit 31, an inverse coefficient scanning unit 32, an inverse quantization unit 33, a frequency time conversion unit 34, an addition unit 35, an image memory 36, and a prediction processing unit 37. This is the same as the decoding device 5 according to the first embodiment and the decoding device 6 according to the second embodiment, except that a parameter signal is input to the inverse coefficient scanning unit 32.

逆係数走査部32は、符号化装置3からパラメータ信号として、符号化装置3の走査順決定部24で決定した量子化係数の走査順を表す情報を取得する。そして、パラメータ信号によって特定される走査順に従って、可変長復号部31から入力される1次元配列の量子化係数信号に対して、2次元配列に並べ替え、逆量子化部33に出力する。なお、パラメータ信号として走査順を取得してもよいし、復号装置7が複数の走査順を記憶しておき、パラメータ信号としてどの走査順を選択するかの情報のみを取得してもよい。   The inverse coefficient scanning unit 32 acquires information indicating the scanning order of the quantization coefficients determined by the scanning order determination unit 24 of the encoding device 3 as a parameter signal from the encoding device 3. Then, according to the scanning order specified by the parameter signal, the one-dimensional array quantization coefficient signals input from the variable length decoding unit 31 are rearranged into a two-dimensional array and output to the inverse quantization unit 33. Note that the scanning order may be acquired as a parameter signal, or the decoding device 7 may store a plurality of scanning orders and acquire only information on which scanning order is selected as a parameter signal.

実施例3の符号化装置3によれば、周波数帯域を考慮した適切な走査順に並べ替えることができるので、符号化効率を向上できる。また、復号装置7によれば、符号化装置3で符号化した符号化ストリームを適切に復号できるようになる。   According to the encoding device 3 of the third embodiment, it is possible to rearrange in the proper scanning order in consideration of the frequency band, so that the encoding efficiency can be improved. Also, according to the decoding device 7, the encoded stream encoded by the encoding device 3 can be appropriately decoded.

ここで、符号化装置1として機能させるために、コンピュータを好適に用いることができ、そのようなコンピュータは、信号配列変換部11と、減算部12と、時間周波数変換部13と、量子化部14と、係数走査部15と、可変長符号化部16と、逆量子化部17と、周波数時間変換部18と、画像メモリ19と、予測処理部20と、加算部21と、変換制御部22とを機能させるための制御部をCPU(中央演算処理装置)と、少なくとも1つのメモリで構成される記憶部とで実現できる。また、そのようなコンピュータに、CPUによって所定のプログラムを実行させることにより、信号配列変換部11と、減算部12と、時間周波数変換部13と、量子化部14と、係数走査部15と、可変長符号化部16と、逆量子化部17と、周波数時間変換部18と、画像メモリ19と、予測処理部20と、加算部21と、変換制御部22の有する機能を実現させることができる。   Here, in order to function as the encoding device 1, a computer can be preferably used. Such a computer includes a signal array conversion unit 11, a subtraction unit 12, a time frequency conversion unit 13, and a quantization unit. 14, a coefficient scanning unit 15, a variable length encoding unit 16, an inverse quantization unit 17, a frequency time conversion unit 18, an image memory 19, a prediction processing unit 20, an addition unit 21, and a conversion control unit 22 can be realized by a CPU (central processing unit) and a storage unit including at least one memory. Further, by causing such a computer to execute a predetermined program by the CPU, a signal array conversion unit 11, a subtraction unit 12, a time frequency conversion unit 13, a quantization unit 14, a coefficient scanning unit 15, Realizing the functions of the variable length coding unit 16, the inverse quantization unit 17, the frequency time conversion unit 18, the image memory 19, the prediction processing unit 20, the addition unit 21, and the conversion control unit 22. it can.

同様に、符号化装置2として機能させるために、コンピュータを好適に用いることができ、そのようなコンピュータは、信号配列変換部11と、減算部12と、時間周波数変換部13と、量子化部14と、係数走査部15と、可変長符号化部16と、逆量子化部17と、周波数時間変換部18と、画像メモリ19と、予測処理部20と、加算部21と、量子化マトリクス決定部23とを機能させるための制御部をCPUと、少なくとも1つのメモリで構成される記憶部とで実現できる。また、そのようなコンピュータに、CPUによって所定のプログラムを実行させることにより、信号配列変換部11と、減算部12と、時間周波数変換部13と、量子化部14と、係数走査部15と、可変長符号化部16と、逆量子化部17と、周波数時間変換部18と、画像メモリ19と、予測処理部20と、加算部21と、走査順決定部24の有する機能を実現させることができる。   Similarly, in order to function as the encoding device 2, a computer can be suitably used. Such a computer includes a signal array conversion unit 11, a subtraction unit 12, a time frequency conversion unit 13, and a quantization unit. 14, a coefficient scanning unit 15, a variable length coding unit 16, an inverse quantization unit 17, a frequency time conversion unit 18, an image memory 19, a prediction processing unit 20, an addition unit 21, and a quantization matrix A control unit for causing the determination unit 23 to function can be realized by a CPU and a storage unit including at least one memory. Further, by causing such a computer to execute a predetermined program by the CPU, a signal array conversion unit 11, a subtraction unit 12, a time frequency conversion unit 13, a quantization unit 14, a coefficient scanning unit 15, Realizing the functions of the variable length coding unit 16, the inverse quantization unit 17, the frequency time conversion unit 18, the image memory 19, the prediction processing unit 20, the addition unit 21, and the scanning order determination unit 24 Can do.

また、同様に、符号化装置3として機能させるために、コンピュータを好適に用いることができ、そのようなコンピュータは、信号配列変換部11と、減算部12と、時間周波数変換部13と、量子化部14と、係数走査部15と、可変長符号化部16と、逆量子化部17と、周波数時間変換部18と、画像メモリ19と、予測処理部20と、加算部21と、量子化マトリクス決定部23とを機能させるための制御部をCPUと、少なくとも1つのメモリで構成される記憶部とで実現できる。また、そのようなコンピュータに、CPUによって所定のプログラムを実行させることにより、信号配列変換部11と、減算部12と、時間周波数変換部13と、量子化部14と、係数走査部15と、可変長符号化部16と、逆量子化部17と、周波数時間変換部18と、画像メモリ19と、予測処理部20と、加算部21と、走査順決定部24の有する機能を実現させることができる。   Similarly, in order to function as the encoding device 3, a computer can be suitably used. Such a computer includes a signal array conversion unit 11, a subtraction unit 12, a time frequency conversion unit 13, a quantum , A coefficient scanning unit 15, a variable length coding unit 16, an inverse quantization unit 17, a frequency time conversion unit 18, an image memory 19, a prediction processing unit 20, an addition unit 21, a quantum The control unit for causing the optimization matrix determination unit 23 to function can be realized by a CPU and a storage unit including at least one memory. Further, by causing such a computer to execute a predetermined program by the CPU, a signal array conversion unit 11, a subtraction unit 12, a time frequency conversion unit 13, a quantization unit 14, a coefficient scanning unit 15, Realizing the functions of the variable length coding unit 16, the inverse quantization unit 17, the frequency time conversion unit 18, the image memory 19, the prediction processing unit 20, the addition unit 21, and the scanning order determination unit 24 Can do.

さらに、復号装置6,7,又は8として機能させるために、コンピュータを好適に用いることができ、そのようなコンピュータは、可変長復号部31と、逆係数走査部32と、逆量子化部33と、周波数時間変換部34と、加算部35と、画像メモリ36と、予測処理部37とを機能させるための制御部をCPUと、少なくとも1つのメモリで構成される記憶部とで実現できる。また、そのようなコンピュータに、CPUによって所定のプログラムを実行させることにより、可変長復号部31と、逆係数走査部32と、逆量子化部33と、周波数時間変換部34と、加算部35と、画像メモリ36と、予測処理部37の有する機能を実現させることができる。   Furthermore, in order to function as the decoding device 6, 7, or 8, a computer can be preferably used. Such a computer includes a variable length decoding unit 31, an inverse coefficient scanning unit 32, and an inverse quantization unit 33. And the control part for functioning the frequency time conversion part 34, the addition part 35, the image memory 36, and the prediction process part 37 is realizable with CPU and the memory | storage part comprised by at least 1 memory. In addition, by causing such a computer to execute a predetermined program by the CPU, the variable length decoding unit 31, the inverse coefficient scanning unit 32, the inverse quantization unit 33, the frequency time conversion unit 34, and the addition unit 35 are performed. And the function which the image memory 36 and the prediction process part 37 have can be implement | achieved.

上述の各実施例は、個々に代表的な例として説明したが、本発明の趣旨及び範囲内で、多くの変更及び置換ができ、更に、各実施例を組み合わせて別の実施例を実現することができることは当業者に明らかである。従って、本発明は、上述の実施例によって制限するものと解するべきではなく、特許請求の範囲から逸脱することなく、種々の変形や変更が可能である。例えば、本発明による符号化装置は、実施例1の変換制御部22、実施例2の量子化マトリクス決定部、及び実施例3の走査順決定部を備え、画像に応じて変換制御部22、量子化マトリクス決定部、及び実施例3の走査順決定部のうちの少なくとも1つを用いるようにすることも可能である。   Each of the above-described embodiments has been described as a representative example, but many changes and substitutions can be made within the spirit and scope of the present invention, and each embodiment can be combined to realize another embodiment. It will be apparent to those skilled in the art that this is possible. Therefore, the present invention should not be construed as being limited by the above-described embodiments, and various modifications and changes can be made without departing from the scope of the claims. For example, the encoding apparatus according to the present invention includes a conversion control unit 22 according to the first embodiment, a quantization matrix determination unit according to the second embodiment, and a scanning order determination unit according to the third embodiment. It is also possible to use at least one of the quantization matrix determining unit and the scanning order determining unit of the third embodiment.

このように、本発明は、ベイヤ配列の画像信号を符号化する任意の用途、及びベイヤ配列の画像信号を符号化した信号を復号する任意の用途に有用である。   As described above, the present invention is useful for any application that encodes a Bayer array image signal and any application that decodes a signal obtained by encoding a Bayer array image signal.

1,2,3 符号化装置
11 信号配列変換部
12 減算部
13 時間周波数変換部
14 量子化部
15 係数走査部
16 可変長符号化部
17 逆量子化部
18 周波数時間変換部
19 画像メモリ
20 予測処理部
21 加算部
22 変換制御部
23 量子化マトリクス決定部
24 走査順決定部
5,6,7 復号装置
31 可変長復号部
32 逆係数走査部
33 逆量子化部
34 周波数時間変換部
35 加算部
36 画像メモリ
37 予測処理部
1, 2, 3 Encoding Device 11 Signal Array Conversion Unit 12 Subtraction Unit 13 Time Frequency Conversion Unit 14 Quantization Unit 15 Coefficient Scanning Unit 16 Variable Length Coding Unit 17 Inverse Quantization Unit 18 Frequency Time Conversion Unit 19 Image Memory 20 Prediction Processing unit 21 Addition unit 22 Conversion control unit 23 Quantization matrix determination unit 24 Scanning order determination unit 5, 6, 7 Decoding device 31 Variable length decoding unit 32 Inverse coefficient scanning unit 33 Inverse quantization unit 34 Frequency time conversion unit 35 Addition unit 36 Image memory 37 Prediction processing unit

Claims (14)

ベイヤ配列のカラー画像信号をブロック単位で符号化する符号化装置であって、
ベイヤ配列のカラー画像信号の各色の配列を正方格子状に隙間なく整列するように配列変換した画像信号及び前記配列変換の種類を示すフラグ信号を生成する信号配列変換手段と、
前記フラグ信号に基づいて、前記配列変換した画像信号を符号化する際のパラメータを決定するパラメータ決定手段と、
前記パラメータを用いて、前記配列変換した画像信号を信号処理して符号化する信号処理手段と、
を備えることを特徴とする符号化装置。
An encoding device that encodes a Bayer array color image signal in units of blocks,
A signal array converting means for generating an image signal that has been array-converted so that the array of each color of the color image signal of the Bayer array is aligned in a square lattice pattern without gaps, and a flag signal indicating the type of the array conversion;
Parameter determining means for determining a parameter for encoding the array-converted image signal based on the flag signal;
Using the parameters, signal processing means for performing signal processing and encoding the array-converted image signal;
An encoding device comprising:
前記パラメータ決定手段は、前記配列変換の種類に基づいて、画像信号を周波数信号へ変換する処理を行う際の処理単位となるブロックの形状を前記パラメータとし決定する変換制御手段からなり、
前記信号処理手段は、前記形状のブロック単位で前記配列変換した画像信号を周波数信号に変換し、該周波数信号を量子化して符号化することを特徴とする、請求項1に記載の符号化装置。
The parameter determination means comprises conversion control means for determining, as the parameter, the shape of a block serving as a processing unit when performing processing for converting an image signal into a frequency signal based on the type of the array conversion,
2. The encoding apparatus according to claim 1, wherein the signal processing unit converts the image signal subjected to the array conversion in units of blocks of the shape into a frequency signal, and quantizes and encodes the frequency signal. .
前記フラグ信号は、前記配列変換が、ベイヤ配列のカラー画像信号の各色の配列を水平方向の解像度を保ったまま正方格子状に整列する水平保存変換、又はベイヤ配列のカラー画像信号の各色の配列を垂直方向の解像度を保ったまま正方格子状に整列する垂直保存のいずれかであることを示す信号であり、
前記パラメータ決定手段は、前記配列変換が前記水平保存変換であることを示すフラグ信号を取得した場合には、前記ブロックの形状を垂直方向のライン数よりも水平方向の画素数が大きいものに決定し、前記配列変換が前記垂直保存変換であることを示すフラグ信号を取得した場合には、前記ブロックの形状を水平方向の画素数よりも垂直方向のライン数が大きいものに決定することを特徴とする、請求項2に記載の符号化装置。
The flag signal is a horizontal storage conversion in which the array conversion arranges each color array of the Bayer array color image signal in a square lattice pattern while maintaining a horizontal resolution, or each color array of the Bayer array color image signal. Is a signal indicating that the vertical storage is arranged in a square lattice while maintaining the vertical resolution,
The parameter determining means determines that the shape of the block is larger in the number of pixels in the horizontal direction than the number of lines in the vertical direction when the flag signal indicating that the array conversion is the horizontal storage conversion is acquired. When the flag signal indicating that the array conversion is the vertical storage conversion is acquired, the shape of the block is determined to have a larger number of lines in the vertical direction than the number of pixels in the horizontal direction. The encoding device according to claim 2.
前記パラメータ決定手段は、前記信号配列変換手段から前記信号配列変換を行った画像を取得し、周波数成分を解析して周波数成分に偏りがあるか否かを判定し、偏りがないと判定した場合には、前記ブロックの形状を正方形に決定することを特徴とする、請求項3に記載の符号化装置。   When the parameter determining means acquires the image subjected to the signal array conversion from the signal array converting means, analyzes the frequency component to determine whether the frequency component is biased, and determines that there is no bias The encoding apparatus according to claim 3, wherein a shape of the block is determined to be a square. ベイヤ配列のカラー画像信号をブロック単位で符号化した符号化ストリームを復号する復号装置であって、
前記符号化ストリームを可変長復号、逆係数走査、及び逆量子化した信号を周波数時間変換する際の処理単位となるブロックの形状を示す情報を表すパラメータ信号を取得するパラメータ取得手段と、
該取得したパラメータ信号によって特定される形状のブロック単位で、前記符号化ストリームを可変長復号、逆係数走査、及び逆量子化した周波数信号を、画像信号に変換する周波数時間変換手段と、
を備えることを特徴とする復号装置。
A decoding device for decoding an encoded stream obtained by encoding a color image signal of a Bayer array in units of blocks,
Parameter acquisition means for acquiring a parameter signal representing information indicating a shape of a block serving as a processing unit when the signal obtained by performing variable-length decoding, inverse coefficient scanning, and inverse quantization on the encoded stream is frequency-time converted;
Frequency time conversion means for converting a frequency signal obtained by variable length decoding, inverse coefficient scanning, and inverse quantization of the encoded stream into an image signal in block units having a shape specified by the acquired parameter signal;
A decoding apparatus comprising:
ベイヤ配列のカラー画像信号をブロック単位で符号化する符号化装置を構成するコンピュータに、
(a)ベイヤ配列のカラー画像信号の各色の配列を正方格子状に隙間なく整列するように配列変換した画像信号を生成するステップと、
(b)前記配列変換の種類に基づいて、前記配列変換した画像信号を周波数信号へ変換する処理を行う際の処理単位となるブロックの形状を決定するステップと、
(c)前記決定した形状のブロック単位で、前記配列変換した画像信号を周波数信号に変換し、該周波数信号を量子化して符号化するステップと、
を実行させるためのプログラム。
In a computer constituting an encoding device that encodes a Bayer array color image signal in units of blocks,
(A) generating an image signal in which the arrangement of each color of the color image signal of the Bayer arrangement is arranged so as to be arranged in a square lattice pattern without gaps;
(B) determining a shape of a block to be a processing unit when performing the process of converting the image signal subjected to the array conversion into a frequency signal based on the type of the array conversion;
(C) converting the array-converted image signal into a frequency signal in units of blocks of the determined shape, and quantizing and encoding the frequency signal;
A program for running
前記パラメータ決定手段は、前記フラグ信号に基づいて、量子化処理を行う際の量子化マトリクスを前記パラメータとして決定する量子化マトリクス決定手段からなり、
前記信号処理手段は、前記量子化マトリクスを用いて前記配列変換した画像信号を周波数変換した信号を量子化し、該量子化した信号を符号化することを特徴とする、請求項1に記載の符号化装置。
The parameter determination means comprises quantization matrix determination means for determining, as the parameter, a quantization matrix when performing quantization processing based on the flag signal.
2. The code according to claim 1, wherein the signal processing unit quantizes a signal obtained by frequency-converting the image signal subjected to the array conversion using the quantization matrix, and encodes the quantized signal. Device.
前記フラグ信号は、前記配列変換が、ベイヤ配列のカラー画像信号の各色の配列を水平方向の解像度を保ったまま正方格子状に整列する水平保存変換、又はベイヤ配列のカラー画像信号の各色の配列を垂直方向の解像度を保ったまま正方格子状に整列する垂直保存のいずれかであることを示す信号であり、
前記パラメータ決定手段は、前記配列変換が前記水平保存変換であることを示すフラグ信号を取得した場合には、前記量子化マトリクスを水平方向の量子化ステップが垂直方向の量子化ステップよりも細かいものに決定し、前記配列変換が前記垂直保存変換であることを示すフラグ信号を取得した場合には、前記量子化マトリクスを垂直方向の量子化ステップが水平方向の量子化ステップよりも細かいものに決定することを特徴とする、請求項7に記載の符号化装置。
The flag signal is a horizontal storage conversion in which the array conversion arranges each color array of the Bayer array color image signal in a square lattice pattern while maintaining a horizontal resolution, or each color array of the Bayer array color image signal. Is a signal indicating that the vertical storage is arranged in a square lattice while maintaining the vertical resolution,
When the parameter determining means obtains a flag signal indicating that the array conversion is the horizontal storage conversion, the quantization step of the quantization matrix is smaller in the horizontal quantization step than the vertical quantization step. If the flag signal indicating that the array conversion is the vertical storage conversion is acquired, the quantization matrix is determined so that the vertical quantization step is smaller than the horizontal quantization step. The encoding apparatus according to claim 7, wherein:
ベイヤ配列のカラー画像信号をブロック単位で符号化した符号化ストリームを復号する復号装置であって、
前記符号化ストリームを可変長復号及び逆係数走査した信号を量子化する際の量子化マトリクスの情報を表すパラメータ信号を取得するパラメータ取得手段と、
該取得したパラメータ信号によって特定される量子化マトリクスを用いて、前記符号化ストリームを可変長復号及び逆係数走査した信号を、逆量子化する逆量子化手段と、
を備えることを特徴とする復号装置。
A decoding device for decoding an encoded stream obtained by encoding a color image signal of a Bayer array in units of blocks,
Parameter acquisition means for acquiring a parameter signal representing information of a quantization matrix when quantizing a signal obtained by variable length decoding and inverse coefficient scanning of the encoded stream;
Using a quantization matrix specified by the acquired parameter signal, inverse quantization means for inversely quantizing a signal obtained by variable length decoding and inverse coefficient scanning of the encoded stream;
A decoding apparatus comprising:
ベイヤ配列のカラー画像信号をブロック単位で符号化する符号化装置を構成するコンピュータに、
(a)ベイヤ配列のカラー画像信号の各色の配列を正方格子状に隙間なく整列するように配列変換した画像信号を生成するステップと、
(b)前記配列変換の種類に基づいて、量子化処理を行う際の量子化マトリクスを決定するステップと、
(c)前記決定した量子化マトリクスを用いて、前記配列変換した画像信号を周波数変換した信号を量子化し、該量子化した信号を符号化するステップと、
を実行させるためのプログラム。
In a computer constituting an encoding device that encodes a Bayer array color image signal in units of blocks,
(A) generating an image signal in which the arrangement of each color of the color image signal of the Bayer arrangement is arranged so as to be arranged in a square lattice pattern without gaps;
(B) determining a quantization matrix for performing a quantization process based on the type of the array transformation;
(C) using the determined quantization matrix, quantizing the frequency-converted signal of the array-converted image signal, and encoding the quantized signal;
A program for running
前記パラメータ決定手段は、前記フラグ信号に基づいて、係数走査処理を行う際の係数走査順を前記パラメータとして決定する走査順決定手段からなり、
前記信号処理手段は、前記係数走査順で前記配列変換した画像信号を周波数変換して量子化した信号を走査して並び替え、該並び替えられた信号を符号化することを特徴とする、請求項1に記載の符号化装置。
The parameter determination means comprises scanning order determination means for determining, as the parameter, a coefficient scanning order when performing coefficient scanning processing based on the flag signal,
The signal processing means scans and rearranges signals quantized by frequency conversion of the array-converted image signals in the coefficient scanning order, and encodes the rearranged signals. Item 4. The encoding device according to Item 1.
前記フラグ信号は、前記配列変換が、ベイヤ配列のカラー画像信号の各色の配列を水平方向の解像度を保ったまま正方格子状に整列する水平保存変換、又はベイヤ配列のカラー画像信号の各色の配列を垂直方向の解像度を保ったまま正方格子状に整列する垂直保存のいずれかであることを示す信号であり、
前記パラメータ決定手段は、前記配列変換が前記水平保存変換であることを示すフラグ信号を取得した場合には、前記走査順を垂直方向よりも水平方向の走査が多いものに決定し、前記配列変換が前記垂直保存変換であることを示すフラグ信号である場合には、前記走査順として水平方向よりも垂直方向の走査が多いものに決定することを特徴とする、請求項11に記載の符号化装置。
The flag signal is a horizontal storage conversion in which the array conversion arranges each color array of the Bayer array color image signal in a square lattice pattern while maintaining a horizontal resolution, or each color array of the Bayer array color image signal. Is a signal indicating that the vertical storage is arranged in a square lattice while maintaining the vertical resolution,
The parameter determining means determines the scan order to be one having more horizontal scans than vertical scans when acquiring a flag signal indicating that the array transform is the horizontal storage transform, and the array transform 12. The encoding according to claim 11, wherein when the signal is a flag signal indicating that it is the vertical storage conversion, the scanning order is determined to have more scanning in the vertical direction than in the horizontal direction. apparatus.
ベイヤ配列のカラー画像信号をブロック単位で符号化した符号化ストリームを復号する復号装置であって、
前記符号化ストリームを可変長復号した信号を逆係数走査する際の係数走査順の情報を表すパラメータ信号を取得するパラメータ取得手段と、
該取得したパラメータ信号によって特定される係数走査順で、前記可変長復号した信号を、逆走査して並び替える逆係数走査手段と、
を備えることを特徴とする復号装置。
A decoding device for decoding an encoded stream obtained by encoding a color image signal of a Bayer array in units of blocks,
Parameter acquisition means for acquiring a parameter signal representing information on the coefficient scanning order when the signal obtained by variable-length decoding the encoded stream is subjected to inverse coefficient scanning;
Reverse coefficient scanning means for reverse scanning and rearranging the variable length decoded signals in the coefficient scanning order specified by the acquired parameter signal;
A decoding apparatus comprising:
ベイヤ配列のカラー画像信号をブロック単位で符号化する符号化装置を構成するコンピュータに、
(a)ベイヤ配列のカラー画像信号の各色の配列を正方格子状に隙間なく整列するように配列変換した画像信号を生成するステップと、
(b)前記配列変換の種類に基づいて、係数走査処理を行う際の係数走査順を決定するステップと、
(c)前記決定した係数走査順で、前記配列変換した画像信号を周波数変換して量子化した信号を走査して並び替え、該並び替えられた信号を符号化するステップと、
を実行させるためのプログラム。
In a computer constituting an encoding device that encodes a Bayer array color image signal in units of blocks,
(A) generating an image signal in which the arrangement of each color of the color image signal of the Bayer arrangement is arranged so as to be arranged in a square lattice pattern without gaps;
(B) determining a coefficient scanning order when performing a coefficient scanning process based on the type of array conversion;
(C) scanning and rearranging the signals obtained by frequency-converting and quantizing the array-converted image signals in the determined coefficient scanning order, and encoding the rearranged signals;
A program for running
JP2010023264A 2010-02-04 2010-02-04 Encoding device and program Expired - Fee Related JP5309046B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010023264A JP5309046B2 (en) 2010-02-04 2010-02-04 Encoding device and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010023264A JP5309046B2 (en) 2010-02-04 2010-02-04 Encoding device and program

Publications (2)

Publication Number Publication Date
JP2011166219A true JP2011166219A (en) 2011-08-25
JP5309046B2 JP5309046B2 (en) 2013-10-09

Family

ID=44596437

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010023264A Expired - Fee Related JP5309046B2 (en) 2010-02-04 2010-02-04 Encoding device and program

Country Status (1)

Country Link
JP (1) JP5309046B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015064403A1 (en) * 2013-11-01 2015-05-07 ソニー株式会社 Image processing device and method
WO2015064402A1 (en) * 2013-11-01 2015-05-07 ソニー株式会社 Image processing device and method
US9055182B2 (en) 2012-10-04 2015-06-09 Canon Kabushiki Kaisha Image coding apparatus, image coding method, and program
JP2018129753A (en) * 2017-02-10 2018-08-16 キヤノン株式会社 Image encoder, image decoder, control method thereof, and control program

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008141326A (en) * 2006-11-30 2008-06-19 Sony Corp Imaging system and camera unit

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008141326A (en) * 2006-11-30 2008-06-19 Sony Corp Imaging system and camera unit

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9055182B2 (en) 2012-10-04 2015-06-09 Canon Kabushiki Kaisha Image coding apparatus, image coding method, and program
WO2015064403A1 (en) * 2013-11-01 2015-05-07 ソニー株式会社 Image processing device and method
WO2015064402A1 (en) * 2013-11-01 2015-05-07 ソニー株式会社 Image processing device and method
JPWO2015064402A1 (en) * 2013-11-01 2017-03-09 ソニー株式会社 Image processing apparatus and method
US10356442B2 (en) 2013-11-01 2019-07-16 Sony Corporation Image processing apparatus and method
US10397614B2 (en) 2013-11-01 2019-08-27 Sony Corporation Image processing apparatus and method
JP2018129753A (en) * 2017-02-10 2018-08-16 キヤノン株式会社 Image encoder, image decoder, control method thereof, and control program

Also Published As

Publication number Publication date
JP5309046B2 (en) 2013-10-09

Similar Documents

Publication Publication Date Title
JP6407389B2 (en) Data encoding and decoding
JP6091584B2 (en) Image encoding device, image decoding device, image encoding method, image decoding method, and encoded data
JP5792319B2 (en) Mode-dependent scanning of block coefficients of video data
KR102081350B1 (en) Intra-prediction method, and encoder and decoder using same
JP5982612B2 (en) Intra prediction mode decoding method
WO2010004726A1 (en) Image coding method, image decoding method, image coding device, image decoding device, program, and integrated circuit
WO2010001999A1 (en) Dynamic image encoding/decoding method and device
KR20150096375A (en) Method for encoding/decoding image, and device using same
KR101362755B1 (en) Sensor image encoding and decoding apparatuses and method thereof
JP5309046B2 (en) Encoding device and program
JP2010041505A (en) Image processor, image processing method, computer program, and information recording medium
WO2010055675A1 (en) Moving image encoding apparatus and moving image decoding apparatus
KR102505364B1 (en) Decryption device, program, and decryption method
Jadhav et al. JPEG XR an image coding standard
JP2004320301A (en) Image compression apparatus and image processing system
JP2008124530A (en) Raw data compressing method
Bazhyna Image compression in digital cameras
JP2004159045A (en) Method, apparatus and program for encoding multi-band video signal and recording medium with the program recorded thereon
JP2005217896A (en) Image encoding device
JP2007259480A (en) Image processing apparatus for executing sampling of compressed image

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120319

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20121121

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20121211

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130130

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130701

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