Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2936042B2 - Binary image transmission device - Google Patents
[go: Go Back, main page]

JP2936042B2 - Binary image transmission device - Google Patents

Binary image transmission device

Info

Publication number
JP2936042B2
JP2936042B2 JP5257014A JP25701493A JP2936042B2 JP 2936042 B2 JP2936042 B2 JP 2936042B2 JP 5257014 A JP5257014 A JP 5257014A JP 25701493 A JP25701493 A JP 25701493A JP 2936042 B2 JP2936042 B2 JP 2936042B2
Authority
JP
Japan
Prior art keywords
block
image
encoding
decoding
pixel
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.)
Expired - Lifetime
Application number
JP5257014A
Other languages
Japanese (ja)
Other versions
JPH07111594A (en
Inventor
健晴 菊池
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.)
Consejo Superior de Investigaciones Cientificas CSIC
Original Assignee
Consejo Superior de Investigaciones Cientificas CSIC
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 Consejo Superior de Investigaciones Cientificas CSIC filed Critical Consejo Superior de Investigaciones Cientificas CSIC
Priority to JP5257014A priority Critical patent/JP2936042B2/en
Publication of JPH07111594A publication Critical patent/JPH07111594A/en
Application granted granted Critical
Publication of JP2936042B2 publication Critical patent/JP2936042B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、例えばファクシミリ
のような、2値画像伝送装置に関し、より詳細には、2
値擬似中間調画像の伝送が可能な2値画像伝送装置に関
するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a binary image transmitting apparatus such as a facsimile, and more particularly, to a binary image transmitting apparatus.
The present invention relates to a binary image transmission device capable of transmitting a pseudo-halftone image.

【0002】[0002]

【従来の技術】近年、写真などの中間調画像を伝送する
必要性が高まっている。しかし、中間調画像をそのまま
伝送することは1画素あたりのビット数を8ビット以上
とる必要があり、伝送符号量が大幅に増加し、また、中
間調画像を紙面などに印刷する装置は、非常に高価なこ
とから、中間調画像をそのまま伝送する方式は、普及し
ていない。
2. Description of the Related Art In recent years, there has been an increasing need to transmit halftone images such as photographs. However, transmitting a halftone image as it is requires the number of bits per pixel to be 8 bits or more, which greatly increases the amount of transmission code, and a device for printing a halftone image on paper or the like is very difficult. Due to the high cost, a method of transmitting a halftone image as it is has not been widely used.

【0003】そこで、中間調画像を白黒の2値だけを用
い、画像の階調を黒画素の密度の変化を用いて、擬似的
に中間調を表す擬似中間調画像を生成し、2値画像伝送
として、普及しているファクシミリ装置によりの写真な
どの画像を伝送することが試みられてきた。
Therefore, a pseudo halftone image representing a pseudo halftone is generated by using only a black and white binary image as a halftone image and using a change in density of black pixels as a gradation of the image. Attempts have been made to transmit images, such as photographs, by a popular facsimile machine as transmission.

【0004】ところで、ファクシミリ装置に用いられる
符号化方式として、一般にMH方式、MR方式などが使
用されている。これらの方式は、ランレングスを基準と
したアドレス符号化であり、連続して出現する黒(白)
画素に一つの符号語を割り当てている。MH方式は、文
書画像に対して走査線方向のランレングスをハフマン符
号化することを基本としており、MR方式は、符号化す
る走査線および前の走査線を基準とする画素の状態の差
を符号化する2次元符号化方式である。
[0004] As an encoding method used in a facsimile apparatus, an MH method, an MR method and the like are generally used. These systems are address coding based on run length, and appear continuously in black (white).
One codeword is assigned to each pixel. The MH method is based on Huffman coding of a scan length in a scanning line direction on a document image, and the MR method determines a difference between states of pixels based on a scanning line to be coded and a previous scanning line. This is a two-dimensional encoding method for encoding.

【0005】また、最近の2値画像符号化方式として、
符号化する画素の情報を以前に符号化した画素の状態に
よるマルコフ情報源と考え、状態遷移確率に基づき、算
術符号化をするものがある。
Further, as a recent binary image coding method,
There is one that considers information of a pixel to be encoded as a Markov information source based on a previously encoded pixel state and performs arithmetic encoding based on a state transition probability.

【0006】この方法は、黒(白)画素の分布状態に周
期性があれば、以前に符号化された画素から現在符号化
しようとする画素の情報を高い確率で推定でき、高い情
報圧縮を実現できる。
According to this method, if the distribution state of black (white) pixels has periodicity, it is possible to estimate the information of the pixel to be currently coded from the previously coded pixels with a high probability, and achieve high information compression. realizable.

【0007】[0007]

【発明が解決しようとする課題】上記したMH方式やM
R方式は、その性格上、文字だけを含む2値画像に対し
ては効率良く機能し、高い符号圧縮率を得ることができ
る。しかし、2値擬似中間調画像に対しては、その黒
(白)画素のランレングスの分布状況が、上記文字だけ
の画像に対するランレングスと大きく異なることから高
い符号圧縮は、実現できない。
The above-mentioned MH system and M
Due to its characteristics, the R method works efficiently for a binary image containing only characters, and can obtain a high code compression rate. However, high code compression cannot be realized for a binary pseudo halftone image because the run length distribution of black (white) pixels is significantly different from the run length for an image of only characters.

【0008】また、2値擬似中間調画像は、その生成法
によって、画素の周期性をほとんどなくしているものが
あり、状態遷移確率に基づく方法でも、高い情報圧縮が
望めないことがある。
In some cases, the binary pseudo-halftone image has little or no pixel periodicity due to its generation method, and high information compression may not be expected even with a method based on the state transition probability.

【0009】結局、2値擬似中間調画像は、上記したよ
うに高い情報圧縮が実現できず、従って伝送に有する符
号量が、増大するため、伝送コストがかかり、また、伝
送時間も多くかかるという問題があった。このようなこ
とから、2値擬似中間調画像を効率良く圧縮、伝送する
符号化方式が強く望まれている。
As a result, binary pseudo halftone images cannot achieve high information compression as described above, and therefore the amount of codes in transmission increases, so that transmission costs and transmission time are increased. There was a problem. For this reason, an encoding method for efficiently compressing and transmitting a binary pseudo halftone image is strongly desired.

【0010】[0010]

【課題を解決するための手段】この発明は上記のような
問題点を解決するためになされたもので、画像データを
記憶する記憶手段と、上記記憶手段に記憶された画像デ
ータに対し圧縮符号化する符号化手段と、圧縮符号化さ
れた画像データを復号する復号手段とを備えた2値画像
伝送装置であって、前記符号化手段が、伝送される画像
データが、擬似中間調画像であった場合に、原画像から
一時的に孤立点を除去し、画像のエッジ部を強調する手
段と、該画像を適応的に4×4から16×16のサイズ
の異なるブロックに分割する手段と、4×4のサイズの
ブロックに対しては、原画像におけるブロック内の画素
パターン情報を符号化し、その他のサイズのブロックに
対しては、ブロック内の黒画素数をカウントすることに
より求めた、ブロックの階調情報を符号化する手段と、
各ブロックのサイズを符号化する手段とを備えることを
特徴とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problems, and has a storage means for storing image data and a compression code for the image data stored in the storage means. A binary image transmission device comprising an encoding unit for encoding, and a decoding unit for decoding the compression-encoded image data, wherein the encoding unit converts the image data to be transmitted to a pseudo halftone image. Means for temporarily removing isolated points from the original image and enhancing edge portions of the image, and means for adaptively dividing the image into blocks of different sizes from 4 × 4 to 16 × 16. For a block of size 4 × 4, the pixel pattern information in the block in the original image is encoded, and for blocks of other sizes, the number of black pixels in the block is determined by counting. Block Means for encoding the tone information,
Means for encoding the size of each block.

【0011】また、前記復号手段が、 符号化された画
像データを受信すると、ブロックサイズが4×4であっ
た場合に、それに続くパターン情報によりブロックの画
像を復号する手段と、ブロックサイズがそれ以外であっ
た場合に、それに続く、ブロック階調情報に基づき、ブ
ロック内に黒画素を乱数によりランダムに配置すること
で画像を復元し、受信された符号を復号する手段とを備
えることを特徴とする。
When the decoding means receives the coded image data, if the block size is 4 × 4, the decoding means decodes the image of the block by using the following pattern information. If it is other than the above, based on the block gradation information, a means for restoring an image by randomly arranging black pixels in a block by random numbers based on the block gradation information and decoding a received code is provided. And

【0012】[0012]

【作用】上記した構成においては、擬似中間調画像を含
む2値画像を伝送する場合、擬似中間調領域に関して
は、原画像から一時的に孤立点を除去し、画像のエッジ
部を強調した後、適応的に4×4から16×16のサイ
ズの異なるブロックに分割し、する手段と、4×4のサ
イズのブロックに対しては、画像のエッジ部分を保存す
るために原画像におけるブロック内の画素パターン情報
をそのまま符号化し、その他のサイズのブロックに対し
ては、ブロック内の黒画素数をカウントすることにより
求めた、ブロックの階調情報を符号化することにより、
伝送する情報量を大幅に削減する。
In the above arrangement, when transmitting a binary image including a pseudo halftone image, the pseudo halftone region is obtained by temporarily removing isolated points from the original image and emphasizing the edges of the image. Means for adaptively dividing into blocks of different sizes from 4 × 4 to 16 × 16, and for blocks of 4 × 4 size, in order to preserve the edges of the image, By directly encoding the pixel pattern information of, and for blocks of other sizes, by encoding the grayscale information of the block obtained by counting the number of black pixels in the block,
Significantly reduce the amount of information to be transmitted.

【0013】また、受信側では、4×4ブロック以外の
ブロックに対しては、ブロック内の階調情報に基づき、
乱数を用い、黒画素のランレングスが可能な限り1にす
ることを条件にランダムにブロック内に配置し復元し、
画像のエッジ部分などは、原画像の画素パターンを保存
することにより復元を行ない受信画像を得る。
On the receiving side, for a block other than the 4 × 4 block, based on the gradation information in the block,
Using random numbers, on the condition that the run length of the black pixel is set to 1 as much as possible, it is randomly arranged and restored in the block,
The edge portion of the image is restored by storing the pixel pattern of the original image to obtain a received image.

【0014】[0014]

【実施例】以下、この発明の一実施例を図面に基づき説
明する。
An embodiment of the present invention will be described below with reference to the drawings.

【0015】図1は、この発明の一実施例を示すブロッ
ク図であり、画像伝送装置は、画像を読み取る読取部
1、読み取った画像データを記憶することができる画像
蓄積メモリ2、読み取られた原画像から孤立点を除去し
画像のエッジ部を強調する前処理部9、該前処理部9に
てエッジ強調された画像データに対し、適応的に大きさ
の異なるブロックに分割するブロック判定部3、該ブロ
ック判定て決定されたブロックの大きさおよびブロック
内における画像データの画素パターンまたは、ブロック
階調を求め符号化する符号化器と受信されたデータから
ブロックの大きさおよび画素パターンまたは、ブロック
階調を得る復号器を備えた符号化/復号部4、回線を通
じ装置間の通信を制御する網制御部5、受信されたデー
タのブロック階調から画素を復元する時に参照される乱
数発生部6、画像データを出力する記録部7、上記され
た各装置を制御する制御部8とを具備してなる。
FIG. 1 is a block diagram showing an embodiment of the present invention. An image transmitting apparatus includes a reading unit 1 for reading an image, an image storage memory 2 capable of storing read image data, and a read image. A preprocessing unit 9 for removing an isolated point from an original image and enhancing an edge portion of the image; a block determination unit for adaptively dividing the image data edge-emphasized by the preprocessing unit 9 into blocks having different sizes. 3. The size of the block determined by the block determination and the pixel pattern of the image data in the block, or the size and the pixel pattern of the block from the encoder and the received data, which determine and encode the block gradation, or An encoding / decoding unit 4 having a decoder for obtaining a block gradation, a network control unit 5 for controlling communication between devices through a line, and a block gradation of received data. Random number generator 6, which is referred to when restoring the pixel, recording unit 7 for outputting image data, comprising and a control unit 8 for controlling each device that is described above.

【0016】読取部1、画像蓄積メモリ2、前処理部
9、符号化/復号部4、乱数発生部6及び記録部7は夫
々制御部8に接続されており、ブロック判定部3は前処
理部9に、網制御部5は符号化/復号部4に夫々接続さ
れている。
The reading section 1, the image storage memory 2, the preprocessing section 9, the encoding / decoding section 4, the random number generation section 6 and the recording section 7 are connected to a control section 8, respectively. The network control unit 5 is connected to the encoding / decoding unit 4.

【0017】以下、上記した構成にてなる画像伝送装置
の動作を説明する。
Hereinafter, the operation of the image transmission apparatus having the above configuration will be described.

