JPH07131628A - Image processor - Google Patents

Image processor

Info

Publication number
JPH07131628A
JPH07131628A JP27166493A JP27166493A JPH07131628A JP H07131628 A JPH07131628 A JP H07131628A JP 27166493 A JP27166493 A JP 27166493A JP 27166493 A JP27166493 A JP 27166493A JP H07131628 A JPH07131628 A JP H07131628A
Authority
JP
Japan
Prior art keywords
image
closed loop
area
pixel
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP27166493A
Other languages
Japanese (ja)
Inventor
Hiroyuki Deyama
弘幸 出山
Toshihisa Motosugi
敏久 本杉
Hironobu Nakada
洋信 中田
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.)
Minolta Co Ltd
Original Assignee
Minolta Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Minolta Co Ltd filed Critical Minolta Co Ltd
Priority to JP27166493A priority Critical patent/JPH07131628A/en
Publication of JPH07131628A publication Critical patent/JPH07131628A/en
Pending legal-status Critical Current

Links

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Processing Or Creating Images (AREA)

Abstract

PURPOSE:To provide an image processor for automatically performing coloring or the like inside the closed loop area of an already prepared image such as a graph or a table. CONSTITUTION:This device is provided with an image memory 144 for storing image data for each picture element, detecting means for detecting the closed loop area of the image stored in the image memory, setting means 167 for setting attribute data to the picture element positioned inside the detected closed loop area, and operating means 16 for the same.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は画像処理装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing device.

【0002】[0002]

【従来の技術】グラフや表の作成時には、見栄えを良く
するために、画像の閉ループの内部領域にカラーリング
や特定の模様を施すことが通常行われている。パーソナ
ルコンピュータ等の表作成専用のアプリケーションソフ
トを用いて表やグラフを作成する場合は、表やグラフの
基礎データを入力することによって、アプリケーション
ソフトの機能として、自動的にグラフや表の閉ループに
カラーリングあるいは模様を施したものを出力するもの
がある。
2. Description of the Related Art When creating graphs and tables, it is usual to apply coloring or a specific pattern to the inner area of the closed loop of an image in order to improve its appearance. When creating a table or graph using application software dedicated to creating a table such as a personal computer, input basic data of the table or graph to automatically convert the graph or the closed loop of the table into a color as a function of the application software. Some output a ring or a pattern.

【0003】[0003]

【発明が解決しようとする課題】ところで、このように
パーソナルコンピュータを用いて表やグラフを作成する
場合には、容易にカラーリングや模様付けを行えるが、
手作業によって作成されたグラフや表には、以前、手作
業によってカラーリングを行わねばならず繁雑な作業を
必要とする。
By the way, when a table or a graph is created by using a personal computer as described above, coloring and patterning can be easily performed.
The graphs and tables created by hand have to be colored manually before, which requires complicated work.

【0004】そこで本発明は、既に作成されたグラフや
表の画像の閉ループ領域内部にカラーリング等を自動的
に行うことができる画像処理装置を提供することを目的
とする。
Therefore, an object of the present invention is to provide an image processing apparatus capable of automatically performing coloring or the like inside a closed loop area of an image of a graph or a table which has already been created.

【0005】[0005]

【課題を解決するための手段】本願の第1の発明の画像
処理装置においては、画像データを画素毎に格納する画
像メモリと、該画像メモリ内に格納された画像の閉ルー
プ領域を検出する検出手段と、検出された閉ループ領域
内に位置する画素に対して、その属性データを設定する
設定手段とを備えたことを特徴とする。
In the image processing apparatus of the first invention of the present application, an image memory for storing image data for each pixel, and a detection for detecting a closed loop area of the image stored in the image memory Means and setting means for setting the attribute data of the pixel located in the detected closed loop region.

【0006】さらに、本願の第2の発明の画像処理装置
においては、画像データを画素毎に格納する画像メモリ
と、該画像メモリ内に格納された画像の複数の閉ループ
領域を検出する検出手段と、検出された閉ループ領域内
に位置する画素に対して、領域毎に異なる属性データを
設定する設定手段とを備えたことを特徴とする。
Further, in the image processing apparatus of the second invention of the present application, an image memory for storing image data for each pixel, and a detecting means for detecting a plurality of closed loop regions of the image stored in the image memory. And a setting unit that sets different attribute data for each region with respect to the detected pixel located in the closed loop region.

【0007】[0007]

【作用】本願の第1の発明の画像処理装置によれば、作
成された表やグラフの画像をイメージリーダ等で読み取
って画像メモリに格納すれば、画像メモリ内に格納され
た画像の閉ループ領域を検出し、検出された閉ループ領
域内に位置する画素に対して、その属性データを設定す
る。これにより、容易に閉ループ内の領域にカラーリン
グ等の処理を施すことが可能となる。
According to the image processing apparatus of the first invention of the present application, if the image of the created table or graph is read by the image reader or the like and stored in the image memory, the closed loop area of the image stored in the image memory is obtained. Is detected, and the attribute data is set for the pixel located in the detected closed loop region. This makes it possible to easily perform processing such as coloring on the area within the closed loop.

【0008】さらに、本願の第2の発明の画像処理装置
によれば、先の第1の発明に加えて、複数の閉ループ領
域に対して領域ごとに異なる属性データを設定するた
め、各領域に異なるカラーリング処理等を施すことが可
能となる。
Further, according to the image processing apparatus of the second invention of the present application, in addition to the first invention, different attribute data is set for each of a plurality of closed loop areas, so that each area is set. It is possible to perform different coloring processes and the like.

