JPH04574A - Image processor - Google Patents

Image processor

Info

Publication number
JPH04574A
JPH04574A JP10122090A JP10122090A JPH04574A JP H04574 A JPH04574 A JP H04574A JP 10122090 A JP10122090 A JP 10122090A JP 10122090 A JP10122090 A JP 10122090A JP H04574 A JPH04574 A JP H04574A
Authority
JP
Japan
Prior art keywords
color
image data
data
pixel
image
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
JP10122090A
Other languages
Japanese (ja)
Inventor
Yasuhisa Ishizawa
石沢 康久
Yoshitsugu Yamanashi
山梨 能嗣
Hiroshi Nonoshita
野々下 博
Kenjiro Cho
長 健二朗
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 JP10122090A priority Critical patent/JPH04574A/en
Publication of JPH04574A publication Critical patent/JPH04574A/en
Priority to US08/380,940 priority patent/US5781666A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reproduce an image constituted so that one picture element corresponds to one bit as an image constituted so that one picture element corresponds to plural bits by switching the data of a low resolution image memory and that of a background image memory in accordance with the data of a high resolution image memory. CONSTITUTION:A binary image memory 15 stores binary image data constituted so that one picture element corresponds to one bit and a color image memory 16 stores color image constituted so that one picture element corresponds to 24 bits. The image data of the memories 15, 16 are correspondingly read out by a reading control circuit 17. On the other hand, a background color register 22 stores image data for uniformly regulating a background. The data of the memory 16 and the register 22 are switched by a selector 20 in accordance with individual image data stored in the memory 15.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は画像処理装置、詳しくはカラー画像を処理して
出力する画像処理装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Field of Application] The present invention relates to an image processing apparatus, and more particularly to an image processing apparatus that processes and outputs a color image.

[従来の技術] 従来、カラー画像を扱う画像処理装置、特に比較的廉価
な装置におけるカラー画像用イメージメモリは、画像の
特定領域を任意の色に指定することができるように、第
16図の様な構成をしている。つまり、1画素1ビット
で構成されるイメージメモリ201と、領域指定レジス
タ203と色指定レジスタ202と色指定回路204と
で構成されていた。
[Prior Art] Conventionally, an image memory for a color image in an image processing device that handles color images, especially a relatively inexpensive device, has an image memory for color images as shown in FIG. It has various configurations. In other words, it consisted of an image memory 201 composed of one pixel and one bit, an area designation register 203, a color designation register 202, and a color designation circuit 204.

比較的高価な装置に於ては、画像領域全面に渡ってパレ
ット指定の限定色を使用できるよう、第17図のように
構成されている。例えば出力可能色数が16色ならば1
画素4ビットのイメージメモリ205と、例えば、40
96色より16色を選択するカラーパレット206とで
構成されていた。
A relatively expensive device is constructed as shown in FIG. 17 so that limited colors specified by the palette can be used over the entire image area. For example, if the number of colors that can be output is 16, 1
For example, the image memory 205 has 4 bits of pixels and 40 bits of pixels.
It consisted of a color palette 206 that selects 16 colors from 96 colors.

[発明が解決しようとしている課題] しかしながら、第16図に示す従来例では、領域単位で
色指定をするため次のような欠点があった。
[Problems to be Solved by the Invention] However, the conventional example shown in FIG. 16 has the following drawbacks because the color is specified for each area.

(1)指定可能領域数が限定される。(1) The number of areas that can be specified is limited.

(2)領域内で複数の色を混在使用できない。(2) Multiple colors cannot be mixed within an area.

(3)図形・自然画像には使用できない。(3) Cannot be used for figures or natural images.

また、第17図の従来例では、次のような欠点があった
Further, the conventional example shown in FIG. 17 has the following drawbacks.

(1)メモリ使用量が多い(例えば、用紙サイズA3.
解像度400dpiの場合、1画素4ビットならば16
Mバイト、1画素8ビットならば32Mビットを要する
)。
(1) Memory usage is large (for example, paper size A3.
If the resolution is 400 dpi, 1 pixel is 4 bits, then 16
(M bytes, 32 M bits if 1 pixel is 8 bits).

(2)限定色のため、自然画像に対しては画像品位が低
い。
(2) Due to the limited colors, the image quality is low for natural images.

本発明はかかる従来技術に鑑みなされたものであり、1
画素1ビットで表された高解像度の画像を、1画素につ
き複数ビットに対応した画像として再現することが可能
な画像処理装置を提供しようとするものである。
The present invention has been made in view of such prior art, and includes:
The present invention aims to provide an image processing device capable of reproducing a high-resolution image expressed by one bit per pixel as an image corresponding to a plurality of bits per pixel.

[課題を解決するための手段] この課題を解決するため本発明は以下に示す構成を備え
る。すなわち、 第1の解像度で1画素1ビットに対応した画素データか
らる画像を記憶する第1の記憶手段と、前記第1の解像
度より低い第2の解像度で1画素複数ビットに対応した
画素データからなる画像な記憶する第2の記憶手段と、
前記第1の記憶手段及び前記第2の記憶手段から画像デ
ータを対応付けて読み出す読み出し制御手段と、画像デ
ータの背景を一意に規定する画像データを記憶する背景
画像データ記憶手段と、前記第1の記憶手段の記憶され
た個々の画素データの状態に応じて、前記第2の記憶手
段の対応する画素データと前記背景画像データ記憶手段
に記憶された背景画像データとを切り換える切り換え手
段とを備える。
[Means for Solving the Problem] In order to solve this problem, the present invention includes the configuration shown below. That is, a first storage means for storing an image made up of pixel data corresponding to one bit per pixel at a first resolution, and pixel data corresponding to multiple bits per pixel at a second resolution lower than the first resolution. a second storage means for storing an image consisting of;
readout control means for reading out image data in association with each other from the first storage means and the second storage means; background image data storage means for storing image data that uniquely defines a background of the image data; switching means for switching between the corresponding pixel data of the second storage means and the background image data stored in the background image data storage means according to the state of each pixel data stored in the storage means; .

C作用コ かかる本発明の構成において、切り換え手段によって、
第1の記憶手段の記憶された個々の画素データの状態に
応じて、第2の記憶手段の対応する画素データと背景画
像データ記憶手段に記憶された背景画像データとを切り
換える。
In the configuration of the present invention, the switching means
Depending on the state of each pixel data stored in the first storage means, the corresponding pixel data in the second storage means and the background image data stored in the background image data storage means are switched.

[実施例] 以下、添付図面に従って本発明に係る実施例を詳細に説
明する。
[Embodiments] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

く構成の説明〉 第1図は実施例における画像処理装置のブロック構成図
、第2図〜第4図はその一部の詳細を示す図である。
1. Description of Configuration> FIG. 1 is a block diagram of an image processing apparatus according to an embodiment, and FIGS. 2 to 4 are diagrams showing details of a part thereof.

第1図において、1は装置全体を制御するCPU、2は
プログラム等を一時的に記憶したりワーク領域として使
用するメインメモリ、3はLANと接続するための通信
インタフェース(以下通信I/F) 、4は文字コード
等を入力するキーボード、5は表示画面上でのカーソル
の位置を指示するポインティングデバイス、6はキーボ
ード4やポインティングデバイス5等の入力装置を制御
する入力装置のインタフェース(以下入力装置工/F)
である。7はアドレス、データ及び制御信号等を伝達す
るシステムバス、8は表示装置としてのCRTデイスプ
レィ(以下CRT)、9はCRT8の表示用画像を展開
するビデオRAM (以下VRAM) 、10はフロッ
ピーディスクドライブ(以下FD)、11はハードディ
スクドライブ(以下HD)、12はFDIO及びHDI
Iを制御するディスクインタフェース(以下DISK−
I/F)、13は本実施例の特徴とする部分のイメージ
制御部、14はプリンタ等の出力装置である。
In Figure 1, 1 is a CPU that controls the entire device, 2 is a main memory that temporarily stores programs etc. and is used as a work area, and 3 is a communication interface (hereinafter referred to as communication I/F) for connecting to a LAN. , 4 is a keyboard for inputting character codes, etc., 5 is a pointing device for instructing the position of a cursor on the display screen, and 6 is an input device interface (hereinafter referred to as input device) for controlling input devices such as the keyboard 4 and pointing device 5. Engineering/F)
It is. 7 is a system bus for transmitting addresses, data, control signals, etc., 8 is a CRT display (hereinafter referred to as CRT) as a display device, 9 is a video RAM (hereinafter referred to as VRAM) for developing images for display on the CRT 8, and 10 is a floppy disk drive. (hereinafter referred to as FD), 11 is a hard disk drive (hereinafter referred to as HD), 12 is FDIO and HDI
Disk interface (hereinafter referred to as DISK-
13 is an image control unit which is a feature of this embodiment, and 14 is an output device such as a printer.

実施例におけるイメージ制御部13は以下に示す符号1
5〜24の構成要素よりなる。
The image control unit 13 in the embodiment is designated by the reference numeral 1 shown below.
It consists of 5 to 24 components.

15は1画素1ビットで構成され、解像度400dpi
の2値イメージデータを格納(展開)する2値イメージ
メモリ(以下2値IMEM)、16は1画素24ビット
で構成され解像度100dpiのカラーイメージデータ
を格納展開するカラーイメージメモリ(以下カラーIM
EM)、17は2値IMEM15とカラーIMEM16
のデータを対応付けて読み出す読み出し制御回路、18
は2値IMEM15の2値イメージデータ(解像度40
0dpi)に従って、カラーIMEM16のカラーイメ
ージデータ(解像度100dpi)の輪郭制御を行なう
輪郭指定回路、19はカラーIMEM16のカラーイメ
ージデータに従って2値IMEM15の2値イメージデ
ータに色指定を行なう色指定回路である、また、20は
輪郭指定回路18の出力データと色指定回路19の出力
データとを後述のモード制御回路からの指示信号に従い
選択するセレクタ、21は色補正等を行なうルックアッ
プテーブル(以下LUT)である。
15 is composed of 1 pixel and 1 bit, and has a resolution of 400 dpi.
Binary image memory (hereinafter referred to as binary IMEM) stores (deploys) binary image data of
EM), 17 is binary IMEM15 and color IMEM16
a readout control circuit for reading out data in association with each other; 18;
is binary image data of binary IMEM15 (resolution 40
0 dpi), and 19 is a color designation circuit that performs color designation on the binary image data of the binary IMEM 15 in accordance with the color image data of the color IMEM 16 (100 dpi resolution). , 20 is a selector that selects the output data of the contour designation circuit 18 and the output data of the color designation circuit 19 according to an instruction signal from a mode control circuit, which will be described later, and 21 is a lookup table (hereinafter referred to as LUT) that performs color correction, etc. It is.

第2図は第1図の輪郭指定回路18の構成を詳細に示す
ブロック図である。31a〜31dは2値イメージデー
タを4ビット単位で入力しシリアル出力するシフトレジ
スタ(以下SR)である。
FIG. 2 is a block diagram showing in detail the configuration of the contour specifying circuit 18 of FIG. 1. 31a to 31d are shift registers (hereinafter referred to as SR) which input binary image data in units of 4 bits and serially output the data.

32a〜32pはそれぞれ1ビットの画素データをラッ
チするフリップフロップ(以下FF)であり、これらで
もって4X4の画素マトリクスを構成する。33は4×
4の画素マトリクスのパターンに従い輪郭指定するテー
ブル情報が入っている輪郭指定テーブルROM、34は
4×4画素マトリクスの主走査方向のカウンタを行なう
主走査カウンタ、35は4×4画素マトリクスの副走査
方向のカウントを行なう副走査カウンタである。また、
36a〜36iはそれぞれ24ビット分のデータをラッ
チするフリップフロップ(以下、24ビットFF)であ
り、これらでもって1画素24ビットで構成される3×
3の画素マトリクスを構成する。37は輪郭指定テーブ
ルROM33の指定に従い、3×3画素マトリクスのカ
ラーイメージデータを選択出力するセレクタである。
32a to 32p are flip-flops (hereinafter referred to as FF) that each latch 1-bit pixel data, and these constitute a 4×4 pixel matrix. 33 is 4×
A contour specification table ROM containing table information for specifying contours according to the pattern of the pixel matrix 4, a main scanning counter 34 that performs a counter in the main scanning direction of the 4 x 4 pixel matrix, and 35 a sub-scanning counter of the 4 x 4 pixel matrix. This is a sub-scanning counter that counts directions. Also,
36a to 36i are flip-flops (hereinafter referred to as 24-bit FFs) that each latch 24 bits of data, and these 3x
3 pixel matrices are constructed. 37 is a selector that selects and outputs color image data of a 3×3 pixel matrix according to the designation of the contour designation table ROM 33.

第3図は第1図の色指定回路19の構成を詳細番J示す
ブロック図である、 図中、41は2値イメージデークの状態に従いカラーイ
メージデータと背景色データを選択するセレクタである
FIG. 3 is a block diagram showing details of the configuration of the color specifying circuit 19 of FIG. 1. In the figure, 41 is a selector for selecting color image data and background color data according to the state of the binary image data.

第4図は第1図の背景色レジスタ22、モード制御L/
ジスタ23、及びモード制御回路24の構成を詳細に示
すブロック図である。
Figure 4 shows the background color register 22 and mode control L/L in Figure 1.
2 is a block diagram showing in detail the configurations of a register 23 and a mode control circuit 24. FIG.

同図において、51〜62はモード制御レジスタ23を
構成するレジスタ群であり、第15図(C)に示すウィ
ンドウのアドレス情報を格納する。51は第15図(C
)に示すウィンドウ1のX座標でのスタートアドレスを
指定するX 13レジスタ、52はウィンドウ1のX座
標でのエンドアトしスを示すXI!レジスタ、53はウ
ィンドウ1のX座標のスタートアドレスを示すY+sレ
ジスタ、54はウィンドウ1のX座標のエンドアドレス
を示すYIEレジスタである。同様に、55〜58は第
15図(C)に示すウィンドウ2のアドレスを指定する
レジスタ(X 2+11 X 2!:I Y 21+1
 Y zi:レジスタ)であり、59〜62は第15図
(C)に示す背景色ウィンドウのアドレスを指定するレ
ジスタ(X、 Ill、 X as+ Y BS+ Y
 BEレジスタ)である。
In the figure, 51 to 62 are a group of registers forming the mode control register 23, which store address information of the window shown in FIG. 15(C). 51 is shown in Figure 15 (C
), the X13 register specifies the start address in the X coordinate of window 1, and 52 indicates the end address in the X coordinate of window 1. Register 53 is a Y+s register indicating the start address of the X coordinate of window 1, and 54 is a YIE register indicating the end address of window 1's X coordinate. Similarly, 55 to 58 are registers (X 2+11 X 2!: I Y 21+1
59 to 62 are registers (X, Ill, X as+ Y BS+ Y
BE register).

また、63.64は背景色レジスタ22を構成するレジ
スタである。63は用紙全体の背景色を規定する背景色
lデータを格納する背景色ルジスタ、64は背景色ウィ
ンドウ内の背景色を規定する背景色2データを格納する
背景色2レジスタである。
Further, 63 and 64 are registers forming the background color register 22. 63 is a background color register that stores background color l data that defines the background color of the entire sheet; 64 is a background color 2 register that stores background color 2 data that defines the background color within the background color window.

65〜89はモード制御回路24の構成要素である。65 to 89 are components of the mode control circuit 24.

65はX方向のアドレスをカウントするXアドレスカウ
ンタ、66はY方向のアドレスをカウントするYアドレ
スカウンタ、67〜78はレジスタ群51〜62の出力
と、Xアドレスカウンタ65又はYアドレスカウンタ6
6の出力とを比較するコンパレータ、79〜84はJ−
にフリップフロップ(以下JK−FF)、85〜87は
AND回路(以下AND)、88はOR回路(以下OR
)、89は背景色ルジスタ63と背景色2レジスタ64
の出力を選択するセレクタである。
65 is an X address counter that counts addresses in the X direction, 66 is a Y address counter that counts addresses in the Y direction, and 67 to 78 are the outputs of the register groups 51 to 62 and the X address counter 65 or Y address counter 6.
Comparators 79 to 84 compare with the output of J-
is a flip-flop (hereinafter referred to as JK-FF), 85 to 87 are AND circuits (hereinafter referred to as AND), and 88 is an OR circuit (hereinafter referred to as OR circuit).
), 89 are the background color register 63 and the background color 2 register 64
This is a selector that selects the output of .

〈動作の説明〉 以上の構成からなる本実施例の動作を第5〜第15図を
用いて説明する。
<Description of Operation> The operation of this embodiment having the above configuration will be explained using FIGS. 5 to 15.

第5図(A)は第1図の2値IMEM15内での2値イ
メージデータの格納形態を示し、同図(B)はカラーI
MEM16内でのカラーイメージデータの格納形態を示
している。
FIG. 5(A) shows the storage format of binary image data in the binary IMEM 15 of FIG. 1, and FIG.
It shows the storage format of color image data within the MEM 16.

第5図(A)に於て、91は出力用紙サイズに合せて展
開された2値イメージデータであり、2値IMEM15
内の2値開始アドレスより連続して格納されている。こ
のため、主走査方向の1ラインのデータ要分のアドレス
を加算すると、次のラインの同一桁データとなる。この
1ラインのデータ要分のアドレスを以下、2値オフセツ
トと呼ぶ。
In FIG. 5(A), 91 is binary image data developed according to the output paper size, and binary IMEM15
They are stored consecutively from the binary start address within. Therefore, adding the addresses of the data portions of one line in the main scanning direction results in the same digit data of the next line. The address of this one line of data is hereinafter referred to as a binary offset.

また、第5図(B)において、92は出力用紙サイズに
合せて展開されたカラーイメージデータであり、93は
輪郭指定回路18用の参照画素を周囲1画素分加えた参
照画素人カラーイメージデータである。尚、この参照画
素には通常白色データを入れておく。参照画素人カラー
イメージデータ93はカラーIMEM16内の参照画素
開始アドレスより連続し、て格納されている。このため
主走査方向の1ラインのデータ要分のアドレスを加算す
ると、次のラインの同一桁データとなる。以下、このア
ドレスをカラーオフセットと呼ぶ。カラーイメージデー
タ92は参照画素人カラーイメージデータ93より周囲
1画素分を除いた部分であるため、先頭アドレスは図示
のカラー開始アドレスとなる。2@イメージデータ91
は2値開始アドレスから、カラーイメージデータはカラ
ー開始アドレスから同期をfjつT:読み出すことによ
り、前記2種のイメージデータを対応付けて読み出すこ
とができろう 第6図(A)(B)は第1図の2値I MEM 15内
の2値イメージデータとカラーIMEM16内のカラー
イメージデータとの1iJj s、: 、)対応関係ヲ
示す図である。
Further, in FIG. 5(B), 92 is color image data developed to match the output paper size, and 93 is reference pixel color image data obtained by adding one surrounding pixel to the reference pixel for the contour designation circuit 18. It is. Note that this reference pixel normally contains white data. The reference pixel color image data 93 is stored consecutively from the reference pixel start address in the color IMEM 16. For this reason, adding the addresses of data essential for one line in the main scanning direction results in the same digit data of the next line. Hereinafter, this address will be referred to as a color offset. Since the color image data 92 is a portion of the reference pixel color image data 93 with one surrounding pixel removed, the top address is the color start address shown in the figure. 2@Image data 91
By reading the synchronization from the binary start address and the color image data from the color start address, the two types of image data can be read out in association with each other. 2 is a diagram showing the correspondence relationship between the binary image data in the binary IMEM 15 and the color image data in the color IMEM 16 in FIG. 1. FIG.

