JPH1098620A - Picture processor - Google Patents

Picture processor

Info

Publication number
JPH1098620A
JPH1098620A JP24797596A JP24797596A JPH1098620A JP H1098620 A JPH1098620 A JP H1098620A JP 24797596 A JP24797596 A JP 24797596A JP 24797596 A JP24797596 A JP 24797596A JP H1098620 A JPH1098620 A JP H1098620A
Authority
JP
Japan
Prior art keywords
block
blocks
encoding
small
image data
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
JP24797596A
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 JP24797596A priority Critical patent/JPH1098620A/en
Publication of JPH1098620A publication Critical patent/JPH1098620A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To execute efficient compression, encoding through the use of correlation between small blocks by dividing picture data into blocks, redividing the blocks which are divided in accordance with picture information into the small similar blocks and encoding the obtained small blocks as one picture element. SOLUTION: Block picture data obtained by dividing original picture data are taken into a block picture buffer 10 and an encoder 12 obtains a representative value. A statistic computing element 15 obtains statistic from block picture data and the representative value. A selector 16 outputs the representative value to a block code buffer 17 when block picture data and the representative value are considered to be the same based on statistic quantity and a re-divider 13 re-divides block picture data when they cannot be considered to be the same. It is repeated until they are considered to be the same. Thus, original picture data can be compressed/encoded with high efficiency without losing global information by preserving the outlines of respective graphics 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)方式がある。一般にブロックごと
に符号化する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. In general, in the BTC method in which coding is performed for each block, the correlation between blocks is weakened because the coding is completed with the information in one block, and when the size of the block is set large to increase the coding efficiency, However, the correlation between the blocks cannot be sufficiently reflected in the code, and it is difficult to maintain the definition.

【0003】そこで、ブロック間の相関を利用して符号
化効率を高めつつ精細性を維持することが可能な符号化
方式として、例えば、特開昭57−127363号公報に開示さ
れているブロックトランケーション符号化(DBTC)
方式が既に提案されている。このDBTC型符号化方式
では、ブロック内の画素値がほぼ均一の場合はブロック
の平均画素値を唯一の画素値情報とし、全画素に平均画
素値を示す画素に相当する画素情報を与えて画素情報を
ランレングス(RL)符号化するとともに、注目ブロッ
クの画素値と直前のブロックの画素値が同一である場合
には、同一であることを示すフラグで符号化すること
で、符号化効率を高めつつ隣接するブロックの画素値を
考慮して精細性を維持している。
[0003] To cope with this problem, Japanese Patent Application Laid-Open No. 57-127363 discloses a block truncation method that can maintain the definition while improving the coding efficiency by utilizing the correlation between blocks. Encoding (DBTC)
A scheme has already been proposed. 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 given to all pixels. The information is run-length coded (RL), and when the pixel value of the block of interest and the pixel value of the immediately preceding block are the same, the information is coded with a flag indicating the same, thereby improving the coding efficiency. The definition is maintained while taking into account the pixel values of adjacent blocks.

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

【0005】さらに、特開平4 −270473号公報に開示さ
れている符号化方法では、ブロックを一つの画素値で近
似するモード、一つの画素値で近似される複数のブロッ
クをブロックランレングス(BRL)符号化するモー
ド、ブロックを二つの画素値で近似するモードおよびブ
ロックを四つ以上の画素値で近似するモードをそれぞれ
設けて、符号化効率と画質の向上を図っている。
Further, in the encoding method disclosed in Japanese Patent Laid-Open Publication 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 subjected to 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.

【0006】また、画像電子学会誌第23巻第1号(1994)
P3 〜10の「セグメンテーションに基づく画像符号化方
式と解像度変換への応用」に開示されている符号化方式
では、原画像と符号の誤差が所定値を越えた場合にブロ
ックを分割していくことで画質を維持するとともに、分
割後、相関の高い領域を統合してチェーン符号化するこ
とで符号化効率も確保している。
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.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、上記特
開昭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.

【0008】また、上記画像電子学会誌第23巻第1号(1
994)P3 〜10の「セグメンテーションに基づく画像符号
化方式と解像度変換への応用」に開示されているよう
に、原画像と符号の誤差が所定値を越えた場合にブロッ
クを分割することで適応的にブロックサイズを変化させ
る方式の場合には、画質は向上するものの、比較的単純
な要素によって構成される例えば文字や罫線、あるいは
グラフなどの多い画像データを圧縮符号化する際にも、
ビットマップ等画素単位の情報を符号として持たなけれ
ばならないため、すべてを同一の画素値で近似させる場
合などごく一部の場合を除いて、ブロック当たりの情報
量を大きく減らすことは難しく、符号化効率をあまり高
くすることができないという問題点を有している。
The above-mentioned Journal of the Institute of Image Electronics Engineers of Japan, vol. 23, no.
994) As disclosed in “Image coding method based on segmentation and application to resolution conversion” on pages 3 to 10, when the error between the original image and the code exceeds a predetermined value, it is adapted by dividing the block. In the case of a method in which the block size is changed, the image quality is improved, but when compressing and encoding image data such as characters, ruled lines, or graphs composed of relatively simple elements,
Since it is necessary to have information in units of pixels such as bitmaps as codes, it is difficult to greatly reduce the amount of information per block except in a very small number of cases, such as when all are approximated by the same pixel value. There is a problem that the efficiency cannot be made very high.

【0009】そこで、上記画像電子学会誌第23巻第1号
(1994)に開示された技術において、符号化効率を高める
ためにブロックサイズを大きく設定することも考えられ
る。しかし、このようにブロックサイズを大きく設定し
た場合には、原画像と符号の誤差が所定値を越えている
か否かの判別を行う誤差値の評価が問題となる。すなわ
ち、誤差値を評価する際に、その誤差値がブロック全体
に分散しているノイズによって生じた値なのか、限定さ
れた箇所に実際に存在する図形等の画像データによって
生じた値なのか、誤差値のみに基づいて区別することが
困難である。
Therefore, the above-mentioned Journal of the Institute of Image Electronics Engineers of Japan, Vol. 23, No. 1,
In the technique disclosed in (1994), it is conceivable to set a large block size in order to increase coding efficiency. However, when the block size is set to be large as described above, there is a problem in evaluating an error value for determining whether or not the error between the original image and the code exceeds a predetermined value. That is, when evaluating the error value, whether the error value is a value generated by noise dispersed in the entire block, or a value generated by image data such as a graphic that actually exists in a limited place, It is difficult to distinguish based only on the error value.

【0010】そのため、ブロック全体に分散しているノ
イズの影響を受けやすいばかりか、局所的に実際に存在
する図形等の画像の再現性が低下するという問題点を新
たに有している。また、相関の高いブロック領域を統合
してチェーン符号化する際に、ブロックサイズを大きく
設定するとその分だけ符号量も多くなるため、符号化効
率の大幅な向上は期待することができないという問題点
をも有している。
[0010] For this reason, there is a new problem that the reproducibility of an image such as a figure that actually exists locally is deteriorated in addition to being easily affected by noise dispersed in the entire block. In addition, when chain coding is performed by integrating block areas having high correlation, if the block size is set to a large value, the code amount increases accordingly, so that a significant improvement in coding efficiency cannot be expected. It also has

【0011】そこで、本発明は、上記従来技術の問題点
を解決するためになされたものであり、その目的とする
ところは、ブロックの走査方向と直交する方向に強い相
関関係をもつ画像等においても、ブロック間の相関を圧
縮符号化に反映することができるとともに、ブロック全
体に分散しているノイズの影響を受け難く、符号化効率
を向上しつつ精細性を維持することが可能な画像処理装
置を提供することにある。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problems of the prior art, and an object thereof 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.

【0012】[0012]

【課題を解決するための手段】上記課題を解決するため
請求項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. A determination unit that determines whether each of the blocks is a first block to be subdivided and encoded or a second block to be encoded without subdivision, based on Subdivision means for dividing one block into small blocks satisfying a predetermined condition; representative value calculating means for obtaining representative values for the small block and the second block; And having a coding means for coding for.

【0013】また、請求項2記載の構成にあっては、前
記再分割手段は、各小ブロックが前記所定の条件を満た
すようになるまで分割をくり返すものであり、前記符号
化手段は、前記統計情報または前記判定手段における判
定結果に基づいて、複数の符号化方式のうち何れかを適
用するものであることを特徴とする。
Further, in the configuration according to the second aspect, the subdivision means repeats division until each small block satisfies the predetermined condition, and the encoding means comprises: Any one of a plurality of encoding methods is applied based on the statistical information or the determination result of the determination unit.

【0014】さらに、請求項3記載の構成にあっては、
請求項2記載の画像処理装置において、前記再分割手段
は、一種類もしくは複数種類の所定の形状に前記第1の
ブロックまたは小ブロックを再分割し、または所定の数
の小ブロックに再分割することを特徴とする。
Further, in the configuration according to claim 3,
3. The image processing device according to claim 2, wherein the subdivision unit subdivides the first block or the small block into one or a plurality of predetermined shapes, or subdivides into a predetermined number of small blocks. It is characterized by the following.

【0015】さらに、請求項4記載の構成にあっては、
請求項3記載の画像処理装置において、前記適応的符号
化手段は、前記第1のブロックの大きさもしくは小ブロ
ックの大きさに応じて、選択可能な符号化手段の数およ
び種類が変更可能なことを特徴とする。 (作用)本発明による画像処理装置によれば、画素情報
に応じてブロックをブロックの相似形の小ブロックに再
分割し、得られた小ブロックを一つの画素として符号化
を行うことで、小ブロック間の相関を利用して効率的な
圧縮符号化を行うことでできる。
Further, in the configuration according to claim 4,
4. The image processing apparatus according to claim 3, wherein the adaptive encoding unit can change the number and type of selectable encoding units according to the size of the first block or the size of the small block. It is characterized by the following. (Operation) According to the image processing apparatus of the present invention, a block is re-divided into small blocks having a similar shape to a block in accordance with pixel information, and the obtained small block is coded as one pixel to perform coding. Efficient compression coding can be performed using the correlation between blocks.

【0016】換言すれば、本発明による画像処理装置は
ブロック内の画素情報に応じて解像度を変化させ、画像
を再現するのに十分かつ符号化効率を高められる解像度
で符号化することで、局所領域における画像の相関を符
号化に反映させていることになる。
In other words, the image processing apparatus according to the present invention changes the resolution in accordance with the pixel information in the block, and encodes the image at a resolution sufficient to reproduce the image and enhance the encoding efficiency, thereby achieving localization. This means that the correlation of the image in the region is reflected in the encoding.

【0017】また、統合ブロックの形状を所定のものと
することで、タグを付加するだけでブロックの形状およ
び大きさを明示できるため、チェーン符号等でブロック
の形状を記述する必要がなくなり、符号量を減らすこと
が可能になる。
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. Therefore, it is not necessary to describe the shape of the block with a chain code or the like. The amount can be reduced.

【0018】[0018]

【発明の実施の形態】以下、図面を参照して本発明の一
実施形態について説明する。図1は本発明による画像処
理装置の一実施形態を示すブロック図であり、1は図示
しないスキャナーによって読み取られた原稿の原画像デ
ータ、2は原画像データ1を縦方向にm画素、横方向に
n画素(例えば、m×n=8×8=64画素)の所定の
大きさに分割したブロック、3は原画像データ1のうち
符号化を行う単位であるブロック2毎に順次分割された
画像データを一時記憶するバッファである。
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 by a scanner (not shown); Is divided into a predetermined size of n pixels (for example, m × n = 8 × 8 = 64 pixels), and 3 is sequentially divided into blocks 2 which are units of encoding in the original image data 1 This is a buffer for temporarily storing image data.

【0019】また、4は所定の大きさのブロック2及び
このブロック2を必要に応じて更に小さなブロックに分
割した小ブロックの代表値を演算する代表値演算器と、
BTCやDCT符号化方式等の一つ又は複数の符号化方
式を採用した符号化器とを含む符号化手段、5は前記原
画像データ1と前記符号化手段4によって得られた符号
の復号画像から所定の統計量を演算する統計量演算手段
である。
Reference numeral 4 denotes a block 2 of a predetermined size and a representative value calculator for calculating a representative value of a small block obtained by dividing the block 2 into smaller blocks as required.
An encoding unit including an encoder employing one or more encoding systems such as a BTC or DCT encoding system; and 5, a decoded image of the original image data 1 and a code obtained by the encoding unit 4. This is a statistic calculation means for calculating a predetermined statistic from.

【0020】6は前記統計量演算手段5によって得られ
た統計量に基いて、所定の大きさのブロック2の再分割
を行うか否かを選択する選択手段、7は前記選択手段6
によって再分割が選択された場合にブロック2を所定の
大きさに再分割する再分割手段、8は前記符号化手段4
によって符号化された画像データを蓄積及び伝送する蓄
積/伝送手段である。
Reference numeral 6 denotes a selection means for selecting whether or not to redivide the block 2 of a predetermined size based on the statistics obtained by the statistics calculation means 5, and 7 denotes the selection means 6.
A subdivision unit for subdividing the block 2 into a predetermined size when the subdivision is selected by the
Storage / transmission means for storing and transmitting image data encoded by

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

【0022】図において、9は図示しないスキャナー等
によって読み取られ、入力された原稿の1ページ分の原
画像データ1を記憶するフレーム画像バッファ、10は
一ブロック(例えば、m×n=8×8=64画素)分の
画像データ2を一時記憶するブロック画像バッファ、1
1は符号化の対象を一ブロックそのままの大きさの画像
データ2とするか、この一ブロックを更に小さなブロッ
クに再分割した小ブロックとするかを後述する選択器1
6からの信号に基づいて切り換える選択スイッチであ
る。
In the figure, reference numeral 9 denotes a frame image buffer which is read by a scanner or the like (not shown) and stores one page of original image data 1 of an input document, and 10 denotes one block (for example, m × n = 8 × 8). = 64 pixels), a block image buffer for temporarily storing image data 2 for
A selector 1 determines whether the encoding target is the image data 2 of the size of one block as it is or a small block obtained by subdividing this one block into smaller blocks.
6 is a selection switch that switches based on the signal from the control unit 6.

【0023】また、12は符号化対象のブロックの画像
データをBTCやDCT符号化方式等の対応する一種類
または複数種類の符号に変換したデータを出力する符号
化器、13はブロックの再分割を行うブロック再分割
器、14は一ブロック分の符号化された一種類または複
数種類の画像データ、及び符号化された画像データを復
号化した画像データを一時記憶しておく中間符号バッフ
ァである。
Reference numeral 12 denotes an encoder for outputting data obtained by converting image data of a block to be encoded into one or more kinds of corresponding codes such as a BTC or DCT encoding method, and 13 denotes a subdivision of the block. Is an intermediate code buffer for temporarily storing one or more types of encoded image data of one block and image data obtained by decoding the encoded image data. .

【0024】15は、前記符号化器12から得られた一
種類または複数種類の符号化された画像データと原画像
データ2とを比較して所定の統計量を演算する統計量演
算器、16は前記統計量演算器15から得られた統計量
に基づいて前記符号化器12から得られた一種類または
複数種類の符号化された画像データの中から適当な画像
データを選択する選択器、17は一ブロック分の符号化
されたデータを一時記憶しておくブロック符号バッフ
ァ、18は1ページ分の符号化された画像データを記憶
しておくフレーム符号バッファである。
Reference numeral 15 denotes a statistic calculator for comparing one or more kinds of coded image data obtained from the coder 12 with the original image data 2 to calculate a predetermined statistic; A selector for selecting appropriate image data from one or more types of encoded image data obtained from the encoder 12 based on the statistics obtained from the statistics calculator 15; Reference numeral 17 denotes a block code buffer for temporarily storing encoded data for one block, and reference numeral 18 denotes a frame code buffer for storing encoded image data for one page.

【0025】なお、本実施形態では、前記ブロック再分
割器13によって分割される小ブロックの形状は、最初
に取り出されたブロック2の形状の相似形のみとするよ
うに設定されている。
In the present embodiment, the shape of the small block divided by the block subdivider 13 is set so as to be only a similar shape to the shape of the block 2 extracted first.

【0026】次に、図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.

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

【0028】上記の如く原稿の1ページ分の原画像デー
タ1を一ブロック分の画素データ2毎に分割する際、原
稿の1ページ分の原画像データ1の縦方向及び横方向の
総画素数が一ブロックに相当する縦横の画素数で割り切
れない場合、つまり、縦方向及び横方向の最後の画素数
が所定のm又はn(例えば、m=n=8)に満たない場
合には、図5に示すように、予め決められた画素値の画
素を縦方向及び横方向の最後の画素に付加、もしくは原
画像データ1の縦方向あるいは横方向の最後の画素を所
定数だけ複写して、縦方向及び横方向の最後のブロック
の画素データ2を埋めることにより、1ページ分の原画
像データ1を余すところなく整数個のブロックに分割す
る。
When the original image data 1 for one page of the original is divided into pixel data 2 for one block as described above, the total number of pixels in the vertical and horizontal directions of the original image data 1 for one page of the original is 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.

【0029】このようにして、上記フレーム画像バッフ
ァ9に記憶された1ページ分の原画像データ1のうち、
例えば、左上の一番目のブロックから右方向に順番に、
一ブロック分の画素データ2をブロック画像バッファ1
0に取り込んで一時記憶する(ステップ1)。次に、一
ブロック分の画素データ2をブロック画像バッファ10
から読み出し、選択スイッチ11を介して符号化器12
によって一ブロック分の画素データ2を一つの画素値で
表すための代表値を求め、この一つのブロック分の画素
データ2は、前記代表値を画素値とする一つの画素と見
なされる(ステップ2)。
As described above, of the original image data 1 for one page stored in the frame image buffer 9,
For example, from the first block in the upper left,
The pixel data 2 for one block is stored in the block image buffer 1
0 and temporarily store it (step 1). Next, one block of pixel data 2 is stored in the block image buffer 10.
From the encoder 12 via the selection switch 11
A representative value for expressing the pixel data 2 for one block by one pixel value is obtained, and the pixel data 2 for one block is regarded as one pixel having the representative value as a pixel value (step 2). ).

【0030】ここで、前記一ブロック分の画素データ2
を表すための代表値としては、例えば、一ブロック分の
m×n個の全画素データの平均値、又は一ブロック内の
所定位置に位置する複数個の画素データの平均値、又は
一ブロックの中央に位置する1つの画素データ又は複数
個の画素データの平均値、又は一ブロック分のm×n個
の全画素データを濃度順に並べた際のメディアン(中央
値)等が用いられる。
Here, the one block of pixel data 2
As a representative value for representing, for example, the average value of all m × n pixel data of one block, or the average value of a plurality of pixel data located at a predetermined position in one block, or of one block An average value of one pixel data or a plurality of pixel data located at the center, or a median (median value) obtained by arranging m × n pieces of pixel data of one block in order of density is used.

【0031】さらに説明すると、前記一ブロック分の画
素データ2を表すための代表値として、例えば、一ブロ
ック分のm×n個の全画素データの平均値を用いた場
合、この一ブロック分の全画素データの平均値p0 は、
ブロック内の各画素の濃度をそれぞれaijとすると、p
0 =Σ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, The average value p 0 of all pixel data is
Assuming that the density of each pixel in the block is a ij , p
0 = Σa ij / (m × n).

【0032】いま、一ブロック分の画素データ2が図6
に示すようなものであるとすると、この画素データ2を
表すための代表値として平均値p0 を用いた場合、一ブ
ロック分の画素データ2は、平均値p0 の画素濃度を有
する一つの画素と見なされることになる。
Now, one block of pixel data 2 is shown in FIG.
If the average value p 0 is used as a representative value for representing the pixel data 2, one block of pixel data 2 has a pixel density of the average value p 0 . Will be considered a pixel.

【0033】次に、符号化器12によって前記ブロック
の符号、この場合では、図6に示すように、一ブロック
分の画素データ2を一つの画素値で表す代表値p0 と、
ブロックサイズを示すタグとが符号20として生成され
(ステップ3)、この符号化された一ブロックの画素デ
ータ2は、中間符号バッファ14に一時記憶される。
Next, the encoder 12 encodes the block, in this case, as shown in FIG. 6, a representative value p 0 representing one block of pixel data 2 by one pixel value.
A tag indicating the block size is generated as a code 20 (step 3), and the encoded pixel data 2 of one block is temporarily stored in the intermediate code buffer 14.

【0034】一方、統計量演算器15は、前記ブロック
画像バッファ10に一時記憶された一ブロック分の原画
像データ2と、前記中間符号バッファ14に一時記憶さ
れた符号化器12によって得られた符号20の復号画像
とから統計量、例えば平均二乗誤差が求められる(ステ
ップ4)。
On the other hand, the statistic calculator 15 is obtained by the original image data 2 for one block temporarily stored in the block image buffer 10 and the encoder 12 temporarily stored in the intermediate code buffer 14. A statistic, for example, a mean square error, is obtained from the decoded image of the code 20 (step 4).

【0035】ここで、平均二乗誤差をEとすると、この
平均二乗誤差Eは次式で与えられる。 E=Σ(aij−p02 なお、Σはiについて1〜mまで、jについて1〜nま
でとるものとする。
Here, assuming that the mean square error is E, the mean square error E is given by the following equation. E = Σ (a ij −p 0 ) 2 where Σ is 1 to m for i and 1 to n for j.

【0036】次に、前記統計量を基に、選択器16によ
り前記ブロックを再分割するか否かを判定し(ステップ
5)、一ブロック分の原画像データ2と復号画像データ
とがほぼ同一と見なせる場合は、図6に示す符号20を
ブロック符号バッファ17に送り、ブロックを分割する
べきと判定された場合には、ブロック再分割器13によ
って前記ブロックをブロックと相似形の小ブロック、例
えば縦横ともに1/2の大きさ(m×n=8×8の場合
には、4×4のブロック)に再分割する(ステップ
6)。
Next, it is determined whether or not the block is subdivided by the selector 16 based on the statistics (step 5), and the original image data 2 for one block and the decoded image data are substantially the same. If it can be considered, the code 20 shown in FIG. 6 is sent to the block code buffer 17, and if it is determined that the block should be divided, the block is re-divided by the block re-divider 13 into a small block similar to the block, for example, The image is re-divided into と も に in both the vertical and horizontal directions (in the case of m × n = 8 × 8, 4 × 4 blocks) (step 6).

【0037】その際、前記選択器16により前記ブロッ
クを再分割するか否かの判定は、例えば、統計量として
の平均二乗誤差Eが所定値以下であるか、所定値を越え
るか否かを判断することによって行われる。例えば、図
7や図8に示すように、一ブロック分の原画像データ2
内にノイズと見なせる画素がランダムにわずか存在する
場合には、これらの一ブロック分の原画像データ2は、
白色または所定の一色の一様な画素と見なされる。
At this time, whether or not the block is subdivided by the selector 16 is determined, for example, by determining whether or not the mean square error E as a statistic is equal to or less than a predetermined value or exceeds a predetermined value. It is done by judgment. For example, as shown in FIG. 7 and FIG.
If there are a small number of pixels that can be regarded as noise in the image, the original image data 2 for one block
It is considered to be white or a uniform pixel of a given color.

【0038】その後、前記小ブロックは、図9に示すよ
うに、符号化器12によって代表値が求められ、前記代
表値を画素値とする一つの画素と捉えられる(ステップ
7)。そして、前記と同様にして、再分割された一ブロ
ック分の画素データを二つの画素値で表す代表値p01及
びp02と、ブロックサイズを示すタグと、ブロックの分
割状態を示すビットマップとが符号20として生成され
(ステップ3)、この符号化された一ブロックの画素デ
ータ2は、中間符号バッファ14に一時記憶される。
Thereafter, as shown in FIG. 9, a representative value of the small block is obtained by the encoder 12, and the small block is regarded as one pixel having the representative value as a pixel value (step 7). In the same manner as above, the representative values p01 and p02 representing the pixel data of the re-divided one block by two pixel values, the tag indicating the block size, and the bitmap indicating the division state of the block are signed. 20 (step 3), and the encoded pixel data 2 of one block is temporarily stored in the intermediate code buffer 14.

【0039】さらに、統計量演算器15によって、前記
ブロック画像バッファ10に一時記憶された分割後の一
ブロック分(4×4)の原画像データ2と、前記中間符
号バッファ14に一時記憶された符号化器12によって
得られた符号の復号画像とから統計量、例えば平均二乗
誤差が求められ(ステップ4)、選択器16によって再
分割を行うか否かが選択される。
Further, the original image data 2 of one block (4 × 4) after division temporarily stored in the block image buffer 10 and temporarily stored in the intermediate code buffer 14 by the statistic calculator 15. A statistic, for example, a mean square error is obtained from the decoded image of the code obtained by the encoder 12 (step 4), and the selector 16 selects whether or not to perform subdivision.

【0040】ブロックを分割するべきと判定された場合
には、図9に示すように、ブロック再分割器13によっ
て前記ブロックをブロックと相似形の小ブロック、例え
ば縦横ともに1/2の大きさ(2×2のブロック)に再
分割する(ステップ6)。
If it is determined that the block should be divided, as shown in FIG. 9, the block is re-divided by the block re-divider 13 into a small block similar in shape to the block, for example, a half (vertical and horizontal) size ( It is re-divided into 2 × 2 blocks (step 6).

【0041】ブロックを縦横ともに1/2に再分割した
場合には、2×2画素、正確には2×2個の画素と見な
された小ブロックにより構成されたブロックが次の符号
化の対象となってステップ3に戻り、符号化器12によ
って、例えばBTCによる符号化が行われ、二つの代表
値とビットマップからなる符号20が得られる。なお、
原画像データの画素のサイズと小ブロックのサイズとが
等しい場合には、選択可能な符号化手段を増やし、例え
ばDCT符号化も候補に含め、統計量演算器15によっ
て得られた統計量を基に符号化手段が選択される。
When the block is subdivided into と も に in both the vertical and horizontal directions, the block composed of small blocks regarded as 2 × 2 pixels, more precisely, 2 × 2 pixels, is subjected to the next encoding. Then, the process returns to step 3, and the encoder 12 performs encoding by, for example, BTC to obtain a code 20 including two representative values and a bit map. In addition,
If the pixel size of the original image data is equal to the size of the small block, the number of selectable coding means is increased, and for example, DCT coding is included as a candidate, and the statistic obtained by the statistic calculator 15 is included. Is selected.

【0042】上記の如くステップ3からステップ7を繰
り返し、一ブロック分の原画像データ2と復号画像デー
タとがほぼ同一と見なせる場合あるいは原画像データの
画素のサイズと小ブロックのサイズとが等しくなった
時、ブロックあるいは小ブロックの再分割を中止し、一
ブロック分の符号化を終える。そして、1ページ分の原
画像データ1の総てのブロックについて終了するまで、
以上の処理を繰り返す(ステップ8)。
Steps 3 to 7 are repeated as described above, and when the original image data 2 for one block and the decoded image data can be regarded as substantially the same, or the pixel size of the original image data and the small block size become equal. Then, the subdivision of the block or the small block is stopped, and the encoding of one block is completed. Until all blocks of the original image data 1 for one page are completed,
The above processing is repeated (step 8).

【0043】(変形例)なお、前記の実施形態では、画
像処理装置を符号化器や選択器等からなるハードウエア
によって構成した場合について説明したが、これに限定
されるものではなく、ソフトウエアによって構成しても
勿論良い。さらに、上記実施形態において、一連の処理
を終えて得られた符号に可逆圧縮符号化を掛けるように
構成しても良い。
(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 constituted by. Further, in the above embodiment, a configuration may be adopted in which a code obtained after a series of processes is subjected to lossless compression encoding.

【0044】[0044]

【発明の効果】以上説明したように本発明による画像処
理装置では、業務連絡用の文書など文字や罫線、グラフ
など比較的単純な要素によって構成される画像データ
を、画像の大域的な情報を失うことなく、各図形の概要
を保存したまま、極めて高い効率で圧縮符号化すること
が可能となる。
As described above, in the image processing apparatus according to the present invention, image data composed of relatively simple elements such as characters, ruled lines, and graphs, such as documents for business communication, and global information of the image can be obtained. Without loss, it is possible to perform compression encoding with extremely high efficiency while keeping the outline of each figure.

【図面の簡単な説明】[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 one block.

【図7】 一ブロックの画像の一例を示す説明図であ
る。
FIG. 7 is an explanatory diagram showing an example of an image of one block.

【図8】 一ブロックの画像の一例を示す説明図であ
る。
FIG. 8 is an explanatory diagram illustrating an example of an image of one block.

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

【符号の説明】 1 原画像データ 2 分割したブロック 3 バッファ 4 符号化手段 5 統計量演算手段 6 選択手段 7 再分割手段 8 蓄積/伝送手段[Description of Code] 1 Original image data 2 Divided block 3 Buffer 4 Encoding means 5 Statistical calculation means 6 Selection means 7 Re-division 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. A statistical information calculating means for obtaining statistical information of pixel data included in each block; and a first block to be subdivided and encoded based on the statistical information obtained by the statistical information calculating means. Determining means for determining whether or not there is a second block to be coded without re-dividing; re-dividing means for dividing the first block into small blocks satisfying a predetermined condition; Image processing comprising: representative value calculating means for obtaining a representative value for a small block and the second block; and coding means for coding the representative value. apparatus.
【請求項2】 前記再分割手段は、各小ブロックが前記
所定の条件を満たすようになるまで分割をくり返すもの
であり、 前記符号化手段は、前記統計情報または前記判定手段に
おける判定結果に基づいて、複数の符号化方式のうち何
れかを適用するものであることを特徴とする請求項1記
載の画像処理装置。
2. The re-division unit repeats division until each small block satisfies the predetermined condition. The encoding unit transmits the statistical information or the determination result by the determination unit. The image processing apparatus according to claim 1, wherein any one of a plurality of encoding methods is applied based on the information.
【請求項3】 前記再分割手段は、一種類もしくは複数
種類の所定の形状に前記第1のブロックまたは小ブロッ
クを再分割し、または所定の数の小ブロックに再分割す
ることを特徴とする請求項2記載の画像処理装置。
3. The method according to claim 2, wherein the subdivision unit divides the first block or the small block into one or more types of predetermined shapes, or divides the first block or the small blocks into a predetermined number of small blocks. The image processing device according to claim 2.
【請求項4】 前記符号化手段は、前記第1のブロック
の大きさもしくは小ブロックの大きさに応じて、選択可
能な符号化方式の数および種類が変更可能であることを
特徴とする請求項3記載の画像処理装置。
4. The encoding unit according to claim 1, wherein the number and types of selectable encoding systems can be changed according to the size of the first block or the size of the small block. Item 3. The image processing device according to Item 3.
JP24797596A 1996-09-19 1996-09-19 Picture processor Pending JPH1098620A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24797596A JPH1098620A (en) 1996-09-19 1996-09-19 Picture processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24797596A JPH1098620A (en) 1996-09-19 1996-09-19 Picture processor

Publications (1)

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

Family

ID=17171342

Family Applications (1)

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

Country Status (1)

Country Link
JP (1) JPH1098620A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002063885A1 (en) * 2001-01-30 2002-08-15 Kabushiki Kaisha Office Noa Moving picture information compressing method and its system
WO2003039163A1 (en) * 2001-11-01 2003-05-08 Kabushiki Kaisha Office Noa Moving picture information compression method and system thereof
WO2003081898A1 (en) * 2002-03-22 2003-10-02 Sipec Corporation Image data compression device, image data compression method, recording medium, and program
US6912318B2 (en) 2000-06-06 2005-06-28 Kabushiki Kaisha Office Noa Method and system for compressing motion image information
US7085424B2 (en) 2000-06-06 2006-08-01 Kobushiki Kaisha Office Noa Method and system for compressing motion image information

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6912318B2 (en) 2000-06-06 2005-06-28 Kabushiki Kaisha Office Noa Method and system for compressing motion image information
US7085424B2 (en) 2000-06-06 2006-08-01 Kobushiki Kaisha Office Noa Method and system for compressing motion image information
WO2002063885A1 (en) * 2001-01-30 2002-08-15 Kabushiki Kaisha Office Noa Moving picture information compressing method and its system
CN1299510C (en) * 2001-01-30 2007-02-07 株式会社欧菲士诺亚 Moving-picture information compressing method and system
WO2003039163A1 (en) * 2001-11-01 2003-05-08 Kabushiki Kaisha Office Noa Moving picture information compression method and system thereof
WO2003081898A1 (en) * 2002-03-22 2003-10-02 Sipec Corporation Image data compression device, image data compression method, recording medium, and program

Similar Documents

Publication Publication Date Title
US6529633B1 (en) Parallel difference coding method for lossless compression and real time decompression
US6567559B1 (en) Hybrid image compression with compression ratio control
JP2656897B2 (en) Image data compression and decompression device
US6078689A (en) Image information encoding device
US7050645B2 (en) Image processing apparatus and image processing method
Babu et al. Efficient lossless image compression using modified hierarchical prediction and context adaptive coding
JPH1098620A (en) Picture processor
US6879725B2 (en) Method, system, and program for decoding a section from compressed data
JPH1023259A (en) Image pattern converter
JPH09186883A (en) Multi-value image encoding device
CN115102934A (en) Point cloud data decoding method, encoding method, device, equipment and storage medium
JPH08202881A (en) Picture processor
JPH0918877A (en) Fractal image compression device
JP3263218B2 (en) Image information data compression and playback device
JP2598410B2 (en) Encoding device
JP2006060490A (en) Image compressor and image compression program
JP2533631B2 (en) Image coding device
JPH07147638A (en) Image processor
JPH1098621A (en) Picture processor
JPH099065A (en) Picture data compression encoding method and decoding method
JPH07107294A (en) Device for encoding picture
JPH07264584A (en) Encoding and decoding method and its device
JPH07162689A (en) Picture encoding device
CN116897538A (en) Gradient-based pixel-by-pixel image spatial prediction
JP2001128182A (en) Image encoding method and computer-readable recording medium storing image encoding program