【0009】[0009]

【実施例】図1は本発明に係るデジタルカラー複写機1
の全体構成の概略を示す断面図である。本複写機はイメ
ージリーダ部10とプリンタ部20とから構成される。
イメージリーダ部10は原稿台11に設置される原稿画
像をスキャナ12によって走査露光し、原稿画像をカラ
ーイメージセンサ13で光電変換した後、画像処理部1
4で所定の処理を施して、プリントヘッド制御部に出力
する。プリントヘッド制御部15では、入力された画像
信号をレーザダイオード駆動用のデジタルデータに変換
する。また、原稿台11の手前側には、複写機の各動作
モードを設定する操作パネル16が設けられている(図
2参照)。
1 is a block diagram of a digital color copying machine 1 according to the present invention.
It is a sectional view showing an outline of the whole composition of. The copying machine includes an image reader unit 10 and a printer unit 20.
The image reader unit 10 scans and exposes a document image set on the document table 11 with a scanner 12, and photoelectrically converts the document image with a color image sensor 13, and then the image processing unit 1
In step 4, a predetermined process is performed and the result is output to the print head controller. The print head controller 15 converts the input image signal into digital data for driving a laser diode. Further, an operation panel 16 for setting each operation mode of the copying machine is provided on the front side of the document table 11 (see FIG. 2).

【0010】プリンタ部20は作像部、現像ユニット、
用紙搬送部からなる。作像部は、レーザダイオード21
1と結像光学系を備えたプリントヘッド21から射出さ
れる、画像信号に応じて変調されたビームによって、感
光体ドラム22上に静電潜像を書き込み、静電潜像を現
像ユニット23により現像した後、転写ドラム24上の
用紙に転写する。感光体ドラム22及び転写ドラム24
は駆動モータ25によって同期して駆動される。
The printer unit 20 includes an image forming unit, a developing unit,
It consists of a paper transport unit. The image forming unit is the laser diode 21.
1 and a beam emitted from a print head 21 having an imaging optical system, which is modulated according to an image signal, writes an electrostatic latent image on the photosensitive drum 22, and the electrostatic latent image is developed by the developing unit 23. After the development, the image is transferred onto a sheet on the transfer drum 24. Photoconductor drum 22 and transfer drum 24
Are synchronously driven by the drive motor 25.

【0011】現像ユニット23は、マゼンタトナーでの
現像を行うマゼンタ現像器23M、シアントナーでの現
像を行うシアン現像器23C、イエロートナーでの現像
を行うイエロー現像器23Y、ブラックトナーでの現像
を行うブラック現像器23Kからなり、現像器ユニット
23全体がモータ26によって上下方向に移動し、各現
像器を順次現像位置に位置決めして各色で静電潜像を現
像する。
The developing unit 23 includes a magenta developing unit 23M for developing with magenta toner, a cyan developing unit 23C for developing with cyan toner, a yellow developing unit 23Y for developing with yellow toner, and a developing with black toner. The developing device unit 23 as a whole is moved up and down by the motor 26, and each developing device is sequentially positioned at the developing position to develop the electrostatic latent image in each color.

【0012】用紙搬送部は、内部に複写紙を収容する給
紙カセット27a,27b,27c、各給紙カセットよ
り複写紙を給紙する給紙ローラ28a,28b,28
c、給紙された複写紙を作像部に搬送するための複数の
搬送ローラ及びタイミングローラ29、その表面に複写
紙を保持し転写部へ複写紙を繰り返し搬送して各色のト
ナー像を転写する転写ドラム24、転写が終了した複写
紙を搬送する搬送ベルト30、複写紙上のトナー像を定
着させるための定着装置31、定着の完了した用紙を排
出する排紙トレイ32からなる。尚、プリンタ部は、先
に述べたように電子写真方式を用いて多色画像を形成す
るもので、その構成は既に良く知られているとため、こ
こではその詳細な説明については省略する。
The paper transport unit has paper feed cassettes 27a, 27b and 27c for accommodating copy paper therein, and paper feed rollers 28a, 28b and 28 for feeding copy paper from the paper feed cassettes.
c, a plurality of conveying rollers and a timing roller 29 for conveying the fed copy paper to the image forming unit, holding the copy paper on the surface thereof and repeatedly conveying the copy paper to the transfer unit to transfer toner images of respective colors The transfer drum 24, the transport belt 30 for transporting the copied copy paper, the fixing device 31 for fixing the toner image on the copy paper, and the discharge tray 32 for discharging the fixed paper. The printer unit forms a multicolor image by using the electrophotographic method as described above, and its configuration is already well known. Therefore, the detailed description thereof will be omitted here.

【0013】図2に操作パネル16の外観を示す。16
1は複写枚数を設定するための置数キー群。162は設
定された各種動作モードや使用者へのメッセージを表示
するための表示部、163は表示されたメッセージに対
応して、動作モードを設定するための入力用のキー群、
164は入力した状態を確定するためのエンターキー、
165は複写開始を指示するプリントボタンであり、1
66はリセットキーである。
FIG. 2 shows the appearance of the operation panel 16. 16
1 is a group of numeral keys for setting the number of copies. Reference numeral 162 denotes a display unit for displaying various set operation modes and messages to the user, and 163, a key group for input for setting the operation mode corresponding to the displayed messages.
164 is an enter key for confirming the input state,
165 is a print button for instructing the start of copying.
66 is a reset key.

