JPS61208175A - Detection system for area - Google Patents

Detection system for area

Info

Publication number
JPS61208175A
JPS61208175A JP60048721A JP4872185A JPS61208175A JP S61208175 A JPS61208175 A JP S61208175A JP 60048721 A JP60048721 A JP 60048721A JP 4872185 A JP4872185 A JP 4872185A JP S61208175 A JPS61208175 A JP S61208175A
Authority
JP
Japan
Prior art keywords
area
color
points
bits
order digit
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
JP60048721A
Other languages
Japanese (ja)
Inventor
Yasushi Oi
大井 泰
Shinji Ineshima
稲島 伸治
Susumu Kanamori
金盛 享
Yuriko Ishigaki
石垣 由里子
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP60048721A priority Critical patent/JPS61208175A/en
Publication of JPS61208175A publication Critical patent/JPS61208175A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Abstract

PURPOSE:To detect color areas of a color image and to set color areas easily at a high speed by performing area detection while expanding an area of color similar to that of a point specified by an operator. CONSTITUTION:When the operator monitors an image displayed on a CRT 6 and indicates one or plural points on a tablet 1, RGB values corresponding to colors of the indicated points are assigned in a bit sequence. Similar colors have RGB values which have same high-order digit bits of respective bit sequence and the different low-order digit bits. For the purpose, the low-order digit bits are masked and RGB values of all adjacent points are read in and then compared with the high-order digit bits to a determine an area having a color similar to these of the indicated points. Points of coincident color data are fetched and then the area to be compared is shifted to the high-order digit bits, so that a comparison is further made.

Description

【発明の詳細な説明】 〔概要〕 CRT等の表示手段に表示されるカラー画像における色
領域を検出するものでオペレータにより指定された点と
類似する色の領域を色マスク処理により拡張し乍ら領域
検出を行ない、色領域の設定を高速且つ容易に行なう。
[Detailed Description of the Invention] [Summary] This detects the color area in a color image displayed on a display means such as a CRT, and expands the color area similar to the point specified by the operator by color mask processing. To perform area detection and quickly and easily set color areas.

〔産業上の利用分野〕[Industrial application field]

本発明はCRT等の表示手段に表示されたカラー画像に
おける色領域を検出するための領域検出方式に関し、更
に詳しくはオペレータが検出された色領域をモニタし乍
ら会話型で色領域を検出する方式に関する。
The present invention relates to an area detection method for detecting a color area in a color image displayed on a display means such as a CRT, and more specifically, the present invention relates to an area detection method for detecting a color area in a color image displayed on a display means such as a CRT. Regarding the method.

自然画等の多数の色を有する画像から特定の色を有する
領域を切り出すには、タブレット、入力ペン等の入力デ
バイスを用いて所要の領域をトレースすることが行なわ
れている。然るに複雑な図形の処理に際しては人手及び
時間を要するので操作性が良く高速処理の可能な領域検
出方式が提供されることが望まれる。
In order to cut out a region having a specific color from an image having many colors, such as a natural image, a desired region is traced using an input device such as a tablet or an input pen. However, since processing complex graphics requires manpower and time, it is desired to provide an area detection method that is easy to operate and capable of high-speed processing.

〔従来の技術〕[Conventional technology]

カラー画像の領域検出は、マウス、入力ペン或いはタブ
レット等の入力・ポインティングデバイスを用い、希望
する領域の輪郭をなぞって切り出すことが行なわれてい
る。一方、1つの色或いはこれに類似する色を含む閉領
域を自動的に切り出すことも考えられているが、領域の
設定が難しく、具現化されるに至っていない。
Region detection of a color image is performed by tracing and cutting out the outline of a desired region using an input/pointing device such as a mouse, an input pen, or a tablet. On the other hand, it has been considered to automatically cut out a closed region containing one color or a color similar to this, but setting the region is difficult and has not been implemented yet.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

入力・ポインティングデバイスを用いて手作業により領
域を切り出す方法は、所要の領域を正確に切り出せるが
、自然画等の複雑な図形における同一の色を有する領域
を切り出すには時間を要する。また、同−或いは類似す
る色を含む閉領域を自動的に求める方法も考えられてい
るが、色領域の設定が難しく具現化されるに至っていな
い。
A method of manually cutting out an area using an input/pointing device can accurately cut out a desired area, but it takes time to cut out areas having the same color in a complex figure such as a natural image. Additionally, a method of automatically finding closed regions containing the same or similar colors has been considered, but it has not been implemented because it is difficult to set the color regions.

本発明はこのような色領域の設定または検出を高速且つ
容易に行ない得る会話型の領域検出方式を提供すること
を目的としている。
An object of the present invention is to provide an interactive area detection method that can quickly and easily set or detect color areas.

〔問題点を解決するための手段〕[Means for solving problems]

第1図は本発明の領域検出方式を具現するに適したハー
ド構成の一例を示すブロック図、第2図はそのフローチ
ャートである。第1図において、1はバス2に指示デー
タを供給するためのタブレット、3はプログラム或いは
データ等を記憶させる主記憶装置、4はプロセッサ(C
PU) 、5はCRT6に表示する画像を記憶するフレ
ームメモリである。
FIG. 1 is a block diagram showing an example of a hardware configuration suitable for implementing the area detection method of the present invention, and FIG. 2 is a flowchart thereof. In FIG. 1, 1 is a tablet for supplying instruction data to a bus 2, 3 is a main memory for storing programs or data, and 4 is a processor (C
PU), 5 is a frame memory that stores images to be displayed on the CRT 6.

〔作用) オペレータがCRT6に表示された図形、自然画等をモ
ニタし乍ら1乃至複数の点をタブレット1より指示する
と、指示された点の色に相当するRGB値が読み出され
た後、下位ビットがマスクされた基準値が作成される0
次いで基準値内の値を持つアドレスがスキャンされて指
示された点と類似した色を有する領域が決定される。こ
こでオペレータが領域を拡張する旨指示すると、上位に
シフトされたマスクビットによる基準値が設定され、こ
の基準値による比較が行なわれて拡張された領域が検出
される。これ等の処理操作はオペレータが終了を指示す
る迄続けられる。
[Operation] When the operator specifies one or more points from the tablet 1 while monitoring a figure, natural image, etc. displayed on the CRT 6, the RGB values corresponding to the color of the specified point are read out, and then A reference value with lower bits masked is created 0
Addresses with values within the reference values are then scanned to determine areas having a similar color to the indicated point. Here, when the operator instructs to expand the area, a reference value is set using the mask bits shifted to higher order, and a comparison is performed using this reference value to detect the expanded area. These processing operations continue until the operator instructs them to end.

基準値の求め方についてビット列を示す第3図及びこれ
の3次元空間への写像である第4図と共に説明する。第
3vIJは従来より電子針算機で色の処理に利用されて
いるRGB値に夫々8ビツトを割り当てて色を表現する
ためのビット列(色データ)を示す図である。同図を参
照すると、類似する色は各ビット列において上位ビット
が同一で下位ビットが異なるRGB値を持つことが理解
される。第4図は第3図に示すRGB各成分により示さ
れる空間上の点Cと、下位ビットをマスクした際に拡張
される領域dを概念的に示す説明図である。なお、RG
B値における2次分にのみマスクを作用させると領域d
が平面となる。
How to obtain the reference value will be explained with reference to FIG. 3 showing a bit string and FIG. 4 showing a mapping of this to a three-dimensional space. The third vIJ is a diagram showing a bit string (color data) for expressing a color by allocating 8 bits to each of the RGB values conventionally used for color processing in electronic needle counters. Referring to the figure, it will be understood that similar colors have RGB values in which the higher bits are the same and the lower bits are different in each bit string. FIG. 4 is an explanatory diagram conceptually showing a point C in space indicated by each RGB component shown in FIG. 3, and an area d expanded when the lower bits are masked. In addition, RG
If the mask is applied only to the second-order component in the B value, the area d
becomes a plane.

〔実施例〕〔Example〕

第2図は本発明に係る領域検出方式のフロー図である。 FIG. 2 is a flow diagram of the area detection method according to the present invention.

微妙に異なる多数の色を含む画像の1点乃至複数の点を
オペレータがステップ10においてタブレット1より指
定すると、ステップ20において指定された点の夫々に
ついてRGBの基準値が作成され、次いでステップ30
において指定された点に隣接するすべての同色の点を探
し出す処理が行なわれる。この処理は隣接する同色の点
が無くなる迄続けられる。この結果、同色の領域が決定
されてCRT6等の表示手段に表示される。次いでステ
ップ40においてオペレータがCRT6等の表示手段に
表示された領域が希望の領域に満たないことをタブレッ
ト1等から入力すると、ステップ50において指定点の
色データにおける下位ビット(色近似表示ビット)をマ
スクした次の参照データが生成される。即ち、RGBに
夫々n(≧1)ビットが与えられている時は下位m(n
≧m≧1)ビットがマスクされたデータが生成される。
When the operator specifies one or more points on the image containing many slightly different colors using the tablet 1 in step 10, RGB reference values are created for each of the specified points in step 20, and then in step 30.
A process is performed to find all points of the same color adjacent to the specified point. This process continues until there are no adjacent points of the same color. As a result, areas of the same color are determined and displayed on a display means such as a CRT 6. Next, in step 40, when the operator inputs from the tablet 1 or the like that the area displayed on the display means such as the CRT 6 is less than the desired area, in step 50, the lower bits (color approximation display bits) of the color data of the designated point are input. The next masked reference data is generated. That is, when n (≧1) bits are given to each of RGB, the lower m (n
≧m≧1) Data with masked bits is generated.

更にステップ60において前記面領域に隣接するすべて
の点の色データが読み取られた後、上位ビットとの比較
が行なわれる。1つの隣接領域における一致する色デー
タの点の取り込みが行なわれると、比較の対象となる領
域が拡張されて更に比較が行なわれる。この結果、下位
ビットがマスクされて上位ビットにより設定された新し
い面領域が決定されてCRT6等の表示手段に表示され
る。また、ステップ70においてオペレータが更に拡張
を希望する場合はマスクビットが上位にシフトして処理
が継続される。このようにしてオペレータは希望する領
域の検出を行なうことができる。なお、本発明によれば
、オペレータが任意の異なった色の点を同時に指定でき
ることが明白であって、これ等各点の色について何れか
が含まれる範囲を指定する等の指定方法も本発明の主旨
を逸脱することなく採用できる。また、本実施例では領
域検出処理に際し、RGBの夫々に対し、同時にマスク
ビットを作用させて比較及び表示したが、これ等の夫々
に対し順次マスクビットを作用させて比較及び表示して
も良く、またRGBに独立したマスクビットを作用させ
て比較及び表示をすることもできる。
Further, in step 60, after the color data of all points adjacent to the surface area are read, a comparison with the upper bits is performed. When points of matching color data in one adjacent area are captured, the area to be compared is expanded and further comparison is performed. As a result, the lower bits are masked and a new surface area set by the upper bits is determined and displayed on display means such as the CRT 6. If the operator desires further expansion in step 70, the mask bits are shifted upwards and processing continues. In this way, the operator can detect the desired area. Note that according to the present invention, it is clear that the operator can specify points of arbitrary different colors at the same time, and the present invention also includes a method of specifying a range that includes any of the colors of these points. can be adopted without departing from the main idea. Further, in this embodiment, when performing area detection processing, mask bits are applied to each of RGB at the same time for comparison and display, but mask bits may be applied to each of these in sequence for comparison and display. , it is also possible to perform comparison and display by applying independent mask bits to RGB.

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

以上述べたように本発明によれば、オペレータにより指
定された点と類似する色の領域を拡張させ乍ら会話型式
で領域の検出を高速且つ容易に行なえると共に、任意の
色で構成される画像を希望する任意の数の色の領域に高
速且つ容易に分割できるという効果を有する。
As described above, according to the present invention, it is possible to quickly and easily detect the area in an interactive manner while expanding the area of color similar to the point specified by the operator, and the area can be configured with any color. This has the advantage that an image can be quickly and easily divided into regions of any desired number of colors.

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

