JPH0823447A - Coding processing unit and coding decoding processing unit - Google Patents

Coding processing unit and coding decoding processing unit

Info

Publication number
JPH0823447A
JPH0823447A JP6157135A JP15713594A JPH0823447A JP H0823447 A JPH0823447 A JP H0823447A JP 6157135 A JP6157135 A JP 6157135A JP 15713594 A JP15713594 A JP 15713594A JP H0823447 A JPH0823447 A JP H0823447A
Authority
JP
Japan
Prior art keywords
image
data
block
dither
replacement
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.)
Pending
Application number
JP6157135A
Other languages
Japanese (ja)
Inventor
Hidetoshi Kuramoto
秀俊 藏本
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 JP6157135A priority Critical patent/JPH0823447A/en
Publication of JPH0823447A publication Critical patent/JPH0823447A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve compression efficiency more in the case of data coding. CONSTITUTION:Received grey level image data are extracted sequentially for each image block by a CPU 12 and a quantity of a grey level change of each block is discriminated. A dither processor 20 converts respective blocks into dither image data. Then the CPU 12 uses a rearrangement processing section 22 to rearrange dots as to an image block whose grey level change is discriminated to be small and to replace data of the image block whose grey level change is discriminated to be large with data of any block whose data are rearranged and then expands the received block data in an image memory 28. The CPU 12 arranges lines of expanded image data in lateral and longitudinal directions into a prescribed sequence and the image data after the rearrangement are given to a coding section 24, in which the data are subjected to run length coding.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、符号化処理装置及び符
号化復号化処理装置に係り、特に多値画像をディザ処理
にて2値化し、これによって得られた疑似中間調画像を
符号化する符号化処理装置及び前記疑似中間調画像を符
号化/復号化する符号化復号化処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a coding processing apparatus and a coding / decoding processing apparatus, and in particular, a multi-valued image is binarized by dither processing, and a pseudo halftone image obtained by this is coded. And a coding / decoding processing device for coding / decoding the pseudo-halftone image.

【0002】[0002]

【従来の技術】近年、ファクシミリ装置や複写機、ある
いは画像ファイリングシステム等の分野では、画像のデ
ジタル処理が比較的多く行われている。かかる画像のデ
ジタル処理装置では、画像濃度データを閾値マトリクス
(ディザマトリクス)を用いて各ドット(画素)毎に2
値化処理を行い、ハーフトーン(疑似中間調)の画像を
表示するためのディザ法が比較的多く用いられる。
2. Description of the Related Art In recent years, in the fields of facsimile machines, copying machines, image filing systems, etc., digital processing of images has been performed relatively frequently. In such an image digital processing apparatus, the image density data is set to 2 for each dot (pixel) by using a threshold matrix (dither matrix).
A dither method for performing half-value processing and displaying a halftone (pseudo-halftone) image is relatively often used.

【0003】しかるに、かかるディザ法により得られる
画像は黒画素や白画素が点在して連続性が殆どないた
め、MH(モディファイド・ハフマン)方式やMR(モ
ディファイド・リード)方式で圧縮符号化すると、あま
り圧縮効果が得られず、逆にデータ量が増加することも
あった。
However, since an image obtained by such a dither method has little continuity due to scattered black pixels and white pixels, it is compressed and encoded by the MH (Modified Huffman) method or the MR (Modified Read) method. However, the compression effect was not obtained so much, and conversely the data amount increased.

【0004】かかる問題点を改善すべく、写真のような
濃淡画像を疑似中間調画像に変換(ディザ処理)した
後、ディザ画像のドットの並び換え処理をすることによ
って、その後のランレングス圧縮処理の圧縮効率を向上
させるようにした符号化処理方法及びその装置が、特開
昭62−284591号公報に開示されている。
In order to improve such a problem, after converting a grayscale image such as a photograph into a pseudo halftone image (dither processing), the dots of the dither image are rearranged so that the subsequent run length compression processing is performed. An encoding processing method and apparatus for improving the compression efficiency of the above is disclosed in Japanese Patent Laid-Open No. 62-284591.

【0005】即ち、図13の(A)に示されるような濃
淡画像データを同図の(B)に示されるようなディザマ
トリクスを用いてディザ処理すると、ディザマトリクス
の構成要素である閾値以上の濃度値の画素は黒画素、閾
値より小さい画素は白画素というように2値化され、同
図の(C)に示されるようなディザ画像が得られる。こ
のディザ画像を構成する各画像ブロックの画素をディザ
マトリクスの閾値の大きさの順に並べ替えると、同図の
(D)に示されるような、2値画像データが得られる。
但し、図6の(D)では、図中右端のブロックは並べ替
えを行っていない。
That is, when the grayscale image data as shown in FIG. 13A is dithered using the dither matrix as shown in FIG. Pixels having density values are binarized such that black pixels and pixels smaller than the threshold are white pixels, and a dither image as shown in FIG. By rearranging the pixels of each image block forming this dither image in the order of the threshold size of the dither matrix, binary image data as shown in (D) of the figure is obtained.
However, in FIG. 6D, the rightmost block in the figure is not rearranged.

【0006】これは、ブロック内の濃度変化の緩やかな
画像ブロックではドットの並べ換え処理を実行した結
果、黒画素は画像ブロック内の上部に、また、白画素は
画像ブロック内の下部に配置される傾向にあり、このこ
とはこの後のランレングス圧縮の効率を上げることに寄
与するが、ブロック内の濃度変化の急峻な画像ブロック
では並べ換え処理をしたせいで逆に白黒分布が分散して
しまうからである。
This is because, as a result of the dot rearrangement process being performed in an image block in which the density change in the block is gentle, black pixels are arranged in the upper part of the image block and white pixels are arranged in the lower part of the image block. This tends to increase the efficiency of the subsequent run length compression, but in the image block where the density change in the block is sharp, the black-and-white distribution is dispersed due to the rearrangement process. Is.

【0007】このため、上記特開昭62−284591
号公報に開示された技術では、入力された濃淡画像のブ
ロック(ディザマトリックスサイズ)毎にドットの濃度
差を算出し、この値の大小によってディザ画像のドット
の並び換え処理を実行するか否かを判定することによっ
て、ブロック内の濃度変化の急峻な画像ブロックを抽出
して、このブロックでは並べ換え処理をしないように
し、これにより、更にランレングス圧縮の効率を上げよ
うとしている。
For this reason, the above-mentioned Japanese Patent Laid-Open No. 62-284591 is used.
In the technique disclosed in Japanese Patent Publication, a dot density difference is calculated for each block (dither matrix size) of the input grayscale image, and whether or not the dot rearrangement process of the dither image is executed depending on the magnitude of this value. By determining, the image block in which the density change in the block is sharp is extracted, and the rearrangement processing is not performed in this block, thereby further increasing the efficiency of the run length compression.

【0008】[0008]

【発明が解決しようとする課題】しかしながら、上記特
開昭62−284591号公報に開示された技術では、
圧縮符号化処理の前処理として、上述したようなドット
の並べ換え処理しか実施されていないので、符号化の際
の圧縮効率の面では、必ずしも満足のいくものとは言え
なかった。かかる理由により、更に圧縮効率の向上を図
り得る符号化圧縮装置の出現が待望されていた。
However, according to the technique disclosed in the above-mentioned Japanese Patent Laid-Open No. 62-284591,
Since only the dot rearrangement process as described above is performed as the pre-process of the compression encoding process, it cannot be said that the compression efficiency in encoding is not always satisfactory. For these reasons, the advent of a coding / compressing device that can further improve the compression efficiency has been desired.

【0009】しかしながら、符号化と復号化は表裏一体
であるため、単に符号化時の圧縮効率の向上を図ると、
圧縮効率の向上のための工夫が復号化後の画像の画質劣
化を招く原因になりかねない。
However, since the encoding and the decoding are two sides of the same coin, if the compression efficiency at the time of encoding is simply improved,
A device for improving the compression efficiency may cause deterioration of the image quality of a decoded image.

【0010】本発明は、かかる事情の下になされたもの
であり、その第1の目的は、データ符号化の際の圧縮効
率をより一層向上させることができる符号化処理装置を
提供することにある。
The present invention has been made under the above circumstances, and a first object thereof is to provide an encoding processing device capable of further improving the compression efficiency in data encoding. is there.

【0011】本発明の第2の目的は、復号化後に得られ
る画像の画質劣化を招くことなく、データ符号化の際の
圧縮効率のより一層の向上を図ることができる符号化復
号化処理装置を提供することにある。
A second object of the present invention is a coding / decoding processing apparatus capable of further improving the compression efficiency at the time of data coding without inviting the image quality deterioration of the image obtained after decoding. To provide.

【0012】[0012]

【課題を解決するための手段】請求項1記載の発明は、
画像データを圧縮符号化する符号化手段を備えた符号化
処理装置であって、濃淡画像データから所定サイズの画
像ブロックを順次抽出するブロック抽出手段と、前記抽
出された各画像ブロックの濃淡変化の大小を判定する判
定手段と、前記ブロック抽出手段により抽出された各画
像ブロックを所定のディザマトリックスを用いてディザ
処理してディザ画像データに変換するディザ処理手段
と、前記判定手段により濃淡変化が小であると判定され
た画像ブロックについては前記ディザ画像データをディ
ザマトリクスの要素である閾値の大きさの順に各画素デ
ータを並べ替えた2値データに変換する並べ替え手段
と、前記判定手段により濃淡変化が大であると判定され
た置き換え画像ブロックについてはその画像ブロックの
前記ディザ画像データを前記並べ替え手段によりそれま
でに並べ替えが行われたいずれかのブロックの2値デー
タに置き換える置き換え手段と、画像データ格納用の第
1及び第2の格納手段と、前記置き換え画像ブロックの
置き換え前のディザデータを前記第1の格納手段に格納
すると共に前記並べ替え手段により並べ替え処理された
画像ブロックの2値データと前記置き換え手段により置
き換え処理された画像ブロックの2値データとを前記第
2の格納手段に格納して展開する格納制御手段と、前記
第2の格納手段に展開された画像データの横方向のライ
ン又は横方向及び縦方向のラインを所定の順序に並べ替
えるライン並べ替え手段と、前記第1の格納手段に格納
された置き換え画像ブロックの置き換え前のディザデー
タと前記ライン並べ替え手段により並べ替えられた後の
画像データとを前記符号化手段に転送する符号化制御手
段と、を有する。
According to the first aspect of the present invention,
An encoding processing device comprising an encoding means for compressing and encoding image data, comprising block extraction means for sequentially extracting image blocks of a predetermined size from the grayscale image data, and a change in grayscale of each of the extracted image blocks. A judging unit for judging the magnitude, a dither processing unit for dithering each image block extracted by the block extracting unit by using a predetermined dither matrix to convert the image block into dither image data, and a small change in shading by the judging unit. For the image block determined to be, the dither image data is converted to binary data in which each pixel data is rearranged in the order of the size of the threshold value which is an element of the dither matrix, and the determination unit is used to change the density. For the replacement image block determined to have a large change, the dither image data of the image block A replacement unit that replaces the binary data of any of the blocks that have been sorted by the sorting unit, first and second storage units for storing image data, and before replacement of the replacement image block. Storing the dither data of the image data in the first storage means and the binary data of the image blocks rearranged by the rearranging means and the binary data of the image blocks rearranged by the replacing means. Storage means for storing and expanding in the storage means, and line rearranging means for rearranging the horizontal lines or the horizontal and vertical lines of the image data expanded in the second storage means in a predetermined order. And the dither data before replacement of the replacement image block stored in the first storage means and the line rearrangement means The gills image data after was having a coding control means for transferring to said encoding means.

【0013】請求項2記載の発明は、画像データを圧縮
符号化する符号化手段と、符号化データを復号する復号
化手段とを備えた符号化復号化処理装置であって、濃淡
画像データから所定サイズの画像ブロックを順次抽出す
る第1のブロック抽出手段と、前記抽出された各画像ブ
ロックの濃淡変化の大小を判定すると共に判定結果を示
す判定結果識別データを作成する判定手段と、前記ブロ
ック抽出手段により抽出された各画像ブロックを所定の
ディザマトリックスを用いてディザ処理してディザ画像
データに変換するディザ処理手段と、前記判定手段によ
り濃淡変化が小であると判定された画像ブロックについ
てはその画像ブロックの前記ディザ画像データをディザ
マトリクスの要素である閾値の大きさの順に各画素デー
タを並べ替えた2値データに変換する並べ替え手段と、
前記判定手段により濃淡変化が大であると判定された置
き換え画像ブロックについてはその画像ブロックのディ
ザ画像データを前記並べ替え手段によりそれまでに並べ
替えが行われたいずれかのブロックの2値データに置き
換える第1の置き換え手段と、画像データ格納用の第1
及び第2の格納手段と、前記置き換え画像ブロックの置
き換え前のディザデータを前記第1の格納手段に格納す
ると共に前記並べ替え手段により並べ替え処理された画
像ブロックのデータと前記置き換え手段により置き換え
処理された画像ブロックのデータとを前記第2の格納手
段に格納して展開する格納制御手段と、前記第2の格納
手段に展開された画像データの横方向のライン又は横方
向及び縦方向のラインを所定の順序に並べ替えるライン
並べ替え手段と、前記判定結果識別データ、前記置き換
え画像ブロックの置き換え前のディザデータ及び前記ラ
イン並べ替え手段で並べ替え処理された画像データを前
記符号化手段に転送する符号化制御手段と、復号された
前記画像データの横方向のライン又は横方向及び縦方向
のラインを元の順序に並べ返すライン並べ返し手段と、
前記ライン並べ返し手段による並べ返し処理後の画像デ
ータから前記第1のブロック抽出手段により抽出される
画像ブロックと同一サイズの画像ブロックを順次抽出す
る第2の画像ブロック抽出手段と、復号された前記判定
結果識別データが入力画像ブロックの濃度変化が小さい
ことを示す場合には前記第2の画像ブロック抽出手段に
より抽出されたその画像ブロックの画像データの各画素
を元の配置に並べ返す並べ返し手段と、復号された前記
判定結果識別データが入力画像ブロックの濃度変化が大
きいことを示す場合には、前記第2の画像ブロック抽出
手段により抽出されたその画像ブロックの画像データを
復号された置き換え画像ブロックの置き換え前のディザ
画像データに置き換える第2の置き換え手段と、を有す
る。
According to a second aspect of the present invention, there is provided a coding / decoding processing device comprising a coding means for compressing and coding image data and a decoding means for decoding the coded data. A first block extracting means for sequentially extracting image blocks of a predetermined size; a determining means for determining the magnitude of the grayscale change of each of the extracted image blocks and creating determination result identification data indicating a determination result; and the block The dither processing means for dithering each image block extracted by the extracting means using a predetermined dither matrix to convert it into dither image data, and the image block determined by the determining means to have a small grayscale change, Each pixel data of the dither image data of the image block is rearranged in the order of the size of the threshold which is an element of the dither matrix. And sorting means for converting the data,
For the replacement image block determined to have a large change in shading by the determination means, the dither image data of the image block is converted into binary data of any block which has been sorted by the sorting means. First replacing means for replacing and a first storing means for storing image data
And second storage means, the dither data before replacement of the replacement image block is stored in the first storage means, and the image block data rearranged by the rearranging means and the replacement processing by the replacing means. Storage control means for storing the expanded image block data in the second storage means and expanding the same, and horizontal lines or horizontal and vertical lines of the image data expanded in the second storage means. Line sorting means for sorting in a predetermined order, the determination result identification data, the dither data before replacement of the replacement image block, and the image data sorted by the line sorting means are transferred to the coding means. Encoding control means and the horizontal lines or the horizontal and vertical lines of the decoded image data in the original order. And arranged return line side by side-back means,
Second image block extraction means for sequentially extracting image blocks of the same size as the image blocks extracted by the first block extraction means from the image data after the rearrangement processing by the line rearrangement means, and the decoded image blocks. When the determination result identification data indicates that the density change of the input image block is small, the rearrangement means for rearranging each pixel of the image data of the image block extracted by the second image block extraction means to the original arrangement. And the decoded determination result identification data indicates that the density change of the input image block is large, the image data of the image block extracted by the second image block extraction means is replaced with the decoded replacement image. Second replacement means for replacing the block with the dither image data before replacement.

【0014】[0014]

【作用】請求項1記載の符号化処理装置によれば、ブロ
ック抽出手段により、入力された濃淡画像データ(多値
画像データ)から所定サイズの画像ブロックが順次抽出
される。判定手段では抽出された各画像ブロックの濃淡
変化の大小を判定する。これと共に、ディザ処理手段に
より、ブロック抽出手段によって抽出された各画像ブロ
ックが所定のディザマトリックスを用いてディザ処理さ
れディザ画像データに変換される。
According to the encoding processing apparatus of the first aspect, the block extracting means sequentially extracts image blocks of a predetermined size from the input grayscale image data (multivalued image data). The judging means judges the magnitude of the change in shading of each of the extracted image blocks. At the same time, the dither processing unit dither-processes each image block extracted by the block extracting unit using a predetermined dither matrix to convert the image block into dither image data.

【0015】並べ替え手段では判定手段により濃淡変化
が小であると判定された画像ブロックについてはディザ
画像データをディザマトリクスの要素である閾値の大き
さの順に各画素データを並べ替えた2値データに変換す
る。一方、置き換え手段では判定手段により濃淡変化が
大であると判定された置き換え画像ブロックについては
その画像ブロックのディザ画像データを並べ替え手段に
よりそれまでに並べ替えが行われたいずれかのブロック
の2値データに置き換える。これらの並べ替え手段、置
き換え手段の各処理は、各画像ブロック毎に行われる。
Binary data obtained by rearranging each pixel data in the order of the size of the threshold value which is an element of the dither matrix for the image block which the rearrangement means has determined that the gradation change is small. Convert to. On the other hand, with respect to the replacement image block for which the determining unit has determined that the gradation change is large in the replacing unit, the dither image data of the image block is rearranged by the rearranging unit until 2 of any one of the blocks has been rearranged. Replace with value data. The processes of the rearrangement unit and the replacement unit are performed for each image block.

【0016】格納制御手段では置き換え画像ブロックの
置き換え前のディザデータを第1の格納手段に格納する
と共に並べ替え手段により並べ替え処理された画像ブロ
ックの2値データと置き換え手段により置き換え処理さ
れた画像ブロックの2値データとを第2の格納手段に格
納して展開する。
In the storage control means, the dither data before replacement of the replacement image block is stored in the first storage means, and the binary data of the image block rearranged by the rearrangement means and the image processed by the replacement means are replaced. The binary data of the block is stored in the second storage means and expanded.

【0017】次に、ライン並べ替え手段では、第2の格
納手段に展開された画像データの横方向のラインを所定
の順序に並べ替え、あるいは横方向及び縦方向のライン
をともに所定の順序に並べ替える。これは、ラインの並
べ替えを行うことにより、黒画素又は白画素の連続性が
より一層よくなるように画素を配置することが可能にな
るためである。
Next, in the line rearranging means, the horizontal lines of the image data expanded in the second storage means are rearranged in a predetermined order, or both the horizontal and vertical lines are arranged in a predetermined order. Sort. This is because by rearranging the lines, pixels can be arranged so that the continuity of black pixels or white pixels is further improved.

【0018】そして、符号化制御手段では、第1の格納
手段に格納された置き換え画像ブロックの置き換え前の
ディザデータとライン並べ替え手段により並べ替えられ
た後の画像データとを符号化手段に転送する。
The encoding control means transfers the dither data before replacement of the replacement image block stored in the first storage means and the image data rearranged by the line rearranging means to the encoding means. To do.

【0019】これにより、符号化手段により転送された
各データが圧縮符号化(ランレングス符号化)される。
As a result, each data transferred by the encoding means is compression-encoded (run-length encoding).

【0020】次いで請求項2記載の符号化復号化処理装
置の作用を符号化と復号化に分けて説明する。 《符号化》第1のブロック抽出手段により、入力された
濃淡画像データから所定サイズの画像ブロックを順次抽
出する。判定手段では抽出された各画像ブロックの濃淡
変化の大小を判定すると共に判定結果を示す判定結果識
別データを作成する。これと共に、ディザ処理手段では
ブロック抽出手段により抽出された各画像ブロックを所
定のディザマトリックスを用いてディザ処理してディザ
画像データに変換する。
Next, the operation of the encoding / decoding processing device according to the second aspect will be described separately for encoding and decoding. << Encoding >> The first block extracting means sequentially extracts image blocks of a predetermined size from the input grayscale image data. The determination means determines the magnitude of the change in grayscale of each of the extracted image blocks and creates determination result identification data indicating the determination result. At the same time, the dither processing unit dither-processes each image block extracted by the block extracting unit using a predetermined dither matrix to convert it into dither image data.

【0021】並べ替え手段では判定手段により濃淡変化
が小であると判定された画像ブロックについてはその画
像ブロックのディザ画像データをディザマトリクスの要
素である閾値の大きさの順に各画素データを並べ替えた
2値データに変換する。この一方、第1の置き換え手段
では判定手段により濃淡変化が大であると判定された置
き換え画像ブロックについてはその画像ブロックのディ
ザ画像データを並べ替え手段によりそれまでに並べ替え
が行われたいずれかのブロックの2値データに置き換え
る。これらの並べ替え手段、置き換え手段の各処理は、
各画像ブロック毎に行われる。
With respect to the image block for which the judgment unit judges that the gradation change is small, the dither image data of the image block is rearranged for each pixel data in the order of the threshold value which is an element of the dither matrix. Converted to binary data. On the other hand, with respect to the replacement image block that the first replacement means has determined that the shade change is large by the determination means, the dither image data of that image block has been rearranged by the rearrangement means. Replace with the binary data of the block. Each processing of these rearrangement means and replacement means,
This is performed for each image block.

【0022】格納制御手段では置き換え画像ブロックの
置き換え前のディザデータを第1の格納手段に格納する
と共に並べ替え手段により並べ替え処理された画像ブロ
ックのデータと置き換え手段により置き換え処理された
画像ブロックのデータとを第2の格納手段に格納して展
開する。
In the storage control means, the dither data before replacement of the replacement image block is stored in the first storage means and the data of the image block rearranged by the rearranging means and the image block rearranged by the replacing means are stored. The data and the data are stored in the second storage means and expanded.

【0023】次に、ライン並べ替え手段では第2の格納
手段に展開された画像データの横方向のライン又は横方
向及び縦方向のラインを所定の順序に並べ替える。これ
は、ラインの並べ替えを行うことにより、黒画素又は白
画素の連続性がより一層よくなるように画素を配置する
ことが可能になるためである。
Next, the line rearrangement means rearranges the horizontal lines or the horizontal and vertical lines of the image data expanded in the second storage means in a predetermined order. This is because by rearranging the lines, pixels can be arranged so that the continuity of black pixels or white pixels is further improved.

【0024】そして、符号化制御手段では判定結果識別
データ、置き換え画像ブロックの置き換え前のディザデ
ータ及びライン並べ替え手段で並べ替え処理された画像
データを符号化手段に転送する。
Then, the coding control means transfers the judgment result identification data, the dither data before replacement of the replacement image block and the image data rearranged by the line rearranging means to the coding means.

【0025】これにより、符号化手段により転送された
各データが圧縮符号化(ランレングス符号化)される。 《復号化》復号化手段では、前記の判定結果識別デー
タ、置き換え画像ブロックの置き換え前のディザデータ
及びライン並べ替え手段で並べ替え処理された画像デー
タの圧縮符号化手段が入力されると、これらのデータを
復号(伸張)する。
As a result, each data transferred by the encoding means is compression-encoded (run-length encoding). << Decoding >> In the decoding means, when the determination result identification data, the dither data before replacement of the replacement image block and the compression coding means of the image data rearranged by the line rearranging means are input, Data is decoded (decompressed).

【0026】ライン並べ返し手段では復号された画像デ
ータの横方向のライン(又は横方向及び縦方向のライ
ン)を元の順序に並べ返す。このライン並べ返し手段で
はライン並べ替え手段と逆の処理が行われる。
The line rearranging means rearranges the horizontal lines (or the horizontal and vertical lines) of the decoded image data in the original order. This line rearranging means performs the reverse process of the line rearranging means.

【0027】次に、第2の画像ブロック抽出手段によ
り、ライン並べ返し手段による並べ返し処理後の画像デ
ータから第1のブロック抽出手段により抽出される画像
ブロックと同一サイズの画像ブロックが順次抽出され
る。
Next, the second image block extracting means sequentially extracts image blocks of the same size as the image blocks extracted by the first block extracting means from the image data after the rearrangement processing by the line rearranging means. It

【0028】並べ返し手段では復号された判定結果識別
データが入力画像ブロックの濃度変化が小さいことを示
す場合には第2の画像ブロック抽出手段により抽出され
たその画像ブロックの画像データの各画素を元の配置に
並べ返す。この並べ返し手段では並べ替え手段と逆の処
理が行われる。
When the decoded determination result identification data indicates that the density change of the input image block is small in the rearrangement means, each pixel of the image data of the image block extracted by the second image block extraction means is selected. Return to the original arrangement. This sort means performs the reverse process of the sort means.

【0029】一方、第2の置き換え手段では復号された
判定結果識別データが入力画像ブロックの濃度変化が大
きいことを示す場合には、第2の画像ブロック抽出手段
により抽出されたその画像ブロックの画像データを復号
された置き換え画像ブロックの置き換え前のディザ画像
データに置き換える。
On the other hand, in the case where the decoded determination result identification data in the second replacing means indicates that the density change of the input image block is large, the image of the image block extracted by the second image block extracting means The data is replaced with the dither image data before replacement of the decoded replacement image block.

【0030】即ち、各画像ブロックについては、前記並
べ返し手段の処理及び第2の置き換え手段の処理のいず
れかが、当該各画像ブロックの判定結果識別データに応
じて、択一的におこなわれ、このようにして、源画像デ
ータをディザ処理して得られる符号化処理前のディザ画
像データが再現される。
That is, for each image block, either the processing of the rearranging means or the processing of the second replacing means is alternatively performed according to the determination result identification data of each image block, In this way, the dither image data before the encoding process obtained by dithering the source image data is reproduced.

【0031】[0031]

【実施例】以下、本発明の一実施例を図1ないし図11
に基づいて説明する。図1には、一実施例に係る符号化
復号化処理装置の構成が概略的に示されている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT An embodiment of the present invention will be described below with reference to FIGS.
It will be described based on. FIG. 1 schematically shows the configuration of an encoding / decoding processing device according to an embodiment.

【0032】この符号化復号化処理装置100は、多値
画像をディザ処理にて2値化して得られる疑似中間調画
像を符号化する符号化処理部10と、圧縮符号化された
符号化データを復号して疑似中間調画像を再現する復号
化処理部30とから構成されている。
The coding / decoding processing apparatus 100 includes a coding processing unit 10 for coding a pseudo-halftone image obtained by binarizing a multivalued image by dither processing, and compression-coded coded data. And a decoding processing unit 30 for decoding the pseudo halftone image and reproducing the pseudo halftone image.

【0033】符号化処理部10は、CPU12と、RO
M14と、RAM16と、スキャナー18と、ディザ処
理部20と、並べ替え手段としての並べ替え処理部22
と、符号化手段としての符号化部24と、データ出力部
26と、画像メモリ28と、符号メモリ29と、を有し
ている。
The encoding processing unit 10 includes a CPU 12 and an RO.
M14, RAM16, scanner 18, dither processing section 20, rearrangement processing section 22 as rearrangement means
And a coding unit 24 as a coding unit, a data output unit 26, an image memory 28, and a coding memory 29.

【0034】CPU12を除く上記各構成部は、システ
ムバス50を介してCPU12に接続されている。
The above-mentioned components except the CPU 12 are connected to the CPU 12 via the system bus 50.

【0035】CPU12は、符号化処理部10の心臓部
で、上記構成各部のジョブの流れを管理するプロセッサ
である。
The CPU 12 is the heart of the encoding processing unit 10 and is a processor that manages the flow of jobs of the above-mentioned components.

【0036】ROM14は、後述するプログラムその他
が格納されたメモリであり、RAM16は、ワークエリ
アとして機能するメモリであり、本実施例では一時記憶
領域、置き換えブロック格納領域、識別データ格納領域
等が設けられ、これによって第1の格納手段が構成され
ている。
The ROM 14 is a memory that stores programs and the like described later, and the RAM 16 is a memory that functions as a work area. In this embodiment, a temporary storage area, a replacement block storage area, an identification data storage area, etc. are provided. The first storage means is configured by this.

【0037】スキャナー18は、原稿画像を読み取り多
値画像データ(濃淡画像データ)を出力するもので、例
えば16階調の多値画像データを出力するものが使用さ
れる。
The scanner 18 reads a document image and outputs multivalued image data (grayscale image data). For example, a scanner which outputs multivalued image data of 16 gradations is used.

【0038】ディザ処理部20は、入力された多値画像
データをマトリクス状に配列された閾値を要素とする所
定のディザマトリクスを用いて2値化(2値に量子化)
する。即ち、このディザ処理部20は、ディザマトリク
スの構成要素である閾値と各画素の多値データとを比較
して例えばデータの値(濃度値)が閾値以上の画素を黒
(例えば1)とし、その他の画素を白(例えば0)とす
る等により濃淡画像を2値に量子化してマクロに見た場
合に入力画像の濃淡が感じられるようにする。ここで、
ディザマトリクスとしてはBayer型のそれがよく用
いられる。
The dither processing unit 20 binarizes (quantizes into binary) the input multi-valued image data by using a predetermined dither matrix having thresholds arranged in a matrix as elements.
To do. That is, the dither processing unit 20 compares the threshold value, which is a constituent element of the dither matrix, with the multi-valued data of each pixel, and, for example, sets a pixel whose data value (density value) is equal to or larger than the threshold value to black (for example, 1), The grayscale image is quantized into a binary value by making the other pixels white (for example, 0) so that the grayscale of the input image can be perceived when viewed in macro. here,
A Bayer type dither matrix is often used.

【0039】並べ替え処理部22は、各ブロックの2値
データが入力されると、ディザマトリクスの要素である
閾値の大きさの順にそれぞれの閾値に対応する画素の2
値データを並べ替える。
When the binary data of each block is input, the rearrangement processing unit 22 outputs two pixels of the pixels corresponding to the respective threshold values in the order of the threshold values which are the elements of the dither matrix.
Sort value data.

【0040】符号化部24は、入力された各種データを
ランレングス符号化する。データ出力部26は、後述す
るように、他装置の復号化処理部30から符号データの
要求があった場合に、CPU12により符号メモリ29
から取り出された符号データを当該復号化処理部30に
出力する。
The encoding unit 24 performs run-length encoding on various input data. As will be described later, the data output unit 26 causes the CPU 12 to generate the code memory 29 when the decoding processing unit 30 of another device requests the code data.
The coded data extracted from is output to the decoding processing unit 30.

【0041】画像メモリ28は、スキャナーからの画像
データ、置き換え処理後の画像データ等が格納されるメ
モリであり、本実施例ではこの画像メモリ28によって
第2の格納手段が構成されている。
The image memory 28 is a memory for storing the image data from the scanner, the image data after the replacement process, and the like. In the present embodiment, the image memory 28 constitutes a second storage means.

【0042】また、符号メモリ29はランレングス圧縮
符号化された符号化データが格納されるメモリである。
The code memory 29 is a memory for storing coded data which has been run length compression coded.

【0043】復号化処理部30は、CPU32と、RO
M34と、RAM36と、データ入力部38と、復号化
手段としての復号化部40と、プリンタ42と、画像メ
モリ44と、符号メモリ46と、並べ返し手段としての
並べ返し処理部48と、を有している。
The decoding processing section 30 includes a CPU 32 and an RO.
An M34, a RAM 36, a data input unit 38, a decoding unit 40 as a decoding unit, a printer 42, an image memory 44, a code memory 46, and a sorting processing unit 48 as a sorting unit. Have

【0044】CPU32を除く上記各構成部は、システ
ムバス60を介してCPU32に接続されている。
The above-mentioned components except the CPU 32 are connected to the CPU 32 via the system bus 60.

【0045】CPU32は、復号化処理部30の心臓部
で、上記構成各部のジョブの流れを管理するプロセッサ
である。
The CPU 32 is the heart of the decryption processing unit 30 and is a processor that manages the flow of jobs of the above-mentioned components.

【0046】ROM34は、後述するプログラムその他
が格納されたメモリであり、RAM36は、ワークエリ
アとして機能するメモリであり、本実施例では識別デー
タ格納領域等が設けられている。
The ROM 34 is a memory that stores programs and the like to be described later, and the RAM 36 is a memory that functions as a work area. In this embodiment, an identification data storage area and the like are provided.

【0047】データ入力部38は、後述するように他装
置の符号化処理部10から入力されたデータを受け取
る。
The data input unit 38 receives the data input from the encoding processing unit 10 of another device as described later.

【0048】復号化部40は、入力された符号化データ
を前記と同一のディザマトリクスを用いて2値データに
復号(伸張)する。
The decoding section 40 decodes (expands) the input coded data into binary data using the same dither matrix as above.

【0049】プリンタ42は、入力された2値データを
ドット情報(画像情報)に変換して印刷出力する画像出
力手段である。画像出力手段としてはプリンタ42に代
えて画像表示装置であるCRTディスプレイ、液晶パネ
ルディスプレイ等を用いても良い。
The printer 42 is an image output unit that converts the input binary data into dot information (image information) and prints it out. As the image output means, a CRT display, a liquid crystal panel display or the like which is an image display device may be used instead of the printer 42.

【0050】画像メモリ44は、復号された2値画像デ
ータが格納されるメモリであり、符号メモリ46は入力
されたランレングス圧縮符号化データが格納されるメモ
リである。
The image memory 44 is a memory for storing the decoded binary image data, and the code memory 46 is a memory for storing the input run-length compression coded data.

【0051】並べ返し処理部48は、前記並べ替え処理
部22と反対にドットの並べ返しをしてディザ画像デー
タを再現する。
The rearrangement processing section 48 reverses the rearrangement processing section 22 to rearrange dots to reproduce the dither image data.

【0052】次に、上述のようにして構成された符号化
復号化処理装置100相互間でデータの授受を行う場合
の作用を図2ないし図7に基づいて説明する。 《符号化処理部10の作用》まず、一方の装置の符号化
処理部10の符号化処理に関する作用をCPU12の主
要な制御プログラムを示す図2のフローチャートに沿っ
て説明する。このフローチャートがスタートするのは、
図示しない読み取り開始ボタンが押下され、図示しない
入力装置から読み取り開始指示のコマンドがCPU12
に入力されたときである。
Next, the operation of exchanging data between the encoding / decoding processing apparatuses 100 configured as described above will be described with reference to FIGS. 2 to 7. << Operation of Encoding Processing Unit 10 >> First, the operation regarding the encoding processing of the encoding processing unit 10 of one device will be described with reference to the flowchart of FIG. 2 showing the main control program of the CPU 12. This flow chart starts with
A reading start button (not shown) is pressed, and a command to start reading is issued from the input device (not shown) to the CPU 12
It is when input to.

【0053】ステップ100でスキャナー18により画
像の読み取りを行うと共に、このスキャナー18から出
力される多値画像データを順次画像メモリ28に格納す
る。
In step 100, an image is read by the scanner 18, and the multivalued image data output from the scanner 18 is sequentially stored in the image memory 28.

【0054】画像の読み取りが終了すると、ステップ1
02に進んで図示しないブロック番号計数用の第1のカ
ウンタのカウント値nを1に設定(初期値0より1イン
クリメント)し、ステップ104に進み、多値画像デー
タ(原画像データ)からブロックn(ブロック番号nの
画像ブロック)を抽出する。
When the image reading is completed, step 1
In step 02, the count value n of the first counter (not shown) for counting block numbers is set to 1 (incremented by 1 from the initial value 0), and in step 104, the block n is read from the multi-valued image data (original image data). (Image block with block number n) is extracted.

【0055】ステップ106では抽出したブロックnの
最大濃度差(ブロック内の画素の最大濃度値と最小濃度
値との差)Cを演算し、ステップ108に進んでブロッ
クnの多値画像データをディザ処理部20に転送してブ
ロックnのディザ処理を行う。ここで、ディザ処理部2
0ではブロックのサイズと同一サイズ,例えば4×4画
素サイズのROM14内に記憶されているディザマトリ
ックスを用いてディザマトリクスの要素である閾値と各
画素の濃度値との比較を行って白黒2値化を行う。この
ようにして得られたディザ画像データ(白黒2値デー
タ)は、RAM16の一時記憶領域に格納される。
In step 106, the maximum density difference C of the extracted block n (difference between the maximum density value and the minimum density value of the pixels in the block) C is calculated, and the flow advances to step 108 to dither the multivalued image data of the block n. The data is transferred to the processing unit 20 and the dither processing of block n is performed. Here, the dither processing unit 2
When 0, the dither matrix stored in the ROM 14 having the same size as the block size, for example, 4 × 4 pixel size is used to compare the threshold value, which is an element of the dither matrix, with the density value of each pixel. To convert. The dither image data (monochrome binary data) thus obtained is stored in the temporary storage area of the RAM 16.

【0056】ステップ110では上記ステップ106で
演算した最大濃度差Cが予め定めた閾値P以下であるか
否かを判断し、この判断が肯定された場合にはステップ
112に進んでRAM16の一時記憶領域に格納されて
いるブロックnのディザ画像データを並べ替え処理部2
2に転送する。これにより、並べ替え処理部22によ
り、以下のようにしてディザ画像のドットの並べ替え処
理がなされる。即ち、並べ替え処理部22では図8の
(A)に示されるようなBayer型のディザマトリク
スの構成要素である閾値が同図(B)に示されるように
大きさの順に並ぶように、各閾値に対応する画素を並べ
替えるのである。ここで、この並べ替え処理部22によ
りディザ画像のドットの並べ替えが行われると、黒画素
は画像ブロック内の上部に、また、白画素は画像ブロッ
ク内の下部に配置される傾向にある。この並べ替え処理
後のデータは、図示しないDMAコントローラにより画
像メモリ28に転送されて格納される。
In step 110, it is determined whether the maximum density difference C calculated in step 106 is less than or equal to a predetermined threshold value P. If the determination is affirmative, the process proceeds to step 112 to temporarily store in the RAM 16. The rearrangement processing unit 2 processes the dither image data of the block n stored in the area.
Transfer to 2. As a result, the rearrangement processing unit 22 rearranges the dots of the dither image as follows. That is, in the rearrangement processing unit 22, the threshold values which are the constituent elements of the Bayer type dither matrix as shown in FIG. 8A are arranged in the order of size as shown in FIG. 8B. The pixels corresponding to the threshold are rearranged. Here, when the dots of the dither image are rearranged by the rearrangement processing unit 22, black pixels tend to be arranged in the upper part of the image block, and white pixels tend to be arranged in the lower part of the image block. The data after this rearrangement processing is transferred to and stored in the image memory 28 by a DMA controller (not shown).

【0057】次のステップ114では、ブロックnの並
べ替え判定符号データ(判定結果識別データ)として
「1」を設定してRAM16の識別データ格納領域に格
納した後、ステップ122に進む。
In the next step 114, "1" is set as the rearrangement determination code data (determination result identification data) of the block n and stored in the identification data storage area of the RAM 16, and then the process proceeds to step 122.

【0058】一方、ステップ110における判断が否定
された場合には、ステップ116に進んでRAM16の
一時記憶領域に格納されているブロックnのディザ画像
データを画像メモリ28に格納されている一つ前のブロ
ックn−1と同じパターンのブロックに置き換える。こ
の置き換えは、RAM16の一時記憶領域に格納されて
いるブロックnのディザ画像データをRAM16の置き
換えブロック格納領域に移動した後、画像メモリ28内
のブロックn−1のデータをコピーしてRAM16の一
時記憶領域に格納することによりなされる。この置き換
えを行うのは、置き換えの対象となる置き換えブロック
nはブロック内の最大濃度差が大きく周囲のブロック
(ドットの並べ替え処理がなされたブロック)と全く異
なるパターンを持つため、これをそのまま使用すると、
後に行われるライン並べ替え処理に際し、ラン長を寸断
してしまう可能性が大きいためである。
On the other hand, if the determination in step 110 is negative, the process proceeds to step 116, and the dither image data of the block n stored in the temporary storage area of the RAM 16 is stored in the image memory 28 one before. Block n-1 is replaced with a block having the same pattern. This replacement is performed by moving the dither image data of the block n stored in the temporary storage area of the RAM 16 to the replacement block storage area of the RAM 16 and then copying the data of the block n-1 in the image memory 28 to temporarily store the data in the RAM 16. This is done by storing in the storage area. This replacement is performed as it is because the replacement block n to be replaced has a pattern in which the maximum density difference in the block is large and the pattern is completely different from the surrounding blocks (blocks in which the dots are rearranged). Then,
This is because there is a high possibility that the run length will be cut off during the line rearrangement processing that is performed later.

【0059】次のステップ118では置き換え後のブロ
ックnを画像メモリ28のブロックnの格納領域に格納
し、ステップ120に進んでブロックnの並べ替え判定
符号データ(判定結果識別データ)として「0」を設定
してRAM16の識別データ格納領域に格納した後、ス
テップ122に進む。
In the next step 118, the block n after replacement is stored in the storage area of the block n of the image memory 28, and the process proceeds to step 120 where "0" is set as the rearrangement determination code data (determination result identification data) of the block n. Is set and stored in the identification data storage area of the RAM 16, and then the process proceeds to step 122.

【0060】ステップ122ではブロック番号計数用の
第1のカウンタを1インクリメントし、ステップ124
に進んでブロック番号nが入力画像中の総ブロック数N
より大きいか否かを判断し、この判断が否定されると、
ステップ104に戻り、上記処理・判断を繰り返す。
In step 122, the first counter for counting the block number is incremented by 1, and in step 124
And the block number n is the total number N of blocks in the input image.
If it is judged to be larger than this, and this judgment is denied,
Returning to step 104, the above-mentioned processing and judgment are repeated.

【0061】このようにして、入力された全ての画像ブ
ロックについてドットの並べ替え処理又はブロックの置
き換え処理が終了し、ステップ124の判断が肯定され
ると、ステップ126の置き換え画像のラインを並べ替
えるサブルーチンへ移行する。この時、画像メモリ28
内にはドットの並べ替え処理後又はブロックの置き換え
処理後の画像のデータがブロック番号順に格納され、展
開されている。この画像メモリ28内に展開されている
画像を以下、便宜上「置き換え画像」という。
In this way, the dot rearrangement process or the block replacement process is completed for all the input image blocks, and when the determination in step 124 is affirmed, the lines of the replacement image in step 126 are rearranged. Move to a subroutine. At this time, the image memory 28
Image data after dot rearrangement processing or block replacement processing is stored and expanded in the order of block numbers. The image developed in the image memory 28 will be referred to as a "replacement image" for convenience hereinafter.

【0062】置き換え画像のラインを並べ替えるサブル
ーチンでは、図3に示されるように、まず、ステップ2
00でパラメータiに「1」を設定し、ステップ202
でライン並べ替え後の画像(この画像を便宜上「並べ替
え画像1」という)のライン番号に対応するパラメータ
kに「1」を設定する。
In the subroutine for rearranging the lines of the replacement image, as shown in FIG.
The parameter i is set to "1" at 00, and step 202
The parameter k corresponding to the line number of the image after line rearrangement (this image is referred to as “rearranged image 1” for convenience) is set to “1”.

【0063】次のステップ204では、i≦m(m:デ
ィザマトリクスの行数=ディザマトリクスの列数)が成
立するか否かを判断し、この判断が肯定されると、ステ
ップ206に進んでパラメータjに「0」を設定した
後、ステップ208でライン並び替え前の置き換え画像
のライン番号sをs=m×j+iの式により算出する。
例えば、ディザマトリクスサイズ=ブロックサイズが4
×4である場合は、i=1,j=0であればm=4であ
るからs=4×0+1=1となる。
In the next step 204, it is judged whether or not i ≦ m (m: the number of rows of the dither matrix = the number of columns of the dither matrix) is satisfied, and if this judgment is affirmed, the routine proceeds to step 206. After setting "0" to the parameter j, in step 208, the line number s of the replacement image before line rearrangement is calculated by the formula of s = m × j + i.
For example, dither matrix size = block size is 4
In the case of x4, if i = 1 and j = 0, then m = 4 and s = 4 × 0 + 1 = 1.

【0064】次のステップ210ではs≦M(M:入力
画像中の全ライン数)が成立するか否かを判断し、この
判断が肯定されると、ステップ214に進んで置き換え
画像のラインsを並べ替え画像1のラインkへコピーす
る。即ち、画像メモリ28内に置き換え画像が展開され
る領域(便宜上、「領域1」とする)とは別に並べ替え
画像1を展開する領域(便宜上、「領域2」とする)を
設けておき、この領域2のラインk部分に置き換え画像
のラインsのデータをコピーするのである。例えば、置
き換え画像のライン1は並べ替え画像のライン1にコピ
ーされる。
At the next step 210, it is judged whether or not s ≦ M (M: the total number of lines in the input image) is satisfied. If this judgment is affirmed, the process proceeds to step 214 and the line s of the replacement image is set. Is copied to the line k of the rearranged image 1. That is, in the image memory 28, an area (referred to as "area 1") for expanding the rearranged image is provided separately from an area for expanding the replacement image (referred to as "area 1" for convenience). The data of the line s of the replacement image is copied to the line k portion of the area 2. For example, line 1 of the replacement image is copied to line 1 of the reordered image.

【0065】次いでパラメータk及びjをそれぞれ1イ
ンクリメントし(ステップ216,218)、ステップ
208に戻り、上記の処理判断を繰り返す。
Next, the parameters k and j are each incremented by 1 (steps 216 and 218), and the process returns to step 208 to repeat the above-described processing determination.

【0066】一方、ステップ210における判断が否定
された場合には、ステップ212に進んでパラメータi
を1インクリメントした後、ステップ204に戻り、上
記の処理・判断を繰り返す。例えば、m=4,j=2,
i=1,M=8であり、s=4×2+1=9である場合
には、ステップ210における判断は否定される。
On the other hand, if the determination in step 210 is negative, the process proceeds to step 212 and the parameter i
Is incremented by 1, and then the process returns to step 204 to repeat the above processing / judgment. For example, m = 4, j = 2
If i = 1, M = 8 and s = 4 × 2 + 1 = 9, the determination at step 210 is denied.

【0067】この一方、ステップ204における判断が
否定された場合には、このサブルーチンの処理を終了し
て呼出し元に戻り、メインルーチンのステップ128に
示す並べ替え画像1のカラムを並べ替えるサブルーチン
へ移行する。ブロックサイズが4×4である場合には、
パラメータi=5になった時点でステップ204の判断
は否定される。
On the other hand, if the determination in step 204 is negative, the process of this subroutine is terminated and the process returns to the calling source, and the process proceeds to the subroutine for rearranging the columns of the rearranged image 1 shown in step 128 of the main routine. To do. If the block size is 4x4,
When the parameter i = 5, the determination at step 204 is denied.

【0068】なお、1ブロックサイズが4×4で総ライ
ン数が8である場合に上記サブルーチンでライン並べ替
え処理を行った場合には、図9(A)に示されるように
ラインの並べ替えが行われる。
When the line rearrangement processing is performed by the above subroutine when the size of one block is 4 × 4 and the total number of lines is 8, the rearrangement of lines is performed as shown in FIG. 9A. Is done.

【0069】並べ替え画像1のカラムを並べ替えるサブ
ルーチンでは、図4に示されるように、まず、ステップ
300でパラメータiに「1」を設定し、ステップ30
2でカラム並べ替え後の画像(この画像を便宜上「並べ
替え画像2」という)のカラム番号に対応するパラメー
タrに「1」を設定する。
In the subroutine for rearranging the columns of the rearranged image 1, as shown in FIG. 4, first, in step 300, the parameter i is set to "1", and then step 30
In step 2, the parameter r corresponding to the column number of the column rearranged image (this image is referred to as “rearranged image 2” for convenience) is set to “1”.

【0070】次のステップ304では、i≦m(m:デ
ィザマトリクスの行数=ディザマトリクスの列数)が成
立するか否かを判断し、この判断が肯定されると、ステ
ップ306に進んでパラメータpに「0」を設定した
後、ステップ308でカラム並べ替え前の並べ替え画像
1のカラム番号qをq=m×j+iの式により算出す
る。
At the next step 304, it is judged whether or not i ≦ m (m: the number of rows of the dither matrix = the number of columns of the dither matrix) is satisfied. If this judgment is affirmed, the routine proceeds to step 306. After setting “0” to the parameter p, in step 308, the column number q of the rearranged image 1 before column rearrangement is calculated by the formula of q = m × j + i.

【0071】次のステップ310ではq≦U(U:入力
画像中の全カラム数)が成立するか否かを判断し、この
判断が肯定されると、ステップ314に進んで並べ替え
画像1のカラムqを並べ替え画像2のカラムrへコピー
する。即ち、画像メモリ28内の領域1のカラムr部分
に領域2内に格納されている並べ替え画像1のカラムq
のデータをコピーするのである。
In the next step 310, it is judged whether or not q≤U (U: the total number of columns in the input image) is satisfied, and if this judgment is affirmed, the routine proceeds to step 314. The column q is copied to the column r of the rearranged image 2. That is, the column q of the rearranged image 1 stored in the area 2 is stored in the column r of the area 1 in the image memory 28.
The data of is copied.

【0072】次いでパラメータr及びpをそれぞれ1イ
ンクリメントし(ステップ316,318)、ステップ
308に戻り、上記の処理判断を繰り返す。
Next, the parameters r and p are each incremented by 1 (steps 316 and 318), and the process returns to step 308 to repeat the above process determination.

【0073】一方、ステップ310における判断が否定
された場合には、ステップ312に進んでパラメータi
を1インクリメントした後、ステップ304に戻り、上
記の処理・判断を繰り返す。例えば、m=4,p=4,
i=1,U=16であり、q=4×4+1=17である
場合には、ステップ310における判断は否定される。
On the other hand, if the determination in step 310 is negative, the process proceeds to step 312 and the parameter i
Is incremented by 1, and then the process returns to step 304 to repeat the above processing / judgment. For example, m = 4, p = 4
If i = 1, U = 16 and q = 4 × 4 + 1 = 17, the determination at step 310 is denied.

【0074】この一方、ステップ304における判断が
否定された場合には、このサブルーチンの処理を終了し
てメインルーチンのステップ130に戻る。ブロックサ
イズが4×4である場合には、パラメータi=5になっ
た時点でステップ304の判断は否定される。
On the other hand, when the determination in step 304 is negative, the processing of this subroutine is terminated and the process returns to step 130 of the main routine. When the block size is 4 × 4, the determination at step 304 is denied when the parameter i = 5.

【0075】なお、1ブロックサイズが4×4で総カラ
ム数が16である場合に上記サブルーチンでカラム並べ
替え処理を行った場合には、図9の(B)に示されるよ
うにラインの並べ替えが行われる。
When the column rearrangement process is performed by the above subroutine when the size of one block is 4 × 4 and the total number of columns is 16, line arrangement is performed as shown in FIG. 9B. Replacement is done.

【0076】メインルーチンのステップ130では画像
メモリ28内の領域1に格納されている並べ替え画像2
を符号化部24を用いてランレングス圧縮符号化し、ス
テップ132ではRAM16の置き換えブロック格納領
域に格納されている置き換えブロックの置き換え前のデ
ィザデータを符号化部24を用いてランレングス圧縮符
号化し、ステップ134ではRAM16の識別データ格
納領域に格納されている並べ替え判定符号データ列を符
号化部24を用いてランレングス圧縮符号化した後、一
連の処理を終了する。ここで、符号化部24により圧縮
符号化された各符号化データは図示しないDMAコント
ローラにより符号メモリ29に転送され、格納される。 《復号化処理部の作用》次に、他方の装置の復号化処理
部30の復号化に関する作用について図5のCPU32
の主要な制御プログラムを示すフローチャートに沿って
説明する。前提として、図示しない復号化スタートボタ
ンが押下され、図示しない入力装置から復号化指示コマ
ンドが入力され、CPU32がデータ入力部38を介し
て符号データの要求を一方の装置の符号化処理部10へ
出力し、符号化処理部10側のCPU12により符号メ
モリ29内の符号化データが順次データ出力部26を介
して出力され、このデータがデータ入力部38を介して
符号メモリ46内に格納されているものとする。ここ
で、符号メモリ46内には、予め定めた順番、例えば画
像データ、置き換えブロックの置き換え前のディザデー
タ、識別データの順で圧縮データが格納されており、こ
の格納順序に基づきCPU32では各データを識別でき
るようになっている。
In step 130 of the main routine, the rearranged image 2 stored in the area 1 in the image memory 28 is sorted.
Is run-length compressed and encoded by the encoding unit 24, and in step 132, the dither data before replacement of the replacement block stored in the replacement block storage area of the RAM 16 is run-length compression-encoded by the encoding unit 24. In step 134, the rearrangement determination code data string stored in the identification data storage area of the RAM 16 is run-length compression-encoded using the encoding unit 24, and then a series of processes is ended. Here, each coded data compression-coded by the coding unit 24 is transferred to and stored in the code memory 29 by a DMA controller (not shown). << Operation of Decoding Processing Unit >> Next, the operation relating to the decoding of the decoding processing unit 30 of the other device will be described with reference to the CPU 32 of FIG.
This will be described along with a flowchart showing the main control program of. As a premise, a decoding start button (not shown) is pressed, a decoding instruction command is input from an input device (not shown), and the CPU 32 requests a code data via the data input unit 38 to the coding processing unit 10 of one device. The encoded data in the code memory 29 is sequentially output via the data output unit 26 by the CPU 12 on the side of the encoding processing unit 10, and this data is stored in the code memory 46 via the data input unit 38. Be present. Here, the compressed data is stored in the code memory 46 in a predetermined order, for example, the image data, the dither data before replacement of the replacement block, and the identification data, and the CPU 32 stores each data based on this storage order. Can be identified.

【0077】まず、符号メモリ46内に格納されている
圧縮符号化された並べ替え画像2のデータ、置き換えブ
ロックの置き換え前のディザデータ、並べ替え判定符号
データを復号化部40を用いて順次復号(伸張)する。
(ステップ400、ステップ402、ステップ40
4)。これらの復号後のデータが図示しないDMAコン
トローラにより画像メモリ44、RAM36の識別デー
タ格納領域にそれぞれ転送され、格納される。
First, the compression-encoded data of the rearranged image 2, the dither data before the replacement of the replacement block, and the rearrangement determination code data stored in the code memory 46 are sequentially decoded by the decoding unit 40. (Stretch).
(Step 400, Step 402, Step 40
4). The decoded data is transferred to and stored in the image memory 44 and the identification data storage area of the RAM 36 by a DMA controller (not shown).

【0078】前記各データの復号が終了すると、ステッ
プ406の並べ替え画像2のカラムを並べ返すサブルー
チンへ移行する。
When the decoding of the respective data is completed, the routine proceeds to a subroutine of step 406 for rearranging the columns of the rearranged image 2.

【0079】この並べ替え画像2のカラムを並べ返すサ
ブルーチンでは、図6に示されるように、まず、ステッ
プ500でパラメータiに「1」を設定し、ステップ5
02で並べ替え画像2のカラムを元の順番に並べ返して
得られる並べ替え画像1のカラム番号に対応するパラメ
ータqに「1」を設定する。
In the subroutine for rearranging the columns of the rearranged image 2, as shown in FIG. 6, first, in step 500, the parameter i is set to "1", and then step 5 is executed.
In 02, the parameter q corresponding to the column number of the rearranged image 1 obtained by rearranging the columns of the rearranged image 2 in the original order is set to “1”.

【0080】次のステップ504では、i≦m(m:デ
ィザマトリクスの行数=ディザマトリクスの列数)が成
立するか否かを判断し、この判断が肯定されると、ステ
ップ506に進んでパラメータpに「0」を設定した
後、ステップ508で並べ替え画像2のカラム番号rを
r=m×p+iの式により算出する。
At the next step 504, it is judged whether or not i ≦ m (m: the number of rows of the dither matrix = the number of columns of the dither matrix) is satisfied. If this judgment is affirmed, the routine proceeds to step 506. After setting “0” to the parameter p, the column number r of the rearranged image 2 is calculated by the equation r = m × p + i in step 508.

【0081】次のステップ510ではr≦U(U:入力
画像中の全カラム数)が成立するか否かを判断し、この
判断が肯定されると、ステップ514に進んで並べ替え
画像2のカラムqを並べ替え画像1のカラムrへコピー
する。即ち、画像メモリ44内のある領域(便宜上「領
域2」という)のカラムr部分に他の領域(便宜上「領
域1」という)内に格納されている並べ替え画像2のカ
ラムqのデータをコピーするのである。
At the next step 510, it is judged whether or not r ≦ U (U: the total number of columns in the input image) is satisfied. If this judgment is affirmed, the routine proceeds to step 514 and the rearranged image 2 The column q is copied to the column r of the rearranged image 1. That is, the data of the column q of the rearranged image 2 stored in the other area (for convenience, referred to as “area 1”) is copied to the column r portion of the area (for convenience, referred to as “area 2”) in the image memory 44. To do.

【0082】次いでパラメータq及びpをそれぞれ1イ
ンクリメントし(ステップ516,518)、ステップ
508に戻り、上記の処理・判断を繰り返す。
Next, the parameters q and p are each incremented by 1 (steps 516 and 518), and the process returns to step 508 to repeat the above-described processing / judgment.

【0083】一方、ステップ510における判断が否定
された場合には、ステップ512に進んでパラメータi
を1インクリメントした後、ステップ504に戻り、上
記の処理・判断を繰り返す。例えば、m=4,p=4,
i=1,U=16であり、r=4×4+1=17である
場合には、ステップ510における判断は否定される。
On the other hand, if the determination in step 510 is negative, the process proceeds to step 512 and the parameter i
Is incremented by 1, and then the process returns to step 504 to repeat the above processing / judgment. For example, m = 4, p = 4
If i = 1, U = 16 and r = 4 × 4 + 1 = 17, the determination at step 510 is denied.

【0084】この一方、ステップ504における判断が
否定された場合には、このサブルーチンの処理を終了し
て呼出し元に戻り、メインルーチンのステップ408に
示される並べ替え画像1のラインを並べ替えるサブルー
チンに移行する。ブロックサイズが4×4である場合に
は、パラメータi=5になった時点でステップ304の
判断は否定される。
On the other hand, if the determination in step 504 is negative, the processing of this subroutine is terminated and the process returns to the calling source, and the subroutine for rearranging the lines of the rearranged image 1 shown in step 408 of the main routine is entered. Transition. When the block size is 4 × 4, the determination at step 304 is denied when the parameter i = 5.

【0085】なお、1ブロックサイズが4×4で総カラ
ム数が16である場合に上記サブルーチンでカラム並べ
替え処理を行った場合には、図9の(B)の矢印と反対
方向のカラムの並べ替えが行われる。
When the column rearrangement processing is performed by the above subroutine when the size of one block is 4 × 4 and the total number of columns is 16, the column in the direction opposite to the arrow in FIG. Sorting is done.

【0086】並べ替え画像1のラインを並べ替えるサブ
ルーチンでは、図7に示されるように、まず、ステップ
600でパラメータiに「1」を設定し、ステップ60
2で並べ替え画像1のラインを元の順序に並べ返して得
られる置き換え画像のライン番号に対応するパラメータ
sに「1」を設定する。
In the subroutine for rearranging the lines of the rearranged image 1, as shown in FIG. 7, first, in step 600, the parameter i is set to "1", and then step 60 is executed.
In step 2, "1" is set to the parameter s corresponding to the line number of the replacement image obtained by rearranging the lines of the rearranged image 1 in the original order.

【0087】次のステップ604では、i≦m(m:デ
ィザマトリクスの行数=ディザマトリクスの列数)が成
立するか否かを判断し、この判断が肯定されると、ステ
ップ606に進んでパラメータjに「0」を設定した
後、ステップ608でライン並び返し前の並べ替え画像
1のライン番号kをk=m×j+iの式により算出す
る。例えば、ディザマトリクスサイズ=ブロックサイズ
が4×4である場合は、i=1,j=0であれば、m=
4であるからk=4×0+1=1となる。
At the next step 604, it is judged whether or not i ≦ m (m: the number of rows of the dither matrix = the number of columns of the dither matrix) is satisfied. If this judgment is affirmed, the routine proceeds to step 606. After setting “0” to the parameter j, in step 608, the line number k of the rearranged image 1 before line rearrangement is calculated by the equation of k = m × j + i. For example, if the dither matrix size = the block size is 4 × 4, and i = 1 and j = 0, then m =
Since it is 4, k = 4 × 0 + 1 = 1.

【0088】次のステップ610ではk≦M(M:入力
画像中の全ライン数)が成立するか否かを判断し、この
判断が肯定されると、ステップ614に進んで並べ替え
画像1のラインsを置き換え画像のラインkへコピーす
る。即ち、画像メモリ44内の領域2のラインk部分に
並べ替え画像1のラインsのデータをコピーするのであ
る。例えば、並べ替え画像1のライン1は置き換え画像
のライン1にコピーされる。
At the next step 610, it is determined whether or not k ≦ M (M: the total number of lines in the input image) is satisfied. If the determination is affirmative, the process proceeds to step 614 and the rearranged image 1 is sorted. Copy line s to line k of the replacement image. That is, the data of the line s of the rearranged image 1 is copied to the line k portion of the area 2 in the image memory 44. For example, line 1 of rearranged image 1 is copied to line 1 of the replacement image.

【0089】次いでパラメータs及びjをそれぞれ1イ
ンクリメントし(ステップ616,618)、ステップ
608に戻り、上記の処理・判断を繰り返す。
Next, the parameters s and j are each incremented by 1 (steps 616 and 618), and the process returns to step 608 to repeat the above-described processing / judgment.

【0090】一方、ステップ610における判断が否定
された場合には、ステップ612に進んでパラメータi
を1インクリメントした後、ステップ604に戻り、上
記の処理・判断を繰り返す。例えば、m=4,j=2,
i=1,M=8であり、k=4×2+1=9である場合
には、ステップ610における判断は否定される。この
一方、ステップ604における判断が否定された場合に
は、このサブルーチンの処理を終了してメインルーチン
のステップ410に戻る。ブロックサイズが4×4であ
る場合には、パラメータi=5になった時点でステップ
604の判断は否定される。
On the other hand, if the determination in step 610 is negative, the process proceeds to step 612 and the parameter i
Is incremented by 1, and then the process returns to step 604 to repeat the above processing / judgment. For example, m = 4, j = 2
If i = 1, M = 8 and k = 4 × 2 + 1 = 9, then the determination at step 610 is denied. On the other hand, when the determination in step 604 is negative, the processing of this subroutine is ended and the processing returns to step 410 of the main routine. When the block size is 4 × 4, the determination in step 604 is denied when the parameter i = 5.

【0091】なお、1ブロックサイズが4×4で総ライ
ン数が8である場合に上記サブルーチンでライン並べ替
え処理を行った場合には、図9の(A)の矢印と反対方
向のラインの並べ返し処理が行われる。
If the line rearrangement process is performed by the above subroutine when the size of one block is 4 × 4 and the total number of lines is 8, the lines in the direction opposite to the arrow in FIG. Sorting processing is performed.

【0092】メインルーチンのステップ410で画像ブ
ロック数計数用の第2のカウンタのカウント値nを
「1」に設定した後、ステップ412で画像メモリ44
内に格納されている置き換え画像データからブロックn
の画像データを抽出し、RAM36の一時記憶領域に格
納する。
After the count value n of the second counter for counting the number of image blocks is set to "1" in step 410 of the main routine, the image memory 44 is set in step 412.
Block n from the replacement image data stored in
Image data is extracted and stored in the temporary storage area of the RAM 36.

【0093】次のステップ414ではRAM36の識別
データ格納領域に格納されているブロックnの並べ替え
判定符号が「1」であるか否かを判定し、並べ替え判定
符号が「0」でこの判断が否定された場合には、ステッ
プ418に進んで置き換え画像のブロックnを画像メモ
リ44内に格納されている置き換え画像ブロックnの置
き換え前のディザデータに置き換える。
At the next step 414, it is determined whether the rearrangement determination code of the block n stored in the identification data storage area of the RAM 36 is "1", and the rearrangement determination code is "0". Is denied, the process proceeds to step 418 to replace the block n of the replacement image with the dither data before replacement of the replacement image block n stored in the image memory 44.

【0094】一方、ステップ414の判定が肯定された
場合は、ステップ416に進んでブロックnの置き換え
画像データを並べ返し処理部48に転送する。これによ
り、並べ返し処理部48で前述した並べ替え処理部22
と反対のドットの並べ返し処理が行われ、ブロックnの
ディザ画像が再現される。
On the other hand, if the determination in step 414 is positive, the process proceeds to step 416 to transfer the replacement image data of block n to the rearrangement processing unit 48. As a result, the sorting processing unit 22 described above in the sorting processing unit 48 is performed.
The dot rearrangement processing opposite to that is performed, and the dither image of the block n is reproduced.

【0095】そして、ステップ420では、ステップ4
16で並べ返しされたブロックnのディザデータ又はス
テップ418で置き換えられたブロックnのディザデー
タをプリンタ42に出力する。
Then, in step 420, step 4
The dither data of the block n rearranged in 16 or the dither data of the block n replaced in step 418 is output to the printer 42.

【0096】次のステップ422では画像ブロック数計
数用の第2のカウンタを1インクリメントし、次のステ
ップ424でn>Nであるか否かを判断し、この判断が
否定されると,ステップ412に戻って上記処理・判断
を繰り返す。
In the next step 422, the second counter for counting the number of image blocks is incremented by 1, and in the next step 424, it is judged whether or not n> N. If this judgment is denied, step 412 Then, the above process and judgment are repeated.

【0097】このようにして、入力データ中の全てのブ
ロックの画像データの復号化及び出力処理が終了する
と、ステップ424の判断が肯定され、一連の復号化処
理を終了する。
In this way, when the decoding and output processing of the image data of all blocks in the input data is completed, the determination at step 424 is affirmed and the series of decoding processing is completed.

【0098】この復号化処理の終了した時点では、プリ
ンタ42のメモリ内に全ての画像ブロックのディザ画像
データが一方の装置による符号化開始時と同じ状態で格
納されており、ドットデータが1ライン又は所定ライン
毎に印刷出力され、最終的に疑似中間調画像が得られ
る。
At the end of this decoding process, the dither image data of all image blocks are stored in the memory of the printer 42 in the same state as when the encoding was started by one of the devices, and the dot data was stored in one line. Alternatively, it is printed out for each predetermined line, and a pseudo halftone image is finally obtained.

【0099】以上説明した本実施例の符号化復号化処理
装置100によると、例えば、ディザ処理部20でディ
ザマトリクスとして図8の(A)に示されるようなBa
yer型の4×4サイズのものを使用してステップ10
8のディザ処理が行われた結果、図10(A)に示され
るような8ブロックのディザ画像データが得られるもの
とすると、ステップ110〜ステップ122の処理の繰
り返しにより、画像メモリ28内には同図の(B)に示
されるような8ブロックの置き換え画像データが展開さ
れる。なお、図10の(B)では、白黒2値の画像デー
タとして置き換え画像データを示しているが、実際に
は、0,1のデータが格納される。
According to the encoding / decoding processing apparatus 100 of the present embodiment described above, for example, the dither matrix in the dither processing unit 20 is Ba as shown in FIG.
Step 10 using the yer type 4x4 size
Assuming that 8 blocks of dither image data as shown in FIG. 10A are obtained as a result of performing the dithering process of 8, the image memory 28 is stored in the image memory 28 by repeating the processes of steps 110 to 122. The replacement image data of 8 blocks as shown in FIG. Note that, in FIG. 10B, the replacement image data is shown as the black and white binary image data, but the data of 0 and 1 is actually stored.

【0100】図10の(A),(B)において、太線で
囲まれた部分は、ステップ116〜ステップ118にお
いてなされるブロックの置き換え処理を視覚的に示すも
ので、この場合、RAM16の置き換えブロック格納領
域には、図10の(C)に示すような置き換えブロック
の置き換え前のディザデータが格納される。ここで、こ
の置き換え処理を実行するのは、ディザ画像に対してブ
ロック並べ替え(ドットの並べ替え)を実行すると、黒
画素は画像ブロック内の上部に、また、白画素は画像ブ
ロック内の下部に配置される傾向にあるが、図10の
(A)に示される第4列目のディザ画像データ(太線枠
内のデータ)に対して他のブロックと同様にドットの並
べ替えを行うと、ドットの並べ替え処理により長くされ
たラン長を寸断してしまう可能性が高いのでこのような
ブロックのディザデータについてはドットの並べ替えを
行うことなく近隣の他のブロックと置き換えることによ
り、ラン長を長くすることが可能になるためである。
In FIGS. 10A and 10B, the portion surrounded by a thick line visually shows the block replacement processing performed in steps 116 to 118. In this case, the replacement block in the RAM 16 is replaced. The dither data before replacement of the replacement block as shown in FIG. 10C is stored in the storage area. Here, this replacement process is performed by executing block rearrangement (dot rearrangement) on the dither image, in which black pixels are at the upper part of the image block and white pixels are at the lower part of the image block. However, if the dots are rearranged in the same manner as the other blocks, the dither image data in the fourth column (data in the bold line frame) shown in FIG. Since it is highly likely that the run length that has been lengthened by the dot rearrangement process will be cut off, dither data for such blocks can be replaced with other neighboring blocks without rearranging the dots, and This is because it becomes possible to lengthen.

【0101】また、この例の場合、並べ替え判定符号デ
ータは、図10の(D)のように設定される(ステップ
114、ステップ120)。
In the case of this example, the rearrangement determination code data is set as shown in FIG. 10D (step 114, step 120).

【0102】次に、図9(A)に示される置き換え画像
データのラインの並べ替えが行われる(ステップ12
6)。このラインの並べ替えは、次のようにして行われ
る。
Next, the lines of the replacement image data shown in FIG. 9A are rearranged (step 12).
6). The rearrangement of this line is performed as follows.

【0103】即ち、まず、置き換え画像中のライン1を
並べ換え画像1中のライン1へコピーする。次に、置き
換え画像中のライン5(即ち、横方向に連なったディザ
ブロック列の2番目のブロック列のライン1)を並べ換
え画像1中のライン2へコピーする。次に、置き換え画
像中のライン2を並べ換え画像1中のライン3へコピー
し、その後置き換え画像中のライン6(即ち、横方向に
連なったディザブロック列の2番目のブロック列のライ
ン2)を並べ換え画像1中のライン4へコピーする。以
下同様にして、置き換え画像中のライン3を並べ換え画
像1中のライン5へ、置き換え画像中のライン7を並べ
換え画像1中のライン6へ、置き換え画像中のライン4
を並べ換え画像1中のライン7へ、そして最後に、置き
換え画像中のライン8を並べ換え画像1中のライン8へ
コピーして、ライン並べ換え処理を終了する(図3参
照)。このライン並べ替え処理の結果、図11の(A)
に示されるような、並べ替え画像1の画像データ、即
ち、置き換え画像の各ブロックのライン1同士、ライン
2同士、ライン3同士、ライン4同士が隣接した画像デ
ータが得られ、この画像データでは同等の黒白パターン
を持つラインが隣接する傾向にあり、黒ラン及び白ラン
ともに長くなっていることが、図10の(B)と図11
の(A)との比較から明らかに分かる。
That is, first, the line 1 in the replacement image is copied to the line 1 in the rearranged image 1. Next, the line 5 in the replacement image (that is, the line 1 of the second block row of the dither block row that is continuous in the horizontal direction) is copied to the line 2 in the rearranged image 1. Next, the line 2 in the replacement image is copied to the line 3 in the rearranged image 1, and then the line 6 in the replacement image (that is, the line 2 of the second block row in the dither block row that is continuous in the horizontal direction) is copied. Copy to line 4 in rearranged image 1. In the same manner, line 3 in the replacement image is changed to line 5 in the rearranged image 1, line 7 in the replacement image is changed to line 6 in the rearranged image 1, line 4 in the replacement image is changed.
To the line 7 in the rearranged image 1 and finally the line 8 in the rearranged image to the line 8 in the rearranged image 1 to end the line rearrangement process (see FIG. 3). As a result of this line rearrangement processing, FIG.
Image data of the rearranged image 1, that is, image data in which lines 1 of each block of the replacement image, lines 2 of lines, lines 3 of lines, and lines 4 of adjacent blocks are obtained. Lines having the same black-and-white pattern tend to be adjacent to each other, and both the black run and the white run are long, as shown in FIGS.
It can be clearly seen from the comparison with (A).

【0104】次に、図9の(B)に示される並べ替え画
像1のカラム並べ換え処理が行われる(ステップ12
8)。このカラム並べ替え処理は次のようにして行われ
る。即ち、まず、並べ換え画像1中のカラム1を並べ換
え画像2中のカラム1へコピーする。次に、並べ換え画
像1中のカラム5(即ち縦方向に連なったディザブロッ
ク列の2番目のブロック列のカラム1)を並べ換え画像
2中のカラム2へコピーする。次に、並べ換え画像1中
のカラム9(即ち、縦方向に連なったディザブロック列
の3番目のブロック列のカラム1)を並べ換え画像2中
のカラム3へコピーし、その後並べ換え画像1中のカラ
ム13(即ち、縦方向に連なったディザブロック列の4
番目のブロック列のカラム1)を並べ換え画像2中のカ
ラム4へコピーする。以下同様にして、各ブロック列内
のカラム2、3、4がそれぞれ同じ番号を持つカラム同
士隣接するように並べ換え処理を実行する(図4参
照)。このカラム並べ替え処理の結果、図11の(B)
に示されるような、並べ替え画像2のデータ、即ち、並
べ替え画像1の各ブロックのカラム1同士、カラム2同
士、カラム3同士、カラム4同士が隣接した画像データ
が得られ、この画像データでは同等の黒白パターンを持
つカラムが隣接する傾向にあり、黒ラン及び白ランとも
により一層長くなっていることが、図11(A)と同図
(B)との比較から分かる。
Next, the column rearrangement process of the rearranged image 1 shown in FIG. 9B is performed (step 12).
8). This column rearrangement process is performed as follows. That is, first, the column 1 in the rearranged image 1 is copied to the column 1 in the rearranged image 2. Next, the column 5 in the rearranged image 1 (that is, the column 1 of the second block row in the dither block row that is continuous in the vertical direction) is copied to the column 2 in the rearranged image 2. Next, the column 9 in the rearranged image 1 (that is, the column 1 of the third block row in the dither block row that is continuous in the vertical direction) is copied to the column 3 in the rearranged image 2, and then the column in the rearranged image 1 is copied. 13 (that is, 4 of the dither block row that is vertically connected)
Copy column 1) of the th block row to column 4 in rearranged image 2. Similarly, the rearrangement process is performed so that the columns 2, 3, and 4 in each block row are adjacent to each other (see FIG. 4). As a result of this column rearrangement process, FIG.
Data of the rearranged image 2, that is, image data in which columns 1 of each block of the rearranged image 1, columns 2 of each other, columns 3 of each other, and columns 4 of each block are adjacent to each other are obtained. It can be seen from the comparison between FIGS. 11A and 11B that the columns having the same black-and-white pattern tend to be adjacent to each other, and both the black run and the white run are longer.

【0105】従って、ステップ130で並べ替え画像2
をランレングス圧縮すると、圧縮符号化効率が非常に高
くなる。
Therefore, in step 130, the rearranged image 2
When run length compression is performed, the compression coding efficiency becomes very high.

【0106】一方、復号化側においては、まず復号化部
40により、並べ換え画像2の圧縮データ、置き換えブ
ロックの置き換え前のディザデータ及び並べ換え判定符
号列の圧縮データが復号され(ステップ400、ステッ
プ402、ステップ404)、それぞれ画像メモリ4
4、RAM36の識別データ格納領域に格納される。
On the other hand, on the decoding side, the decoding unit 40 first decodes the compressed data of the rearranged image 2, the dither data before the replacement of the replacement block, and the compressed data of the rearrangement determination code string (step 400, step 402). , Step 404), image memory 4 respectively
4, stored in the identification data storage area of the RAM 36.

