JP3143502B2 - Area discriminating apparatus and method - Google Patents

Area discriminating apparatus and method

Info

Publication number
JP3143502B2
JP3143502B2 JP03279865A JP27986591A JP3143502B2 JP 3143502 B2 JP3143502 B2 JP 3143502B2 JP 03279865 A JP03279865 A JP 03279865A JP 27986591 A JP27986591 A JP 27986591A JP 3143502 B2 JP3143502 B2 JP 3143502B2
Authority
JP
Japan
Prior art keywords
area
signal
data
pattern matching
change point
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.)
Expired - Fee Related
Application number
JP03279865A
Other languages
Japanese (ja)
Other versions
JPH05120434A (en
Inventor
秀昭 清水
弘幸 市川
徳治 金子
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 JP03279865A priority Critical patent/JP3143502B2/en
Publication of JPH05120434A publication Critical patent/JPH05120434A/en
Application granted granted Critical
Publication of JP3143502B2 publication Critical patent/JP3143502B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は原画像中の画像内容に基
づいて、該原画像中の指定領域を判別する領域判別装置
及び方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an area discriminating apparatus and method for discriminating a designated area in an original image based on image contents in the original image.

【0002】[0002]

【従来の技術】従来、画像をビットマップメモリー等の
記憶手段に取り込むことをせずにマーカー等のある所定
色による領域を判別する方法は特開昭64−80165
(出願昭62、9、21「画像処理装置」)などに記載
されているように所定色画像信号と前ラインの領域判別
信号の2ラインを用いて領域を判別している。
2. Description of the Related Art Conventionally, a method of discriminating an area of a predetermined color such as a marker without taking an image into a storage means such as a bit map memory is disclosed in Japanese Patent Laid-Open No. 64-80165.
As described in Japanese Patent Application Laid-Open Nos. 62, 9, 21 (“Image Processing Apparatus”), an area is determined using two lines of a predetermined color image signal and an area determination signal of a previous line.

【0003】[0003]

【発明が解決しようとしている課題】しかしながら、上
記従来例では図15にしめすように、ループが2重3重
にもうけられる領域は一番外側の領域以外は無視されて
しまうし、スキャン方向に対して終端が凹になっている
画像に対しては右側の斜線部のように領域内外の区別す
ることができない。
However, in the above-mentioned conventional example, as shown in FIG. 15, the area where the loop is formed in a double or triple manner is ignored except for the outermost area, and the loop in the scanning direction is ignored. As for the image whose end is concave, it is not possible to distinguish the inside and outside of the area as shown by the shaded area on the right.

【0004】このような判別方法で行っているためたと
えば原稿画像の向きによって判別領域の形状が代ってし
まい、領域内外に画像処理を行いたいときなどは非常に
使いにくいものとなってしまう。
[0004] Since the discrimination method is used in this manner, the shape of the discrimination area changes depending on, for example, the direction of the document image, and it becomes very difficult to use the image processing when it is desired to perform image processing inside and outside the area.

【0005】本発明は以上の点に鑑みてなされたもので
あり、多大なメモリ容量を必要とすることなく、指定領
域を略リアルタイムに判別することが可能な領域判別装
置及び方法を提供することを目的とする。
The present invention has been made in view of the above points, and provides an area discriminating apparatus and method capable of discriminating a designated area almost in real time without requiring a large memory capacity. With the goal.

【課題を解決するための手段】本発明の領域判別装置
は、原画像の画像内容に基づいて、該画像上の指定領域
を判別するための領域判別装置において、前記原画像中
の所定色を表す信号の変化点のデータと、前ラインにお
いて判別された前記指定領域を示す領域信号の変化点の
データとの少なくとも2つをサンプルするサンプル手段
と、前記サンプル手段によりサンプルされたデータに対
しパターンマッチングを行うパターンマッチング手段
と、前記パターンマッチング手段の処理結果を記憶する
第1の記憶手段と、前記変化点のデータを記憶する第2
の記憶手段を有し、前記第2の記憶手段に記憶されたデ
ータに基づき、前記第1の記憶手段からデータを読み出
すことにより、前記指定領域を示す領域信号を発生させ
ることを特徴とする領域判別装置。また、本発明の領域
判別方法は、原画像の画像内容に基づいて、該原画像上
の指定領域を判別するための領域判別方法であって、前
記原画像中の所定色を表す信号の変化点のデータと、前
ラインにおいて判別された前記指定領域を示す領域信号
の変化点のデータとの少なくとも2つをサンプルするサ
ンプルステップと、前記サンプルステップによりサンプ
ルされたデータに対しパターンマッチングを行うパター
ンマッチングステップと、前記パターンマッチングステ
ップの処理結果を第1の記憶手段に記憶させる第1記憶
ステップと、前記変化点のデータを第2の記憶手段に記
憶させる第2の記憶ステップを有し、前記第2の記憶手
段に記憶されたデータに基づき、前記第1の記憶手段か
らデータを読み出すことにより、前記指定領域を示す領
域信号を発生させることを特徴とする。
According to the present invention, there is provided an area discriminating apparatus for discriminating a designated area on an original image based on the image content of the original image. Sample means for sampling at least two of data of a change point of a signal representing the data and data of a change point of an area signal indicating the specified area determined in the previous line; and a pattern for the data sampled by the sample means. Pattern matching means for performing matching, first storage means for storing processing results of the pattern matching means, and second storage means for storing data of the change points
And generating an area signal indicating the designated area by reading data from the first storage means based on the data stored in the second storage means. Discriminator. Further, the area determination method of the present invention is an area determination method for determining a designated area on the original image based on the image content of the original image, wherein a change in a signal representing a predetermined color in the original image is performed. A sample step of sampling at least two of point data and data of a change point of an area signal indicating the designated area determined in the previous line, and a pattern for performing pattern matching on the data sampled in the sample step A matching step, a first storage step of storing a processing result of the pattern matching step in a first storage means, and a second storage step of storing data of the change point in a second storage means, The designated area is indicated by reading data from the first storage means based on the data stored in the second storage means. And wherein the generating the frequency signal.

【0006】[0006]

【実施例】本願発明を実施例について詳細に説明する。
図1は、本実施例のブロック図であり同図において10
1は原稿を読み取るCCDラインセンサーであり1画素
を形成する素子には交互にレッドフィルター、シアンフ
ィルターが塗布されている。同ラインセンサーから出力
される光レベル信号を102のR信号、103のC信号
とする。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described in detail with reference to embodiments.
FIG. 1 is a block diagram of the present embodiment.
Reference numeral 1 denotes a CCD line sensor for reading a document, and a red filter and a cyan filter are alternately applied to elements forming one pixel. The light level signal output from the line sensor is defined as an R signal 102 and a C signal 103.

【0007】これらの信号はそれぞれ増幅器104、1
05によって増幅され、A/D変換器106、107で
AD変換されたデジタル信号となりシェーディング回路
108、109によって該ラインセンサー101の持つ
固有のばらつき補正と原稿読み取り時に原稿を照らすた
めの光源の光量むらの補正を行い原稿画像の持つ濃度を
正確に得られる。
These signals are respectively supplied to amplifiers 104, 1
The digital signal is amplified by an A / D converter 106 and converted into an analog signal by A / D converters 106 and 107. The shading circuits 108 and 109 correct the inherent variation of the line sensor 101 and the light amount unevenness of a light source for illuminating the original when reading the original. And the density of the original image can be accurately obtained.

【0008】次に色判別回路110によって1画素ごと
にレッド信号、シアン信号の差成分から前記所定色と黒
レベルの判別を行う、この判別を図2で説明する。
Next, the color discrimination circuit 110 discriminates the predetermined color and the black level from the difference component between the red signal and the cyan signal for each pixel. This discrimination will be described with reference to FIG.

【0009】まずここで前記所定色(後述する領域を判
別するための閉ループを描くマーカなどによるもの)を
赤として説明していく。レッド信号からシアン信号を引
いた差成分が定数rよりも大きければ、その画素は赤で
あるとし、図1に示す(D)がその信号111となる。
また赤以外の場合シアン信号が定数kよりも大きければ
黒信号112となる。
First, a description will be given assuming that the predetermined color (a marker or the like that draws a closed loop for determining an area described later) is red. If the difference component obtained by subtracting the cyan signal from the red signal is larger than a constant r, the pixel is determined to be red, and (D) shown in FIG.
In the case other than red, if the cyan signal is larger than the constant k, the signal becomes the black signal 112.

【0010】次に赤信号111は領域判別回路113に
よって得られる領域判別信号114と黒信号112から
信号セレクト回路115によってマスキング、トリミン
グ等の画像処理に用いて出力信号116が得られる。
Next, an output signal 116 is obtained from the red signal 111 by using a region selection signal 114 obtained by a region determination circuit 113 and a black signal 112 by a signal selection circuit 115 for image processing such as masking and trimming.

【0011】 次に、領域判別回路113で行っている
所定色による領域の自動判別について図3を用いて詳細
に説明する。図1の色判別回路110によって色判別さ
れた赤色信号111(図3ではD信号504、以降D信
号として説明する)と前ラインの領域判別信号(図3の
(A)に相当。以降A信号501として説明する)、前
ラインの内側領域信号(図3の(B)に相当。以降B信
号502として説明する)、前ラインの領域終端信号
(図3の(C)に相当。以降C信号503として説明す
る)によって領域を判別していく。
Next, the automatic determination of a region based on a predetermined color performed by the region determination circuit 113 will be described in detail with reference to FIG. The red signal 111 (D signal 504 in FIG. 3, hereinafter referred to as a D signal) whose color has been determined by the color determination circuit 110 in FIG. 1 and a region determination signal for the previous line (corresponding to (A) in FIG. 501), an inner region signal of the previous line (corresponding to (B) in FIG. 3; hereinafter described as a B signal 502), and a region end signal of the previous line (corresponding to (C) in FIG. 3; hereinafter a C signal) 503) will be used to determine the area.

