JPH1098621A - Picture processor - Google Patents

Picture processor

Info

Publication number
JPH1098621A
JPH1098621A JP24797696A JP24797696A JPH1098621A JP H1098621 A JPH1098621 A JP H1098621A JP 24797696 A JP24797696 A JP 24797696A JP 24797696 A JP24797696 A JP 24797696A JP H1098621 A JPH1098621 A JP H1098621A
Authority
JP
Japan
Prior art keywords
block
blocks
encoding
coding
image processing
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
JP24797696A
Other languages
Japanese (ja)
Inventor
Hitoshi Okamoto
仁 岡本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP24797696A priority Critical patent/JPH1098621A/en
Publication of JPH1098621A publication Critical patent/JPH1098621A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PROBLEM TO BE SOLVED: To comparatively and precisely evaluate an error and to execute efficient compression encoding in spite of the direction of correlation between blocks by dividing picture data into blocks, synthesizing the blocks in accordance with the representative values of the respective adjacent blocks and executing encoding. SOLUTION: An adaptive encoder 11 sequentially takes out block pictures from a block set buffer 10 collecting plural block pictures obtained by dividing original picture data and storing them and it encodes them. The adaptive encoder 11 sends the representative value of block picture data to a statistic computing element 13. The statistic computing element 13 obtains a difference between the representative value of the head block picture and the representative values of the successive block pictures and a selector 14 synthesizes the encoded block pictures whose representative values are considered to be the same through a code synthesizer 15. Thus, picture data where a blank or the part of the same color occupy much can be compressed/encoded with high efficiency by preserving minute information of picture data such as characters as they are.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、原稿の画像をスキ
ャナーにより読み取ってデジタル画像データに変換した
後、画像データを一旦蓄積して画像の記録を行うデジタ
ル複写機や、画像データの伝送を行うファクシミリ、あ
るいは画像データの通信や処理を行うパーソナルコンピ
ュータ等に使用される画像処理装置に関し、特にカラー
静止画像のデジタル画像データの情報論的な冗長度を圧
縮して符号化するのに適した画像処理装置に関するもの
である。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a digital copying machine for reading an image of a document by a scanner, converting the image into digital image data, and temporarily storing the image data to record the image, and transmitting the image data. Facsimile, or an image processing device used for a personal computer or the like that performs communication and processing of image data, particularly an image suitable for compressing and encoding the informational redundancy of digital image data of a color still image The present invention relates to a processing device.

【0002】[0002]

【従来の技術】従来、この種のデジタル画像データの情
報論的な冗長度を圧縮して符号化する画像処理装置に関
しては、種々の方式のものが提案されているが、その一
つに画像データを所定数の画素を含むブロックに分割し
てブロックごとに符号化を行う所謂ブロックトランケー
ション符号化(Block Truncation C
oding:BTC)方式がある。
2. Description of the Related Art Conventionally, various types of image processing apparatuses have been proposed as image processing apparatuses for compressing and encoding the informational redundancy of digital image data of this type. So-called block truncation coding (block truncation coding) in which data is divided into blocks including a predetermined number of pixels and coding is performed for each block.
coding (BTC) method.

【0003】一般にブロックごとに符号化するBTC方
式は、一つのブロック内の情報で完結して符号化するも
のであるためブロック間の相関が弱くなり、符号化効率
を高めるためにブロックのサイズを大きく設定すると、
ブロック間の相関を符号に十分反映することができず、
精細性を維持することが困難であった。
[0003] Generally, in the BTC method in which coding is performed for each block, the coding is completed using information in one block, so that the correlation between the blocks is weakened, and the size of the block is increased in order to increase the coding efficiency. If you set it large,
The correlation between the blocks cannot be fully reflected in the code,
It was difficult to maintain the definition.

【0004】そこで、ブロック間の相関を利用して符号
化効率を高めつつ精細性を維持することが可能な符号化
方式として、例えば、特開昭57−127363号公報に開示さ
れているブロックトランケーション符号化(DBTC)
方式が既に提案されている。
[0004] Therefore, as an encoding method capable of maintaining the definition while improving the encoding efficiency by utilizing the correlation between blocks, for example, a block truncation disclosed in Japanese Patent Application Laid-Open No. 57-127363 is disclosed. Encoding (DBTC)
A scheme has already been proposed.

【0005】このDBTC型符号化方式では、ブロック
内の画素値がほぼ均一の場合はブロックの平均画素値を
唯一の画素値情報とし、全画素に平均画素値を示す画素
に相当する画素情報を与えて画素情報をランレングス
(RL)符号化するとともに、注目ブロックの画素値と
直前のブロックの画素値が同一である場合には、同一で
あることを示すフラグで符号化することで、符号化効率
を高めつつ隣接するブロックの画素値を考慮して精細性
を維持している。
In this DBTC coding method, when pixel values in a block are substantially uniform, the average pixel value of the block is used as the only pixel value information, and pixel information corresponding to the pixel indicating the average pixel value is assigned to all pixels. The pixel information is given by run-length (RL) encoding, and when the pixel value of the block of interest and the pixel value of the immediately preceding block are the same, the pixel information is encoded with a flag indicating that they are the same. The definition is maintained while considering the pixel values of the adjacent blocks while increasing the conversion efficiency.

【0006】また、特開昭59−44175 号公報に開示され
ているブロックランレングス(BRL)符号化方式で
は、特定の画素情報を有するブロックをランレングス
(RL)符号化することで符号化効率を高めている。
In the block run length (BRL) coding system disclosed in Japanese Patent Application Laid-Open No. Sho 59-44175, coding efficiency is improved by performing run length (RL) coding of a block having specific pixel information. Is increasing.

【0007】さらに、特開平4 −270473号公報に開示さ
れている符号化方法では、ブロックを一つの画素値で近
似するモード、一つの画素値で近似される複数のブロッ
クをブロックランレングス(BRL)符号化するモー
ド、ブロックを二つの画素値で近似するモードおよびブ
ロックを四つ以上の画素値で近似するモードをそれぞれ
設けて、符号化効率と画質の向上を図っている。
Further, in the coding method disclosed in Japanese Patent Laid-Open No. 4-270473, a mode in which a block is approximated by one pixel value, and a plurality of blocks approximated by one pixel value are block-run-length (BRL). 2.) A mode for encoding, a mode for approximating a block with two pixel values, and a mode for approximating a block with four or more pixel values are provided to improve the encoding efficiency and image quality.

【0008】また、画像電子学会誌第23巻第1号(1994)
P3 〜10の「セグメンテーションに基づく画像符号化方
式と解像度変換への応用」に開示されている符号化方式
では、原画像と符号の誤差が所定値を越えた場合にブロ
ックを分割していくことで画質を維持するとともに、分
割後、相関の高い領域を統合してチェーン符号化するこ
とで符号化効率も確保している。
[0008] The Journal of the Institute of Image Electronics Engineers of Japan, Vol. 23, No. 1, 1994
In the coding method disclosed in “Image coding method based on segmentation and application to resolution conversion” on pages 3 to 10, the block is divided when the error between the original image and the code exceeds a predetermined value. In addition to maintaining the image quality, the regions having high correlation are integrated and chain-encoded after the division to secure the encoding efficiency.

【0009】[0009]

【発明が解決しようとする課題】しかしながら、上記特
開昭57−127363号公報及び特開昭59−44175 号公報、並
びに特開平4 −270473号公報に開示されたブロックラン
レングス(BRL)による走査方向に留まったブロック
間の相関を利用する方式では、ブロックの走査方向と直
交する方向に強い相関関係をもつ画像等において、ブロ
ック間の相関を圧縮符号化に反映することができず、縦
方向の直線が不連続となったりして、精細性を維持する
ことができないという問題点を有している。
However, scanning by the block run length (BRL) disclosed in the above-mentioned JP-A-57-127363, JP-A-59-44175, and JP-A-4-270473. In the method that uses the correlation between blocks remaining in the direction, in a picture or the like having a strong correlation in the direction orthogonal to the scanning direction of the block, the correlation between the blocks cannot be reflected in the compression encoding, and the Is discontinuous, and the definition cannot be maintained.

【0010】また、ブロックサイズそのものを適応的に
変化させることがない方式では、比較的単純で、例えば
空白あるいは同一色部分が多くを占める画像データを圧
縮符号化する際にも、符号化効率を大幅に向上させるこ
とができないという問題点を有している。
The method in which the block size itself is not adaptively changed is relatively simple. For example, even when image data occupying a large amount of blank space or the same color portion is subjected to compression coding, the coding efficiency is reduced. There is a problem that it cannot be greatly improved.

【0011】さらに、上記画像電子学会誌第23巻第1号
(1994)P3 〜10の「セグメンテーションに基づく画像符
号化方式と解像度変換への応用」に開示されているよう
に、ブロックを分割することで適応的にブロックサイズ
を変化させる方式の場合には、原画像と符号の誤差が所
定値を越えているか否かの判別を行う誤差値の評価が問
題となる。
Further, the Journal of the Institute of Image Electronics Engineers of Japan, Vol. 23, No. 1,
(1994) As disclosed in "Image coding scheme based on segmentation and application to resolution conversion" on pages 3 to 10, in the case of a scheme in which a block size is adaptively changed by dividing a block, The problem is the evaluation of the error value for determining whether the error between the original image and the code exceeds a predetermined value.

【0012】すなわち、ブロックサイズが大きい場合に
は、誤差値を評価する際に、その誤差値がブロック全体
に分散しているノイズによって生じた値なのか、限定さ
れた箇所に実際に存在する図形等の画像データによって
生じた値なのか、誤差値のみに基づいて区別することが
困難である。そのため、ブロック全体に分散しているノ
イズの影響を受けやすいばかりか、局所的に実際に存在
する図形等の画像の再現性が低下するという問題点を新
たに有している。
That is, when the block size is large, when the error value is evaluated, whether the error value is a value generated by noise dispersed throughout the block or a pattern actually existing in a limited place It is difficult to discriminate based on only the error value, whether it is a value generated by image data or the like. For this reason, there is a new problem that not only is it susceptible to the noise dispersed in the entire block, but also the reproducibility of an image such as a figure that actually exists locally is reduced.

【0013】また、相関の高いブロック領域を統合して
チェーン符号化する際に、ブロックサイズを大きく設定
するとその分だけ符号量も多くなるため、符号化効率の
大幅な向上は期待することができないという問題点をも
有している。
In addition, when chain coding is performed by integrating block regions having high correlation, if the block size is set large, the code amount increases accordingly, so that a large improvement in coding efficiency cannot be expected. There is also a problem that.

【0014】そこで、本発明は、上記従来技術の問題点
を解決するためになされたものであり、その目的とする
ところは、ブロックの走査方向と直交する方向に強い相
関関係をもつ画像等においても、ブロック間の相関を圧
縮符号化に反映することができるとともに、ブロック全
体に分散しているノイズの影響を受け難く、符号化効率
を向上しつつ精細性を維持することが可能な画像処理装
置を提供することにある。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problems of the prior art, and an object of the present invention is to provide an image or the like having a strong correlation in a direction orthogonal to the block scanning direction. Image processing that can reflect the correlation between blocks in the compression encoding, is less susceptible to noise dispersed throughout the block, and maintains the definition while improving the encoding efficiency. It is to provide a device.

【0015】[0015]

【課題を解決するための手段】上記課題を解決するため
請求項1記載の構成にあっては、入力した画像データを
ブロックに分割し該ブロックごとに符号化を行う画像処
理装置であって、入力された画像データを所定数の画素
を含むブロックに分割する分割手段と、前記各ブロック
に含まれる画素データの統計情報を求める統計情報演算
手段と、前記統計情報演算手段によって求められた統計
情報に基づき、前記各ブロックは周辺の複数ブロックと
統合して符号化を行うべき第1のブロックであるか、統
合せずに符号化を行うべき第2のブロックであるかを判
定する判定手段と、前記第1のブロックと、その周辺の
複数ブロックとを統合し、統合ブロックを生成する統合
手段と、前記統合ブロックおよび前記第2のブロックに
ついて代表値を求める代表値演算手段と、これら代表値
に対して符号化を行う符号化手段とを有することを特徴
とする。
According to a first aspect of the present invention, there is provided an image processing apparatus which divides input image data into blocks and encodes each block. A dividing unit that divides the input image data into blocks each including a predetermined number of pixels; a statistical information calculating unit that calculates statistical information of pixel data included in each of the blocks; and a statistical information obtained by the statistical information calculating unit. Determination means for determining whether each block is a first block to be encoded by integrating with a plurality of peripheral blocks or a second block to be encoded without being integrated based on Integrating means for integrating the first block and a plurality of blocks around the first block to generate an integrated block; and determining a representative value for the integrated block and the second block. A representative value calculating unit that, and having a coding means for coding for these representative values.

【0016】さらに、請求項2記載の構成にあっては、
請求項1記載の画像処理装置において、前記符号化手段
は、前記統計情報または前記判定手段における判定結果
に基づいて、複数の符号化方式のうち何れかを適用する
ものであることを特徴とする。
Further, in the configuration according to the second aspect,
2. The image processing apparatus according to claim 1, wherein the encoding unit applies one of a plurality of encoding methods based on the statistical information or a determination result of the determination unit. .

【0017】さらに、請求項3記載の構成にあっては、
請求項2記載の画像処理装置において、前記統合手段
は、複数ブロックを一種類もしくは複数種類の所定の形
状に統合し、もしくは所定の数のブロックを統合するこ
とを特徴とする。
Further, in the configuration according to the third aspect,
3. An image processing apparatus according to claim 2, wherein said integrating means integrates a plurality of blocks into one or a plurality of predetermined shapes, or integrates a predetermined number of blocks.

【0018】さらに、請求項4記載の構成にあっては、
請求項3記載の画像処理装置において、前記符号化手段
は、ブロックを一つの代表値で表す第1の符号化手段
と、前記ブロックを所定の参照ブロックから求められた
一つの代表値で表す第2の符号化手段とを有することを
特徴とする。
Further, in the configuration according to the fourth aspect,
4. The image processing apparatus according to claim 3, wherein the encoding unit includes a first encoding unit that represents a block by one representative value, and a first encoding unit that represents the block by one representative value obtained from a predetermined reference block. 2 encoding means.

【0019】(作用)本発明による画像処理装置によれ
ば、隣接する各ブロックの代表値に応じてブロックを統
合して符号化を行うことで、誤差値を比較的正確に評価
することができ、ブロック間の相関の方向によらずに効
率的な圧縮符号化を行うことができる。
(Operation) According to the image processing apparatus of the present invention, error values can be evaluated relatively accurately by integrating and encoding blocks according to the representative value of each adjacent block. Thus, efficient compression encoding can be performed regardless of the direction of correlation between blocks.

【0020】言い換えれば、本発明による画像処理装置
は局所領域の画素情報に応じてブロックサイズを変化さ
せ、符号化効率を高めるのに都合のよいブロックを単位
に符号化していることになる。
In other words, the image processing apparatus according to the present invention changes the block size according to the pixel information of the local area, and encodes the blocks in units convenient for improving the encoding efficiency.

【0021】また、統合ブロックの形状を所定のものと
することで、タグを付加するだけでブロックの形状およ
び大きさを明示できるため、チェーン符号等でブロック
の形状を記述する必要がなくなり、符号量を減らすこと
が可能になる。
Further, by setting the shape of the integrated block to a predetermined shape, the shape and size of the block can be clearly indicated only by adding a tag. The amount can be reduced.

【0022】[0022]

【発明の実施の形態】以下、図面を参照して本発明の一
実施の形態について説明する。図1は本発明による画像
処理装置の一実施の形態を示すブロック図であり、1は
図示しないスキャナー等によって読み取られ、入力され
た原稿の原画像データ、2は原画像データ1を縦方向に
m画素、横方向にn画素(例えば、m×n=8×8=6
4画素)の所定の大きさに分割したブロック、3は所定
の大きさに分割されたブロック2を縦方向及び横方向に
xブロックずつ集合させたブロック集合である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of an image processing apparatus according to the present invention. Reference numeral 1 denotes original image data of a document read and input by a scanner or the like (not shown); m pixels, n pixels in the horizontal direction (for example, m × n = 8 × 8 = 6
The block 3 divided into a predetermined size (4 pixels) is a block set in which the blocks 2 divided into the predetermined size are grouped by x blocks in the vertical and horizontal directions.

【0023】また、4は符号化を行うブロックに分割さ
れた画像データ2を一時記憶するバッファ、5は一ブロ
ックを表す一つの代表値を演算する代表値演算器と、B
TCやDCT符号化方式等の一つ又は複数の符号化方式
を採用した符号化器とを含む符号化手段である。
Reference numeral 4 denotes a buffer for temporarily storing image data 2 divided into blocks to be coded, 5 a representative value calculator for calculating one representative value representing one block, and B
The encoding means includes an encoder that employs one or a plurality of encoding schemes such as the TC and DCT encoding schemes.

【0024】6は前記原画像データ1と前記符号化手段
5によって得られた符号の復号画像とを比較し、所定の
統計量を演算する統計量演算手段、7は前記統計量演算
手段6によって得られた統計量に基いて、ブロックの統
合を行うか否かを選択する選択手段、8は前記符号化手
段5によって符号化された画像データを蓄積及び伝送す
る蓄積/伝送手段である。
Reference numeral 6 denotes a statistic calculation means for comparing the original image data 1 with a decoded image of the code obtained by the coding means 5 to calculate a predetermined statistic. A selection unit 8 for selecting whether or not to integrate blocks based on the obtained statistics, and a storage / transmission unit 8 for storing and transmitting the image data encoded by the encoding unit 5.

【0025】図2は上記の如く構成される本発明の一実
施の形態による画像処理装置の更に具体的なハードウエ
アブロック図を示すものである。
FIG. 2 is a more specific hardware block diagram of the image processing apparatus according to the embodiment of the present invention configured as described above.

【0026】図において、9は図示しないスキャナーに
よって読み取られた原稿の1ページ分の原画像データ1
を記憶するフレーム画像バッファ、10は一つのブロッ
ク集合(例えば、m×n=8×8=64画素)分の画像
データ2を一時記憶するブロック集合画像バッファであ
る。
In the drawing, reference numeral 9 denotes original image data 1 for one page of a document read by a scanner (not shown).
Is a block set image buffer for temporarily storing image data 2 for one block set (for example, m × n = 8 × 8 = 64 pixels).

【0027】また、11は一ブロック集合分の画像デー
タ2をBTCやDCT符号化方式等の対応する一種類ま
たは複数種類の符号に変換したデータに、一ブロック単
位で適応的に符号化を行う適応的符号化器、12は前記
適応的符号化器11によって符号化された一ブロック集
合分の符号を一時記憶する中間符号バッファである。
Numeral 11 adaptively encodes image data 2 corresponding to a set of blocks into data obtained by converting the image data 2 into one or more kinds of corresponding codes such as BTC or DCT coding in units of one block. An adaptive encoder 12 is an intermediate code buffer for temporarily storing codes for one block set encoded by the adaptive encoder 11.

【0028】13は統計量演算器であり、前記適応的符
号化器11から得られた一種類または複数種類の符号化
された画像データと原画像データ2とを比較して所定の
統計量を演算する。14は選択器であり、前記統計量演
算器13から得られた統計量に基づいて前記適応的符号
化器11から得られた一種類または複数種類の符号化さ
れた画像データをそのまま出力するか統合して出力する
かを選択する。
Reference numeral 13 denotes a statistic calculator which compares one or more types of encoded image data obtained from the adaptive encoder 11 with the original image data 2 to generate a predetermined statistic. Calculate. A selector 14 for outputting one or more types of encoded image data obtained from the adaptive encoder 11 based on the statistics obtained from the statistics calculator 13 as it is; Select whether to combine and output.

【0029】15は符号統合器であり、前記適応的符号
化器11から得られた符号を統合する。16は合成器で
あり、前記適応的符号化器11からそのまま出力される
符号と、前記符号統合器15によって統合された符号と
を合成する。17は中間符号バッファであり、前記合成
器16から得られた符号を一時的に記録する。
Reference numeral 15 denotes a code integrator for integrating the codes obtained from the adaptive encoder 11. Reference numeral 16 denotes a synthesizer that synthesizes the code output from the adaptive encoder 11 as it is and the code integrated by the code integrator 15. Reference numeral 17 denotes an intermediate code buffer, which temporarily stores the code obtained from the synthesizer 16.

【0030】18は選択器であり、前記統計量演算器1
3から得られた統計量に基づいて、合成器16から得ら
れた符号をそのまま出力するか符号を変換して出力する
かを選択する。19は符号変換器であり、前記選択器1
8によって符号を変換して出力することが選択された場
合に符号を変換する。
Numeral 18 denotes a selector, which is a statistic calculator 1
Based on the statistic obtained from No. 3, it is selected whether the code obtained from the synthesizer 16 is output as it is or the code is converted and output. Reference numeral 19 denotes a code converter.
The code is converted when the conversion and output of the code are selected by 8.

【0031】20は合成器であり、前記合成器16から
そのまま出力される符号と前記符号変換器19によって
変換された符号とを合成する。21はブロック集合符号
バッファであり、一ブロック集合分の符号を一時的に記
憶する。22はフレーム符号バッファであり、1ページ
分の符号化された画像データを記憶する。
Reference numeral 20 denotes a synthesizer for synthesizing the code output from the synthesizer 16 as it is and the code converted by the code converter 19. A block set code buffer 21 temporarily stores codes for one block set. Reference numeral 22 denotes a frame code buffer, which stores encoded image data for one page.

【0032】なお、本実施の形態では、統合されるブロ
ックの形状は、最初に分割されたブロック2の形状の相
似形のみとするように設定されている。
In the present embodiment, the shapes of the blocks to be integrated are set so as to be only similar to the shape of the first divided block 2.

【0033】次に、図3の符号化フローチャートを参照
しながら、図2に示した本発明の一実施の形態における
画像処理装置の動作について説明する。
Next, the operation of the image processing apparatus according to the embodiment of the present invention shown in FIG. 2 will be described with reference to the encoding flowchart of FIG.

【0034】まず、上記画像処理装置では、図示しない
スキャナーによって読み取られた原稿の1ページ分の原
画像データ1がフレーム画像バッファ9に取り込まれて
記憶される。次に、上記フレーム画像バッファ9に記憶
された原画像データ1をブロック毎に符号化していくた
め、原稿の1ページ分の原画像データ1を、図4に示す
ように、例えば8×8=64画素の一ブロック分の画素
データ2毎に分割し、当該分割された一ブロック分の画
素データ2又は当該分割された一ブロック分の画素デー
タ2を複数のブロック分集合させた画素データ2をブロ
ック集合画像バッファ10に取り込んで記憶する(ステ
ップ1)。
First, in the image processing apparatus, one page of original image data 1 of a document read by a scanner (not shown) is taken into the frame image buffer 9 and stored. Next, in order to encode the original image data 1 stored in the frame image buffer 9 for each block, as shown in FIG. The pixel data 2 for one block of 64 pixels is divided, and the pixel data 2 for the divided one block or the pixel data 2 obtained by grouping the pixel data 2 for the divided one block into a plurality of blocks is used. It is taken in and stored in the block set image buffer 10 (step 1).

【0035】上記の如く原稿の1ページ分の原画像デー
タ1を一ブロック分の画素データ2毎に分割する際、原
稿の1ページ分の原画像データ1の縦方向及び横方向の
総画素数が一ブロックに相当する縦横の画素数で割り切
れない場合、つまり、縦方向及び横方向の最後の画素数
が所定のm又はn(例えば、m=n=8)に満たない場
合には、図5に示すように、予め決められた画素値の画
素を縦方向及び横方向の最後の画素に付加、もしくは原
画像データ1の縦方向あるいは横方向の最後の画素を所
定数だけ複写して、縦方向及び横方向の最後のブロック
の画素データ2を埋めることにより、1ページ分の原画
像データ1を余すところなく整数個のブロックに分割す
る。
As described above, when the original image data 1 for one page of the original is divided into pixel data 2 for one block, the total number of pixels in the vertical and horizontal directions of the original image data 1 for one page of the original Is not divisible by the number of vertical and horizontal pixels corresponding to one block, that is, if the last number of pixels in the vertical and horizontal directions is less than a predetermined m or n (for example, m = n = 8), FIG. As shown in FIG. 5, a pixel having a predetermined pixel value is added to the last pixel in the vertical and horizontal directions, or the last pixel in the vertical or horizontal direction of the original image data 1 is copied by a predetermined number, By filling the pixel data 2 of the last block in the vertical direction and the horizontal direction, the original image data 1 for one page is completely divided into an integral number of blocks.

【0036】次に、所定の一ブロック分(例えば8×8
=64画素)の画素データ2をブロック集合画像バッフ
ァ10から読み出し、一ブロックづつ適応的符号化器1
1によって符号化し(ステップ2)、一ブロック集合分
の画素データ3の総ての符号化を終えるまで繰り返す
(ステップ3)。いま、8×8=64画素の画素データ
2を一ブロック分とすると、図6に示すように、例えば
縦方向及び横方向に四つのブロックを集合させたものが
一ブロック集合3となる。ただし、この一ブロック集合
3は、縦方向及び横方向に四つのブロック2を集合させ
たものに限定されるものではなく、縦方向及び横方向に
二つ又は八つというように任意の数xだけ集合させたも
のを用いても良いことは勿論である。
Next, a predetermined block (for example, 8 × 8)
= 64 pixels) from the block group image buffer 10, and the adaptive encoder 1
1 (step 2), and the process is repeated until the encoding of all pixel data 3 for one block set is completed (step 3). Now, assuming that pixel data 2 of 8 × 8 = 64 pixels is one block, as shown in FIG. 6, for example, a set of four blocks in a vertical direction and a horizontal direction becomes a block set 3. However, this one block set 3 is not limited to a set of four blocks 2 in the vertical direction and the horizontal direction, but an arbitrary number x such as two or eight in the vertical and horizontal directions. Needless to say, it is also possible to use a set of only these.

【0037】上記適応的符号化器11の中には、一ブロ
ック分の画素データ2を一つの代表値、例えばブロック
内の画素値の平均値で表す符号化器が含まれ、統計量演
算器13によって得られた統計量、例えばSN比に基づ
いて、適応的にSN比が最も良好な符号化器11が選択
される。選択された符号化器11は各ブロックの符号の
先頭部分のタグによって、ブロックサイズと共に記述さ
れる。
The adaptive encoder 11 includes an encoder that represents the pixel data 2 for one block by one representative value, for example, the average value of the pixel values in the block. The encoder 11 having the best SN ratio is adaptively selected based on the statistic obtained by S13, for example, the SN ratio. The selected encoder 11 is described together with the block size by the tag at the head of the code of each block.

【0038】さらに説明すると、前記一ブロック分の画
素データ2を表すための代表値として、例えば、一ブロ
ック分のm×n個の全画素データの平均値を用いる場
合、この一ブロック分の全画素データ2の平均値p0
は、ブロック内の各画素の濃度をそれぞれaijとする
と、p0 =Σaij/(m×n)で与えられる。
To further explain, for example, when an average value of m × n pieces of pixel data of one block is used as a representative value for representing the pixel data 2 of one block, Average value p 0 of pixel data 2
Is given by p 0 = Σa ij / (m × n), where a ij is the density of each pixel in the block.

【0039】次に、一ブロック集合分の符号を隣接する
画素との相関をできるだけ保持するように、例えばヒル
ベルトスキャンなどを用いて、図6に示すように、一ブ
ロック集合分の16個のブロックを一次元に並べかえ
(ステップ4)、符号の先頭から順番に、連続する四つ
の符号の総てが対応する一ブロックを一つの画素値で表
す符号となっているか、タグに記述された情報を基に、
選択器14によって判定していく(ステップ5)。
Next, as shown in FIG. 6, for example, a Hilbert scan or the like is used to maintain the correlation between the codes of one block set and the adjacent pixels as much as possible. Are arranged one-dimensionally (step 4). In order from the beginning of the code, whether all four consecutive codes are codes representing one block corresponding to one pixel value or whether the information described in the tag is Based on
The determination is made by the selector 14 (step 5).

【0040】そして、連続する四つの符号が一ブロック
を一つの代表値で表す符号となっている場合には、図6
に示すように、連続する四つのブロックの代表値が同一
と見なせるか否かを、先頭ブロックの代表値と他の三つ
のブロックの代表値との差を統計量演算器13により求
めて選択器14によって判定し(ステップ6)、四つの
ブロックが同一と見なせる場合には(これらブロックの
代表値の最大値と最小値との差が所定値以下である場合
には)、図6に示すように、四つの符号を符号統合器1
5によって統合し、元のブロックの縦横二倍の相似形の
ブロックを表す符号を合成器16によって生成する(ス
テップ7)。
If the four consecutive codes are codes representing one block with one representative value, FIG.
As shown in the figure, the statistical value calculator 13 determines the difference between the representative value of the first block and the representative values of the other three blocks to determine whether or not the representative values of four consecutive blocks can be regarded as the same. If the four blocks can be regarded as the same (if the difference between the maximum value and the minimum value of the representative values of these blocks is equal to or less than a predetermined value), as shown in FIG. And the four codes are converted into a code integrator 1
5, a code representing a block having a similar shape twice as long and wide as the original block is generated by the synthesizer 16 (step 7).

【0041】その後、上記のステップ5からステップ7
の処理を終えた各符号が一ブロックの画素データを一つ
の画素値で表す符号であり、かつ参照ブロック、例えば
直前のブロックから求められる画素値と同一と見なせる
かを、参照ブロックから求められる画素値との差を統計
量演算器13により求めて選択器18によって判定する
(ステップ8)。
Thereafter, the above steps 5 to 7
Is a code that represents one block of pixel data by one pixel value, and determines whether the reference block, for example, the pixel value obtained from the immediately preceding block, can be regarded as the same as the pixel value obtained from the reference block. The difference from the value is obtained by the statistic calculator 13 and determined by the selector 18 (step 8).

【0042】この際、参照ブロックは一ブロックの画素
データを一つの画素値で表す符号となっている必要はな
い。例えば、二つの画素値を持った符号であったとして
も、そのいずれか一方もしくは両方の平均値を以てブロ
ックの代表値とすることを定めておけばよい。
At this time, the reference block does not need to be a code representing one block of pixel data by one pixel value. For example, even if the code has two pixel values, it may be determined that the average value of one or both of them is used as the representative value of the block.

【0043】一ブロックを一つの画素値で表す符号であ
り、かつ参照ブロックから求められる画素値と同一と見
なせることが選択器18によって判定された場合には、
図7に示すように、符号を符号変換器19によって変換
してブロックを所定の参照ブロックから求められた一つ
の画素値で表す符号化器を用いることとブロックサイズ
を示すタグのみとし、画素値情報を省略する(ステップ
9)。さらに、前記符号変換器19によって変換された
符号と前記合成器16から出力された符号は、合成器2
0によって合成されて、ブロック集合符号バッファ21
に記憶される。
When the selector 18 determines that a block is a code representing one pixel value and can be regarded as the same as the pixel value obtained from the reference block,
As shown in FIG. 7, using a coder that converts a code by a code converter 19 to represent a block with one pixel value obtained from a predetermined reference block and using only a tag indicating a block size, The information is omitted (step 9). Further, the code converted by the code converter 19 and the code output from the combiner 16 are combined by the combiner 2
0 and the block set code buffer 21
Is stored.

【0044】そして、上記のステップ5からステップ9
の処理が、一ブロック集合分の全ブロックについて終え
るまで繰り返される(ステップ10、11)。
Then, the above steps 5 to 9
Are repeated until all blocks of one block set are completed (steps 10 and 11).

【0045】(変形例)なお、上記実施形態では、画像
処理装置を符号化器や選択器等からなるハードウエアに
よって構成した場合について説明したが、これに限定さ
れるものではなく、ソフトウエアによって構成しても勿
論良い。
(Modification) In the above embodiment, the case where the image processing apparatus is constituted by hardware including an encoder and a selector has been described. However, the present invention is not limited to this. Of course, it may be configured.

【0046】また、上記実施形態において、隣接するブ
ロックの相関が高い場合には、ステップ5からステップ
9の処理を再帰的に行い、ブロックサイズが所定の大き
さになるまで処理を繰り返すように構成しても良い。
In the above embodiment, when the correlation between adjacent blocks is high, the processing from step 5 to step 9 is performed recursively, and the processing is repeated until the block size reaches a predetermined size. You may.

【0047】また、前記実施の形態において、一連の処
理を終えて得られた符号に可逆圧縮符号化を掛けるよう
に構成しても良い。
Further, in the above-described embodiment, a configuration may be adopted in which a code obtained after a series of processes is subjected to lossless compression encoding.

【0048】[0048]

【発明の効果】以上説明したように本発明による画像処
理装置では、業務連絡用の文書など比較的単純で空白あ
るいは同一色部分が多くを占める画像データを、文字な
ど画像データの細部の情報を保存したまま、極めて高い
効率で圧縮符号化することが可能となる。
As described above, in the image processing apparatus according to the present invention, relatively simple image data, such as a document for business communication, occupied mostly by blanks or the same color portion, and detailed information of the image data such as characters can be obtained. It is possible to perform compression encoding with extremely high efficiency while preserving the data.

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

【図1】 本発明による画像処理装置の一実施形態を示
すブロック図である。
FIG. 1 is a block diagram illustrating an embodiment of an image processing apparatus according to the present invention.

【図2】 該実施形態による画像処理装置の更に具体的
な構成を示すハードウエアブロック図である。
FIG. 2 is a hardware block diagram illustrating a more specific configuration of the image processing apparatus according to the embodiment.

【図3】 該実施形態による画像処理装置の動作を示す
フローチャートである。
FIG. 3 is a flowchart illustrating an operation of the image processing apparatus according to the embodiment.

【図4】 一つのブロックを示す説明図である。FIG. 4 is an explanatory diagram showing one block.

【図5】 一ページ分の原画像データを分割した状態を
示す説明図である。
FIG. 5 is an explanatory diagram showing a state in which one page of original image data is divided.

【図6】 ブロック集合の符号化状態を示す説明図であ
る。
FIG. 6 is an explanatory diagram showing an encoding state of a block set.

【図7】 ブロック集合の符号化状態を示す説明図であ
る。
FIG. 7 is an explanatory diagram showing an encoding state of a block set.

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

1 原画像データ 2 分割したブロック 3 ブロック集合 4 バッファ 5 符号化手段 6 統計量演算手段 7 選択手段 8 蓄積/伝送手段 DESCRIPTION OF SYMBOLS 1 Original image data 2 Divided block 3 Block set 4 Buffer 5 Encoding means 6 Statistics calculation means 7 Selection means 8 Storage / transmission means

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 入力した画像データをブロックに分割し
該ブロックごとに符号化を行う画像処理装置であって、 入力された画像データを所定数の画素を含むブロックに
分割する分割手段と、 前記各ブロックに含まれる画素データの統計情報を求め
る統計情報演算手段と、 前記統計情報演算手段によって求められた統計情報に基
づき、前記各ブロックは周辺の複数ブロックと統合して
符号化を行うべき第1のブロックであるか、統合せずに
符号化を行うべき第2のブロックであるかを判定する判
定手段と、 前記第1のブロックと、その周辺の複数ブロックとを統
合し、統合ブロックを生成する統合手段と、 前記統合ブロックおよび前記第2のブロックについて代
表値を求める代表値演算手段と、 これら代表値に対して符号化を行う符号化手段とを有す
ることを特徴とする画像処理装置。
1. An image processing apparatus that divides input image data into blocks and encodes the blocks, and divides the input image data into blocks including a predetermined number of pixels. Statistical information calculating means for calculating statistical information of pixel data included in each block; and, based on the statistical information obtained by the statistical information calculating means, each block is integrated with a plurality of peripheral blocks to perform coding. Determining means for determining whether the block is a first block or a second block to be encoded without being integrated; integrating the first block with a plurality of peripheral blocks; Integrating means for generating; representative value calculating means for obtaining a representative value for the integrated block and the second block; encoding means for performing coding on these representative values An image processing apparatus comprising:
【請求項2】 前記符号化手段は、前記統計情報または
前記判定手段における判定結果に基づいて、複数の符号
化方式のうち何れかを適用するものであることを特徴と
する請求項1記載の画像処理装置。
2. The coding apparatus according to claim 1, wherein the coding unit applies one of a plurality of coding methods based on the statistical information or a determination result of the determination unit. Image processing device.
【請求項3】 前記統合手段は、複数ブロックを一種類
もしくは複数種類の所定の形状に統合し、もしくは所定
の数のブロックを統合することを特徴とする請求項2記
載の画像処理装置。
3. The image processing apparatus according to claim 2, wherein the integration unit integrates a plurality of blocks into one or a plurality of types of predetermined shapes, or integrates a predetermined number of blocks.
【請求項4】 前記符号化手段は、 ブロックを一つの代表値で表す第1の符号化手段と、 前記ブロックを所定の参照ブロックから求められた一つ
の代表値で表す第2の符号化手段とを有することを特徴
とする請求項3記載の画像処理装置。
4. The encoding means comprises: first encoding means for representing a block by one representative value; and second encoding means for representing the block by one representative value obtained from a predetermined reference block. The image processing apparatus according to claim 3, comprising:
JP24797696A 1996-09-19 1996-09-19 Picture processor Pending JPH1098621A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24797696A JPH1098621A (en) 1996-09-19 1996-09-19 Picture processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24797696A JPH1098621A (en) 1996-09-19 1996-09-19 Picture processor

Publications (1)

Publication Number Publication Date
JPH1098621A true JPH1098621A (en) 1998-04-14

Family

ID=17171357

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24797696A Pending JPH1098621A (en) 1996-09-19 1996-09-19 Picture processor

Country Status (1)

Country Link
JP (1) JPH1098621A (en)

Similar Documents

Publication Publication Date Title
CA1240789A (en) Image processing system
JP3108479B2 (en) Encoding / decoding method and apparatus therefor
US4409623A (en) Method and equipment for processing gray scale facsimile signal
JP3461309B2 (en) Huffman coded data compression device
US6020923A (en) Method and apparatus for coding and recording an image signal and recording medium for storing an image signal
US7277585B2 (en) Image encoding method, image encoding apparatus and storage medium
US5245679A (en) Data field image compression
JP3087835B2 (en) Image encoding method and apparatus and image decoding method and apparatus
US7050645B2 (en) Image processing apparatus and image processing method
JP3387738B2 (en) Image pattern converter
US20020001414A1 (en) System for building a data compression encoder
JPH0487460A (en) Picture processor
JPH1098620A (en) Picture processor
JPH1098621A (en) Picture processor
JPH04220081A (en) Method and device for picture data decoding
JP3279324B2 (en) Data field image compression method
JP3867886B2 (en) Image encoding method, image encoding device, image decoding method, and image decoding device
JPH089373A (en) Picture compression device
JPH099065A (en) Picture data compression encoding method and decoding method
JP3216741B2 (en) Image coding method
JPH07264584A (en) Encoding and decoding method and its device
JP2002232701A (en) Image processor, image processing method, image processing program, and recording medium recording image processing program
JP3074994B2 (en) Encoding / decoding method for binary image
JP3867887B2 (en) Image coding method, image coding device, image decoding method, image decoding device, image forming device, and recording medium
JP2003153008A (en) Image coding device and image decoding device