【0014】図3は複写機の制御回路のブロック図であ
る。カラーラインセンサ13で読み取られた原稿のRG
B各画像信号は、画像処理部14の前処理部141でA
/D変換とシェーディング補正された後、γ補正部14
2で階調補正され、メモリ制御部143を介して、画像
メモリ144に一旦格納される。そこで、後述する画像
処理が施された後、作像部の各色の作像タイミングに合
わせて、メモリ制御部143を介して、RGBの画像デ
ータが呼び出される。RGB画像データは色変換部14
5でRGBからYMCKへ色体系が変換された後に、D
/A変換部146でアナログビデオ信号に変換される。
プリントヘッド制御部15では、ビデオ信号に応じてレ
ーザダイオード211の発光制御を行う。操作パネル1
6によって設定された各種複写モードは制御用メモリ1
49に格納され、マイクロコンピュータ(CPU)16
7は、制御用メモリ149の制御データを読み取って、
上述したラインセンサ13、画像処理部14、プリント
ヘッド制御部15のシーケンス制御を行う。また、複写
実行時の他の入出力制御や図示しない他のCPUとの通
信制御は入出力制御用のIC148を介して行う。
FIG. 3 is a block diagram of the control circuit of the copying machine. RG of the original read by the color line sensor 13
Each of the B image signals is processed by the preprocessing unit 141 of the image processing unit 14.
After the D / D conversion and the shading correction, the γ correction unit 14
The gradation is corrected in 2 and is temporarily stored in the image memory 144 via the memory control unit 143. Therefore, after the image processing to be described later is performed, RGB image data is called via the memory control unit 143 at the image forming timing of each color of the image forming unit. The RGB image data is stored in the color conversion unit 14
After the color system is converted from RGB to YMCK in step 5, D
The / A converter 146 converts the analog video signal.
The print head controller 15 controls the light emission of the laser diode 211 according to the video signal. Operation panel 1
The various copy modes set by 6 are controlled by the control memory 1
Stored in 49, a microcomputer (CPU) 16
7 reads the control data of the control memory 149,
The sequence control of the line sensor 13, the image processing unit 14, and the print head control unit 15 described above is performed. Further, other input / output control at the time of executing copying and communication control with another CPU not shown are performed via the IC 148 for input / output control.

【0015】図4に示すように、画像メモリ144は、
原稿に対応してx座標(ラインセンサ13の配列方向で
ある主走査方向に対応)、y座標(主走査方向と直行す
る副走査方向に対応)の2次元のアドレスが設定されて
おり、各アドレスには、ラインセンサ13で読み取った
画素毎の画像データが記憶される。画像メモリ144の
各画素の画像データは、図5に示すように、ラインセン
サ13によって読み取られたRGBの各画像信号の値を
示す8ビットのエリア(RGB各8ビット=各色256
階調)と属性情報の8ビットからなる。属性情報は後述
する編集情報が格納されるエリアである。
The image memory 144, as shown in FIG.
Two-dimensional addresses of x-coordinate (corresponding to the main scanning direction which is the arrangement direction of the line sensor 13) and y-coordinate (corresponding to the sub-scanning direction orthogonal to the main scanning direction) are set corresponding to the document. Image data for each pixel read by the line sensor 13 is stored in the address. The image data of each pixel of the image memory 144 is, as shown in FIG. 5, an 8-bit area indicating the value of each RGB image signal read by the line sensor 13 (8 bits for each RGB = 256 for each color).
It consists of 8 bits of gradation and attribute information. The attribute information is an area in which edit information described later is stored.

【0016】以上説明した構成のデジタルカラー複写機
において、CPU167が実行するカラーリング処理
は、以下の手順によって行われる。 1:マーカエリア内の閉ループ図形の検出 2:閉ループ図形の隣接関係の検出 3:隣接関係を考慮した、各閉ループ図形に対する色番
号付与 4:付与された色番号のRGBデータへの変換 以下上記処理手順について順に説明する。 (1)マーカエリア内の閉ループ図形の検出 図6、7は、CPU167が実行するプログラムのフロ
ーチャートである。まず、オペレータは、操作パネル1
6のモード設定キー163とエンターキー164の操作
により、カラーリング処理を行う旨の選択を確定すると
ともに、原稿の中でカラーリング処理を行いたい領域を
マーカペン(図示せず)で囲み、原稿を原稿台11にセ
ットし、プリントボタン165を操作する。すると、先
述のように原稿の画像データが画像メモリ144に格納
される。
In the digital color copying machine having the above-described structure, the coloring process executed by the CPU 167 is performed by the following procedure. 1: Detection of closed loop figure in marker area 2: Detection of adjacency relationship of closed loop figure 3: Color number assignment to each closed loop figure considering adjacency relationship 4: Conversion of assigned color number to RGB data The procedure will be described in order. (1) Detection of Closed Loop Graphic in Marker Area FIGS. 6 and 7 are flowcharts of a program executed by the CPU 167. First, the operator operates the operation panel 1
By operating the mode setting key 163 and the enter key 164 of No. 6, the selection to perform the coloring process is confirmed, and the area of the document to be subjected to the coloring process is surrounded by a marker pen (not shown) to The document is set on the document table 11, and the print button 165 is operated. Then, as described above, the image data of the original is stored in the image memory 144.

