JPH0591347A - Picture encoding device - Google Patents
Picture encoding deviceInfo
- Publication number
- JPH0591347A JPH0591347A JP24770991A JP24770991A JPH0591347A JP H0591347 A JPH0591347 A JP H0591347A JP 24770991 A JP24770991 A JP 24770991A JP 24770991 A JP24770991 A JP 24770991A JP H0591347 A JPH0591347 A JP H0591347A
- Authority
- JP
- Japan
- Prior art keywords
- image
- detection range
- picture
- unit
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
- 238000001514 detection method Methods 0.000 claims abstract description 79
- 230000000903 blocking effect Effects 0.000 claims abstract description 21
- 238000000034 method Methods 0.000 abstract description 19
- 230000006835 compression Effects 0.000 description 22
- 238000007906 compression Methods 0.000 description 22
- 238000010586 diagram Methods 0.000 description 11
- 238000013139 quantization Methods 0.000 description 5
- 239000000203 mixture Substances 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
Landscapes
- Compression Of Band Width Or Redundancy In Fax (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、画像処理装置から出力
される画像データに対して、その種別に応じた圧縮方式
を適用して適切な符号化を行う画像符号化装置に関す
る。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image coding apparatus for appropriately coding image data output from an image processing apparatus by applying a compression method according to its type.
【0002】[0002]
【従来の技術】従来より、画像データを圧縮し、その圧
縮された画像データを送出する装置として、画像データ
の濃度情報について設定された閾値に従い2値化を行う
ファクシミリ装置が知られている。2. Description of the Related Art Conventionally, as an apparatus for compressing image data and transmitting the compressed image data, a facsimile apparatus which performs binarization according to a threshold value set for density information of the image data is known.
【0003】一般に、文字等、白/黒2値の画素を圧縮
するものにおいては、ランレングス符号化手法が好適で
あるが、同じく2値画像であっても網点画像において
は、2値網点画像データの周期性を利用し隣接網点を参
照して圧縮する画像圧縮手段が好適である。しかし、従
来のファクシミリ装置においては、文字画像と網点画像
の両方に対し同一の圧縮方式を適用させていた。従っ
て、全体の圧縮効率は低く、このような欠点を解決する
ために種々の試みがなされている。Generally, the run-length coding method is suitable for compressing binary pixels of white / black such as characters, but even in the case of a binary image, a binary halftone dot image is used. An image compression unit that compresses by referring to adjacent halftone dots by utilizing the periodicity of point image data is suitable. However, in the conventional facsimile apparatus, the same compression method is applied to both the character image and the halftone dot image. Therefore, the overall compression efficiency is low, and various attempts have been made to solve these drawbacks.
【0004】例えば、実公平1−25001号公報に
は、「1ページにわたって混在する2値の文字画像であ
る第1の部分画像データ、2値の網点画像である第2の
部分画像データに対し、前記第1及び第2の部分画像デ
ータの種別を示す画像種別情報とそれ等の前記1ページ
分中に占める位置を示す位置情報とよりなる制御情報が
付加された1ページ分の画像データを主処理装置から受
信し、圧縮するための前記制御情報を判別する手段と、
この判別結果によって第1の部分画像データを文字画像
に適した圧縮方式で圧縮する第1の画像圧縮手段と、前
記第2の部分画像データを2値網点画像データの周期性
を利用し隣接網点を参照して圧縮する第2の画像圧縮手
段及び圧縮された第1、第2の部分画像データとを制御
情報により選択し、かつ制御情報を付加し、圧縮された
1ページ分の画像データとして送出する選択送出手段と
よりなることを特徴とする画像情報圧縮装置」が開示さ
れている。即ち、この装置では、文字画像と網点画像の
それぞれに最適の圧縮方式を用いることで全体の圧縮効
率を向上させている。For example, in Japanese Utility Model Publication No. 1-2001, "First partial image data which is a binary character image mixed over one page is converted into a second partial image data which is a binary halftone image. On the other hand, the image data for one page to which the control information including the image type information indicating the type of the first and second partial image data and the position information indicating the position occupied in the one page is added. Receiving from the main processing unit, the means for determining the control information for compression,
Based on this determination result, a first image compression means for compressing the first partial image data by a compression method suitable for a character image, and the second partial image data are adjacent to each other by utilizing the periodicity of the binary halftone image data. An image for one page compressed by selecting second image compression means for compressing with reference to halftone dots and compressed first and second partial image data by control information and adding control information. An image information compression device characterized by comprising selective transmission means for transmitting as data "is disclosed. That is, in this apparatus, the overall compression efficiency is improved by using the optimum compression method for each of the character image and the halftone image.
【0005】また、特開平3−64168号公報には、
原稿を光学的に読み取り、その読み取り情報に対して2
次元離散コサイン変換を施して圧縮処理を行う画像符号
化装置において、文字、イメージ、文字とイメージの混
在などの複数の原稿内容に対応した複数のビット割当テ
ーブルを参照して、前記2次元離散コサイン変換出力に
対する符号化を行うという技術が開示されている。これ
は、圧縮方式は従来と同じであるが、量子化部では文字
画像とイメージ画像のそれぞれに最適のビット割当テー
ブルで量子化を行うことにより、全体の圧縮効率を向上
させることを狙ったものである。Further, Japanese Patent Laid-Open No. 3-64168 discloses that
The original is read optically and the read information is 2
In an image coding apparatus that performs a three-dimensional discrete cosine transform to perform compression processing, the two-dimensional discrete cosine is referred to by referring to a plurality of bit allocation tables corresponding to a plurality of document contents such as characters, images, and a mixture of characters and images. A technique of performing coding on a converted output is disclosed. The compression method is the same as the conventional one, but the quantization unit aims to improve the overall compression efficiency by performing quantization with the optimal bit allocation table for each of the character image and the image image. Is.
【0006】[0006]
【発明が解決しようとする課題】しかし、読み込まれた
画像が例えば、カラー画像、自然画像、網点画像といっ
たイメージ画像と,文字画像の両方を含むことが可能な
場合、上記した実公平1−25001号公報や特開平3
−64168号公報に開示された技術のいずれに於いて
も、画像データの入力と併せて、入力された画像データ
が文字画像であるかイメージ画像であるのか、またはそ
の混合であるのか、あるいは混合であるとすればどこの
領域から文字画像の領域となるのかという画像種別情報
または付属する位置情報を与えなければ、最適の圧縮方
式あるいは最適のビット割当てテーブルでの量子化を行
うことが出来ないという欠点があった。However, when the read image can include both an image image such as a color image, a natural image, and a halftone dot image and a character image, the above described fairness 1- No. 25001 and Japanese Unexamined Patent Publication No.
In any of the techniques disclosed in Japanese Patent Laid-Open No. 64-16868, in combination with the input of image data, whether the input image data is a character image or an image image, or a mixture thereof, or a mixture thereof Then, unless the image type information or the attached position information indicating from which area the area of the character image becomes the area, the quantization cannot be performed by the optimum compression method or the optimum bit allocation table. There was a drawback.
【0007】本発明はこのような課題に着目してなされ
たもので、その目的とするところは入力される画像の全
画像、あるいは部分画像の画像種別に最適の圧縮方式あ
るいは量子化ビット等での圧縮等の目的で、単に入力画
像のみにより画像種別を検出し、この画像種別情報に基
づいて、画像データに対して適切な符号化を行うことが
可能な画像符号化装置を提供することにある。The present invention has been made by paying attention to such a problem, and its object is to provide an optimum compression method or quantized bit for an image type of an entire image or a partial image of an input image. To provide an image encoding device capable of detecting an image type only from an input image and performing appropriate encoding on image data based on the image type information for the purpose of compression of the image. is there.
【0008】[0008]
【課題を解決するための手段】上記目的を達成するため
に、本発明の画像符号化装置は、入力されるディジタル
画像信号をM×N(M,Nは自然数)画素のブロックに
分割するブロック化手段1と、上記ブロック化手段1に
よって分割されたブロックの複数個をもって検出範囲を
設定する検出範囲設定手段2と、上記検出範囲設定手段
2によって設定された検出範囲を、上記ブロック化手段
1によって分割されたブロックを移動単位として、画像
情報の全領域について検出範囲を移動させる検出範囲走
査手段3と、上記検出範囲走査手段3によって移動させ
る毎に、上記検出範囲内の画像種別を判別する画像種別
判断手段4と、上記ブロック化手段1によって分割され
た全ブロックの各々に対応した領域を有する記憶手段6
と、上記画像種別判断手段4が上記判別動作を終了する
毎にこの結果を上記記憶手段6に加算していく該当ブロ
ック加算手段5と、上記該当ブロック加算手段5による
加算結果を参照することにより画像種別とその位置とを
判別する画像領域判別手段7と、上記画像領域判別手段
7による判別情報に基づいて画像データを符号化する符
号化手段8とを有することを特徴とする。In order to achieve the above object, the image coding apparatus of the present invention is a block which divides an input digital image signal into blocks of M × N (M and N are natural numbers) pixels. The blocking means 1, the detection range setting means 2 for setting the detection range with a plurality of blocks divided by the blocking means 1, and the detection range set by the detection range setting means 2. With the block divided by as a movement unit, the detection range scanning unit 3 that moves the detection range for the entire area of the image information, and the image type within the detection range is determined every time the detection range scanning unit 3 moves the detection range. The image type judging means 4 and the storing means 6 having areas corresponding to all the blocks divided by the blocking means 1.
By referring to the corresponding block addition means 5 that adds the result to the storage means 6 each time the image type determination means 4 finishes the determination operation, and the addition result by the corresponding block addition means 5. It is characterized by including an image area discriminating means 7 for discriminating an image type and its position, and an encoding means 8 for encoding image data on the basis of discrimination information by the image area discriminating means 7.
【0009】[0009]
【作用】即ち、本発明の画像符号化装置では、ブロック
化手段1が、入力されるディジタル画像信号をM×N
(M,Nは自然数)画素のブロックに分割すると、検出
範囲設定手段2が、この分割されたブロックの複数個を
もって検出範囲を設定する。そして、検出範囲走査手段
3が、上記検出範囲設定手段2によって設定された検出
範囲を上記ブロック化手段1によって分割されたブロッ
クを移動単位として画像情報の全領域について検出範囲
を移動させ、画像種別判断手段4が、上記検出範囲走査
手段3による移動毎に上記検出範囲内の画像種別を判別
する。上記画像種別判断手段4が、上記判別動作を終了
する毎に、該当ブロック加算手段5が、この結果を上記
ブロック化手段1によって分割された全ブロックの各々
に対応した領域を有する上記記憶手段6に加算してい
く。こうして、画像領域判別手段7が、上記該当ブロッ
ク加算手段5による加算結果を参照することにより、画
像種別とその位置とを判別し、符号化手段8が上記画像
領域判別手段7による判別情報に基づいて画像データを
符号化する。That is, in the image coding apparatus of the present invention, the blocking means 1 converts the input digital image signal into M × N.
When a block is divided into blocks of (M and N are natural numbers) pixels, the detection range setting means 2 sets the detection range with a plurality of the divided blocks. Then, the detection range scanning means 3 moves the detection range with respect to the entire area of the image information by using the block divided by the blocking means 1 as the detection range set by the detection range setting means 2 as a movement unit, and the image type The determination unit 4 determines the image type within the detection range for each movement by the detection range scanning unit 3. Each time the image type judging means 4 finishes the judging operation, the corresponding block adding means 5 stores the result in the storage means 6 having an area corresponding to each of all the blocks divided by the blocking means 1. Will be added to. In this way, the image area discriminating means 7 discriminates the image type and its position by referring to the addition result by the block adding means 5, and the encoding means 8 is based on the discrimination information by the image area discriminating means 7. To encode the image data.
【0010】[0010]
【実施例】本発明の実施例を説明する前に、本発明の誤
解を避けるために、図1を参照して原理について説明す
る。DESCRIPTION OF THE PREFERRED EMBODIMENTS Before explaining the embodiments of the present invention, the principle will be described with reference to FIG. 1 in order to avoid misunderstanding of the present invention.
【0011】図1は本発明の原理を示す概念図である。
同図に示すように、本発明の画像符号化装置は、ブロッ
ク化手段1と、検出範囲設定手段2、検出範囲走査手段
3、画像種別判断手段4、該当ブロック加算手段5、記
憶手段6、画像領域判別手段7、符号化手段8により構
成されている。上記ブロック化手段1は、入力されるデ
ィジタル画像信号をM×N(M,Nは自然数)画素のブ
ロックに分割する。FIG. 1 is a conceptual diagram showing the principle of the present invention.
As shown in the figure, the image coding apparatus of the present invention comprises a blocking means 1, a detection range setting means 2, a detection range scanning means 3, an image type judging means 4, a corresponding block adding means 5, a storage means 6, It is composed of an image area discrimination means 7 and an encoding means 8. The blocking means 1 divides the input digital image signal into blocks of M × N (M and N are natural numbers) pixels.
【0012】上記検出範囲設定手段2は、上記ブロック
化手段1によって分割されたブロックを単位として、図
2の例に示す様に入力画像21において、複数のブロッ
ク23をもって検出範囲22を設定する。上記検出範囲
走査手段3は、上記検出設定手段2によって設定された
検出範囲を図3に示す様に1ブロック単位で移動させ
る。The detection range setting means 2 sets the detection range 22 with a plurality of blocks 23 in the input image 21 as shown in the example of FIG. 2 in units of blocks divided by the blocking means 1. The detection range scanning means 3 moves the detection range set by the detection setting means 2 in units of one block as shown in FIG.
【0013】つまり、検出範囲22を入力画像31で示
す状態より1ブロック分右方向に移動させたものは、入
力画像32で示され、さらに検出範囲22を入力画像3
2で示す状態より1ブロック分下方向に移動させたもの
は、入力画像33で示される。That is, the detection range 22 moved to the right by one block from the state shown in the input image 31 is shown in the input image 32, and the detection range 22 is further shown in the input image 3.
The input image 33 is moved downward by one block from the state shown by 2.
【0014】上記画像種別判断手段4は、上記検出範囲
走査手段3による検出範囲の移動毎に、該検出範囲内の
画像が判別対象とすべき画像種別であるか否かを判断す
る。上記記憶部6は、上記ブロック化手段1によって分
割された全ブロックの各々の位置に対応して数値の加算
が可能な領域を有する。The image type determination means 4 determines whether or not the image within the detection range is the image type to be determined every time the detection range is moved by the detection range scanning means 3. The storage unit 6 has an area in which numerical values can be added corresponding to the positions of all the blocks divided by the blocking unit 1.
【0015】上記該当ブロック加算手段5は、上記画像
種別判断手段4が判別動作を終了する毎に、その結果に
応じて上記記憶部6の中で該当する検出範囲の全ブロッ
クに対応する領域の値をカウント・アップしてゆく。上
記画像領域判別手段7は、全走査終了時に記憶部6への
加算結果より判定対象とすべき画像種別とその位置を判
別する。上記符号化手段8は、上記画像領域判別手段7
による判別結果に基づいて画像データに対して適切な符
号化を行う。Each time the image type judging means 4 finishes the judging operation, the corresponding block adding means 5 determines the area of the storage unit 6 corresponding to all the blocks in the corresponding detection range in accordance with the result. Count up the value. The image area discrimination means 7 discriminates the image type and its position to be judged from the result of addition to the storage unit 6 at the end of all scanning. The encoding means 8 is the image area discrimination means 7
Appropriate encoding is performed on the image data based on the determination result by the.
【0016】このような構成の画像符号化装置におい
て、入力されたディジタル画像信号はまず、ブロック化
手段1によりM×N画素のブロックに分割され、検出範
囲設定手段2により設定された複数のブロックの大きさ
を検出範囲として設定される。そして、上記検出範囲走
査手段3により、入力された画像情報の全領域について
検出範囲が1ブロック単位で順次移動させられる。In the image coding apparatus having such a configuration, the input digital image signal is first divided into blocks of M × N pixels by the blocking means 1 and a plurality of blocks set by the detection range setting means 2. Is set as the detection range. Then, the detection range scanning means 3 sequentially moves the detection range in units of one block for the entire area of the input image information.
【0017】上記検出範囲の移動毎に、画像種別判断手
段4により検出範囲内の画像の種別を判断し、これが判
定対象とすべき画像種別であるならば1を、そうでなけ
れば0を該当ブロック加算手段5により、記憶部6の該
当する検出範囲の全てのブロックに対応する記憶領域に
加算結果を記憶させる。Each time the detection range is moved, the image type determination means 4 determines the type of the image within the detection range. If this is the image type to be determined, 1 is applied, otherwise 0 is applied. The block addition means 5 stores the addition result in the storage areas corresponding to all the blocks in the corresponding detection range of the storage unit 6.
【0018】こうして、上記動作を入力された画像情報
の全領域について行った後、記憶部6の全領域の加算結
果を参照し、画像領域判別部7が判定対象とすべき画像
種別とその位置を判別して、符号化手段8が画像データ
の符号化を行う。以下、図4乃至図9を参照して本発明
の画像符号化装置の一実施例について説明する。図4は
実施例の画像符号化装置の構成を示すブロック図であ
る。In this way, after the above operation is performed for all areas of the input image information, the addition result of all areas of the storage unit 6 is referred to, and the image type and position of the image to be determined by the image area determination unit 7 are determined. And the encoding means 8 encodes the image data. An embodiment of the image coding apparatus of the present invention will be described below with reference to FIGS. 4 to 9. FIG. 4 is a block diagram showing the arrangement of the image coding apparatus according to the embodiment.
【0019】同図に示すように本実施例の画像符号化装
置は、ブロック化部41と、1フレーム画像記憶部4
2、検出範囲設定部43、2値画像判別部44、加算部
45、加算情報記憶部46、判別部47、判別情報記憶
部48、CRT49、符号化部50により構成されてい
る。As shown in the figure, the image coding apparatus according to the present embodiment includes a blocking unit 41 and a one-frame image storage unit 4.
2, a detection range setting unit 43, a binary image discrimination unit 44, an addition unit 45, an addition information storage unit 46, a discrimination unit 47, a discrimination information storage unit 48, a CRT 49, and an encoding unit 50.
【0020】このような構成の画像符号化装置におい
て、ディジタル画像データが入力されると、ブロック化
部41はそのディジタル画像データをM×N画素(M,
Nは自然数、例えば8×8画素)のブロックに分割し、
該ブロック分割された画像の情報は、1フレーム画像記
憶部42により格納される。In the image coding apparatus having such a structure, when digital image data is input, the blocking unit 41 converts the digital image data into M × N pixels (M,
N is a natural number, for example 8 × 8 pixels),
The information of the image divided into the blocks is stored in the one-frame image storage unit 42.
【0021】そして、検出範囲設定部43は上記1フレ
ーム画像記憶部42に記憶されたブロック化された画像
情報のうち、適当な大きさの検出範囲(本実施例では、
例えば2×2ブロック分とする)を設定する。上記設定
後、2値画像判断部44は上記検出範囲設定部43によ
り与えられた検出範囲内の各ブロックにおける画像が2
値画像であるか否かを判別する。Then, the detection range setting section 43 has a detection range of an appropriate size (in this embodiment, in the block image information stored in the one-frame image storage section 42).
For example, 2 × 2 blocks are set). After the above setting, the binary image determination unit 44 determines that the image in each block within the detection range given by the detection range setting unit 43 is 2
It is determined whether the image is a value image.
【0022】そして、加算部45は上記検出範囲内の画
像が2値画像であれば数値0を、そうでなければ数値1
を順次加算し、この加算情報は加算情報記憶部46の検
出範囲の各ブロックに対応する記憶領域に順次記憶され
る。尚、この加算情報記憶部46の記憶領域は上記1フ
レーム画像記憶部42に格納されているブロック化され
た画像の画像情報に対応している。Then, the adding section 45 gives a numerical value 0 if the image within the detection range is a binary image, and a numerical value 1 otherwise.
Are sequentially added, and the addition information is sequentially stored in the storage area of the addition information storage unit 46 corresponding to each block in the detection range. The storage area of the addition information storage unit 46 corresponds to the image information of the blocked image stored in the one-frame image storage unit 42.
【0023】次に、上記検出範囲設定部43は上記検出
範囲を1ブロック単位で移動させ、その都度、上記2値
画像判別部44は上記したような判別を行い、この判別
結果が加算情報として上記加算部45により順次上記加
算情報記憶部46に送られると、上記加算情報記憶部4
6は加算情報を記憶する。Next, the detection range setting section 43 moves the detection range in units of one block, and the binary image discrimination section 44 makes the above-mentioned discrimination each time, and the discrimination result is added information. When the addition unit 45 sequentially sends the addition information storage unit 46, the addition information storage unit 4
6 stores the addition information.
【0024】このような検出が入力画像情報の全領域に
ついて行われると、判別部47は各ブロックにおける画
像種別とその位置を判別し、判別情報記憶部48は、上
記判別部47の判別結果である画像種別とその位置に関
する判別情報を格納する。When such detection is performed for the entire area of the input image information, the discriminating unit 47 discriminates the image type and its position in each block, and the discriminating information storage unit 48 uses the discrimination result of the discriminating unit 47. The discrimination information regarding a certain image type and its position is stored.
【0025】こうして、符号化部50は、上記判別情報
記憶部48に格納された画像種別とその位置に関する情
報に基づいて、画像データに対して最適の符号化を行
う。そして更に、上記判別情報記憶部48に記憶された
情報をCRT49により表示することもできる。次に、
図5は上記2値画像判別部12の構成の詳細を示したも
のである。In this way, the encoding unit 50 optimally encodes image data based on the image type and the position information stored in the discrimination information storage unit 48. Further, the information stored in the discrimination information storage section 48 can be displayed by the CRT 49. next,
FIG. 5 shows details of the configuration of the binary image discrimination unit 12.
【0026】同図に示すように、上記2値画像判別部4
4は、ブロック走査部440と、濃度判別部441、加
算部442、切換部443、カウンタ444、検出部4
45、比較部446、書込部447、格納部448によ
り構成されている。As shown in the figure, the binary image discrimination section 4
Reference numeral 4 denotes a block scanning unit 440, a density determination unit 441, an addition unit 442, a switching unit 443, a counter 444, and a detection unit 4.
45, a comparison unit 446, a writing unit 447, and a storage unit 448.
【0027】このような構成の2値画像判別部44にお
いて、ブロック走査部440が設定された検出範囲内の
個々のブロックを走査する毎に、加算部442が、上記
ブロック走査部440に同期して各ブロックの濃度値を
加算する。In the binary image discriminating unit 44 having such a configuration, the adding unit 442 synchronizes with the block scanning unit 440 every time the block scanning unit 440 scans each block within the set detection range. Then, the density value of each block is added.
【0028】それと同時に、濃度判別部441は上記ブ
ロックにおける濃度を判別し、切換部443にその情報
を送る。切換部443はこの濃度に関する情報を受け、
カウント先をその濃度に対応するカウンタ444(カウ
ンタ0〜カウンタZ)に切換える。そして、検出部44
5は、検出範囲内の全てのブロックにおける濃度値を加
算することによりヒストグラムを形成し、該ヒストグラ
ムより濃度のピーク数を検出する。At the same time, the density discriminating unit 441 discriminates the density in the block and sends the information to the switching unit 443. The switching unit 443 receives the information regarding this concentration,
The count destination is switched to the counter 444 (counter 0 to counter Z) corresponding to the density. Then, the detection unit 44
In No. 5, a histogram is formed by adding the density values of all the blocks within the detection range, and the number of density peaks is detected from the histogram.
【0029】こうして、比較部446が上記ピーク数よ
り入力画像が2値画像であるか否かを判別し、書込部4
47が上記判別結果に応じて、2値画像の場合は0、そ
れ以外の場合は1を格納部448に書込む。以下、図6
乃至図9を参照して、上記したような構成の画像符号化
装置による具体的な動作について説明する。図6は、取
り込まれた入力画像が上記ブロック化部41によりブロ
ック化されて1フレーム画像記憶部42に格納された状
態の一部分を示したものである。In this way, the comparing unit 446 determines whether the input image is a binary image based on the number of peaks, and the writing unit 4
In accordance with the result of the determination, the storage unit 448 writes 0 if the image is a binary image and 1 otherwise. Below, FIG.
Through reference to FIG. 9, a specific operation performed by the image coding apparatus having the above-described configuration will be described. FIG. 6 shows a part of a state in which the input image captured is divided into blocks by the blocking unit 41 and stored in the one-frame image storage unit 42.
【0030】本実施例によれば、入力画像のブロック上
でx方向にnよりn+8までのブロック、y方向にmよ
りm+6までのブロックの長方形の範囲内を2値画像と
し、それ以外をイメージ画像としている。そして、上記
画像のうち、2値画像領域を検出する。According to the present embodiment, on the block of the input image, the rectangular range of the block from n to n + 8 in the x direction and the block from m to m + 6 in the y direction is defined as a binary image, and the others are imaged. I have an image. Then, the binary image area of the image is detected.
【0031】そして、検出範囲を図7(a)に示すよう
な2×2ブロック(複数ブロック)と固定し、検出範囲
設定部43は図7(b)に示すような検出範囲走査方法
により、画像情報の全領域を1ブロック単位で走査する
様に検出範囲を設定していき各設定毎に2値画像判別部
44により2値画像であるか否かを判断し、2値画像で
あれば0を、それ以外の時は1を加算情報記憶部46の
検出範囲に対応する全てのブロックに加算部45を用い
て加算し、この加算は上記検出範囲の走査が全画像領域
について行われた後に終了する。Then, the detection range is fixed to 2 × 2 blocks (plural blocks) as shown in FIG. 7A, and the detection range setting unit 43 uses the detection range scanning method as shown in FIG. 7B. The detection range is set so that the entire area of the image information is scanned in block units, and the binary image discrimination unit 44 determines for each setting whether or not the image is a binary image. 0 is added, and otherwise 1 is added to all blocks corresponding to the detection range of the addition information storage unit 46 by using the addition unit 45. In this addition, scanning of the detection range is performed for all image areas. Will end later.
【0032】そして、図6に示すような画像データが与
えられた場合、加算情報記憶部46には図8に示す様な
加算結果が与えられるので、判別部47は上記加算結果
より、加算内容が均一でない領域を検出する。つまり、
本実施例では、図8において“4”が均一であるので、
それ以外の領域を加算結果が均一ではない領域と判断す
る。こうして、図9に示すような判別結果を得る。そし
て、上記した判別結果は判別部47により、図10に示
すようなデータ例10のフォーマットに変換されて、判
別情報記憶部48に書き込まれる。When the image data as shown in FIG. 6 is given, the addition information storage section 46 is given the addition result as shown in FIG. Detect areas that are not uniform. That is,
In this embodiment, "4" is uniform in FIG.
The other areas are determined as areas where the addition result is not uniform. Thus, the discrimination result as shown in FIG. 9 is obtained. Then, the discrimination result described above is converted into the format of the data example 10 as shown in FIG. 10 by the discrimination unit 47 and written in the discrimination information storage unit 48.
【0033】この判別情報記憶部48に書き込まれた画
像種別と開始位置の情報に基づいて画像データに対して
最適の符号化が行われる。さらに、上記判別情報記憶部
48に記憶された情報はCRT49により表示すること
もできる。Optimal encoding is performed on the image data based on the image type and start position information written in the discrimination information storage section 48. Further, the information stored in the discrimination information storage section 48 can be displayed by the CRT 49.
【0034】尚、図10に示したデータ列において、1
00はヘッディング開始符号、101はデータヘッダデ
ータ、102はトータルのデータ長、103は本画像情
報に含まれる画像種数(本実施例では2種)、104は
データユニット開始符号、105A,105Bは画像種
別(本実施例では2値画像とイメージ画像)、106は
該当する画像品種の部分画像がいくつあるかというブロ
ック情報、107はその各々の領域を示す座標情報、1
08はデータユニット終了符号、109はテキスト終了
符号をそれぞれ示す。In the data string shown in FIG. 10, 1
00 is a heading start code, 101 is data header data, 102 is the total data length, 103 is the number of image types (two types in this embodiment) included in the main image information, 104 is a data unit start code, and 105A and 105B are Image type (binary image and image image in this embodiment), 106 is block information indicating how many partial images of the corresponding image type are, 107 is coordinate information indicating each area, 1
Reference numeral 08 indicates a data unit end code, and 109 indicates a text end code.
【0035】以上説明したように、本実施例では、特に
2値画像判別部44において、画像の量子化レベルの発
生頻度分布を求め、ピークの発生パターンにより2値画
像であるか否かを判別している。As described above, in the present embodiment, particularly in the binary image discriminating section 44, the occurrence frequency distribution of the quantization level of the image is obtained, and it is discriminated whether or not the image is a binary image based on the peak generation pattern. is doing.
【0036】この他にもDCT係数の周波数分布により
高周波成分が大きい場合2値画像と判断する方法もあ
り、ベースの色または輝度レベルを記憶しておき、頻度
分布のピークが発生しているレベルとの比較等により、
2値画像データかどうかの判断を行う方法をとることも
可能である。In addition to this, there is also a method of determining a binary image when the high frequency component is large due to the frequency distribution of the DCT coefficient, and the base color or luminance level is stored and the level at which the peak of the frequency distribution occurs. By comparison with
It is also possible to adopt a method of determining whether the image data is binary image data.
【0037】さらに、圧縮方式としてDCT符号化を行
うか、モデファイド・ハフマン等の様な2値圧縮を行う
か否かの判断の為に上記検出を行っている場合におい
て、特に、どちらとも判断しがたい領域があるような場
合にはDCT符号化を、確実に2値化であることが判っ
ている部分には上記2値圧縮方法による圧縮処理を行う
のが最適である。Further, in the case where the above detection is performed to determine whether to perform DCT encoding as a compression method or to perform binary compression such as modified Huffman, it is particularly determined whether or not. When there is an uncomfortable area, it is optimal to perform DCT encoding, and to the portion that is surely binarized, the compression processing by the above binary compression method is performed.
【0038】以上、本発明の一実施例について説明した
が、本発明はこれに限定されること無く、その他の変更
および変形が可能であることは勿論である。例えば、自
動判別の結果を表示によりユーザに確認させ、修正でき
る様にすることも可能である。Although one embodiment of the present invention has been described above, the present invention is not limited to this, and it is needless to say that other changes and modifications can be made. For example, it is also possible to allow the user to confirm the result of the automatic determination by display and correct it.
【0039】[0039]
【発明の効果】本発明によれば、入力される画像の全画
像、又は部分画像の画像種別に最適の圧縮方式あるいは
量子化ビット等での圧縮、あるいは画面を検出等の目的
で小型化する際などの最適化等を行うことを可能にする
様な入力画像の画像種別情報と、それに付属する位置情
報を検出することにより、画像データに対して最適な方
法で符号化することが可能な画像符号化装置を提供する
ことができる。According to the present invention, the size of the input image is reduced for the purpose of detecting the screen or the like by compressing with the optimum compression method or quantization bit for the image type of the whole image or the partial image. By detecting the image type information of the input image and the position information attached to it, which enables optimization such as the case, it is possible to encode the image data by an optimum method. An image encoding device can be provided.
【図1】本発明の画像符号化装置の原理を示す概念図で
ある。FIG. 1 is a conceptual diagram showing the principle of an image encoding device of the present invention.
【図2】本発明の画像符号化装置により分割されたブロ
ックを単位として、複数のブロックをもって設定された
検出範囲を示す図である。FIG. 2 is a diagram showing a detection range set by a plurality of blocks in units of blocks divided by the image encoding device of the present invention.
【図3】本発明の画像符号化装置における検出範囲の1
ブロック単位での移動を説明するための図である。FIG. 3 is one of detection ranges in the image encoding device of the present invention.
It is a figure for demonstrating movement per block.
【図4】実施例の画像符号化装置の構成を示すブロック
図である。FIG. 4 is a block diagram showing a configuration of an image encoding device according to an embodiment.
【図5】実施例における2値画像判別部12の構成の詳
細を示す図である。FIG. 5 is a diagram showing details of a configuration of a binary image discrimination unit 12 in the embodiment.
【図6】実施例により取り込まれた入力画像がブロック
化部41によりブロック化されて1フレーム画像記憶部
42に格納された状態の一部分を示す図である。FIG. 6 is a diagram showing a part of a state in which an input image captured by the embodiment is blocked by a blocking unit 41 and stored in a 1-frame image storage unit 42.
【図7】実施例の検出範囲について説明するための図
で、(a)は検出範囲を示す2×2ブロック(複数ブロ
ック)、(b)は検出範囲設定部による検出範囲走査方
法を示す図である。7A and 7B are diagrams for explaining a detection range of the embodiment, FIG. 7A is a 2 × 2 block (plural blocks) showing the detection range, and FIG. 7B is a view showing a detection range scanning method by the detection range setting unit. Is.
【図8】実施例における加算情報記憶部46に記憶され
る加算結果を示す図である。FIG. 8 is a diagram showing an addition result stored in an addition information storage unit 46 in the embodiment.
【図9】実施例の画像符号化装置の判別部47による判
別結果を示す図である。FIG. 9 is a diagram showing a discrimination result by a discrimination unit 47 of the image encoding device according to the embodiment.
【図10】実施例の判別情報記憶部48に書き込まれる
べきフォーマットに変換されたデータ例を示す図であ
る。FIG. 10 is a diagram showing an example of data converted into a format to be written in the discrimination information storage unit 48 of the embodiment.
1…ブロック化手段、2…検出範囲設定手段、3…検出
範囲走査手段、4…画像種別判断手段、5…該当ブロッ
ク加算手段、6…記憶手段、7…画像領域判別手段、8
…符号化手段。DESCRIPTION OF SYMBOLS 1 ... Blocking means, 2 ... Detection range setting means, 3 ... Detection range scanning means, 4 ... Image type determination means, 5 ... Applicable block addition means, 6 ... Storage means, 7 ... Image area determination means, 8
... encoding means.
Claims (1)
(M,Nは自然数)画素のブロックに分割するブロック
化手段と、 上記ブロック化手段によって分割されたブロックの複数
個をもって検出範囲を設定する検出範囲設定手段と、 上記検出範囲設定手段によって設定された検出範囲を、
上記ブロック化手段によって分割されたブロックを移動
単位として、画像情報の全領域について検出範囲を移動
させる検出範囲走査手段と、 上記検出範囲走査手段によって上記検出範囲を移動させ
る毎に、上記検出範囲内の画像種別を判別する画像種別
判断手段と、 上記ブロック化手段によって分割された全ブロックの各
々に対応した領域を有する記憶手段と、 上記画像種別判断手段が上記判別動作を終了する毎に、
その結果を上記記憶手段に加算していく該当ブロック加
算手段と、 上記該当ブロック加算手段による上記加算結果を参照す
ることにより、画像種別とその位置とを判別する画像領
域判別手段と、 上記画像領域判別手段による判別情報に基づいて画像デ
ータを符号化する符号化手段と、 を具備することを特徴とする画像符号化装置。1. An input digital image signal is M × N.
(M and N are natural numbers) Blocking means for dividing into blocks of pixels, detection range setting means for setting the detection range with a plurality of blocks divided by the blocking means, and setting by the detection range setting means The detection range
Within the detection range, each time the detection range is moved by the detection range scanning means, the detection range is moved with respect to the entire area of the image information by using the block divided by the blocking means as a movement unit. Image type determining means for determining the image type of, a storage means having an area corresponding to each of all blocks divided by the blocking means, and each time the image type determining means completes the determination operation,
A corresponding block addition means for adding the result to the storage means, an image area determination means for determining the image type and its position by referring to the addition result by the corresponding block addition means, and the image area An image encoding device comprising: an encoding unit that encodes image data based on the discrimination information by the discrimination unit.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP24770991A JPH0591347A (en) | 1991-09-26 | 1991-09-26 | Picture encoding device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP24770991A JPH0591347A (en) | 1991-09-26 | 1991-09-26 | Picture encoding device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0591347A true JPH0591347A (en) | 1993-04-09 |
Family
ID=17167500
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP24770991A Withdrawn JPH0591347A (en) | 1991-09-26 | 1991-09-26 | Picture encoding device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0591347A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2015177474A (en) * | 2014-03-17 | 2015-10-05 | 株式会社リコー | Terminal, method and program |
-
1991
- 1991-09-26 JP JP24770991A patent/JPH0591347A/en not_active Withdrawn
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2015177474A (en) * | 2014-03-17 | 2015-10-05 | 株式会社リコー | Terminal, method and program |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4124870A (en) | Method for improving print quality of coarse-scan/fine-print character reproduction | |
| US6751356B2 (en) | Image processing apparatus and method | |
| JP2720924B2 (en) | Image signal encoding device | |
| US20010000314A1 (en) | Iterative smoothing technique for pre-processing mixed raster content planes to improve the quality of a decompressed image and increase document compression ratios | |
| JPS59223073A (en) | Picture processor | |
| JPH08228294A (en) | Picture compressing device and data compressing method | |
| EP0613290B1 (en) | Method and apparatus for binary image data compression | |
| US5442459A (en) | Process for encoding a half tone image considering similarity between blocks | |
| JPH04328960A (en) | Image data transmission device and image data transmission method | |
| US20080037902A1 (en) | Image processing apparatus and control method therefor | |
| JPH07118772B2 (en) | Image data encoding method | |
| EP0902398B1 (en) | Method and system for compressing and decompressing binary representations of dithered images | |
| TW317686B (en) | ||
| JPH1070654A (en) | Image processor | |
| EP1006714A2 (en) | Method of processing mixed raster content planes | |
| JPH0591347A (en) | Picture encoding device | |
| US5438432A (en) | Data transmitting apparatus | |
| JP2546879B2 (en) | Encoder | |
| JPH082083B2 (en) | Multi-level image block coding device | |
| JP3062224B2 (en) | Image coding method | |
| JPH08298589A (en) | Image processing device for mixed images of photos and documents | |
| JPH07231385A (en) | Method for determining optimum linear density for image processing device | |
| JPH08191395A (en) | Communication equipment | |
| JP2685791B2 (en) | Halftone fax machine | |
| JP3791129B2 (en) | Image identification device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 19981203 |