JPH09200541A - Coder, decoder, coding method, decoding method and image processor - Google Patents

Coder, decoder, coding method, decoding method and image processor

Info

Publication number
JPH09200541A
JPH09200541A JP8006748A JP674896A JPH09200541A JP H09200541 A JPH09200541 A JP H09200541A JP 8006748 A JP8006748 A JP 8006748A JP 674896 A JP674896 A JP 674896A JP H09200541 A JPH09200541 A JP H09200541A
Authority
JP
Japan
Prior art keywords
pixel
pixels
value
prediction
encoding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP8006748A
Other languages
Japanese (ja)
Other versions
JP3367314B2 (en
Inventor
Noriaki Tsuchiya
徳明 土屋
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP00674896A priority Critical patent/JP3367314B2/en
Publication of JPH09200541A publication Critical patent/JPH09200541A/en
Application granted granted Critical
Publication of JP3367314B2 publication Critical patent/JP3367314B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To improve the coding efficiency by dividing an image into blocks consisting of M-row×N-column (1<=M, 2<=N) pixels and applying pixel rearrangement to shift picture pixels with a prescribed value in each block toward one side so as to improve a prediction hit rate. SOLUTION: Multi-value image data 1 are converted into binary error spread data 3 by an error spread section 2. A pixel rearrangement section 4 applies block processing to the error spread data 3 in the unit of M-row×N-column (1<=M, 2<=N) matrices and 1, 0 are rearranged. In the rearrangement processing, 1s or 0s are packed to the left in the unit matrix in the unit of L(1<=L) rows. For example, in the case of L=1, 1, 0 are packed to the left alternately in the unit of one row. The rearranged data 5 subjected to rearrangement processing are prediction-coded by a prediction coder 6 and converted into coding data 7.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、画像データ、特
に、ランダムディザ画像データに適した符号化装置、復
号装置、符号化方法、復号方法、および、画像処理装置
に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a coding device, a decoding device, a coding method, a decoding method, and an image processing device suitable for image data, particularly random dither image data.

【0002】[0002]

【従来の技術】画像の符号化技術の1つに、注目画素レ
ベルを周辺の画素レベルから予測し、予測誤差データを
符号化する予測符号化技術が知られている。この技術に
おいて、符号化効率を上げるためには、予測的中率を向
上させることが必要がある。
2. Description of the Related Art As one of image coding techniques, there is known a predictive coding technique for predicting a target pixel level from peripheral pixel levels and coding prediction error data. In this technique, it is necessary to improve the predictive predictive value in order to increase the coding efficiency.

【0003】特開平5−316370号公報や特公昭6
3−9426号公報に記載された符号化技術では、複数
の予測器の中から的中率の高い予測器を適応的に切り替
え、最終的に1つの予測器を選択し、現画像の値の予測
に使用して予測誤差データを生成している。
JP-A-5-316370 and JP-B-6
In the encoding technique described in Japanese Patent Laid-Open No. 3-9426, a predictor having a high hit rate is adaptively switched from among a plurality of predictors, and finally one predictor is selected to determine the value of the value of the current image. Used for prediction to generate prediction error data.

【0004】また、特公平6−95645号公報に記載
された符号化方法および復号化方法では、周辺の複数の
画素の値をアドレスとして、テーブルルックアップ方式
で出力される予測値を用いて予測誤差データを生成して
いるが、予測画素の位置を全て固定とはせず、1画素の
み、位置を可変にできるようにし、予測的中率によっ
て、予測位置を変更させるようにしている。
Further, in the encoding method and the decoding method described in Japanese Patent Publication No. 6-95645, prediction is performed by using the predicted values output by the table lookup method with the values of a plurality of peripheral pixels as addresses. Although the error data is generated, the positions of the predicted pixels are not all fixed, but the positions of only one pixel can be made variable, and the predicted position is changed according to the predictive hit ratio.

【0005】このように、従来の技術においては、予測
器を予測結果に基づいて適応的に切り替えて予測効率を
向上させている。
As described above, in the conventional technique, the predictor is adaptively switched based on the prediction result to improve the prediction efficiency.

【0006】しかしながら、誤差拡散画像に代表される
ランダムディザ画像に予測符号化技術を適用した場合
は、「0」,「1」の発生に周期性や規則性がないた
め、必然的に予測効率が劣化し、予測誤差データが圧縮
効率が向上できるデータとならないことが多い。
However, when the predictive coding technique is applied to the random dither image represented by the error diffusion image, the occurrence of "0" and "1" has no periodicity or regularity, and therefore the prediction efficiency is inevitable. In many cases, the prediction error data does not become data that can improve the compression efficiency.

【0007】このようなランダムディザ画像の予測的中
率を上げるため、特開平4−11460号公報に記載さ
れた画像データ圧縮装置においては、注目画素の周辺画
素の濃度を計算し、この周辺画素を含むさらに大きな範
囲の濃度と比較して、画像濃度が近似するよう予測値を
決定している。
In order to increase the predictive predictive value of such a random dither image, in the image data compression apparatus described in Japanese Patent Laid-Open No. 4-1160460, the density of the peripheral pixel of the pixel of interest is calculated and the peripheral pixel is calculated. The predicted value is determined so that the image densities are closer to each other compared with the densities in a larger range including.

【0008】しかしながら、特開平4−11460号の
予測値決定方式では、濃度変化がある場合等に対応でき
ず、また定量的な判断により予測値を決定するため、予
測が当たらないケースが多い。
However, the predictive value determination method disclosed in Japanese Patent Laid-Open No. 4-11460 cannot cope with the case where there is a change in density, etc., and the predictive value is determined by a quantitative judgment, so that the predictive value cannot be obtained in many cases.

【0009】[0009]

【発明が解決しようとする課題】本発明は、上述した事
情に鑑みてなされたもので、誤差拡散画像に代表される
ランダムディザ画像を符号化、圧縮する装置において、
予測符号化方式を用いるとともに、予測的中率を向上で
きる符号化装置、復号装置、符号化方法、復号方法、お
よび、画像処理装置を提供して、符号化効率を向上さ
せ、また、中間調画像の再現性がよい復号を行なうこと
を目的とするものである。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-mentioned circumstances, and in an apparatus for encoding and compressing a random dither image represented by an error diffusion image,
An encoding device, a decoding device, an encoding method, a decoding method, and an image processing device, which can use a predictive encoding method and improve the predictive predictive value, are provided to improve encoding efficiency and provide halftone. The purpose is to perform decoding with good image reproducibility.

【0010】[0010]

【課題を解決するための手段】請求項1に記載の発明
は、符号化装置において、画像をM行×N列(1≦M,
2≦N)画素のブロックに分割し、各ブロック内の所定
値の画素を該ブロックの一方に寄せる画素並び替え手段
と、少なくとも注目画素に対してN画素前の画素信号を
用いて注目画素の値を予測し該予測結果に基づいて符号
化する予測符号化手段を有することを特徴とするもので
ある。
According to a first aspect of the present invention, in an encoding apparatus, an image has M rows × N columns (1 ≦ M,
2 ≦ N) pixels are divided into blocks, and a pixel rearranging unit that moves pixels of a predetermined value in each block to one of the blocks, and a pixel signal of N pixels before at least the pixel of interest It is characterized by having a predictive coding means for predicting a value and coding based on the prediction result.

【0011】請求項2に記載の発明は、符号化装置にお
いて、画像をM行×N列(2≦M,2≦N)画素のブロ
ックに分割し、各ブロック内の所定値の画素をL(1≦
L)行単位ごとに該ブロックの一方および他方に交互に
寄せる画素並び替え手段と、注目画素に対して2L行前
の画素信号と注目画素に対してN画素前の画素信号を用
いて注目画素の値を予測し該予測結果に基づいて符号化
する予測符号化手段を有することを特徴とするものであ
る。
According to a second aspect of the present invention, in the encoding device, an image is divided into blocks of M rows × N columns (2 ≦ M, 2 ≦ N) pixels, and pixels having a predetermined value in each block are L pixels. (1 ≦
L) Pixel rearranging means for alternately arranging each of the blocks on one side and the other of the block, and a pixel signal of 2L rows before the target pixel and a pixel signal of N pixels before the target pixel It is characterized by having a predictive coding means for predicting the value of and predicting the value based on the prediction result.

【0012】請求項3に記載の発明は、復号装置におい
て、請求項1または2に記載の符号化装置で符号化され
た符号を復号する復号手段と、該復号手段によって復号
された予測誤差信号に基づき逆予測処理を行なう逆予測
手段と、該逆予測手段から出力される画像に対し補正処
理を行なう補正手段を有することを特徴とするものであ
る。
According to a third aspect of the present invention, in a decoding device, a decoding means for decoding the code encoded by the encoding device according to the first or second aspect, and a prediction error signal decoded by the decoding means. It is characterized by having an inverse prediction means for performing an inverse prediction process based on the above, and a correction means for performing a correction process on an image output from the inverse prediction means.

【0013】請求項4に記載の発明は、請求項3に記載
の復号装置において、前記補正手段は、画素値の変化点
を検出して該変化点を含む領域の画素値を適宜変更する
ことを特徴とするものである。
According to a fourth aspect of the present invention, in the decoding device according to the third aspect, the correction means detects a change point of the pixel value and appropriately changes the pixel value of an area including the change point. It is characterized by.

【0014】請求項5に記載の発明は、請求項3に記載
の復号装置において、前記補正手段は、画素値が前記所
定値から他の値に変化する変化点を検出し、この変化点
を挟む画素の値を入れ替えることを特徴とするものであ
る。なお、変化点を挟む画素とは、変化点の両側に隣接
して変化点を挟む画素に限らず、変化点から離れた位置
で変化点を挟む画素も含むものである。
According to a fifth aspect of the present invention, in the decoding apparatus according to the third aspect, the correction means detects a change point at which the pixel value changes from the predetermined value to another value, and the change point is detected. The feature is that the values of the sandwiched pixels are exchanged. Pixels that sandwich the change point are not limited to pixels that sandwich the change point adjacent to both sides of the change point, but also include pixels that sandwich the change point at a position distant from the change point.

【0015】請求項6に記載の発明は、符号化方法にお
いて、画像をM行×N列(1≦M,2≦N)画素のブロ
ックに分割し、各ブロック内の所定値の画素を該ブロッ
クの一方に寄るように画素を並び替え、少なくとも注目
画素に対してN画素前の画素信号を用いて注目画素の値
を予測し、該予測結果に基づいて符号化することを特徴
とするものである。
According to a sixth aspect of the present invention, in the encoding method, the image is divided into blocks of M rows × N columns (1 ≦ M, 2 ≦ N) pixels, and pixels having a predetermined value in each block are divided into blocks. Pixels are rearranged so as to be closer to one of the blocks, the value of the pixel of interest is predicted using a pixel signal of N pixels before the pixel of interest, and encoding is performed based on the prediction result. Is.

【0016】請求項7に記載の発明は、符号化方法にお
いて、画像をM行×N列(2≦M,2≦N)画素のブロ
ックに分割し、各ブロック内の所定値の画素をL(1≦
L)行単位ごとに該ブロックの一方および他方に交互に
寄るように画素を並び替え、注目画素に対して2L行前
の画素信号と注目画素に対してN画素前の画素信号を用
いて注目画素の値を予測し、該予測結果に基づいて符号
化することを特徴とするものである。
According to a seventh aspect of the present invention, in the encoding method, the image is divided into blocks of M rows × N columns (2 ≦ M, 2 ≦ N) pixels, and pixels having a predetermined value in each block are L. (1 ≦
L) The pixels are rearranged so as to alternately approach one side and the other side of the block for each row unit, and the pixel signal of 2L rows before the target pixel and the pixel signal of N pixels before the target pixel are used for attention. It is characterized in that the value of a pixel is predicted and encoded based on the prediction result.

【0017】請求項8に記載の発明は、復号方法におい
て、請求項6または7に記載の符号化方法で符号化され
た符号を復号し、復号された予測誤差信号に基づき逆予
測処理を行ない、該逆予測処理後の画像に対して補正処
理を行なうことを特徴とするものである。
According to an eighth aspect of the invention, in the decoding method, the code encoded by the encoding method according to the sixth or seventh aspect is decoded, and inverse prediction processing is performed based on the decoded prediction error signal. The correction processing is performed on the image after the inverse prediction processing.

【0018】請求項9に記載の発明は、請求項8に記載
の復号方法において、前記補正処理は、画素値の変化点
を検出して該変化点を含む領域の画素値を適宜変更する
ことを特徴とするものである。
According to a ninth aspect of the present invention, in the decoding method according to the eighth aspect, the correction processing detects a pixel value change point and appropriately changes a pixel value of an area including the change point. It is characterized by.

【0019】請求項10に記載の発明は、請求項8に記
載の復号方法において、前記補正処理は、画素値が前記
所定値から他の値に変化する変化点を検出し、この変化
点を挟む画素の値を入れ替えることを特徴とするもので
ある。なお、変化点を挟む画素とは、変化点の両側に隣
接して変化点を挟む画素に限らず、変化点から離れた位
置で変化点を挟む画素も含むものである。
According to a tenth aspect of the present invention, in the decoding method according to the eighth aspect, the correction processing detects a change point at which the pixel value changes from the predetermined value to another value, and detects this change point. The feature is that the values of the sandwiched pixels are exchanged. Pixels that sandwich the change point are not limited to pixels that sandwich the change point adjacent to both sides of the change point, but also include pixels that sandwich the change point at a position distant from the change point.

【0020】請求項11に記載の発明は、画像処理装置
において、請求項1または2に記載の符号化装置と、請
求項3ないし5のいずれか1項に記載の復号装置を有す
ることを特徴とするものである。
An eleventh aspect of the present invention is an image processing device, comprising the encoding device according to the first or second aspect and the decoding device according to any one of the third to fifth aspects. It is what

【0021】[0021]

【発明の実施の形態】図1は、本発明の符号化装置の実
施の一形態を示すブロック図である。図中、1は画像デ
ータ、2は誤差拡散部、3は誤差拡散データ、4は画素
並び替え部、5は並び替えデータ、6は予測符号化部、
7は符号データである。
FIG. 1 is a block diagram showing an embodiment of an encoding apparatus according to the present invention. In the figure, 1 is image data, 2 is error diffusion unit, 3 is error diffusion data, 4 is pixel rearrangement unit, 5 is rearrangement data, 6 is predictive coding unit,
Reference numeral 7 is code data.

【0022】多値の画像データ1は、誤差拡散部2にお
いて、2値の誤差拡散データ3に変換される。画素並び
替え部4においては、誤差拡散データ3を、M行×N列
(2≦M,2≦N)のマトリックス単位に画素をブロッ
ク化した後、「1」,「0」の並び替え処理を行なう。
並び替え処理は、L(1≦L)行単位ごとに、マトリッ
クス単位内で「1」または「0」を左に詰める。
The multivalued image data 1 is converted into binary error diffusion data 3 in the error diffusion unit 2. In the pixel rearrangement unit 4, after the error diffusion data 3 is divided into pixels by a matrix unit of M rows × N columns (2 ≦ M, 2 ≦ N), rearrangement processing of “1” and “0” is performed. Do.
In the rearrangement process, “1” or “0” is packed to the left within the matrix unit for each L (1 ≦ L) row unit.

【0023】図2は、本発明の符号化装置の実施の一形
態における並び替え処理の具体例の説明図である。この
具体例では、M,N=4,L=1とした。図2(A)
は、誤差拡散データの中の1つのマトリックス単位を示
しており、図2(B)は、並び替え処理をした並び替え
画像データを示している。
FIG. 2 is an explanatory diagram of a specific example of the rearrangement process in the embodiment of the encoding apparatus of the present invention. In this specific example, M, N = 4, and L = 1. FIG. 2 (A)
Shows one matrix unit in the error diffusion data, and FIG. 2B shows the rearranged image data after the rearrangement processing.

【0024】この並び替え処理の実施例では、L=1で
あるから、1行単位ごとに交互に「1」,「0」を左に
詰めた。まず、最初の行は、「1」を左に詰めたため、
「1101」のデータが「1110」に並び替えされて
いる。2行目は、今度は0を左詰めし、「1010」の
入力が「0011」に並び替えされている。以下、3行
目は「1」を左詰めし、4行目は「0」を左詰めして、
「1100」,「0111」の並び替え処理が行なわれ
る。
In this embodiment of the rearrangement process, since L = 1, "1" and "0" are alternately packed to the left for each row unit. First, in the first line, "1" is packed to the left,
The data of “1101” is rearranged into “1110”. In the second line, 0s are left-aligned this time, and the input of "1010" is rearranged to "0011". Below, "1" is left-justified on the 3rd line, and "0" is left-justified on the 4th line.
The rearrangement process of "1100" and "0111" is performed.

【0025】図1に戻って説明する。上述したように画
素並び替え部4で並び替え処理された並び替えデータ5
は、予測符号化部6で予測符号化され、符号データ7に
変換される。
Returning to FIG. 1, description will be made. The rearrangement data 5 rearranged by the pixel rearrangement unit 4 as described above.
Is predictively coded by the predictive coding unit 6 and converted into coded data 7.

【0026】図3は、本発明の符号化装置の実施の一形
態における予測処理の一例の説明図である。この実施例
では、図2で説明したM,N=4,L=1のマトリック
スで並び替え処理された並び替えデータ5に対応した予
測器の構成例である。
FIG. 3 is an explanatory diagram showing an example of prediction processing in the embodiment of the encoding apparatus of the present invention. This embodiment is a configuration example of the predictor corresponding to the rearrangement data 5 rearranged by the matrix of M, N = 4, L = 1 described in FIG.

【0027】まず水平方向に関して、注目画素Pに対し
て4画素前のX3 の位置の画素データが、第1の参照画
素データとなる。4画素前とした理由は、M=4である
から、注目画素PとX3 の位置の画素データとは、それ
ぞれ別のマトリックス単位内の同じ位置となり、相関が
強いと考えられることによる。
First, in the horizontal direction, the pixel data at the position X 3 four pixels before the pixel of interest P becomes the first reference pixel data. The reason why it is set to 4 pixels before is that M = 4, so that the pixel data at the positions of the target pixel P and X 3 are at the same position in different matrix units, and it is considered that the correlation is strong.

【0028】垂直方向については、注目画素Pに対して
2行上のY1 の位置の画素データが、第2の参照画素デ
ータとなる。これはL=1であぬから、2×Lである2
行上のY1 の位置の画素データと注目画素Pとは、それ
ぞれ別のマトリックス単位内で同一方向に「1」または
「0」が詰められていることにより、相関が強いと考え
られることによる。
In the vertical direction, the pixel data at the position Y 1 on the second row with respect to the target pixel P becomes the second reference pixel data. Since this is not L = 1, it is 2 × L 2
It is considered that the pixel data at the position of Y 1 on the row and the pixel of interest P are filled with “1” or “0” in the same direction in different matrix units, respectively, so that the correlation is considered to be strong. .

【0029】予測値の最終決定は、上記第1の参照画素
と第2の参照画素の中から、的中率の高い方を選択す
る。
For the final determination of the predicted value, the one having the higher hit ratio is selected from the first reference pixel and the second reference pixel.

【0030】図4は、本発明の符号化装置の実施の一形
態における予測値選択処理の一例を示す構成図である。
図中、5は並び替えデータ、8,9は一致数カウント
部、10,11はカウント値、12は比較器、13は比
較結果信号、14は選択部、15は予測値である。並び
替えデータ5は、一致数カウント部8,9に入力され
る。一致数カウント部8は、現在までの注目画素PとX
3 の位置の画素データとが一致している数を順次カウ
ントし、一致数カウント部9は、同様に現在までの注目
画素PとY1 の位置の画素データとが一致している数を
カウントする。一致数カウント部8,9のそれぞれのカ
ウント値10,11は、比較器12に送られる。比較器
12の比較結果信号13により、選択部14において、
現在入力されているX3 の位置の画素データとY1 の位
置の画素データの中から、より一致数の多かった位置の
値が予測値15として出力され、現注目画素の予測に使
用される。
FIG. 4 is a block diagram showing an example of prediction value selection processing in the embodiment of the encoding apparatus of the present invention.
In the figure, 5 is rearrangement data, 8 and 9 are coincidence number counting units, 10 and 11 are count values, 12 is a comparator, 13 is a comparison result signal, 14 is a selecting unit, and 15 is a predicted value. The rearrangement data 5 is input to the matching number counting units 8 and 9. The coincidence number counting unit 8 determines the target pixels P and X until now.
The number of coincidences with the pixel data at the position 3 is sequentially counted, and the coincidence count unit 9 similarly counts the number of coincidences between the pixel data of the target pixel P and the pixel data at the position Y 1 up to the present. To do. The count values 10 and 11 of the coincidence number counting units 8 and 9 are sent to the comparator 12. By the comparison result signal 13 of the comparator 12, in the selection unit 14,
From the pixel data at the position of X 3 and the pixel data at the position of Y 1 that are currently input, the value of the position with the greater number of matches is output as the prediction value 15 and is used for prediction of the current pixel of interest. .

【0031】この構成以外でも、図5に示すように、行
方向の参照画素X3 と列方向の参照画素Y1 を中心とし
た、予測メモリを用いた予測処理方式で予測値を決定し
てもよい。図5(A)において、5は並び替えデータ、
15は予測値、16は予測メモリである。
In addition to this configuration, as shown in FIG. 5, a prediction value is determined by a prediction processing method using a prediction memory centered on the reference pixel X 3 in the row direction and the reference pixel Y 1 in the column direction. Good. In FIG. 5A, 5 is rearrangement data,
Reference numeral 15 is a prediction value, and 16 is a prediction memory.

【0032】図5の予測メモリを用いた予測処理におい
ては、まず、並び替えデータ5の中から、図3中の
3 ,Y1 ,X0 ,Y0 の位置の画素データが16の予
測メモリに入力される。予測メモリ16には、あらかじ
めX3 ,Y1 ,XU ,Y0 の位置の値に対応した図5に
示した予曹値が書き込まれている。
In the prediction process using the prediction memory of FIG. 5, first, from the rearranged data 5, the pixel data at the positions of X 3 , Y 1 , X 0 and Y 0 in FIG. Input to memory. In the prediction memory 16, the threshold values shown in FIG. 5 corresponding to the values at the positions of X 3 , Y 1 , X U , and Y 0 are written in advance.

【0033】この例では予測メモリに書き込まれた予測
値は、下記〜のルールで決定する。 X3 ,Y1 が、両方とも「0」もしくは「1」であ
るときには、X0 ,Y0に関係なく、予測値はX3 ,Y
1 の値となる。 X3 ,Y1 が異なる場合は、X0 ,Y0 が参照さ
れる。この場合、X3 =0,Y1 =1である場合は、X
0 U「0」であれば、上述したマトリックス内の並び替
え方法のルールから、X3 とX0 が同じであるとき
には、X3 〜X0 の値は全て「0」であり、水平方向に
「0」が並ぶ可能性が高く、Pが「0」である可能性が
高いことから、予測値を「0」とする。同様に、X3
1,Y1 =0で、X0 =1であれば予測値を1とする。
また、X3 =0,Y1 =1である場合は、Y0 =1であ
れば、上述したマトリックス内の並び替え方法のルール
から、垂直方向に「1」が並んでいる可能性が高いこと
から、予測値を「1」とする。同様に、X3 =1,Y1
=0で、Y0 =0であれば予測値を「0」とする。 X3 ,Y1 ,X0 ,Y0 が「1001」または「0
110」のときは、予測値は任意に決めてもよいし、さ
らに他の画素を参照した値、例えば、1つ前の予測値と
同じとしてもよい。
In this example, the prediction value written in the prediction memory is determined by the following rules. When both X 3 and Y 1 are “0” or “1”, the predicted value is X 3 and Y regardless of X 0 and Y 0.
It has a value of 1 . When X 3 and Y 1 are different, X 0 and Y 0 Is referred to. In this case, if X 3 = 0 and Y 1 = 1 then X
If 0 U is “0”, according to the rule of the rearrangement method in the matrix described above, when X 3 and X 0 are the same, all the values of X 3 to X 0 are “0”, and the values in the horizontal direction are Since there is a high possibility that “0” s will be arranged and P will be “0”, the predicted value is set to “0”. Similarly, X 3 =
If 1, Y 1 = 0 and X 0 = 1 then the predicted value is 1.
Further, when X 3 = 0 and Y 1 = 1 and Y 0 = 1 there is a high possibility that “1” s are arranged in the vertical direction according to the rule of the sorting method in the matrix described above. Therefore, the predicted value is set to "1". Similarly, X 3 = 1 and Y 1
= 0 and Y 0 = 0, the predicted value is set to “0”. X 3 , Y 1 , X 0 , and Y 0 are “1001” or “0
In the case of “110”, the prediction value may be arbitrarily determined, or may be a value referring to another pixel, for example, the same as the previous prediction value.

【0034】上述したルールを表にしたものが図5
(B)である。このようにして、X3 ,Y1 ,X0 ,Y
0 の値を参照して、予測メモリ16にあらかじめ書き込
まれた予測値が読み出されて、予測値15が決定され
る。
FIG. 5 is a table showing the above-mentioned rules.
(B). In this way, X 3 , Y 1 , X 0 , Y
The predicted value written in advance in the prediction memory 16 is read with reference to the value of 0 , and the predicted value 15 is determined.

【0035】さらに、予測値の決定は、特開平5−31
6370号公報に記載された方式を用いて、1行中の予
測的中回数により適応的に選択してもよいし、図5の予
測メモリ16を的中率により書き換えていく学習型とし
て構成してもよい。
Furthermore, the determination of the predicted value is performed by the method disclosed in Japanese Patent Laid-Open No. 31
The method described in Japanese Patent No. 6370 may be used to adaptively select the predictive hit count in one line, or the predictive memory 16 in FIG. May be.

【0036】また、図2〜図5の具体例は、M,N=
4,L=1の場合の一例であるが、本発明はこれに限ら
ず、画質、圧縮率に合わせてマトリックスサイズを変更
してもよいことはもちろんである。例えば、L=2とす
れば、最初の2行が「1」(または「0」)を左に詰
め、次の2行は「0」(または「1」)を左に詰める、
というように、2行単位ごとに交互に「1」または
「0」を左に詰めるようにする。この例の場合では、図
3で説明した垂直方向の参照画素については、注目画素
Pに対して4行上の位置の画素データが、第2の参照画
素データとなる。これはL=2であるから、2×Lであ
る4行上の位置の画素データと注目画素Pとは、それぞ
れ別のマトリックス単位内で同一方向に「1」または
「0」が詰められていることにより、相関が強いと考え
られることによる。
Further, in the concrete example of FIGS. 2 to 5, M, N =
However, the present invention is not limited to this, and the matrix size may be changed according to the image quality and the compression rate. For example, if L = 2, the first two lines are left-aligned with "1" (or "0"), and the second two lines are left-aligned with "0" (or "1").
In this way, "1" or "0" is alternately packed to the left every two lines. In the case of this example, for the reference pixel in the vertical direction described with reference to FIG. 3, the pixel data at a position four rows above the pixel of interest P becomes the second reference pixel data. Since L = 2, the pixel data at the position on the 4th row which is 2 × L and the target pixel P are filled with “1” or “0” in the same direction in different matrix units. It is considered that the correlation is strong due to the existence of

【0037】また、「1」,「0」を交互に左に詰める
ようにすることなく、全ての行について「1」または
「0」を左に詰めるようにしてもよい。
Further, it is also possible to pack "1" or "0" to the left for all the rows without alternately packing "1" and "0" to the left.

【0038】次に、本発明により、符号化された符号デ
ータの復号について説明する。図6は、本発明の復号装
置の実施の一形態を示すブロック図である。図中、3は
誤差拡散データ、4は画素並び替え部、5は並び替えデ
ータ、7は符号データ、17は復号部、18は予測誤差
データ、19は逆予測部である。
Next, the decoding of encoded coded data according to the present invention will be described. FIG. 6 is a block diagram showing an embodiment of the decoding device of the present invention. In the figure, 3 is error diffusion data, 4 is a pixel rearrangement unit, 5 is rearrangement data, 7 is code data, 17 is a decoding unit, 18 is prediction error data, and 19 is an inverse prediction unit.

【0039】符号データ7は、復号部17で予測誤差デ
ータ18に復号された後、逆予測部19で、符号化時に
用いられた予測方式の逆の処理を行ない、並び替えデー
タ5に変換される。復号に当たっては、予測方法に関し
ての必要な情報が与えられて、逆予測部での処理が行な
われる。得られた並び替えデータ5を画像データ3とし
て出力してもよいが、符号化時の並び替え処理により、
「1」,「0」の並びが、ある程度偏っているため、補
正処理を施すのがよい。
The coded data 7 is decoded into the prediction error data 18 by the decoding unit 17, and then the inverse prediction unit 19 performs the reverse processing of the prediction method used at the time of coding to be converted into the rearranged data 5. It At the time of decoding, necessary information about the prediction method is given and the process in the inverse prediction unit is performed. The obtained rearrangement data 5 may be output as the image data 3, but by the rearrangement processing at the time of encoding,
Since the arrangement of "1" and "0" is biased to some extent, it is preferable to perform correction processing.

【0040】図7は、本発明の復号装置の実施の一形態
における並び替え処理の具体例の説明図である。マトリ
ックス内にて、同一行上に「1」,「0」が両方存在す
る場合、「1」と「0」を入れ替える処理をする。例え
ば、図7(A)中の1行目は「1110」の並びである
ので、3画素目の「1」と4画素目の「0」を入れ替え
て、図7(B)の1行目の「1101」とする。2行目
についても、「0011」の並びの、2画素目の「0」
と3画素目の「1」を入れ替えて、「0101」とす
る。この並び替えによる補正処理では、画素値が「1」
から「0」、または、「0」から「1」に変化する変化
点を検出し、この変化点に隣接する両側の画素を入れ替
えるようにした。
FIG. 7 is an explanatory diagram of a specific example of the rearrangement process in the embodiment of the decoding apparatus of the present invention. If both "1" and "0" exist in the same row in the matrix, the process of exchanging "1" and "0" is performed. For example, since the first row in FIG. 7A is an array of “1110”, the “1” of the third pixel and the “0” of the fourth pixel are exchanged, and the first row of FIG. 7B is replaced. Of “1101”. Also for the second row, "0" of the second pixel in the row of "0011"
Then, "1" of the third pixel is replaced with "0101". In the correction processing by this rearrangement, the pixel value is "1".
From "0" to "0" or from "0" to "1" is detected, and pixels on both sides adjacent to this change point are replaced.

【0041】このように、変化点を挟む画素の値を入れ
替える場合には、変化点を隣接して挟む画素を入れ替え
る方法に限らず、変化点の両側において変化点から離れ
た適宜の画素を入れ替えるようにしてもよい。例えば、
図7(A)の1行目では、1画素目の「1」と4画素目
の「0」を入れ替えて、「0110」と補正したり、2
行目では、1画素目の「0」と4画素目の「1」を入れ
替えて、「1010」とするような補正処理を行なうよ
うにしてもよい。
In this way, when the values of the pixels sandwiching the change point are exchanged, not only the method of exchanging the pixels sandwiching the change point adjacently but also the appropriate pixels apart from the change point on both sides of the change point are exchanged. You may do it. For example,
In the first line of FIG. 7A, “1” of the first pixel is replaced with “0” of the fourth pixel to correct “0110” or 2
In the row, “0” of the first pixel and “1” of the fourth pixel may be replaced with each other to perform a correction process such as “1010”.

【0042】また、符号化時のマトリックスサイズが大
きい場合には、同一行上の1,0の並びをさらにランダ
ムに配置するよう、パターン変換テーブル等を用いて変
換するよう構成してもよい。
Further, when the matrix size at the time of encoding is large, conversion may be performed by using a pattern conversion table or the like so that the arrangement of 1,0 on the same row is arranged more randomly.

【0043】この補正処理の結果、並び替え後画像は、
並び替え前画像に比較し、1,0がランダムに配置され
るため、中間調画像の再現性が向上されるという利点が
ある。
As a result of this correction processing, the rearranged image is
Since 1 and 0 are randomly arranged as compared with the image before rearrangement, there is an advantage that the reproducibility of the halftone image is improved.

【0044】本発明による符号化装置と、復号装置を用
いて、画像処理装置を構成することができる。符号化装
置によって、データの圧縮率を大きくできるので、画像
データをメモリしたり、転送したりする場合に有利であ
る。メモリから読み出されたり、転送されたデータは、
復号装置で再現性よく画像データに復号できる。
An image processing apparatus can be constructed using the encoding apparatus and the decoding apparatus according to the present invention. The encoding apparatus can increase the data compression rate, which is advantageous when storing or transferring image data. The data read from the memory or transferred is
The decoding device can decode the image data with good reproducibility.

【0045】[0045]

【発明の効果】以上の説明から明らかなように、本発明
によれば、画素の並びに規則性、周期性がない誤差拡散
画像に代表されるランダムディザ画像に対し、画質劣化
を最小限にとどめて、ある程度の規則性を持たせること
により、予測符号化効率を格段に向上させることができ
るという効果がある。
As is apparent from the above description, according to the present invention, deterioration of image quality is minimized with respect to a random dither image represented by an error diffusion image having no regularity or periodicity of pixels. Thus, by providing a certain degree of regularity, it is possible to significantly improve the predictive coding efficiency.

【0046】また、符号化においては、各ブロック内の
画素を寄せるという並べ替え処理を行なうことによっ
て、簡単な方法で、予測符号化効率を格段に向上させる
ことができる。一方、復号において、変化点を挟む画素
の値を入れ替えるという簡単な補正処理により、中間調
画像の再現性が向上できるという効果がある。
Further, in encoding, by performing a rearrangement process of bringing pixels in each block closer together, the predictive encoding efficiency can be remarkably improved by a simple method. On the other hand, in decoding, there is an effect that the reproducibility of a halftone image can be improved by a simple correction process of replacing the values of pixels sandwiching a change point.

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

【図1】 本発明の符号化装置の実施の一形態を示すブ
ロック図である。
FIG. 1 is a block diagram illustrating an embodiment of an encoding device according to the present invention.

【図2】 本発明の符号化装置の実施の一形態における
並び替え処理の具体例の説明図である。
FIG. 2 is an explanatory diagram of a specific example of a rearrangement process in the embodiment of the encoding device of the present invention.

【図3】 本発明の符号化装置の実施の一形態における
予測処理の一例の説明図である。
FIG. 3 is an explanatory diagram showing an example of a prediction process in the embodiment of the encoding device of the present invention.

【図4】 本発明の符号化装置の実施の一形態における
予測値選択処理の一例を示す構成図である。
FIG. 4 is a configuration diagram showing an example of a predicted value selection process in the embodiment of the encoding device of the present invention.

【図5】 本発明の符号化装置の実施の一形態における
予測メモリを用いた予測処理の説明図である。
FIG. 5 is an explanatory diagram of a prediction process using a prediction memory in the embodiment of the encoding device of the present invention.

【図6】 本発明の復号装置の実施の一形態を示すブロ
ック図である。
FIG. 6 is a block diagram showing an embodiment of a decoding device of the present invention.

【図7】 本発明の復号装置の実施の一形態における並
び替え処理の具体例の説明図である。
FIG. 7 is an explanatory diagram of a specific example of rearrangement processing in the embodiment of the decoding apparatus of the present invention.

【符号の説明】[Explanation of symbols]

1…画像データ、2…誤差拡散部、3…誤差拡散デー
タ、4…画素並び替え部、5…並び替えデータ、6…予
測符号化部、7…符号データ、8,9…一致数カウント
部、10,11…カウント値、12…比較器、13…比
較結果信号、14…選択部、15…予測値、16…予測
メモリ、17…復号部、18…予測誤差データ、19…
逆予測部。
1 ... Image data, 2 ... Error diffusion part, 3 ... Error diffusion data, 4 ... Pixel rearrangement part, 5 ... Rearrangement data, 6 ... Predictive coding part, 7 ... Code data, 8, 9 ... Matching count part 10, 11 ... Count value, 12 ... Comparator, 13 ... Comparison result signal, 14 ... Selection unit, 15 ... Prediction value, 16 ... Prediction memory, 17 ... Decoding unit, 18 ... Prediction error data, 19 ...
Inverse predictor.

Claims (11)

【特許請求の範囲】[Claims] 【請求項1】 画像をM行×N列(1≦M,2≦N)画
素のブロックに分割し、各ブロック内の所定値の画素を
該ブロックの一方に寄せる画素並び替え手段と、少なく
とも注目画素に対してN画素前の画素信号を用いて注目
画素の値を予測し該予測結果に基づいて符号化する予測
符号化手段を有することを特徴とする符号化装置。
1. A pixel rearranging unit that divides an image into blocks each having M rows × N columns (1 ≦ M, 2 ≦ N) pixels and shifts pixels having a predetermined value in each block to one of the blocks. An encoding apparatus comprising: a predictive encoding unit that predicts a value of a pixel of interest using a pixel signal N pixels before the pixel of interest and encodes the value based on the prediction result.
【請求項2】 画像をM行×N列(2≦M,2≦N)画
素のブロックに分割し、各ブロック内の所定値の画素を
L(1≦L)行単位ごとに該ブロックの一方および他方
に交互に寄せる画素並び替え手段と、注目画素に対して
2L行前の画素信号と注目画素に対してN画素前の画素
信号を用いて注目画素の値を予測し該予測結果に基づい
て符号化する予測符号化手段を有することを特徴とする
符号化装置。
2. The image is divided into blocks of M rows × N columns (2 ≦ M, 2 ≦ N) pixels, and pixels of a predetermined value in each block are divided into L (1 ≦ L) row units of the block. The value of the pixel of interest is predicted by using the pixel rearranging means that alternately shifts to one side and the other, and the pixel signal of 2L rows before the pixel of interest and the pixel signal N pixels before of the pixel of interest to predict the prediction result. An encoding apparatus having a predictive encoding means for encoding based on the above.
【請求項3】 請求項1または2に記載の符号化装置で
符号化された符号を復号する復号手段と、該復号手段に
よって復号された予測誤差信号に基づき逆予測処理を行
なう逆予測手段と、該逆予測手段から出力される画像に
対し補正処理を行なう補正手段を有することを特徴とす
る復号装置。
3. Decoding means for decoding the code coded by the coding device according to claim 1, and inverse prediction means for carrying out inverse prediction processing based on the prediction error signal decoded by the decoding means. A decoding device comprising: a correction unit that performs a correction process on an image output from the inverse prediction unit.
【請求項4】 前記補正手段は、画素値の変化点を検出
して該変化点を含む領域の画素値を適宜変更することを
特徴とする請求項3に記載の復号装置。
4. The decoding device according to claim 3, wherein the correction unit detects a change point of the pixel value and appropriately changes the pixel value of an area including the change point.
【請求項5】 前記補正手段は、画素値が前記所定値か
ら他の値に変化する変化点を検出し、この変化点を挟む
画素の値を入れ替えることを特徴とする請求項3に記載
の復号装置。
5. The correction unit according to claim 3, wherein the correction unit detects a change point at which the pixel value changes from the predetermined value to another value, and replaces the values of pixels sandwiching the change point. Decoding device.
【請求項6】 画像をM行×N列(1≦M,2≦N)画
素のブロックに分割し、各ブロック内の所定値の画素を
該ブロックの一方に寄るように画素を並び替え、少なく
とも注目画素に対してN画素前の画素信号を用いて注目
画素の値を予測し、該予測結果に基づいて符号化するこ
とを特徴とする符号化方法。
6. The image is divided into blocks of M rows × N columns (1 ≦ M, 2 ≦ N) pixels, and pixels are rearranged so that pixels of a predetermined value in each block are closer to one of the blocks, An encoding method characterized by predicting a value of a pixel of interest at least using a pixel signal N pixels before the pixel of interest and encoding based on the prediction result.
【請求項7】 画像をM行×N列(2≦M,2≦N)画
素のブロックに分割し、各ブロック内の所定値の画素を
L(1≦L)行単位ごとに該ブロックの一方および他方
に交互に寄るように画素を並び替え、注目画素に対して
2L行前の画素信号と注目画素に対してN画素前の画素
信号を用いて注目画素の値を予測し、該予測結果に基づ
いて符号化することを特徴とする符号化方法。
7. The image is divided into blocks of M rows × N columns (2 ≦ M, 2 ≦ N) pixels, and pixels of a predetermined value in each block are divided into L (1 ≦ L) row units of the block. Pixels are rearranged so as to alternately approach one side and the other side, and the value of the target pixel is predicted using the pixel signal of 2L rows before the target pixel and the pixel signal of N pixels before the target pixel, and the prediction is performed. An encoding method characterized by encoding based on a result.
【請求項8】 請求項6または7に記載の符号化方法で
符号化された符号を復号し、復号された予測誤差信号に
基づき逆予測処理を行ない、該逆予測処理後の画像に対
して補正処理を行なうことを特徴とする復号方法。
8. A code encoded by the encoding method according to claim 6 or 7 is decoded, inverse prediction processing is performed based on the decoded prediction error signal, and an image after the inverse prediction processing is performed. A decoding method characterized by performing a correction process.
【請求項9】 前記補正処理は、画素値の変化点を検出
して該変化点を含む領域の画素値を適宜変更することを
特徴とする請求項8に記載の復号方法。
9. The decoding method according to claim 8, wherein the correction processing detects a change point of a pixel value and appropriately changes a pixel value of an area including the change point.
【請求項10】 前記補正処理は、画素値が前記所定値
から他の値に変化する変化点を検出し、この変化点を挟
む画素の値を入れ替えることを特徴とする請求項8に記
載の復号方法。
10. The correction process according to claim 8, wherein a change point at which the pixel value changes from the predetermined value to another value is detected, and the values of pixels sandwiching the change point are replaced. Decryption method.
【請求項11】 請求項1または2に記載の符号化装置
と、請求項3ないし5のいずれか1項に記載の復号装置
を有することを特徴とする画像処理装置。
11. An image processing apparatus comprising the encoding device according to claim 1 or 2, and the decoding device according to any one of claims 3 to 5.
JP00674896A 1996-01-18 1996-01-18 Encoding device, decoding device, encoding method, decoding method, and image processing device Expired - Fee Related JP3367314B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP00674896A JP3367314B2 (en) 1996-01-18 1996-01-18 Encoding device, decoding device, encoding method, decoding method, and image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP00674896A JP3367314B2 (en) 1996-01-18 1996-01-18 Encoding device, decoding device, encoding method, decoding method, and image processing device

Publications (2)

Publication Number Publication Date
JPH09200541A true JPH09200541A (en) 1997-07-31
JP3367314B2 JP3367314B2 (en) 2003-01-14

Family

ID=11646824

Family Applications (1)

Application Number Title Priority Date Filing Date
JP00674896A Expired - Fee Related JP3367314B2 (en) 1996-01-18 1996-01-18 Encoding device, decoding device, encoding method, decoding method, and image processing device

Country Status (1)

Country Link
JP (1) JP3367314B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7412054B2 (en) 2004-05-04 2008-08-12 International Business Machines Corporation Matrix encryption method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7412054B2 (en) 2004-05-04 2008-08-12 International Business Machines Corporation Matrix encryption method and system

Also Published As

Publication number Publication date
JP3367314B2 (en) 2003-01-14

Similar Documents

Publication Publication Date Title
US6542631B1 (en) Encoding method of a color image and its encoding device and a decoding method of the color image and its decoding device
US6173078B1 (en) Image encoder, image encoding method, image decoder, image decoding method, and data recording medium
US6020923A (en) Method and apparatus for coding and recording an image signal and recording medium for storing an image signal
JPH0137065B2 (en)
JPH0969951A (en) Encoding method and decoding method
US5933105A (en) Context-based arithmetic encoding/decoding method and apparatus
US7460721B2 (en) Methods and apparatus for data compression with a hybrid context
US5970174A (en) Method and apparatus for data compression and gray value estimation
JPH09327019A (en) Object area encoding device
JP3367314B2 (en) Encoding device, decoding device, encoding method, decoding method, and image processing device
JP3466358B2 (en) Predictive coding device, decoding device, predictive coding method, and image processing device
JPH08298599A (en) Image encoding method and device therefor
CN114567782B (en) Raw image compression method and device suitable for 3DNR image noise reduction
US6681049B1 (en) Image encoding method and apparatus
JP3263218B2 (en) Image information data compression and playback device
JPH1098620A (en) Picture processor
JP3189068B2 (en) Image data encoding
CN110446048B (en) Method and device for selecting prediction mode in intra-frame prediction scene
JP2000333020A (en) Binary image coding method, binary image coder and recording medium
JP2917732B2 (en) Compressed image memory controller
JPH06178120A (en) Dither image encoding system
JPH099065A (en) Picture data compression encoding method and decoding method
JPS63132573A (en) Halftone image coding circuit
JPS595778A (en) Compression system for half-tone picture data
JPH0241232B2 (en)

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071108

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20081108

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20091108

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20101108

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20111108

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20111108

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20121108

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20121108

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20131108

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees