JPH11220728A - Context generation method at image compression, image compression method, and image processor - Google Patents

Context generation method at image compression, image compression method, and image processor

Info

Publication number
JPH11220728A
JPH11220728A JP2125198A JP2125198A JPH11220728A JP H11220728 A JPH11220728 A JP H11220728A JP 2125198 A JP2125198 A JP 2125198A JP 2125198 A JP2125198 A JP 2125198A JP H11220728 A JPH11220728 A JP H11220728A
Authority
JP
Japan
Prior art keywords
context
value
pixel
image
image compression
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.)
Withdrawn
Application number
JP2125198A
Other languages
Japanese (ja)
Inventor
Yoshinobu Mita
良信 三田
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2125198A priority Critical patent/JPH11220728A/en
Publication of JPH11220728A publication Critical patent/JPH11220728A/en
Withdrawn legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To provide a context generation method, an image compression method and an image processor for generating reference state (or context) to improve the compression rate, without increasing the number of the context (the number of reference tables) so much. SOLUTION: As a bit arrangement of address data for deciding a context at calculation encoding processing in image compression, besides a surrounding image element value m bit of pixel of attention, values Q1,..., Qn other than a pixel value of this surrounding pixel are operated, and the operation result P1+...+Pn is added to the bit arrangement of the address data for context decision. In the operation, as a result of binarization by an average value of the pixel value of an input pixel, an average density and the result of binarization by a corresponding dither threshold, quality and attribute information of an image, including an edge part and a flat part of the image, a change rate of the average density in an area of plural pixels, the size and positive or negative signs and so on are calculated, and binary or a multi-valued output is set as the operation results.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、算術符号化による
画像圧縮時に参照するコンテクストを生成するコンテク
スト生成方法に関し、更に該コンテクストによる画像圧
縮方法と、その画像圧縮方法を適用する画像処理装置に
関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a context generation method for generating a context to be referred to when compressing an image by arithmetic coding, and further relates to an image compression method using the context and an image processing apparatus to which the image compression method is applied. It is.

【0002】[0002]

【従来の技術】従来、画像圧縮技術による情報保存型の
圧縮技術として、算術符号器がその効率の良さから利用
され、2値画像の標準圧縮方式“JBIG”にも採用さ
れている。この算術符号器では、圧縮しようとしている
注目画素の周囲の1つ又はいくつかの画素を参照画素と
して、その各ビットの配列をアドレスとしたコンテクス
トを生成し、その参照画素のビットの状態毎に、注目画
素を推定する為の出現確率推定値をコンテクストの内容
として管理することにより、効率の良いエントロピー符
号化を行うものである。
2. Description of the Related Art Conventionally, as an information storage type compression technique by an image compression technique, an arithmetic coder is used because of its high efficiency, and is also adopted in a standard compression method "JBIG" for a binary image. In this arithmetic coder, one or several pixels around the pixel of interest to be compressed are used as reference pixels, and a context is generated using the arrangement of each bit as an address, and for each bit state of the reference pixel, By managing the appearance probability estimation value for estimating the target pixel as the content of the context, efficient entropy coding is performed.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上記従
来例では、圧縮効率を上げるために参照画素数を増やす
と、コンテクストの内容保持のためのRAMテーブルの
容量が大きくなり、ハード的な負担が大きくなる。又、
ただ単に参照画素を増やしても、確率推定に影響のない
画素の場合は、参照テーブル数が増えた分だけ各状態の
発生頻度が低下し、外れが確率推定に影響して逆に圧縮
率に悪影響を与えることもある。
However, in the above conventional example, when the number of reference pixels is increased in order to increase the compression efficiency, the capacity of the RAM table for holding the contents of the context increases, and the burden on hardware increases. Become. or,
In the case of pixels that do not affect the probability estimation even if the number of reference pixels is simply increased, the occurrence frequency of each state decreases by the increase in the number of reference tables. It can have adverse effects.

【0004】本発明は、コンテクストの数(参照テーブ
ル数)をあまり増やさずに、圧縮率を向上させる参照状
態(コンテクスト)の生成を行うコンテクスト生成方法
及び画像圧縮方法、画像処理装置を提供することを目的
とする。
The present invention provides a context generation method, an image compression method, and an image processing apparatus for generating a reference state (context) for improving the compression ratio without increasing the number of contexts (the number of reference tables) so much. With the goal.

【0005】[0005]

【課題を解決するための手段】この課題を解決するため
に、本発明のコンテクスト生成方法は、画像圧縮におけ
る算術符号処理の際のコンテクストを決定するアドレス
データのビット配列として、注目画素の周辺画素値のほ
かに、該周辺画素の画素値以外の値を演算して、演算結
果をコンテクスト決定のアドレスデータのビット配列に
加えることを特徴とする。
In order to solve this problem, a context generating method according to the present invention uses, as a bit array of address data for determining a context at the time of arithmetic code processing in image compression, a peripheral pixel of a target pixel. In addition to the value, a value other than the pixel value of the peripheral pixel is calculated, and the calculation result is added to the bit array of the address data for context determination.

【0006】ここで、複数の異なる種類の演算が行わ
れ、演算結果をそれぞれコンテクスト決定のアドレスデ
ータのビット配列に加える。また、前記周辺画素の画素
値以外の値は、前記周辺画素以外の周辺画素を含む画素
値である。また、演算では入力画素の画素値の平均値を
求め、2値または多値出力を演算結果とする。また、演
算結果として、平均濃度、および対応するディザ閾値に
より2値化した結果を出力する。また、演算では画像の
エッジ部と平坦部を含む画像の性質ならびに属性情報を
2値または多値のデータで出力する。また、演算では複
数画素のエリアでの平均濃度の、変化率、大小ならびに
正負を演算して出力する。また、演算では注目画素の座
標を入力して、演算結果としてディザマトリクス上の座
標値に変換した値、または2値化または多値化したデー
タ、または、ディザマトリクス上の座標値からディザ閾
値を求めるテーブルを備え、入力に対応するディザ閾
値、または前記ディザ閾値を2値化または多値化したデ
ータを出力する。
Here, a plurality of different types of calculations are performed, and the calculation results are added to the bit array of the address data for context determination. Further, the value other than the pixel value of the peripheral pixel is a pixel value including peripheral pixels other than the peripheral pixel. In the calculation, the average value of the pixel values of the input pixels is obtained, and a binary or multi-value output is used as the calculation result. In addition, a result of binarization based on the average density and the corresponding dither threshold is output as the calculation result. In the calculation, the property and attribute information of the image including the edge portion and the flat portion of the image are output as binary or multi-valued data. In addition, in the calculation, the change rate, the magnitude, the magnitude and the sign of the average density in the area of a plurality of pixels are calculated and output. In the calculation, the coordinates of the pixel of interest are input, and as a result of the calculation, a dither threshold value is calculated from a value converted into a coordinate value on a dither matrix, binary or multi-valued data, or a coordinate value on the dither matrix. A dither threshold corresponding to an input or data obtained by binarizing or multi-leveling the dither threshold is output.

【0007】叉、本発明の画像圧縮方法は、注目画素の
周辺画素値をアドレスデータのビット配列としてコンテ
クストを決定し、該コンテクストに基づいて算術符号化
を行う画像圧縮方法において、画像圧縮における算術符
号処理の際のコンテクストを決定するアドレスデータの
ビット配列として、注目画素の周辺画素値のほかに、該
周辺画素の画素値以外の値を演算して、演算結果をコン
テクスト決定のアドレスデータのビット配列に加えるこ
とを特徴とする。ここで、複数の異なる種類の演算が行
われ、演算結果をそれぞれコンテクスト決定のアドレス
データのビット配列に加える。
Further, according to the image compression method of the present invention, there is provided an image compression method for determining a context using a peripheral pixel value of a pixel of interest as a bit array of address data and performing arithmetic coding based on the context. As a bit array of address data that determines the context at the time of the encoding process, in addition to the peripheral pixel value of the target pixel, a value other than the pixel value of the peripheral pixel is calculated, and the calculation result is expressed as a bit of the address data of the context determination. It is characterized in that it is added to an array. Here, a plurality of different types of operations are performed, and the operation results are respectively added to the bit array of the address data for context determination.