【0107】復号化終了後、画像メモリ44内の並べ換
え画像2のカラム並べ換え処理とライン並べ換え処理
が、符号化側で実施されたのと逆の手順で順次実施され
る(ステップ406、ステップ408)。カラム/ライ
ン並べ換え処理が終了し、置き換え画像が画像メモリ4
4上に出来上がったら、ブロック単位で置き換え画像が
読み込まれ、置き換えが必要なブロックに遭遇した場合
は、そのブロックが画像メモリ44に格納されている置
き換えブロックの置き換え前のディザデータに置き換え
られ(ステップ418)、ドットの並べ替えが必要なブ
ロックに遭遇した場合は、そのブロックのデータを並べ
返し処理部48に転送してドットの並べ返しを実行し
(ステップ416)、各ブロック毎に元のディザデータ
が復元され、これがプリンタ42に順次出力される。な
お、置き換えるべきブロックか、ドットの並べ返しをす
るべきブロックかの判定は、RAM36の識別データ格
納領域に格納されているそのブロックの並べ換え判定符
号を基に決定される。即ち、現在注目しているブロック
に対応する並べ換え判定符号が0なら置き換え、1なら
ドットの並べ返しを行う。
After the decoding is completed, the column rearrangement process and the line rearrangement process of the rearranged image 2 in the image memory 44 are sequentially carried out in the reverse order to that carried out on the encoding side (steps 406 and 408). . The column / line rearrangement processing is completed, and the replacement image is stored in the image memory 4.
4, the replacement image is read in block units, and if a block that needs replacement is encountered, that block is replaced with the dither data before replacement of the replacement block stored in the image memory 44 (step 418), when a block requiring dot rearrangement is encountered, the data of that block is transferred to the rearrangement processing unit 48 to perform dot rearrangement (step 416), and the original dither is performed for each block. The data is restored, and this is sequentially output to the printer 42. It should be noted that the determination as to whether the block should be replaced or the block in which dots are to be rearranged is determined based on the rearrangement determination code of the block stored in the identification data storage area of the RAM 36. That is, if the rearrangement determination code corresponding to the block of interest at present is 0, it is replaced, and if it is 1, the dots are rearranged.

【0108】このような処理が全ブロックに対して実施
されたら、プリンタ42のメモリ内に復元画像のディザ
データが出来上がり、これが印刷出力されることによ
り、元のディザデータが直接印刷出力されたのと同等の
良好な画質の復号画像が得られる。
When such processing is executed for all blocks, the dither data of the restored image is completed in the memory of the printer 42 and is printed out, so that the original dither data is directly printed out. It is possible to obtain a decoded image with good image quality equivalent to

【0109】これまでの説明から明らかなように、本実
施例では、第1のブロック抽出手段、判定手段、第1の
置き換え手段、格納制御手段、ライン並べ替え手段及び
符号化制御手段がCPU12の機能によって実現され、
ライン並べ返し手段、第2の画像ブロック抽出手段及び
第2の置き換え手段がCPU32の機能によって実現さ
れていることが分かる。
As is clear from the above description, in the present embodiment, the first block extracting means, the judging means, the first replacing means, the storage controlling means, the line rearranging means and the encoding controlling means are the CPU 12's. Realized by function,
It can be seen that the line rearranging means, the second image block extracting means, and the second replacing means are realized by the function of the CPU 32.

【0110】なお、上記実施例では、符号化復号化処理
装置について説明したが、符号化処理部10と同様の構
成の符号化処理装置を考えれば、符号化の際の圧縮効率
向上という効果を達成することができることはいうまで
もない。
In the above embodiment, the coding / decoding processing device has been described. However, considering a coding processing device having the same configuration as the coding processing unit 10, the effect of improving the compression efficiency at the time of coding is obtained. It goes without saying that you can achieve it.

【0111】また、上記実施例では、ディザ画像データ
からいきなり置き換え画像データを得る場合を例示した
が、図10の(A)に示されるようなディザ画像データ
から図12に示されるような並べ替え画像データを得た
後、この並べ替え画像データの内のドットの並べ替え処
理が行われなかったブロック(図中太線枠で囲まれたブ
ロック)のみを並べ替え処理が行われたいずれかのブロ
ックと同一パターンのデータに置き換えて置き換え画像
データを得るようにしてもよいことは勿論である。この
ようなことは、ソフトウェアの変更により容易に実現で
きる。
Further, in the above embodiment, the case where the replacement image data is suddenly obtained from the dither image data has been exemplified, but the dither image data as shown in FIG. 10A is rearranged as shown in FIG. After obtaining the image data, one of the blocks in which the sorting process is performed only on the blocks in which the sorting process of the dots in this sorting image data has not been performed (the blocks surrounded by the thick line frame in the figure) Of course, the replacement image data may be obtained by replacing with the data of the same pattern. Such a thing can be easily realized by changing the software.

【0112】更に、上記実施例では置き換え画像のライ
ン並べ替え処理の後、これによって得られた並べ替え画
像1のカラム並べ替え処理を実行する場合を例示した
が、置き換え画像のライン並べ替え処理のみを行って符
号化を行い、これに対応して復号化の際には復号された
並べ替え画像1のラインを元の順序に並べ返す処理のみ
を行うようにしても、復号化後に得られる画像の画質劣
化を招くことなく、従来例に比して符号化効率の向上を
図ることは可能である。
Further, in the above embodiment, the case where the column rearrangement process of the rearranged image 1 obtained by this is executed after the line rearrangement process of the replaced image is exemplified, but only the line rearrangement process of the replaced image is performed. Even if only the process of rearranging the lines of the decoded rearranged image 1 in the original order is performed at the time of decoding, the image obtained after the decoding is performed. It is possible to improve the coding efficiency as compared with the conventional example without causing the deterioration of the image quality.

【0113】なお、本発明の符号化復号化処理装置は、
具体的には、データファイリングシステムや、ファクシ
ミリ装置等に適用することができるが、例えば、ファク
シミリ装置に適用する場合には、符号化処理部10と復
号化処理部30の構成要素の内、共用できる構成要素に
ついてはなるべく共用することが望ましく、CPUも二
つ設けることなく一つ設ければ十分である。また、この
場合には、符号化部と復号化部を符号化/復号化部とし
て構成し、データ入力部とデータ出力部とをモデム、N
CU等により兼用させる構成が望ましい。
The encoding / decoding processing device of the present invention is
Specifically, the present invention can be applied to a data filing system, a facsimile machine, and the like. For example, in the case of being applied to a facsimile machine, it is shared among the components of the encoding processing unit 10 and the decoding processing unit 30. It is desirable to share the possible constituent elements as much as possible, and it is sufficient to provide one CPU without providing two CPUs. Further, in this case, the encoding unit and the decoding unit are configured as an encoding / decoding unit, the data input unit and the data output unit are a modem, and the N
It is desirable that the CU or the like be used in common.

【0114】一方、データファイリングシステムに適用
する場合には、データ出力部から出力される符号化デー
タを磁気ディスク、光ファイル等に一端格納し、これら
の記憶手段からデータ入力部を介してデータを読みだす
ような構成となり、同一装置内でデータのやり取りが行
われる構成となる。
On the other hand, when applied to a data filing system, the encoded data output from the data output section is temporarily stored in a magnetic disk, an optical file, etc., and the data is stored from these storage means via the data input section. The configuration is such that it is read out, and data is exchanged within the same device.

【0115】また、上記実施例では、符号化データを一
端RAM内に格納する場合を例示したが、ファクシミリ
装置等では、符号化と回線接続作業とを並行処理的に行
えば、符号化データを通信回線を介して直ちに相手機に
送信することができる。
In the above embodiment, the case where the coded data is once stored in the RAM has been illustrated. However, in a facsimile machine or the like, the coded data can be obtained by performing the coding and the line connection work in parallel. It can be immediately transmitted to the other device via the communication line.

【0116】更に、上記実施例では説明の便宜上、一部
についてのみDMAコントローラによるダイレクトメモ
リアクセスを用いる場合を例示したが、殆どのハードモ
ジュール間のデータ転送をDMAコントローラによるダ
イレクトメモリアクセスにより行うようにしてもよく、
このようにすれば、一層データ処理速度を向上させるこ
とが可能となる。
Further, in the above embodiment, for the sake of convenience of description, the case where the direct memory access by the DMA controller is used only partially is illustrated, but the data transfer between most of the hardware modules is performed by the direct memory access by the DMA controller. Maybe,
By doing so, it becomes possible to further improve the data processing speed.

【0117】[0117]

【発明の効果】以上説明したように、請求項1記載の符
号化処理装置によれば、並べ替え手段による画素(ドッ
ト)の並べ替えのみでなく、この並べ替え処理の対象と
ならない濃淡変化が大である画像ブロックについては置
き換え手段による濃淡変化の小さい画像ブロックのデー
タへの置き換えが行われ、更に、この並べ替え処理及び
置き換え処理で得られた画像データのラインの並べ替え
がライン並べ替え手段で行われた後に符号化手段による
圧縮符号化が行われることから、単に各ブロックのドッ
トの並べ替え処理後に符号化を行う従来例の場合に比較
してデータ符号化の際の圧縮効率をより一層向上させる
ことができるという従来にない優れた効果がある。
As described above, according to the encoding processing apparatus of the first aspect, not only the rearrangement of the pixels (dots) by the rearrangement means but also the change in the light and shade that is not the target of the rearrangement processing are performed. With respect to a large image block, the replacement means replaces the image block with a small change in shading with the data, and the rearrangement processing and the rearrangement of the lines of the image data obtained by the replacement processing are performed by the line rearrangement means. Since the compression encoding is performed by the encoding means after that, the compression efficiency at the time of data encoding is improved as compared with the case of the conventional example in which the encoding is simply performed after the dot rearrangement processing of each block. There is an unprecedented excellent effect that it can be further improved.

【0118】また、請求項2記載の符号化復号化処理装
置によれば、請求項1記載の発明と同様にして符号化が
行われると共に、復号化に際してはライン並べ返し手段
によるラインの並べ返し処理の後、復号された判定結果
識別データに基づいて各ブロック毎に画素の並べ返し処
理又はブロックの置き換え処理が行われ、結果的に元の
ディザ画像データを復号することができることから、復
号化後に得られる画像の画質劣化を招くことなく、デー
タ符号化の際の圧縮効率のより一層の向上を図ることが
できるという効果がある。
According to the encoding / decoding processing device of the second aspect, the encoding is performed in the same manner as the invention of the first aspect, and at the time of decoding, the line rearranging means rearranges the lines. After the processing, pixel rearrangement processing or block replacement processing is performed for each block based on the decoded determination result identification data, and as a result, the original dither image data can be decoded. There is an effect that the compression efficiency at the time of data encoding can be further improved without deteriorating the image quality of an image obtained later.

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

【図1】一実施例に係る符号化復号化処理装置の構成を
概略的に示すブロック図である。
FIG. 1 is a block diagram schematically showing a configuration of an encoding / decoding processing apparatus according to an embodiment.

【図2】図1の符号化処理部を構成するCPUの主要な
制御プログラムを示すフローチャートである。
FIG. 2 is a flowchart showing a main control program of a CPU which constitutes the encoding processing unit of FIG.

【図3】図2の置き換え画像のラインを並べ替えるサブ
ルーチンを示すフローチャートである。
FIG. 3 is a flowchart showing a subroutine for rearranging the lines of the replacement image of FIG.

【図4】図2の並べ替え画像1のカラムを並べ替えるサ
ブルーチンを示すフローチャートである。
FIG. 4 is a flowchart showing a subroutine for rearranging the columns of the rearranged image 1 in FIG.

【図5】図1の復号化処理部を構成するCPUの主要な
制御プログラムを示すフローチャートである。
5 is a flowchart showing a main control program of a CPU which constitutes the decoding processing unit of FIG. 1. FIG.

【図6】図5の並べ替え画像2のカラムを並べ替えるサ
ブルーチンを示すフローチャートである。
FIG. 6 is a flowchart showing a subroutine for rearranging the columns of the rearranged image 2 in FIG.

【図7】図5の並べ替え画像1のラインを並べ替えるサ
ブルーチンを示すフローチャートである。
7 is a flowchart showing a subroutine for rearranging the lines of the rearranged image 1 in FIG.

【図8】並べ替え処理部の並べ替え原理を説明するため
の図である。
FIG. 8 is a diagram for explaining a rearrangement principle of a rearrangement processing unit.

【図9】(A)は図3のフローチャートに沿って行われ
た置き換え画像のライン並べ替え処理の一例を示す図、
(B)は図4のフローチャートに沿って行われた並べ替
え画像1のカラム並べ替え処理の一例を示す図である。
9A is a diagram showing an example of line rearrangement processing of a replacement image performed according to the flowchart of FIG. 3;
(B) is a diagram showing an example of a column rearrangement process of the rearranged image 1 performed according to the flowchart of FIG. 4.

【図10】符号化処理部におけるディザ処理及びブロッ
ク置き換え処理を説明するための図である。
FIG. 10 is a diagram for describing dither processing and block replacement processing in the encoding processing unit.

【図11】符号化処理部による主要な処理により得られ
るデータを視覚的に示す図であって、(A)はライン並
べ替え処理によって得られる並べ替え画像1の一例を示
す図、(B)はカラム並べ替え処理によって得られる並
べ替え画像2の一例を示す図である。
11A and 11B are diagrams visually showing data obtained by main processing by the encoding processing unit, FIG. 11A showing an example of a rearranged image 1 obtained by line rearrangement processing, and FIG. FIG. 6 is a diagram showing an example of a rearranged image 2 obtained by a column rearrangement process.

【図12】上記実施例の変形例を説明するための図であ
って、ディザ画像データの濃淡変化の小さい画像ブロッ
クのみをドットの並べ替えを行って得られる並べ替え画
像データの一例を示す。
FIG. 12 is a diagram for explaining a modified example of the above-described embodiment, showing an example of rearranged image data obtained by rearranging dots only in an image block in which dither image data has a small change in shading.

【図13】従来例の符号化処理方法を説明するための図
である。
FIG. 13 is a diagram for explaining a conventional encoding processing method.

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

12 CPU(第1のブロック抽出手段、判定手段、第
1の置き換え手段、格納制御手段、ライン並べ替え手
段、符号化制御手段) 16 RAM(第1の格納手段) 20 ディザ処理部(ディザ処理手段) 24 符号化部(符号化手段) 22 並べ替え処理部(並べ替え手段) 28 画像メモリ(第2の格納手段) 32 CPU(ライン並べ返し手段、第2の画像ブロッ
ク抽出手段、第2の置き換え手段) 40 復号化部(復号化手段) 48 並べ返し処理部(並べ返し手段) 100 符号化復号化処理装置
12 CPU (first block extraction means, determination means, first replacement means, storage control means, line rearrangement means, coding control means) 16 RAM (first storage means) 20 Dither processing unit (dither processing means) ) 24 encoding unit (encoding means) 22 rearrangement processing unit (rearranging means) 28 image memory (second storage means) 32 CPU (line rearrangement means, second image block extraction means, second replacement) Means) 40 Decoding unit (Decoding means) 48 Reordering processing unit (Reordering means) 100 Encoding / decoding processing device

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 H03M 7/30 Z 9382−5K ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Office reference number FI technical display location H03M 7/30 Z 9382-5K

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 画像データを圧縮符号化する符号化手段
を備えた符号化処理装置であって、 濃淡画像データから所定サイズの画像ブロックを順次抽
出するブロック抽出手段と、 前記抽出された各画像ブロックの濃淡変化の大小を判定
する判定手段と、 前記ブロック抽出手段により抽出された各画像ブロック
を所定のディザマトリックスを用いてディザ処理してデ
ィザ画像データに変換するディザ処理手段と、 前記判定手段により濃淡変化が小であると判定された画
像ブロックについては前記ディザ画像データをディザマ
トリクスの要素である閾値の大きさの順に各画素データ
を並べ替えた2値データに変換する並べ替え手段と、 前記判定手段により濃淡変化が大であると判定された置
き換え画像ブロックについてはその画像ブロックの前記
ディザ画像データを前記並べ替え手段によりそれまでに
並べ替えが行われたいずれかのブロックの2値データに
置き換える置き換え手段と、 画像データ格納用の第1及び第2の格納手段と、 前記置き換え画像ブロックの置き換え前のディザデータ
を前記第1の格納手段に格納すると共に前記並べ替え手
段により並べ替え処理された画像ブロックの2値データ
と前記置き換え手段により置き換え処理された画像ブロ
ックの2値データとを前記第2の格納手段に格納して展
開する格納制御手段と、 前記第2の格納手段に展開された画像データの横方向の
ライン又は横方向及び縦方向のラインを所定の順序に並
べ替えるライン並べ替え手段と、 前記第1の格納手段に格納された置き換え画像ブロック
の置き換え前のディザデータと前記ライン並べ替え手段
により並べ替えられた後の画像データとを前記符号化手
段に転送する符号化制御手段と、 を有する符号化処理装置。
1. A coding processing device comprising a coding means for compressing and coding image data, comprising block extraction means for sequentially extracting image blocks of a predetermined size from grayscale image data, and each of the extracted images. Determining means for determining the magnitude of the shade change of the block; dither processing means for dithering each image block extracted by the block extracting means using a predetermined dither matrix to convert it into dither image data; For the image block determined to have a small change in shading, the dither image data is rearranged into binary data in which each pixel data is rearranged in the order of the threshold value which is an element of the dither matrix. For the replacement image block determined to have a large change in shading by the determination means, Replacement means for replacing the user image data with binary data of one of the blocks rearranged by the rearrangement means, first and second storage means for storing image data, and the replacement The dither data before replacement of the image block is stored in the first storage means and the binary data of the image block rearranged by the rearranging means and the binary data of the image block rearranged by the replacing means. And a storage control means for storing and developing in the second storage means, and a horizontal line or horizontal and vertical lines of the image data expanded in the second storage means arranged in a predetermined order. Line rearrangement means for changing, dither data before replacement of the replacement image block stored in the first storage means, and the line arrangement Encoding apparatus having an encoding control means for transferring image data to said encoding means after being sorted by the example section.
【請求項2】画像データを圧縮符号化する符号化手段
と、符号化データを復号する復号化手段とを備えた符号
化復号化処理装置であって、 濃淡画像データから所定サイズの画像ブロックを順次抽
出する第1のブロック抽出手段と、 前記抽出された各画像ブロックの濃淡変化の大小を判定
すると共に判定結果を示す判定結果識別データを作成す
る判定手段と、 前記ブロック抽出手段により抽出された各画像ブロック
を所定のディザマトリックスを用いてディザ処理してデ
ィザ画像データに変換するディザ処理手段と、 前記判定手段により濃淡変化が小であると判定された画
像ブロックについてはその画像ブロックの前記ディザ画
像データをディザマトリクスの要素である閾値の大きさ
の順に各画素データを並べ替えた2値データに変換する
並べ替え手段と、 前記判定手段により濃淡変化が大であると判定された置
き換え画像ブロックについてはその画像ブロックのディ
ザ画像データを前記並べ替え手段によりそれまでに並べ
替えが行われたいずれかのブロックの2値データに置き
換える第1の置き換え手段と、 画像データ格納用の第1及び第2の格納手段と、 前記置き換え画像ブロックの置き換え前のディザデータ
を前記第1の格納手段に格納すると共に前記並べ替え手
段により並べ替え処理された画像ブロックのデータと前
記置き換え手段により置き換え処理された画像ブロック
のデータとを前記第2の格納手段に格納して展開する格
納制御手段と、 前記第2の格納手段に展開された画像データの横方向の
ライン又は横方向及び縦方向のラインを所定の順序に並
べ替えるライン並べ替え手段と、 前記判定結果識別データ、前記置き換え画像ブロックの
置き換え前のディザデータ及び前記ライン並べ替え手段
で並べ替え処理された画像データを前記符号化手段に転
送する符号化制御手段と、 復号された前記画像データの横方向のライン又は横方向
及び縦方向のラインを元の順序に並べ返すライン並べ返
し手段と、 前記ライン並べ返し手段による並べ返し処理後の画像デ
ータから前記第1のブロック抽出手段により抽出される
画像ブロックと同一サイズの画像ブロックを順次抽出す
る第2の画像ブロック抽出手段と、 復号された前記判定結果識別データが入力画像ブロック
の濃度変化が小さいことを示す場合には前記第2の画像
ブロック抽出手段により抽出されたその画像ブロックの
画像データの各画素を元の配置に並べ返す並べ返し手段
と、 復号された前記判定結果識別データが入力画像ブロック
の濃度変化が大きいことを示す場合には、前記第2の画
像ブロック抽出手段により抽出されたその画像ブロック
の画像データを復号された置き換え画像ブロックの置き
換え前のディザ画像データに置き換える第2の置き換え
手段と、 を有する符号化復号化処理装置。
2. A coding / decoding processing device comprising a coding means for compressing and coding image data and a decoding means for decoding the coded data, wherein an image block of a predetermined size is generated from the grayscale image data. First block extraction means for sequentially extracting, determination means for determining the size of the change in grayscale of each of the extracted image blocks and creating determination result identification data indicating the determination result, and the block extraction means for extracting Dither processing means for converting each image block into dither image data by dithering it using a predetermined dither matrix; and for the image block judged to have a small change in shading by the judging means, the dither of the image block The image data is converted into binary data in which each pixel data is rearranged in the order of the size of the threshold value which is an element of the dither matrix. Reordering means, and for the replacement image block determined by the determining means to have a large change in shading, the dither image data of the image block is one of the blocks that have been rearranged by the rearranging means. First replacement means for replacing the replacement image block with the binary data, first and second storage means for storing image data, and dither data before replacement of the replacement image block is stored in the first storage means. Storage control means for storing the image block data rearranged by the rearranging means and the image block data rearranged by the replacing means in the second storing means and expanding the same; A line for rearranging the horizontal lines or the horizontal and vertical lines of the image data developed by the means in a predetermined order. A rearrangement means, an encoding control means for transferring the determination result identification data, the dither data before the replacement of the replacement image block and the image data rearranged by the line rearrangement means to the encoding means; The first block from the line data rearrangement means for rearranging the horizontal lines or the horizontal and vertical lines of the image data in the original order, and the image data after the rearrangement processing by the line rearrangement device. Second image block extracting means for sequentially extracting image blocks of the same size as the image block extracted by the extracting means, and the decoded determination result identification data indicates that the density change of the input image block is small. Each pixel of the image data of the image block extracted by the second image block extracting means is arranged in the original arrangement. When the decoded determination result identification data indicates that the density change of the input image block is large, the image data of the image block extracted by the second image block extracting unit is returned. And a second replacement unit that replaces the decoded replacement image block with the dither image data before replacement.
JP6157135A 1994-07-08 1994-07-08 Coding processing unit and coding decoding processing unit Pending JPH0823447A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6157135A JPH0823447A (en) 1994-07-08 1994-07-08 Coding processing unit and coding decoding processing unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6157135A JPH0823447A (en) 1994-07-08 1994-07-08 Coding processing unit and coding decoding processing unit

Publications (1)

Publication Number Publication Date
JPH0823447A true JPH0823447A (en) 1996-01-23

Family

ID=15642972

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6157135A Pending JPH0823447A (en) 1994-07-08 1994-07-08 Coding processing unit and coding decoding processing unit

Country Status (1)

Country Link
JP (1) JPH0823447A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6785424B1 (en) 1999-08-13 2004-08-31 Canon Kabushiki Kaisha Encoding method and apparatus for compressing a data structure having two or more dimensions, decoding method, and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6785424B1 (en) 1999-08-13 2004-08-31 Canon Kabushiki Kaisha Encoding method and apparatus for compressing a data structure having two or more dimensions, decoding method, and storage medium

Similar Documents

Publication Publication Date Title
US6751356B2 (en) Image processing apparatus and method
JP4100782B2 (en) Error diffusion value processing method
JP3843581B2 (en) Image encoding device, image decoding device, image processing device, image encoding method, image decoding method, and image processing method
JPH0863606A (en) System and method for compression of graphic image
JPH08116447A (en) Coder for image signal
US5461682A (en) Image filing apparatus providing image data suitable for several input/output devices
JPH04328960A (en) Picture data transmitter
US7050645B2 (en) Image processing apparatus and image processing method
US8023756B2 (en) Image encoding apparatus and method of controlling same
JPH07322074A (en) Equipment and method for data processing to process 2 level image file that a dither ring happened
JPH0823447A (en) Coding processing unit and coding decoding processing unit
JPS63182973A (en) Pseudo half-tonal image transmission method for facsimile equipment
JP2002354233A (en) Method and device for picture size reduction and storage medium
JPH1098620A (en) Picture processor
JP3361201B2 (en) Image encoding apparatus, image encoding / decoding apparatus, and image encoding / decoding method
JPH0918877A (en) Fractal image compression device
JP2003153008A (en) Image coding device and image decoding device
JPH1141472A (en) Image data processor
JP2002010084A (en) Coding device, decoding device, coding method, decoding method, and computer readable storage medium which stores program for making computer execute the decoding method
JPH089161A (en) Image data processing unit
JP3249647B2 (en) Image processing device
JPH06339020A (en) Picture processing method and device
JPH0322759A (en) Information processor equipped with artificial half-tone image processing function
JPH10200715A (en) Picture data storage method/device
JP3128874B2 (en) Halftone image encoding method