【0012】初めに変化点抽出部によってA信号、C信
号、D信号の変化点信号507、508、509と、さ
らに送り出し回路517によって出される信号の4信号
をORした信号でラッチデータイネーブル信号510が
得られる。
First, the latch data enable signal 510 is obtained by ORing the four signals of the change point signals 507, 508, and 509 of the A signal, the C signal, and the D signal with the change point extracting unit and the signal output by the sending circuit 517. Is obtained.

【0013】送り出し回路517で行っているのは、ビ
デオイネーブルがオフになった後にパターンマッチング
部、判別信号発生回路にとどこうるラッチデータをFi
Fo530、531、532に送り出すために遅延分の
データ数だけ信号を出している。
What the sending circuit 517 performs is to store the latch data which can be stored in the pattern matching unit and the discrimination signal generation circuit after the video enable is turned off.
Signals are sent for the number of delays in order to send the signals to Fos 530, 531, and 532.

【0014】このデータイネーブル信号510とビデオ
転送クロック505の反転信号をANDしたラッチデー
タ転送クロック511によってA信号、B信号、C信
号、D信号の変化点をそれぞれフリップフロップ52
0、521、522、523にラッチする。
A change point of the A signal, the B signal, the C signal, and the D signal is determined by the flip-flop 52 by the latch data transfer clock 511 obtained by ANDing the data enable signal 510 and the inverted signal of the video transfer clock 505.
0, 521, 522, and 523.

【0015】それぞれの変化点信号はパターンマッチン
グ部前半のフリップフロップによって得られる5×4の
マトリクスによってパターンマッチングを行う。
Each change point signal is subjected to pattern matching by a 5 × 4 matrix obtained by a flip-flop in the first half of the pattern matching unit.

【0016】次にパターンマッチングのアルゴリズムに
ついて説明する。図4において、注目ラインm、n、
o、pの領域判別について記述していく。
Next, an algorithm for pattern matching will be described. In FIG. 4, attention lines m, n,
The o and p area determination will be described.

【0017】mラインでの領域判別は図5に示す。上か
ら1ライン前の判別領域を示すAm−1(図3の501
に相当)、1ライン前の赤部を含まない判別領域を示す
Bm−1、1ライン前の前記Bm−1(図3の502に
相当)内で囲まれる赤部を示すCm−1(図3の503
に相当)、注目ラインの赤部を示すDm(図3の504
に相当)の4ラインを用いて領域を判別する。
FIG. 5 shows the area discrimination on the m-th line. Am-1 (501 in FIG. 3) indicating the discrimination area one line before from the top
Bm-1 indicating a discrimination region not including the red portion one line before (corresponding to 502 in FIG. 3). Cm-1 indicating the red portion surrounded by the Bm-1 (corresponding to 502 in FIG. 3) one line before. 3 of 503
), Dm indicating the red part of the line of interest (504 in FIG. 3).
Is determined using the four lines (corresponding to.).

【0018】Am−1、Cm−1、Dmのデータの変化
点を見て1つでもあった場合その変化点の直後のデータ
(Am−1、Bm−1、Cm−1、Dm)をラッチして
いく。そして3画素分のデータをシフトしながら検索し
ていき、その一部を次に示す。ただしxは不定である。
When any one of the data points of Am-1, Cm-1, and Dm is observed, the data (Am-1, Bm-1, Cm-1, Dm) immediately after the changed point is latched. I will do it. The search is performed while shifting the data for three pixels, and a part of the search is shown below. However, x is undefined.