【0008】叉、本発明の画像圧縮装置は、注目画素の
周辺画素値をアドレスデータのビット配列としてコンテ
クストを決定するコンテクスト決定手段を有し、該コン
テクストに基づいて算術符号化を行う画像圧縮装置にお
いて、前記コンテクスト決定手段が、画像圧縮における
算術符号処理の際のコンテクストを決定するアドレスデ
ータのビット配列として、注目画素の周辺画素値のほか
に、該周辺画素の画素値以外の値を演算して、演算結果
をコンテクスト決定のアドレスデータのビット配列に加
える演算手段を有することを特徴とする。
Further, the image compression apparatus of the present invention has context determination means for determining a context by using a peripheral pixel value of a target pixel as a bit array of address data, and performs an arithmetic coding based on the context. In the above, the context determination means calculates a value other than the pixel value of the peripheral pixel in addition to the peripheral pixel value of the target pixel as a bit array of address data for determining the context in arithmetic code processing in image compression. And an operation means for adding the operation result to the bit array of the address data for context determination.

【0009】ここで、複数の演算手段を有して複数の異
なる種類の演算が行われ、演算結果をそれぞれコンテク
スト決定のアドレスデータのビット配列に加える。ま
た、前記周辺画素の画素値以外の値は、前記周辺画素以
外の周辺画素を含む画素値である。また、前記演算手段
は、入力画素の画素値の平均値を求め、2値または多値
出力を演算結果とする。また、前記演算手段は、演算結
果として、平均濃度、および対応するディザ閾値により
2値化した結果を出力する。また、前記演算手段は、画
像のエッジ部と平坦部を含む画像の性質ならびに属性情
報を2値または多値のデータで出力する。また、前記演
算手段は、複数画素のエリアでの平均濃度の、変化率、
大小ならびに正負を演算して出力する。また、前記演算
手段は、注目画素の座標を入力して、演算結果としてデ
ィザマトリクス上の座標値に変換した値、または2値化
または多値化多値化したデータ、または、ディザマトリ
クス上の座標値からディザ閾値を求めるテーブルを備
え、入力に対応するディザ閾値、または前記ディザ閾値
を2値化または多値化したデータを出力する。
Here, a plurality of different types of calculations are performed by using a plurality of calculation means, and the calculation results are added to the bit array of the address data for context determination. Further, the value other than the pixel value of the peripheral pixel is a pixel value including peripheral pixels other than the peripheral pixel. The calculating means calculates an average value of the pixel values of the input pixels, and sets a binary or multi-value output as a calculation result. The calculating means outputs a result of the binarization based on the average density and the corresponding dither threshold as the calculation result. The calculating means outputs binary or multi-valued data of property and attribute information of the image including the edge portion and the flat portion of the image. Further, the calculating means includes: a change rate of an average density in an area of a plurality of pixels;
Calculates the magnitude, plus or minus, and outputs it. Further, the arithmetic means inputs the coordinates of the pixel of interest and converts the value into a coordinate value on a dither matrix as a calculation result, or binarized or multi-valued multi-valued data, or A table for obtaining a dither threshold from coordinate values is provided, and a dither threshold corresponding to an input or data obtained by binarizing or multi-leveling the dither threshold is output.

【0010】叉、本発明の画像処理装置は、注目画素の
周辺画素値をアドレスデータのビット配列としてコンテ
クストを決定し、該コンテクストに基づいて算術符号化
を行う画像圧縮部を有する画像処理装置において、前記
画像圧縮部でコンテクストを決定する場合に、画像圧縮
における算術符号処理の際のコンテクストを決定するア
ドレスデータのビット配列として、注目画素の周辺画素
値のほかに、該周辺画素の画素値以外の値を演算して、
演算結果をコンテクスト決定のアドレスデータのビット
配列に加えることを特徴とする。ここで、複数の異なる
種類の演算が行われ、演算結果をそれぞれコンテクスト
決定のアドレスデータのビット配列に加える。
The image processing apparatus according to the present invention is an image processing apparatus having an image compression unit that determines a context using a peripheral pixel value of a pixel of interest as a bit array of address data and performs arithmetic coding based on the context. In the case where the context is determined by the image compression unit, the bit array of the address data for determining the context in the arithmetic coding process in the image compression, in addition to the peripheral pixel value of the target pixel, other than the pixel value of the peripheral pixel Calculate the value of
It is characterized in that the operation result is added to the bit array of the address data for context determination. Here, a plurality of different types of operations are performed, and the operation results are respectively added to the bit array of the address data for context determination.

【0011】叉、本発明の記憶媒体は、画像処理装置に
おいて画像を算術符号化により圧縮するプログラムをコ
ンピュータ読出し可能に記憶する記憶媒体であって、前
記プログラムが、少なくとも、画像圧縮における算術符
号処理の際のコンテクストを決定するアドレスデータの
ビット配列として、注目画素の周辺画素値のほかに、該
周辺画素の画素値以外の値を演算して、演算結果をコン
テクスト決定のアドレスデータのビット配列に加える手
順を含む。
According to another aspect of the present invention, there is provided a storage medium for storing a computer-readable program for compressing an image by arithmetic coding in an image processing apparatus, wherein the program includes at least an arithmetic coding process in image compression. As a bit array of the address data that determines the context at the time of the operation, in addition to the peripheral pixel value of the target pixel, a value other than the pixel value of the peripheral pixel is calculated, and the calculation result is converted into a bit array of the address data of the context determination. Including steps to add.

【0012】[0012]

【発明の実施の形態】以下、本発明の一実施の形態を図
1に示す画像符号化部の構成例を用い詳細に説明する。
まず、図示しないディザ処理部等で多値データから2値
化されたデータが、本画像符号化部での圧縮対象となる
入力画像となる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below in detail with reference to the configuration example of an image encoding unit shown in FIG.
First, data binarized from multi-value data by a dither processing unit (not shown) or the like is an input image to be compressed by the main image encoding unit.

【0013】入力画像はラスター順次に各画素が、遅延
部4及びFIFO1に入力される。遅延部4の出力は、
入力に対して0から複数クロック分の遅延をうけてから
出力される。FIFO1では、入力データを1水平ライ
ン分の遅延を行ってデータ出力とする。FIFO1の出
力は、遅延部5及びFIFO2に入力される。FIFO
2の出力は、遅延部6及びFIFO3に入力され、FI
FO3の出力は、遅延部7に入力される。遅延部5,
6,7の機能は遅延部4と同じであり、またFIFO
2,3の機能はFIFO1と同様に1ライン分の遅延を
する。
Each pixel of the input image is input to the delay unit 4 and the FIFO 1 in raster order. The output of the delay unit 4 is
It is output after a delay of 0 or more clocks from the input. In the FIFO1, input data is delayed by one horizontal line and output as data. The output of FIFO1 is input to delay unit 5 and FIFO2. FIFO
2 is input to the delay unit 6 and the FIFO 3, and
The output of FO3 is input to delay unit 7. Delay unit 5,
The functions of 6 and 7 are the same as those of the delay unit 4, and
Functions 2 and 3 delay one line as in FIFO1.

【0014】遅延部4,5,6の最大遅延量は、遅延部
7のそれより大きく設定可能であり、遅延部7の最大遅
延データが注目画素になる。従って、遅延部4〜7の出
力は注目画素周辺の画素値であり、遅延部6は1ライン
前、遅延部5は2ライン前、遅延部4は3ライン前のデ
ータを出力していて、遅延部7の最大遅延量と遅延部
4,5,6の遅延量との差が注目画素との水平位置のず
れに相当する。
The maximum delay amount of the delay units 4, 5, 6 can be set larger than that of the delay unit 7, and the maximum delay data of the delay unit 7 becomes the target pixel. Therefore, the outputs of the delay units 4 to 7 are pixel values around the target pixel, the delay unit 6 outputs data one line before, the delay unit 5 outputs two lines before, and the delay unit 4 outputs data three lines before. The difference between the maximum delay amount of the delay unit 7 and the delay amounts of the delay units 4, 5, and 6 corresponds to a shift of the horizontal position from the target pixel.

【0015】これら注目画素の周辺の複数画素の内、m
画素(mビット)が参照メモリ9のアドレスとして入力
される。同様に、Q1個の画素値が演算部8−1に、Qn
個の画素値が演算部8−nに入力される。演算部8−1
〜8−nは、演算結果P1ビット〜Pnビットを参照メモ
リ9のアドレス線として入力する。従って、参照メモリ
9は(m+P1+…+Pn)ビットのアドレスで決定され
る、2(m+P1++Pn)個のコンテクストの状態で格納でき
る。
[0015] Of the plurality of pixels around the target pixel, m
A pixel (m bits) is input as an address of the reference memory 9. Similarly, Q1 pixel values are supplied to the arithmetic unit 8-1 by Qn.
The pixel values are input to the calculation unit 8-n. Arithmetic unit 8-1
8-n input the operation result bits P1 to Pn as address lines of the reference memory 9. Therefore, the reference memory 9 can store data in 2 (m + P1 + ... + Pn) contexts determined by the address of (m + P1 +... + Pn) bits.

【0016】尚、以下に示すように、演算部8−1〜8
−nは、画素値を演算するものに限定されず、注目画素
のアドレス等であっても、これらを組み合わせたもので
あっても、注目画素の予測的中率が改善されるものであ
れば、符号化の圧縮率の向上と符号化速度の向上とな
る。算術符号部10では、以下に示すように、注目画素
値と参照メモリ9に格納された状態番号等のデータをう
けて算術符号演算が行われる。
As described below, the operation units 8-1 to 8-8
−n is not limited to the one that calculates the pixel value, and is not limited to the address of the target pixel or the combination thereof, as long as the predictive accuracy of the target pixel is improved. , The encoding compression rate and the encoding speed are improved. The arithmetic code unit 10 performs an arithmetic code operation on the target pixel value and data such as the state number stored in the reference memory 9 as described below.

【0017】算術符号演算の処理は、状態番号等によ
り、注目画素値が出現確率で優勢(性)か劣勢(性)
か、その確率値がいくつなのかを、算術符号部10内の
テーブルより求めて、そのデータに基づき符号が生成さ
れる。一般に優勢シンボルの確率が1に近ければ近い
程、少ない符号量で符号化が可能で、劣勢シンボルが発
生しない。
In the arithmetic code operation process, the pixel value of interest is dominant (sex) or inferior (sex) in appearance probability according to the state number or the like.
The number of the probability value is calculated from a table in the arithmetic coding unit 10 and a code is generated based on the data. In general, the closer the probability of the superior symbol is to 1, the smaller the amount of code can be used for encoding, and no inferior symbol is generated.

【0018】算術符号部10では、入力される注目画素
値が優勢か劣勢シンボルかにより、符号を発生するが、
入力される注目画素値により優勢、劣勢各シンボルの出
現確率が変わったり、優勢と劣勢のシンボルが入れ代わ
ったりする。算術符号部10は、算術符号部10内のテ
ーブルより求めた結果を、新たな状態番号及び優勢シン
ボル値を参照メモリ9に書き込んで内容を更新し、常に
新しいコンテクストの状態で算術符号の効率を向上させ
る仕組みとなっている。
The arithmetic code unit 10 generates a code depending on whether the input pixel value of interest is a superior or inferior symbol.
The appearance probability of each of the superior and inferior symbols changes depending on the input target pixel value, or the superior and inferior symbols change places. The arithmetic coding unit 10 updates the contents of the result obtained from the table in the arithmetic coding unit 10 by writing the new state number and the dominant symbol value in the reference memory 9 and constantly improving the efficiency of the arithmetic code in a new context state. It is a mechanism to improve.

【0019】図2は、参照メモリ9に直接アドレスとし
て入力される参照画素と、演算部1〜演算部nに入力す
る演算用画素と、注目画素との位置関係の一例を示して
いる。図2に示すように、演算用画素は参照画素にはな
い画素を含むことが必要である。また、演算部1〜演算
部nは図示する演算用画素以外の情報も入力する、また
は予め保持することにより効果を増すことができる。
FIG. 2 shows an example of a positional relationship between a reference pixel input directly to the reference memory 9 as an address, an operation pixel input to the operation units 1 to n, and a pixel of interest. As shown in FIG. 2, the calculation pixels need to include pixels that are not included in the reference pixels. In addition, the operation units 1 to n can also increase the effect by inputting information other than the illustrated operation pixels or holding the information in advance.

【0020】(演算部の例1)演算部では、複数の入力
画素値の平均値を求めて複数ビット精度で出力する。ま
たは、複数の入力の平均値と閾値Th1との大小比較結
果を1ビットで出力する。この時に、参照メモリ9に与
えるmビットの参照画素より広範囲の画素を演算部に与
えることにより、注目画素値の予測精度が向上する。こ
れは注目画素の周辺の局所平均と、それより広い平均レ
ベルの差により、注目画素が濃度平坦部なのかエッジ部
なのか等の判別精度が向上するからである。
(Example 1 of Operation Unit) The operation unit obtains an average value of a plurality of input pixel values and outputs the average value with a plurality of bits. Alternatively, a result of comparing the average value of a plurality of inputs with the threshold value Th1 is output in one bit. At this time, the prediction accuracy of the pixel value of interest is improved by providing the arithmetic unit with a wider range of pixels than the m-bit reference pixels provided to the reference memory 9. This is because the difference between the local average around the target pixel and a wider average level improves the accuracy of determining whether the target pixel is a flat density portion or an edge portion.

【0021】また、平均値を2〜3ビットを用い量子化
すれば、更に正確な注目画素予測が可能となる。 (演算部の例2)演算部の入力に、注目画素周辺画素値
以外のデータを与える。本例では、注目画素値の水平、
垂直画素位置を与える。また、演算部内に、ディザ閾値
マトリクスを備える。このディザ閾値マトリクスは、圧
縮対象である2値イメージデータが多値データから生成
された時に使われたマトリクスデータであり、注目画素
位置に対応するディザ閾値データを出力することによ
り、注目画素値の予測精度を向上させることができる。
Further, if the average value is quantized using 2 to 3 bits, more accurate prediction of the target pixel can be performed. (Example 2 of operation unit) Data other than the pixel value around the target pixel is given to the input of the operation unit. In this example, the horizontal of the pixel value of interest,
Gives the vertical pixel position. Further, a dither threshold matrix is provided in the operation unit. This dither threshold matrix is matrix data used when the binary image data to be compressed is generated from the multi-valued data. By outputting the dither threshold data corresponding to the target pixel position, The prediction accuracy can be improved.

