JP6632752B2 - Image encoding apparatus and method, program and storage medium - Google Patents
Image encoding apparatus and method, program and storage medium Download PDFInfo
- Publication number
- JP6632752B2 JP6632752B2 JP2019047337A JP2019047337A JP6632752B2 JP 6632752 B2 JP6632752 B2 JP 6632752B2 JP 2019047337 A JP2019047337 A JP 2019047337A JP 2019047337 A JP2019047337 A JP 2019047337A JP 6632752 B2 JP6632752 B2 JP 6632752B2
- Authority
- JP
- Japan
- Prior art keywords
- encoding
- coefficient
- interest
- subband
- coefficients
- 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.)
- Active
Links
Images
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
Description
本発明は、画像データを符号化する画像符号化技術に関するものである。 The present invention relates to an image encoding technique for encoding image data.
画像データの符号化方式の一つとしてJPEG−LSがある。JPEG−LSは、ロスレス符号化とニアロスレス符号化を選択でき、符号化対象画素の周囲画素の状態に基づいて予測符号化とランレングス符号化を切り替えることで高い圧縮率を実現している。予測符号化は、符号化対象画素の画素値を周囲画素から予測し、予測誤差を符号化する。JPEG−LSにおけるランレングス符号化は、同一画素値のラン長(連続数)を符号化する。予測符号化とランレングス符号化を用いる他の方法として、複数の予測方法の識別情報と、そのラン長(連続値)と、予測誤差を選択して符号化する方法も知られている(たとえば、特許文献1)。 JPEG-LS is one of the image data encoding methods. In JPEG-LS, lossless coding or near lossless coding can be selected, and a high compression ratio is realized by switching between predictive coding and run-length coding based on the state of pixels surrounding the pixel to be coded. The prediction coding predicts a pixel value of a coding target pixel from surrounding pixels, and codes a prediction error. In run-length encoding in JPEG-LS, a run length (the number of continuations) of the same pixel value is encoded. As another method using prediction encoding and run-length encoding, a method of selecting and encoding identification information of a plurality of prediction methods, their run lengths (continuous values), and prediction errors is also known (for example, , Patent Document 1).
予測符号化とランレングス符号化とを比べたとき、同じデータが連続すればするほど後者の方が前者に対して圧倒的に符号化効率が高いのは明らかである。しかし、これまでの符号化技術では、ウェーブレット変換で得られたサブバンドに対して一律の同じ判定基準で、いずれの符号化を利用するかを決定しており、まだ改善の余地があった。 When predictive coding and run-length coding are compared, it is clear that the more continuous the same data, the overwhelmingly higher coding efficiency of the latter over the former. However, in the conventional encoding techniques, which encoding is used for the subband obtained by the wavelet transform based on the same uniform criterion, there is still room for improvement.
本発明は係る点に鑑み、ウェーブレット変換を利用しながらも、より高い符号化効率を実現する技術を提供しようとするものである。 In view of the above, an object of the present invention is to provide a technique for realizing higher coding efficiency while using a wavelet transform.
この課題を解決するため、例えば本発明の画像符号化装置は以下の構成を備える。すなわち、
画像データを符号化する画像符号化装置であって、
符号化対象の画像データをウェーブレット変換して、複数のサブバンドを生成する変換手段と、
サブバンドを構成する係数をラスタスキャン順に入力し、着目係数の予測値を当該着目係数の周囲に位置する符号化済の係数から求めることで、前記着目係数を予測符号化する第1の符号化手段と、
サブバンドにおける係数をラスタスキャン順に入力し、同じ係数の連続数を表すランを求め符号化する第2の符号化手段と、
前記着目係数が属する着目サブバンドがサブバンドLLであるか否かの第一の判定と、前記着目係数の周囲に位置する符号化済の複数の係数の値の関係を判定する第二の判定とに基づき、前記着目係数を前記第1の符号化手段で符号化するか、前記着目係数をランの起点として前記第2の符号化手段で符号化するかを判定する判定手段と、を備える。
In order to solve this problem, for example, an image encoding device of the present invention has the following configuration. That is,
An image encoding device that encodes image data,
Transform means for performing a wavelet transform on the image data to be encoded to generate a plurality of subbands;
A first coding for predictively encoding the coefficient of interest by inputting coefficients constituting the subband in raster scan order and obtaining a predicted value of the coefficient of interest from encoded coefficients located around the coefficient of interest Means,
Second encoding means for inputting the coefficients in the subband in the raster scan order, and obtaining and encoding a run representing the number of consecutive same coefficients;
A first determination as to whether or not the subband of interest to which the target coefficient belongs is a subband LL, and a second determination to determine the relationship between the values of a plurality of coded coefficients located around the target coefficient. And determining means for determining whether the coefficient of interest is to be encoded by the first encoding means or to be encoded by the second encoding means using the coefficient of interest as a starting point of a run, based on You .
本発明によれば、ウェーブレット変換を利用しながらも、より高い符号化効率を実現することが可能になる。 According to the present invention, it is possible to realize higher coding efficiency while using the wavelet transform.
以下、添付図面を参照し、本発明の好適な実施形態について説明する。なお、以下説明する実施形態は、本発明を具体的に実施した場合の一例を示すもので、特許請求の範囲に記載した構成の具体的な実施形態の一つである。 Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings. The embodiment described below shows an example in which the present invention is specifically implemented, and is one of the specific embodiments having the configuration described in the claims.
[第1の実施形態]
第1の実施形態は、画像データをウェーブレット変換で複数のサブバンドに分割し、サブバンド分割されたウェーブレット係数を予測符号化、及び、ランレングス符号化で符号化する画像符号化装置に適用される。以下、本実施形態に示す画像符号化装置について説明する。
[First Embodiment]
The first embodiment is applied to an image encoding device that divides image data into a plurality of subbands by wavelet transform, and encodes the subband-divided wavelet coefficients by predictive encoding and run-length encoding. You. Hereinafter, the image encoding device according to the present embodiment will be described.
第1の実施形態では、画像符号化装置をカメラに適用した例を説明する。図1はそのカメラ100のブロック構成図である。カメラ100は、操作部101と、撮像部102と、情報処理部109と、記憶部107と、I/Oインターフェース108とを有している。情報処理部109は、取得部103、画像処理部104、符号化部105、出力部106を有する。
In the first embodiment, an example in which the image encoding device is applied to a camera will be described. FIG. 1 is a block diagram of the
図4(a)はカメラ100の正面図である。図4(a)に示すように、カメラ100は撮像部102を備えている。図4(b)は撮像部102の内部構成を示す図である。撮像部102は、ズームレンズ401、フォーカスレンズ402、403、開口絞り404、シャッター405を有している。また光学ローパスフィルタ406、iRカットフィルタ407、カラーフィルタ408、撮像素子409およびA/D変換部410を有している。ユーザは絞り404を調整することにより、撮像部102に入射される入射光量を調節できる。撮像素子409は、CMOSやCCDなどの受光素子である。撮像素子409で被写体の光量を検知すると、検知された光量がA/D変換部410によってデジタル値に変換され、デジタルデータとして情報処理部109へと出力される。
FIG. 4A is a front view of the
図3は情報処理部109の内部構成を示す図である。情報処理部109は、CPU301、RAM302、ROM303を有し、各構成部はシステムバス304により相互に接続されている。ROM303にはCPU301が実行するプログラムや各種データが記憶され、RAM302はCPU301がプログラムを実行した際のワークエリア、各種バッファとして利用される。CPU301は、ROM303に格納されたプログラムを実行し、RAM302をワークエリアやバッファとして利用する。これにより、先に示した図1の取得部103、画像処理部104、符号化部105、出力部106として機能すると共に、装置全体の制御を司ることになる。なお、ここでは、各構成要素を、CPU301が実行することで実現するものとしたが、同等の処理を果たす専用の回路等で実現しても構わない。
FIG. 3 is a diagram showing the internal configuration of the
操作部101は、カメラ本体に備えられたボタンやダイヤル、タッチパネルなどの入力装置であり、ユーザが操作して、撮影の開始、停止および撮影条件の設定などの命令を行える。記憶部107は、撮像部102により取得されたRAW画像データ、および、画像データを保存することができる、メモリカードなどの不揮発性の記憶媒体である。I/Oインターフェース108はユニバーサルシリアルバス(USB)によって実装されたシリアルバス接続を利用でき、対応するUSBコネクタを有する。もちろん、光ファイバーによるLAN接続や、無線接続などを利用しても良い。
The
表示部305は、撮影画像や文字の表示を行う。表示部305には一般的に液晶ディスプレイが用いられる。またタッチパネル機能を有していても良く、その場合はタッチパネルを用いたユーザ指示を操作部101の入力として扱うことも可能である。
The
以下、本実施形態に示す情報処理部109の処理について説明する。ユーザの操作部101に対する撮像指示に基づき、取得部103は、撮像部102から出力されたRAW画像データを取得し、画像処理部104にRAW画像データを出力する。画像処理部104は、RAW画像データを、デモザイク処理して、通常の1画素がRGBの3成分で構成される画像データを生成し、符号化部105に画像データを出力する。符号化部105は、画像データの符号化処理を行う。本実施形態では1画素がRGB各8ビットで表現されるものとし、色成分を単位にモノクロ画像として符号化する場合を例に説明する。つまり、R成分のモノクロ多値画像、G成分のモノクロ多値画像、B成分のモノクロ多値画像をそれぞれ独立して符号化する。なお、符号化対象の画像データはRGB形式に限らず、他の色空間やRAW画像データであっても構わない。例えば、1画素がY、Cb、Crでそれぞれが8ビットで構成される場合には、各成分を単位にモノクロ画像として符号化すれば良い。また、RAW画像データに適用する場合、撮像部102の撮像素子はベイヤ配列(R,G0、G1,Bの色に対応する2×2個の撮像素子の組の配列)となっている。また、各撮像素子からの信号を14ビットで表現している。この場合、R成分で構成されるモノクロ多値画像、G0成分で構成されるモノクロ多値画像、G1成分で構成されるモノクロ多値画像、B成分で構成されるモノクロ多値画像をそれぞれ符号化する。従って、本願は、画像の色空間の種類、画像を構成する色成分の種類、ビット数によって限定されるものではない。符号化対象の画像がR,G,Bの3成分で各8ビット(256階調)とするのは、あくまで理解を容易にするためであると理解されたい。
Hereinafter, processing of the
本実施形態に示す符号化部105の処理について説明する。図2は符号化部105の内部構成であり、図5は符号化部105で行われる1つの色成分(実施形態では、R,G、Bのいずれか)の画像データに対する符号化処理を示すフローチャートである。つまり、実際には図5の処理を3回実行する。そして、3回行った結果得られた符号データをまとめて1つのファイルが構成されることになる。
The processing of the
色成分入力部201は、画像処理部104から出力された画像データにおける1つの成分の画像データをモノクロ多値画像として入力する(ステップS501)。
The color component input unit 201 inputs image data of one component in the image data output from the
ウェーブレット変換部202は、色成分入力部201から供給されたモノクロ画像データを入力として、ウェーブレット変換を行う。画像データはウェーブレット変換により複数の分解レベルに分けられ、各分解レベルは複数のサブバンドから構成される。分解レベルは、低周波成分を再帰的に水平・垂直方向に2分割した分割回数を示しており、分解レベルが1増えると水平・垂直解像度は半分になる。
The
図9は、ウェーブレット変換で3回分解したときの例を示している。分解レベル1のサブバンドはLL1、HL1、LH1、HH1、分解レベル2のサブバンドはLL2、HL2、LH2、HH2、分解レベル3のサブバンドはLL3、HL3、LH3、HH3と表される。なお、2回目以降のウェーブレット変換では、直前のウェーブレット変換で得られたサブバンドLLをその変換対象としているので、サブバンドLL1、LL2は省略され、最後のウェーブレット変換で得られたサブバンドLLが残ることになる。また、例えば、HL2の水平・垂直解像度はHL1の半分となる。サブバンドLHは、ウェーブレット変換が適用された局所領域の水平方向の周波数特性(水平方向成分)を示す。またサブバンドHLは垂直方向の周波数特性(垂直方向成分)、サブバンドHHは斜め方向の周波数特性(斜め方向成分)を示す。サブバンドLLは低周波成分である。本実施形態では、国際標準であるJPEG2000(ISO/IEC15444|ITU−T T.800)でも利用されている実数型の9/7フィルタを用いるものとするが、これに限定されるものではない。整数型の5/3フィルタ等、この他のウェーブレット変換フィルタを用いても構わない。またウェーブレット変換の処理単位については、ライン単位の処理であっても、画像単位の処理であっても構わない。
FIG. 9 shows an example in which decomposition is performed three times by the wavelet transform. The
ウェーブレット変換部202は、ウェーブレット変換された各サブバンドのウェーブレット係数を量子化部203に出力する(ステップS502)。
The
量子化部203は、ウェーブレット変換部202から供給された各サブバンドのウェーブレット係数を入力し、サブバンド毎に異なるステップ幅で量子化する。また、サブバンドのライン毎に異なるステップ幅で量子化を行うなど他の量子化方法を用いても構わない。量子化部203は、量子化後のウェーブレット係数を、サブバンド毎にサブバンド符号化部216に出力する(ステップ503)。
The
以降、サブバンド符号化部216の処理になる。詳細は後述するが、このサブバンド符号化部216はサブバンドを単位に符号化する。
Hereinafter, the process of the
まず、ステップS504で、ウェーブレット変換で分解した回数を変数iに設定する。本実施形態では、ウェーブレット変換で3回分解した例を説明し、変数i=3と設定する。なお、ウェーブレット変換回数は、ユーザが適宜、操作部101より変更できるものとする。また、図5のフローチャートでは、変数iを用いてサブバンドLL(i)、HL(i)、LH(i)、HH(i)を一般化しているが、例えばHL(3)は図9におけるHL3と同じサブバンドを示しているものと理解されたい。
First, in step S504, the number of times of decomposition by the wavelet transform is set to a variable i. In the present embodiment, an example in which wavelet transform is performed three times will be described, and a variable i is set to 3. Note that the number of wavelet transforms can be appropriately changed by the user from the
ステップS505では、サブバンド符号化部216は、サブバンドLL(3)(図9のLL3)のサブバンド符号化を行う。このため、サブバンド符号化部216は量子化部203からサブバンドLL3の量子化後のウェーブレット変換係数を受信し、符号化を行う。サブバンド符号化部216は、この符号化処理で得られた符号化データをRAM302に予め確保されたバッファ領域に格納する。
In step S505, the
この後、ステップS506にて、サブバンド符号化部216は、変数iが0であるか否かを判定する。ここでは、初期段階、すなわち、i=3であるものとする。従って、処理はステップS507に処理を進める。
Thereafter, in step S506,
このステップS507では、サブバンド符号化部216は、サブバンドHL(3)の量子化後のウェーブレット変換係数を量子化部203より受信し、サブバンド符号化を行い、得られた符号化データを上記のバッファ領域に格納する。ステップS508では、サブバンド符号化部216は、サブバンドLH(3)の量子化後のウェーブレット変換係数を量子化部203より受信し、サブバンド符号化を行い、得られた符号化データを上記のバッファ領域に格納する。そして、ステップS509では、サブバンド符号化部216は、サブバンドHH(3)の量子化後のウェーブレット変換係数を量子化部203より受信し、サブバンド符号化を行い、得られた符号化データを上記のバッファ領域に格納する。
In step S507, the
この後、ステップS510で、ウェーブレット係数で分解した回数iを1減じる。ここでは、この結果、変数i=2となる。そして、ステップS506に処理を戻す。ステップS506において、変数i=0であると判定されるまで、上記処理を行う。 Thereafter, in step S510, the number i of decompositions using wavelet coefficients is reduced by one. Here, as a result, the variable i = 2. Then, the process returns to step S506. The above processing is performed until it is determined in step S506 that the variable i = 0.
変数i=0になったと判定された場合、RAM302のバッファ領域には、LL(3)、HL(3)、LH(3)、HH(3)、HL(2)、…、HH(1)の計10個のサブバンドの符号化データが格納される(ステップS511)。
If it is determined that the variable i has become 0, LL (3), HL (3), LH (3), HH (3), HL (2),..., HH (1) are stored in the buffer area of the
上記は1つの色成分の符号化処理であったが、先に説明したように、実施形態ではR、G、Bの各色成分を単位に符号化するので、符号化部105は上記処理を3回実行することになる。図1に戻って、符号化部105は、全色成分の符号化データを出力部106に送出する。出力部106は、供給された符号化データに、適当なヘッダを付加して画像ファイルを構成し、圧縮画像データファイルとして記憶部107に出力し、保存する。保存された圧縮画像データファイルは、I/Oインターフェース108を介して、カメラ外のデバイスに出力されても構わない。
Although the above is an encoding process of one color component, as described above, in the embodiment, since each of the R, G, and B color components is encoded, the
以上、画像データをウェーブレット変換でサブバンド分割し、サブバンド毎に符号化するときの全体的な処理フローについて説明した。次に、各サブバンドのウェーブレット係数を符号化するサブバンド符号化部216の処理の詳細について説明する。
The overall processing flow when the image data is divided into sub-bands by the wavelet transform and encoded for each sub-band has been described. Next, the details of the processing of the
サブバンド符号化部216の内部構成を図2に示し、サブバンド符号化部216で行われる処理を示したフローチャートを図6に示す。
FIG. 2 shows the internal configuration of the
まずステップS601で、サブバンド符号化部216はサブバンド番号Sを入力する。サブバンド番号Sはサブバンドを識別する番号であり、符号化の対象となるサブバンドがLL成分、HL成分、LH成分、HH成分の何れであるかを識別するためのものである。例えば、LL成分にS=1、HL成分にS=2、LH成分にS=3、HH成分にS=4などの識別番号を設定する。なお、量子化部203は、サブバンドを単位に量子化後のウェーブレット変換係数をサブバンド符号化部216に出力する際に、その先頭にサブバンド番号Sを付加するものとする。
First, in step S601, the
ステップS602で、サブバンド符号化部216は、サブバンド内のウェーブレット係数が全て符号化されたかを判定する。全て符号化された場合は符号化処理を終了し、符号化されていない係数がある場合は、ステップS603に移る。ステップS603で、サブバンド符号化部216は、着目サブバンドのウェーブレット係数をライン単位に入力する。そして、ステップS604において、サブバンド符号化部216は、入力したラインにおける左端に位置するウェーブレット係数を符号化対象の着目係数として設定する。
In step S602, the
図10は着目係数とその周辺係数の位置関係を示している。ここでは、xが符号化対象の着目係数である。図示のごとく、参照範囲は、着目係数xが位置するラインと、その直前のラインの2ラインにおける、着目係数xの周囲の係数である。また、ラスタスキャン順に係数を符号化していくため、左係数a、左上係数c、上係数b、右上係数d、着目係数xから2つ分だけ左に位置する係数e、着目係数xから3つ分だけ左に位置する係数fは、符号化済みの係数である。なお、着目係数xがサブバンドの最初のラインの左端に位置するとき、係数a乃至fは実在しない。また、着目係数xがサブバンドの2ライン目以降ラインの左端に位置するときには、係数a、c、e、fも実在しない。このように実在しない係数については、所定の値(たとえば0)を持つものと見なす。また、既に符号化済み位置の係数を参照するため、サブバンド符号化部216は例えば2ライン分のバッファメモリを有する。
FIG. 10 shows the positional relationship between the coefficient of interest and its surrounding coefficients. Here, x is a target coefficient to be encoded. As shown in the figure, the reference range is a coefficient around the coefficient of interest x in two lines including the line where the coefficient of interest x is located and the line immediately before the line. Further, since the coefficients are encoded in the raster scan order, the left coefficient a, the upper left coefficient c, the upper coefficient b, the upper right coefficient d, the coefficient e located two to the left from the target coefficient x, and three from the target coefficient x The coefficient f located to the left by the amount is a coded coefficient. When the coefficient of interest x is located at the left end of the first line of the subband, the coefficients a to f do not exist. When the coefficient of interest x is located at the left end of the second and subsequent lines of the subband, the coefficients a, c, e, and f do not exist. Such a coefficient that does not exist is regarded as having a predetermined value (for example, 0). In addition, in order to refer to the coefficient at the already coded position, the
ステップS606にて、サブバンド符号化部216は、ライン内のウェーブレット係数が全て符号化されたかを判定する。言い換えれば、ライン終端(右端)の係数の符号化を終えたか否かを判定する。ライン中の全て係数の符号化を終えたと判定した場合には、ステップS605で次のラインの処理に移る。符号化されていない係数が存在する場合にはステップS607に移る。
In step S606,
ステップS607には、モード選択部204は、サブバンドに応じた符号化モード判定により、符号化モードを選択する。選択すべき符号化モードには、予測符号化モード、及び、ランレングスモードがある。また、ライン左端の係数が着目係数として設定されるとき、ラン長RL=0が初期設定される。ラン長RLが0以外、または、周囲係数の状態がランレングス符号化条件を満たしている場合に、符号化モードはランレングスモードに設定される。ラン長RLが0のとき、以下の処理によりランレングス符号化条件を満たしているかを判定する。
In step S607, the
モード選択部204は、第1モード判定部205、第2モード判定部206の選択を行う。ステップS601で入力されたサブバンド番号Sに基づいて、サブバンドがLL成分、HL成分、HH成分であれば第1モード判定部205を選択する。またサブバンドがLH成分であれば第2モード判定部206を選択する。第2モード判定部206では、ライン左端の係数が着目係数として設定されるとき、水平ランカウントHR=0が初期設定される。
The
ここで、第1モード判定部205で行われる判定処理(符号化対象サブバンドがLL,HL,HHのいずれかの場合の判定処理)を、図7のフローチャートに従って説明する。 Here, the determination process performed by the first mode determination unit 205 (the determination process when the encoding target subband is LL, HL, or HH) will be described with reference to the flowchart of FIG.
ステップS701で、着目係数xを取得する。そして、ステップS702で、ランレングスモードの判定を行う。図10に示す如く、左係数a、左上係数c、上係数b、右上係数dを参照する。サブバンドLLが符号化対象である場合には、a=b=c=dのとき、着目係数xについてランレングス符号化条件を満たすと判定する。また、サブバンドHLまたはHHである場合には、a=b=c=d=0のとき、ランレングス符号化条件を満たすと判定する。高周波成分ではウェーブレット係数値に0が多く出現するため、係数値0に限定したランレングスモード判定を用いることで符号化効率が高くなるためである。ステップS702のランレングスモード判定は、着目係数xのラインだけでなく、直前のラインの係数(左上係数をc、上係数をb、右上係数をd)を参照するため、2ライン参照モード判定と呼ぶ。
In step S701, a target coefficient x is obtained. Then, in step S702, a determination of the run length mode is performed. As shown in FIG. 10, a left coefficient a, an upper left coefficient c, an upper coefficient b, and an upper right coefficient d are referred to. When the subband LL is to be encoded, it is determined that the coefficient of interest x satisfies the run-length encoding condition when a = b = c = d. In the case of subband HL or HH, it is determined that the run-length encoding condition is satisfied when a = b = c = d = 0. This is because, in the high-frequency component, many 0s appear in the wavelet coefficient value, and thus the coding efficiency is increased by using the run-length mode determination limited to the
ステップS703で、ランレングス符号化条件を満たしているかを判定する。ランレングス符号化条件を満たしている場合は、ステップS705でランレングスモードに設定する。またランレングス符号化条件を満たしていない場合は、ステップS704で予測符号化モードに設定する。第1モード判定部205で行われる処理はJPEG−LSと同様の処理となる。
In step S703, it is determined whether a run-length encoding condition is satisfied. If the run-length encoding condition is satisfied, a run-length mode is set in step S705. If the run-length encoding condition is not satisfied, the prediction encoding mode is set in step S704. The processing performed by the first
次に第2モード判定部206で行われる処理(符号化対象サブバンドがLHの場合の判定処理)を示したフローチャートを図8に示す。 Next, FIG. 8 is a flowchart showing the processing performed by the second mode determination unit 206 (determination processing when the encoding target subband is LH).
ステップS801で、第2モード判定部206は、着目係数xを取得する。ステップS802で、第2モード判定部206はランレングスモードの判定を行う。図10に示す如く、左係数a、左上係数c、上係数b、右上係数dを参照する。そしてa=b=c=d=0のとき、第2モード判定部206は、着目係数xがランレングス符号化条件を満たすと判定する。ステップS702と同様に、ステップS802のランレングスモード判定は、着目係数xのラインと、その直前のラインの係数を参照するため、2ライン(複数ライン)参照モード判定と呼ぶ。
In step S801, the second
ステップS803で、第2モード判定部206は、ステップS801の結果を受けて、ランレングス符号化条件を満たしているかを判定する。ランレングス符号化条件を満たしている場合は、ステップS808でランレングスモードに設定する。またランレングス符号化条件を満たしていない場合は、ステップS804の処理に移る。
In step S803, the second
ステップS804で、ステップS802とは異なるランレングスモードの判定を行う。着目係数xと同一ラインのみを参照し、係数値0の連続数(水平ランカウント)を判定条件とする。水平ランカウントHRが所定数(閾値)以上のとき、ランレングス符号化条件を満たす。ここでは閾値は3と設定している。図10を用いて説明すると、左係数a、2つ左の係数e、3つ左の係数fとしたとき、a=e=0、fが非ゼロの場合、水平ランカウントHRは2となる。ステップS804のランレングスモード判定は、着目係数xに対して同一ラインの係数のみを参照するため、ここでは1ライン参照モード判定と呼ぶ。 In step S804, a run length mode different from that in step S802 is determined. Only the same line as the coefficient x of interest is referred to, and the number of continuations of the coefficient value 0 (horizontal run count) is used as a determination condition. When the horizontal run count HR is equal to or greater than a predetermined number (threshold), a run length encoding condition is satisfied. Here, the threshold value is set to 3. Explaining with reference to FIG. 10, when a left coefficient a, a two-left coefficient e, and a three-left coefficient f are set, a = e = 0, and if f is non-zero, the horizontal run count HR is 2. . The run-length mode determination in step S804 refers to only the coefficient on the same line with respect to the target coefficient x, and is therefore referred to as one-line reference mode determination.
ステップS805では、第2モード判定部206は、ステップS804の結果結果を受けて、着目係数xがランレングス符号化条件を満たしているかを判定する。ランレングス符号化条件を満たしている場合は、ステップS808でランレングスモードに設定する。またランレングス符号化条件を満たしていない場合は、ステップS806で予測符号化モードに設定する。
In step S805, the second
ステップS806で予測符号化モードに設定された場合、ステップS807で水平ランカウントHRを更新する。着目係数xが0の場合、水平ランカウントHRに1を加算する。また着目係数xが0以外の係数値の場合、水平ランカウントHRを0に初期化する。 If the prediction encoding mode has been set in step S806, the horizontal run count HR is updated in step S807. When the coefficient of interest x is 0, 1 is added to the horizontal run count HR. If the coefficient of interest x is a coefficient value other than 0, the horizontal run count HR is initialized to 0.
またステップS808でランレングスモードに設定された場合、ステップS809で水平ランカウントHRを0に初期化する。これは、着目係数xの左に位置する係数、a,e,fは既に符号化済みであり、尚且つ、着目係数xをランの起点とするためである。 If the run length mode has been set in step S808, the horizontal run count HR is initialized to 0 in step S809. This is because the coefficients a, e, and f located to the left of the coefficient of interest x have already been coded, and the coefficient of interest x is used as the starting point of the run.
以上がステップS607の処理である。サブバンドLLは、係数値0に限定しない2ライン参照モード判定、サブバンドHL、HHは、係数値0に限定した2ライン参照モード判定を用いる。サブバンドLHは、ウェーブレット変換が適用された局所領域の水平方向の周波数特性(水平方向成分)を示すため、ウェーブレット係数のライン間の相関が低い。そのため、係数値0に限定した2ライン参照モード判定に加え、上ラインを参照しない1ライン参照モード判定を加えることで、ランレングスモードの判定精度が向上し、符号化効率の改善が図れることになる。また1ライン参照モードは、水平ランカウントHRを更新するだけで、モード判定できるため、簡易な演算で実現できる。ここではサブバンドLHに対して、1ライン参照モード判定を加えたが、サブバンドHL、HHに対して同様の処理を行っても構わない。
The above is the processing of step S607. The sub-band LL uses a two-line reference mode determination not limited to the
図6の処理の説明に戻る。ステップS608にて、着目係数xに対して、ランレングスモードに設定された場合には、処理はステップS612に進み、ランレングス符号化部213によるランレング符号化処理を開始する。
Returning to the description of the processing in FIG. If the run-length mode has been set for the coefficient of interest x in step S608, the process proceeds to step S612, and the run-length encoding process by the run-
一旦、ステップS612に処理が開始されると、ランレングス符号化部213は、着目係数xが左隣の係数a(着目係数に対する予測値)と同じ値である限り、ラン長RLを1増加させ、右隣の係数を新たな着目係数xとして読み込みを続ける。ただし、着目係数xが直前の係数aと異なる値となった場合、或いは、着目係数xが左隣の係数aと同じであるものの、着目係数xがラインの終端(右端)位置に達した場合には、それまで計数していたラン長RLの符号語を出力し、ラン長RLは初期化する。そして、ステップS606に戻る。なお、ランレングス符号化については、JPEG−LSと同様の処理のため、ここでの詳細説明は割愛する。
Once the processing is started in step S612, the run-
一方、ステップS609に処理が移った場合には、予測変換選択部207で、第1予測変換部208、第2予測変換部209、第3予測変換部210、第4予測変換部211の選択を行う。ステップS601で入力されたサブバンド番号Sに基づいて、サブバンドがLL成分であれば第1予測変換部208を選択する。またサブバンドがHL成分であれば第2予測変換部209、LH成分であれば第3予測変換部210、HH成分であれば第4予測変換部211を選択する。
On the other hand, if the process has proceeded to step S609, the prediction
第1予測変換部208は、予測変換にMED(Median Edge Detection)予測を用いた予測値p、及びそれを用いた予測誤差を算出する。図10の周辺係数を用いた予測値pの算出式は以下の通りである。
予測誤差 = 着目係数xの係数値 ― 予測値p
The first
Prediction error = coefficient value of coefficient of interest x−prediction value p
第2予測変換部209は、予測変換に垂直方向の予測を用いる。HL成分は垂直方向の周波数特性を有することから、垂直方向予測が符号化効率の向上に有効である。図10の周辺係数を用いた予測値p、予測誤差は以下の通りである。
p=b
予測誤差 = 着目係数xの係数値 ― 予測値p
The second
p = b
Prediction error = coefficient value of coefficient of interest x−prediction value p
第3予測変換部210は、予測変換に水平方向の予測を行う。LH成分は水平方向の周波数特性を有することから、水平方向予測が符号化効率の向上に有効である。図10の周辺係数を用いた予測値p、予測誤差は以下の通りである。
p=a
予測誤差 = 着目係数xの係数値 ― 予測値p
The third predictive conversion unit 210 performs horizontal prediction for predictive conversion. Since the LH component has frequency characteristics in the horizontal direction, horizontal prediction is effective for improving coding efficiency. The prediction value p and the prediction error using the peripheral coefficients in FIG. 10 are as follows.
p = a
Prediction error = coefficient value of coefficient of interest x−prediction value p
第4予測変換部211は、予測変換を行わない。即ち、予測誤差は以下の通りである。 予測誤差 = 着目係数xの係数値
The fourth
図2に戻って、第1予測変換部208、第2予測変換部209、第3予測変換部210、第4予測変換部211は、算出した予測誤差は、ゴロム符号化部212に出力する。ゴロム符号化部212で、予測誤差をゴロム・ライス符号化する(ステップS610)。ゴロム符号化部212は、まず予測誤差(Diff)を非負の整数値(MV)に変換する。変換式は以下の通りである。
次に、ゴロム符号化部212は、パラメータkを用いて非負の整数値(MV)をゴロム・ライス符号化する。ゴロム・ライス符号化の手順は以下の通りである。
(1)MVを2進数表現して、MVをkビット右シフトした値の0を並べ、その後に1を付加する。
(2)上記で生成したビット列の後ろに、MVの下位kビットを取りだして付け加える。
Next, the
(1) The MV is expressed in a binary number, and the
(2) The lower k bits of the MV are taken out and added to the end of the bit string generated above.
図11にゴロム・ライス符号化のパラメータkと非負の整数値(MV)と符号語の関係を示す。ゴロム・ライス符号化の構成はこれに限定されるものではなく、例えば、0と1を反対にして符号を構成しても構わないし、上記手順で述べた(1)と(2)の順番を入れ替えて符号を構成しても良い。なお、ここでは符号化パラメータkの決定方法については特に特定しないが、符号化側と復号側で同じパラメータを利用できれば良い。例えば、予めサブバンド毎に適切と思われるパラメータkを選定する方法でも良いし、符号化の過程で動的に変化するようにしても構わない。 FIG. 11 shows the relationship between a parameter k of Golomb-Rice coding, a non-negative integer value (MV), and a codeword. The configuration of Golomb-Rice coding is not limited to this. For example, a code may be configured by reversing 0 and 1, and the order of (1) and (2) described in the above procedure may be changed. The codes may be replaced with each other. Here, the method for determining the encoding parameter k is not particularly specified, but it is sufficient that the same parameter can be used on the encoding side and the decoding side. For example, a method of selecting a suitable parameter k for each subband in advance may be used, or the parameter k may be dynamically changed during the encoding process.
例えば、パラメータk=0の場合を考える。予測誤差(Diff)が−2のとき、非負の整数値(MV)は3となり、予測誤差(Diff)が+2のとき、非負の整数値(MV)は4となる。非負の整数値(MV)が3のとき、符号語は0001となり4ビットで表現され、非負の整数値(MV)が4のとき、符号語は00001となり5ビットで表現される。 For example, consider the case where the parameter k = 0. When the prediction error (Diff) is -2, the non-negative integer value (MV) is 3, and when the prediction error (Diff) is +2, the non-negative integer value (MV) is 4. When the non-negative integer value (MV) is 3, the code word becomes 0001 and is represented by 4 bits. When the non-negative integer value (MV) is 4, the code word becomes 00001 and is represented by 5 bits.
上記のようにして、ゴロム符号化部212による着目係数xに対する符号語の出力を終えると、処理はステップS611で着目係数xの右隣の係数を新たな着目係数とし、ステップS606に戻る。
When the
図2に戻って、符号生成部214で、サブバンドのウェーブレット係数の符号データを出力する。
Returning to FIG. 2,
以上説明したように、本実施形態によれば、サブバンド分割されたウェーブレット係数に対して、サブバンドに応じて異なるランレングスモード判定処理を用いることで符号量を削減することができる。具体的には、水平方向の周波数特性(水平方向成分)を示すサブバンドLHに対して、直前のラインを参照しない1ライン参照モード判定を加える。その結果、ランレングス符号化が効率よくと推定される状況下での、ランレングス符号化へ移行し易くなり、簡易な演算で符号化効率の改善を図れるようになる。 As described above, according to the present embodiment, it is possible to reduce the code amount by using different run-length mode determination processing for the sub-band divided wavelet coefficients according to the sub-band. Specifically, a one-line reference mode determination that does not refer to the immediately preceding line is added to the sub-band LH indicating the horizontal frequency characteristic (horizontal component). As a result, it is easy to shift to run-length encoding under the situation where run-length encoding is estimated to be efficient, and the encoding efficiency can be improved with a simple operation.
[第2の実施形態]
上記の第1の実施形態は、画像データをウェーブレット変換で複数のサブバンドに分割し、サブバンド分割されたウェーブレット係数を予測符号化、及び、ランレングス符号化で符号化する画像符号化装置に適用される。水平方向の周波数特性(水平方向成分)を示すサブバンドLHに対して、上ラインを参照しない1ライン参照モード判定を加えることで、簡易な演算で符号化効率の改善を図れることを説明した。
[Second embodiment]
The first embodiment is directed to an image encoding device that divides image data into a plurality of subbands by wavelet transform, and predictively encodes the subband-divided wavelet coefficients by run-length encoding. Applied. It has been described that the coding efficiency can be improved by a simple calculation by adding the one-line reference mode determination that does not refer to the upper line to the subband LH indicating the frequency characteristics (horizontal components) in the horizontal direction.
第2の実施形態も、画像データをウェーブレット変換で複数のサブバンドに分割し、サブバンド分割されたウェーブレット係数を予測符号化、及び、ランレングス符号化で符号化する画像符号化装置に適用される。第2の実施形態は、サブバンドに応じた符号化モード判定により符号化効率を維持しながら、簡易な演算で使用メモリを削減する方法を説明する。 The second embodiment is also applied to an image encoding device that divides image data into a plurality of subbands by wavelet transform, and predictively encodes the subband-divided wavelet coefficients by run-length encoding. You. In the second embodiment, a method for reducing the memory used by a simple calculation while maintaining the coding efficiency by the coding mode determination according to the subband will be described.
本第2の実施形態における装置構成は、上記第1の実施形態の図1乃至図3と同じであり、その基本となる処理も同じである。本第2の実施形態と第1の実施形態の違いは、図6のステップS607の処理内容にある。すなわち、本第2の実施形態におけるモード選択部204で、第1モード判定部205、第2モード判定部206の選択を行う際の基準が、第1の実施形態と異なる。
The device configuration in the second embodiment is the same as that in FIGS. 1 to 3 of the first embodiment, and the basic processing is also the same. The difference between the second embodiment and the first embodiment lies in the processing content of step S607 in FIG. That is, the criterion for selecting the first
図6のステップS601にて、モード選択部204は、入力されたサブバンド番号Sに基づいて、サブバンドがLL成分であれば第1モード判定部205を選択する。また、モード選択部204は、着目サブバンドがサブバンドLL以外のLH、HL、HHのいずれかであれば第2モード判定部206を選択する。第2モード判定部206では、ライン左端の係数が着目係数として設定されるとき、水平ランカウントHR=0が初期設定される。
In step S601 of FIG. 6,
第1モード判定部205については、第1の実施形態と共通するので、ここでの説明は省略する。そこで、第2モード判定部206で行われる処理を、図12のフローチャートに従って説明する。
The first
第2モード判定部206は、ステップS1201で、着目係数xを取得する。そして、第2モード判定部206は、ステップS1202でランレングスモードの判定を行う。着目係数xと同一ラインのみを参照し、係数値0が連続する数(水平ランカウント)を判定条件とする。水平ランカウントHRが閾値以上のとき、ランレングス符号化条件を満たす。ここでは閾値は3と設定している。図10を用いて説明すると、左係数a、2つ左の係数e、3つ左の係数fとしたとき、(a=e=0、fが0以外の係数値)の場合、水平ランカウントHRは2となる。ここでは、係数値0が連続する数を判定条件としたが、左係数aと同じ係数値が連続する数を判定条件とするなど、係数値は0に限定されるものではない。
In step S1201, the second
ステップS1202のランレングスモード判定では、着目係数xと同一ラインの係数のみを参照するため、ここでは1ライン参照モード判定と呼ぶ。 In the run-length mode determination in step S1202, only the coefficient on the same line as the target coefficient x is referred to, so that this is referred to as one-line reference mode determination.
第2モード判定部205は、ステップS1203にて、ステップS1202の判定結果を受けて、ランレングス符号化条件を満たしているかを判定する。ランレングス符号化条件を満たしている場合は、ステップS1206でランレングスモードに設定する。またランレングス符号化条件を満たしていない場合は、ステップS1204で予測符号化モードに設定する。
In step S1203, the second
ステップS1204で予測符号化モードに設定された場合、第2モード判定部205は、ステップS1205で水平ランカウントHRを更新する。着目係数xが係数値0の場合、水平ランカウントHRに1を加算(カウントアップ)する。また着目係数xが0以外の係数値の場合、水平ランカウントHRを0に初期化(リセット)する。
If the prediction encoding mode has been set in step S1204, the second
またステップS1206でランレングスモードに設定された場合、第1モード判定部205は、ステップS1207にて水平ランカウントHRを0に初期化する。
If the run length mode has been set in step S1206, the first
以上が第2の実施形態におけるステップS607の処理である。ステップS607以降は、第1の実施形態と同じである。サブバンドのLH成分、HL成分、HH成分は高周波成分であり、高い圧縮率では係数値0が多くなるため、多くの領域でランレングス符号化が適用される。そのため、1ライン参照モード判定のみでモード判定を行っても、符号化効率を維持できる。加えて1ライン参照モード判定は、直前のラインを参照する必要がないため、直前ラインの係数情報を保持しておく必要がなく、メモリ使用量を削減できる。また水平ランカウントHRを更新するだけで判定できるため、簡易な演算で実現できる。
The above is the processing of step S607 in the second embodiment. Step S607 and subsequent steps are the same as those in the first embodiment. The LH component, HL component, and HH component of the subband are high frequency components, and the
上述の符号化処理により本第2の実施形態によれば、サブバンド分割されたウェーブレット係数に対して、サブバンドに応じて異なるランレングスモード判定処理を用いることで符号化効率を維持してメモリ使用量を削減することができる。具体的には、サブバンドの高周波成分であるLH成分、HL成分、HH成分に対して、1ライン参照モード判定のみでモード判定を行う。加えて上ラインの係数情報を用いない予測変換を用いることで、簡易な演算で符号化効率を維持してメモリ使用量を削減できる。 According to the second embodiment by the above-described encoding processing, a different run-length mode determination processing is performed on the wavelet coefficients divided into sub-bands according to the sub-bands, thereby maintaining the encoding efficiency and maintaining the memory efficiency. Usage can be reduced. Specifically, the mode determination is performed only for the one-line reference mode determination for the LH component, the HL component, and the HH component that are the high frequency components of the subband. In addition, by using the predictive conversion that does not use the coefficient information of the upper line, it is possible to maintain the coding efficiency with a simple operation and reduce the memory usage.
(その他の実施例)
なお、実施形態では、画像符号化装置として、カメラに搭載する符号化部に適用した例を説明したが、対象となる装置はカメラに限らず、画像データを入力するものであればその種類は問わず、適用可能である。
(Other Examples)
In the embodiment, an example in which the image encoding apparatus is applied to an encoding unit mounted on a camera has been described. However, the target apparatus is not limited to a camera. Regardless, it is applicable.
また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。 The present invention is also realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, or the like) of the system or apparatus reads the program and reads the program. This is the process to be performed.
100…カメラ、101…操作部、102…撮像部、103…取得部、104…画像処理部、105…符号化部、106…出力部、107…記憶部、108…I/O、201…色成分入力部、202…ウェーブレット変換部、203…量子化部、204…モード選択部、205…第1モード判定部、206…第2モード判定部、207…予測変換選択部、208…第1予測変換部、209…第2予測変換部、210…第3予測変換部、211…第4予測変換部、212…ゴロム符号化部、213…ランレングス符号化部、214…符号生成部、215…符号出力部 100 camera, 101 operating unit, 102 imaging unit, 103 obtaining unit, 104 image processing unit, 105 encoding unit, 106 output unit, 107 storage unit, 108 I / O, 201 color Component input unit, 202: Wavelet transform unit, 203: Quantization unit, 204: Mode selection unit, 205: First mode determination unit, 206: Second mode determination unit, 207: Predictive transformation selection unit, 208: First prediction Transformer, 209: second predictive converter, 210: third predictor, 211: fourth predictor, 212: Golomb encoder, 213: run-length encoder, 214: code generator, 215 ... Sign output section
Claims (8)
符号化対象の画像データをウェーブレット変換して、複数のサブバンドを生成する変換手段と、
サブバンドを構成する係数をラスタスキャン順に入力し、着目係数の予測値を当該着目係数の周囲に位置する符号化済の係数から求めることで、前記着目係数を予測符号化する第1の符号化手段と、
サブバンドにおける係数をラスタスキャン順に入力し、同じ係数の連続数を表すランを求め符号化する第2の符号化手段と、
前記着目係数が属する着目サブバンドがサブバンドLLであるか否かの第一の判定と、前記着目係数の周囲に位置する符号化済の複数の係数の値の関係を判定する第二の判定とに基づき、前記着目係数を前記第1の符号化手段で符号化するか、前記着目係数をランの起点として前記第2の符号化手段で符号化するかを判定する判定手段と、
を備えることを特徴とする画像符号化装置。 An image encoding device that encodes image data,
Transform means for performing a wavelet transform on the image data to be encoded to generate a plurality of subbands;
A first coding for predictively encoding the coefficient of interest by inputting coefficients constituting the subband in raster scan order and obtaining a predicted value of the coefficient of interest from encoded coefficients located around the coefficient of interest Means,
Second encoding means for inputting the coefficients in the sub-band in the raster scan order, obtaining and encoding a run indicating the number of continuous same coefficients,
A first determination as to whether or not the subband of interest to which the target coefficient belongs is a subband LL, and a second determination to determine the relationship between the values of a plurality of coded coefficients located around the target coefficient. A determination unit for determining whether to encode the coefficient of interest by the first encoding unit or to encode the coefficient of interest by the second encoding unit as a starting point of a run, based on
Image encoding device characterized by Ru with a.
前記第一の判定が前記着目サブバンドがサブバンドLLの場合であって、前記第二の判定が前記複数の係数の値が同値であると判定された場合には前記第2の符号化手段で符号化すると判定し、前記第二の判定が前記複数の係数の値が同値でないと判定された場には前記第1の符号化手段で符号化すると判定し、If the first determination is that the subband of interest is a subband LL and the second determination is that the values of the plurality of coefficients are the same, the second encoding unit It is determined that encoding is performed, and when the second determination determines that the values of the plurality of coefficients are not the same, it is determined that encoding is performed by the first encoding unit.
前記第一の判定が前記着目サブバンドがサブバンドLL以外のサブバンドの場合であって、前記第二の判定が前記複数の係数の値がすべて0であると判定された場合には前記第2の符号化手段で符号化すると判定し、前記第二の判定が前記複数の係数の値のすべてが0でないと判定された場合には前記第1の符号化手段で符号化すると判定するIf the first determination is a case where the subband of interest is a subband other than the subband LL, and if the second determination is that all the values of the plurality of coefficients are 0, the second determination is performed. When the second encoding unit determines that encoding is performed, and when the second determination determines that all of the plurality of coefficient values are not 0, the first encoding unit determines that encoding is performed.
ことを特徴とする請求項1に記載の画像符号化装置。The image encoding device according to claim 1, wherein:
変換手段が、符号化対象の画像データをウェーブレット変換して、複数のサブバンドを生成する変換工程と、
第1の符号化手段が、サブバンドを構成する係数をラスタスキャン順に入力し、着目係数の予測値を当該着目係数の周囲に位置する符号化済の係数から求めることで、前記着目係数を予測符号化する第1の符号化工程と、
第2の符号化手段が、サブバンドにおける係数をラスタスキャン順に入力し、同じ係数の連続数を表すランを求め符号化する第2の符号化工程と、
判定手段が、前記着目係数が属する着目サブバンドがサブバンドLLであるか否かの第一の判定と、前記着目係数の周囲に位置する符号化済の複数の係数の値の関係を判定する第二の判定とに基づき、前記着目係数を前記第1の符号化工程で符号化するか、前記着目係数をランの起点として前記第2の符号化工程で符号化するかを判定する判定工程と、
を備えることを特徴とする画像符号化方法。 An image encoding method for encoding image data,
A transforming unit that performs a wavelet transform on the image data to be encoded and generates a plurality of subbands;
The first encoding means inputs the coefficients constituting the sub-band in raster scan order, and obtains the predicted value of the coefficient of interest from the coded coefficients located around the coefficient of interest, thereby predicting the coefficient of interest. A first encoding step of encoding;
A second encoding step in which the second encoding means inputs the coefficients in the sub-band in raster scan order, and obtains and encodes a run indicating the number of continuous same coefficients;
Determining means for determining whether or not a subband of interest to which the coefficient of interest belongs is a subband LL and a relationship between values of a plurality of encoded coefficients located around the coefficient of interest; A determination step of determining whether to encode the noted coefficient in the first encoding step or to encode in the second encoding step with the noted coefficient as a starting point of a run based on a second determination When,
An image encoding method comprising:
符号化対象の画像データをウェーブレット変換して、複数のサブバンドを生成する変換手段と、Transform means for performing a wavelet transform on the image data to be encoded to generate a plurality of subbands;
サブバンドを構成する係数をラスタスキャン順に入力し、着目係数の予測値を当該着目係数の周囲に位置する符号化済の係数から求めることで、前記着目係数を予測符号化する第1の符号化手段と、A first coding for predictively coding the coefficient of interest by inputting coefficients constituting the subband in raster scan order and obtaining a predicted value of the coefficient of interest from coded coefficients located around the coefficient of interest; Means,
サブバンドにおける係数をラスタスキャン順に入力し、同じ係数の連続数を表すランを求め符号化する第2の符号化手段と、Second encoding means for inputting the coefficients in the sub-band in the raster scan order, obtaining and encoding a run indicating the number of continuous same coefficients,
着目サブバンドの種類および前記着目係数の周囲に位置する符号化済の複数の係数の値に基づき、前記着目係数を前記第1の符号化手段で符号化するか、前記着目係数をランの起点として前記第2の符号化手段で符号化するかを、判定する判定手段と、Based on the type of the subband of interest and the values of a plurality of encoded coefficients located around the target coefficient, the target coefficient may be encoded by the first encoding unit, or the target coefficient may be defined as a starting point of a run. Determination means for determining whether to perform encoding by the second encoding means as
を備えることを特徴とする画像符号化装置。An image encoding device comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2019047337A JP6632752B2 (en) | 2019-03-14 | 2019-03-14 | Image encoding apparatus and method, program and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2019047337A JP6632752B2 (en) | 2019-03-14 | 2019-03-14 | Image encoding apparatus and method, program and storage medium |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2015042975A Division JP6497981B2 (en) | 2015-03-04 | 2015-03-04 | Image coding apparatus and control method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2019126080A JP2019126080A (en) | 2019-07-25 |
JP6632752B2 true JP6632752B2 (en) | 2020-01-22 |
Family
ID=67399360
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2019047337A Active JP6632752B2 (en) | 2019-03-14 | 2019-03-14 | Image encoding apparatus and method, program and storage medium |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6632752B2 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3760284A1 (en) | 2019-07-05 | 2021-01-06 | Sumitomo Rubber Industries, Ltd. | Golf ball rubber composition and golf ball using the same |
CN112422992B (en) * | 2020-10-28 | 2024-10-18 | 西安万像电子科技有限公司 | Image coding method and device |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000115782A (en) * | 1998-10-06 | 2000-04-21 | Canon Inc | Coder, coding method and storage medium |
JP5492206B2 (en) * | 2009-07-27 | 2014-05-14 | 株式会社東芝 | Image encoding method and image decoding method, and image encoding device and image decoding device |
JP5338560B2 (en) * | 2009-08-21 | 2013-11-13 | 日本電気株式会社 | Image processing apparatus and image processing method |
US9369734B2 (en) * | 2012-07-19 | 2016-06-14 | Nec Corporation | Method and apparatus for encoding and decoding by wavelet transform |
-
2019
- 2019-03-14 JP JP2019047337A patent/JP6632752B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2019126080A (en) | 2019-07-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4365957B2 (en) | Image processing method and apparatus and storage medium | |
JP2000115782A (en) | Coder, coding method and storage medium | |
US7450768B2 (en) | Apparatus and method for processing image data based on object movement speed within a frame | |
JP6727011B2 (en) | Image coding apparatus and control method thereof | |
JP7129326B2 (en) | IMAGING DEVICE, CONTROL METHOD AND PROGRAM THEREOF | |
JP2019004428A (en) | Image encoding device, image decoding device, image encoding method, image decoding method, and program | |
JP6632752B2 (en) | Image encoding apparatus and method, program and storage medium | |
JP2016092589A (en) | Encoder and control method therefor | |
US11140392B2 (en) | Image encoding apparatus, image decoding apparatus, control methods thereof, and non- transitory computer-readable storage medium | |
JP6497981B2 (en) | Image coding apparatus and control method thereof | |
US12069306B2 (en) | Image encoding apparatus and method for controlling the same and non-transitory computer-readable storage medium | |
JP6946671B2 (en) | Image processing device and image processing method | |
JP2001359117A (en) | Image processing unit and image processing method or the unit | |
JP6727010B2 (en) | IMAGE ENCODING DEVICE, IMAGE DECODING DEVICE, AND CONTROL METHOD THEREOF | |
JP6512927B2 (en) | Image coding apparatus and control method thereof | |
JP6775339B2 (en) | Image coding device and its control method | |
JP6465570B2 (en) | IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD | |
JP6465571B2 (en) | IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD | |
KR20020069491A (en) | Method and device for image quantization and image encoding apparatus using thereof | |
JP5078199B2 (en) | Image encoding apparatus and method, program code, and storage medium | |
JP2001197498A (en) | Device and method for processing image and storage medium | |
JP2010004279A (en) | Image processor and image forming apparatus including the same | |
JP6812214B2 (en) | Image coding device, image coding method, and program | |
JP2007295319A (en) | Image processing apparatus and image forming apparatus equipped therewith | |
JP6581469B2 (en) | Image encoding apparatus, control method therefor, program, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20190415 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20190415 |
|
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: 20191111 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20191210 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 6632752 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |