JPH1155528A - Image coder - Google Patents

Image coder

Info

Publication number
JPH1155528A
JPH1155528A JP20774197A JP20774197A JPH1155528A JP H1155528 A JPH1155528 A JP H1155528A JP 20774197 A JP20774197 A JP 20774197A JP 20774197 A JP20774197 A JP 20774197A JP H1155528 A JPH1155528 A JP H1155528A
Authority
JP
Japan
Prior art keywords
encoding
image data
pixel
coding
binarization
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
JP20774197A
Other languages
Japanese (ja)
Inventor
Hideaki Yamada
英明 山田
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.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP20774197A priority Critical patent/JPH1155528A/en
Publication of JPH1155528A publication Critical patent/JPH1155528A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To provide the image coder that realizes a high compression rate regardless of its low cost. SOLUTION: The image coder consists of a binarization means and a coding means. The binarization means is provided with a fixed threshold level binarization section 11, a dither method binarization section 12 and a selector 13 that selects either of binarized data Ic, Id based on a selection signal S. The coding means is provided with a typical prediction TP section 21 that provides an output of a signal for a TP, an adaptive template AT section 22 that provides an output of a signal denoting coordinate information of an AT pixel, a model template 23 that generates a context, and an arithmetic coding section 24 that conducts Markov model coding. Since the selection signal S is given to the AT section 22, the binarization method of binary image data I received by the coding means is known and an optimum AT pixel coordinate depending on a pixel is selected without checking the property of the binary image data I and then rational coding is conducted at a low cost.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、画像符号化装置に
関するもので、より詳細には、ファクシミリなどの2値
画像を扱う装置に適用され、画像の種類によらず、より
高圧縮率が見込める符号化パラメータを決定する画像符
号化装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image encoding apparatus, and more particularly, to an apparatus for handling binary images, such as a facsimile, which can achieve a higher compression ratio regardless of the type of image. The present invention relates to an image encoding device that determines an encoding parameter.

【0002】[0002]

【従来の技術】ファクシミリでは、スキャナから取り込
まれた画像は2値化されて、送信される。取り込まれた
画像を高品質に2値化するには、画像における文字領域
と写真領域とをそれぞれ次の方法で2値化するのが一般
的である。すなわち、文字は解像度が重要なため一定の
閾値で2値化し(固定閾値法)、写真は階調を出すこと
が重要なためディザ法を用いて2値化する。広く用いら
れているディザ法には組織的ディザ法と誤差拡散法があ
り、誤差拡散法では、注目画素の閾値の値が、すでに2
値化済みの画素の本来の濃度に依存して変化する。その
ため、出力される2値画像は周期性がなく、含まれる情
報量が多いため、符号化したときの符号化効率は小さ
い。それに対して、組織的ディザ法では、それぞれの画
素の閾値の大きさが誤差拡散法のようには変化せず、一
定であるため、出力される2値画像は周期的になり、誤
差拡散法による2値画像に比べて情報量が少なく、その
ために符号化したときの符号化効率は大きい。
2. Description of the Related Art In a facsimile, an image captured by a scanner is binarized and transmitted. In order to binarize a captured image with high quality, it is general to binarize a character region and a photograph region in the image by the following methods. That is, characters are binarized using a fixed threshold value (fixed threshold method) because the resolution is important, and photographs are binarized using the dither method because it is important to produce gradation. Widely used dither methods include systematic dither method and error diffusion method. In the error diffusion method, the threshold value of the pixel of interest is already 2
It changes depending on the original density of the pixel whose value has been converted. Therefore, the output binary image has no periodicity and contains a large amount of information, and thus the encoding efficiency when encoding is low. On the other hand, in the systematic dither method, since the magnitude of the threshold value of each pixel does not change and is constant as in the error diffusion method, the output binary image becomes periodic, and the error diffusion method , The amount of information is smaller than that of the binary image, and the coding efficiency when coding is large.

【0003】図5,及び図6は組織的ディザ法の一つで
あるベイヤー型ディザ法を説明するための図である。一
般に使われているベイヤー型ディザ法の閾値の周期は4
×4で、入力される多値画像の濃度のレンジが0〜25
5の場合、閾値マトリックスは、例えば、図5の様にな
る。図6は一定の濃度の画像を図5に示すような閾値で
2値化した例で、白画素と黒画素が交互になる周期的な
パターンが発生することがわかる。
FIGS. 5 and 6 are views for explaining a Bayer type dither method which is one of the systematic dither methods. The threshold period of the commonly used Bayer-type dither method is 4
× 4, the density range of the input multi-valued image is 0 to 25
In the case of 5, the threshold matrix is, for example, as shown in FIG. FIG. 6 shows an example in which an image having a constant density is binarized using a threshold as shown in FIG. 5, and it can be seen that a periodic pattern in which white pixels and black pixels alternate is generated.

【0004】ところで、ファクシミリの符号化方法のオ
プションとして、ITU−T勧告T.82によるJBI
G(Joint Bi-level Image Coding Experts Group)方
式がある。JBIG方式は、2値画像のマルコフモデル
符号化を実現したもので、符号量がエントロピーに近い
可逆符号化である。情報理論によれば、エントロピーは
白と黒の出現する比が0.5のとき最大で、その比が0
または1に偏るほどエントロピーは小さい。符号化すべ
き注目画素の周りの符号化済みの画素のまとまりをコン
テクストというが、JBIG方式ではコンテクストを参
照することにより、注目画素が白(0)であるか黒
(1)であるかを推定する推定確率が正確にもとまるた
め、コンテクストを参照しないときに比べて、符号量が
小さくなる。
Incidentally, as an option of the facsimile coding method, JBI according to ITU-T recommendation T.82 is used.
There is a G (Joint Bi-level Image Coding Experts Group) system. The JBIG method realizes Markov model coding of a binary image, and is lossless coding in which the code amount is close to entropy. According to information theory, the entropy is maximum when the ratio of white to black appearance is 0.5, and the ratio is 0
Or, the entropy is smaller as it is biased toward 1. A group of coded pixels around the target pixel to be coded is referred to as a context. In the JBIG method, it is estimated whether the target pixel is white (0) or black (1) by referring to the context. Since the estimation probability is accurately captured, the code amount is smaller than when no context is referred to.

【0005】図7(A)〜図7(C)は画素の集まりを
表し、“?”が記された画素を注目画素とし、その他の
10画素をコンテクストとした例である。例えば、図7
(A)のようにコンテクストが真っ白のときは、注目画
素が白である確率が高い。図7(B)のようなコンテク
ストでは、注目画素が文字の黒線の一部と推定されるの
で、黒である確率が高い。また、図7(C)の様に、コ
ンテクストがディザパターンの一部であるときには、注
目画素はパターンを補う黒である確率が高い。このよう
に、コンテクストを参照すると、注目画素が黒であるか
白であるかをより正確に推定でき、符号量を小さくでき
ることがわかる。
FIGS. 7 (A) to 7 (C) show a group of pixels, in which a pixel marked with "?" Is set as a target pixel, and the other 10 pixels are set as a context. For example, FIG.
When the context is pure white as in (A), the probability that the target pixel is white is high. In the context as shown in FIG. 7B, the pixel of interest is estimated to be a part of the black line of the character, so that the probability of being black is high. When the context is a part of the dither pattern as shown in FIG. 7C, the pixel of interest has a high probability of being black to supplement the pattern. Thus, referring to the context, it can be seen that whether the target pixel is black or white can be more accurately estimated, and the code amount can be reduced.

【0006】JBIG方式のコンテクストには、図8
(A)に示す2ラインモデルと、図8(B)に示す3ラ
インモデルがある。“?”が記されている画素は注目画
素で、“F”という記号が記されている画素は後述する
フローティング画素である。2ラインモデルまたは3ラ
インモデルのいずれを使うかは、画像データを送信する
前に、送受信のファクシミリ同士で取り決めを行ってお
く。図8に示すフローティング画素は、このフローティ
ング画素よりも注目画素との相関が高く、注目画素の色
(黒か白)を正確に推定できる画素と取り替えることが
できる。これをAT(Adaptive Template)といい、フロ
ーティング画素と取り替える画素をAT画素という。A
Tを用いるかどうかという情報と、ATを用いたときの
AT画素の座標の情報は、符号のヘッダに付けることに
なっているため、復号側でAT画素の座標を探す必要は
ない。
In the context of the JBIG system, FIG.
There are a two-line model shown in FIG. 8A and a three-line model shown in FIG. The pixel marked with “?” Is the pixel of interest, and the pixel marked with “F” is a floating pixel described later. Before sending the image data, a decision is made between the sending and receiving facsimile machines to determine whether to use the two-line model or the three-line model. The floating pixel shown in FIG. 8 has a higher correlation with the target pixel than the floating pixel, and can be replaced with a pixel that can accurately estimate the color (black or white) of the target pixel. This is called an AT (Adaptive Template), and a pixel to be replaced with a floating pixel is called an AT pixel. A
Since information on whether to use T and information on the coordinates of the AT pixel when the AT is used are to be attached to the header of the code, there is no need to search for the coordinates of the AT pixel on the decoding side.

【0007】[0007]

【発明が解決しようとする課題】しかし、AT機能を持
たせようとすると、ATの候補画素とすべての注目画素
との相関を計算しなければならず、それを実現できる装
置は非常に複雑で、コストがかかる。ところが、ファク
シミリでは2値化データを符号化しようとする際に、ど
の2値化方法にするか、例えば、固定閾値法にするかデ
ィザ法にするかが選択されている。2値化装置と符号化
装置は同じファクシミリ端末に備えられているので、符
号化装置でその都度AT候補画素を探さなくても、2値
化した方法を知ることにより、AT画素を迅速に決定す
ることができる。
However, in order to provide an AT function, it is necessary to calculate a correlation between an AT candidate pixel and all target pixels, and a device capable of realizing the correlation is very complicated. ,There will be a cost. However, in facsimile, when encoding binary data, which binarization method is used, for example, a fixed threshold method or a dither method is selected. Since the binarization device and the encoding device are provided in the same facsimile terminal, the AT device can be quickly determined by knowing the binarization method without searching for the AT candidate pixel each time by the encoding device. can do.

【0008】例えば、送信者が文字モードか写真モード
のいずれかをボタンにより選択できるようになってい
て、文字モードを選んだときは固定閾値法で2値化さ
れ、写真モードを選んだときはベイヤー型ディザ法で2
値化されるものとし、ベイヤー型ディザ法の閾値の周期
が4×4であるとする。このようなベイヤー型ディザ法
で2値化した場合、注目画素の4画素前や8画素前の画
素は閾値が同じであるため、2つの画素が同じ色(白又
は黒)になる確率が高い。つまり、これらの画素は注目
画素との相関が高いので、変化させるAT画素として最
適である。従って、2ラインモデル,及び3ラインモデ
ルではAT画素はそれぞれ図9(A),図9(B)のよ
うに選ぶのがよい。そこで、送信者が文字モードを選択
したときは、ATを用いず、写真モードを選択したとき
は、AT画素を図9に示す画素とすることもできる。ま
た、原稿の種類を気にせずに画素を2値化できる方法と
して、像域分離を行って対象画素が文字領域または写真
領域のいずれに該当するかを判定し、文字領域では固定
閾値法により2値化を行い、写真領域ではディザ法によ
り2値化を行う方法がある。この場合、文字領域と写真
領域の割合の統計を予めとっておくようにし、符号化の
際にAT画素を統計上で割合の多い領域になされた2値
化方法に適したものにすれば、符号化効率をあげること
ができる。以上の様にして、AT画素を決定しても、A
Tを用いたという情報と、AT画素の座標情報とを勧告
T.82通りのフォーマットで符号化すれば復号できる
ため、問題が生じることはない。
For example, the sender can select either a text mode or a photo mode by using a button. When the text mode is selected, the sender is binarized by the fixed threshold method, and when the photo mode is selected, 2 by Bayer-type dither method
It is assumed that the value is to be converted into a value and the threshold period of the Bayer dither method is 4 × 4. When binarization is performed by such a Bayer-type dither method, the pixels four pixels before and eight pixels before the target pixel have the same threshold value, so that there is a high probability that the two pixels have the same color (white or black). . That is, these pixels have a high correlation with the pixel of interest, and are optimal as AT pixels to be changed. Therefore, in the two-line model and the three-line model, the AT pixels are preferably selected as shown in FIGS. 9A and 9B, respectively. Therefore, when the sender selects the character mode, the AT is not used, and when the photograph mode is selected, the AT pixel may be the pixel shown in FIG. In addition, as a method of binarizing pixels without worrying about the type of the original, image area separation is performed to determine whether the target pixel corresponds to a character area or a photographic area. There is a method of performing binarization and performing binarization in a photographic area by a dither method. In this case, if the statistics of the ratio between the character region and the photograph region are set in advance, and the AT pixels are set to be suitable for the binarization method performed on the region having a high statistical ratio at the time of encoding, Encoding efficiency can be improved. As described above, even if the AT pixel is determined,
If the information that T is used and the coordinate information of the AT pixel are encoded in a format according to Recommendation T.82, the information can be decoded, so that no problem occurs.

【0009】本発明は、以上の点を鑑みてなされたもの
であり、コストがかかる複雑な装置を用いずに、2値化
の方法に基づいてAT画素を決定することにより、低コ
ストでありながら高圧縮率を実現する画像符号化装置を
提供することをその解決すべき課題とする。
The present invention has been made in view of the above points, and has a low cost by determining an AT pixel based on a binarization method without using a complicated and expensive device. It is an object of the present invention to provide an image encoding device that realizes a high compression ratio while achieving a high compression ratio.

【0010】[0010]

【課題を解決するための手段】請求項1の発明は、複数
の2値画像データからセレクタが選択し、入力する2値
画像データを予め設定される符号化方式に基づいて符号
化する符号化手段を備え、前記セレクタを制御動作させ
る選択信号を、該セレクタとともに前記符号化手段にも
入力させ、該符号化手段は、入力した前記選択信号に基
づいて符号化条件を指定し、指定した条件に従い符号化
を行うことを特徴とし、符号化を実行するに際し、符号
化手段が2値画像データの性質を調べるための特別な手
段を必要とせず、低コストで効率良く符号化を行うこと
ができるようにしたものである。
According to a first aspect of the present invention, there is provided an encoding method wherein a selector selects from a plurality of binary image data and encodes the input binary image data based on a preset encoding method. Means for inputting a selection signal for controlling the selector to the encoding means together with the selector, wherein the encoding means specifies an encoding condition based on the input selection signal, and specifies the specified condition. In performing the encoding, the encoding means does not need any special means for examining the properties of the binary image data, and can perform the encoding efficiently at low cost. It is made possible.

【0011】請求項2の発明は、請求項1の発明におい
て、前記複数の2値画像データとして、入力する符号化
すべき多値画像データを複数の2値化方法による2値化
手段で2値化したものとすることを特徴とし、符号化手
段が2値画像データの性質を調べるための特別な手段を
必要とせず、低コストで効率良く符号化を行うことがで
きるようにしたものである。
According to a second aspect of the present invention, in the first aspect of the present invention, as the plurality of binary image data, input multi-valued image data to be encoded is binary-coded by a plurality of binary methods. The encoding means does not require any special means for examining the properties of the binary image data, so that encoding can be performed efficiently at low cost. .

【0012】請求項3の発明は、請求項1または2の発
明において、前記符号化手段が、前記入力した選択信号
に基づいて符号化条件を指定する手段として、前記セレ
クタを制御動作させる選択信号の統計をとる統計手段を
備え、該統計手段から出力される統計データに基づいて
前記符号化条件を指定するようにしたことを特徴とし、
効率良く符号化を行うことができるようにしたものであ
る。
According to a third aspect of the present invention, in the first or second aspect of the present invention, the encoding means controls the selector to perform an operation of controlling the selector as means for designating an encoding condition based on the input selection signal. Statistical means for taking the statistics of, characterized in that the coding conditions are specified based on statistical data output from the statistical means,
In this way, encoding can be performed efficiently.

【0013】請求項4の発明は、請求項1ないし3いず
れか1の発明において、前記2値化手段が、符号化すべ
き多値画像データを入力し、該多値画像データに基づい
て前記セレクタを制御動作させる選択信号を生成する選
択信号生成手段を備えることを特徴とし、原稿画像の種
類を気にせずに2値化を行うことができるようにしたも
のである。
According to a fourth aspect of the present invention, in the first aspect of the present invention, the binarizing means inputs multi-level image data to be encoded, and selects the selector based on the multi-level image data. Is provided with a selection signal generating means for generating a selection signal for controlling the operation of the image data, so that the binarization can be performed without regard to the type of the document image.

【0014】請求項5の発明は、請求項2ないし4いず
れか1の発明において、前記複数の2値化方法を固定閾
値法、及びディザ法とすることを特徴とし、複数の2値
化方法が具体的に与えられるようにしたものである。
According to a fifth aspect of the present invention, in accordance with any one of the second to fourth aspects, the plurality of binarization methods are a fixed threshold method and a dither method. Is specifically given.

【0015】請求項6の発明は、請求項1ないし5いず
れか1の発明において、前記符号化方式をマルコフモデ
ル符号化とすることを特徴とし、符号化方式が具体的に
与えられるようにしたものである。
The invention of claim 6 is characterized in that, in the invention of any one of claims 1 to 5, the encoding method is Markov model encoding, and the encoding method is specifically given. Things.

【0016】請求項7の発明は、請求項1ないし6いず
れか1の発明において、前記符号化条件としてAT画素
の座標に対応するパラメータを用いることを特徴とし、
符号化装置でAT候補画素を探すための複雑なAT装置
を用いる必要なく、AT画素を迅速に決定できるため、
低コストで合理的な符号化を実行することができるよう
にしたものである。
According to a seventh aspect of the present invention, in the first aspect of the present invention, a parameter corresponding to the coordinates of an AT pixel is used as the encoding condition.
Since it is possible to quickly determine AT pixels without using a complicated AT device for searching for AT candidate pixels in the encoding device,
This makes it possible to execute reasonable encoding at low cost.

【0017】請求項8の発明は、請求項7の発明におい
て、前記符号化手段が、前記2値画像データにおける符
号化対象ラインの画素データと該符号化対象ラインの直
上ラインの画素データとが一致したときに符号化をスキ
ップする典型的予測を行う典型的予測部と、指定された
前記パラメータに対応するAT画素の座標情報を出力す
るAT部と、該AT部から出力された座標情報に基づい
てコンテクストを形成するモデルテンプレートと、該モ
デルテンプレートを参照し、マルコフモデル符号化を行
う算術符号化部とを備えることを特徴とし、符号化装置
のより具体的な構成が与えられるようにしたものであ
る。
According to an eighth aspect of the present invention, in the seventh aspect of the present invention, the encoding means is configured to determine that pixel data of a line to be encoded in the binary image data and pixel data of a line immediately above the line to be encoded are included. A typical prediction unit that performs a typical prediction of skipping encoding when they match, an AT unit that outputs coordinate information of an AT pixel corresponding to the specified parameter, and a coordinate information output from the AT unit. A model template that forms a context based on the model template, and an arithmetic coding unit that performs Markov model coding with reference to the model template, so that a more specific configuration of the coding apparatus is provided. Things.

【0018】[0018]

【発明の実施の形態】BEST MODE FOR CARRYING OUT THE INVENTION

(実施形態1)図1は、本発明による画像符号化装置の
一実施形態を説明するためのブロック図である。図1に
基づいて、本実施形態による装置構成及びその作用を説
明する。本実施形態の画像符号化装置は、2値化手段と
符号化手段により構成される。2値化手段は、多値画像
データGを入力して固定閾値で2値化し、2値画像デー
タIcを出力する固定閾値2値化部11、多値画像デー
タGを入力し、ディザ法により2値化して2値画像デー
タIdを出力するディザ法2値化部12、及び文字モー
ドか写真モードのいずれかのモードの選択信号Sにより
固定閾値2値化部11とディザ法2値化部12から出力
された2値画像データIc及びIdのうちいずれかを選
択して2値画像データIとして出力するセレクタ13に
より構成されている。一方、符号化手段は、2値化手段
から出力される2値画像データI(IcまたはId)を
入力し、TP(典型的予測)のための信号SLNTP,
TPBALUEを出力するTP部21、選択信号Sに基
づいて注目画素とより相関が高い画素の座標情報を表す
ATMOVEを出力するAT部22、AT画素を含む符
号化のためのコンテクストを形成するモデルテンプレー
ト23、及びモデルテンプレート23を参照し、マルコ
フモデル符号化を行う算術符号化部24により構成され
ている。算術符号化部24からは符号化データCが出力
される。
(Embodiment 1) FIG. 1 is a block diagram for explaining an embodiment of an image coding apparatus according to the present invention. The configuration of the device according to the present embodiment and its operation will be described with reference to FIG. The image encoding device according to the present embodiment includes a binarizing unit and an encoding unit. The binarizing means inputs the multi-value image data G, binarizes it with a fixed threshold value, and outputs the binary image data Ic. A dithering binarizing unit 12 for binarizing and outputting binary image data Id; a fixed threshold binarizing unit 11 and a dithering binarizing unit according to a selection signal S of either a character mode or a photograph mode A selector 13 selects one of the binary image data Ic and Id output from the selector 12 and outputs it as the binary image data I. On the other hand, the encoding means receives the binary image data I (Ic or Id) output from the binarization means, and outputs signals SLNTP, TP (typical prediction).
A TP unit 21 that outputs TPBALUE, an AT unit 22 that outputs ATMOVE representing coordinate information of a pixel having a higher correlation with the target pixel based on the selection signal S, a model template that forms a context for encoding including the AT pixel 23, and an arithmetic coding unit 24 for performing Markov model coding with reference to the model template 23. Arithmetic encoding section 24 outputs encoded data C.

【0019】(実施形態2)図2は、本発明による画像
符号化装置の他の実施形態を説明するためのブロック図
である。図2に基づいて、本実施形態による装置構成及
びその作用を説明する。本実施形態の画像符号化装置
は、2値化手段と符号化手段とにより構成され、2値化
手段は、入力した多値画像データGに基づき画素ごとに
文字領域か写真領域かを決定し、その像域分離の結果を
表す信号(選択信号)Spを出力する像域分離部14、
多値画像データGを入力して固定閾値で2値化し、2値
画像データIcを出力する固定閾値2値化部11、多値
画像データGを入力してディザ法により2値化し、2値
画像データIdを出力するディザ法2値化部12、及び
像域分離の結果を表す信号Spにより画素ごとに2値画
像データIcまたはIdのいずれかを選択して2値画像
データIとして出力するセレクタ13により構成されて
いる。
(Embodiment 2) FIG. 2 is a block diagram for explaining another embodiment of the image encoding apparatus according to the present invention. The configuration of the device according to the present embodiment and its operation will be described with reference to FIG. The image encoding apparatus according to the present embodiment includes a binarizing unit and an encoding unit, and the binarizing unit determines a character area or a photograph area for each pixel based on the input multi-valued image data G. An image area separation unit 14 that outputs a signal (selection signal) Sp representing the result of the image area separation;
A fixed threshold binarization unit 11 that inputs multi-valued image data G and binarizes it with a fixed threshold, outputs binary image data Ic, inputs the multi-valued image data G, binarizes it by a dither method, Either the binary image data Ic or Id is selected for each pixel by the dither binarization unit 12 that outputs the image data Id and the signal Sp representing the result of the image area separation, and is output as the binary image data I. It is constituted by a selector 13.

【0020】一方、符号化手段は、2値化手段でなされ
た像域分離の結果を集計して、固定閾値2値画像に対応
する符号化を行うか、ディザ画像に対応する符号化を行
うかを選択し、その選択結果を示す選択信号Sを出力す
るカウンタ25、2値化手段から出力される2値画像デ
ータI(IcまたはId)を入力し、TP(典型的予
測)のための信号SLNTP,TPVALUEを出力す
るTP部21、選択信号Sに基づいて注目画素とより相
関が高い画素の座標情報を表すATMOVEを出力する
AT部22、AT画素を含む符号化のためのコンテクス
トを形成するモデルテンプレート23、及びモデルテン
プレート23を参照し、マルコフモデル符号化を行う算
術符号化部24により構成されている。
On the other hand, the encoding means sums up the results of image area separation performed by the binarization means and performs encoding corresponding to a fixed threshold binary image or performs encoding corresponding to a dither image. The counter 25 outputs a selection signal S indicating the selection result, and the binary image data I (Ic or Id) output from the binarization means is input to the counter 25 for TP (typical prediction). A TP unit 21 that outputs signals SLNTP and TPVALUE, an AT unit 22 that outputs ATMOVE representing coordinate information of a pixel having a higher correlation with the pixel of interest based on the selection signal S, and forms a context for encoding including the AT pixel. It is configured by a model template 23 to be performed and an arithmetic coding unit 24 that performs Markov model coding with reference to the model template 23.

【0021】(比較例)図3は、本発明との比較のため
に勧告T.82通りにATをつくる画像符号化装置の一
例を示すブロック図である。この画像符号化装置は2値
化手段と符号化手段により構成され、2値化手段は、多
値画像データGを入力して固定閾値で2値化し、2値画
像データIcを出力する固定閾値2値化部11、多値画
像データGを入力してディザ法により2値化し、2値画
像データIdを出力するディザ法2値化部12、及び文
字モードか写真モードのいずれかのモードの選択信号S
により固定閾値2値化部11とディザ法2値化部12か
ら出力された2値画像データIc及びIdのうちいずれ
かを選択して2値画像データIとして出力するセレクタ
13により構成されている。
(Comparative Example) FIG. 3 is a block diagram showing an example of an image coding apparatus for generating an AT according to Recommendation T.82 for comparison with the present invention. The image encoding apparatus includes a binarizing unit and an encoding unit. The binarizing unit inputs the multi-valued image data G, binarizes the multi-valued image data with a fixed threshold, and outputs a binary image data Ic. A binarizing unit 11, a multi-valued image data G, which is binarized by a dithering method and binarized by a dithering method, and a binarizing unit 12 which outputs a binary image data Id; Selection signal S
And a selector 13 for selecting any one of the binary image data Ic and Id output from the fixed threshold binarization unit 11 and the dither method binarization unit 12 and outputting as the binary image data I. .

【0022】一方、符号化手段は、2値化手段から出力
される2値画像データI(IcまたはId)を入力し、
TP(典型的予測)のための信号SLNTP,TPVA
LUEを出力するTP部21、2値画像データIの統計
をとり、注目画素とより相関が高い画素の座標情報を表
すATMOVEを求めて出力するAT部22、AT画素
を含む符号化のためのコンテクストを形成するモデルテ
ンプレート23、及びモデルテンプレート23を参照
し、マルコフモデル符号化を行う算術符号化部24によ
り構成されている。このように、勧告T.82通りの画
像符号化装置では、2値化手段と符号化手段がまったく
独立していて、符号化手段は2値化手段がどのような2
値化を行ったかわからないため、AT画素を決定するた
めには、2値画像データの統計をとって2値画像の性質
を調べなければならない。そのための装置は複雑なもの
になり、コストアップにつながることが推測される。
On the other hand, the encoding means inputs the binary image data I (Ic or Id) output from the binarization means,
Signals SLNTP, TPVA for TP (typical prediction)
The TP unit 21 that outputs the LUE, obtains statistics of the binary image data I, obtains and outputs an ATMOVE representing the coordinate information of the pixel having a higher correlation with the pixel of interest, and outputs the ATMOVE 22, the encoding unit including the AT pixel It comprises a model template 23 that forms a context, and an arithmetic encoding unit 24 that performs Markov model encoding with reference to the model template 23. As described above, in the image coding apparatus according to Recommendation T.82, the binarizing means and the coding means are completely independent, and the coding means is any binary coding means.
Since it is not known whether or not the binarization has been performed, in order to determine the AT pixel, statistics of the binary image data must be taken to examine the properties of the binary image. It is presumed that the device for this becomes complicated and leads to an increase in cost.

【0023】図1に示す実施形態および図2に示す実施
形態の画像符号化装置においては、符号化手段が2値画
像データにおける2値化の種類を通知されているため、
それに従って最適なAT画素を選択することができる。
例えば、3ラインモデル、及び2ラインモデルのときの
2値化方法がベイヤー型ディザ法であれば、それぞれ図
8(A),図8(B)に示す位置の画素をAT画素とす
ることで、大幅に圧縮率を向上させることができる。し
かも、このような構成への変更は簡単に行うことができ
るため、コストアップにつながらないというメリットも
ある。
In the image coding apparatuses of the embodiment shown in FIG. 1 and the embodiment shown in FIG. 2, since the coding means is notified of the type of the binary image data,
The optimum AT pixel can be selected accordingly.
For example, if the binarization method for the three-line model and the two-line model is the Bayer dither method, the pixels at the positions shown in FIGS. 8A and 8B are set as AT pixels. , Can greatly improve the compression ratio. In addition, since such a configuration can be easily changed, there is an advantage that the cost is not increased.

【0024】図4は、JBIG方式における復号化手段
の一例を説明するためのブロック図である。復号化手段
は算術復号化部31、モデルテンプレート32、TP部
(典型的予測部)33により構成される。図に示すよう
に符号化データCとATMOVEとを用いるだけで復号
することができ、ATの実行方法に影響されることはな
い。従って、本発明の画像符号化装置によって符号化し
た画像データは、勧告T.82に従った復号化手段で復
号することができる。
FIG. 4 is a block diagram for explaining an example of the decoding means in the JBIG system. The decoding means includes an arithmetic decoding unit 31, a model template 32, and a TP unit (typical prediction unit) 33. As shown in the figure, decoding can be performed only by using the coded data C and ATMOVE, and is not affected by the AT execution method. Therefore, the image data encoded by the image encoding device of the present invention can be decoded by decoding means according to Recommendation T.82.

【0025】[0025]

【発明の効果】請求項1の発明の効果:符号化を実行す
るに際し、符号化すべき2値画像データの2値化方法の
情報を符号化手段に通知することにより、符号化手段が
2値画像データの性質を調べるための特別な手段を必要
とせず、低コストで効率良く符号化を行うことができ
る。
According to the first aspect of the present invention, when encoding is performed, information on a method of binarizing the binary image data to be encoded is notified to the encoding unit, so that the encoding unit performs the binary encoding. No special means for examining the properties of image data is required, and encoding can be performed efficiently at low cost.

【0026】請求項2の発明の効果:請求項1の発明の
効果に加えて、2値化手段と符号化手段とを有する装置
に好適に適用でき、例えば、文字モードあるいは写真モ
ード等の選択を行ったときの2値化手段における2値画
像データの選択信号を符号化手段にも送信することによ
り、符号化手段が2値画像データの性質を調べるための
特別な手段を必要とせず、低コストで効率良く符号化を
行うことができる。
Advantageous effect of the second aspect: In addition to the effect of the first aspect, the present invention can be suitably applied to an apparatus having a binarizing means and an encoding means. By transmitting the selection signal of the binary image data in the binarizing means at the time of performing to the encoding means, the encoding means does not need special means for examining the properties of the binary image data, Coding can be performed efficiently at low cost.

【0027】請求項3の発明の効果:請求項1または2
の発明の効果に加えて、選択された2値画像データの2
値化方法の割合の統計をとり、この統計データに基づい
て符号化を行うようにすることにより、効率良く符号化
を行うことができる。
Effect of the invention of claim 3: claim 1 or 2
In addition to the effects of the present invention, the selected binary image data
By taking statistics of the ratio of the binarization method and performing encoding based on this statistical data, encoding can be performed efficiently.

【0028】請求項4の発明の効果:請求項1ないし3
いずれか1の発明の効果に加えて、符号化手段に送信す
る2値画像データを選択する選択信号を多値画像データ
に基づいて生成する選択信号生成手段を備えることによ
り、原稿画像の種類を気にせずに2値化を行うことがで
きる。
Advantageous Effects of the Invention of Claim 4: Claims 1 to 3
In addition to the effects of any one of the aspects of the invention, by providing a selection signal generation unit that generates a selection signal for selecting binary image data to be transmitted to the encoding unit based on the multi-valued image data, Binarization can be performed without concern.

【0029】請求項5の発明の効果:請求項2ないし4
いずれか1の発明の効果に加えて、複数の2値化方法を
具体的に適用し得る手段に限定したことにより、実効を
もたらす画像符号化装置が提供される。
Effect of the invention of claim 5: claims 2 to 4
In addition to the effects of any one of the aspects of the invention, by limiting to a means to which a plurality of binarization methods can be specifically applied, an image coding apparatus that provides an effect is provided.

【0030】請求項6の発明の効果:請求項1ないし5
いずれか1の発明の効果に加えて、符号化方式を具体的
に適用し得る手段に限定したことにより、実効をもたら
す画像符号化装置が提供される。
Effect of the invention of claim 6: claims 1 to 5
In addition to the effects of any one of the aspects of the invention, by limiting the coding method to means to which the coding method can be specifically applied, an image coding apparatus that provides an effect is provided.

【0031】請求項7の発明の効果:請求項1ないし6
いずれか1の発明の効果に加えて、符号化条件が具体的
に与えられる。符号化装置でAT候補画素を探すための
複雑なAT装置を用いる必要なく、AT画素を迅速に決
定できるため、低コストで合理的な符号化を実行するこ
とができる。
Effect of the invention of claim 7: claims 1 to 6
In addition to the effect of any one of the aspects of the invention, a coding condition is specifically given. AT pixels can be quickly determined without the necessity of using a complicated AT device for searching for an AT candidate pixel in the encoding device, so that low-cost and reasonable encoding can be performed.

【0032】請求項8の発明の効果:請求項7の発明の
効果に加えて、符号化手段のより具体的な構成が与えら
れることにより、実効をもたらす画像符号化装置が提供
される。
Effect of the invention of claim 8 In addition to the effect of the invention of claim 7, by providing a more specific configuration of the encoding means, there is provided an image encoding apparatus that provides an effect.

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

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

【図2】本発明による画像符号化装置の他の実施形態を
説明するためのブロック図である。
FIG. 2 is a block diagram illustrating another embodiment of the image encoding device according to the present invention.

【図3】本発明との比較のために勧告T.82通りにA
Tをつくる画像符号化装置の一例を示すブロック図であ
る。
FIG. 3 shows A according to Recommendation T.82 for comparison with the present invention.
It is a block diagram which shows an example of the image coding apparatus which produces T.

【図4】JBIG方式におけるの復号化手段の一例を説
明するためのブロック図である。
FIG. 4 is a block diagram illustrating an example of a decoding unit in the JBIG system.

【図5】ベイヤー型ディザ法を説明するための閾値のマ
トリックスの一例を示す図である。
FIG. 5 is a diagram showing an example of a matrix of thresholds for explaining the Bayer dither method.

【図6】ベイヤー型ディザ法を説明するためのディザパ
ターンの一例を示す図である。
FIG. 6 is a diagram showing an example of a dither pattern for explaining a Bayer dither method.

【図7】コンテクストパターンの例を示す図である。FIG. 7 is a diagram illustrating an example of a context pattern.

【図8】コンテクストに適用するATを説明するための
図である。
FIG. 8 is a diagram for explaining an AT applied to a context.

【図9】コンテクストに適用するAT画素の位置の選択
例を示す図である。
FIG. 9 is a diagram illustrating an example of selecting a position of an AT pixel applied to a context.

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

11…固定閾値2値化部、12…ディザ法2値化部、1
3…セレクタ、14…像域分離部、21…TP部、22
…AT部、23…モデルテンプレート、24…算術符号
化部、25…カウンタ、31…算術復号化部、32…モ
デルテンプレート、33…TP部、C…符号化データ、
G…多値画像データ、I(Ic,Id)…2値画像デー
タ、S,Sp…選択信号。
11: fixed threshold binarization unit, 12: dither method binarization unit, 1
3 selector, 14 image area separating unit, 21 TP unit, 22
.. AT part, 23 model template, 24 arithmetic coding part, 25 counter, 31 arithmetic decoding part, 32 model template, 33 TP part, C coded data,
G: multi-valued image data, I (Ic, Id): binary image data, S, Sp: selection signal.

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 複数の2値画像データからセレクタが選
択し、入力する2値画像データを予め設定される符号化
方式に基づいて符号化する符号化手段を備え、前記セレ
クタを制御動作させる選択信号を、該セレクタとともに
前記符号化手段にも入力させ、該符号化手段は、入力し
た前記選択信号に基づいて符号化条件を指定し、指定し
た条件に従い符号化を行うことを特徴とする画像符号化
装置。
An encoding means for selecting a binary image data from a plurality of binary image data and encoding the input binary image data based on a preset encoding method, and controlling the selector to perform a control operation. A signal, which is input to the encoding means together with the selector, wherein the encoding means specifies an encoding condition based on the input selection signal, and performs encoding in accordance with the specified condition. Encoding device.
【請求項2】 前記複数の2値画像データとして、入力
する符号化すべき多値画像データを複数の2値化方法に
よる2値化手段で2値化したものとすることを特徴とす
る請求項1記載の画像符号化装置。
2. The multi-valued image data to be encoded, which is binarized by binarization means using a plurality of binarization methods, as the plurality of binary image data. 2. The image encoding device according to 1.
【請求項3】 前記符号化手段は、前記入力した選択信
号に基づいて符号化条件を指定する手段として、前記セ
レクタを制御動作させる選択信号の統計をとる統計手段
を備え、該統計手段から出力される統計データに基づい
て前記符号化条件を指定するようにしたことを特徴とす
る請求項1または2記載の画像符号化装置。
3. The coding means includes, as means for designating coding conditions based on the input selection signal, statistics means for obtaining statistics of a selection signal for controlling the selector, and outputting the statistics from the statistics means. 3. The image encoding apparatus according to claim 1, wherein the encoding condition is specified based on statistical data to be performed.
【請求項4】 前記2値化手段は、符号化すべき多値画
像データを入力し、該多値画像データに基づいて前記セ
レクタを制御動作させる選択信号を生成する選択信号生
成手段を備えることを特徴とする請求項1ないし3いず
れか1記載の画像符号化装置。
4. The apparatus according to claim 1, wherein said binarizing means includes a selection signal generating means for inputting multi-valued image data to be encoded and generating a selection signal for controlling and operating said selector based on said multi-valued image data. The image encoding device according to claim 1, wherein
【請求項5】 前記複数の2値化方法を固定閾値法、及
びディザ法とすることを特徴とする請求項2ないし4い
ずれか1記載の画像符号化装置。
5. The image coding apparatus according to claim 2, wherein said plurality of binarization methods are a fixed threshold method and a dither method.
【請求項6】 前記符号化方式をマルコフモデル符号化
とすることを特徴とする請求項1ないし5いずれか1記
載の画像符号化装置。
6. The image encoding apparatus according to claim 1, wherein said encoding method is Markov model encoding.
【請求項7】 前記符号化条件としてAT画素の座標に
対応するパラメータを用いることを特徴とする請求項1
ないし6いずれか1記載の画像符号化装置。
7. The method according to claim 1, wherein a parameter corresponding to the coordinates of an AT pixel is used as the encoding condition.
7. The image coding apparatus according to any one of claims 6 to 6.
【請求項8】 前記符号化手段は、前記2値画像データ
における符号化対象ラインの画素データと該符号化対象
ラインの直上ラインの画素データとが一致したときに符
号化をスキップする典型的予測を行う典型的予測部と、
指定された前記パラメータに対応するAT画素の座標情
報を出力するAT部と、該AT部から出力された座標情
報に基づいてコンテクストを形成するモデルテンプレー
トと、該モデルテンプレートを参照し、マルコフモデル
符号化を行う算術符号化部とを備えることを特徴とする
請求項7記載の画像符号化装置。
8. A typical prediction unit that skips encoding when pixel data of a line to be encoded in the binary image data coincides with pixel data of a line immediately above the line to be encoded. A typical predictor that performs
An AT unit that outputs coordinate information of an AT pixel corresponding to the specified parameter, a model template that forms a context based on the coordinate information output from the AT unit, and a Markov model code with reference to the model template. The image encoding apparatus according to claim 7, further comprising an arithmetic encoding unit that performs the encoding.
JP20774197A 1997-08-01 1997-08-01 Image coder Pending JPH1155528A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20774197A JPH1155528A (en) 1997-08-01 1997-08-01 Image coder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20774197A JPH1155528A (en) 1997-08-01 1997-08-01 Image coder

Publications (1)

Publication Number Publication Date
JPH1155528A true JPH1155528A (en) 1999-02-26

Family

ID=16544774

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20774197A Pending JPH1155528A (en) 1997-08-01 1997-08-01 Image coder

Country Status (1)

Country Link
JP (1) JPH1155528A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6738521B2 (en) 2001-03-15 2004-05-18 Kabushiki Kaisha Toshiba Coding device and coding method
US7298914B2 (en) 2002-05-23 2007-11-20 Fuji Xerox Co., Ltd. Image processing device, method and recording medium for compressing image data using repeatability of data patterns
US7839312B2 (en) * 2006-11-30 2010-11-23 Panasonic Corporation Coder
JP2013106240A (en) * 2011-11-15 2013-05-30 Brother Ind Ltd Control apparatus and program
JP2013106241A (en) * 2011-11-15 2013-05-30 Brother Ind Ltd Control apparatus and program

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6738521B2 (en) 2001-03-15 2004-05-18 Kabushiki Kaisha Toshiba Coding device and coding method
US7298914B2 (en) 2002-05-23 2007-11-20 Fuji Xerox Co., Ltd. Image processing device, method and recording medium for compressing image data using repeatability of data patterns
US7477791B2 (en) 2002-05-23 2009-01-13 Fuji Xerox Co., Ltd. Image processing device, method and recording medium for compressing image data
US7839312B2 (en) * 2006-11-30 2010-11-23 Panasonic Corporation Coder
JP2013106240A (en) * 2011-11-15 2013-05-30 Brother Ind Ltd Control apparatus and program
JP2013106241A (en) * 2011-11-15 2013-05-30 Brother Ind Ltd Control apparatus and program

Similar Documents

Publication Publication Date Title
JP4355043B2 (en) Image block type determination method for adaptive quantization of digital images
JP4303818B2 (en) Image coding method and apparatus
JP2794281B2 (en) Code decoding processor for dither signal
JPH06121175A (en) Picture processor
JPS59223073A (en) Picture processor
JPH0630280A (en) Selective coding preprocessing system by blocks for binary image data
JP4522199B2 (en) Image encoding apparatus, image processing apparatus, control method therefor, computer program, and computer-readable storage medium
US5491564A (en) Data compression method and apparatus for binary image using Markov model encoding
US6865298B2 (en) Compound document compression based upon neighboring pixels
JPH1155528A (en) Image coder
JP3359215B2 (en) Multi-level image coding device
JP2007306513A (en) Method and device for image data compression
JP2756371B2 (en) Image processing device
JP3085932B2 (en) Apparatus for generating predicted image using mask and apparatus for compressing, transmitting and restoring binary image using the same
US20090169123A1 (en) Method and apparatus to encode and decode halftone image
JPS63182973A (en) Pseudo half-tonal image transmission method for facsimile equipment
JPH0832820A (en) Coder for error spread binary image
JPH10150575A (en) System and method for processing image
JP3363698B2 (en) Multi-tone image coding device
JP3732329B2 (en) Pseudo halftone image encoding apparatus and encoding method
Deng et al. Low-bit-rate image coding using sketch image and JBIG
JPH09252408A (en) Decoder for multi-gradation image
JP3230122B2 (en) Data compression method and apparatus for binary image
JP3259989B2 (en) Binary and multi-valued mixed coded image data restoration method and apparatus
JPH08191395A (en) Communication equipment