【0019】 Am−1 111 Bm−1 xxx Am 111 Cm−1 000 → Bm 010 Dm 101 Cm 000 上記の様にAm−1が111、Cm−1が000、Dm
が101のとき、Dmの0を1に変換したものをAmと
し、Bmはその変換したところのデータを1としそれ以
外を0とする。ここで判別したAm(図3の513に相
当)、Bm(図3の514に相当)、Cm(図3の51
5に相当)は図6に示す(A)、(B)、(C)に対応
している。
Am-1 111 Bm-1 xxx Am 111 Cm-1000 → Bm 010 Dm 101 Cm 000 As described above, Am-1 is 111, Cm-1 is 000, Dm
Is 101, Dm is converted from 0 to 1 to Am, Bm is converted data to 1 and the other data to 0. The determined Am (corresponding to 513 in FIG. 3), Bm (corresponding to 514 in FIG. 3), Cm (51 in FIG. 3)
5) correspond to (A), (B) and (C) shown in FIG.

【0020】また、4画素、5画素をみるよう構成して
もよい。
Further, the configuration may be such that four pixels and five pixels are viewed.

【0021】次に図4のnラインでの領域判別について
図7を用いて前記と同様に説明する。基本的には、判別
した領域を埋めていきながら、図6に示す(C)を検索
する動作を繰り返す。
Next, the area discrimination on the n-th line in FIG. 4 will be described with reference to FIG. Basically, the operation of searching for (C) shown in FIG. 6 is repeated while filling the determined area.

【0022】前記と同様にAn−1、Cn−1、Dnの
変化点の直後のデータをそれぞれラッチしていく。そし
て前記と同様に3画素分のデータをシフトしながら検索
していき、その一部を次に示す。
As described above, the data immediately after the change points of An-1, Cn-1, and Dn are respectively latched. Then, the search is performed while shifting the data for three pixels in the same manner as described above, and a part thereof is shown below.

【0023】 An−1 111 Bn−1 x11 An x1x Cn−1 xxx → Bn x0x Dn 010 Cn x1x 上の様に変換し、図6に示す(B)に内接する赤信号
(D)の凸部を判別した信号である(C)の開始点の検
出を示している。
An-1 111 Bn-1 x11 An x1x Cn-1 xxx → Bn x0x Dn 010 Cn x1x is converted as shown above, and the convex portion of the red signal (D) inscribed in (B) shown in FIG. The detection of the start point (C), which is the determined signal, is shown.

【0024】次に図4のoラインでの領域判別について
図8を用いて前記と同様に説明する。基本的には、判別
した領域を埋めていきながら図6に示す(C)を検索す
る動作を繰り返す。前記と同様にAn−1、Cn−1、
Dnの変化点の直後のデータをそれぞれラッチしてい
く。そして前記と同様に3画素分のデータをシフトしな
がら検索していき、その一部を次に示す。
Next, the area discrimination at the o-line in FIG. 4 will be described in the same manner as described above with reference to FIG. Basically, the operation of searching for (C) shown in FIG. 6 is repeated while filling the determined area. As described above, An-1, Cn-1,
Data immediately after the change point of Dn is latched. Then, the search is performed while shifting the data for three pixels in the same manner as described above, and a part thereof is shown below.

【0025】 Ao−1 xxx Bo−1 xxx Ao x1x Co−1 111 → Bo xxx Do x1x Co x1x 上の様に変換し、図6に示す(C)信号の検出を行う。
ただしCo−1については3画素の中で一つでも1があ
れば良いとする。
Ao-1 xxx Bo-1 xxx Aox1x Co-1 111 → Boxxx Dox1x Cox1x The signal is converted as shown above, and a signal (C) shown in FIG. 6 is detected.
However, it is assumed that Co-1 only needs to have one out of three pixels.

【0026】さらにこの(C)信号の終端を検出するた
めの判別を次に示す。図4のpラインでの領域判別につ
いて図9を用いて前記と同様に説明する。前記と同様に
3画素分のデータをシフトしながら検索していき、その
中心部分の検出を次に示す。
The determination for detecting the end of the signal (C) will now be described. The area discrimination on the p-line in FIG. 4 will be described with reference to FIG. As described above, the search is performed while shifting the data for three pixels, and the detection of the center portion is shown below.

【0027】 Ap−1 111 Bp−1 xxx Ap 101 Cp−1 111 → Bp xxx Dp 101 Cp x0x 上に示す様にここではCp−1が000ではないため、
Dpの101→111の変換はおこなわない。この操作
によって図4の様に2重の領域指定の場合内側を(B)
信号または(A)信号と判別せずに除外する。これによ
って図10に示す領域判別を行うことが可能となる。
Ap-1 111 Bp-1 xxx Ap 101 Cp-1 111 → Bp xxx Dp 101 Cp x0x As shown above, since Cp-1 is not 000,
The conversion of Dp 101 → 111 is not performed. By this operation, as shown in FIG.
The signal or the signal (A) is excluded without being determined. This makes it possible to perform the area determination shown in FIG.