第6図(ACにおいて、94は2値イメージデータ(解
像度400dpi)の1画素を示し、95はこの画素が
集合した4X4画素マトリクスを示す。
In FIG. 6 (AC), 94 indicates one pixel of binary image data (resolution 400 dpi), and 95 indicates a 4×4 pixel matrix in which this pixel is assembled.

第6図(B)の96はカラーイメージデータ(解像度1
00dpi)の1画素を示し、第6図(A)の4×4画
素ブロック95と対応している。
96 in FIG. 6(B) is color image data (resolution 1
00 dpi), and corresponds to the 4×4 pixel block 95 in FIG. 6(A).

次に第7図〜第9図を用いて読み出し制御回路17が2
値IMEM15内の2値イメージデータとカラーI M
 E M l 6内のカラー−イメージデータと対応付
けて読出す動作を説明する。
Next, using FIGS. 7 to 9, the read control circuit 17
Binary image data and color IMEM in value IMEM15
The operation of reading out the color image data in EMI6 in association with it will be explained.

尚、第7図は読み出し制御回路17の動作の内、輪郭指
定回路18用に読み出す動作を説明するためのフリーチ
ャートである。
Incidentally, FIG. 7 is a free chart for explaining the operation of reading for the contour designation circuit 18 among the operations of the readout control circuit 17.

同図に於てステップ81〜ステツプS13はカラーイメ
ージデータを読み出す処理手順を示し、ステップS14
〜ステツプS25は2値イメージデータを読み出す処理
手順を示す。2つの処理手順はステップS6とステップ
S15.ステップS19とステップS7により同期がと
られ、2値イメージデータとカラーイメージデー・夕と
が対応付けて読み出されるようになっている、 以下詳細にその処理手順を説明する。
In the figure, steps 81 to S13 show the processing procedure for reading out color image data, and step S14
~Step S25 shows a processing procedure for reading binary image data. The two processing steps are step S6 and step S15. Synchronization is achieved in steps S19 and S7, and the binary image data and color image data are read out in association with each other.The processing procedure will be described in detail below.

輪郭指定回路18は後述するように周囲1画素が参照画
素として必要なため、第5i”QJ(B)に示した参照
画素開始アドレスより読み出す必要がある。このため1
.ステップS1にて参照画素開始アドレスを設定して読
み出し準備を行なう。次に5ステツプS2のサブルーチ
ンにて主走査方向に2画素、副走査方向に3画素の2×
3画素を読み出し、カラーイメージデータの1行分読み
出しの準備を終了する。ステップ83〜ステツプS5は
主走査方向に1画素、Mil走査方向に3画素読み出す
処理手順である。ステップS3にて1画素分の読み出し
、ステップS4にで3行分終了したか判断する。“No
“°の場合、次の行の同一列の画素を読み出すためステ
ップS5に進み、第5図(B)に示すカラーオフセット
を加算した後ステップS3に戻る。こうしで、ステップ
S4にて°“YESoo、つまりカラ〜 イメージデー
タの1×3画素分の読み出しが終了すると、処理はステ
ップS6に進む。
As described later, the contour specifying circuit 18 needs one surrounding pixel as a reference pixel, so it is necessary to read from the reference pixel start address shown in the 5i''QJ (B).For this reason, 1
.. In step S1, a reference pixel start address is set to prepare for reading. Next, in the 5-step S2 subroutine, 2× pixels of 2 pixels in the main scanning direction and 3 pixels in the sub-scanning direction are
Three pixels are read out, and preparation for reading out one line of color image data is completed. Steps 83 to S5 are processing procedures for reading out one pixel in the main scanning direction and three pixels in the Mil scanning direction. In step S3, one pixel is read out, and in step S4 it is determined whether three lines have been read out. “No
In the case of "°", the process proceeds to step S5 to read out the pixels in the same column of the next row, and after adding the color offset shown in FIG. 5(B), returns to step S3. YESoo, that is, color~ When the reading of the image data for 1×3 pixels is completed, the process proceeds to step S6.

以上で、ステップS2の処理と合せて、カラーイメージ
データの3×3画素ブロックが読み出されて輪郭指定回
路18が動作可能となる。そこで、ステップS6にて2
値イメージデータ読み出し手順で、待ち状態になってい
るステップS15に起動をかけ4×4画素の読み出しを
開始させる。ステップS7では起動待ちになっており、
2値イメージデータが4×4画素分読み出され、ステッ
プS19にてステップS7に起動がかけられるとステッ
プS8へ進む。
As described above, in addition to the process in step S2, a 3×3 pixel block of color image data is read out, and the contour designation circuit 18 becomes operational. Therefore, in step S6, 2
In the value image data reading procedure, step S15, which is in a waiting state, is activated to start reading out 4×4 pixels. In step S7, it is waiting for startup.
When the binary image data for 4×4 pixels is read out and step S7 is activated in step S19, the process advances to step S8.

ステップS8で行の最終画素がどうか判断し、”NO”
であれば、次の列の3行分のIX3画素を読み出すため
(注目画素を1つ右に移動するため)、ステップS9に
てアドレスを1つインクリメントして次の列位置にアド
レスを更新し、そしてそのアドレスからカラーオフセッ
トを2行分減算する。これによって、次回の画素読み込
み開始アドレスを3行の一番上に更新することが可能に
なる。また、ステップS8にて“YES”であれば1行
分の読み出し終了でありステップSIOへ進む。
In step S8, it is determined whether it is the last pixel in the row, and the answer is "NO".
If so, in order to read out IX3 pixels for three rows in the next column (to move the pixel of interest one place to the right), the address is incremented by one in step S9 and the address is updated to the next column position. , and subtracts the color offset by two lines from that address. This makes it possible to update the next pixel reading start address to the top of the three lines. If "YES" in step S8, reading of one line is completed and the process advances to step SIO.

第6図(A)、(B)で説明したように2値イメージデ
ータの4×4画素がカラーイメージデータの1画素に対
応している。このため、カラーイメージデータは2値イ
メージデータの4行分参照されるため4回使用されるが
、輪郭指定回路18内にはカラーイメージデータを行単
位で一時的に記憶するラインバッファを有していない。
As explained in FIGS. 6(A) and 6(B), 4×4 pixels of binary image data correspond to one pixel of color image data. For this reason, the color image data is referenced for four lines of the binary image data and is used four times, but the outline designation circuit 18 has a line buffer that temporarily stores the color image data line by line. Not yet.

従って、読み出し制御回路17はカラーイメージデータ
を3行分読み出す処理を4回繰り返す必要がある。そこ
で、ステップS10にて4回繰返し読んだかどうか判断
し、” N O”であれば繰返し読み出すためにステッ
プSllにてアドレスを1つインクリメントすることに
よりアドレス位置を回り込ませでて次の行の先頭アドレ
スにし、カラーオフセットを3行分減算することにより
前回読み出しの先頭アドレスに戻し、ステップS2に戻
る。
Therefore, the readout control circuit 17 needs to repeat the process of reading three lines of color image data four times. Therefore, it is determined in step S10 whether or not it has been read repeatedly four times, and if "NO", the address is incremented by one in step Sll to wrap around the address position and move to the beginning of the next line. By subtracting the color offset by three lines, the address is returned to the top address of the previous readout, and the process returns to step S2.

さて、ステップS10が’ Y E S ”であれば4
回分読み込んだことになるので、処理はステップS12
へ進み、今度は最終行であるか判断する。
Now, if step S10 is 'YES', then 4
Since the data has been read in batches, the process is performed in step S12.
Proceed to , and this time judge whether it is the last line.

NO” すなわち、最終行でないと判断した場合には、
ステップS13へ進み、ステップS13にてアドレスを
インクリメントすることにより、アドレスを回り込ませ
て行の先頭アドレスにし、カラーオフセットを2行分減
算することにより、1行シフトした行の先頭アドレスに
した後、ステップS2に戻る。また、ステップS12に
て“YES”であれば終了となる。
NO” In other words, if it is determined that it is not the last line,
Proceeding to step S13, by incrementing the address in step S13, the address is passed around to become the start address of the row, and by subtracting the color offset by two lines, it becomes the start address of the row shifted by one row, and then Return to step S2. Further, if "YES" in step S12, the process ends.

以上でカラーイメージデータを読み出す手順を説明した
が、次に2値イメージデータを読み出す手順を説明する
The procedure for reading out color image data has been described above, and next the procedure for reading out binary image data will be explained.

ステップS14にて2値開始アドレスを設定し、読み出
し準備を行ない、ステップS15にてカラーイメージデ
ータ読み出し側からの起動待ちとなる。起動がかかると
ステップS16へ進み、ステップ316〜ステツプ31
8の処理手順で主走査方向に4画素、副走査方向に4画
素の4×4画素マトリクスの読み出しを行なう。読み出
しが終了するとステップS19にてカラーイメージデー
タの読み出し側へ起動をかけ、ステップS20へ進む。
In step S14, a binary start address is set to prepare for reading, and in step S15, the process waits for activation from the color image data reading side. Once activated, the process advances to step S16, and steps 316 to 31
8, a 4×4 pixel matrix of 4 pixels in the main scanning direction and 4 pixels in the sub-scanning direction is read out. When the reading is completed, the color image data reading side is activated in step S19, and the process proceeds to step S20.

ステップS20〜ステツプS25までの処理手順は、カ
ラーイメージデータ読み出しのステップ88〜ステツプ
S13に対応し、2値イメージデータ側は4行分を単位
しているため2値オフセツトの減算が1行分多い他は同
様の処理を行なう。ステップS20.ステップS21に
て4行単位での主走査方向へ、の読み出し処理を行ない
、ステップS22.ステップS23にて上記処理を4回
分繰り返し、ステップS24.ステップS25にて上記
処理を最終行まで行ない、処理手順の終了となる。
The processing procedure from step S20 to step S25 corresponds to step 88 to step S13 for reading color image data, and since the binary image data side is in units of four lines, the binary offset is subtracted by one line more. The rest performs the same processing. Step S20. In step S21, read processing is performed in the main scanning direction in units of four lines, and in step S22. The above process is repeated four times in step S23, and step S24. In step S25, the above process is performed up to the last line, and the process procedure ends.

第8図は第7図のステップS2の2X3画素リードする
サブルーチンの処理手順を示すフローチャートである。
FIG. 8 is a flowchart showing the processing procedure of the subroutine for reading 2×3 pixels in step S2 of FIG.

先ず、ステップS31にて1画素読み出しを行ない、ス
テップS32にて3行分終了か否か判断し、“NO”で
あればステップS33にてカラーオフセットを加算する
ことにより次の行の同一列のアドレスにした後、ステッ
プS31に戻る。ステップS32にて”YES”であれ
ば、ステップS34に進み、2列目の読み出しであるか
判断し、” N O”であればステップS35に進む。
First, in step S31, one pixel is read out, and in step S32, it is determined whether three rows have been completed. If "NO", a color offset is added in step S33 to read out the same column in the next row. After setting the address, the process returns to step S31. If "YES" in step S32, the process advances to step S34, where it is determined whether the second column is to be read, and if "NO", the process advances to step S35.

次の列の先頭行から読み出すためステップS35にてア
ドレスをインクリメントし、カラーオフセットを2行分
減算する。そして、ステップS34にて“YES”であ
れば、本サブルーチンの処理は終了となり第7図の処理
に復帰する。
In order to read from the first row of the next column, the address is incremented in step S35 and the color offset is subtracted by two rows. If "YES" in step S34, the process of this subroutine ends and returns to the process of FIG. 7.

第9図は読み出し制御回路17の動作の内、色指定回路
19用に読み出す処理手順を示すフローチャートである
。同図に於て、ステップ841〜ステツプS50はカラ
ーイメージデータな読み出す処理手順を示し、ステップ
S51〜ステツプS58は2値イメージデータを読み出
す処理手順を示す。第7図に示す輪郭指定回路18用読
み出し処理手順と同様に、本フローチャートの二つの処
理手順はステップS43とステップs52.ステップS
54とステップS44により同期がとられる。色指定回
路19はカラーIMEM16内のカラーイメージデータ
を、対応する2値イメージデータの4×4画素マトリク
スに対する色指定情報として使用するためにそのカラー
イメージデータを1行分のデータを4回繰返して読み出
される。また、参照画素は必要ないため、第5図(B)
に示したカラー開始アドレスより読み出しを開始する。
FIG. 9 is a flowchart showing the processing procedure for reading out data for the color designation circuit 19 among the operations of the readout control circuit 17. In the figure, steps 841 to S50 show the processing procedure for reading out color image data, and steps S51 to S58 show the processing procedure for reading out binary image data. Similar to the readout processing procedure for the contour designation circuit 18 shown in FIG. 7, the two processing procedures in this flowchart are step S43 and step s52. Step S
54 and step S44. The color designation circuit 19 repeats one row of color image data four times to use the color image data in the color IMEM 16 as color designation information for a 4×4 pixel matrix of corresponding binary image data. Read out. Also, since a reference pixel is not necessary, as shown in FIG. 5(B)
Reading starts from the color start address shown in .

このため、ステップS41にてカラー開始アドレスを設
定して読み出し準備を行なう。次にステップS42にて
カラーイメージデータを1画素読み出した後、ステップ
S43にて2値イメージデータ側の読み出しに起動をか
ける。
Therefore, in step S41, a color start address is set to prepare for reading. Next, in step S42, one pixel of color image data is read out, and then in step S43, reading of the binary image data side is activated.

次にステップS44において、対応する2値イメージデ
ータが読み出されるのを待つ。ステップS54にて起動
がかけられるとステップS45へ進み、注目画素が行の
最終画素か否か判断する。
Next, in step S44, it waits for the corresponding binary image data to be read out. When activated in step S54, the process proceeds to step S45, where it is determined whether the pixel of interest is the last pixel in the row.

“NO”であれば、主走査方向の次の1画素を読み出す
ためにステップS46にてアドレスを1つインクリメン
トしステップS42に戻る。また、ステップS45の判
断が’ Y E S ”であれば、ステップ348に進
み、4回繰返したか否か判断する。この判断で°゛NO
°゛の場合には、ステップS48にてアドレスインクリ
メントすることによりアドレスを回り込ませ、カラーオ
フセットを減算することにより同一行の先頭アドレスに
戻した後ステップS42に戻る。
If "NO", the address is incremented by one in step S46 to read out the next pixel in the main scanning direction, and the process returns to step S42. Further, if the determination in step S45 is 'YES', the process proceeds to step 348, where it is determined whether or not it has been repeated four times.
In the case of .degree., the address is incremented in step S48 to wrap around the address, and the color offset is subtracted to return the address to the start address of the same row, after which the process returns to step S42.

また、ステップS47の判断が’YES”であれば処理
はステップS49に進んで、注目画素が最終行か否か判
断する。°NO”であればステップS50にてアドレス
を3回インクリメントすることによりアドレスを参照画
素も含めて回り込ませ次の行の先頭アドレスにしてステ
ップS42に戻る。ステップS49にて“YES”であ
れば、処理手順は終了する。
Further, if the determination in step S47 is 'YES', the process proceeds to step S49, and it is determined whether or not the pixel of interest is in the last row.If 'NO', the address is incremented three times in step S50, and the address is is passed around including the reference pixel and set as the start address of the next row, and the process returns to step S42. If "YES" in step S49, the processing procedure ends.

次に2値イメージデータの読み出し手順を説明する。Next, a procedure for reading binary image data will be explained.

ステップS51にて2値開始アドレスを設定し、読み出
し準備をした後、ステップS52にて起動待ちとなり、
ステップS43より起動がかかるとステップS53へ進
む。ステップS53においては2値イメージデータな4
画素読み出した後、ステップS54にてカラーイメージ
データの読み出しに起動をかける。そしてステップS5
5に進み、行の最終画素か否かを判断する。ここで、“
NO″であればステップS56にてアドレスを1つイン
クリメントし、た後ステップS52に戻る。また、ステ
ップS55にて’ Y E S ”であれば、ステップ
S57にて最終行か否か判断し、“No”であればステ
ップS58にてアドレスを]つインクリメ〉トシ、又テ
ップS52に戻る。
After setting the binary start address and preparing for reading in step S51, the process waits for startup in step S52.
When starting is started from step S43, the process advances to step S53. In step S53, binary image data 4
After reading out the pixels, reading out the color image data is activated in step S54. and step S5
Proceed to step 5 to determine whether it is the last pixel in the row. here,"
If "NO", the address is incremented by one in step S56, and then the process returns to step S52.If "YES" in step S55, it is determined whether or not it is the last row in step S57, and " If "No", the address is incremented in step S58, and the process returns to step S52.