【0017】続いて、CPU167は、画像メモリ14
4に格納された画像データをもとに、原稿画像中でマー
カーペンが付された画素の検出を行う(ステップS
1)。これは、周知のように、画像メモリ144内の特
定色(マーカーペンに相当する色)を検出することによ
って得られる。そして、マーカが付された画素(x,
y)に対して、属性情報の第1ビットに1を設定し、そ
れ以外の画素に対しては0を設定する。以下、画素
(x,y)の属性情報の第1ビット目の値をq(x,
y)と表す。
Subsequently, the CPU 167 causes the image memory 14
Based on the image data stored in No. 4, the pixel with the marker pen is detected in the original image (step S).
1). This is obtained by detecting a specific color (color corresponding to the marker pen) in the image memory 144, as is well known. Then, the pixel (x,
For y), 1 is set in the first bit of the attribute information, and 0 is set in the other pixels. Hereinafter, the value of the first bit of the attribute information of the pixel (x, y) is set to q (x,
y).

【0018】次に、マーカで囲まれた閉ループ領域(以
下、マーカエリア)の内部に属する画素の検出を行う。
具体的には、まず、ステップS2で、q(x,y)=1
の画素の中から、x、y各座標(画像メモリ144のア
ドレス)の最小と最大のアドレスの値(min.x,m
in.y,max.x,max.y)を各々求める。次
に、ステップS3で、全ての画素に対して、属性情報の
第2ビットを0に設定する。以下、画素(x,y)の属
性情報の第2ビットの値をr(x,y)と表す。ステッ
プS4では、画像メモリ144上で、X座標方向に延び
たラインを示すポインタ(ラインL)を、ステップS2
で求めた最小値min.yの示す位置に設定し、ステッ
プ5では、ラインL上の画素を示す値xを、ステップS
2で求めた最小値min.xに設定する。こうして指定
されたラインL上の画素(x,y)が、q(x,y)=
1の画素に囲まれているかを判別し(ステップS6)、
はさまれている場合は、属性情報の第2ビットr(x,
y)を1に設定する。次に、ステップS8で、xの値を
1つインクリメントして、ラインL上の次の画素を指定
し、同様にステップS6,7の処理を実行する。この処
理を、ステップS9で、xの値がステップS2で求めた
最大値max.xに達するまで繰り返す。これにより、
設定されたラインL上の画素で、図11に示すようにマ
ーカエリア内に位置する全ての画素の属性情報の第2ビ
ットには1が設定される。さらに、ステップS10で、
順次ラインLをインクリメントして、ラインLが最大値
max.yに達するまで繰り返し(ステップS11)、
マーカエリア内に位置する全ての画素の属性情報の第2
ビットに1を設定する。
Next, the pixels belonging to the inside of the closed loop area surrounded by the marker (hereinafter referred to as the marker area) are detected.
Specifically, first, in step S2, q (x, y) = 1
Value of the minimum and maximum addresses (min.x, m) of each of the x and y coordinates (address of the image memory 144) from the pixels of
in. y, max. x, max. y) are obtained respectively. Next, in step S3, the second bit of the attribute information is set to 0 for all pixels. Hereinafter, the value of the second bit of the attribute information of the pixel (x, y) is represented as r (x, y). In step S4, the pointer (line L) indicating the line extending in the X coordinate direction is moved to the step S2 on the image memory 144.
The minimum value min. The value x indicating the pixel on the line L is set in step S
The minimum value min. Set to x. The pixel (x, y) on the line L thus designated is q (x, y) =
It is determined whether or not it is surrounded by one pixel (step S6),
If it is sandwiched, the second bit r (x,
Set y) to 1. Next, in step S8, the value of x is incremented by 1, the next pixel on the line L is designated, and the processes of steps S6 and S7 are similarly executed. This process is performed in step S9 so that the value of x is the maximum value max. Repeat until x is reached. This allows
For the pixels on the set line L, 1 is set to the second bit of the attribute information of all the pixels located in the marker area as shown in FIG. Furthermore, in step S10,
The line L is sequentially incremented so that the line L has the maximum value max. Repeat until y is reached (step S11),
The second attribute information of all pixels located in the marker area
Set the bit to 1.

【0019】このように、マーカエリアを検出すると、
次に、マーカエリア内の原稿画像の閉ループ領域の検出
を行い、領域毎に2、3、...、nの値を付与する処
理を行う。これは図7に示す手順によって制御される。
なお、図9aから図9dは処理されていく画像メモリ1
44の属性エリアの様子を示すものである。
In this way, when the marker area is detected,
Next, a closed loop area of the document image in the marker area is detected, and 2, 3 ,. . . , N are given. This is controlled by the procedure shown in FIG.
9a to 9d show the image memory 1 to be processed.
44 shows a state of 44 attribute areas.

【0020】ステップS12で、マーカエリア内の画
素、即ち、r(x,y)=1の画素の内、白画素の属性
情報の第3ビットから第8ビットが示す値を1に設定
し、それ以外の画素は0に設定する。以下、画素(x,
y)の属性情報の第3ビットから第8ビットで示される
値をs(x,y)と表す。ここで、白画素とは、原稿で
画像が描かれていない画素であり、画像メモリ144の
R,G,B全ての値が所定値(230/256)以上の
画素のことであり、濃度が所定値以下(白っぽい)の画
素と言い換えることもできる。また、ステップ12にお
いては、変数kを、初期値の2に設定する。このときの
画像メモリ144の様子は図9aに示すようになってい
る。図中の斜線部分が、マーカエリアでありr(x,
y)=1に設定されている。マーカエリア内の図形(線
画)は、原稿の画像を示しており、線画上の画素は、s
(x,y)=0に設定され、画像以外の部分の画素は、
s(x,y)=0に設定されている。
In step S12, the value indicated by the third bit to the eighth bit of the attribute information of the white pixel among the pixels in the marker area, that is, the pixel of r (x, y) = 1 is set to 1, The other pixels are set to 0. Hereafter, the pixel (x,
The value indicated by the 3rd to 8th bits of the attribute information of y) is represented as s (x, y). Here, a white pixel is a pixel in which an image is not drawn on a document, and is a pixel in which all values of R, G, and B in the image memory 144 are equal to or more than a predetermined value (230/256), and the density is In other words, it can be rephrased as a pixel having a predetermined value or less (whitish). In step 12, the variable k is set to the initial value of 2. The state of the image memory 144 at this time is as shown in FIG. 9a. The shaded area in the figure is the marker area, r (x,
y) = 1 is set. The figure (line drawing) in the marker area indicates the image of the document, and the pixels on the line drawing are s
(X, y) = 0 is set, and the pixels other than the image are
It is set to s (x, y) = 0.

【0021】次に、ステップS13で、s(x,y)=
1の画素があるかどうかを検出する。なければ、この処
理を終了し、あれば、S13以降の処理を進める。ステ
ップS13では、s(x,y)=1の画素の中で、yが
最小のものを求める。複数個ある場合は、その中で、x
が最小のものを特定し注目画素とする(ステップS1
6)。そして、注目画素について、s(x,y)=K
(最初は2)とする。次に、ステップS17で、注目画
素の周囲にs(x,y)=1の画素があるかどうかを検
出する。ある場合は、ステップS18で注目画素の周囲
であってかつ、s(x,y)=1の画素に対してs
(x,y)=K(最初は2)を付与する。次に、ステッ
プS18でs(x,y)=Kを付与した画素を今度は注
目画素とし、ステップS17〜S19の処理を繰り返
す。ここで、注目画素の周囲の画素とは、図10に示す
ように注目画素の周囲8画素のことであり、図10に付
与した数字の順番に注目画素を探索する。注目画素の周
囲にs(x,y)=1の画素が無くなれば、ステップS
20でカウンタkの値を1つ進め、ステップS13から
S20の処理を繰り返す。変数kの値の増加に従って、
画像メモリ144の様子は図9b、図9c、図9dに示
すよう遷移する。
Next, in step S13, s (x, y) =
Detects whether there is a 1 pixel. If not, this process is terminated, and if there is, the process from S13 onward is advanced. In step S13, among the pixels of s (x, y) = 1, the pixel with the smallest y is obtained. If there is more than one, among them, x
The pixel with the smallest value is specified as the pixel of interest (step S1).
6). Then, for the pixel of interest, s (x, y) = K
(2 at the beginning) Next, in step S17, it is detected whether or not there is a pixel of s (x, y) = 1 around the pixel of interest. If there is, s is set for the pixel around the pixel of interest in step S18 and s (x, y) = 1.
(X, y) = K (initially 2) is given. Next, the pixel to which s (x, y) = K is given in step S18 is set as the target pixel this time, and the processes of steps S17 to S19 are repeated. Here, the pixels around the target pixel are eight pixels around the target pixel as shown in FIG. 10, and the target pixel is searched in the order of the numbers given in FIG. If there are no pixels of s (x, y) = 1 around the pixel of interest, step S
In step 20, the value of the counter k is incremented by 1, and the processes of steps S13 to S20 are repeated. As the value of the variable k increases,
The state of the image memory 144 transits as shown in FIGS. 9b, 9c, and 9d.

【0022】以上の処理で、マーカエリア内の白画素
中、s(x,y)=1の画素がなくなれば、処理を終了
する(ステップ13でno)。この段階で、マーカエリ
ア内の原稿画像の閉ループ領域の画素に対して、領域毎
に番号が付与されることになる(図9e参照)。
By the above processing, if there is no pixel of s (x, y) = 1 among the white pixels in the marker area, the processing is terminated (no in step 13). At this stage, the pixels in the closed loop area of the original image in the marker area are numbered for each area (see FIG. 9e).

【0023】(2)閉ループ図形の隣接関係の検出 次に、こうして取り出したマーカエリア内の原稿画像の
閉ループ領域(領域の番号3以上)の隣接関係を見る。
まず、表1に示す各領域の隣接関係表を制御メモリ内部
149に構成する。−で示したのは表のデータとしては
不要部分である。この表では隣接関係のない場合0をセ
ットし、隣接関係がある場合1をセットするものとす
る。
(2) Detection of Adjacent Relationship of Closed-Loop Graphic Next, the adjacency relationship of the closed-loop area (area number 3 or more) of the document image in the marker area thus extracted is checked.
First, the adjacency relationship table of each area shown in Table 1 is configured in the control memory internal area 149. Items shown by-are unnecessary for the data in the table. In this table, 0 is set when there is no adjacent relationship, and 1 is set when there is an adjacent relationship.

【0024】[0024]

【表1】 [Table 1]

【0025】領域間の隣接関係の有無の検出の方法を領
域3、領域4を例に取って説明する。(図9e)。 ま
ず、領域3に含まれる特定の画素t3と領域4に含まれ
る特定の画素t4とを直線で結んだとき、この直線上に
位置する全画素について、s(x,y)の値をチェック
し、s(x,y)が3以上の数から0に変化する回数
と、s(x,y)が0から3以上の数に変化する回数の
和u(t3,t4)とを見る。ここでは、s(x,y)
=0の画素が閉ループ領域の境界に相当していため、上
記直線が領域3から境界を通りさらに領域4に入る場
合、つまり、u(t3,t4)が2を示す場合、2つの
領域は隣接していると言える。領域3に含まれるすべて
のt3、領域4に含まれるすべてのt4について、u
(t3、t4)の値を求めていき、uの値が2になる画
素t3,t4があれば、領域3、領域4は隣接している
と判断する。全ての画素についてuを求めても、いぜ
ん、uが2でないときにはその領域は隣接していないと
みなす。隣接している領域のペアに対して、上記表1中
に1の値をセットする。全てのペアについて隣接関係を
検出し、隣接関係表を完成させる。図9eの例では表2
のようになる。
A method of detecting the presence / absence of an adjacency between areas will be described by taking areas 3 and 4 as an example. (Fig. 9e). First, when a specific pixel t3 included in the area 3 and a specific pixel t4 included in the area 4 are connected by a straight line, the values of s (x, y) are checked for all the pixels located on this straight line. , S (x, y) changes from a number of 3 or more to 0, and the sum of the number of times s (x, y) changes from 0 to a number of 3 or more u (t3, t4). Here, s (x, y)
Since the pixel of = 0 corresponds to the boundary of the closed loop area, when the straight line passes through the boundary from the area 3 and further enters the area 4, that is, when u (t3, t4) indicates 2, the two areas are adjacent to each other. Can be said to be doing. For all t3 included in the area 3 and all t4 included in the area 4, u
The values of (t3, t4) are calculated, and if there are pixels t3 and t4 in which the value of u becomes 2, it is determined that the regions 3 and 4 are adjacent to each other. Even if u is obtained for all pixels, if u is not 2, the areas are considered not to be adjacent to each other. A value of 1 is set in Table 1 above for pairs of adjacent regions. Detect adjacency relationships for all pairs and complete the adjacency table. Table 2 in the example of FIG. 9e
become that way.

【0026】(3)隣接関係を考慮した、各閉ループ図
形に対する色番号付与。次に完成した隣接関係表に基づ
いて、各領域に色番号C1、C2...を付与する。そ
のために、隣接関係表(表1)の1の部分のみに着目し
て、領域名を昇順にならべる。例えば表1場合、3、
4、5の順で領域名がならべられる。この順番に色番号
C1、C2、C3を各領域に対して付与する。次いで、
色をなるべく減らすために、隣接しない領域に対しては
同じ色番号を割り当てる。表1の場合、隣接しない残り
の領域6、7に対してはいずれも色番号C4を割り当
る。このようにして、領域名色番号対応表を制御メモリ
149内に作成する(表2)。
(3) Assigning a color number to each closed-loop figure in consideration of the adjacency relationship. Next, based on the completed adjacency table, color numbers C1, C2. . . Is given. Therefore, the area names are arranged in ascending order, focusing only on the portion 1 of the adjacency table (Table 1). For example, in Table 1, 3,
Area names are arranged in the order of 4 and 5. Color numbers C1, C2, and C3 are assigned to each area in this order. Then
In order to reduce the colors as much as possible, the same color number is assigned to the non-adjacent areas. In the case of Table 1, the color numbers C4 are assigned to the remaining areas 6 and 7 which are not adjacent to each other. In this way, the area name / color number correspondence table is created in the control memory 149 (Table 2).

【0027】[0027]

【表2】 [Table 2]

【0028】(4)付与された色番号のRGBデータへ
の変換 色番号と実際の色との対応は、使用者があらかじめ、操
作パネル16の入力キー163の操作により6通り(モ
ード1、モード2、モード3...)設定できるように
なっている。各モードにおける色番号と、使用者がキー
163の入力により設定したその色番号に対応するR、
G、B値が表形式で制御メモリ149にストアされてい
る(表3)。なお、複写機本体の電源が切られても、モ
ードが保存されるようにするために、制御メモリ149
は電池でバックアップしておくのが望ましい。
(4) Conversion of the assigned color number into RGB data Correspondence between the color number and the actual color can be set by the user in advance by operating the input key 163 of the operation panel 16 in six ways (mode 1, mode 1). 2, mode 3 ...) can be set. A color number in each mode and R corresponding to the color number set by the user by inputting the key 163,
The G and B values are stored in the control memory 149 in a table format (Table 3). The control memory 149 is provided so that the mode is saved even when the power of the copying machine main body is turned off.
It is desirable to back up the battery.

【0029】[0029]

【表3】 [Table 3]