【0028】再び図3に戻りパターンマッチングによっ
て得られた信号512によって、注目ラインの(A)信
号513、(B)信号514、(C)信号515をつく
りだし、それぞれFiFo(530、531、532)
にライトする。
Returning to FIG. 3 again, the signal 512 obtained by the pattern matching produces the (A) signal 513, the (B) signal 514, and the (C) signal 515 of the line of interest, and each of them is FiFo (530, 531, 532).
Write to

【0029】 このとき前記のラッチイネーブル信号か
らパターンマッチング部及び判別信号発生回路に残って
いた不要データをFiFoにライトしないために不要部
マスク回路518でビデオイネーブル等の不要データ数
分の信号を出力し、必要なラッチデータのみをライトイ
ネーブル信号519によってライトする。
At this time, in order to prevent unnecessary data remaining in the pattern matching unit and the discrimination signal generation circuit from being written to the FIFO from the latch enable signal, the unnecessary unit mask circuit 518 outputs signals for the number of unnecessary data such as video enable. Then, only the necessary latch data is written by the write enable signal 519.

【0030】同時にラッチイネーブル信号はFiFo5
33にライトして、1ライン遅延してリードした516
によってFiFo530、531、532にライトされ
ている変化点のタイミングでライトされているラッチデ
ータを復元するためのリードイネーブル信号として用い
る。
At the same time, the latch enable signal is
516 which was written to 33 and read one line later
Is used as a read enable signal for restoring the latch data written at the timing of the change point written in the FIFOs 530, 531, and 532.

【0031】FiFo530から読み出された領域信号
501はフリップフロップによって整形され領域判別信
号として出力される。
The area signal 501 read from the FiFo 530 is shaped by a flip-flop and output as an area determination signal.

【0032】本実施例は色判別した信号について、その
色で示された領域を判別しているが、これに限らずラス
ター方式による2値画像による全ての領域判別はこの方
法で可能である。
In the present embodiment, the area indicated by the color is determined for the signal whose color has been determined. However, the present invention is not limited to this, and all areas can be determined by a binary image using a raster method.

【0033】(他の実施例)他の実施例について詳細に
説明する。
(Other Embodiment) Another embodiment will be described in detail.

【0034】図1のブロック図に示す前実施例で説明し
たところは省略する。
The description of the previous embodiment shown in the block diagram of FIG. 1 is omitted.

【0035】領域判別回路113で行っている所定色に
よる領域の自動判別について図11を用いて詳細に説明
する。
The automatic determination of an area based on a predetermined color performed by the area determination circuit 113 will be described in detail with reference to FIG.

【0036】図1の色判別回路110によって色判別さ
れた赤色信号111(図11ではD信号1201、以降
D信号として説明する)と前ラインの領域判別信号の2
信号によって領域判別を行っていく。2つの信号の変化
点をラッチしていく回路を変化点抽出部に示すA信号1
202、D信号1201の変化点信号とさらに示す送り
出し回路1203からでる信号の3信号をORした信号
でラッチデータイネーブル信号1210が得られる。
The red signal 111 (D signal 1201 in FIG. 11, hereinafter referred to as a D signal) whose color is determined by the color determination circuit 110 in FIG.
Region determination is performed based on the signal. A signal 1 indicating a circuit for latching the transition points of two signals to the transition point extraction unit
202, a latch data enable signal 1210 is obtained by ORing the three signals of the change point signal of the D signal 1201 and the signal output from the sending circuit 1203.

【0037】送り出し回路1203ではビデオイネーブ
ルがオフになった後にパターンマッチング部、判別信号
発生回路にとどこうるラッチデータをFiFo120
7、1208に送り出すために遅延分のデータ数だけ信
号をだしている。
In the sending circuit 1203, after the video enable is turned off, the latch data which can be sent to the pattern matching unit and the discrimination signal generation circuit is transmitted to the FiFo 120.
7 and 1208, signals are output for the number of delays.

【0038】この信号1210とビデオ転送クロックの
反転信号をANDしたラッチデータ転送クロック121
1によってA信号、D信号の変化点をそれぞれフリップ
フロップにラッチする。
A latch data transfer clock 121 obtained by ANDing this signal 1210 and an inverted signal of the video transfer clock
At 1, the transition points of the A signal and the D signal are latched in the flip-flops.

【0039】それぞれの変化点信号はパターンマッチン
グ部前半のフリップフロップによって得られる3x2の
マトリクスによってパターンマッチングを行う。
Each change point signal is subjected to pattern matching using a 3 × 2 matrix obtained by a flip-flop in the first half of the pattern matching section.

【0040】次にパターンマッチングのアルゴリズムに
ついて説明する。図4において、注目ラインm、n、p
の領域判別について記述していく。mラインでの領域判
別は図12に示す。
Next, the algorithm of pattern matching will be described. In FIG. 4, attention lines m, n, p
Will be described. FIG. 12 shows the area determination for the m-th line.

【0041】上から1ライン前の判別領域を示すAm−
1、注目ラインの赤部を示すDmの2ラインを用いて領
域を判別する。Am−1、Dmのデータの変化点を見て
1つでもあった場合その変化点の直後のデータ(Am−
1、Dm)をラッチしていく。そして3画素分のデータ
をシフトしながら検索していき、その一部を次に示す。
ただし、xは不定である。
Am- indicating the discrimination area one line before from the top
1. A region is determined using two lines of Dm indicating a red portion of the line of interest. If there is at least one change point in the data of Am-1 and Dm, the data (Am-
1, Dm). Then, the search is performed while shifting the data for three pixels, and a part thereof is shown below.
However, x is undefined.

【0042】 Am−1 111 Dm 101 → Am 111 上の様にAm−1が111、Dmが101のときDmの
0を1に変換したものをAm、すなわち判別した領域で
ある。
Am-1 111 Dm 101 → Am 111 As described above, when Am-1 is 111 and Dm is 101, the value obtained by converting 0 of Dm to 1 is Am, that is, the determined area.

【0043】同様に図4のnラインでの領域判別につい
ても、図13に示すようにDnの信号を領域信号に変換
しながら、同様に3画素分のデータをシフトしながら検
索していき、その一部を次に示す。
Similarly, in the area discrimination on the n-th line in FIG. 4, the search is performed while shifting the data of three pixels in the same manner while converting the Dn signal into the area signal as shown in FIG. Some of them are shown below.

【0044】 An−1 11111 Dn 10101 → An 11111 上の様に変換し、次に図4のpラインでの領域判別につ
いて図14を用いて前記と同様に説明する。前記と同様
に3画素分のデータをシフトしながら検索していき、そ
の中心部分の検出を次に示す。
An-1 11111 Dn 10101 → An 11111 The conversion is performed as described above, and next, the area determination on the p-line in FIG. 4 will be described with reference to FIG. 14 in the same manner as described above. As described above, the search is performed while shifting the data for three pixels, and the detection of the center portion is shown below.

【0045】 Ap−1 1111111 Dp 1010101 → Ap 1111111 上に示す様に2x3のパターンマッチング(図11の1
204)で、Ap−1が111、Dpが101のときは
必ずDpの真中の0を1に置換えてやり、その信号(図
11の1205)を領域信号Ap111として判別す
る。この操作を繰り返すことによって図10の判別を手
軽な回路と低コストで実現できる。
Ap-1 1111111 Dp 1010101 → Ap 1111111 As shown above, 2 × 3 pattern matching (1 in FIG. 11)
In 204), when Ap-1 is 111 and Dp is 101, the center 0 of Dp is always replaced with 1, and the signal (1205 in FIG. 11) is determined as the area signal Ap111. By repeating this operation, the determination in FIG. 10 can be realized with a simple circuit and at low cost.

【0046】図11の領域信号1205をFiFo12
07にライトする。このとき前記のラッチイネーブル信
号からパターンマッチング部及び判別信号発生回路に残
っていた不要データをFiFoにライトしないために不
要部マスク回路1206でビデオイネーブル頭の不要デ
ータ数分の信号を出力し、必要なラッチデータのみをラ
イトイネーブル信号によってライトする。
The area signal 1205 of FIG.
Write to 07. At this time, in order to prevent unnecessary data remaining in the pattern matching unit and the discrimination signal generating circuit from being written into the FIFO from the latch enable signal, the unnecessary unit mask circuit 1206 outputs signals corresponding to the number of unnecessary data of the video enable head. Only the necessary latch data is written by the write enable signal.

【0047】同時にラッチイネーブル信号はFiFo1
208にライトして、1ライン遅延してリードしたリー
ドイネーブル信号1210によってFiFo1207に
ライトされている変化点のラッチデータを復元するため
のリードイネーブル信号として用いる。
At the same time, the latch enable signal is
The read enable signal 1210 is used as a read enable signal for restoring the latch data of the change point written in the FIFO 1207 by the read enable signal 1210 read by delaying one line.

【0048】読み出された領域信号1202はフリップ
フロップによって整形され領域判別信号1209として
出力される。
The read area signal 1202 is shaped by a flip-flop and output as an area determination signal 1209.

【0049】以上説明したように、原稿の向きを変えて
も判別した領域の形が大きく変わることもなく、領域指
定を行った内側にさらに同色の色によって領域指定を行
ったときその内側は領域外と判別する。これによって何
重にも領域指定を行える機能を得られるとともに、さら
に画像の読みとりとリアルタイムでこの処理を行えるた
めに時間を大幅に短縮できる。
As described above, even if the orientation of the document is changed, the shape of the determined area does not change significantly, and when the area is further designated by the same color inside the area, the area inside Judge as outside. As a result, a function of designating a plurality of areas can be obtained, and furthermore, the time required for reading an image and performing this processing in real time can be greatly reduced.

【0050】また、ビットマップメモリーなどを持つ必
要もなく安価なコストで実現することができる。さらに
領域を判別するために掛かる処理の遅れが1走査分しか
ないため、それに付随して遅らせる必要がある多値画像
用遅延メモリ量が少なくて済みコストダウンにつなが
る。
Further, the present invention can be realized at low cost without having to have a bitmap memory or the like. Further, since the processing delay required to determine the area is only one scan, the amount of multi-valued image delay memory that must be delayed accompanying the processing is small, leading to cost reduction.

【0051】[0051]

【発明の効果】以上説明した様に本発明によると、多大
なメモリ容量を必要とすることなく、指定領域を略リア
ルタイムに判別することが可能となる。
As described above, according to the present invention, it is possible to determine a designated area almost in real time without requiring a large memory capacity.

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

【図1】画像読取装置のブロック図である。FIG. 1 is a block diagram of an image reading apparatus.

【図2】色判別の手順を示すフローチャート図である。FIG. 2 is a flowchart illustrating a procedure of color determination.

【図3】領域判別回路のブロック図である。FIG. 3 is a block diagram of an area determination circuit.

【図4】領域判別動作を示す図である。FIG. 4 is a diagram illustrating an area determination operation.

【図5】領域判別動作を示すタイミングチャート図であ
る。
FIG. 5 is a timing chart illustrating an area determination operation.

【図6】領域判別動作を示す図である。FIG. 6 is a diagram illustrating an area determination operation.

【図7】領域判別動作を示すタイミングチャート図であ
る。
FIG. 7 is a timing chart illustrating an area determination operation.

【図8】領域判別動作を示すタイミングチャート図であ
る。
FIG. 8 is a timing chart illustrating an area determination operation.

【図9】領域判別動作を示すタイミングチャート図であ
る。
FIG. 9 is a timing chart illustrating an area determination operation.

【図10】領域判別動作を示す図である。FIG. 10 is a diagram showing an area determination operation.

【図11】領域判別回路のブロック図である。FIG. 11 is a block diagram of an area determination circuit.

【図12】領域判別動作を示すタイミングチャート図で
ある。
FIG. 12 is a timing chart illustrating an area determination operation.

【図13】領域判別動作を示すタイミングチャート図で
ある。
FIG. 13 is a timing chart illustrating an area determination operation.

【図14】領域判別動作を示すタイミングチャート図で
ある。
FIG. 14 is a timing chart illustrating an area determination operation.

【図15】領域判別動作を示す図である。FIG. 15 is a diagram illustrating an area determination operation.

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

101 CCDラインセンサー 104 増幅器 105 増幅器 110 色判別回路 113 領域判別回路 101 CCD line sensor 104 amplifier 105 amplifier 110 color discriminating circuit 113 area discriminating circuit

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平3−127285(JP,A) (58)調査した分野(Int.Cl.7,DB名) G06T 7/00 - 7/60 350 G06T 1/00 ──────────────────────────────────────────────────続 き Continuation of the front page (56) References JP-A-3-127285 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) G06T 7/ 00-7/60 350 G06T 1 / 00

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 原画像の画像内容に基づいて、該画像上
の指定領域を判別するための領域判別装置において、 前記原画像中の所定色を表す信号の変化点のデータと、
前ラインにおいて判別された前記指定領域を示す領域信
号の変化点のデータとの少なくとも2つをサンプルする
サンプル手段と、 前記サンプル手段によりサンプルされたデータに対しパ
ターンマッチングを行うパターンマッチング手段と、 前記パターンマッチング手段の処理結果を記憶する第1
の記憶手段と、 前記変化点のデータを記憶する第2の記憶手段を有し、 前記第2の記憶手段に記憶されたデータに基づき、前記
第1の記憶手段からデータを読み出すことにより、前記
指定領域を示す領域信号を発生させることを特徴とする
領域判別装置。
An area discriminating apparatus for discriminating a designated area on an original image based on image content of the original image, comprising : data of a change point of a signal representing a predetermined color in the original image ;
An area signal indicating the specified area determined in the previous line
Sampling means for sampling at least two of the data at the change point of the signal; pattern matching means for performing pattern matching on the data sampled by the sampling means; and a first means for storing a processing result of the pattern matching means.
And a second storage means for storing the data of the change point. By reading data from the first storage means based on the data stored in the second storage means, An area discriminating device for generating an area signal indicating a designated area.
【請求項2】 前記領域信号発生手段より発生される領
域信号に基づいて前記原画像に画像処理を施す画像処理
手段を有することを特徴とする請求項1記載の領域判別
装置。
2. An area discriminating apparatus according to claim 1, further comprising image processing means for performing image processing on said original image based on an area signal generated by said area signal generating means.
【請求項3】 原画像の画像内容に基づいて、該原画像
上の指定領域を判別するための領域判別方法であって、 前記原画像中の所定色を表す信号の変化点のデータと、
前ラインにおいて判別された前記指定領域を示す領域信
号の変化点のデータとの少なくとも2つをサンプルする
サンプルステップと、 前記サンプルステップによりサンプルされたデータに対
しパターンマッチングを行うパターンマッチングステッ
プと、 前記パターンマッチングステップの処理結果を第1の記
憶手段に記憶させる第1記憶ステップと、 前記変化点のデータを第2の記憶手段に記憶させる第2
の記憶ステップを有し、 前記第2の記憶手段に記憶されたデータに基づき、前記
第1の記憶手段からデータを読み出すことにより、前記
指定領域を示す領域信号を発生させることを特徴とする
領域判別方法。
3. An area discriminating method for discriminating a designated area on an original image based on image content of the original image, comprising : data of a change point of a signal representing a predetermined color in the original image ;
An area signal indicating the specified area determined in the previous line
A sample step of sampling at least two of the data of the signal change point; a pattern matching step of performing pattern matching on the data sampled by the sample step; and a first storage unit for storing a processing result of the pattern matching step. A first storage step of storing the data of the change point in a second storage unit.
Storing an area signal indicating the designated area by reading data from the first storage means based on data stored in the second storage means. Judgment method.
JP03279865A 1991-10-25 1991-10-25 Area discriminating apparatus and method Expired - Fee Related JP3143502B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP03279865A JP3143502B2 (en) 1991-10-25 1991-10-25 Area discriminating apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP03279865A JP3143502B2 (en) 1991-10-25 1991-10-25 Area discriminating apparatus and method

Publications (2)

Publication Number Publication Date
JPH05120434A JPH05120434A (en) 1993-05-18
JP3143502B2 true JP3143502B2 (en) 2001-03-07

Family

ID=17617025

Family Applications (1)

Application Number Title Priority Date Filing Date
JP03279865A Expired - Fee Related JP3143502B2 (en) 1991-10-25 1991-10-25 Area discriminating apparatus and method

Country Status (1)

Country Link
JP (1) JP3143502B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102654320B1 (en) * 2022-05-09 2024-04-04 넥스콘테크놀러지 주식회사 PCB coating system that prevents bubbles from occurring

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102654320B1 (en) * 2022-05-09 2024-04-04 넥스콘테크놀러지 주식회사 PCB coating system that prevents bubbles from occurring

Also Published As

Publication number Publication date
JPH05120434A (en) 1993-05-18

Similar Documents

Publication Publication Date Title
US5568597A (en) Adapting image data resolution to match resolution of an output device
JPH0567105B2 (en)
EP0685959B1 (en) Image processing apparatus for identifying character, photo and dot images in the image area
US5687252A (en) Image processing apparatus
US4899225A (en) Image processing method
JP3143502B2 (en) Area discriminating apparatus and method
US5299030A (en) Image data processing method and apparatus with mixture of simple binarization and psuedo intermediate tone
JP2874592B2 (en) Image processing device for distinguishing text / photo / dot area
JP3210378B2 (en) Image input device
JPS6259512B2 (en)
JP2934971B2 (en) Image binarization processing device
JP3115441B2 (en) Optical character reader
JP3344115B2 (en) Image processing device
JP2812006B2 (en) Binarization circuit
JPS5924584B2 (en) Original reading method
JPH05108814A (en) Picture reader
JPS6316945B2 (en)
JPS6143078A (en) Processing system of original picture
JPS6239978A (en) Picture processing method
JPS62252271A (en) Color picture processor to expand, reduce and process after color is separated
JPS62256572A (en) Picture processor
JPH0478268A (en) Picture binarizing processor
JPS62107575A (en) Method and device for generating high resolution binarization picture data
JPH04130583A (en) Electronic editing device
JPS6374369A (en) Power varying method

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20001121

LAPS Cancellation because of no payment of annual fees