JPH0774958A - Method and device for storing picture - Google Patents

Method and device for storing picture

Info

Publication number
JPH0774958A
JPH0774958A JP5216051A JP21605193A JPH0774958A JP H0774958 A JPH0774958 A JP H0774958A JP 5216051 A JP5216051 A JP 5216051A JP 21605193 A JP21605193 A JP 21605193A JP H0774958 A JPH0774958 A JP H0774958A
Authority
JP
Japan
Prior art keywords
extracted
data
image data
storing
circuit
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
Application number
JP5216051A
Other languages
Japanese (ja)
Inventor
Takashi Ishikawa
尚 石川
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP5216051A priority Critical patent/JPH0774958A/en
Publication of JPH0774958A publication Critical patent/JPH0774958A/en
Withdrawn legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To make it almost unnecessary to detect block distortion and to hold a picture of high picture quality by separating and storing the block average of image data in an extracted gradation memory even in the case of a block having no extracted picture element and making it unnecessary for an encoding means to encode the block average. CONSTITUTION:A character/line drawing extracting circuit 4 extracts picture elements constituting a character/line drawing included in an 8X8 image data e.g inputted from a blocking circuit 3, stores the positional information of the extracted picture elements in an extraction judging memory 9 and outputs gradation data to a gradation (i.e., color data) selector 7. An extracted block judging signal indicating the existence of extracted picture elements in a block concerned is outputted to the selector 7 through a mean value separating circuit 6 and the gradation data are stored in a memory control circuit 10 as an address through an extraction gradation memory 11. A backgound color, i.e., white, is previously initialized in the of an image area.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は画像記憶方法及び装置に
関し、特に、文字・グラフィックス等の線画と写真等の
中間調画像とが混在した画像情報を記憶する画像記憶方
法及び装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image storage method and apparatus, and more particularly to an image storage method and apparatus for storing image information in which line drawings such as characters and graphics and halftone images such as photographs are mixed. is there.

【0002】[0002]

【従来の技術】文字・グラフィックス等の線画(以下
「テキスト」と記す)と、写真等の中間調画像(以下
「イメージ」と記す)とが混在した画像情報を効率良く
記憶する方法として、例えば、画像を8×8画素の小ブ
ロックに分割し、テキストを抽出した後、離散コサイン
変換(以下「DCT」と記す)等の直交変換を施して、
その係数を符号化して記憶するものが本出願人により提
案されている。
2. Description of the Related Art As a method for efficiently storing image information in which line drawings such as characters and graphics (hereinafter referred to as "text") and halftone images such as photographs (hereinafter referred to as "image") are mixed, For example, an image is divided into small blocks of 8 × 8 pixels, text is extracted, and then orthogonal transformation such as discrete cosine transformation (hereinafter referred to as “DCT”) is performed,
The present applicant has proposed to encode and store the coefficient.

【0003】図8にその画像情報記録方法による画像記
憶装置のブロック図を示す。
FIG. 8 shows a block diagram of an image storage device according to the image information recording method.

【0004】図8において、外部のホストコンピュータ
やフォーマッタ等から、テキストとイメージが合成され
た画像データと、該画像データのレイアウト情報とが端
子51へ入力される。
In FIG. 8, image data in which text and an image are combined and layout information of the image data are input to a terminal 51 from an external host computer, a formatter, or the like.

【0005】データ分離回路52は、端子51を介して
入力されたデータから、画像データとレイアウト情報と
を分離し、レイアウト情報をブロック化回路53,メモ
リ制御回路58,復号化回路62へ出力し、また、画像
データをブロック化回路53へ出力する。
The data separation circuit 52 separates image data and layout information from the data input through the terminal 51, and outputs the layout information to the blocking circuit 53, the memory control circuit 58, and the decoding circuit 62. Also, the image data is output to the blocking circuit 53.

【0006】ブロック化回路53は、データ分離回路5
2から入力された画像データを8×8画素の小ブロック
毎に切り出す。
The blocking circuit 53 is a data separation circuit 5
The image data input from 2 is cut out for each small block of 8 × 8 pixels.

【0007】文字・線画抽出回路54は、ブロック化回
路53から入力された8×8画素の画像データ(以下
「ブロック」と記す)に含まれる文字・線画を構成する
画素を抽出し、抽出画素か否かの判定結果(抽出画素の
位置情報)を抽出判定メモリ57へ、抽出画素の階調
(色)データを抽出階調メモリ59へ格納する。
The character / line drawing extraction circuit 54 extracts the pixels forming the character / line drawing included in the image data of 8 × 8 pixels (hereinafter referred to as “block”) input from the blocking circuit 53, and extracts the extracted pixels. The judgment result (position information of the extracted pixel) is stored in the extraction judgment memory 57, and the gradation (color) data of the extracted pixel is stored in the extraction gradation memory 59.

【0008】抽出画素置換回路55は、文字・線画抽出
回路54の判定結果より、文字・線画抽出回路54を経
て入力されたブロックの抽出画素データを、例えばブロ
ック内の抽出画素を除く画素の平均値等に置換する。
The extracted pixel replacement circuit 55 uses the judgment result of the character / line drawing extraction circuit 54 to extract the extracted pixel data of the block input through the character / line drawing extraction circuit 54, for example, the average of the pixels excluding the extracted pixels in the block. Replace with a value etc.

【0009】符号化回路56は、抽出画素置換回路55
から入力されたブロックを、いわゆるJPEGのADC
T方式やベクトル量子化等の中間調画像データに適した
方法で符号化する。
The encoding circuit 56 has an extracted pixel replacement circuit 55.
Block input from the so-called JPEG ADC
Encoding is performed by a method suitable for halftone image data such as the T method or vector quantization.

【0010】イメージメモリ61は、メモリ制御回路6
0により、符号化回路56から出力された符号化データ
を記憶する。
The image memory 61 is a memory control circuit 6
When 0, the coded data output from the coding circuit 56 is stored.

【0011】一方、端子65にはプリンタエンジン(図
示せず)が接続されており、プリンタエンジンが起動さ
れると、端子65を介してエンジン同期信号がメモリ制
御回路58及び復号化回路62へ入力される。
On the other hand, a printer engine (not shown) is connected to the terminal 65, and when the printer engine is started, an engine synchronizing signal is input to the memory control circuit 58 and the decoding circuit 62 via the terminal 65. To be done.

【0012】メモリ制御回路58は、抽出判定メモリ5
7及び抽出階調メモリ59に記憶されたデータが、エン
ジン同期信号に同期して読み出されるように各メモリを
制御する。
The memory control circuit 58 uses the extraction judgment memory 5
7 and the data stored in the extracted gradation memory 59 are controlled so that the data are read in synchronization with the engine synchronization signal.

【0013】復号化回路62は、エンジン同期信号よ
り、データ分離回路52から入力されたレイアウト情報
に応じたタイミングにてイメージデータが出力されるよ
うに、メモリ制御回路60へリクエストを出力してイメ
ージメモリ61から符号化データを読み出す。続いて、
復号化回路62は、レイアウト情報にて指定されたイメ
ージ領域においては、イメージメモリ61から入力され
た符号化データを復号化したデータを、イメージ領域外
においては、白(背景色)データをラスタ化回路63へ
出力する。
The decoding circuit 62 outputs a request to the memory control circuit 60 so that the image data is output from the engine synchronization signal at a timing according to the layout information input from the data separation circuit 52. The encoded data is read from the memory 61. continue,
The decoding circuit 62 rasterizes the data obtained by decoding the encoded data input from the image memory 61 in the image area designated by the layout information, and rasterizes the white (background color) data outside the image area. Output to the circuit 63.

【0014】ラスタ化回路63は、復号化回路62より
入力されたブロックデータを元のラスタスキャンデータ
に戻して合成回路64へ出力する。
The rasterization circuit 63 restores the block data input from the decoding circuit 62 to the original raster scan data and outputs it to the synthesis circuit 64.

【0015】合成回路64は、抽出判定メモリ57から
読み出された判定結果より、抽出階調メモリ59から読
み出された階調データと、ラスタ化回路63から入力さ
れたイメージデータとを合成して元の入力画像データを
復元し、端子66を介して該画像データをプリンタエン
ジンへ出力する。
The synthesizing circuit 64 synthesizes the gradation data read from the extraction gradation memory 59 and the image data input from the rasterizing circuit 63 based on the judgment result read from the extraction judgment memory 57. Then, the original input image data is restored and the image data is output to the printer engine via the terminal 66.

【0016】[0016]

【発明が解決しようとする課題】しかしながら、上記例
においては、ブロック内に文字・線画抽出回路54にて
抽出される画素がない時は、抽出階調メモリ59は使用
されず無駄になるという欠点があった。
However, in the above example, when there is no pixel extracted by the character / line drawing extraction circuit 54 in the block, the extraction gradation memory 59 is not used and is wasted. was there.