【0030】使用者は、複写動作に先立って、6つのモ
ード番号のうちの一つを選択しておく。これも入力キー
163の操作により行う。表3にしたがって、色番号と
実際の色との対応付けを行う。色番号はC1、C
2、...の順に選択する。色番号は表4のように12
色まで設定できる。もし、12色で不足する場合には、
色番号の大きな領域のカラーリング処理を行わない。
The user selects one of the six mode numbers prior to the copying operation. This is also performed by operating the input key 163. According to Table 3, the color numbers are associated with the actual colors. Color numbers are C1 and C
2 ,. . . Select in order. The color number is 12 as shown in Table 4.
You can set the color. If 12 colors are not enough,
Coloring processing is not performed for areas with large color numbers.

【0031】次に、表3に従って各色番号に対応する領
域に属する画素のRGB値を、表3の値に書き換える。
その後は、通常の複写動作と同様に、画像メモリ14
4のRGBの画像データに応じた複写動作を実行し、用
紙上には原稿のマーカエリア内の閉ループ領域に対して
カラーリング処理された複写画像が得られる。
Next, the RGB values of the pixels belonging to the area corresponding to each color number are rewritten to the values in Table 3 according to Table 3.
After that, as in the normal copying operation, the image memory 14
The copying operation according to the RGB image data of No. 4 is executed, and the copied image in which the closed loop area in the marker area of the document is colored is obtained on the paper.

【0032】なお、原稿にマーカーペンが塗布する代り
に、図11に示すようなエディター(領域指定用タブレ
ット)110を用いて、カラーリングを行う領域を指定
してもかまわない。原稿を台板111に載置し、エディ
ター用ペン112で2点を指定すると、その座標(x
1、y1)、(x2、y2)が入出力制御用IC148
を介してCPU147に取り込まれる。そして、図7の
ステップS12でマーカエリア内の白画素に対して、s
(x,y)=1にセットするのに替えて、x1<x<x
2かつy1<y<y2を満たす領域の白画素に対して、
s(x,y)=1とセットすれば、以下同様に指定領域
内の閉ループ検出が行なえる。
Instead of applying the marker pen on the original, an area (coloring area) 110 as shown in FIG. 11 may be used to specify the area to be colored. Place the manuscript on the base plate 111 and specify two points with the editor pen 112.
1, y1) and (x2, y2) are input / output control ICs 148
It is taken into the CPU 147 via. Then, in step S12 of FIG. 7, s is added to the white pixel in the marker area.
Instead of setting (x, y) = 1, x1 <x <x
2 and white pixels in a region satisfying y1 <y <y2,
If s (x, y) = 1 is set, closed loop detection in the designated region can be performed in the same manner.

【0033】また、カラーリングのモニター用として、
1枚の原稿に対して、カラーリングのモードをモード1
からモード6まで順に変更して、6枚の異なるカラーリ
ングがなされた複写紙が得られるようにしても構わな
い。
As a color monitor,
Coloring mode is set to mode 1 for one document.
It is also possible to sequentially change from the mode to the mode 6 so that six differently colored copy sheets can be obtained.

【0034】さらに、この実施例では、マーカペンなり
エディターで指定した領域は1つであるが、複数領域を
同時に指定し、複数領域に対してカラーリング処理を行
しても良い。
Further, in this embodiment, the number of areas designated by the marker pen or the editor is one, but a plurality of areas may be designated at the same time and the coloring processing may be performed on the plurality of areas.

【0035】[0035]

【発明の効果】以上の説明から明らかなように、本願の
第1の発明の画像処理装置によれば、作成された表やグ
ラフの画像をイメージリーダ等で読み取って画像メモリ
に格納すれば、画像メモリ内に格納された画像の閉ルー
プ領域を検出し、検出された閉ループ領域内に位置する
画素に対して、その属性データを設定する。これによ
り、容易に閉ループ内の領域にカラーリング等の処理を
施すことが可能となる。
As is apparent from the above description, according to the image processing apparatus of the first invention of the present application, if the image of the created table or graph is read by the image reader or the like and stored in the image memory, The closed loop area of the image stored in the image memory is detected, and the attribute data is set for the pixel located in the detected closed loop area. This makes it possible to easily perform processing such as coloring on the area within the closed loop.

【0036】さらに、本願の第2の発明の画像処理装置
によれば、先の第1の発明に加えて、複数の閉ループ領
域に対して領域ごとに異なる属性データを設定するた
め、各領域に異なるカラーリング処理等を施すことが可
能となる。
Further, according to the image processing apparatus of the second invention of the present application, in addition to the first invention described above, different attribute data is set for each of the plurality of closed loop areas, so that each area is set. It is possible to perform different coloring processes and the like.

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

【図1】デジタルカラー複写機の概略構成を示す断面
図。
FIG. 1 is a sectional view showing a schematic configuration of a digital color copying machine.

【図2】操作パネルの外観を示す図。FIG. 2 is a diagram showing an appearance of an operation panel.

【図3】複写機の制御ブロック図。FIG. 3 is a control block diagram of the copying machine.

【図4】画像メモリの2次元のアドレスを示す図。FIG. 4 is a diagram showing a two-dimensional address of an image memory.

【図5】画像メモリ上の1画素の画像データの構成を示
す図。
FIG. 5 is a diagram showing a configuration of image data of one pixel on an image memory.