第1図はハード構成の一例を示すブロック図、第2図は
第1図ハード構成のためのフローチャート、 第3図はビット列の説明図、 第4図はビット列の3次元空間への写像の概念図、第1
図において、 1はダフレフト、 2はバス、 3は主記憶装置、 4はCPU。 5はフレームメモリ、 6はCRTである。 第1図
Figure 1 is a block diagram showing an example of the hardware configuration, Figure 2 is a flowchart for the hardware configuration shown in Figure 1, Figure 3 is an explanatory diagram of a bit string, and Figure 4 is the concept of mapping a bit string to a three-dimensional space. Figure, 1st
In the figure, 1 is a double-left, 2 is a bus, 3 is a main memory, and 4 is a CPU. 5 is a frame memory, and 6 is a CRT. Figure 1

Claims (2)

【特許請求の範囲】[Claims] (1)画像処理システムにおいて、検出せんとする領域
のための色データを有する任意の点を指定する第1の手
段と、指定された点との比較が得られる色データを有す
る領域を検出して背景領域と共に表示する第2の手段と
、検出表示された領域が所望の領域に満たないとき前記
指定点の色データの内の色近似表示ビットにマスクをか
けてその色データを用いての前記検出及び表示を前記第
2の手段に行なわしめる第3の手段とを備えて構成した
ことを特徴とする領域検出方式。
(1) In an image processing system, a first means for specifying an arbitrary point having color data for an area to be detected, and detecting an area having color data from which a comparison with the specified point can be obtained; a second means for displaying the detected and displayed area together with the background area; and a second means for masking the color approximation display bits in the color data of the specified point and using that color data when the detected and displayed area is less than the desired area. and third means for causing the second means to perform the detection and display.
(2)前記第3の手段は前記色近似表示ビットにかけら
れるマスクを変更し得る手段を有することを特徴とする
特許請求の範囲第1項記載の領域検出方式。
(2) The area detection method according to claim 1, wherein the third means includes means for changing the mask applied to the color approximation display bits.
JP60048721A 1985-03-12 1985-03-12 Detection system for area Pending JPS61208175A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60048721A JPS61208175A (en) 1985-03-12 1985-03-12 Detection system for area

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60048721A JPS61208175A (en) 1985-03-12 1985-03-12 Detection system for area

Publications (1)

Publication Number Publication Date
JPS61208175A true JPS61208175A (en) 1986-09-16

Family

ID=12811157

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60048721A Pending JPS61208175A (en) 1985-03-12 1985-03-12 Detection system for area

Country Status (1)

Country Link
JP (1) JPS61208175A (en)

Similar Documents

Publication Publication Date Title
EP3618000A1 (en) Method and apparatus for generating file colour matching solution
US5014331A (en) Method of detecting an internal point within a closed area
JPS61208175A (en) Detection system for area
KR970071296A (en) Volume rendering devices and suitable methods
US5621865A (en) Graphics processing apparatus using grid and a method thereof
JPH03121571A (en) Color picture processor
JP3133093B2 (en) Electronic image correction method and apparatus
JPS63106872A (en) Image processor
JPS61213975A (en) Area detecting system
JPH08328613A (en) Method for preparing sequence/program and method for setting data
JPH05225286A (en) Circuit element connection retrieval system
JPH04346393A (en) High speed scroll of large scale plotting data
KR100586602B1 (en) Method for overlaing raster map
JPS6346573A (en) Color image processor
JP2904994B2 (en) Coordinate connection display method
JP2652435B2 (en) Image display method
JP2898812B2 (en) Paint method and paint apparatus
JPH07262394A (en) Integrating device for adjacent polygon
JPH08160935A (en) Character pattern display device
JPH0668267A (en) Plotting device
JPH09179716A (en) Dynamically plotting device for icon
JPS6169094A (en) Graphic processing method and apparatus
JPS62127972A (en) Clipping system in line segment drawing
JPH07325927A (en) Image data processor and system using same
JPH06259570A (en) Shape expressing method