【0017】デスクトップパブリッシング(以下「DT
P」と記す)によって作成された画像データにおいて、
上記文字・線画抽出回路54にて抽出される画素の割合
は、通常、数%〜十数%程度であり、特に、写真等の中
間調画像の領域が大きいときは、上記抽出される画素の
割合は小さくなり、抽出階調メモリ59はほとんど使用
されず無駄になる。一方、イメージメモリ61の容量は
固定されているため、写真等の中間調画像の領域が大き
いとき程、符号化回路56による圧縮率は高くなり、画
質劣化は大きくなってしまうという欠点があった。
Desktop publishing (hereinafter "DT
In the image data created by
The ratio of pixels extracted by the character / line drawing extraction circuit 54 is usually about several percent to several tens of percent, and particularly when the area of a halftone image such as a photograph is large, The ratio becomes small and the extracted gradation memory 59 is hardly used and is wasted. On the other hand, since the capacity of the image memory 61 is fixed, the larger the area of a halftone image such as a photograph is, the higher the compression rate by the encoding circuit 56 is, and the image quality is deteriorated. .

【0018】本発明は上記欠点に鑑みてなされたもので
あり、メモリの利用効率の高い画像記憶方法及び装置を
提供することを目的とする。
The present invention has been made in view of the above-mentioned drawbacks, and an object of the present invention is to provide an image storage method and apparatus with high memory utilization efficiency.

【0019】[0019]

【課題を解決するための手段】上記の目的を達成するた
め、本発明による画像記憶装置では以下の構成を備え
る。
In order to achieve the above object, an image storage device according to the present invention has the following configuration.

【0020】即ち、画像データを所定のブロックに切り
出すブロック化手段と、該ブロック化された画像データ
より所定の画素を抽出し、抽出した画素の位置情報を第
1の記憶手段に、抽出した画素の階調データを第2の記
憶手段に記憶させる抽出手段と、該抽出手段によって抽
出された画素を所定のデータに置換する置換手段と、前
記抽出手段によって抽出された画素が全く無いブロック
の平均値を分離し、該平均値を第2の記憶手段に記憶さ
せる平均値分離手段と、該平均値分離手段によって平均
値を分離された画像データを符号化し、第3の記憶手段
に記憶させる符号化手段とを備える。
That is, blocking means for cutting out image data into a predetermined block, predetermined pixels are extracted from the blocked image data, and position information of the extracted pixels is stored in the first storage means. Extraction means for storing the gradation data of No. 2 in the second storage means, replacement means for replacing the pixels extracted by the extraction means with predetermined data, and an average of blocks having no pixels extracted by the extraction means. A code for separating the values and storing the average value in the second storage means, and a code for encoding the image data of which the average value has been separated by the average value separation means and storing it in the third storage means. And a conversion means.

【0021】また、上記の目的を達成するための本発明
による画像記憶方法では以下の工程を備える。
Further, the image storing method according to the present invention for achieving the above object includes the following steps.

【0022】即ち、画像データを所定のブロックに切り
出すブロック化工程と、該ブロック化された画像データ
より所定の画素を抽出し、抽出した画素の位置情報を第
1の記憶手段に、抽出した画素の階調データを第2の記
憶手段に記憶させる抽出工程と、該抽出工程によって抽
出された画素を所定のデータに置換する工程と、前記抽
出工程によって抽出された画素が全く無いブロックの平
均値を分離し、該平均値を第2の記憶手段に記憶させる
平均値分離工程と、該平均値分離工程によって平均値を
分離された画像データを符号化し、第3の記憶手段に記
憶させる符号化工程とを備える。
That is, a block forming step of cutting out image data into a predetermined block, a predetermined pixel is extracted from the blocked image data, and position information of the extracted pixel is stored in the first storage means. A step of storing the gradation data of 1. in the second storage means, a step of replacing the pixels extracted by the extraction step with predetermined data, and an average value of blocks having no pixels extracted by the extraction step. And an average value separation step of storing the average value in the second storage means, and an encoding step of encoding the image data of which the average value has been separated by the average value separation step and storing the encoded image data in the third storage means. And a process.

【0023】[0023]

【作用】以上のような構成により、抽出された画素が全
く無いブロックにおいては、第2の記憶手段には分離さ
れた平均値が格納され、また、符号化手段においては、
ブロック平均値の符号化が不要になるため、符号化効率
が上がり、画質が向上する。
With the above configuration, in the block having no extracted pixel at all, the separated average value is stored in the second storage means, and in the encoding means,
Since the block average value need not be coded, the coding efficiency is improved and the image quality is improved.

【0024】[0024]

【実施例】<実施例1>図1は本発明に係る実施例1の
画像記憶装置の構成例を示すブロック図である。
<Embodiment 1> FIG. 1 is a block diagram showing an example of the arrangement of an image storage device according to Embodiment 1 of the present invention.

【0025】図1において、1は入力端子で、外部のホ
ストコンピュータやフォーマッタ等から、テキストとイ
メージが合成された画像データと、該画像データのレイ
アウト情報とが入力される。
In FIG. 1, reference numeral 1 denotes an input terminal to which image data in which text and an image are combined and layout information of the image data are input from an external host computer, a formatter or the like.

【0026】2はデータ分離回路で、端子1を介して入
力されたデータから画像データとレイアウト情報とを分
離し、レイアウト情報をブロック化回路3,メモリ制御
回路10,復号化回路14へ出力し、また、画像データ
をブロック化回路3へ出力する。
Reference numeral 2 denotes a data separation circuit which separates image data and layout information from the data input through the terminal 1 and outputs the layout information to the blocking circuit 3, the memory control circuit 10 and the decoding circuit 14. , And outputs the image data to the blocking circuit 3.

【0027】3はブロック化回路で、データ分離回路2
から入力された画像データを8×8画素の小ブロック毎
に切り出す。
Reference numeral 3 is a block circuit, which is a data separation circuit 2.
The image data input from is cut out for each small block of 8 × 8 pixels.

【0028】4は文字・線画抽出回路で、ブロック化回
路3から入力された8×8画素の画像データに含まれる
文字・線画を構成する画素を抽出し、抽出画素か否かの
判定結果(抽出画素の位置情報)を抽出判定メモリ9へ
格納し、抽出画素の階調(色)データセレクタ7へ出力
する。また、ブロック内の抽出画素の有無を示す抽出ブ
ロック判定信号を平均値分離回路6,セレクタ7へ出力
する。
Reference numeral 4 denotes a character / line drawing extraction circuit, which extracts the pixels forming the character / line drawing included in the image data of 8 × 8 pixels input from the blocking circuit 3, and determines whether or not the pixel is an extracted pixel ( The extracted pixel position information) is stored in the extraction determination memory 9 and output to the gradation (color) data selector 7 of the extracted pixel. Also, the extraction block determination signal indicating the presence or absence of the extraction pixel in the block is output to the average value separation circuit 6 and the selector 7.

【0029】5は抽出画素置換回路で、文字・線画抽出
回路4の判定結果より、文字・線画抽出回路4にて抽出
された画素データを、後述する符号化に都合の良い値、
例えばブロック内の抽出画素を除く画素の平均値等に置
換する。
Reference numeral 5 denotes an extraction pixel replacement circuit, which determines the pixel data extracted by the character / line drawing extraction circuit 4 from the judgment result of the character / line drawing extraction circuit 4 by a value convenient for encoding to be described later.
For example, the average value of the pixels excluding the extracted pixels in the block is replaced.

【0030】6は平均値分離回路で、文字・線画抽出回
路4より入力される抽出ブロック判定信号により、ブロ
ックに抽出画素が無い場合、入力画像データからブロッ
ク平均値を分離し、分離した平均値をセレクタ7へ、入
力画像データからブロック平均値を減算した画像データ
を符号化回路8へ出力する。
An average value separation circuit 6 separates the block average value from the input image data according to the extraction block determination signal input from the character / line drawing extraction circuit 4, and separates the average value from the input image data. Is output to the selector 7 and the image data obtained by subtracting the block average value from the input image data is output to the encoding circuit 8.

【0031】7はセレクタで、文字・線画抽出回路4よ
り入力される抽出ブロック判定信号に従い、ブロックに
抽出画素が有る場合は抽出画素の階調(色)データを、
ブロックに抽出画素が無い場合は平均値分離回路6より
入力されるブロック平均値を抽出階調メモリ11へ格納
する。
Reference numeral 7 denotes a selector which, in accordance with the extraction block determination signal input from the character / line drawing extraction circuit 4, outputs the gradation (color) data of the extraction pixel when the block has an extraction pixel,
If there is no extracted pixel in the block, the block average value input from the average value separation circuit 6 is stored in the extracted gradation memory 11.

【0032】8は符号化回路で、平均値分離回路6から
入力された画像データを、JPEGのADCT方式やベ
クトル量子化等の中間調画像データに適した方法で符号
化する。
An encoding circuit 8 encodes the image data input from the average value separating circuit 6 by a method suitable for halftone image data such as the JPEG ADCT method or vector quantization.

【0033】9は抽出判定メモリで、文字・線画抽出回
路4より入力される抽出画素か否かの判定結果を、例え
ば、抽出画素に対応するビットを「1」に、その他のビ
ットを「0」に設定したビットマップデータとして格納
する。なお、後述する平均値判定回路15の誤動作を防
止するため、抽出判定メモリ9は予め「1」に初期化さ
れているものとする。
Reference numeral 9 is an extraction judgment memory, and the judgment result as to whether or not it is an extraction pixel input from the character / line drawing extraction circuit 4, for example, the bit corresponding to the extraction pixel is set to "1" and the other bits are set to "0". It is stored as the bitmap data set to "." Note that the extraction determination memory 9 is assumed to be initialized to "1" in advance in order to prevent malfunction of the average value determination circuit 15 described later.

【0034】10はメモリ制御回路で、文字・線画抽出
回路4より出力される抽出画素か否かの判定結果(抽出
画素の位置情報)及び、セレクタ7より出力される階調
データを、各々抽出判定メモリ9及び抽出階調メモリ1
1の該当アドレスに格納するように、各メモリを制御す
る。一方、端子19を介してプリンタエンジンの同期信
号が入力されると、該同期信号に従い、抽出判定結果を
抽出判定メモリ9より読み出し、各々所定のタイミング
にて平均値判定回路15及び合成回路17へ出力するよ
うに抽出判定メモリ9を制御する。また、該同期信号に
従い、階調データを抽出階調メモリ11より読み出し、
各々所定のタイミングにて平均値合成回路16及び合成
回路17へ出力するように抽出階調メモリ11を制御す
る。
Reference numeral 10 denotes a memory control circuit, which extracts the determination result (position information of the extracted pixel) output from the character / line drawing extraction circuit 4 and the gradation data output from the selector 7, respectively. Judgment memory 9 and extracted gradation memory 1
Each memory is controlled so as to be stored in the corresponding address of 1. On the other hand, when the printer engine synchronization signal is input through the terminal 19, the extraction determination result is read from the extraction determination memory 9 in accordance with the synchronization signal, and is read to the average value determination circuit 15 and the synthesis circuit 17 at predetermined timings. The extraction determination memory 9 is controlled to output. Further, grayscale data is read from the extracted grayscale memory 11 according to the synchronization signal,
The extraction gradation memory 11 is controlled so as to output to the average value synthesizing circuit 16 and the synthesizing circuit 17 at each predetermined timing.

【0035】11は抽出階調メモリで、セレクタ7より
出力される階調データを、メモリ制御回路10にて示さ
れるアドレスに格納する。なお、イメージ領域外への無
効データの流出を防止するため、抽出階調メモリ9は予
め白(背景色)データに初期化されているものとする。
Reference numeral 11 denotes an extraction gradation memory, which stores gradation data output from the selector 7 at an address indicated by the memory control circuit 10. In order to prevent the invalid data from flowing out of the image area, the extracted gradation memory 9 is preliminarily initialized to white (background color) data.

【0036】12はメモリ制御回路で、符号化回路8よ
り出力される符号化コードを、イメージメモリ11の該
当アドレスに格納するように、イメージメモリ13を制
御する。一方、復号化時は、後述する復号化回路14よ
り入力される制御信号に従って、イメージメモリ11に
格納された符号化コードが読み出されるように制御す
る。
A memory control circuit 12 controls the image memory 13 so that the coded code output from the coding circuit 8 is stored in a corresponding address of the image memory 11. On the other hand, at the time of decoding, control is performed so that the coded code stored in the image memory 11 is read according to a control signal input from a decoding circuit 14 described later.

【0037】13はイメージメモリで、符号化回路8よ
り出力される符号化コードを、メモリ制御回路12にて
示されるアドレスに格納する。
An image memory 13 stores the encoded code output from the encoding circuit 8 at an address indicated by the memory control circuit 12.

【0038】14は復号化回路で、端子19を介して入
力されるプリンタエンジンの同期信号より、データ分離
回路2から入力されたレイアウト情報に応じたタイミン
グにてイメージデータが出力されるように、メモリ制御
回路12へリクエストを出力してイメージメモリ13か
ら符号化データを読み出して復号化する。そして、該復
号化したデータを平均値合成回路16へ出力する。
Reference numeral 14 denotes a decoding circuit, which outputs image data at a timing corresponding to the layout information input from the data separation circuit 2 in accordance with a printer engine synchronizing signal input via a terminal 19. The request is output to the memory control circuit 12, the encoded data is read from the image memory 13, and is decoded. Then, the decoded data is output to the average value synthesis circuit 16.

【0039】15は平均値判定回路で、復号化回路14
にて復号化されているブロックの抽出判定結果を抽出判
定メモリ9より読み出し、前記イメージ領域内でブロッ
ク内に前記抽出画素が全く無いブロックを判定し、判定
結果を平均値合成回路16へ出力する。なお、イメージ
領域外においては、抽出判定メモリ9の初期化により抽
出画素有りと判定される。
Reference numeral 15 is an average value judgment circuit, which is a decoding circuit 14
The extraction determination result of the block that has been decoded in (1) is read from the extraction determination memory 9, the block in the image area that does not have the extracted pixel at all is determined, and the determination result is output to the average value synthesis circuit 16. . Outside the image area, the extraction determination memory 9 is initialized to determine that there are extracted pixels.

【0040】16は平均値合成回路で、平均値判定回路
15より入力される判定信号に従い、復号化回路14か
ら出力される画像データに、前記抽出画素が全く無いブ
ロックにおいては、抽出階調メモリ11より読み出され
た該当ブロックの平均値を加算し、前記抽出画素が存在
するブロックの時は0を加算し、ラスタ化回路18へ出
力する。
Reference numeral 16 is an average value synthesizing circuit, and in accordance with the determination signal input from the average value determination circuit 15, the image data output from the decoding circuit 14 includes the extracted gradation memory in the block in which the extracted pixel is not present at all. The average value of the corresponding block read from 11 is added, 0 is added when the extracted pixel is present in the block, and the result is output to the rasterization circuit 18.

【0041】18はラスタ化回路で、平均値合成回路1
6より入力されたブロック状の画像データを元のラスタ
スキャンに変換し合成回路17へ出力する。
Reference numeral 18 is a rasterization circuit, which is an average value synthesis circuit 1
The block-shaped image data input from 6 is converted into the original raster scan and output to the synthesis circuit 17.

【0042】17は合成回路で、抽出判定メモリ9から
読み出された判定結果より、抽出階調メモリ11から読
み出された階調データと、ラスタ化回路18から入力さ
れたイメージデータとを合成して元の入力画像データを
復元し、端子20を介して該画像データをプリンタエン
ジンへ出力する。即ち、上記抽出判定結果が「1」の時
は抽出階調メモリ59から読み出された階調データを出
力し、上記抽出判定結果が「0」の時はラスタ化回路1
8から入力されたイメージデータを出力するのである。
Reference numeral 17 denotes a synthesizing circuit, which synthesizes the gradation data read from the extraction gradation memory 11 and the image data input from the rasterizing circuit 18 based on the judgment result read from the extraction judgment memory 9. Then, the original input image data is restored, and the image data is output to the printer engine via the terminal 20. That is, when the extraction judgment result is "1", the gradation data read from the extraction gradation memory 59 is output, and when the extraction judgment result is "0", the rasterization circuit 1 is output.
The image data input from 8 is output.

【0043】19は入力端子で、プリンタエンジン(図
示せず)が接続されており、プリンタエンジンが起動さ
れると、端子19を介してエンジン同期信号が、メモリ
制御回路10及び復号化回路14へ入力される。
Reference numeral 19 denotes an input terminal to which a printer engine (not shown) is connected. When the printer engine is started, an engine synchronizing signal is sent to the memory control circuit 10 and the decoding circuit 14 via the terminal 19. Is entered.

【0044】20は出力端子で、プリンタエンジンが接
続されており、合成回路17にて復元された画像データ
をプリンタエンジンへ出力する。
An output terminal 20 is connected to the printer engine, and outputs the image data restored by the synthesizing circuit 17 to the printer engine.

【0045】以上説明したように本実施例1の画像記憶
装置においては、抽出された画素が全く無いブロックに
おいても、抽出階調メモリ11には分離されたブロック
平均値が格納されるため、抽出階調メモリの無駄がなく
なる。また、符号化手段においては、ブロック平均値が
分離されているためブロック平均値の符号化が不要にな
り、符号化効率が上がり、その結果、画質が向上する。
As described above, in the image storage device of the first embodiment, the extracted block average value is stored in the extraction gradation memory 11 even in the block having no extracted pixel at all, so that extraction is performed. There is no waste of gradation memory. Further, in the encoding means, since the block average values are separated, it is not necessary to encode the block average values, the encoding efficiency is improved, and as a result, the image quality is improved.

【0046】<実施例2>図2は本発明に係る実施例2
の画像記憶装置の構成例を示すブロック図である。な
お、実施例1と同じ処理を行なうものについては図1と
同じ番号を付し、その説明は省略する。
<Second Embodiment> FIG. 2 shows a second embodiment according to the present invention.
3 is a block diagram showing a configuration example of the image storage device of FIG. The same processes as those in the first embodiment are designated by the same reference numerals as those in FIG. 1, and the description thereof will be omitted.

【0047】図2において、21はデータ分離回路で、
端子1を介して入力された情報からビットマップデー
タ,描画階調(色)データ,イメージデータ及び各デー
タのレイアウト情報を識別し、ビットマップデータをビ
ットマップメモリ24へ、ビットマップデータのレイア
ウト情報をメモリ制御回路25へ、ビットマップデータ
の描画階調データをブロック階調メモリ26へ、イメー
ジデータをブロック化回路3へ、イメージデータのレイ
アウト情報をブロック化回路3,メモリ制御回路25及
び復号化回路14へ出力する。
In FIG. 2, reference numeral 21 is a data separation circuit,
The bitmap data, the drawing gradation (color) data, the image data and the layout information of each data are identified from the information input through the terminal 1, and the bitmap data is stored in the bitmap memory 24 and the layout information of the bitmap data. To the memory control circuit 25, the drawing gradation data of the bitmap data to the block gradation memory 26, the image data to the blocking circuit 3, and the layout information of the image data to the blocking circuit 3, the memory control circuit 25 and the decoding. Output to the circuit 14.

【0048】24はビットマップメモリで、データ分離
回路21より入力されるビットマップデータ及び文字・
線画抽出回路22より入力される抽出画素か否かの判定
結果を、例えば、抽出画素に対応するビットを「1」
に、その他のビットを「0」に設定したビットマップデ
ータとして格納する。なお、後述する描画画素検出回路
23及び27の誤動作を防止するため、抽出判定メモリ
9は予め「0」に初期化されているものとする。
Reference numeral 24 is a bit map memory which stores the bit map data and the character data input from the data separation circuit 21.
For example, the bit corresponding to the extracted pixel is set to “1” as the determination result of whether or not the extracted pixel is input from the line drawing extraction circuit 22.
Then, the other bits are stored as bitmap data in which "0" is set. It is assumed that the extraction determination memory 9 is initialized to “0” in advance in order to prevent malfunction of the drawing pixel detection circuits 23 and 27 described later.

【0049】25はメモリ制御回路で、ビットマップデ
ータが端子1より入力された時は、データ分離回路21
より入力されるビットマップデータのレイアウト情報に
従って、ビットマップデータ及び描画階調を各々ビット
マップメモリ24及びブロック階調メモリ26の該当ア
ドレスに格納するように、各メモリを制御する。また、
イメージデータが端子1より入力された時は、注目ブロ
ックのビットマップデータを読み出し、描画画素検出回
路23へ出力するようにビットマップメモリ24を制御
する。さらに、文字・線画抽出回路22より出力される
抽出画素か否かの判定結果(抽出画素の位置情報)及
び、セレクタ7より出力される階調データを、各々ビッ
トマップメモリ24及びブロック階調メモリ26の該当
アドレスに格納するように、各メモリを制御する。
Reference numeral 25 denotes a memory control circuit which, when bit map data is input from the terminal 1, outputs the data separation circuit 21.
Each memory is controlled so that the bitmap data and the drawing gradation are stored in the corresponding addresses of the bitmap memory 24 and the block gradation memory 26, respectively, in accordance with the layout information of the bitmap data input more. Also,
When the image data is input from the terminal 1, the bitmap memory 24 is controlled so that the bitmap data of the target block is read and output to the drawing pixel detection circuit 23. Furthermore, the determination result (position information of the extracted pixel) whether the pixel is an extracted pixel output from the character / line drawing extraction circuit 22 and the grayscale data output from the selector 7 are stored in the bit map memory 24 and the block grayscale memory, respectively. Each memory is controlled so as to be stored in 26 corresponding addresses.

【0050】一方、端子19を介してプリンタエンジン
の同期信号が入力されると、該同期信号に従い、ビット
マップデータ(抽出判定結果)をビットマップメモリ2
4より読み出し、各々所定のタイミングにて描画画素検
出回路27及び合成回路17へ出力するようにビットマ
ップメモリ24を制御する。また、該同期信号に従い、
階調データをブロック階調メモリ26より読み出し、各
々所定のタイミングにて平均値合成回路16及び合成回
路17へ出力するようにブロック階調メモリ26を制御
する。
On the other hand, when the printer engine synchronization signal is input through the terminal 19, the bitmap data (extraction determination result) is transferred to the bitmap memory 2 in accordance with the synchronization signal.
4, and the bit map memory 24 is controlled so as to output the read pixel data to the drawing pixel detecting circuit 27 and the synthesizing circuit 17 at predetermined timings. Also, according to the synchronization signal,
The gray scale data is read from the block gray scale memory 26, and the block gray scale memory 26 is controlled so as to output the gray scale data to the average value synthesis circuit 16 and the synthesis circuit 17 at predetermined timings.

【0051】26はブロック階調メモリで、ビットマッ
プデータが端子1より入力された時は、ビットマップデ
ータの描画階調を、イメージデータが端子1より入力さ
れた時は、セレクタ7より出力される階調データを、メ
モリ制御回路25にて示されるアドレスに格納する。な
お、イメージ領域外での平均値合成回路16の誤動作を
防止するため、ブロック階調メモリ26は予め「0」に
初期化されているものとする。
Reference numeral 26 is a block gradation memory, which outputs the drawing gradation of the bitmap data when the bit map data is input from the terminal 1, and outputs it from the selector 7 when the image data is input from the terminal 1. The gradation data to be stored is stored in the address indicated by the memory control circuit 25. It is assumed that the block gradation memory 26 is initialized to “0” in advance in order to prevent malfunction of the average value synthesis circuit 16 outside the image area.

【0052】23は描画画素検出回路で、文字・線画抽
出回路22にて処理されるブロックのビットマップデー
タをビットマップメモリ24より読み出し、該ビットマ
ップデータが全て「0」の時、ビットマップ無効信号を
文字・線画抽出回路22に出力する。
A drawing pixel detection circuit 23 reads the bitmap data of the block processed by the character / line drawing extraction circuit 22 from the bitmap memory 24. When the bitmap data is all "0", the bitmap is invalid. The signal is output to the character / line drawing extraction circuit 22.

【0053】22は文字・線画抽出回路で、描画画素検
出回路23にて処理ブロックのビットマップが無効と判
定されたブロック(即ち、処理ブロックのビットマップ
データが全て「0」の時)についてのみ、ブロック化回
路3から入力された8×8画素の画像データに含まれる
文字・線画を構成する画素を抽出し、抽出画素か否かの
判定結果(抽出画素の位置情報)をビットマップメモリ
24へ格納し、抽出画素の階調(色)データセレクタ7
へ出力する。また、ブロック内の抽出画素の有無を示す
抽出ブロック判定信号を平均値分離回路6,セレクタ7
へ出力する。
Reference numeral 22 is a character / line-drawing extraction circuit, and only for a block in which the drawing pixel detection circuit 23 determines that the bitmap of the processing block is invalid (that is, when the bitmap data of the processing block is all "0"). , The pixels constituting the character / line drawing included in the image data of 8 × 8 pixels input from the blocking circuit 3 are extracted, and the determination result (position information of the extracted pixels) as to whether the pixel is an extracted pixel is stored in the bitmap memory 24. Stored in the extracted pixel gradation (color) data selector 7
Output to. Further, the extraction block determination signal indicating the presence or absence of the extraction pixel in the block is converted into the average value separation circuit 6 and the selector 7.
Output to.

【0054】27は描画画素検出回路で、復号化回路1
4にて復号化されているブロックの抽出判定結果をビッ
トマップメモリ24より読み出し、前記イメージ領域内
でブロック内に前記抽出画素が全く無いブロックを判定
し、判定結果を平均値合成回路16へ出力する。なお、
イメージ領域外においては、抽出判定メモリ9の初期化
により抽出画素無しと判定されるが、前述したように、
ブロック階調メモリ26は予め「0」に初期化されてい
るため、平均値合成回路16では「0」が加算されるこ
とになる。よって、復号化回路14にてイメージ領域外
の画素データが背景色(白)になるように設定されてい
れば、平均値合成回路16の出力は背景色となる。
27 is a drawing pixel detection circuit, which is a decoding circuit 1
4, the extraction judgment result of the block decoded in 4 is read from the bit map memory 24, the block in the image area which does not have the extracted pixel at all is judged, and the judgment result is output to the average value synthesis circuit 16. To do. In addition,
Outside the image area, it is determined that there is no extracted pixel by initializing the extraction determination memory 9, but as described above,
Since the block gradation memory 26 is initialized to “0” in advance, “0” is added in the average value synthesis circuit 16. Therefore, if the pixel data outside the image area is set to have the background color (white) in the decoding circuit 14, the output of the average value synthesis circuit 16 becomes the background color.

【0055】実施例2は、実施例1の抽出判定メモリへ
はビットマップデータを、抽出階調メモリへは描画階調
データを各々書き込めるようにしたものである。通常、
イメージデータ上にビットマップデータを書き込むこと
は稀であるため、実施例1とほぼ同様の効果が得られ
る。
In the second embodiment, bitmap data can be written in the extraction judgment memory of the first embodiment, and drawing gradation data can be written in the extraction gradation memory. Normal,
Since it is rare to write bitmap data on image data, almost the same effect as that of the first embodiment can be obtained.

【0056】本実施例では、ビットマップデータを優先
させるため、処理ブロックのビットマップデータが全て
「0」の時以外は文字・線画の抽出を行なわないように
しているが、後書きデータを優先する場合は、描画画素
検出回路23を削除し、実施例1と同様に、平均値を分
離したブロックの抽出画素位置情報(ビットマップデー
タ)を全て「0」としたデータをビットマップメモリ2
4に格納すれば良い。
In this embodiment, since the bitmap data is prioritized, the character / line drawing is not extracted except when all the bitmap data of the processing block is "0", but the trailing data is prioritized. In this case, the drawing pixel detection circuit 23 is deleted, and the data in which the extracted pixel position information (bitmap data) of the block from which the average value is separated is all “0” is set in the bitmap memory 2 as in the first embodiment.
It should be stored in 4.

【0057】<実施例3>図3は本発明に係る実施例3
の画像記憶装置の構成例を示すブロック図である。な
お、実施例2と同じ処理を行なうものについては図2と
同じ番号を付し、その説明は省略する。
<Third Embodiment> FIG. 3 shows a third embodiment according to the present invention.
3 is a block diagram showing a configuration example of the image storage device of FIG. The same processes as those in the second embodiment are designated by the same reference numerals as those in FIG. 2, and the description thereof will be omitted.

【0058】図3において、28は符号化回路で、文字
・線画抽出回路4より入力される抽出ブロック判定信号
により、ブロックに抽出画素が無い場合、抽出画素置換
回路5より入力される画像データからDCT等によりD
C成分(ブロック平均値)を分離し、DC成分をセレク
タ7へ出力し、DC成分以外のデータを符号化し、イメ
ージメモリ13へ格納する。なお、ブロックに抽出画素
が有る場合は、DC成分も含めて符号化し、イメージメ
モリ13へ格納する。
In FIG. 3, reference numeral 28 denotes an encoding circuit, which detects an extracted pixel from the image data input from the extracted pixel replacement circuit 5 when there is no extracted pixel in the block according to the extracted block determination signal input from the character / line drawing extraction circuit 4. D by DCT
The C component (block average value) is separated, the DC component is output to the selector 7, the data other than the DC component is encoded, and stored in the image memory 13. If the block has extracted pixels, the DC component is also encoded and stored in the image memory 13.

【0059】29は復号化回路で、描画画素検出回路2
7より入力される描画画素検出信号により、ブロックに
描画画素(抽出画素)が無い場合、ブロック階調メモリ
26入力されるDC成分を用いて復号化し、復号化した
画像データをラスタ化回路18へ出力する。なお、ブロ
ックに描画画素(抽出画素)が有る場合は、イメージメ
モリ13に格納されているDC成分を用いて復号化す
る。
Reference numeral 29 is a decoding circuit, which is a drawing pixel detection circuit 2
If there is no drawing pixel (extracting pixel) in the block according to the drawing pixel detection signal input from 7, the DC component input to the block gradation memory 26 is used for decoding, and the decoded image data is sent to the rasterization circuit 18. Output. If the block has a drawing pixel (extracted pixel), decoding is performed using the DC component stored in the image memory 13.

【0060】次に、符号化回路28を詳細に説明する。Next, the encoding circuit 28 will be described in detail.

【0061】図4は符号化回路28の構成例を示すブロ
ック図である。
FIG. 4 is a block diagram showing a configuration example of the encoding circuit 28.

【0062】図4において、30はDCT回路で、信号
線101より入力された画像データをブロック毎に各成
分に変換し、DC成分を量子化回路31へ、AC成分を
スキャン変換回路32へ出力する。
In FIG. 4, reference numeral 30 denotes a DCT circuit, which converts the image data input from the signal line 101 into each component for each block, and outputs the DC component to the quantization circuit 31 and the AC component to the scan conversion circuit 32. To do.

【0063】31は量子化回路で、DCT回路30より
入力されたDC成分を量子化し、信号線102を経てセ
レクタ7及びスイッチ34へ出力する。
A quantizing circuit 31 quantizes the DC component input from the DCT circuit 30 and outputs it to the selector 7 and the switch 34 via the signal line 102.

【0064】34はスイッチで、信号線103より入力
される文字・線画抽出回路22の抽出判定信号に従っ
て、処理ブロックに抽出画素が有る場合にのみスイッチ
をONにして、量子化回路31より入力された量子化後
のDC成分をパッキング回路36へ出力する。
A switch 34 is turned on only when there is an extraction pixel in the processing block according to the extraction determination signal of the character / line drawing extraction circuit 22 input from the signal line 103, and is input from the quantization circuit 31. The quantized DC component is output to the packing circuit 36.

【0065】32はスキャン変換回路でDCT回路30
より入力されたAC成分をジグザグスキャンに変換し、
量子化回路33に出力する。
A scan conversion circuit 32 is a DCT circuit 30.
Convert the input AC component into zigzag scan,
Output to the quantization circuit 33.

【0066】33は量子化回路で、スキャン変換回路よ
り入力されたAC成分を量子化し、VLC回路35へ出
力する。
A quantizing circuit 33 quantizes the AC component input from the scan converting circuit and outputs it to the VLC circuit 35.

【0067】35はVLC回路で、量子化回路33より
入力された量子化後のAC成分を公知のエントロピー符
号化(例えば、ランレングス+ハフマン符号化)にて符
号化し、パッキング回路36へ出力する。
A VLC circuit 35 encodes the quantized AC component input from the quantization circuit 33 by known entropy coding (for example, run length + Huffman coding), and outputs it to the packing circuit 36. .

【0068】36はパッキング回路36で、スイッチ3
4よりDC成分が入力された時は、該DC成分に識別コ
ードを付加した後、VLC回路35より入力されるAC
成分の符号化コードと共に所定のビット単位にパック
し、パックが終了したら、信号線104よりメモリ制御
回路12にリクエストを出し、信号線105よりパッキ
ングデータを出力する。
36 is a packing circuit 36, which is a switch 3
When the DC component is input from 4, the identification code is added to the DC component and then the AC input from the VLC circuit 35.
Packing is performed in a predetermined bit unit together with the encoded code of the component, and when packing is completed, a request is issued to the memory control circuit 12 from the signal line 104 and packing data is output from the signal line 105.

【0069】次に、復号化回路29を詳細に説明する。Next, the decoding circuit 29 will be described in detail.

【0070】図5は復号化回路29の構成例を示すブロ
ック図である。
FIG. 5 is a block diagram showing a configuration example of the decoding circuit 29.

【0071】図5において、37はDC成分分離回路
で、信号線106を経て入力された符号化コードからパ
ッキング回路36にて付加された識別コードをチェック
し、該識別コードを検出したら、次に続くDC成分のデ
ータを分離し、スイッチ40に出力する。また、AC成
分のデータは逆VLC回路38に出力する。
In FIG. 5, reference numeral 37 is a DC component separating circuit, which checks the identification code added by the packing circuit 36 from the coded code inputted through the signal line 106, and when the identification code is detected, next. The subsequent DC component data is separated and output to the switch 40. The AC component data is output to the inverse VLC circuit 38.

【0072】40はスイッチで、信号線109より入力
される描画画素検出回路27の判定結果に従い、処理ブ
ロックに描画画素無しと判定されたときは信号線108
のデータ(即ち、ブロック階調メモリ26より読み出さ
れたDC成分)を、処理ブロックに描画画素有りと判定
されたときはDC成分分離回路37より出力されるDC
成分を選択し、逆量子化回路42に出力する。
Reference numeral 40 denotes a switch, which, when it is determined that there is no drawing pixel in the processing block according to the determination result of the drawing pixel detection circuit 27 input from the signal line 109, the signal line 108.
Data (that is, the DC component read from the block gradation memory 26) is output from the DC component separation circuit 37 when it is determined that there is a drawing pixel in the processing block.
The component is selected and output to the inverse quantization circuit 42.

【0073】42は逆量子化回路で、スイッチ40より
入力されたDC成分を量子化代表値に変換し、逆DCT
回路44へ出力する。
Reference numeral 42 denotes an inverse quantization circuit, which converts the DC component input from the switch 40 into a quantized representative value, and performs inverse DCT.
Output to the circuit 44.

【0074】39はイメージ領域検出回路で、信号線1
12より入力されたイメージデータのレイアウト情報
と、信号線110より入力されるプリンタエンジン同期
信号よりプリンタエンジンがイメージ領域をスキャンし
ているかどうかを判定し、イメージ領域をスキャンして
いる時は、GO信号を逆VLC回路38に出力する。
Reference numeral 39 denotes an image area detecting circuit, which is a signal line 1
It is determined whether the printer engine is scanning the image area based on the layout information of the image data input from 12 and the printer engine synchronization signal input from the signal line 110. When the image area is scanned, GO The signal is output to the inverse VLC circuit 38.

【0075】38は逆VLC回路で、イメージ領域検出
回路39より入力されるGO信号に従い、所定のタイミ
ングにてリクエスト信号を信号線107からメモリ制御
回路12へ出力し、符号化コードをイメージメモリから
読み出す。次に、DC成分分離回路37より入力された
符号化AC成分をデコードし、逆量子化回路41に出力
する。
Reference numeral 38 denotes an inverse VLC circuit, which outputs a request signal from the signal line 107 to the memory control circuit 12 at a predetermined timing in accordance with the GO signal input from the image area detection circuit 39 and outputs an encoded code from the image memory. read out. Next, the encoded AC component input from the DC component separation circuit 37 is decoded and output to the inverse quantization circuit 41.

【0076】41は逆量子化回路で、デコードされたA
C成分を量子化代表値に変換し、スキャン変換回路43
へ出力する。
Reference numeral 41 denotes an inverse quantization circuit, which is the decoded A
The C component is converted into a quantized representative value, and the scan conversion circuit 43
Output to.

【0077】43はスキャン変換回路で量子化代表値に
変換されたAC成分をブロックスキャンに変換し、逆D
CT回路44へ出力する。
Reference numeral 43 is a scan conversion circuit, which converts the AC component converted into the quantized representative value into a block scan, and inverse D
Output to the CT circuit 44.

【0078】44は逆DCT回路で入力されたDC成分
及びAC成分を元の画像データに変換し、信号線111
より出力する。
Reference numeral 44 converts the DC component and AC component input by the inverse DCT circuit into original image data, and outputs the signal line 111.
Output more.

【0079】以上説明したように本実施例3の画像記憶
装置においては、実施例2と同様の効果があるだけでな
く、符号化によって分離されたDC成分をブロック階調
メモリへ格納するようにしたため、符号化回路28にお
けるDC成分の符号化が不要となり、符号化回路28及
び復号化回路29が簡略化されると同時に、符号化効率
が上がり、その結果、画質も向上する。また、ブロック
階調メモリへ格納されたDC成分はブロック階調メモリ
の深さと同じビット数を保持しているため、ブロック歪
みは原理的に発生しない。
As described above, in the image storage device of the third embodiment, not only the same effect as the second embodiment is obtained, but also the DC component separated by the encoding is stored in the block gray scale memory. Therefore, it is not necessary to encode the DC component in the encoding circuit 28, the encoding circuit 28 and the decoding circuit 29 are simplified, and at the same time, the encoding efficiency is improved and, as a result, the image quality is also improved. Further, since the DC component stored in the block gray scale memory holds the same number of bits as the depth of the block gray scale memory, block distortion does not occur in principle.

【0080】なお、本実施例3においては、復号化回路
29のスイッチ40の制御に描画画素検出回路27の判
定結果を用いたが、DC成分分離回路37にてDC成分
を検出したときのみスイッチ40をDC成分分離回路3
7のDC成分出力側に切り換える構成にしても良い。こ
の場合、描画画素検出回路27は不要となり、さらに構
成が簡略化される。
Although the determination result of the drawing pixel detection circuit 27 is used for controlling the switch 40 of the decoding circuit 29 in the third embodiment, the switch is performed only when the DC component is detected by the DC component separation circuit 37. 40 is a DC component separation circuit 3
It may be configured to switch to the DC component output side of 7. In this case, the drawing pixel detection circuit 27 is unnecessary and the configuration is further simplified.

【0081】<実施例4>図6は本発明に係る実施例4
の画像記憶装置の構成例を示すブロック図である。な
お、実施例3と同じ処理を行なうものについては図3と
同じ番号を付し、その説明は省略する。
<Fourth Embodiment> FIG. 6 shows a fourth embodiment according to the present invention.
3 is a block diagram showing a configuration example of the image storage device of FIG. It should be noted that the same processes as those in the third embodiment are denoted by the same reference numerals as those in FIG. 3, and the description thereof will be omitted.

【0082】図6において、45は背景色検出回路で、
文字・線画抽出回路22にて処理されるブロックの描画
階調データをブロック階調メモリ26より読み出し、該
描画階調データが背景色の時、ビットマップ無効信号を
文字・線画抽出回路22に出力する。
In FIG. 6, reference numeral 45 is a background color detection circuit,
The drawing gradation data of the block processed by the character / line drawing extraction circuit 22 is read from the block gradation memory 26, and when the drawing gradation data is the background color, a bitmap invalid signal is output to the character / line drawing extraction circuit 22. To do.

【0083】本実施例4においては、ブロック階調メモ
リ26は予め背景色に初期化されているものとする。従
って、ビットマップデータが格納されていないブロック
の描画階調データは更新されず、背景色のままであるか
ら、描画階調データが背景色であるかどうかをチェック
することにより、ビットマップメモリ24の使用状態を
検知できる。なお、合成回路17での誤動作を防止する
ため、描画階調が背景色となるビットマップデータのビ
ットマップメモリ24への書き込みは禁止する。また、
ブロック階調メモリ26の利用効率を上げるため、ブロ
ック内のビットマップデータが全て「0」となるブロッ
クの描画階調データは更新しない。即ち、描画画素が有
るブロックのみ描画階調データをブロック階調メモリ2
6に書き込む。
In the fourth embodiment, the block gradation memory 26 is assumed to be initialized to the background color in advance. Therefore, the drawing gradation data of the block in which the bitmap data is not stored is not updated and remains the background color. Therefore, by checking whether the drawing gradation data is the background color, the bitmap memory 24 The usage status of can be detected. In order to prevent a malfunction in the synthesizing circuit 17, writing of the bitmap data whose drawing gradation is the background color into the bitmap memory 24 is prohibited. Also,
In order to improve the utilization efficiency of the block gradation memory 26, the drawing gradation data of the block in which all the bitmap data in the block is “0” is not updated. That is, the drawing gradation data is stored in the block gradation memory 2 only in the block having the drawing pixel.
Write to 6.

【0084】46は復号化回路で、ブロックにDC成分
が無い場合、ブロック階調メモリ26入力されるDC成
分を用いて復号化し、復号化した画像データをラスタ化
回路18へ出力する。
Reference numeral 46 denotes a decoding circuit which, when the block has no DC component, performs decoding using the DC component input to the block gradation memory 26 and outputs the decoded image data to the rasterization circuit 18.

【0085】次に、復号化回路46を詳細に説明する。Next, the decoding circuit 46 will be described in detail.

【0086】図7は復号化回路46の構成例を示すブロ
ック図である。なお、実施例3と同じ処理を行なうもの
については図5と同じ番号を付し、その説明は省略す
る。
FIG. 7 is a block diagram showing a configuration example of the decoding circuit 46. The same processes as those in the third embodiment are designated by the same reference numerals as those in FIG. 5, and the description thereof will be omitted.

【0087】図7において、47はDC成分分離回路
で、信号線106を経て入力された符号化コードからパ
ッキング回路36にて付加された識別コードをチェック
し、該識別コードを検出したら、次に続くDC成分のデ
ータを分離し、スイッチ40に出力するとともに、スイ
ッチ47を制御して該DC成分を逆量子化回路42に出
力する。また、AC成分のデータは逆VLC回路38に
出力する。
In FIG. 7, reference numeral 47 denotes a DC component separation circuit, which checks the identification code added by the packing circuit 36 from the coded code input through the signal line 106, and when the identification code is detected, next. Subsequent DC component data is separated and output to the switch 40, and the switch 47 is controlled to output the DC component to the inverse quantization circuit 42. The AC component data is output to the inverse VLC circuit 38.

【0088】48はスイッチで、DC成分分離回路の検
出結果に従い、処理ブロックにDC成分無しと判定され
たときは信号線108のデータ(即ち、ブロック階調メ
モリ26より読み出されたDC成分)を、処理ブロック
にDC成分有りと判定されたときはDC成分分離回路3
7より出力されるDC成分を選択し、逆量子化回路42
に出力する。
Reference numeral 48 is a switch, and when it is determined that there is no DC component in the processing block according to the detection result of the DC component separation circuit, the data of the signal line 108 (that is, the DC component read from the block gradation memory 26). When it is determined that the processing block has a DC component, the DC component separation circuit 3
The DC component output from the output terminal 7 is selected, and the inverse quantization circuit 42 is selected.
Output to.

【0089】以上説明したように本実施例4の画像記憶
装置においては、実施例3と同様の効果があるだけでな
く、ブロック階調メモリ26に格納されている描画階調
データが背景色であるかどうかをチェックによって、ビ
ットマップメモリ24の使用状態を検知しているため、
回路が簡略化される。
As described above, the image storage device of the fourth embodiment has the same effect as that of the third embodiment, and the drawing gradation data stored in the block gradation memory 26 has the background color. Since the usage state of the bitmap memory 24 is detected by checking whether or not there is,
The circuit is simplified.

【0090】なお、本発明は、例えば、スキャナ,ホス
トコンピュータ,フォーマッタ等の複数の機器から構成
されるシステムに適用しても1つの機器から成る装置に
適用しても良い。また、本発明は、システムあるいは装
置にプログラムを供給することによって達成される場合
にも適用できることは言うまでもない。
The present invention may be applied to a system composed of a plurality of devices such as a scanner, a host computer, a formatter or the like, or to an apparatus composed of a single device. Further, it goes without saying that the present invention can be applied to the case where it is achieved by supplying a program to a system or an apparatus.

【0091】[0091]

【発明の効果】以上説明してきたように、本発明の画像
記憶方法及び装置によれば、抽出された画素が全く無い
ブロックにおいても、抽出階調メモリにはイメージデー
タのブロック平均値(DC成分)が分離されて格納され
るため、抽出階調メモリの無駄がなくなる。また、符号
化手段においては、ブロック平均値(DC成分)が分離
されているためブロック平均値(DC成分)の符号化が
不要になり、符号化効率が上がり、その結果、画質が向
上する。さらに、抽出階調メモリへ格納されたブロック
平均値(DC成分)はブロック階調メモリの深さと同じ
ビット数を保持しているため、ブロック歪みがほとんど
検知されず、高画質な画像を保持できる。
As described above, according to the image storing method and apparatus of the present invention, the block average value (DC component) of the image data is stored in the extracted gradation memory even in the block having no extracted pixel. ) Is stored separately, so that the extraction gradation memory is not wasted. Further, in the encoding means, since the block average value (DC component) is separated, it is not necessary to encode the block average value (DC component), the encoding efficiency is improved, and as a result, the image quality is improved. Further, since the block average value (DC component) stored in the extracted grayscale memory holds the same number of bits as the depth of the block grayscale memory, almost no block distortion is detected and a high quality image can be held. .

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

【図1】実施例1の画像記憶装置の概略構成を表すブロ
ック図である。
FIG. 1 is a block diagram illustrating a schematic configuration of an image storage device according to a first exemplary embodiment.

【図2】実施例2の画像記憶装置の概略構成を表すブロ
ック図である。
FIG. 2 is a block diagram illustrating a schematic configuration of an image storage device according to a second embodiment.

【図3】実施例3の画像記憶装置の概略構成を表すブロ
ック図である。
FIG. 3 is a block diagram illustrating a schematic configuration of an image storage device according to a third embodiment.

【図4】実施例3における符号化回路の構成例を示すブ
ロック図である。
FIG. 4 is a block diagram illustrating a configuration example of an encoding circuit according to a third exemplary embodiment.

【図5】実施例3における復号化回路の構成例を示すブ
ロック図である。
FIG. 5 is a block diagram illustrating a configuration example of a decoding circuit according to a third exemplary embodiment.

【図6】実施例4の画像記憶装置の概略構成を表すブロ
ック図である。
FIG. 6 is a block diagram illustrating a schematic configuration of an image storage device according to a fourth exemplary embodiment.

【図7】実施例4における復号化回路の構成例を示すブ
ロック図である。
FIG. 7 is a block diagram illustrating a configuration example of a decoding circuit according to a fourth exemplary embodiment.

【図8】従来の画像記録方法による画像記憶装置のブロ
ック図である。
FIG. 8 is a block diagram of an image storage device according to a conventional image recording method.

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

2 データ分離回路 3 ブロック化回路 4 文字・線画抽出回路 5 抽出画素置換回路 6 平均値分離回路 7 セレクタ 8 符号化回路 9 抽出判定メモリ 10 メモリ制御回路 11 抽出階調メモリ 12 メモリ制御回路 13 イメージメモリ 14 復号化回路 15 平均値判定回路 16 平均値合成回路 17 合成回路 18 ラスタ化回路 21 データ分離回路 22 文字・線画抽出回路 23 描画画素検出回路 24 ビットマップメモリ 25 メモリ制御回路 26 ブロック階調メモリ 27 描画画素検出回路 28 符号化回路 29 復号化回路 45 背景色検出回路 46 復号化回路 2 Data Separation Circuit 3 Blocking Circuit 4 Character / Line Drawing Extraction Circuit 5 Extraction Pixel Replacement Circuit 6 Average Value Separation Circuit 7 Selector 8 Encoding Circuit 9 Extraction Judgment Memory 10 Memory Control Circuit 11 Extraction Grayscale Memory 12 Memory Control Circuit 13 Image Memory 14 Decoding Circuit 15 Average Value Determining Circuit 16 Average Value Composing Circuit 17 Composing Circuit 18 Rasterizing Circuit 21 Data Separation Circuit 22 Character / Line Drawing Extracting Circuit 23 Drawing Pixel Detecting Circuit 24 Bitmap Memory 25 Memory Control Circuit 26 Block Grayscale Memory 27 Drawing pixel detection circuit 28 Encoding circuit 29 Decoding circuit 45 Background color detection circuit 46 Decoding circuit

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 画像データを所定のブロックに切り出す
ブロック化手段と、 該ブロック化された画像データより所定の画素を抽出
し、抽出した画素の位置情報を第1の記憶手段に、抽出
した画素の階調データを第2の記憶手段に記憶させる抽
出手段と、 該抽出手段によって抽出された画素を所定のデータに置
換する置換手段と、 前記抽出手段によって抽出された画素が全く無いブロッ
クの平均値を分離し、該平均値を第2の記憶手段に記憶
させる平均値分離手段と、 該平均値分離手段によって平均値を分離された画像デー
タを符号化し、第3の記憶手段に記憶させる符号化手段
とを備えることを特徴とする画像記憶装置。
1. Blocking means for cutting out image data into predetermined blocks, predetermined pixels are extracted from the blocked image data, and position information of the extracted pixels is stored in a first storage means. Extracting means for storing the gradation data of 1. in the second storage means, a replacing means for replacing the pixels extracted by the extracting means with predetermined data, and an average of blocks having no pixels extracted by the extracting means. A mean value separating means for separating the values and storing the average value in the second storage means, and a code for encoding the image data of which the average value has been separated by the mean value separating means and storing in the third storage means And an image storage device.
【請求項2】 ビットマップデータを記憶する第1の記
憶手段と、 ビットマップデータの描画階調(色)を記憶する第2の
記憶手段と、 画像データを所定のブロックに切り出すブロック化手段
と、 該ブロック化された画像データより所定の画素を抽出
し、抽出した画素の位置情報を第1の記憶手段に、抽出
した画素の階調データを第2の記憶手段に記憶させる抽
出手段と、 該抽出手段によって抽出された画素を所定のデータに置
換する置換手段と、 前記抽出手段によって抽出された画素が全く無いブロッ
クの平均値を分離し、該平均値を第2の記憶手段に記憶
させる平均値分離手段と、 該平均値分離手段によって平均値を分離された画像デー
タを符号化し、第3の記憶手段に記憶させる符号化手段
とを備えることを特徴とする画像記憶装置。
2. A first storage means for storing bitmap data, a second storage means for storing a drawing gradation (color) of the bitmap data, and a blocking means for cutting out image data into predetermined blocks. Extracting means for extracting a predetermined pixel from the blocked image data, storing position information of the extracted pixel in a first storage means, and storing gradation data of the extracted pixel in a second storage means, A replacement unit that replaces the pixel extracted by the extraction unit with predetermined data, and an average value of a block having no pixel extracted by the extraction unit is separated, and the average value is stored in the second storage unit. An image storage device comprising: an average value separating means; and an encoding means for encoding the image data whose average value has been separated by the average value separating means and storing the encoded image data in a third storage means. .
【請求項3】 前記抽出手段は、前記ブロック化された
画像データに対応するビットマップデータに描画画素が
無い時、前記ブロック化された画像データより所定の画
素を抽出し、抽出した画素の位置情報を第1の記憶手段
に、抽出した画素の階調データを第2の記憶手段に記憶
させることを特徴とする請求項2記載の画像記憶装置。
3. The extracting means extracts a predetermined pixel from the blocked image data when there is no drawing pixel in the bitmap data corresponding to the blocked image data, and the position of the extracted pixel is extracted. 3. The image storage device according to claim 2, wherein the information is stored in the first storage unit and the gradation data of the extracted pixel is stored in the second storage unit.
【請求項4】 画像データを所定のブロックに切り出す
ブロック化手段と、該ブロック化された画像データより
所定の画素を抽出し、抽出した画素の位置 情報を第1の記憶手段に、抽出した画素の階調データを
第2の記憶手段に記憶させる抽出手段と、 該抽出手段によって抽出された画素を所定のデータに置
換する置換手段と、 該置換された画像データを直交変換する変換手段と、 前記抽出手段によって抽出された画素が全く無いブロッ
クの該変換された画像データの直流成分を第2の記憶手
段に記憶させ、該直流成分以外の画像データを符号化
し、第3の記憶手段に記憶させる符号化手段とを備える
ことを特徴とする画像記憶装置。
4. Blocking means for cutting out image data into predetermined blocks, predetermined pixels are extracted from the blocked image data, and position information of the extracted pixels is stored in the first storage means. Extracting means for storing the gradation data of 1. in the second storage means, replacing means for replacing the pixels extracted by the extracting means with predetermined data, and converting means for orthogonally transforming the replaced image data. The DC component of the converted image data of the block having no pixels extracted by the extracting unit is stored in the second storage unit, the image data other than the DC component is encoded, and stored in the third storage unit. An image storage device comprising:
【請求項5】 画像データを所定のブロックに切り出す
ブロック化工程と、 該ブロック化された画像データより所定の画素を抽出
し、抽出した画素の位置情報を第1の記憶手段に、抽出
した画素の階調データを第2の記憶手段に記憶させる抽
出工程と、 該抽出工程によって抽出された画素を所定のデータに置
換する工程と、 前記抽出工程によって抽出された画素が全く無いブロッ
クの平均値を分離し、該平均値を第2の記憶手段に記憶
させる平均値分離工程と、 該平均値分離工程によって平均値を分離された画像デー
タを符号化し、第3の記憶手段に記憶させる符号化工程
とを備えることを特徴とする画像記憶方法。
5. A blocking step of cutting out image data into a predetermined block, extracting a predetermined pixel from the blocked image data, and storing position information of the extracted pixel in a first storage means. A step of storing the gradation data of 1. in the second storage means, a step of replacing the pixels extracted by the extraction step with predetermined data, and an average value of blocks having no pixels extracted by the extraction step. And an average value separation step of storing the average value in the second storage means, and an encoding step of encoding the image data of which the average value has been separated by the average value separation step and storing the encoded image data in the third storage means. An image storage method, comprising:
【請求項6】 ビットマップデータを記憶する第1の記
憶工程と、 ビットマップデータの描画階調(色)を記憶する第2の
記憶工程と、 画像データを所定のブロックに切り出すブロック化工程
と、 該ブロック化された画像データより所定の画素を抽出
し、抽出した画素の位置情報を第1の記憶工程に、抽出
した画素の階調データを第2の記憶工程に記憶させる抽
出工程と、 該抽出工程によって抽出された画素を所定のデータに置
換する工程と、 前記抽出工程によって抽出された画素が全く無いブロッ
クの平均値を分離し、該平均値を第2の記憶工程に記憶
させる平均値分離工程と、 該平均値分離工程によって平均値を分離された画像デー
タを符号化し、第3の記憶工程に記憶させる符号化工程
とを備えることを特徴とする画像記憶方法。
6. A first storing step of storing bitmap data, a second storing step of storing a drawing gradation (color) of the bitmap data, and a blocking step of cutting out image data into predetermined blocks. An extraction step of extracting a predetermined pixel from the blocked image data, storing position information of the extracted pixel in a first storage step, and storing gradation data of the extracted pixel in a second storage step, A step of replacing pixels extracted by the extracting step with predetermined data, and an average value of a block having no pixels extracted by the extracting step is separated, and the average value is stored in the second storing step. An image storing method comprising: a value separating step; and an encoding step of encoding image data whose average value is separated by the average value separating step and storing the encoded image data in a third storing step.
【請求項7】 前記抽出工程は、前記ブロック化された
画像データに対応するビットマップデータに描画画素が
無い時、前記ブロック化された画像データより所定の画
素を抽出し、抽出した画素の位置情報を第1の記憶工程
に、抽出した画素の階調データを第2の記憶工程に記憶
させることを特徴とする請求項6記載の画像記憶方法。
7. The extracting step extracts a predetermined pixel from the blocked image data when there is no drawing pixel in the bitmap data corresponding to the blocked image data, and the position of the extracted pixel is extracted. 7. The image storing method according to claim 6, wherein the information is stored in the first storing step, and the gradation data of the extracted pixel is stored in the second storing step.
【請求項8】 画像データを所定のブロックに切り出す
ブロック化工程と、 該ブロック化された画像データより所定の画素を抽出
し、抽出した画素の位置情報を第1の記憶工程に、抽出
した画素の階調データを第2の記憶工程に記憶させる抽
出工程と、 該抽出工程によって抽出された画素を所定のデータに置
換する工程と、該置換された画像データを直交変換する
変換工程と、 前記抽出工程によって抽出された画素が全く無いブロッ
クの該変換された画像データの直流成分を第2の記憶工
程に記憶させ、該直流成分以外の画像データを符号化
し、第3の記憶工程に記憶させる符号化工程とを備える
ことを特徴とする画像記憶方法。
8. A block forming step of cutting out image data into a predetermined block, extracting a predetermined pixel from the blocked image data, and storing position information of the extracted pixel in a first storing step. An extraction step of storing the gradation data of No. 2 in a second storage step, a step of replacing the pixels extracted by the extraction step with predetermined data, a conversion step of orthogonally converting the replaced image data, The DC component of the converted image data of the block having no pixels extracted by the extraction step is stored in the second storage step, the image data other than the DC component is encoded, and stored in the third storage step. An image storage method comprising: an encoding step.
JP5216051A 1993-08-31 1993-08-31 Method and device for storing picture Withdrawn JPH0774958A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5216051A JPH0774958A (en) 1993-08-31 1993-08-31 Method and device for storing picture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5216051A JPH0774958A (en) 1993-08-31 1993-08-31 Method and device for storing picture

Publications (1)

Publication Number Publication Date
JPH0774958A true JPH0774958A (en) 1995-03-17

Family

ID=16682518

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5216051A Withdrawn JPH0774958A (en) 1993-08-31 1993-08-31 Method and device for storing picture

Country Status (1)

Country Link
JP (1) JPH0774958A (en)

Similar Documents

Publication Publication Date Title
US8660347B2 (en) Image processing apparatus and processing method therefor
US5504591A (en) System and method for compressing graphic images
EP0685963B1 (en) Image processing apparatus and method
JP5132517B2 (en) Image processing apparatus and image processing method
JP3843581B2 (en) Image encoding device, image decoding device, image processing device, image encoding method, image decoding method, and image processing method
JP2000295113A (en) Huffman coded data compressor
US8014622B2 (en) Image processing apparatus and method for attribute data encoding
EP0506482A2 (en) Image processing
GB2345401A (en) Compression of digital images comprising background pixels
JP2830690B2 (en) Image processing device
EP0902398B1 (en) Method and system for compressing and decompressing binary representations of dithered images
JPH1070654A (en) Image processor
US6934417B2 (en) Transcoding scheme for assistance in image transformations
JPH10215379A (en) Image coder and image decoder
JP3108133B2 (en) Adaptive coding of color document images
US8494261B2 (en) Image processing apparatus, image processing method, and computer-readable medium
JP3346051B2 (en) Image processing device
JPH0774958A (en) Method and device for storing picture
JPH06113145A (en) Image processor
JP3170313B2 (en) Image processing device
JPH09167222A (en) Image processor
JP3083084B2 (en) Image processing device
JPH064070A (en) Image processor
JPH05308529A (en) Image encoder
JP3576575B2 (en) Image processing apparatus and image processing method

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: 20001031