【図6】マーカエリア検出の制御手順を示すフローチャ
ート。
FIG. 6 is a flowchart showing a control procedure of marker area detection.

【図7】閉ループ検出の制御手順を示すフローチャー
ト。
FIG. 7 is a flowchart showing a control procedure of closed loop detection.

【図8】画像メモリのマーカエリア内の画素の様子を示
す図。
FIG. 8 is a diagram showing a state of pixels in a marker area of an image memory.

【図9】画像メモリのマーカエリア内の画素の属性情報
の状態を示す図。
FIG. 9 is a diagram showing a state of attribute information of pixels in a marker area of an image memory.

【図10】注目画素とその周囲の画素の構成を示す図。FIG. 10 is a diagram showing a configuration of a target pixel and its surrounding pixels.

【図11】エディターを示す図。FIG. 11 is a diagram showing an editor.

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

14:画像処理部、144:画像メモリ、147:マイ
クロコンピュータ(CPU)、110:エディター
14: image processing unit, 144: image memory, 147: microcomputer (CPU), 110: editor

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 画像データを画素毎に格納する画像メモ
リと、該画像メモリ内に格納された画像の閉ループ領域
を検出する検出手段と、検出された閉ループ領域内に位
置する画素に対して、その属性データを設定する設定手
段とを備えたことを特徴とする画像処理装置。
1. An image memory for storing image data for each pixel, a detection means for detecting a closed loop region of an image stored in the image memory, and a pixel located in the detected closed loop region, An image processing apparatus comprising: a setting unit that sets the attribute data.
【請求項2】 上記設定手段は、検出された閉ループ領
域内に位置する画素で、その濃度が所定値以下の画素に
対して色に関する属性データを設定し、設定された属性
データに基いて画像データを書き換える請求項1に記載
の画像形成装置。
2. The setting means sets attribute data relating to color to pixels whose density is equal to or less than a predetermined value in the pixels located in the detected closed loop area, and the image is set based on the set attribute data. The image forming apparatus according to claim 1, wherein data is rewritten.
【請求項3】 画像の任意の領域を指定する指定手段を
備え、上記検出手段は、該指定手段によって指定された
領域内の画像の閉ループを検出する請求項1又は請求項
2に記載の画像処理装置。
3. The image according to claim 1 or 2, further comprising: designating means for designating an arbitrary area of the image, wherein the detecting means detects a closed loop of the image in the area designated by the designating means. Processing equipment.
【請求項4】 画像データを画素毎に格納する画像メモ
リと、該画像メモリ内に格納された画像の複数の閉ルー
プ領域を検出する検出手段と、検出された閉ループ領域
内に位置する画素に対して、領域毎に異なる属性データ
を設定する設定手段とを備えたことを特徴とする画像処
理装置。
4. An image memory for storing image data for each pixel, a detecting means for detecting a plurality of closed loop regions of an image stored in the image memory, and a pixel located in the detected closed loop region. And an setting unit that sets different attribute data for each area.
【請求項5】 上記検出手段によって検出された複数の
閉ループの隣接関係を判定する判定手段を備え、上記設
定手段は、上記判定手段で判定された隣接関係に応じて
属性データを設定する請求項4に記載の画像処理装置。
5. The determination means for determining the adjacency relationship of a plurality of closed loops detected by the detection means is provided, and the setting means sets the attribute data in accordance with the adjacency relationship determined by the judgment means. 4. The image processing device according to item 4.
JP27166493A 1993-10-29 1993-10-29 Image processor Pending JPH07131628A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27166493A JPH07131628A (en) 1993-10-29 1993-10-29 Image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27166493A JPH07131628A (en) 1993-10-29 1993-10-29 Image processor

Publications (1)

Publication Number Publication Date
JPH07131628A true JPH07131628A (en) 1995-05-19

Family

ID=17503174

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27166493A Pending JPH07131628A (en) 1993-10-29 1993-10-29 Image processor

Country Status (1)

Country Link
JP (1) JPH07131628A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6009195A (en) * 1995-06-14 1999-12-28 Minolta Co., Ltd. Image processor with marker edition mode

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6009195A (en) * 1995-06-14 1999-12-28 Minolta Co., Ltd. Image processor with marker edition mode

Similar Documents

Publication Publication Date Title
JP3334025B2 (en) Image forming device
US6249361B1 (en) Image processing apparatus and method
US4998144A (en) Color palette for copiers
CN1029264C (en) Apparatus and method for image processing
US6078767A (en) Image processing apparatus capable of easily designating image to be edited
US6809742B1 (en) Image editing device permitting user to register desired patterns
JPH07131628A (en) Image processor
US6097510A (en) Image processing apparatus and method
JPH0965119A (en) Image processor
JPH11220614A (en) Picture editing device
JP3355886B2 (en) Image processing device
JP3381468B2 (en) Image processing device
US6002404A (en) Image editing device for processing image data
US6016209A (en) Image forming apparatus
JP3539079B2 (en) Image editing device
JPH08190630A (en) Image processor
JP3407304B2 (en) Image forming device
JPH06334854A (en) Color copying machine
JP3671523B2 (en) Image editing device
JPH08307660A (en) Colour copying machine with marker edit function
JP3336821B2 (en) Image processing device
JP3603550B2 (en) Image processing device
JPH07154581A (en) Image forming device
JPH09275486A (en) Image processing unit
JPH0998278A (en) Image processing unit and its method