JPH0488752A - Picture processor - Google Patents

Picture processor

Info

Publication number
JPH0488752A
JPH0488752A JP2204798A JP20479890A JPH0488752A JP H0488752 A JPH0488752 A JP H0488752A JP 2204798 A JP2204798 A JP 2204798A JP 20479890 A JP20479890 A JP 20479890A JP H0488752 A JPH0488752 A JP H0488752A
Authority
JP
Japan
Prior art keywords
data
image
memory
circuit
stored
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
JP2204798A
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 JP2204798A priority Critical patent/JPH0488752A/en
Priority to DE69131369T priority patent/DE69131369T2/en
Priority to EP91306966A priority patent/EP0469852B1/en
Publication of JPH0488752A publication Critical patent/JPH0488752A/en
Priority to US08/310,808 priority patent/US5774634A/en
Priority to US08/690,963 priority patent/US5903360A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

PURPOSE:To store an excellent picture with less memory capacity by providing a resolution memory, a gradation memory, and plural image memories compressing an image data and storing the result to the processor and synthesizing the image data with a text data in response to the resolution information stored in the resolution memory. CONSTITUTION:A host computer is connected to an input terminal 1, the host computer inputs a data stored to a resolution memory 3, gradation memories 4,5 and an image memory 6, a data identification circuit 2 decodes header information added to the data and the data is stored in the memories 3, 4, 5, 6. When the host computer transfers one page of data and a printer engine is started, the memories 3, 4, 5, 6 output the data from a head picture element of a page sequentially and synchronously with the printer engine to supply the data to a control terminal and an input terminal (a) of a selector 9 and each input terminal of a selector 8. On the other hand, an image area signal representing valid/invalid output data of each image memory is inputted from the image memory 6 to a priority encoder 7. The encoder 7 controls the selector 8 so that the valid image data of the area set finally is selected.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は画像を記憶するための記憶手段を有する画像処
理装置に関し、特に文字・グラフィック等の線画(以下
「テキスト」という)と、階調(ハーフトーン)を有す
る写真等の中間調画像(以下「イメージ」という)とが
混在する画像情報を記憶する画像処理装置に関するもの
である。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an image processing device having a storage means for storing images, particularly line drawings such as characters and graphics (hereinafter referred to as "text"), and gradation processing. The present invention relates to an image processing device that stores image information in which halftone images such as photographs (hereinafter referred to as "images") are mixed.

〔従来の技術〕[Conventional technology]

一般にテキストを記憶する場合には、斜め線等の滑らか
さ及び連続性を確保するために高分解能が要求される一
方、イメージを記憶する場合には疑似輪郭による画質劣
化を回避するために高階調性が要求される。従って、従
来はイメージ領域とテキスト領域が混在する画像を記憶
する場合には、テキストの品位、即ち斜め線の滑らかさ
や連続性等を確保するのに十分な分解能を実現し得る画
素数と、イメージの疑似輪郭による画質劣化を回避し得
る階調数とを具備するように記憶装置を構成していた。
Generally, when storing text, high resolution is required to ensure smoothness and continuity of diagonal lines, etc., while when storing images, high gradation is required to avoid deterioration of image quality due to false contours. sexuality is required. Therefore, conventionally, when storing an image in which an image area and a text area coexist, the number of pixels that can achieve sufficient resolution to ensure the quality of the text, that is, the smoothness and continuity of diagonal lines, etc., and the image The storage device is configured to have a number of gradation levels that can avoid image quality deterioration due to false contours.

〔発明が解決しようとしている課題〕[Problem that the invention is trying to solve]

しかしながら、上記従来の記憶装置によれば、テキスト
及びイメージの双方の画質を高品位なものとするために
は、画素数及び階調数の双方が増加し、膨大なメモリ容
量が必要となる結果、装置(ハードウェア)の規模、及
びコストが膨大なものになるという欠点があった。特に
フルカラーの画像を記憶しようとする場合、色の三原色
である赤(R)、緑(G)、青(B)の3プレーンが必
要となるため、メモリ容量はさらに3倍必要となる。例
えば、イメージデータのRGB各プレーンの階調数を2
56とすると、フルカラー表示に必要な1画素あたりの
ビット数は24となり、単色文字のみの場合(1画素あ
たりのビット数はl)に比べて24倍のメモリ容量が必
要となる。
However, according to the above conventional storage device, in order to achieve high image quality for both text and images, both the number of pixels and the number of gradations increase, resulting in the need for a huge memory capacity. However, the disadvantage is that the scale of the device (hardware) and cost become enormous. In particular, when trying to store a full-color image, three planes of the three primary colors, red (R), green (G), and blue (B), are required, so the memory capacity is tripled. For example, set the number of gradations of each RGB plane of image data to 2.
56, the number of bits per pixel required for full-color display is 24, and 24 times the memory capacity is required compared to the case of only monochrome characters (the number of bits per pixel is 1).

本発明は上述の点に鑑みてなされたものであり、テキス
トとイメージとが混在する画像を記憶する装置であって
、メモリ容量を増加させることな(、特に色情報を有す
るイメージ及びテキスト双方の画質を良好に保つことが
できる画像処理装置を提供することを目的とする。
The present invention has been made in view of the above-mentioned points, and is an apparatus for storing images in which text and images are mixed, without increasing the memory capacity (in particular, it is possible to store both images and text having color information). An object of the present invention is to provide an image processing device that can maintain good image quality.

〔課題を解決するための手段及び作用]上記課題を解決
するための、本発明の画像処理装置は、解像情報を記憶
するための解像メモリと、テキストデータの描画色を記
憶するための階調メモリと、イメージデータを圧縮して
記憶する複数のイメージメモリとを有し、前記イメージ
メモリに格納されたイメージデータの重複部分は、最後
に格納されたイメージデータを用いて、解像メモリに記
憶された解像情報に応じて前記テキストデータと合成す
ることを特徴とする。
[Means and effects for solving the problems] To solve the above problems, the image processing device of the present invention includes a resolution memory for storing resolution information and a memory for storing drawing colors of text data. It has a gradation memory and a plurality of image memories for compressing and storing image data, and for overlapping parts of the image data stored in the image memories, the image data stored last is used to store the image data in the resolution memory. The text data is combined with the text data according to the resolution information stored in the text data.

〔実施例〕〔Example〕

く第1の実施例〉 第1図は本発明の第1の実施例に係る画像処理装置の構
成を示すブロック図である。図中、1は入力端子、2は
データ識別回路、3は解像メモリ、4.5は階調メモリ
、6はイメージメモリ、7はプライオリティエンコーダ
、8.9はセレクタ、10は出力端子である。
First Embodiment> FIG. 1 is a block diagram showing the configuration of an image processing apparatus according to a first embodiment of the present invention. In the figure, 1 is an input terminal, 2 is a data identification circuit, 3 is a resolution memory, 4.5 is a gradation memory, 6 is an image memory, 7 is a priority encoder, 8.9 is a selector, and 10 is an output terminal. .

入力端子1にはホストコンピュータが接続されており、
上記ホストコンピュータより解像メモリ3、階調メモリ
4.5、イメージメモリ6に格納するデータが入力され
、データ識別回路2にて、該格納データに付加されてい
るヘッダ情報が解釈され、各メモリ3.4.5.6に該
当データが格納される。上記ホストコンピュータより1
ペ一ジ分のデータが転送され、プリンタエンジンが起動
されると、その同期信号(H8YNK)に応じて各メモ
リ3.4.5.6はページの先頭画素より順にプリンタ
エンジンに同期してデータを出力し、各々セレクタ9の
制御端子及び入力端子a、セレクタ7の各入力端子にデ
ータを供給する。
A host computer is connected to input terminal 1,
Data to be stored in the resolution memory 3, gradation memory 4.5, and image memory 6 is input from the host computer, and the data identification circuit 2 interprets the header information added to the stored data. The corresponding data is stored in 3.4.5.6. From the above host computer 1
When data for one page is transferred and the printer engine is started, each memory 3, 4, 5, and 6 synchronizes with the printer engine in order from the first pixel of the page according to the synchronization signal (H8YNK). and supplies data to the control terminal and input terminal a of the selector 9 and each input terminal of the selector 7, respectively.

一方、イメージメモリ6からは各イメージメモリの出力
データの有効/無効を示すイメージ領域信号がプライオ
リティエンコーダ7に入力される。プライオリティエン
コーダ7は、入力されたイメージ領域信号より、最後に
設定された領域の有効イメージデータが選択されるよう
にセレクタ7を制御する。
On the other hand, an image area signal indicating validity/invalidity of the output data of each image memory is input from the image memory 6 to the priority encoder 7. The priority encoder 7 controls the selector 7 so that the valid image data of the last set area is selected based on the input image area signal.

なお、全イメージデータが無効のときは階調メモリ5の
背景色データが選択される。従って、セレクタ9の端子
すには、有効イメージデータが存在する場合は最後に設
定された領域のイメージデータが、有効イメージデータ
が存在しない場合は背景色データが供給される。セレク
タ6は解像メモリ3の出力に従い、解像データが“1″
のときは描画色として端子aのデータ(即ち階調メモリ
4のデータ)を選択し、解像データが“0”のときは背
景色として端子すのデータを選択して出力端子7に接続
されているプリンタエンジンへ階調データを供給する。
Note that when all the image data is invalid, the background color data in the gradation memory 5 is selected. Therefore, if valid image data exists, the image data of the last set area is supplied to the terminal of the selector 9, and if no valid image data exists, the background color data is supplied. The selector 6 follows the output of the resolution memory 3 and selects the resolution data as “1”.
When , the data of terminal a (that is, the data of gradation memory 4) is selected as the drawing color, and when the resolution data is "0", the data of terminal A is selected as the background color, and the data is connected to output terminal 7. The gradation data is supplied to the printer engine that is running.

第2図はイメージメモリ6の具体的構成例を示すブロッ
ク図である。
FIG. 2 is a block diagram showing a specific example of the configuration of the image memory 6. As shown in FIG.

図中、11は圧縮率設定回路、12は圧縮回路、13は
メモリ、14は伸長回路、15は領域検出回路である。
In the figure, 11 is a compression rate setting circuit, 12 is a compression circuit, 13 is a memory, 14 is an expansion circuit, and 15 is an area detection circuit.

信号線100よりイメージ領域の先頭座標及び領域の幅
と高さが圧縮率設定回路11に入力されると、圧縮率設
定回路11は、上記領域の大きさ、即ち幅と高さより入
力イメージデータのデータ量を演算し、メモリ9の容量
との比より圧縮率を設定する。
When the starting coordinates of the image area and the width and height of the area are input to the compression rate setting circuit 11 from the signal line 100, the compression rate setting circuit 11 determines the size of the input image data based on the size of the area, that is, the width and height. The amount of data is calculated and the compression ratio is set based on the ratio to the capacity of the memory 9.

なお、圧縮率が所定値1/k以下となった時はL/k以
上となるようにイメージ領域を分割する。一方、上記先
頭座標及び領域の幅と高さより算出した領域の終点座標
の2点の座標値を領域検出回路15の各レジスタにセッ
トする。圧縮回路12は圧縮率設定回路11によって設
定された圧縮率となるように量子化条件等を制御し、圧
縮したイメージデータをメモリ13に記憶する。圧縮回
路12は直交交換、ベクトル量子化等の公知の圧縮符合
化回路である。
Note that when the compression ratio is less than or equal to a predetermined value of 1/k, the image area is divided so that the compression ratio is equal to or more than L/k. On the other hand, the coordinate values of two points, the start coordinate and the end point coordinate of the area calculated from the width and height of the area, are set in each register of the area detection circuit 15. The compression circuit 12 controls quantization conditions and the like so that the compression rate set by the compression rate setting circuit 11 is achieved, and stores the compressed image data in the memory 13. The compression circuit 12 is a known compression encoding circuit that performs orthogonal exchange, vector quantization, and the like.

第3図は圧縮回路12の具体的構成例を示すブロック図
である。本実施例はISOとCCITTの共同作業体で
あるJPEG (Joint  Photograph
icExpert  Group)において提案されて
いるカラー静止画像符号化の国際標準代案のBasel
ineSystemの符号化部を示している(参考文献
二安田、「カラー静止画符号化国際標準化」、画像電子
学会誌、第18巻、第6号、PP、398〜407.1
987)信号線103より入力されたイメージ画素デー
タは数ライン分の遅延用ラインメモリによって構成され
るブロック化回路16において8×8画素のブロック状
に切出され、離散コサイン変換(DCT)回路17にて
コサイン変換され、変換係数が量子化器(Q)18に供
給される。量子化器18では、量子化テーブル19によ
り印加される量子化ステップ情報に従って変換係数の線
形量子化を行う。量子化された変換係数のうち、DC係
数は予測符号化回路(DPCM)20にて前ブロックの
DC成分との差分(予測誤差)がとられ、ハフマン符号
化回路23に供給される。第4図は予測符号化回路2o
の詳細なブロック構成図である。量子化器18より量子
化されたDC係数は遅延回路3o及び減算器31に印加
される。遅延回路30は、離散コサイン変換回路が1ブ
ロック即ち、8×8画素分の演算に必要な時間分だけ遅
延させる回路で、従って遅延回路30からは前ブロック
のDC係数が減算器31に供給される。
FIG. 3 is a block diagram showing a specific example of the configuration of the compression circuit 12. This example uses JPEG (Joint Photography), a joint effort between ISO and CCITT.
Basel, an alternative international standard for color still image encoding proposed by the icExpert Group
ineSystem encoding unit (References Niyasuda, "International Standardization of Color Still Image Coding", Journal of the Institute of Image Electronics Engineers, Vol. 18, No. 6, PP, 398-407.1
987) The image pixel data inputted from the signal line 103 is cut out into 8×8 pixel blocks in the blocking circuit 16 which is constituted by delay line memory for several lines, and then processed into a discrete cosine transform (DCT) circuit 17. Cosine transform is performed at , and the transform coefficients are supplied to a quantizer (Q) 18 . The quantizer 18 linearly quantizes the transform coefficients according to the quantization step information applied by the quantization table 19. Among the quantized transform coefficients, the DC coefficient is subjected to a difference (prediction error) from the DC component of the previous block in a predictive coding circuit (DPCM) 20 and is supplied to a Huffman coding circuit 23 . FIG. 4 shows the predictive encoding circuit 2o.
FIG. 2 is a detailed block configuration diagram of FIG. The DC coefficients quantized by the quantizer 18 are applied to the delay circuit 3o and the subtracter 31. The delay circuit 30 is a circuit that delays the discrete cosine transform circuit by the amount of time required to calculate one block, that is, 8×8 pixels. Therefore, the DC coefficient of the previous block is supplied from the delay circuit 30 to the subtracter 31. Ru.

よって減算器31の出力には、前ブロックとのDC係数
の差分(予測誤差)が出力されることになる。
Therefore, the subtracter 31 outputs the difference in DC coefficients (prediction error) from the previous block.

(本予測符号化では予測値として前ブロツク値を用いて
いるため、予測器は前述のごとく遅延回路にて構成され
る。) ハフマン符号化回路21は、予測符号化回路20より供
給された予測誤差信号をDCハフマン・コード・デープ
ル24に従って可変長符号化し、多重化回路29にDC
ハフマン◆コードを供給する。
(Since this predictive encoding uses the previous block value as the predicted value, the predictor is configured with a delay circuit as described above.) The Huffman encoding circuit 21 receives the prediction supplied from the predictive encoding circuit 20 The error signal is variable-length coded according to the DC Huffman code deple 24, and then sent to the multiplexing circuit 29.
Huffman ◆ Supply code.

一方、量子化回路器18にて量子化されたAC係数(D
C係数以外の係数)はスキャン変換回路21にて第5図
(a)に示すように低次の係数より順にジグザグ・スキ
ャンされ、有意係数検出回路22に供給される。有意係
数検出回路22では量子化されたAC係数が“0”かど
うか判定し、“0”の場合はラン長カウンタ25にカウ
ントアツプ信号を供給し、カウンタの値を+1増加させ
る。一方、“0″以外の係数の場合は、リセット信号を
ラン長カウンタに供給し、カウンタの値をリセットする
と共に係数をグループ化回路26にて第5図(b)に示
されるようにグループ番号5sssと付加ビットに分割
し、グループ番号5sssをハフマン符号化回路28に
、付加ビットを多重化回路29に各々供給する。
On the other hand, the AC coefficient (D
The coefficients other than the C coefficients are zigzag-scanned by the scan conversion circuit 21 in the order of low-order coefficients as shown in FIG. 5(a), and are supplied to the significant coefficient detection circuit 22. The significant coefficient detection circuit 22 determines whether the quantized AC coefficient is "0" or not. If it is "0", a count up signal is supplied to the run length counter 25 to increase the value of the counter by +1. On the other hand, in the case of a coefficient other than "0", a reset signal is supplied to the run length counter, the value of the counter is reset, and the coefficient is assigned a group number by the grouping circuit 26 as shown in FIG. 5(b). 5sss and additional bits, and supply the group number 5sss to the Huffman encoding circuit 28 and the additional bits to the multiplexing circuit 29, respectively.

ラン長カウタ25は“0″のラン長をカウントする回路
で“0”以外の有意係数間の“0”の数NNNNをハフ
マン符号化回路28に供給する。ハフマン符号化回路2
8は供給された“0”のラン長NNNNと有意係数のグ
ループ番号5sssをACハフマン・コード・テーブル
27に従って可変長符号化し、多重化回路29にACハ
フマン拳コードを供給する。
The run length counter 25 is a circuit that counts the run length of "0" and supplies the number NNNN of "0" between significant coefficients other than "0" to the Huffman encoding circuit 28. Huffman encoding circuit 2
8 performs variable length encoding on the supplied run length NNNN of "0" and significant coefficient group number 5sss according to the AC Huffman code table 27, and supplies the AC Huffman code to the multiplexing circuit 29.

多重化回路29では1ブロツク(8×8の入力画素)分
のDCハフマン中コード、ACハフマン拳コード及び付
加ビットを多重化し、信号線104より圧縮された画像
データが出力される。
The multiplexing circuit 29 multiplexes the DC Huffman medium code, AC Huffman fist code, and additional bits for one block (8×8 input pixels), and compressed image data is output from the signal line 104.

従って信号線104より出力される圧縮データをメモリ
に記憶し、読出し時に逆操作によって伸長することによ
り、メモリ容量の削減が可能である。
Therefore, the memory capacity can be reduced by storing the compressed data output from the signal line 104 in a memory and decompressing it by reverse operation when reading.

伸張回路14は、イメージ領域検出回路15より供給さ
れる信号が有効(イメージ領域画素)となった時のみ上
記の逆操作により圧縮データを伸張し、イメージデータ
を信号線lotより出力する。
The decompression circuit 14 decompresses the compressed data by the reverse operation described above only when the signal supplied from the image area detection circuit 15 becomes valid (image area pixel), and outputs the image data from the signal line lot.

なお、圧縮率設定回路11より供給される圧縮率に従い
、量子化テーブル19の値が制御される。
Note that the value of the quantization table 19 is controlled according to the compression rate supplied from the compression rate setting circuit 11.

第6図は階調メモリ4(5)の具体的な構成例を示すブ
ロック図である。図中、32.34はセレクタ、33は
レジスタ群、35は領域判定回路である。
FIG. 6 is a block diagram showing a specific example of the configuration of the gradation memory 4(5). In the figure, 32 and 34 are selectors, 33 is a register group, and 35 is an area determination circuit.

信号線108より入力された階調データはセレクタ32
によってレジスタ33−2より順次格納される。
The gradation data input from the signal line 108 is sent to the selector 32.
are sequentially stored from the register 33-2.

なお、レジスタ33−1にはデフォルトの階調データ(
例えば階調メモリ4では黒、階調メモリ5では白)が設
定されている。領域判定回路35は信号線105、 1
06より入力される解像メモリ3の出力データの座標値
より、各レジスタに格納されている階調データが有効と
なる範囲を判定し、セレクタ34を制御し、信号線10
9より有効階調データを出力する。
Note that default gradation data (
For example, black is set in gradation memory 4, and white is set in gradation memory 5. The area determination circuit 35 has signal lines 105, 1
Based on the coordinate values of the output data of the resolution memory 3 inputted from 06, the range in which the gradation data stored in each register is valid is determined, the selector 34 is controlled, and the signal line 10
Effective gradation data is output from 9.

第7図は領域判定回路35の具体的な構成例を示すブロ
ック図である。図中、36は領域検出回路、34はプラ
イオリティ・エンコーダ、38.39.40゜41はレ
ジスタ、42.43は比較回路、44はAND回路であ
る。
FIG. 7 is a block diagram showing a specific example of the configuration of the area determination circuit 35. In the figure, 36 is an area detection circuit, 34 is a priority encoder, 38, 39, 40° 41 is a register, 42, 43 is a comparison circuit, and 44 is an AND circuit.

本実施例では、各階調レジスタ33−2〜33−nの有
効領域を第8図に示すような長方形に限定し、最初に走
査される点(Xo、yo)(第8図中、長方形の左上角
部、以下「始点」と称する)及び最後に走査される点(
x+、y+)(図中、長方形の右下角部、以下「終点」
と称する)の2点にて設定する。なお、図中X軸方向を
プリンタの主走査方向、y軸方向を副走査方向とする。
In this embodiment, the effective area of each gradation register 33-2 to 33-n is limited to a rectangle as shown in FIG. 8, and the first scanned point (Xo, yo) (in FIG. the upper left corner (hereinafter referred to as the "starting point") and the last scanned point (
x+, y+) (lower right corner of the rectangle in the figure, hereinafter "end point")
It is set at two points. Note that in the figure, the X-axis direction is the main scanning direction of the printer, and the y-axis direction is the sub-scanning direction.

データ識別回路2より識別された上記始点及び終点の座
標値(x。
The coordinate values (x) of the starting point and ending point identified by the data identification circuit 2.

yo)+  (Xl+ 31’l)は第6図の階調レジ
スタ33に対応する領域検出回路35の各々レジスタ3
8゜39.40.41に格納される。
yo)+(Xl+31'l) is each register 3 of the area detection circuit 35 corresponding to the gradation register 33 in FIG.
Stored at 8°39.40.41.

一方、プリントアウト時には、信号線105. 106
より、解像メモリ3より読出されている画素データの各
座標値が入力される。第1の比較回路42は、上記解像
メモリ3のX座標値Xと、始点及び終点のX座標値XO
+  Xlとを比較し、x□≦X≦X1のとき“1”を
、xくX。またはx>x 1のとき“0”をAND回路
41に入力する。同様に第2の比較回路43は、3’o
≦y≦y1のとき“ビを、y<y 。
On the other hand, when printing out, the signal line 105. 106
Thus, each coordinate value of the pixel data read out from the resolution memory 3 is input. A first comparison circuit 42 compares the X coordinate value X of the resolution memory 3 with the X coordinate value XO of the starting point and ending point.
+ Compare with Xl, and when x□≦X≦X1, set it to “1”, Alternatively, when x>x1, "0" is input to the AND circuit 41. Similarly, the second comparison circuit 43
When ≦y≦y1, y<y.

またはy>ylのとき“0”をAND回路44に入力す
る。従ってAND回路44からは、(i) X o≦X
≦X、かつy。≦y≦y1のとき“ビ、(it)(i)
以外のとき“0”が出力され、領域検出が可能となる。
Alternatively, when y>yl, "0" is input to the AND circuit 44. Therefore, from the AND circuit 44, (i) X o≦X
≦X, and y. When ≦y≦y1, “bi, (it) (i)
In other cases, "0" is output, and area detection becomes possible.

各領域検出回路36−2〜36−nにて検出された結果
は、第8図の斜線部に示すような重複部分の優先判定を
行うため、プライオリティエンコーダ37にて、検出さ
れた領域の内、最後に設定された領域の番号がエンコー
ドされて信号線107より出力される。即ち、重複部分
では後から設定された領域が有効と判定される。なお、
各領域判定結果が全て“0”となった場合は、プライオ
リティエンコーダは“0”を出力し、第6図の階調レジ
スタ33−1の階調データ(即ちデフォルト値)を選択
するようにセレクタ34を制御する。
The results detected by each of the area detection circuits 36-2 to 36-n are processed by the priority encoder 37 to determine the priority of overlapping areas as shown in the shaded area in FIG. , the number of the last set area is encoded and output from the signal line 107. That is, in the overlapping part, the area set later is determined to be valid. In addition,
If the results of each area determination are all "0", the priority encoder outputs "0" and the selector is activated to select the gradation data (i.e. default value) of the gradation register 33-1 in FIG. 34.

なお、第2図のイメージ領域検出回路15は、第7図の
領域検出回路36と同様の回路にて構成される。
Note that the image area detection circuit 15 in FIG. 2 is constructed of a circuit similar to the area detection circuit 36 in FIG. 7.

第1図(b)は、第1図(a)の画像記憶部を含む、画
像処理装置の全体構成を示す図である。
FIG. 1(b) is a diagram showing the overall configuration of an image processing apparatus including the image storage section of FIG. 1(a).

第1図(b)において、200はホストコンピュータと
接続された画像入力部であるが、CCDセンサーを含む
イメージスキャナ等の画像読取装置や、Sv左カメラビ
デオカメラ等の外部機器のインターフェース等であって
もよい。後者の場合には、データ識別回路50において
上記データの識別を行うようにする。200から入力さ
れた画像データは第1図(a)に示される画像記憶部2
01の入力端子1に供給される。202はオペレータが
画像データの出力光の指定などを行う操作部、203は
出力制御部であり、画像データの出力光の選択、プリン
タエンジンのHSYNOなどのメモリ読出しの同期信号
の出力などを行う。同期信号は第1図(a)の識別回路
50及び各メモリに供給され、データの転送、メモリか
らの読み出し等の制御信号として用いられる。204は
デイスプレィ等の画像表示部、205は公衆回線やロー
カルエリアネットワークを介して画像データの通信を行
う送信部、206は例えば感光体上にレーザービームを
照射を潜像して形成し、これを可視画像化するレーザー
ビームプリンタなどの画像出力部である。なお、画像出
力部206は、インクジェットプリンタや熱転写プリン
タ、ドツトプリンタ等であってもよい。
In FIG. 1(b), 200 is an image input unit connected to the host computer, but it may also be an image reading device such as an image scanner including a CCD sensor, an interface for external equipment such as the Sv left camera video camera, etc. It's okay. In the latter case, the data identification circuit 50 identifies the data. The image data input from 200 is stored in the image storage unit 2 shown in FIG. 1(a).
01 input terminal 1. Reference numeral 202 designates an operation unit through which an operator specifies output light for image data, and reference numeral 203 designates an output control unit, which performs selection of output light for image data, output of a synchronization signal for memory reading such as HSYNO of the printer engine, and the like. The synchronization signal is supplied to the identification circuit 50 of FIG. 1(a) and each memory, and is used as a control signal for data transfer, reading from the memory, etc. 204 is an image display unit such as a display; 205 is a transmitting unit that communicates image data via a public line or local area network; and 206 is a latent image formed by irradiating a laser beam on a photoreceptor, and this is This is an image output unit such as a laser beam printer that creates a visible image. Note that the image output unit 206 may be an inkjet printer, a thermal transfer printer, a dot printer, or the like.

以上の様に、本発明の本実施例は画素間の相関及び視覚
特性を利用してイメージデータ等の連続階調データを圧
縮して記憶するイメージメモリ、特定領域毎にテキスト
色(描画色)あるいは背景色を記憶する階調メモリ、画
素データのドツト解像度を保存する解像メモリを設け、
該解像メモリの出力信号に従って上記イメージメモリと
階調メモリの出力データを切換えることにより、テキス
ト及びイメージ双方の画質を良好に保ったまま、メモリ
容量の削減を図ったものである。
As described above, this embodiment of the present invention has an image memory that compresses and stores continuous tone data such as image data using the correlation between pixels and visual characteristics, and a text color (drawing color) for each specific area. Alternatively, a gradation memory that stores the background color and a resolution memory that stores the dot resolution of pixel data are provided.
By switching the output data of the image memory and gradation memory in accordance with the output signal of the resolution memory, it is possible to reduce the memory capacity while maintaining good image quality of both text and images.

また、複数のイメージメモリを設け、イメージデータの
合成を可能とすることにより、ホストコンピュータから
のイメージデータの転送効率を向上させ、データ転送時
間の削減を図っている。
Furthermore, by providing a plurality of image memories and making it possible to combine image data, the efficiency of transferring image data from the host computer is improved and the data transfer time is reduced.

〈第2に実施例〉 第9図は本発明の第2の実施例に係る画像処理装置の構
成を示すブロック図である。図中、第1図及び第2図と
同様の機能を果たす構成要素には同一の符号を付し、以
下の第1の実施例と異なる点についてのみ説明する。
<Second Embodiment> FIG. 9 is a block diagram showing the configuration of an image processing apparatus according to a second embodiment of the present invention. In the drawings, components that perform the same functions as those in FIGS. 1 and 2 are denoted by the same reference numerals, and only the differences from the first embodiment will be described below.

図中45.46はセレクタである。In the figure, 45 and 46 are selectors.

ホストコンピュータより転送されるイメージデータは、
各イメージ領域毎に送られて(るため、圧縮回路12は
各イメージメモリにて共用可能である。
The image data transferred from the host computer is
Since the data is sent for each image area, the compression circuit 12 can be shared by each image memory.

一方、本実施例ではイメージ領域の重複も許されている
ため、伸長回路14の共用は不可である(ただし、重複
がない場合は共用可能)。
On the other hand, in this embodiment, since overlapping of image areas is also allowed, the decompression circuit 14 cannot be shared (however, it can be shared if there is no overlapping).

データ識別回路2より識別されたイメージデータは、圧
縮率設定回路にてヘッダ情報が解釈され、圧縮率及びイ
メージ領域の始点と終点の座標が演算され、各々圧縮回
路12、セレクタ46に供給される。圧縮回路12は設
定された圧縮率に従ってイメージデータを圧縮し、セレ
クタ45を経て、各イメージ領域毎に圧縮データをメモ
リ13−1から順に格納する。同様に各イメージ領域の
始点と終点の座標もセレクタ46を経て、領域検出回路
15−1から順に各レジスタに格納される。以降は第1
の実施例と同様であるため、説明は省略する。
The header information of the image data identified by the data identification circuit 2 is interpreted by the compression rate setting circuit, and the compression rate and the coordinates of the start and end points of the image area are calculated and supplied to the compression circuit 12 and the selector 46, respectively. . The compression circuit 12 compresses the image data according to a set compression rate, and sequentially stores the compressed data for each image area from the memory 13-1 via the selector 45. Similarly, the coordinates of the start point and end point of each image area are stored in each register in order from the area detection circuit 15-1 via the selector 46. From then on, the first
Since this embodiment is the same as that in the embodiment, the explanation will be omitted.

圧縮回路12及び圧縮率設定回路11を各イメージメモ
リにて共用することによりハード量が削減される。
By sharing the compression circuit 12 and compression rate setting circuit 11 in each image memory, the amount of hardware can be reduced.

〈第3の実施例〉 第10図は本発明の第3の実施例に係る画像処理装置の
構成を示すブロック図である。図中、第1図及び第2図
と同様の機能を果たす構成要素には同一の符号を付し、
以下、第1の実施例と異なる点についてのみ説明する。
<Third Embodiment> FIG. 10 is a block diagram showing the configuration of an image processing apparatus according to a third embodiment of the present invention. In the figure, components that perform the same functions as in FIGS. 1 and 2 are given the same reference numerals.
Hereinafter, only the points different from the first embodiment will be explained.

図中、47.48.49.50.51.52はセレクタ
、53は圧縮率設定回路である。
In the figure, 47, 48, 49, 50, 51, and 52 are selectors, and 53 is a compression ratio setting circuit.

本実施例においては、ホストコンピュータよりイメージ
データが転送される度に、メモリに記憶されている圧縮
データを伸長し、入力イメージデータと合成した後、圧
縮して別のメモリに格納する構成となっている。本構成
により、圧縮回路12及び伸長回路13、圧縮率設定回
路53は全て1系統、また、メモリ13、イメージ領域
検出回路13は2系統のみで良く、ハード量が大幅に削
減される。
In this embodiment, each time image data is transferred from the host computer, the compressed data stored in the memory is decompressed, combined with the input image data, compressed, and stored in another memory. ing. With this configuration, the compression circuit 12, the expansion circuit 13, and the compression rate setting circuit 53 are all required in one system, and the memory 13 and the image area detection circuit 13 are required in only two systems, which greatly reduces the amount of hardware.

以下、イメージデータの合成方法について説明する。A method of combining image data will be described below.

初期状態ではセレクタ47は端子aを、セレクタ48〜
52は各々端子dを選択している。従って最初のイメー
ジ領域データは圧縮されてメモリ13−1に、イメージ
領域の始点と終点の座標が領域検出回路15−1に各々
格納される。最初のイメージ領域データの格納が終了す
ると、セレクタ48〜52は各々端子eを選択するよう
に制御される。
In the initial state, selector 47 connects terminal a, selector 48 to
52 selects the terminal d. Therefore, the first image area data is compressed and stored in the memory 13-1, and the coordinates of the start and end points of the image area are stored in the area detection circuit 15-1. When the storage of the first image area data is completed, the selectors 48 to 52 are each controlled to select the terminal e.

次に、2番目のイメージ領域データがデータ識別回路2
より供給されると、圧縮率設定回路53は、セレクタ5
1より供給される領域検出回路15−1の始点座標(x
e、 ys)、終点座標(xe、 ye)と、データ識
別回路2より供給されるヘッダ情報より算出した2番目
のイメージ領域の始点座標(xo、yo)、終点座標(
xl、y+)から、合成した領域の始点座標(x  s
、 y  s)、終点座標(Xe、 y  Jを下記演
算により求め、領域検出回路15−2に格納する。
Next, the second image area data is transferred to the data identification circuit 2.
When supplied from the selector 5, the compression ratio setting circuit 53
The starting point coordinates (x
e, ys), end point coordinates (xe, ye), and start point coordinates (xo, yo) of the second image area calculated from the header information supplied from the data identification circuit 2, end point coordinates (
xl, y+), start point coordinates (x s
, ys) and the end point coordinates (Xe, yJ) are determined by the following calculations and stored in the area detection circuit 15-2.

次に、求めた合成領域の始点及び終点の座標より、目標
圧縮率を求め、圧縮回路12に設定し、上記始点座標の
画素から終点座標の画素までセレクタ47により合成す
る。セレクタ47の制御端子にはセレクタ52で選択さ
れた2番目のイメージ領域検出信号が供給されており、
合成画素が2番目のイメージ領域内のときは端子a(即
ち2番目のイメージデータ)を選択し、上記以外では端
子b(即ち伸長回路14の出力イメージデータ)を選択
して合成を行う。合成されたイメージデータは圧縮回路
12で圧縮されてセレクタ48を経てメモリ13−2に
格納される。なお、伸長回路14はセレクタ51より供
給される領域検出信号が有効を示すときには伸長したイ
メージデータを、無効を示すときには空白(白)データ
を出力する。上記操作により、合成領域の終点座標まで
合成が行われ、圧縮データがメモリ13−2に格納され
ると、セレクタ48〜52は反転して端子dを選択して
次にイメージ領域の合成の待機状態となる。
Next, a target compression ratio is determined from the determined coordinates of the starting point and end point of the synthesis area, and set in the compression circuit 12, and the selector 47 performs synthesis from the pixel at the starting point coordinate to the pixel at the ending point coordinate. The second image area detection signal selected by the selector 52 is supplied to the control terminal of the selector 47;
When the composite pixel is in the second image area, terminal a (ie, the second image data) is selected, and in other cases, terminal b (ie, the output image data of the expansion circuit 14) is selected to perform the synthesis. The combined image data is compressed by the compression circuit 12 and stored in the memory 13-2 via the selector 48. Note that the expansion circuit 14 outputs expanded image data when the area detection signal supplied from the selector 51 indicates validity, and outputs blank (white) data when it indicates invalidity. By the above operation, when the synthesis is performed up to the end point coordinates of the synthesis area and the compressed data is stored in the memory 13-2, the selectors 48 to 52 are inverted and select the terminal d, and then wait for the synthesis of the image area. state.

以上の操作の繰返しにより、1ペ一ジ分のイメージデー
タがメモリ13に格納され、プリンタエンジンが起動さ
れると、最後に格納された圧縮イメージデータが伸長回
路14に供給され、プリンタエンジンに同期したイメー
ジデータがセレクタ53の端子すに供給される。以降は
第1の実施例と同様となるため説明は省略する。
By repeating the above operations, image data for one page is stored in the memory 13, and when the printer engine is started, the last stored compressed image data is supplied to the decompression circuit 14 and synchronized with the printer engine. The image data obtained is supplied to a terminal of the selector 53. Since the subsequent steps are similar to those in the first embodiment, the explanation will be omitted.

なお、第1〜第3の実施例ではテキストデータの階調情
報(描画色)を階調メモリ4に記憶していたが、イメー
ジメモリに記憶する構成としても良い。
In the first to third embodiments, the gradation information (drawing color) of the text data is stored in the gradation memory 4, but it may be stored in the image memory.

この場合、階調メモリ4に背景色を格納し、階調メモリ
5が不要となる。
In this case, the background color is stored in the gradation memory 4, and the gradation memory 5 becomes unnecessary.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明の画像記憶装置によれば、テ
キストイメージの混在した画像を少ないメモリ容量で、
テキスト、イメージ共に良好な画像を記憶することがで
きた。
As explained above, according to the image storage device of the present invention, images containing text images can be stored with a small memory capacity.
I was able to memorize both text and images well.

また、イメージデータの合成が可能となったため、イメ
ージデータの転送時間が短縮されるとともに多彩な出力
画像が容易に得られるようになる。
Furthermore, since it has become possible to combine image data, the time for transferring image data is shortened, and a variety of output images can be easily obtained.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の第1の実施例の画像処理装置の構成を
示すブロック図、 第2図はイメージメモリの具体的構成例を示す図、第3
図は圧縮回路の具体的構成例を示す図、第4図は予測符
合化回路(DPCM)の具体的構成例を示す図、 第5図はDCTのスキャン順序を示す図、第6図は階調
メモリの具体的構成例を示す図、第7図は領域判定回路
の具体的構成例を示す図、第8図はページ上の階調メモ
リの有効領域を示す図、 第9図は本発明の第2の実施例の構成を示すブロック図
、 第1O図は本発明の第3の実施例の構成を示すブロック
図である。 2・・・データ識別回路 3・・・解像メモリ 4.5・・・階調メモリ 6・・・イメージメモリ 7・・・プライオリティエンコーダ 8.9.45.46.47.48.49.50.51.
12・・・セレクタ 11.53・・・圧縮率設定回路 12・・・圧縮回路 13・・・メモリ 14・・・伸長回路 15・・・イメージ領域検出回路である。 第1ス((1) 第4図 第5■(σ) 第5図(し) ACC数 本sss 第6図 L−一−−−−−−−−−−〜−− −−−−」
FIG. 1 is a block diagram showing the configuration of an image processing apparatus according to the first embodiment of the present invention, FIG. 2 is a diagram showing a specific example of the configuration of an image memory, and FIG.
The figure shows a specific configuration example of a compression circuit, FIG. 4 shows a specific configuration example of a predictive coding circuit (DPCM), FIG. 5 shows a DCT scan order, and FIG. FIG. 7 is a diagram showing a specific configuration example of the tone memory, FIG. 7 is a diagram showing a specific configuration example of the area determination circuit, FIG. 8 is a diagram showing the effective area of the tone memory on the page, and FIG. 9 is the present invention. FIG. 1O is a block diagram showing the structure of a third embodiment of the present invention. 2...Data identification circuit 3...Resolution memory 4.5...Gradation memory 6...Image memory 7...Priority encoder 8.9.45.46.47.48.49.50 .51.
12...Selector 11.53...Compression rate setting circuit 12...Compression circuit 13...Memory 14...Expansion circuit 15...Image area detection circuit. 1st stage ((1) Figure 4 Figure 5 ■ (σ) Figure 5 (shi) Several ACCs sss Figure 6 L-1

Claims (4)

【特許請求の範囲】[Claims] (1)解像情報を記憶するための解像メモリと、テキス
トデータの描画色を記憶するための階調メモリと、イメ
ージデータを圧縮して記憶する複数のイメージメモリと
を有し、前記イメージメモリに格納されたイメージデー
タの重複部分は、最後に格納されたイメージデータを用
いて、解像メモリに記憶された解像情報に応じて前記テ
キストデータと合成することを特徴とする画像処理装置
(1) A resolution memory for storing resolution information, a gradation memory for storing drawing colors of text data, and a plurality of image memories for compressing and storing image data; An image processing device characterized in that overlapping portions of image data stored in a memory are combined with the text data using the last stored image data according to resolution information stored in a resolution memory. .
(2)前記イメージデータの圧縮手段を前記複数のイメ
ージメモリで共用することを特徴とする請求項第1項記
載の画像処理装置。
(2) The image processing apparatus according to claim 1, wherein the image data compression means is shared by the plurality of image memories.
(3)圧縮率が所定値1/k以下となった時には、圧縮
率が1/k以上となるようにイメージ領域を分割して複
数のメモリに記憶することを特徴とする請求項第1項記
載の画像処理装置。
(3) When the compression ratio becomes less than a predetermined value 1/k, the image area is divided and stored in a plurality of memories so that the compression ratio becomes 1/k or more. The image processing device described.
(4)圧縮したイメージを格納するための少くとも2つ
のメモリと少くとも2つのイメージ領域検出回路、1つ
の圧縮回路と1つの伸長回路を有し、1方のメモリに格
納されたデータを上記伸長回路にて復元し、復元したイ
メージデータとホストコンピュータより入力されたイメ
ージデータを合成した後、上記圧縮回路にて圧縮して他
方のメモリに格納することを特徴とする請求項第1項記
載の画像処理装置。
(4) It has at least two memories for storing compressed images, at least two image area detection circuits, one compression circuit and one decompression circuit, and the data stored in one memory is Claim 1, characterized in that the image data is restored in the decompression circuit, the restored image data and the image data input from the host computer are combined, and then compressed in the compression circuit and stored in the other memory. image processing device.
JP2204798A 1990-07-31 1990-07-31 Picture processor Pending JPH0488752A (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP2204798A JPH0488752A (en) 1990-07-31 1990-07-31 Picture processor
DE69131369T DE69131369T2 (en) 1990-07-31 1991-07-30 Image processing apparatus and method
EP91306966A EP0469852B1 (en) 1990-07-31 1991-07-30 Image processing method and apparatus
US08/310,808 US5774634A (en) 1990-07-31 1994-09-22 Image processing method and apparatus
US08/690,963 US5903360A (en) 1990-07-31 1996-08-01 Discriminating an image data characteristic and controlling storage of the data accordingly

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2204798A JPH0488752A (en) 1990-07-31 1990-07-31 Picture processor

Publications (1)

Publication Number Publication Date
JPH0488752A true JPH0488752A (en) 1992-03-23

Family

ID=16496538

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2204798A Pending JPH0488752A (en) 1990-07-31 1990-07-31 Picture processor

Country Status (1)

Country Link
JP (1) JPH0488752A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013197984A (en) * 2012-03-21 2013-09-30 Brother Ind Ltd Jpeg compression device and image reader

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013197984A (en) * 2012-03-21 2013-09-30 Brother Ind Ltd Jpeg compression device and image reader

Similar Documents

Publication Publication Date Title
US5774634A (en) Image processing method and apparatus
US5973755A (en) Video encoder and decoder using bilinear motion compensation and lapped orthogonal transforms
US5506621A (en) Image processing method and apparatus
WO2009087783A1 (en) Data generator for coding, method of generating data for coding, decoder and decoding method
US6014171A (en) Image encoding and decoding methods and apparatus utilizing the elimination of invalid code
US5493329A (en) Picture transmission system
JP4305904B2 (en) Partial image encoding device
US6574370B1 (en) Image encoding system
EP0926899A2 (en) An apparatus and process for decoding motion pictures
JPH089385A (en) Dynamic image encoder
JPH0488752A (en) Picture processor
JP2984332B2 (en) Image processing device
JP3083084B2 (en) Image processing device
JP2002523987A (en) Digital image encoding method and encoding apparatus, and digital image decoding method and decoding apparatus
US6282321B1 (en) Context generation circuit and method for small screen
JPH08205192A (en) Image encoding device
JPH0487473A (en) Picture processing unit
JPH08242446A (en) Image processing method and image processor
KR100413981B1 (en) Apparatus and method for prediction and release DC coefficient in image system
JPH10336427A (en) Encoded image data display/conversion method
JPH10136179A (en) Data processing unit
JPS5947915B2 (en) Color image signal processing device
JP3323615B2 (en) Image data compression apparatus and method
JPH0487471A (en) Picture processing unit
JPH0795415A (en) Method and device for picture communication