【0022】また、コンテクストの数を減らすために、
閾値を別の閾値Th2と比較して、1ビットのデータと
して出力したり、さらに別の閾値Th3,Th4,Th5
と比較して2ビットの4値データとして演算部の出力と
しても効果がある。さらに、水平、垂直位置からR×S
のディザマトリクス上の位置として、水平位置をRで割
った余りRh、垂直位置をSで割った余りSvを演算部の
出力としたり、Rh,Svをさらに量子化してビット数を
1,2ビットに落としても効果がある。この場合にはデ
ィザ閾値マトリクスのサイズのみが必要であり、閾値デ
ータは必要としない。
In order to reduce the number of contexts,
The threshold value is compared with another threshold value Th2, and is output as 1-bit data. Further, another threshold value Th3, Th4, Th5
This is also effective as an output of the arithmetic unit as 2-bit quaternary data as compared with. Furthermore, from horizontal and vertical positions, R × S
The remainder of the horizontal position divided by R and the remainder of the vertical position divided by S, Sv, are used as the output of the calculation unit as the positions on the dither matrix, and the number of bits is further reduced by quantizing Rh and Sv to 1 or 2 bits. It is effective even if dropped. In this case, only the size of the dither threshold matrix is required, and no threshold data is required.

【0023】更に、前記の構成を発展した形としては、
前記のようにして、求めたディザ閾値で、前記演算部の
例1で求めた平均値を2値化し、その結果を演算部の出
力としても、注目画素の予測精度が向上し、圧縮率が向
上する。又、前記演算部の例1と、本演算部の例2で挙
げた演算部を、演算部8−1〜8−nに併用すると圧縮
効率向上が更に顕著になる。
Further, as a form in which the above configuration is developed,
As described above, the average value obtained in Example 1 of the arithmetic unit is binarized with the dither threshold value obtained, and the result is output to the arithmetic unit. improves. Further, when the arithmetic units described in Example 1 of the arithmetic unit and Example 2 of the present arithmetic unit are used together with the arithmetic units 8-1 to 8-n, the compression efficiency is further improved.

【0024】(演算部の例3)演算部10で、注目画素
周辺画素値を1度多値化して1次微分や2次微分を行な
い、エッジの強度を求める等の処理を行った結果や、ま
たは2値のデータのまま予め作成したデータとのパター
ンマッチングを行い、周辺画素エリアがエッジ部なのか
平坦部なのかを識別し、識別結果を1ビットのデータと
して演算部より出力する。本例のように処理した場合
も、予測精度の向上が期待できる。
(Example 3 of Operation Unit) The operation unit 10 multiplies the pixel value around the target pixel once to perform primary differentiation and secondary differentiation, and obtains the result of processing such as obtaining the edge strength. Or the binary data is subjected to pattern matching with previously created data to identify whether the peripheral pixel area is an edge portion or a flat portion, and outputs the identification result as 1-bit data from the arithmetic unit. Even when the processing is performed as in this example, an improvement in prediction accuracy can be expected.

【0025】また、識別結果を2〜3ビット程度にし、
エッジと平坦の中間的性質を含めて識別して出力するこ
とにより、更に全体としての予測精度が向上する。 (演算部の例4)本例は、入力された複数の画素のエリ
アでの平均濃度の変化率の大小を出力データとし、前述
した平均濃度値やディザ閾値を求める演算部と併用する
例である。更に、平均濃度の変化率の正、負を演算結果
として加えると、更に効果が向上する。
Further, the identification result is set to about 2 to 3 bits,
By discriminating and outputting the intermediate property between the edge and the flatness, the prediction accuracy as a whole is further improved. (Example 4 of Calculation Unit) This example is an example in which the magnitude of the change rate of the average density in the area of a plurality of input pixels is used as output data, and is used together with the calculation unit for calculating the above-described average density value and dither threshold. is there. Further, when the positive and negative values of the change rate of the average density are added as the calculation result, the effect is further improved.

【0026】以上説明した演算部の数例は入力画像が2
値画像であったが、入力画像の各画素が4値であって、
2ビットの多値データであっても良いことは云うまでも
ない。この場合は、演算部として以下に挙げる例も予測
画素の予測向上に効果がある。即ち、各画素を構成する
2ビットが一致するか否かを判定し、その一致数を2値
化、または多値に量子化して出力する。このよううに処
理することにより、画像の余白等の背景部や画像のガン
マ特性が立っている2値的データが、中間濃度レベルか
否かを判別することにより、注目画素予測を向上させる
ことができる。
In the above-described examples of the operation units, the input image is 2
Value image, but each pixel of the input image is quaternary,
It goes without saying that 2-bit multivalued data may be used. In this case, the following examples of the operation unit are also effective in improving the prediction of the prediction pixel. That is, it is determined whether or not the two bits forming each pixel match, and the number of matches is binarized or quantized into multi-values and output. By performing such processing, it is possible to improve the target pixel prediction by determining whether or not binary data having a background portion such as a margin of an image or a gamma characteristic of the image is at an intermediate density level. it can.

【0027】図3に、予測符号化による符号化装置の概
略構成例を示し、簡単に説明する。尚、復号も類似の構
成であることは自明である。図中、10は、図1と同様
の算術符号部であり、入力される符号化すべき注目画素
の2値データPIXは、排他的NORゲート104に入
力される。また注目画素の近傍のm個の参照画素と演算
部の出力からなる2値データCX(コンテクスト)は参
照メモり(予測状態メモリ;RAM)9に入力される。
FIG. 3 shows an example of a schematic configuration of a coding apparatus using predictive coding, which will be briefly described. It is obvious that the decoding has a similar configuration. In the figure, reference numeral 10 denotes an arithmetic coding unit similar to that of FIG. 1, and the binary data PIX of the pixel of interest to be input is input to the exclusive NOR gate 104. Also, binary data CX (context) including m reference pixels in the vicinity of the target pixel and the output of the calculation unit is input to a reference memory (predicted state memory; RAM) 9.

【0028】RAM9は入力されるコンテクストCXの
状態に応じて0又は1を予測画素データMPS(More P
robable Symbol:優勢シンボル)として排他的NORゲ
ート104に入力する。該排他的NORゲート104で
は、注目画素データPIXとRAM101からの予測画
素データMPSとの一致/不一致を調べ、一致していれ
ば1を、不一致であれば0を算術符号器103へ入力す
る。また、RAM9は予測状態値STを出力し、確率推
定テーブル105にて、該予測状態値STを推定出現確
率(優勢シンボルのサイズ)LSZに変換して、算術符
号器103に送る。
The RAM 9 sets the predicted pixel data MPS (More P) to 0 or 1 depending on the state of the context CX input.
The exclusive NOR gate 104 is input to the exclusive NOR gate 104 as a robable symbol. The exclusive NOR gate 104 checks the coincidence / mismatch between the target pixel data PIX and the predicted pixel data MPS from the RAM 101, and inputs 1 to the arithmetic encoder 103 if they match and 0 if they do not match. Further, the RAM 9 outputs the predicted state value ST, converts the predicted state value ST into an estimated occurrence probability (the size of the dominant symbol) LSZ in the probability estimation table 105, and sends it to the arithmetic encoder 103.

【0029】算術符号器103内には、後述するよう
に、インターバルサイズ(Current Coding Interval)
を保持するAレジスタとコードレジスタ(Code registe
r)であるCレジスタが設けられ、入力された2値デー
タに基づいて算術演算をおこない、確定したコードを圧
縮符号化データとして出力する。Aレジスタは、符号化
演算を行うと前より値が小さくなるので、次以降の演算
の精度を維持するため、該Aレジスタの値が8000H
以上になるように正規化処理を行う。正規化処理はAレ
ジスタとCレジスタの両方をビットシフトするもので、
その時Cレジスタ最上位ビットからシフトアウトされる
ビットデータが符号化コードとなるわけである。正規化
処理を行う際に、RAM9の内容も更新する。更新デー
タは、算術符号器103の演算結果に基づいて、予測状
態更新部102により生成され、RAM9に送られる。
As described later, the arithmetic encoder 103 has an interval size (Current Coding Interval).
Register and code register (Code register)
A C register as r) is provided, performs an arithmetic operation based on the input binary data, and outputs a determined code as compressed and encoded data. The value of the A register is 8000H because the value of the A register is smaller than that before the encoding operation, so that the accuracy of the next and subsequent operations is maintained.
The normalization process is performed as described above. In the normalization process, both the A register and the C register are bit-shifted.
At that time, the bit data shifted out from the most significant bit of the C register becomes the encoded code. When performing the normalization processing, the contents of the RAM 9 are also updated. The update data is generated by the prediction state update unit 102 based on the operation result of the arithmetic encoder 103 and sent to the RAM 9.

【0030】図4に算術符号器103の一構成例を示
す。以下演算符号器103を簡単に説明する。図4にお
いて、301は前出のAレジスタ、302はCレジス
タ、303は推定出現確率であるLSZを入力する端
子、304は符号化する1ビットの情報を入力する端
子、305は(A−LSZ)またはLSZの値からシフ
ト量を求めるシフト量エンコード回路、306は(A−
LSZ)またはLSZを出力する減算・セレクタ部、3
07は{C+(A−LSZ)}またはCを出力する加算
・セレクタ部、308は前記305から出力されるシフ
ト量に基づいて、減算・セレクタ部306の出力をシフ
トする第1のシフタ、309は前記305から出力され
るシフト量に基づいて、加算・セレクタ部306の出力
をシフトする第2のシフタ、310は上記第2のシフタ
からシフト合うとされる符号出力を出力する端子であ
る。又、311は予測状態更新部102に更新指示信号
UPDATAを出力する端子である。
FIG. 4 shows an example of the configuration of the arithmetic encoder 103. Hereinafter, the arithmetic encoder 103 will be briefly described. In FIG. 4, reference numeral 301 denotes the aforementioned A register, 302 denotes the C register, 303 denotes a terminal for inputting the LSZ that is the estimated occurrence probability, 304 denotes a terminal for inputting 1-bit information to be encoded, and 305 denotes (A-LSZ ) Or a shift amount encoding circuit 306 for calculating the shift amount from the value of LSZ.
LSZ) or a subtraction / selector section for outputting LSZ, 3
07 is an addition / selector unit that outputs {C + (A−LSZ)} or C; 308 is a first shifter that shifts the output of the subtraction / selector unit 306 based on the shift amount output from the 305; Is a second shifter that shifts the output of the addition / selector unit 306 based on the shift amount output from the 305, and 310 is a terminal that outputs a code output that is considered to be shifted from the second shifter. Reference numeral 311 denotes a terminal that outputs an update instruction signal UPDATA to the predicted state update unit 102.

【0031】305,306,307の各出力は、30
4から入力される符号化1ビット情報(排他的NORゲ
ート104からの出力)によってそれぞれ切り換えられ
る。例えば該1ビット情報が“1”の場合は、305か
らは(A−LSZ)の値に基づくシフト量を、306か
らは(A−LSZ)を、307からは{C+(A−LS
Z)}を出力する。一方、該1ビット情報が“0”の場
合は、305からはLSZの値に基づくシフト量を、3
06からはLSZを、307からはCを出力する。この
ように、シフト量のエンコード、(A−LSZ)の計
算、{C+(A−LSZ)}の計算、シフト処理と逐次
処理を行うのが一般的に考えられる構成である。
Each output of 305, 306 and 307 is 30
4 is switched according to the encoded 1-bit information (output from the exclusive NOR gate 104) input from the input terminal 4. For example, when the one-bit information is “1”, the shift amount based on the value of (A-LSZ) is obtained from 305, (A-LSZ) is obtained from 306, and ΔC + (A-LSZ) is obtained from 307.
Z)} is output. On the other hand, when the 1-bit information is “0”, the shift amount based on the value of LSZ is
LSZ is output from 06, and C is output from 307. As described above, it is generally considered that encoding of the shift amount, calculation of (A-LSZ), calculation of {C + (A-LSZ)}, shift processing, and sequential processing are performed.

【0032】図5に従来知られている符号化の処理フロ
ーの概略を示し、図7にJBIGの符号化アルゴリズム
の処理“ENCODE”の一般的なフローチャートを示
す。以下、図5と図7とを用いて従来の符号化動作を説
明する。ステップS1300は読み出し処理であり、R
AM101から符号化画素の出現確率を計算するための
値である予測状態STと予測シンボルMPSとの読み出
しを行う。ここで、本実施の形態では、読み出し処理の
際に入力されるアドレスは、符号化対象画素PIXの周
囲の参照画素と演算部からの出力から生成される。ステ
ップS1301の確率推定値デコード処理は、ステップ
S1300において読み出されたSTを、画素の出現確
率である確率推定値LSZに変換する。
FIG. 5 shows an outline of a conventionally known encoding processing flow, and FIG. 7 shows a general flowchart of the processing "ENCODE" of the JBIG encoding algorithm. Hereinafter, the conventional encoding operation will be described with reference to FIGS. Step S1300 is a reading process.
The prediction state ST and the prediction symbol MPS, which are values for calculating the appearance probability of the coded pixel from the AM 101, are read. Here, in the present embodiment, the address input at the time of the reading process is generated from the reference pixels around the encoding target pixel PIX and the output from the arithmetic unit. The probability estimation value decoding process in step S1301 converts the ST read in step S1300 into a probability estimation value LSZ that is a pixel appearance probability.

【0033】次に、PIX,MPS,LSZを用いて算
術演算が行われる。JBIG符号化では、コンテクスト
によって一意的に決定されるLSZ,MPSを、符号化
を行っていく過程で適応的に更新していかなければなら
ない。ステップS1302においては、演算αの結果か
ら、この更新処理を行う必要があるかどうかを判定す
る。この処理は、図6のステップS2100、S210
2、及びS2101a,S2101bの処理の(A−L
SZ)の計算部分に対応する。すなわち、更新処理は、
PIX=MPSでない場合、あるいは(A−LSZ)の
結果が0x8000未満となった場合に、実行される。
Next, an arithmetic operation is performed using PIX, MPS, and LSZ. In JBIG encoding, LSZ and MPS uniquely determined by a context must be adaptively updated in the course of encoding. In step S1302, it is determined from the result of the calculation α whether or not this update process needs to be performed. This processing is performed in steps S2100 and S210 in FIG.
2, and (AL) of the processing of S2101a and S2101b.
SZ). That is, the update process
This is executed when PIX is not MPS or when the result of (A-LSZ) is less than 0x8000.

【0034】更新処理が選択されると、図5のステップ
S1303で演算β及び演算結果の書き込み処理を行
う。ステップS1303は、更新処理が必要な場合に行
う処理であり、RAM101への書き込み処理では、当
該コンテクストにおける次なる予測状態NST及び、次
なるMPSであるNMPSを、RAM101に書き込
む。RAM101に書き込むアドレスは、読み出し処理
に使用した現処理対象画素のコンテクストである。演算
βは、図6のステップS2103a,S2103b、S
2104a,S2104b、S2109の処理に対応す
る。書き込み処理は、図6のステップS2105〜S2
108の処理に対応する。
When the update process is selected, the process of writing the calculation β and the calculation result is performed in step S1303 in FIG. Step S1303 is a process performed when an update process is necessary. In the process of writing to the RAM 101, the next predicted state NST in the context and the next MPS, NMPS, are written to the RAM 101. The address to be written to the RAM 101 is the context of the currently processed pixel used for the read processing. The calculation β corresponds to steps S2103a, S2103b, S2103 in FIG.
This corresponds to the processing of 2104a, S2104b, and S2109. The writing process is performed in steps S2105 to S2 in FIG.
108.

【0035】更新処理が必要ない場合は、演算βと書き
込み処理を行わず、ステップS1304の演算γを行っ
て次の画素の処理に移る。演算γは更新処理が必要ない
場合に行う演算であり、図6のステップS2101a,
S2101bの処理の(A−LSZ)の結果をAレジス
タヘ代入する部分に対応する。JBIGの画像圧縮を具
体的に用いた画像処理装置の一例を図7に示す。
If the updating process is not required, the calculation β and the writing process are not performed, and the calculation γ of step S1304 is performed, and the process proceeds to the next pixel. The operation γ is an operation performed when the update process is not necessary, and is performed in step S2101a,
This corresponds to a portion where the result of (A-LSZ) in the processing of S2101b is substituted into the A register. FIG. 7 shows an example of an image processing apparatus that specifically uses JBIG image compression.

【0036】コンピュータから、インターフェース10
01を介して受け取ったデータは、一時的にテンポラリ
バッファ1002に受け、描画部1003により描画展
開したビットマップデータをバンドバッファ1004に
描きこみ、該バンドバッファ1004のビットマップデ
ータを符号化部1004で圧縮符号化し、前記圧縮符号
化した符号化データをページメモり1006に格納す
る。
From the computer, the interface 10
01 is temporarily received by the temporary buffer 1002, the bitmap data drawn and developed by the drawing unit 1003 is drawn into the band buffer 1004, and the bitmap data of the band buffer 1004 is written by the encoding unit 1004. The data is compression-encoded, and the compression-encoded data is stored in the page memory 1006.

【0037】前記ページメモり1006内の符号化デー
タを復号化部1007にテ復号し、得られたビットマッ
プデータをプリンタエンジン部1008にてプリント出
力する。ここで、JBEG方式で符号化されているデー
タを復号すると、復号部1007からのデータ出力レー
トが一定でなく、プリンタエンジン部1008に復号部
1007から直接出力できない。そこで、復号部100
7と、プリンタエンジン部1008との間にFIFO
(First In First Out Memory)を設け、前記復号部1
007から出力するビットマップデータを時間的に平滑
化してから、プリンタエンジン部1008へ出力するよ
うにしている。
The coded data in the page memory 1006 is te-decoded by the decoding unit 1007, and the obtained bitmap data is printed out by the printer engine unit 1008. Here, when the data encoded by the JBEG method is decoded, the data output rate from the decoding unit 1007 is not constant and cannot be directly output from the decoding unit 1007 to the printer engine unit 1008. Therefore, the decoding unit 100
7 and the printer engine unit 1008
(First In First Out Memory) and the decoding unit 1
The bitmap data output from 007 is temporally smoothed before being output to the printer engine unit 1008.

【0038】なお、本発明は、複数の機器(例えばホス
トコンピュータ,インタフェイス機器,リーダ,プリン
タなど)から構成されるシステムに適用しても、一つの
機器からなる装置(例えば、複写機,ファクシミリ装置
など)に適用してもよい。また、本発明の目的は、前述
した実施形態の機能を実現するソフトウェアのプログラ
ムコードを記録した記憶媒体を、システムあるいは装置
に供給し、そのシステムあるいは装置のコンピュータ
(またはCPUやMPU)が記憶媒体に格納されたプロ
グラムコードを読出し実行することによっても、達成さ
れることは言うまでもない。この場合、記憶媒体から読
出されたプログラムコード自体が前述した実施形態の機
能を実現することになり、そのプログラムコードを記憶
した記憶媒体は本発明を構成することになる。
The present invention can be applied to a system including a plurality of devices (for example, a host computer, an interface device, a reader, a printer, etc.), but can be applied to a single device (for example, a copier, a facsimile). Device). Further, an object of the present invention is to provide a storage medium storing a program code of software for realizing the functions of the above-described embodiments to a system or an apparatus, and a computer (or CPU or MPU) of the system or apparatus to store the storage medium. Needless to say, this can also be achieved by reading and executing the program code stored in the program. In this case, the program code itself read from the storage medium implements the functions of the above-described embodiment, and the storage medium storing the program code constitutes the present invention.

【0039】プログラムコードを供給するための記憶媒
体としては、例えば、フロッピディスク,ハードディス
ク,光ディスク,光磁気ディスク,CD−ROM,CD
−R,磁気テープ,不揮発性のメモリカード,ROMな
どを用いることができる。また、コンピュータが読出し
たプログラムコードを実行することにより、前述した実
施形態の機能が実現されるだけでなく、そのプログラム
コードの指示に基づき、コンピュータ上で稼働している
OS(オペレーティングシステム)などが実際の処理の
一部または全部を行い、その処理によって前述した実施
形態の機能が実現される場合も含まれることは言うまで
もない。
As a storage medium for supplying the program code, for example, a floppy disk, hard disk, optical disk, magneto-optical disk, CD-ROM, CD
-R, a magnetic tape, a nonvolatile memory card, a ROM, or the like can be used. When the computer executes the readout program code, not only the functions of the above-described embodiments are realized, but also an OS (operating system) running on the computer based on the instruction of the program code. It goes without saying that a case where some or all of the actual processing is performed and the functions of the above-described embodiments are realized by the processing is also included.

【0040】さらに、記憶媒体から読出されたプログラ
ムコードが、コンピュータに挿入された機能拡張ボード
やコンピュータに接続された機能拡張ユニットに備わる
メモリに書込まれた後、そのプログラムコードの指示に
基づき、その機能拡張ボードや機能拡張ユニットに備わ
るCPUなどが実際の処理の一部または全部を行い、そ
の処理によって前述した実施形態の機能が実現される場
合も含まれることは言うまでもない。
Further, after the program code read from the storage medium is written into a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, based on the instructions of the program code, It goes without saying that the CPU included in the function expansion board or the function expansion unit performs part or all of the actual processing, and the processing realizes the functions of the above-described embodiments.

【0041】[0041]

【発明の効果】以上説明したように、本発明によれば、
コンテクストの数(参照テーブル数)をあまり増やさず
に、圧縮率を向上させる参照状態(コンテクスト)の生
成を行うコンテクスト生成方法及び画像圧縮方法、画像
処理装置を提供できる。すなわち、注目画素位置の周辺
画素値のデータ列をコンテクスト参照テーブルのアドレ
スとして与えると共に、前記周辺画素より広い範囲の画
素データを演算処理部で処理して、より少ないビット数
に圧縮できる。また、圧縮効率に貢献する意味のあるデ
ータ(平均濃度や対応するディザ閾値等)に変換して、
必要最小限のコンテクストの増加で、注目画素の予測精
度を向上させることができる。更に、優勢シンボルの出
現確率を、各コンテクストで高めて1に近づけさせるこ
とにより、圧縮効率を向上させることが可能になった。
As described above, according to the present invention,
It is possible to provide a context generation method, an image compression method, and an image processing device for generating a reference state (context) for improving a compression ratio without increasing the number of contexts (the number of reference tables) so much. That is, the data string of the peripheral pixel value at the pixel position of interest is given as the address of the context reference table, and the pixel data in a wider range than the peripheral pixels can be processed by the arithmetic processing unit and compressed to a smaller number of bits. Also, it is converted into meaningful data (such as average density and corresponding dither threshold etc.) that contributes to compression efficiency,
By increasing the necessary minimum context, the prediction accuracy of the target pixel can be improved. Furthermore, the compression efficiency can be improved by increasing the appearance probability of the dominant symbol in each context so as to approach one.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本実施の形態の画像符号化部の構成例を示す図
である。
FIG. 1 is a diagram illustrating a configuration example of an image encoding unit according to the present embodiment.

【図2】本実施の形態の処理画素位置の一例を示す図で
ある。
FIG. 2 is a diagram illustrating an example of a processing pixel position according to the present embodiment;

【図3】一般的予測符号化による算術符号化部の概略構
成図である。
FIG. 3 is a schematic configuration diagram of an arithmetic encoding unit using general prediction encoding.

【図4】算術符号器の構成例のブロック図である。FIG. 4 is a block diagram of a configuration example of an arithmetic encoder.

【図5】算術符号化の処理フローの概略を示す図であ
る。
FIG. 5 is a diagram schematically showing a processing flow of arithmetic coding.

【図6】JBEG符号化のアルゴリズムの処理「ENC
ODE」の一般的なフローチャートである。
FIG. 6 is a diagram illustrating processing of an algorithm of JBEG encoding “ENC
9 is a general flowchart of “ODE”.

【図7】JBEGを使用した画像処理装置の一般的構成
を示す図である。
FIG. 7 is a diagram illustrating a general configuration of an image processing apparatus using JBEG.

Claims (21)

【特許請求の範囲】[Claims] 【請求項1】 画像圧縮における算術符号処理の際のコ
ンテクストを決定するアドレスデータのビット配列とし
て、注目画素の周辺画素値のほかに、該周辺画素の画素
値以外の値を演算して、演算結果をコンテクスト決定の
アドレスデータのビット配列に加えることを特徴とする
コンテクスト生成方法。
1. A method for calculating a value other than a pixel value of a peripheral pixel in addition to a peripheral pixel value of a pixel of interest as a bit array of address data for determining a context in arithmetic code processing in image compression. A method for generating a context, comprising adding a result to a bit array of address data for context determination.
【請求項2】 複数の異なる種類の演算が行われ、演算
結果をそれぞれコンテクスト決定のアドレスデータのビ
ット配列に加えることを特徴とする請求項1記載のコン
テクスト生成方法。
2. The context generation method according to claim 1, wherein a plurality of different types of operations are performed, and the operation results are respectively added to a bit array of address data for context determination.
【請求項3】 前記周辺画素の画素値以外の値は、前記
周辺画素以外の周辺画素を含む画素値であることを特徴
とする請求項1または2記載のコンテクスト生成方法。
3. The method according to claim 1, wherein the value other than the pixel value of the peripheral pixel is a pixel value including a peripheral pixel other than the peripheral pixel.
【請求項4】 演算では入力画素の画素値の平均値を求
め、2値または多値出力を演算結果とすることを特徴と
する請求項3記載のコンテクスト生成方法。
4. The context generating method according to claim 3, wherein in the calculation, an average value of the pixel values of the input pixels is obtained, and a binary or multi-value output is used as a calculation result.
【請求項5】 演算結果として、平均濃度、および対応
するディザ閾値により2値化した結果を出力すること請
求項3記載の特徴とするコンテクスト生成方法。
5. The method according to claim 3, wherein a binarized result based on the average density and the corresponding dither threshold is output as the calculation result.
【請求項6】 演算では画像のエッジ部と平坦部を含む
画像の性質ならびに属性情報を2値または多値のデータ
で出力すること特徴とする請求項3記載のコンテクスト
生成方法。
6. The method according to claim 3, wherein in the calculation, the property and attribute information of the image including the edge part and the flat part of the image are output as binary or multi-valued data.
【請求項7】 演算では複数画素のエリアでの平均濃度
の、変化率、大小ならびに正負を演算して出力すること
特徴とする請求項3記載のコンテクスト生成方法。
7. The method according to claim 3, wherein in the calculation, a change rate, a magnitude and a sign of the average density in an area of a plurality of pixels are calculated and output.
【請求項8】 演算では注目画素の座標を入力して、演
算結果としてディザマトリクス上の座標値に変換した
値、または2値化または多値化したデータ、または、デ
ィザマトリクス上の座標値からディザ閾値を求めるテー
ブルを備え、入力に対応するディザ閾値、または前記デ
ィザ閾値を2値化または多値化したデータを出力するこ
とを特徴とする請求項1または2記載のコンテクスト生
成方法。
8. In the calculation, the coordinates of the pixel of interest are input, and as a result of the calculation, values converted into coordinate values on a dither matrix, binary or multi-valued data, or coordinate values on a dither matrix are calculated. 3. The context generating method according to claim 1, further comprising a table for obtaining a dither threshold value, wherein a dither threshold value corresponding to an input or data obtained by binarizing or multi-leveling the dither threshold value is output.
【請求項9】 注目画素の周辺画素値をアドレスデータ
のビット配列としてコンテクストを決定し、該コンテク
ストに基づいて算術符号化を行う画像圧縮方法におい
て、 画像圧縮における算術符号処理の際のコンテクストを決
定するアドレスデータのビット配列として、注目画素の
周辺画素値のほかに、該周辺画素の画素値以外の値を演
算して、演算結果をコンテクスト決定のアドレスデータ
のビット配列に加えることを特徴とする画像圧縮方法。
9. In an image compression method for determining a context by using a peripheral pixel value of a target pixel as a bit array of address data and performing arithmetic coding based on the context, a context for arithmetic code processing in image compression is determined. In addition to the peripheral pixel value of the target pixel, a value other than the pixel value of the peripheral pixel is calculated as the bit array of the address data to be calculated, and the calculation result is added to the bit array of the address data for context determination. Image compression method.
【請求項10】 複数の異なる種類の演算が行われ、演
算結果をそれぞれコンテクスト決定のアドレスデータの
ビット配列に加えることを特徴とする請求項9記載の画
像圧縮方法。
10. The image compression method according to claim 9, wherein a plurality of different types of operations are performed, and the operation results are respectively added to a bit array of address data for context determination.
【請求項11】 注目画素の周辺画素値をアドレスデー
タのビット配列としてコンテクストを決定するコンテク
スト決定手段を有し、該コンテクストに基づいて算術符
号化を行う画像圧縮装置において、 前記コンテクスト決定手段が、画像圧縮における算術符
号処理の際のコンテクストを決定するアドレスデータの
ビット配列として、注目画素の周辺画素値のほかに、該
周辺画素の画素値以外の値を演算して、演算結果をコン
テクスト決定のアドレスデータのビット配列に加える演
算手段を有することを特徴とする画像圧縮装置。
11. An image compression apparatus comprising: context determining means for determining a context by using a peripheral pixel value of a pixel of interest as a bit array of address data, and performing arithmetic coding based on the context; As a bit array of address data that determines the context in arithmetic coding processing in image compression, in addition to the peripheral pixel value of the target pixel, a value other than the pixel value of the peripheral pixel is calculated, and the calculation result is used to determine the context. An image compression apparatus, comprising an arithmetic unit for adding to a bit array of address data.
【請求項12】 複数の演算手段を有して複数の異なる
種類の演算が行われ、演算結果をそれぞれコンテクスト
決定のアドレスデータのビット配列に加えることを特徴
とする請求項11記載の画像圧縮装置。
12. The image compression apparatus according to claim 11, wherein a plurality of different types of calculations are performed by a plurality of calculation means, and the calculation results are respectively added to a bit array of address data for context determination. .
【請求項13】 前記周辺画素の画素値以外の値は、前
記周辺画素以外の周辺画素を含む画素値であることを特
徴とする請求項11または12記載の画像圧縮装置。
13. The image compression apparatus according to claim 11, wherein the value other than the pixel value of the peripheral pixel is a pixel value including a peripheral pixel other than the peripheral pixel.
【請求項14】 前記演算手段は、入力画素の画素値の
平均値を求め、2値または多値出力を演算結果とするこ
とを特徴とする請求項13記載の画像圧縮装置。
14. The image compression apparatus according to claim 13, wherein said calculation means obtains an average value of pixel values of the input pixels and outputs a binary or multi-value output as a calculation result.
【請求項15】 前記演算手段は、演算結果として、平
均濃度、および対応するディザ閾値により2値化した結
果を出力すること請求項13記載の特徴とする画像圧縮
装置。
15. The image compression apparatus according to claim 13, wherein said calculation means outputs, as a calculation result, a result binarized by an average density and a corresponding dither threshold.
【請求項16】 前記演算手段は、画像のエッジ部と平
坦部を含む画像の性質ならびに属性情報を2値または多
値のデータで出力すること特徴とする請求項13記載の
画像圧縮装置。
16. The image compression apparatus according to claim 13, wherein said calculating means outputs the property and attribute information of the image including the edge portion and the flat portion of the image as binary or multi-valued data.
【請求項17】 前記演算手段は、複数画素のエリアで
の平均濃度の、変化率、大小ならびに正負を演算して出
力すること特徴とする請求項13記載の画像圧縮装置。
17. The image compression apparatus according to claim 13, wherein said calculation means calculates and outputs a change rate, a magnitude, and a sign of an average density in an area of a plurality of pixels.
【請求項18】 前記演算手段は、注目画素の座標を入
力して、演算結果としてディザマトリクス上の座標値に
変換した値、または2値化または多値化多値化したデー
タ、または、ディザマトリクス上の座標値からディザ閾
値を求めるテーブルを備え、入力に対応するディザ閾
値、または前記ディザ閾値を2値化または多値化したデ
ータを出力することを特徴とする請求項11または12
記載の画像圧縮装置。
18. The arithmetic means inputs the coordinates of a pixel of interest and converts the value into a coordinate value on a dither matrix as a calculation result, or binarized or multi-valued multi-valued data, or dithered data. 13. The apparatus according to claim 11, further comprising a table for obtaining a dither threshold from coordinate values on a matrix, and outputting a dither threshold corresponding to an input, or data obtained by binarizing or multi-leveling the dither threshold.
An image compression apparatus according to claim 1.
【請求項19】 注目画素の周辺画素値をアドレスデー
タのビット配列としてコンテクストを決定し、該コンテ
クストに基づいて算術符号化を行う画像圧縮部を有する
画像処理装置において、 前記画像圧縮部でコンテクストを決定する場合に、画像
圧縮における算術符号処理の際のコンテクストを決定す
るアドレスデータのビット配列として、注目画素の周辺
画素値のほかに、該周辺画素の画素値以外の値を演算し
て、演算結果をコンテクスト決定のアドレスデータのビ
ット配列に加えることを特徴とする画像処理装置。
19. An image processing apparatus comprising: an image compression unit that determines a context using a peripheral pixel value of a target pixel as a bit array of address data and performs arithmetic coding based on the context. When determining, in addition to the peripheral pixel value of the pixel of interest, a value other than the pixel value of the peripheral pixel is calculated as a bit array of address data that determines the context at the time of arithmetic code processing in image compression. An image processing apparatus wherein a result is added to a bit array of address data for context determination.
【請求項20】 複数の異なる種類の演算が行われ、演
算結果をそれぞれコンテクスト決定のアドレスデータの
ビット配列に加えることを特徴とする請求項19記載の
画像処理装置。
20. The image processing apparatus according to claim 19, wherein a plurality of different types of operations are performed, and the operation results are respectively added to a bit array of address data for context determination.
【請求項21】 画像処理装置において画像を算術符号
化により圧縮するプログラムをコンピュータ読出し可能
に記憶する記憶媒体であって、 前記プログラムが、少なくとも、画像圧縮における算術
符号処理の際のコンテクストを決定するアドレスデータ
のビット配列として、注目画素の周辺画素値のほかに、
該周辺画素の画素値以外の値を演算して、演算結果をコ
ンテクスト決定のアドレスデータのビット配列に加える
手順を含むことを特徴とする記憶媒体。
21. A storage medium for storing a computer-readable program for compressing an image by arithmetic coding in an image processing apparatus, wherein the program determines at least a context in arithmetic code processing in image compression. As a bit array of the address data, in addition to the peripheral pixel value of the target pixel,
A storage medium including a step of calculating a value other than a pixel value of the peripheral pixel and adding a calculation result to a bit array of address data for context determination.
JP2125198A 1998-02-02 1998-02-02 Context generation method at image compression, image compression method, and image processor Withdrawn JPH11220728A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2125198A JPH11220728A (en) 1998-02-02 1998-02-02 Context generation method at image compression, image compression method, and image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2125198A JPH11220728A (en) 1998-02-02 1998-02-02 Context generation method at image compression, image compression method, and image processor

Publications (1)

Publication Number Publication Date
JPH11220728A true JPH11220728A (en) 1999-08-10

Family

ID=12049865

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2125198A Withdrawn JPH11220728A (en) 1998-02-02 1998-02-02 Context generation method at image compression, image compression method, and image processor

Country Status (1)

Country Link
JP (1) JPH11220728A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003003745A1 (en) * 2001-06-29 2003-01-09 Ntt Docomo, Inc. Image encoder, image decoder, image encoding method, and image decoding method
JP2013016954A (en) * 2011-07-01 2013-01-24 Nec Engineering Ltd Arithmetic encoding method and arithmetic encoder

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003003745A1 (en) * 2001-06-29 2003-01-09 Ntt Docomo, Inc. Image encoder, image decoder, image encoding method, and image decoding method
CN1305311C (en) * 2001-06-29 2007-03-14 株式会社Ntt都科摩 Image encoder, image decoder, image encoding method, and image decoding method
US7292731B2 (en) 2001-06-29 2007-11-06 Ntt Docomo, Inc. Image encoder, image decoder, image encoding method, and image decoding method
JP2013016954A (en) * 2011-07-01 2013-01-24 Nec Engineering Ltd Arithmetic encoding method and arithmetic encoder

Similar Documents

Publication Publication Date Title
JP4698739B2 (en) Image compression for computer graphics
TWI388218B (en) Image encoding method and decoding method, programs therefor, and storage media for storing the programs
US7667711B2 (en) Image processing system, a method thereof, and a recording medium thereof
JPH0258814B2 (en)
EP1309200A3 (en) Image coding and decoding using mapping coefficients corresponding to class information of pixel blocks
US20050244067A1 (en) Palettized image compression
JPS62261230A (en) Method of compressing multiplexed level signal
US11431999B2 (en) Method and apparatus for embedding key information in an image
KR101244688B1 (en) Encoding and decoding method for enhancing depth resolution of image and print system using the same
JP3457269B2 (en) Arithmetic encoding / decoding method and arithmetic encoding / decoding device
US6167160A (en) Encoding and decoding methods and devices, and image processing apparatus using the same
CN108668169B (en) Image information processing method and device, and storage medium
CN108668170B (en) Image information processing method and device, and storage medium
JPH11220728A (en) Context generation method at image compression, image compression method, and image processor
JP3787389B2 (en) Image processing apparatus and method, and storage medium storing the method
JP4743884B2 (en) Image coding apparatus and control method thereof
JP2891818B2 (en) Encoding device
US8165412B2 (en) Method for decoding binary image at high speed
JP3943634B2 (en) Information processing apparatus and method
JP2598410B2 (en) Encoding device
JP2952007B2 (en) Image coding device
JP4743883B2 (en) Image coding apparatus and control method thereof
JPH11205155A (en) Encoding and decoding method, device therefor and image processor to which the method is applied
JP3673630B2 (en) Encoding method
JPH11177828A (en) Image processing method and device therefor

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20050405