【0018】読取部1により読み取られた画像データ
は、一旦、画像蓄積メモリ2に蓄積される。蓄積された
画像データは、前処理部9により孤立点が除去された
後、ウロック判定部3により、図2に示してあるa〜g
までの大きさのことなるブロックに分割される。ブロッ
クaは縦横4×4画素からなるブロックであり、ブロッ
クbは同じく4×8、ブロックcは8×4、ブロックd
は8×8、ブロックeは8×16、ブロックfは16×
8、ブロックgは16×16の画素ブロックである。ブ
ロックb、cはブロックaに対して、ブロックe、fは
ブロックdに対して、ブロックgは、ブロックe、fに
対して、夫々2倍のブロック面積を有している。
Image data read by the reading unit 1 is temporarily stored in an image storage memory 2. After the isolated points are removed from the accumulated image data by the pre-processing unit 9, the alock determination unit 3 performs ag to g shown in FIG.
It is divided into blocks of different sizes up to. Block a is a block composed of 4 × 4 pixels vertically and horizontally, block b is also 4 × 8, block c is 8 × 4, and block d.
Is 8 × 8, block e is 8 × 16, block f is 16 ×
8. Block g is a 16 × 16 pixel block. Blocks b and c have a block area twice that of block a, blocks e and f have a block area twice that of block d, and block g has a block area that is twice that of blocks e and f.

【0019】ブロック分割は、図3に示される条件に従
い実行される。前処理部9による孤立点除去の結果は、
ブロック判定時にのみ参照される。この処理により画像
のエッジ部分が強調され、ブロック判定時に最小ブロッ
クがより正確にエッジ部へと割り当てられる。ブロック
分割は、ブロックaからはじめ順次ブロックb、ブロッ
クcとブロックを変化させていき、各ブロックの前処理
後の画像における黒画素数をそのブロックのブロック階
調とし、現在のブロックのブロック階調と1段階変化さ
せたブロックのブロック階調を比較し、ブロック面積あ
たりのブロック階調の差がしきい値以下であれば、ブロ
ックを1段階変化させ、そうでなければ、現在のブロッ
クサイズによりブロック分割する。しきい値は、ブロッ
クaからブロックbおよびブロックcへブロックを拡大
するときには、0に設定し、その他の場合は、1に設定
する。これは、最小サイズのブロックaが画像のエッジ
部分におもに割り当てられるため、条件を厳しくするこ
とでエッジ部分を多くするようにし、画質の劣化をおさ
えるためである。一度ブロック分割された画素の位置
は、記憶されて、ブロックを変化した場合、一度ブロッ
クに分割された画素が再びブロック内に含まれるかどう
かが判定され、もし再びブロックに含まれるのであれ
ば、ブロックを変化させるのは停止され、その時のブロ
ックが採用される。これにより異なるブロックが同じ画
素を含むことは、なくなる。
The block division is performed according to the conditions shown in FIG. The result of the isolated point removal by the preprocessing unit 9 is as follows:
It is referred only at the time of block judgment. By this processing, the edge portion of the image is emphasized, and the smallest block is more accurately assigned to the edge portion at the time of block determination. In the block division, the blocks are sequentially changed from the block a to the blocks b and c, and the number of black pixels in the preprocessed image of each block is set as the block gradation of the block, and the block gradation of the current block is set. And the block gradation of the block changed by one step is compared. If the difference of the block gradation per block area is equal to or smaller than the threshold value, the block is changed by one step. Divide into blocks. The threshold is set to 0 when the block is expanded from block a to block b and block c, and is set to 1 in other cases. This is because the block a having the minimum size is mainly assigned to the edge portion of the image, so that the conditions are made strict to increase the number of edge portions and to suppress the deterioration of the image quality. The position of the pixel once divided into blocks is stored, and when the block is changed, it is determined whether the pixel once divided into blocks is included again in the block, and if the pixel is once again included in the block, Changing the block is stopped and the block at that time is adopted. This prevents different blocks from including the same pixel.

【0020】以下、図3のフローチャートを説明する。
A〜Gを、分割するブロックをブロックa〜gとしたと
きの、夫々のブロックに含まれる黒画素数(階調)とす
ると、まずステップS31にて、2AとBとの差が0以
下か否かを判定する。これにより、分割するブロックを
ブロックaとした場合とブロックbとした場合とで、ブ
ロック面積あたりのブロック階調の差が0以下か否かが
判定される。ここで、もし、差が0以下ならばステップ
S32に進み、0より大きいならばステップS39に進
む。
Hereinafter, the flowchart of FIG. 3 will be described.
Assuming that A to G are the number of black pixels (gradations) included in each block when the blocks to be divided are blocks a to g, first in step S31, is the difference between 2A and B equal to or less than 0? Determine whether or not. Thus, it is determined whether or not the difference in block gradation per block area is 0 or less when the block to be divided is block a and block b. Here, if the difference is equal to or smaller than 0, the process proceeds to step S32, and if it is larger than 0, the process proceeds to step S39.

【0021】ステップS39では、2AとCとの差が0
以下か否かを判定する。差が0より大きければ、分割す
るブロックをブロックaとして、また差が0以下なら
ば、分割するブロックをブロックcとする。
In step S39, the difference between 2A and C is zero.
It is determined whether or not: If the difference is greater than 0, the block to be divided is taken as block a, and if the difference is less than 0, the block to be divided is taken as block c.

【0022】ステップS32では、ステップS38と同
様、2AとCとの差が1以下か否かを判定する。差が1
より大きければ、分割するブロックをブロックbとし
て、また差が1以下ならば、ステップS33に進む。
In step S32, as in step S38, it is determined whether the difference between 2A and C is 1 or less. The difference is 1
If it is larger, the block to be divided is set to block b, and if the difference is 1 or less, the process proceeds to step S33.

【0023】ステップS33では、2BとDとの差が1
以下か否かを判定する。差が1より大きければ、分割す
るブロックをブロックcとして、また差が1以下なら
ば、ステップS34に進む。
In step S33, the difference between 2B and D is 1
It is determined whether or not: If the difference is greater than 1, the block to be divided is set to block c. If the difference is 1 or less, the process proceeds to step S34.

【0024】ステップS34では、2CとDとの差が1
以下か否かを判定する。差が1より大きければ、分割す
るブロックをブロックbとして、また差が1以下なら
ば、ステップS35に進む。
In step S34, the difference between 2C and D is 1
It is determined whether or not: If the difference is larger than 1, the block to be divided is set to block b. If the difference is 1 or smaller, the process proceeds to step S35.

【0025】ステップS35では、2DとEとの差が1
以下か否かを判定する。差が1より大きければ、ステッ
プS40に進み、また差が1以下ならば、ステップS3
6に進む。
In step S35, the difference between 2D and E is 1
It is determined whether or not: If the difference is greater than 1, the process proceeds to step S40. If the difference is 1 or less, the process proceeds to step S3.
Proceed to 6.

【0026】ステップS40では、2DとFとの差が1
以下か否かを判定する。差が1より大きければ、分割す
るブロックをブロックdとして、また差が1以下なら
ば、分割するブロックをブロックfとする。
In step S40, the difference between 2D and F is 1
It is determined whether or not: If the difference is larger than 1, the divided block is set as a block d, and if the difference is 1 or smaller, the divided block is set as a block f.

【0027】ステップS36では、ステップS40と同
様、2DとFとの差が1以下か否かを判定する。差が1
より大きければ、分割するブロックをブロックeとし
て、また差が1以下ならば、ステップS37に進む。
In step S36, as in step S40, it is determined whether the difference between 2D and F is 1 or less. The difference is 1
If it is larger, the block to be divided is set to block e. If the difference is 1 or less, the process proceeds to step S37.

【0028】ステップS37では、2EとGとの差が1
以下か否かを判定する。差が1より大きければ、分割す
るブロックをブロックfとして、また差が1以下なら
ば、ステップS38に進む。
In step S37, the difference between 2E and G is 1
It is determined whether or not: If the difference is larger than 1, the block to be divided is set to block f. If the difference is 1 or smaller, the process proceeds to step S38.

【0029】ステップS38では、2FとGとの差が1
以下か否かを判定する。差が1より大きければ、分割す
るブロックをブロックeとして、また差が1以下なら
ば、分割するブロックをブロックgとする。
In step S38, the difference between 2F and G is 1
It is determined whether or not: If the difference is larger than 1, the block to be divided is set to block e, and if the difference is 1 or less, the block to be divided is set to block g.

【0030】以上の処理により、ブロックが判定される
と符号化/復号部4により、まずブロックのサイズの情
報が符号化される。ブロックサイズの符号化は、符号化
するブロックのサイズの情報をひとつ前のブロックサイ
ズとの差分をとり、差分値の出現確立に基づき、平均符
合長が最小となるハフマン符号テーブルを参照し符号化
される。
When a block is determined by the above processing, the encoding / decoding section 4 first encodes information on the size of the block. The block size coding calculates the difference between the block size information to be coded and the previous block size and, based on the appearance of the difference value, refers to the Huffman code table that minimizes the average code length and performs coding. Is done.

【0031】続いて、ブロック内の黒画素の状態に関す
る情報が符号化される。
Subsequently, information on the state of the black pixel in the block is encoded.

【0032】ブロック内の黒画素の状態は、ブロックa
に対するときは、1画素を1ビットとし、図4で示され
るように右下隅をLSBとし、右から左、下から上へと
進み、左上隅かMSBとなるようなビット順序で、黒画
素に対しては「1」、白画素に対しては「0」を割り振
ることにより、16ビットの値にし、ブロックの画素パ
ターンに対応するパターンデータとする。パタンデータ
は各パターン毎の出現確立により、平均符号長が最小と
なるようにあらかじめ定義したパターン符号テーブルを
参照し、符号化される。
The state of a black pixel in a block is represented by a block a
, One pixel is one bit, and the lower right corner is LSB as shown in FIG. 4, and goes from right to left, from bottom to top, and in a bit order such that it is the upper left corner or MSB, the black pixel is By assigning “1” to the white pixel and “0” to the white pixel, a 16-bit value is obtained as pattern data corresponding to the pixel pattern of the block. The pattern data is encoded by referring to a pattern code table defined in advance so that the average code length is minimized by establishing the appearance of each pattern.

【0033】それ以外のブロックに対しては、ブロック
内の黒画素数であるブロック階調が符号化される。ブロ
ック階調は、原画像におけるブロック内の黒画素数にな
り、符号化しようとするブロックの以前に符号化された
同じブロックサイズのブロックのブロック階調との差分
を差分値の出現確立により、平均符号長が最小となる階
調符号テーブルを参照し、符号化される。
For the other blocks, the block gradation, which is the number of black pixels in the block, is encoded. The block gradation is the number of black pixels in the block in the original image, and the difference between the block gradation to be coded and the block gradation of a block of the same block size that has been coded earlier is established by establishing the appearance of a difference value. The encoding is performed with reference to the gradation code table in which the average code length is minimum.

【0034】符号化されたデータは、ブロックサイズ符
号につづきパタンデータ符号または、ブロック階調符号
の順に順次、網制御部5により回線を通じて伝送され
る。上記された手順は、走査線方向に従い順次繰り返さ
れ画像データを伝送する。
The encoded data is transmitted over the line by the network control unit 5 in the order of the block size code and the pattern data code or the block gradation code. The above-described procedure is sequentially repeated according to the scanning line direction to transmit image data.

【0035】受信の時は、網制御部5により受信された
データが符号化/復号部4に渡され、符号化/復号部4
は、上記データからブロックの種類を復号し、受信され
たブロックの種類がブロックaのときは、それに続くブ
ロックパターンデータをパターン符号テーブルを参照す
ることで復号し、パターンデータは、図4に従いブロッ
ク内画素パターンに復元される。復元された画素パター
ンは、画像蓄積メモリ2に記憶される。
At the time of reception, the data received by the network control unit 5 is passed to the encoding / decoding unit 4 and
Decodes the type of the block from the above data, and when the type of the received block is the block a, decodes the subsequent block pattern data by referring to the pattern code table. It is restored to the inner pixel pattern. The restored pixel pattern is stored in the image storage memory 2.

【0036】それ以外のブロックの時は、ブロック階調
を階調符号テーブルを参照して復号する。ブロック階調
は、ブロック内に黒画素を配置する位置を乱数発生器6
を参照して決定し、ブロック内にランダムにブロック階
調分だけの黒画素を配置し、ブロックの画素パターンを
復元する。
For other blocks, the block gradation is decoded with reference to the gradation code table. The block gradation is determined by determining the position where the black pixel is arranged in the block by the random number generator 6.
, Black pixels corresponding to the block gradation are randomly arranged in the block, and the pixel pattern of the block is restored.

【0037】このとき、擬似中間調画像の黒画素(ある
いは白画素)のランレングスは、1になることが多とい
う特徴を保存するために、すでに決定した黒画素の近傍
を避けるように、次の黒画素の位置を決定するようにす
る。
At this time, the run length of the black pixel (or white pixel) of the pseudo halftone image is kept at 1 so as to avoid the vicinity of the already determined black pixel, in order to preserve the feature that it often becomes 1. Is determined.

【0038】これを図5により詳しく説明すると、まず
ステップS51にて、復元しようとするブロックのブロ
ック階調をnbとする。また、ステップS52にて、あ
る黒画素の8隣接に存在しても良い他の黒画素の数nx
を、初期設定として、nx=0とする。
This will be described in more detail with reference to FIG. 5. First, in step S51, the block gradation of the block to be restored is set to nb. Also, in step S52, the number nx of other black pixels that may be eight adjacent to a certain black pixel
Is set to nx = 0 as an initial setting.

【0039】ステップS53にて、nb>0であること
をチェックし、次いで、ステップS54にて、ブロック
内の各画素において、その8隣接に存在する黒画素数が
nx以下のところを黒画素を配置できる黒画素候補とす
る。
In step S53, it is checked that nb> 0. Then, in step S54, each pixel in the block is replaced with a black pixel where the number of black pixels adjacent to its eight pixels is less than or equal to nx. It is a black pixel candidate that can be arranged.

【0040】ステップS55にて黒画素候補が存在する
か否かを判定し、もし、黒画素候補が存在しなければ、
ステップS56に進み、nxを1増加し、その後、再
度、ステップS54にて、黒画素候補を決定する。
In step S55, it is determined whether or not a black pixel candidate exists. If no black pixel candidate exists,
Proceeding to step S56, nx is incremented by 1, and then, in step S54, black pixel candidates are determined again.

【0041】黒画素候補が存在すれば、ステップS57
に進み、その中から黒画素にする位置を乱数を利用し決
定し、ランダムに黒画素を配置する。
If there is a black pixel candidate, step S57
Then, a position where a black pixel is to be set is determined by using a random number, and black pixels are randomly arranged.

【0042】黒画素を配置したら、ステップS58に
て、nbを1減少させ、ステップS54に戻り、上記の
処理をnb>0の間繰り返す。以上により、ブロックを
復元する。
After arranging the black pixels, in step S58, nb is decremented by one, and the process returns to step S54 to repeat the above processing while nb> 0. Thus, the block is restored.

【0043】上記のようにしてブロック内の画素パター
ンを復元し、画像蓄積メモリ2に蓄積していく。
As described above, the pixel pattern in the block is restored and stored in the image storage memory 2.

【0044】画像蓄積用メモリに蓄積された画像データ
は、記録部7により出力される。
The image data stored in the image storage memory is output by the recording unit 7.

【0045】[0045]

【発明の効果】本発明により、従来の方法による符号化
より低い情報量で擬似中間調画像を伝送することが可能
となり、伝送にかかる通信コストを低減できる。また、
擬似中間調画像は、それを生成する方式により、テクス
チャを発生することがあるが、受信側で、乱数により画
素をランダムに配置することでテクスチャを排除するこ
ともできる。
According to the present invention, it is possible to transmit a pseudo halftone image with a smaller amount of information than the encoding by the conventional method, and it is possible to reduce the communication cost for transmission. Also,
The pseudo halftone image may generate a texture depending on the method of generating the pseudo halftone image. However, the texture can be eliminated by arranging pixels at random on the receiving side using random numbers.

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

【図1】本発明の一実施例の回路構成を示す。FIG. 1 shows a circuit configuration of an embodiment of the present invention.

【図2】本発明で使用されるブロックの形状である。FIG. 2 shows the shape of a block used in the present invention.

【図3】ブロック判定の手順を示す流れ図である。FIG. 3 is a flowchart illustrating a procedure of block determination.

【図4】ブロックaでの画素パターンからビット列に変
換する順序を示す図である。
FIG. 4 is a diagram showing an order of converting a pixel pattern into a bit string in a block a.

【図5】ブロック階調からブロックを復元する手順を示
す流れ図である。
FIG. 5 is a flowchart showing a procedure for restoring a block from a block gradation.

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

1 読取部 2 画像蓄積メモリ 3 ブロック判定部 4 符号化/符号部 5 網制御部 6 乱数発生部 7 記録部 8 制御部 9 前処理部 DESCRIPTION OF SYMBOLS 1 Reading part 2 Image storage memory 3 Block determination part 4 Encoding / coding part 5 Network control part 6 Random number generation part 7 Recording part 8 Control part 9 Preprocessing part

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 画像データを記憶する記憶手段と、上記
記憶手段に記憶された画像データに対し圧縮符号化する
符号化手段と、圧縮符号化された画像データを復号する
復号手段とを備えた2値画像伝送装置であって、 前記符号化手段が、 伝送される画像データが、擬似中間調画像であった場合
に、原画像から一時的に孤立点を除去し、画像のエッジ
部を強調する手段と、該画像を適応的に4×4から16
×16のサイズの異なるブロックに分割する手段と、4
×4のサイズのブロックに対しては、原画像におけるブ
ロック内の画素パターン情報を符号化し、その他のサイ
ズのブロックに対しては、ブロック内の黒画素数をカウ
ントすることにより求めた、ブロックの階調情報を符号
化する手段と、各ブロックのサイズを符号化する手段と
を備えることを特徴とする2値画像伝送装置。
A storage unit for storing image data; an encoding unit for compressing and encoding the image data stored in the storage unit; and a decoding unit for decoding the compressed and encoded image data. A binary image transmitting apparatus, wherein the encoding unit temporarily removes an isolated point from an original image and enhances an edge portion of the image when the transmitted image data is a pseudo halftone image. Means for adaptively transforming the image from 4 × 4 to 16
Means for dividing into blocks of different size of × 16, 4
For a block of size × 4, the pixel pattern information in the block in the original image is encoded, and for blocks of other sizes, the number of black pixels in the block is determined by counting the number of black pixels in the block. A binary image transmission device comprising: means for encoding gradation information; and means for encoding the size of each block.
【請求項2】 前記復号手段が、 符号化された画像デ
ータを受信すると、ブロックサイズが4×4であった場
合に、それに続くパターン情報によりブロックの画像を
復号する手段と、ブロックサイズがそれ以外であった場
合に、それに続く、ブロック階調情報に基づき、ブロッ
ク内に黒画素を乱数によりランダムに配置することで画
像を復元し、受信された符号を復号する手段とを備える
ことを特徴とする請求項1に記載の2値画像伝送装置。
2. When the decoding means receives the encoded image data, if the block size is 4 × 4, the decoding means decodes the image of the block by the following pattern information; If it is other than the above, based on the block gradation information, a means for restoring an image by randomly arranging black pixels in a block by random numbers based on the block gradation information and decoding a received code is provided. The binary image transmission device according to claim 1, wherein
JP5257014A 1993-10-14 1993-10-14 Binary image transmission device Expired - Lifetime JP2936042B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5257014A JP2936042B2 (en) 1993-10-14 1993-10-14 Binary image transmission device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5257014A JP2936042B2 (en) 1993-10-14 1993-10-14 Binary image transmission device

Publications (2)

Publication Number Publication Date
JPH07111594A JPH07111594A (en) 1995-04-25
JP2936042B2 true JP2936042B2 (en) 1999-08-23

Family

ID=17300537

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5257014A Expired - Lifetime JP2936042B2 (en) 1993-10-14 1993-10-14 Binary image transmission device

Country Status (1)

Country Link
JP (1) JP2936042B2 (en)

Also Published As

Publication number Publication date
JPH07111594A (en) 1995-04-25

Similar Documents

Publication Publication Date Title
US5621826A (en) Image reduction apparatus
EP0504903B1 (en) Apparatus for and method of preprocessing binary picture data prior to run-length encoding
US4760460A (en) Halftone image transmission method
JP3843581B2 (en) Image encoding device, image decoding device, image processing device, image encoding method, image decoding method, and image processing method
JP4522199B2 (en) Image encoding apparatus, image processing apparatus, control method therefor, computer program, and computer-readable storage medium
JPH09135358A (en) Image encoding device using arithmetic code
US5442459A (en) Process for encoding a half tone image considering similarity between blocks
JPS6318777A (en) Dither signal coding/decoding processing method
US5422734A (en) Method for arithmetically encoding half-tone image in image processing system
US5406282A (en) Data coding and decoding with improved efficiency
JP3337365B2 (en) Multi-level image data transmission device
JPH07264417A (en) Image coding method
JP2756371B2 (en) Image processing device
JP2936042B2 (en) Binary image transmission device
US5684603A (en) Coding apparatus for bi-level images halftoned with error diffusion algorithm
JP2810838B2 (en) Binary image transmission device
JPS63182973A (en) Pseudo half-tonal image transmission method for facsimile equipment
JP2007306513A (en) Method and device for image data compression
JP2002354233A (en) Image reduction device, image reduction method, and storage medium therefor
JP3363698B2 (en) Multi-tone image coding device
JP3259989B2 (en) Binary and multi-valued mixed coded image data restoration method and apparatus
JP2831954B2 (en) Image encoding / decoding device and image processing device
KR940007683B1 (en) Bloc cording method of middle tone picture
JP3732329B2 (en) Pseudo halftone image encoding apparatus and encoding method
JP3531844B2 (en) Image processing device