また、ステップS 5 ’/にて“YES”であれば、
処理手順は終了する。
Moreover, if "YES" in step S5'/,
The processing procedure ends.

次に、第10図−第12図を用いて第2図に示す輪郭指
定回路18の動作を詳細に説明する。
Next, the operation of the contour specifying circuit 18 shown in FIG. 2 will be explained in detail using FIGS. 10 to 12.

先に説明した処理(第7図のフローチャート)により、
第2図におけるF’ F 32 a〜32pで構成され
る4×4の画素マトリクスには2値イメージデータが格
納されており、この4×4画素マトリクスに対応するカ
ラーイメージデータは24ビットFF36e (3X3
の真ん中)に格納される。
Through the process explained earlier (flowchart in Figure 7),
Binary image data is stored in a 4 x 4 pixel matrix consisting of F' F 32 a to 32 p in FIG. 3X3
(in the middle).

輪郭指定時には、参照画素を必要とするため。This is because reference pixels are required when specifying the outline.

周囲8画素分のカラー1“メージデータが24ピツ)F
F36a 〜36d、35f へ−3,6gに格納され
ており、24ピツトド”F’ 36 eどともに3×3
画素マトリイ゛スを構成する。読み出し制御回路17に
より訣e’t :Iされた2値イメージデータは、5R
31a〜3idに4×4画素マトリクス単位で順次格納
され、FF32a〜32 pで構成される4×4画素マ
トリクスの夕3理が終了すると、5R31a〜31dが
らFF32a”32pへデータが転送される。輪郭指定
テーブルROM 33には4×4画素マトリクスのパタ
ーン庖判断するためのテーブル情和が予め1憶されでい
る。FF32a ”3.2 pからの4×4画素マトリ
クスのパターンを判断し、主走査カウンタ34.副走査
カウンタ35の信号番こより4×4画素マトリクスを1
画素単位で走査し、1画素毎に3×3画素マトリクスの
内どの画素を選択するかを決定し、セレクタ37により
選択された画素情報が24ビットのイメージデータと!
、て出力される。
Color 1 "mage data for surrounding 8 pixels is 24 pixels) F
F36a to 36d, 35f are stored in -3,6g, and both 24 pits are 3x3.
Configure a pixel matrix. The binary image data read out by the readout control circuit 17 is 5R.
31a to 3id are sequentially stored in 4×4 pixel matrix units, and when the processing of the 4×4 pixel matrix composed of FFs 32a to 32p is completed, the data is transferred from 5Rs 31a to 31d to FFs 32a and 32p. The outline specification table ROM 33 stores table information for determining the pattern of the 4×4 pixel matrix in advance.FF32a determines the pattern of the 4×4 pixel matrix from 3.2 Scan counter 34. From the signal number of the sub-scanning counter 35, the 4×4 pixel matrix is set to 1.
It scans pixel by pixel, determines which pixel to select from the 3×3 pixel matrix for each pixel, and the pixel information selected by the selector 37 is converted into 24-bit image data!
, is output.

第10図(A、)へ−(τ′)(土1向郭tf9定処理
の例を示す図であり、4×4画素でトリクスと3×3画
素マトリクスとから輪郭指定処理後の4×4画素マトリ
クスが得ら、t12.−例を示している。
Fig. 10 (A,) - (τ') (This is a diagram showing an example of the contour tf9 constant processing for 4 x 4 pixels, and the 4 x A 4-pixel matrix is obtained, t12.-Example is shown.

同図に於て、“0”、′J”で埋められている4×4の
マトリクン1、以、第2図のFF32a〜32pと対応
しており、a〜iのアルファベットで埋められている3
×3のマトリクスは24ビットF F 36 a□−3
6iと対応している。アルファベットで埋められている
4×4マトリクスは輪郭指定後のイメージデータ出力で
ある。
In the figure, the 4x4 matrix 1 filled with "0" and 'J' corresponds to FFs 32a to 32p in Fig. 2, and is filled with alphabets a to i. 3
×3 matrix is 24 bits FF 36 a□-3
Compatible with 6i. The 4×4 matrix filled with alphabets is the image data output after contour designation.

第10図(A)に示す例では4×4画素マトリクスは全
て中心画素ギータeに置換えられ 第1O図(1゛)に
示1′例では4×4画素マトリクスは、c、’e、gの
画素データに置換えられる、このように、4×4画素マ
トリクスのパターンを判断し、各パターンに最適の置換
え処理を実施している。
In the example shown in FIG. 10(A), the 4×4 pixel matrix is all replaced by the center pixel e, and in the example 1′ shown in FIG. In this way, the pattern of the 4×4 pixel matrix to be replaced with pixel data is determined, and the optimal replacement process is performed for each pattern.

第11図、第12図は実際に輪郭指定処理をした例を示
す図である。
FIGS. 11 and 12 are diagrams showing examples of actual outline designation processing.

第11図(A)は図形「矢印」の例、第11図(B)は
図形「円」の例を示し、第12図(A)及び第12図(
B)は「棒グラフ」の例を示している。各側とも輪郭指
定処理の結果、24ビットのカラーイメージデータが4
00dpiの解像度で得られているのがわかる。
11(A) shows an example of the figure "arrow", FIG. 11(B) shows an example of the figure "circle", and FIGS. 12(A) and 12(
B) shows an example of a "bar graph". As a result of contour specification processing on each side, 4 24-bit color image data
It can be seen that the resolution is 00 dpi.

次に、第3図に示す色指定回路19の動作を説明する。Next, the operation of the color designation circuit 19 shown in FIG. 3 will be explained.

第3図において、セレクタ41にカラーIMEM16か
らのカラーイメージデータとモード制御回路24からの
背景色データが入力され、2値イメージデータがアクテ
ィブ(” 1 ” )の場合にはカラーイメージデータ
が、インアクティブ(”O”)の場合には背景色データ
が出力される。
In FIG. 3, color image data from the color IMEM 16 and background color data from the mode control circuit 24 are input to the selector 41, and when the binary image data is active ("1"), the color image data is input. When active (“O”), background color data is output.

第13図は実際に色指定処理された一例を示す図である
。同図に於て、101は2値イメージデータとして24
X24のマトリクスにパターンが描画された例であり、
102は対応するカラー・−イメージデータで色指定を
している例であり、103は背景色レジスタで指定され
た背景色データの例を示している。そして、104は色
指定処理の結果得られる出力の例を示している。特に第
13図(A)は漢字「字」に色指定をする例、第13図
(B)は図形「円」に色指定をする例である8第13図
(B)の場合は、カラーイメージデータ102に写真を
入れておけば円の内部を写真データで埋めることができ
、写真の外周を400dpiの解像度で円状に指定でき
ることになる。
FIG. 13 is a diagram showing an example of actual color designation processing. In the same figure, 101 is 24 as binary image data.
This is an example where a pattern is drawn on an X24 matrix,
Reference numeral 102 indicates an example in which a color is specified by corresponding color-image data, and reference numeral 103 indicates an example of background color data specified by a background color register. Reference numeral 104 indicates an example of the output obtained as a result of the color designation process. In particular, Figure 13 (A) is an example of specifying a color for a kanji character, and Figure 13 (B) is an example of specifying a color for a figure ``circle.''8 In the case of Figure 13 (B), the color If a photo is stored in the image data 102, the inside of the circle can be filled with photo data, and the outer periphery of the photo can be designated as a circle with a resolution of 400 dpi.

次に第4図に示す背景色レジスタ22.モード制御レジ
スタ23.モード制御回路24の説明をする。
Next, the background color register 22 shown in FIG. Mode control register 23. The mode control circuit 24 will be explained.

第15図(C)はモード及び背景色を定義した一例を示
す図である。前述したように本実施例では、輪郭指定回
路18と色指定回路19を有し6、文字は色指定回路、
写真画像は輪郭指定回路と、その特長を活かした使い方
をする必要がある。このため第15図(C)に示すよう
にウィンドウ1、ウィンドウ2の二つのウィンドウを定
義し、ウィンドウ内は輪郭指定回路18.ウィンドウ外
は色指定回路19を有効とするようにする。更に、背景
色l、背景色2の二つの背景色を定義し、背景色ウィン
ドウを定義することにより、背景色ウィンドウ内は背景
色2.背丹色ウィンドウ以外は背景色1を有効とするよ
うにする。各ウィンドウは用紙上の任意の位置に1画素
を単位とするX、Yアドレスで、ウィンドウのスタート
アドレスとエンドアドレスを定義する。すなわち、ウィ
ンドウ1は(x、、、Y+s)、(X、E、y、E)で
定義し、ウィンドウ2は(x、t、 y、E)で定義し
7、背景色ウィンドウは(X、s、Y、、)、(’X、
FY、lE)で定義する。このように定義するために第
4図に示す各レジスタに所定の値を設定する。
FIG. 15(C) is a diagram showing an example of defining a mode and a background color. As mentioned above, this embodiment has an outline designation circuit 18 and a color designation circuit 19, and a color designation circuit 6 for characters.
Photographic images require a contour specification circuit and how to use it to take advantage of its features. For this purpose, two windows, window 1 and window 2, are defined as shown in FIG. 15(C), and inside the window is an outline specifying circuit 18. The color designation circuit 19 is enabled outside the window. Furthermore, by defining two background colors, background color l and background color 2, and defining a background color window, the background color in the background color window is background color 2. Background color 1 is enabled for all windows other than red-red windows. For each window, the start address and end address of the window are defined using X and Y addresses in units of one pixel at any position on the paper. That is, window 1 is defined by (x,,, Y+s), (X, E, y, E), window 2 is defined by (x, t, y, E)7, and the background color window is (X, s, Y, ), ('X,
FY, lE). To define in this way, predetermined values are set in each register shown in FIG.

つまり、第4図におけるxisレジスタ51.Xレジス
タ52.Y+−レジスタ53.Y、Eレジスタ54には
第15図(C)に示すウィンドウ1を定義するX Yア
ドレスcx、、、y、、)、(x、。
That is, the xis register 51 in FIG. X register 52. Y+- register 53. The Y, E register 54 contains the XY addresses cx, , y, , ), (x,) that define window 1 shown in FIG. 15(C).

Y15)が設定される。Xアドレスカウンタ65゜Yア
ドレスカウンタ66には用紙上の現在印字中のXYアド
レスが順次更新されていく。コンパレータ67はX+s
レジスタ51とXアドレスカウンタ65を比較し、一致
したらJK−FF79のJ端子に“1°′を入力し、J
K−FF79をセットする。コンパレータ68はXI!
レジスタ52とXアドレスカウンタ65を比較し、一致
したらJK−FF79のに端子に“1”を入力し、JK
−FF79をリセットする。コンパレータ69はY18
レジスタ53とYアドレスカウンタ66を比較し、一致
したらJK−FF80のJ端子に“1”を入力し、JK
−FF80をセットする。
Y15) is set. The X and Y addresses currently being printed on the paper are sequentially updated in the X address counter 65 and the Y address counter 66. Comparator 67 is X+s
Compare the register 51 and the X address counter 65, and if they match, input "1°' to the J terminal of JK-FF79, and
Set K-FF79. Comparator 68 is XI!
Compare the register 52 and the X address counter 65, and if they match, input "1" to the terminal of JK-FF79, and
-Reset FF79. Comparator 69 is Y18
Compare the register 53 and Y address counter 66, and if they match, input "1" to the J terminal of JK-FF80, and
-Set FF80.

コンパレータ70はY I!レジスタ53とYアドレス
カウンタ66を比較し、一致したらJK−FF80のに
端子に°°1”を入力し、JK−FF80をリセットす
る。従って、JK−FF79はウィンドウlのX方向の
有効区間“1°゛となり、JK−FF80はウィンドウ
1のY方向の有効区間゛°1°゛となる。従って、JK
−FF79,80の出力をAND85で論理積を取るこ
とによりウィンドウ1の有効区間信号が得られる。同様
にAND86の8カにウィンドウ2の有効区間AND8
7のaカに背景色のウィンドウの有効区間が得られる。
Comparator 70 is Y I! Compare the register 53 and Y address counter 66, and if they match, input "°°1" to the terminal of JK-FF80 and reset JK-FF80. Therefore, JK-FF79 is set to " 1°, and the JK-FF 80 has an effective section of window 1 in the Y direction of 1°. Therefore, J.K.
- By ANDing the outputs of FFs 79 and 80 with AND 85, a valid period signal for window 1 is obtained. Similarly, AND86 and the valid range of window 2 are AND8.
The valid section of the background color window is obtained in step 7a.

AND85.86の出力は0R88で論理和され、ウィ
ンドウ1とウィンドウ2の有効区間をORした信号でモ
ード切替信号として第1図のセレクタ20に入力され、
輪郭指定回路18の出力と色指定回路19の出力を選択
する選択信号として用いられる。背景色ルジスタ63に
は用紙全体背景色を示すデータが格納され、背景色2レ
ジスタ64には背景色ウィンドウ内の背景色データが格
納されている。背景色ルジスタ63.背景色2レジスタ
64の出力はセレクタ89に入力され、AND87の出
力信号である背景色ウィンドウ有効区間信号により選択
され背景色データとして第1図の色指定回路19に入力
される。尚、この背景色ウィンドウ有効区間信号は、X
 as。
The outputs of AND85 and 86 are logically summed by 0R88, and the signal obtained by ORing the valid sections of window 1 and window 2 is inputted to the selector 20 in FIG. 1 as a mode switching signal.
It is used as a selection signal for selecting the output of the contour designation circuit 18 and the output of the color designation circuit 19. The background color register 63 stores data indicating the background color of the entire sheet, and the background color 2 register 64 stores background color data in the background color window. Background color Lujista63. The output of the background color 2 register 64 is input to the selector 89, selected by the background color window valid period signal which is the output signal of the AND87, and input as background color data to the color designation circuit 19 of FIG. Note that this background color window valid section signal is
as.

Y 1111 X IIEI Y BEレジスタに格納
する値によって特定されることは言うまでもない。
It goes without saying that this is specified by the value stored in the Y 1111 X IIII Y BE register.

第14図、第15図を用いたイメージ制御部13の動作
を説明する。第14図は印字出力例であり、見出し部分
を青色文字、本分を黒文字、注意書部分を赤色文字及び
赤地に白抜き文字、更に写真Bの中に写真Aを合成した
写真画像及び写真画像C1更にカラーグラブとからなる
The operation of the image control section 13 will be explained using FIGS. 14 and 15. Figure 14 shows an example of print output, with the heading part in blue text, the main text in black text, the caution part in red text and white text on a red background, and a photo image and a photo image in which photo A is combined into photo B. C1 further consists of a color glove.

写真画像A、Bよりなる写真部はウィンドウ1、カラー
グラフ部はウィンドウ2で定義され輪郭指定モードを使
用している。他の部分は色指定モードを使用しているが
、特に赤地に白抜き文字部は背景色ウィンドウ+背景色
2を使用している。第15図は第14図の印字例を得る
ための設定例を示す図であり、特に第1S図(A)は2
値IMEM15の設定例、第15図(B)はカラーIM
EM16の設定例、第15図(C)は背景色レジスタ2
2.モード制御レジスタ23の設定例を示す図である。
The photo section consisting of photo images A and B is defined in window 1, and the color graph section is defined in window 2, and the outline specification mode is used. The other parts use the color specification mode, but especially the white text on a red background uses the background color window + background color 2. FIG. 15 is a diagram showing an example of settings for obtaining the printing example shown in FIG. 14. In particular, FIG.
Setting example of value IMEM15, Figure 15 (B) is color IM
EM16 setting example, Figure 15 (C) is background color register 2
2. 3 is a diagram showing an example of settings of a mode control register 23. FIG.

第15図(C)に於て、ウィンドウ1.ウィンドウ2、
背景ウィンドウは第14図の印字例に対応した位置に設
定されている。背景色1は用紙全体の背景色であり、こ
の場合は白色が設定されている。背景色2は赤字に白抜
き文字を実現するため赤色が設定されている。第15図
(A)において、ウィンドウl内では写真画像A、写真
画像Bを400dpiの解像度で合成するため写真画像
の輪郭指定をし、ウィンドウ2内では棒グラフの輪郭指
定をしている。他の部分は色指定モードのため印字文字
が展開されているが、第14図の写真画像Cに対応した
第15図(A)の部分は色指定モードでの写真印字を行
なうためその領域を°“1゛で埋めている。第15図(
B)は色指定例であり、ウィンドウ1内では100dp
iの解像度で写真画像Aと写真画像Bの合成画像が入っ
ている。ウィンドウ2内では、グラフ部を色指定の色デ
ータ、それ以外を白色データが入っている。ウィンドウ
外の色指定モード部では、第14図の写真画像Cに対応
する部分に写真画像Cのデータが入っており、その周囲
は白色データが入っている。赤字に白抜き文字部では、
白抜き文字のため白色データ、青色文字部は青色データ
、赤文字部は赤色データ、それ以外の本文部は黒色デー
タが入っている。以上のように設定することにより第1
4図の印字例が得られる。
In FIG. 15(C), window 1. window 2,
The background window is set at a position corresponding to the printing example shown in FIG. Background color 1 is the background color of the entire paper, and in this case, white is set. Background color 2 is set to red in order to realize white characters in red. In FIG. 15(A), in window 1, the outline of a photographic image is specified in order to synthesize photographic image A and photographic image B at a resolution of 400 dpi, and in window 2, the outline of a bar graph is specified. In the other parts, the printed characters are expanded because of the color specification mode, but in the part of Fig. 15 (A) corresponding to the photographic image C of Fig. 14, that area is expanded to perform photo printing in the color specification mode. °“1゛ is filled in. Figure 15 (
B) is an example of color specification, 100dp in window 1
Contains a composite image of photographic image A and photographic image B with a resolution of i. In window 2, the graph part contains color data specifying a color, and the other parts contain white data. In the color designation mode area outside the window, data of the photographic image C is contained in a portion corresponding to the photographic image C in FIG. 14, and white data is contained in the surrounding area. In the red and white text,
Since the text is white, it contains white data, blue text contains blue data, red text contains red data, and other text contains black data. By setting as above, the first
The printing example shown in Figure 4 is obtained.

く他の実施例〉 上述した実施例に於ては、輪郭指定回路18及び色指定
回路19内にラインバッファを持たないため、読み出し
制御回路17が同一データを複数回読み出す制御を行な
っているが、輪郭指定回路18及び色指定回路19内に
ラインバッファを設け、読み出し回数を減らすとともに
読み出し制御回路17の構成を簡略化するようにしても
良い。
Other Embodiments In the embodiment described above, the outline designation circuit 18 and the color designation circuit 19 do not have line buffers, so the readout control circuit 17 controls reading out the same data multiple times. , a line buffer may be provided in the contour designation circuit 18 and the color designation circuit 19 to reduce the number of readouts and to simplify the configuration of the readout control circuit 17.

更にラインバッファを設ける場合には、輪郭指定回路1
8及び色指定回路19でラインバッファを共有し、ライ
ンバッファの有効活用をはかるようにしても良い。
In addition, if a line buffer is provided, the contour designation circuit 1
8 and the color designation circuit 19 may share a line buffer to make effective use of the line buffer.

また、読み出し制御回路17の読み出し処理を輪郭指定
回路18用と色指定回路用で分けているが、色指定回路
19に必要なデータは全て輪郭指定回路18用のデータ
の中に包含されているため、輪郭指定回路18用に読み
出したデータの中から色指定回路19に必要なデータだ
けを抜き出して色指定回路19で使うようにしても良い
Furthermore, although the readout process of the readout control circuit 17 is divided into one for the contour designation circuit 18 and one for the color designation circuit, all the data necessary for the color designation circuit 19 is included in the data for the contour designation circuit 18. Therefore, only the data necessary for the color designation circuit 19 may be extracted from the data read out for the contour designation circuit 18 and used by the color designation circuit 19.

その他、本実施例の趣旨を逸脱しない範囲で種々変形し
て実施することができる。
In addition, various modifications can be made without departing from the spirit of this embodiment.

以上説明したように本実施例によれば、高解像度で1画
素の情報量の少ない画像を格納するメモリと、低解像度
で1画素の情報量の多い画像を格納するメモリをその特
質を活かして効果的に使用することにより、少ない情報
量で高画質の画像出力が得られるようになる。
As explained above, according to this embodiment, a memory that stores an image with a high resolution and a small amount of information per pixel, and a memory that stores an image that has a low resolution and a large amount of information per pixel are utilized by taking advantage of their characteristics. When used effectively, high-quality image output can be obtained with a small amount of information.

また、これにより情報量を記憶する素子を減らしてコス
ト低減が図られると共に、情報量を減少させることによ
って生じる画質の劣化を最小限に抑えることができる。
Furthermore, this reduces the number of elements that store the amount of information, thereby reducing costs, and also minimizes deterioration in image quality caused by reducing the amount of information.

[発明の効果] 以上説明したように本発明によれば、1画素1ビットで
表された高解像度の画像を、1画素につき複数ビットに
対応した画像として再現することが可能になる。
[Effects of the Invention] As described above, according to the present invention, it is possible to reproduce a high-resolution image represented by one bit per pixel as an image corresponding to a plurality of bits per pixel.

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

第1図は実施例の画像処理装置のブロック構成図、 第2図は第1図の輪郭指定回路18の構成を示すブロッ
ク図、 第3図は第1図の色指定回路19の構成を示すブロック
図、 第4図は第1図の背景色レジスタ221文字制御レジス
タ23及びモード制御回路24の構成を示すブロック図
、 第5図(A)、(B)は第1図の2値IMEM15とカ
ラーIMEMlS内でのイメージデータ格納形態を示す
図、 第6図(A)、(B)は2値イメージデータとカラーイ
メージデータの画素の対応関係を示す図、 第7図及び第8図は輪郭指定回路18月に読み圧す動作
を示すフローチャート、 第9図は色指定回路19用に読み出す動作を示すフロー
チャート、 第10図(A)〜第10図(T)は輪郭指定処理の例を
示す図、 第11図(A)、(B)及び第12図(A)(B)は実
際の輪郭指定処理をした例を示す図、第13図(A)、
(B)は色指定回路19により色指定処理された例を示
す図、 第14図は本実施例によって得られる印字出力の例を示
す図、 第15図(A)〜(C)は第14図の印字出力例を得る
ための設定内容を示す図、 第16図及び第17図は従来例のイメージ制御部の構成
を示す図である。 図中、】・・・CPU、2・・・メインメモリ、3・・
・通信1/F、4・・・キーボード、S・・・ポインテ
ィングデバイス、6・・・入力装置1/F、7・・・シ
ステムバス、8・・・CRT、9・・・VRAM、10
・・・FD、11・・・HD、12・・・DISK  
I/F% 13・・・イメージ処理部、14・・・出力
装置、15・・・2値IMEM、16・・・カラーIM
EM、17川読み出し制御回路、18・・・輪郭指定回
路、19・・・色指定回路、20・・・セレクタ、21
・・・LUT、22・・・背景色レジスタ、23・・・
モード制御レジスタ、24・・・モード制御回路、33
・・・輪郭指定テーブルROMである。 2値オフセツト (A) 第5図 カラーオフセット (B) 第 図 図 (B) (Q) (R) 第10 第10 図 (C) (D) CP) 第 図(A) 第 図(A) 第 図CB) 第 図(B) 第 13図(A) 第14 図 第13 図(B) 第 図(C)
FIG. 1 is a block diagram of the image processing device of the embodiment. FIG. 2 is a block diagram showing the configuration of the contour designation circuit 18 in FIG. 1. FIG. 3 is a block diagram showing the configuration of the color designation circuit 19 in FIG. 1. Block diagram: Figure 4 is a block diagram showing the configuration of the background color register 221, character control register 23, and mode control circuit 24 in Figure 1; Figures 5(A) and (B) are the binary IMEM15 and A diagram showing the storage format of image data in the color IMEMlS. Figures 6 (A) and (B) are diagrams showing the correspondence between pixels of binary image data and color image data. Figures 7 and 8 are outline diagrams. FIG. 9 is a flowchart showing the reading operation for the color specifying circuit 19; FIGS. 10(A) to 10(T) are diagrams showing an example of contour specifying processing. , Figures 11 (A) and (B) and Figures 12 (A) and (B) are diagrams showing examples of actual outline designation processing, Figure 13 (A),
(B) is a diagram showing an example of color designation processing performed by the color designation circuit 19, FIG. 14 is a diagram showing an example of print output obtained by this embodiment, and FIGS. FIG. 16 and FIG. 17 are diagrams showing the configuration of a conventional image control section. In the figure, ]... CPU, 2... Main memory, 3...
・Communication 1/F, 4... Keyboard, S... Pointing device, 6... Input device 1/F, 7... System bus, 8... CRT, 9... VRAM, 10
...FD, 11...HD, 12...DISK
I/F% 13... Image processing unit, 14... Output device, 15... Binary IMEM, 16... Color IM
EM, 17 river readout control circuit, 18... outline designation circuit, 19... color designation circuit, 20... selector, 21
...LUT, 22...Background color register, 23...
Mode control register, 24...mode control circuit, 33
. . . Contour specification table ROM. Binary offset (A) Figure 5 Color offset (B) Figure (B) (Q) (R) Figure 10 Figure 10 (C) (D) CP) Figure (A) Figure (A) Figure Figure CB) Figure (B) Figure 13 (A) Figure 14 Figure 13 (B) Figure (C)

Claims (1)

【特許請求の範囲】 第1の解像度で1画素1ビットに対応した画素データか
らる画像を記憶する第1の記憶手段と、前記第1の解像
度より低い第2の解像度で1画素複数ビットに対応した
画素データからなる画像を記憶する第2の記憶手段と、 前記第1の記憶手段及び前記第2の記憶手段から画像デ
ータを対応付けて読み出す読み出し制御手段と、 画像データの背景を一意に規定する画像データを記憶す
る背景画像データ記憶手段と、 前記第1の記憶手段の記憶された個々の画素データの状
態に応じて、前記第2の記憶手段の対応する画素データ
と前記背景画像データ記憶手段に記憶された背景画像デ
ータとを切り換える切り換え手段とを備えることを特徴
とする画像処理装置。
[Scope of Claims] A first storage means for storing an image made up of pixel data corresponding to one bit per pixel at a first resolution; a second storage means for storing an image made up of corresponding pixel data; a readout control means for reading out image data in association with each other from the first storage means and the second storage means; background image data storage means for storing prescribed image data; and corresponding pixel data in the second storage means and the background image data according to the state of each pixel data stored in the first storage means. An image processing apparatus comprising: switching means for switching between background image data stored in a storage means.
JP10122090A 1990-04-17 1990-04-17 Image processor Pending JPH04574A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP10122090A JPH04574A (en) 1990-04-17 1990-04-17 Image processor
US08/380,940 US5781666A (en) 1990-04-17 1995-01-31 Image processing method and apparatus suitable for both high-resolution and low-resolution image data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10122090A JPH04574A (en) 1990-04-17 1990-04-17 Image processor

Publications (1)

Publication Number Publication Date
JPH04574A true JPH04574A (en) 1992-01-06

Family

ID=14294819

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10122090A Pending JPH04574A (en) 1990-04-17 1990-04-17 Image processor

Country Status (1)

Country Link
JP (1) JPH04574A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0667717A2 (en) * 1994-02-14 1995-08-16 Kabushiki Kaisha Toshiba Method and apparatus for reproducing picture data

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0667717A2 (en) * 1994-02-14 1995-08-16 Kabushiki Kaisha Toshiba Method and apparatus for reproducing picture data

Similar Documents

Publication Publication Date Title
US5781666A (en) Image processing method and apparatus suitable for both high-resolution and low-resolution image data
EP0369702B1 (en) Image processing apparatus and method
JPH0695273B2 (en) Display control device
KR100664451B1 (en) Image processing apparatus and image processing method
JP2772504B2 (en) Mesh image generator with variable mesh angle
JP2578170B2 (en) Image display device
JPS63212984A (en) Video signal processing system
JPH04284246A (en) Coloring treatment method of picrure region
JPH04574A (en) Image processor
JP2907487B2 (en) Image processing method and apparatus
JPH0421196B2 (en)
US6700587B1 (en) Picture display apparatus
JPH04573A (en) Image processor
JPH04572A (en) Image processor
EP0497599A2 (en) Image processing apparatus
JPH09200550A (en) Image processing system
EP0464677B1 (en) Method of setting a printing condition of a video hardcopy
JP3475489B2 (en) Image printing device
US5123083A (en) Video hard copy with setting printing condition
JPH0414373A (en) Picture processing unit
JP3477658B2 (en) Image processing device
JPH10126612A (en) Pixel high speed interpolating system for enlarged picture and image processor
JPH0720259B2 (en) Video printing equipment
JPS61103360A (en) Interface device for picture output
JPH07322067A (en) Picture processor