JPH05128224A - Color extracting device for color picture and method therefor - Google Patents
Color extracting device for color picture and method thereforInfo
- Publication number
- JPH05128224A JPH05128224A JP3292565A JP29256591A JPH05128224A JP H05128224 A JPH05128224 A JP H05128224A JP 3292565 A JP3292565 A JP 3292565A JP 29256591 A JP29256591 A JP 29256591A JP H05128224 A JPH05128224 A JP H05128224A
- Authority
- JP
- Japan
- Prior art keywords
- color
- image
- extraction
- extracted
- range
- 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.)
- Withdrawn
Links
- 238000000034 method Methods 0.000 title claims abstract description 36
- 238000000605 extraction Methods 0.000 claims abstract description 90
- 239000003086 colorant Substances 0.000 claims abstract description 29
- 239000007787 solid Substances 0.000 claims abstract description 22
- 238000012217 deletion Methods 0.000 claims abstract description 14
- 230000037430 deletion Effects 0.000 claims abstract description 14
- 238000012545 processing Methods 0.000 claims description 20
- 238000010586 diagram Methods 0.000 description 13
- 239000000284 extract Substances 0.000 description 6
- 241000282414 Homo sapiens Species 0.000 description 4
- 238000009826 distribution Methods 0.000 description 4
- 238000010187 selection method Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- VYPSYNLAJGMNEJ-UHFFFAOYSA-N Silicium dioxide Chemical compound O=[Si]=O VYPSYNLAJGMNEJ-UHFFFAOYSA-N 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
Landscapes
- Processing Or Creating Images (AREA)
- Image Processing (AREA)
- Image Analysis (AREA)
Abstract
(57)【要約】
【目的】本発明は,カラー画像中の任意の色を指定し,
抽出・分類・識別する計算機10によるカラー画像の色抽
出装置および方法に関し,簡単な操作で精度のよい色の
抽出を可能とすることを目的とする。
【構成】代表点決定部15は,ディスプレイ画面における
抽出対象の領域または抽出画像から削除したい領域内の
点を位置入力装置12により指示させて入力し,その入力
に基づき複数の代表点を決定する。範囲指示入力部16
は,抽出または削除する色の範囲を指定するパラメータ
を入力する。色抽出部17は,抽出領域の代表点の色と抽
出する色の範囲を指定するパラメータとにより色空間に
おける立体を規定し画像保持用メモリ14から抽出する色
の画像データを選び出す。データ削除部18は,削除領域
の代表点と削除する色の範囲を指定するパラメータとに
より抽出結果の画像から削除する色の画像データを取り
除く。
(57) [Summary] [Object] The present invention specifies an arbitrary color in a color image,
An object of the present invention is to enable a color extraction device and method of a color image by a computer 10 for extraction, classification and identification to enable accurate color extraction by a simple operation. [Structure] A representative point determining unit 15 inputs a point in a region to be extracted on a display screen or a region to be deleted from an extracted image by instructing the position input device 12, and determines a plurality of representative points based on the input. .. Range instruction input section 16
Enter a parameter that specifies the range of colors to be extracted or deleted. The color extraction unit 17 defines the solid in the color space by the color of the representative point of the extraction area and the parameter that specifies the range of the extracted color, and selects the image data of the color to be extracted from the image holding memory 14. The data deleting unit 18 removes the image data of the color to be deleted from the image of the extraction result by the representative point of the deletion area and the parameter designating the range of the color to be deleted.
Description
【0001】[0001]
【産業上の利用分野】本発明は,カラー画像中の任意の
色を指定し,抽出・分類・識別する計算機によるカラー
画像の色抽出装置および方法に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a color image color extracting apparatus and method by a computer for designating, extracting, classifying and identifying an arbitrary color in a color image.
【0002】色の抽出は,計算機とカラーモニタを利用
したデザインシステムや,コンピュータグラフィックス
の作成などにおいて,用いる色を調整する際に必要とさ
れている。商品(例えばパッケージや車など)やポスタ
ーなどの,計算機を用いたデザインでは,モニタ上で画
像を作成したり,または画像読取装置などにより,基と
なる画像を入力して,画像の各部分に色を割り当てたり
する。これらの画像を仕上げる過程で,割り当てた色を
調整・修正したりすることが必要となる。また,コンピ
ュータグラフィックスの作成では,作成画像の色の調整
などが必要とされている。Color extraction is required when adjusting colors used in a design system using a computer and a color monitor, creation of computer graphics, and the like. In computer-based designs such as products (for example, packages and cars) and posters, an image is created on a monitor, or a basic image is input by an image reading device, and each part of the image is input. Assign colors. In the process of finishing these images, it is necessary to adjust and correct the assigned colors. Further, in the creation of computer graphics, it is necessary to adjust the colors of created images.
【0003】このような計算機上での色の調整・修正な
どの利用においては,まず調整したい色や物体を指定
し,調整・修正の対象となる部分の抽出を行う必要があ
る。このための色の指定や抽出では,より一層の使いや
すいヒューマンインターフェイスを実現する技術や,抽
出精度を向上させる技術が必要とされている。In the use of color adjustment / correction on a computer, it is necessary to first specify a color or an object to be adjusted and extract a part to be adjusted / corrected. In order to specify and extract colors for this purpose, there is a need for technology that realizes an even easier-to-use human interface and technology that improves extraction accuracy.
【0004】[0004]
【従来の技術】従来の色の抽出方法としては,以下のよ
うな方法があった。 モニタなどに表示したカラー画像中の,抽出したい
領域の外周を,オペレータがライトペンなどでなぞって
指定する。2. Description of the Related Art There have been the following conventional color extraction methods. An operator traces the outer circumference of the area to be extracted in a color image displayed on a monitor with a light pen or the like.
【0005】また,色の画像データは,見掛けは同じ一
色に見えても,色のばらつきやノイズなどで多少の範囲
を決める必要がある。そのためには,抽出したい色のデ
ータの範囲を決める必要がある。この範囲の決め方とし
て,以下のような方法が取られている。In addition, even if the color image data looks like the same color, it is necessary to determine the range to some extent due to color variations and noise. For that purpose, it is necessary to determine the range of color data to be extracted. The following methods are used to determine this range.
【0006】 RGBデータの組み合わせで表される
画像データそれぞれに対して,抽出する色の範囲を決め
る。 RGBデータをHSV表色系などの色相,彩度,明
度で表される色空間中のデータに変換し,それぞれのパ
ラメータの域値を決めて色を分離・抽出する。A range of colors to be extracted is determined for each image data represented by a combination of RGB data. RGB data is converted into data in a color space represented by hue, saturation, and lightness such as the HSV color system, and the threshold value of each parameter is determined to separate and extract colors.
【0007】従来,以上のような方法によって,色の抽
出を行っていた。Conventionally, color extraction has been performed by the above method.
【0008】[0008]
【発明が解決しようとする課題】上記の従来技術におい
ては,それぞれ以下のような問題があった。 抽出領域をライトペンでなぞる作業が煩雑である。
また,マウスなどを持って作業している場合には,ライ
トペンに持ち替える手間がかかり,オペレータの負担が
大きい。The above-mentioned conventional techniques have the following problems, respectively. The work of tracing the extraction area with a light pen is complicated.
In addition, when working with a mouse or the like, it takes time and effort to switch to a light pen, which imposes a heavy burden on the operator.
【0009】 RGBデータで表される色は,人間の
直観と合わないため,それぞれのデータをどの程度の範
囲で指定すれば,希望する色を取り出せるかが分かりに
くい。Since the color represented by RGB data does not match the intuition of human beings, it is difficult to know how much range each data should be specified to extract a desired color.
【0010】 HSV表色系は,人間の感覚に比較的
良く合うが,範囲を決めるパラメータが3つあるため,
抽出範囲の指定が難しい。 画像として同じ色に見えても,実際の画像データに
はノイズなどによりばらつきがあるため,それらを含め
てある範囲の色を取り出す必要がある。この範囲の見積
りが難しい。The HSV color system is relatively good for human senses, but since there are three parameters that determine the range,
It is difficult to specify the extraction range. Even if the images look the same, the actual image data may vary due to noise, etc., so it is necessary to extract a range of colors including those. It is difficult to estimate this range.
【0011】 抽出結果が不満で(不要な色も抽出し
てしまった,または,抽出したい色が残ってしまったよ
うな場合)再度抽出し直そうとしたとき,最初の結果を
フィードバックして範囲を決めるパラメータを与え直す
ことが感覚的に難しい。When the extraction result is unsatisfactory (when unnecessary colors are also extracted, or when the color to be extracted remains), the first result is fed back and the range is returned. It is sensuously difficult to reassign the parameters that determine
【0012】以上のような問題点を解決するために,本
発明者等は,以下のような色抽出方法および色抽出装置
を考えている。 マウスやライトペンなど,オペレータが現在用いて
いる機器を利用し,抽出したい色(代表色)を指定する
ようにする。具体的には,抽出したい色の一点,または
複数の点を,マウスでクリック,またはライトペンで指
示することで,色を指定できるようにする。In order to solve the above problems, the present inventors consider the following color extraction method and color extraction device. The operator can specify the color (representative color) to be extracted by using the device currently used by the operator such as a mouse or light pen. Specifically, the color can be specified by clicking one point or a plurality of points of the color to be extracted with the mouse or designating with a light pen.
【0013】 抽出する色の範囲の指定方法として,
一つのパラメータによる指定を可能とする。指定した色
を中心として,三次元中の立体で色の範囲を規定する。
三次元の立体のサイズをひとつのパラメータで表せるよ
うな立体を用いる。As a method of specifying the range of colors to be extracted,
Allows specification with one parameter. A range of colors is defined in a three-dimensional solid centered on the specified color.
A solid that can represent the size of a three-dimensional solid with a single parameter is used.
【0014】以上の方法によれば,抽出したい色を確実
に取り出すことができ,また抽出した色の範囲が狭けれ
ばパラメータを大きくし,抽出した色の範囲が広ければ
パラメータを小さくするといった簡単な操作で,色の抽
出処理を行うことができる。According to the above method, it is possible to reliably extract the color to be extracted, and increase the parameter if the extracted color range is narrow, and decrease the parameter if the extracted color range is wide. It is possible to perform the color extraction process with various operations.
【0015】しかし,特定の物体を抽出したい場合,通
常,物体の表面に現れる色の範囲が広く,それに合わせ
てパラメータを大きくすると,画像中の抽出対象以外の
部分の似た色まで取り過ぎてしまう場合がある。逆に,
抽出対象以外の部分の似た色の抽出を避けるため,パラ
メータを小さくすると,抽出対象の物体の色に,取り残
しが発生する場合がある。However, when it is desired to extract a specific object, the range of colors that normally appear on the surface of the object is wide, and if the parameter is increased accordingly, even similar colors in parts other than the extraction target in the image are taken too far. It may end up. vice versa,
If the parameter is reduced in order to avoid extraction of a similar color in a portion other than the extraction target, the color of the extraction target object may be left behind.
【0016】カラー画像の色抽出では,このようなパラ
メータを調整しても,取り過ぎや取り残しが発生する場
合が多く,完全に望む領域だけを抽出することは難し
い。これらに対して,より一層抽出精度を向上させるこ
とができる技術的手段が必要とされている。In color extraction of a color image, even if such parameters are adjusted, too much or too much of the image is left behind, and it is difficult to extract only the desired region. For these, technical means that can further improve the extraction accuracy are needed.
【0017】本発明は上記問題点の解決を図り,操作が
簡単で,抽出の精度を向上できるような手段を提供する
ことを目的としている。It is an object of the present invention to solve the above problems, to provide a means which is easy to operate and which can improve the accuracy of extraction.
【0018】[0018]
【課題を解決するための手段】図1は本発明の原理説明
図である。図1において,10はCPUやメモリなどか
らなる画像データを処理する計算機,11はイメージス
キャナなどの画像入力装置,12はマウスやライトペン
などの位置入力装置,13はカラーディスプレイ,14
は入力画像データを蓄える画像保持用メモリ,15は画
面上の抽出または削除する領域内の点を入力し,複数の
代表点を決定する代表点決定部,16は色の範囲を指定
するパラメータを入力する範囲指示入力部,17は画像
保持用メモリ14から指定された色の画像データを選び
出す色抽出部,18は抽出結果の画像から削除する色の
画像データを取り除くデータ削除部,19はカラーディ
スプレイ13への表示データを格納する表示用メモリ,
20は画面上の特定の位置を示すマウスカーソルなどの
カーソルを表す。FIG. 1 illustrates the principle of the present invention. In FIG. 1, 10 is a computer for processing image data including a CPU and a memory, 11 is an image input device such as an image scanner, 12 is a position input device such as a mouse or a light pen, 13 is a color display, 14
Is an image storage memory for storing input image data, 15 is a representative point determination unit for inputting points in the area to be extracted or deleted on the screen, and a plurality of representative points is determined, and 16 is a parameter for designating a color range. An area instruction input unit for inputting, a color extracting unit 17 for selecting image data of a specified color from the image holding memory 14, a data deleting unit for removing image data of the color to be deleted from the image of the extraction result, and a color deleting unit. A display memory for storing display data on the display 13,
Reference numeral 20 represents a cursor such as a mouse cursor indicating a specific position on the screen.
【0019】イメージスキャナなどの画像入力装置11
から入力された,RGB信号などの入力画像データは,
画像保持用メモリ14に蓄えられる。この画像データ
は,まずディスプレイの表示用メモリ19にそのまま送
られ,カラー画像がカラーディスプレイ13に表示され
る。Image input device 11 such as an image scanner
Input image data such as RGB signals input from
It is stored in the image holding memory 14. The image data is first sent to the display memory 19 of the display as it is, and the color image is displayed on the color display 13.
【0020】色抽出の指示があった場合,代表点決定部
15は,位置入力装置12によってオペレータが指示し
た画像内の点の位置情報を入力し,それをもとに例えば
明度が異なる複数の代表点を選択する。範囲指示入力部
16は,抽出する色の範囲を指定するパラメータを入力
する。これにより,色抽出部17は,代表点決定部15
が決定した代表点の色と,色の範囲を指定するパラメー
タをもとに,画像保持用メモリ14から色の調整等のた
めに抽出すべき画像データを選び出す。When there is a color extraction instruction, the representative point determination section 15 inputs the position information of the point in the image designated by the operator by the position input device 12, and based on this, for example, a plurality of different brightness values are input. Select a representative point. The range instruction input unit 16 inputs a parameter that specifies a range of colors to be extracted. As a result, the color extraction unit 17 causes the representative point determination unit 15 to
Image data to be extracted from the image holding memory 14 for color adjustment or the like is selected based on the color of the representative point determined by the above and the parameter designating the color range.
【0021】抽出のし過ぎがあった場合,代表点決定部
15によって同様に削除対象なる領域の点の入力および
代表点の決定が行われる。また,範囲指示入力部16に
よって削除する色の範囲のパラメータが入力され,デー
タ削除部18は代表点の色と削除する色の範囲のパラメ
ータとにより,抽出し過ぎた部分の画像データを抽出結
果から外す。If too many points are extracted, the representative point determining section 15 similarly inputs the points of the area to be deleted and determines the representative points. Further, the range instruction input unit 16 inputs the parameter of the color range to be deleted, and the data deleting unit 18 extracts the image data of the overextracted portion by using the color of the representative point and the parameter of the color range to be deleted. Remove from.
【0022】請求項2記載のカラー画像の色抽出方法
は,抽出対象となるカラー画像をカラーディスプレイ1
3に表示する過程と,代表点決定部15により,表示し
た画像において抽出対象となる領域の一点または複数の
点を指示させて入力し,さらに,指示された点が含まれ
る領域から複数の代表点を選択する過程と,範囲指示入
力部16および色抽出部17により,複数の代表点の色
を中心とした色空間中の所定の大きさまたは指定された
大きさを持つ立体に含まれる色を持つ領域の画像データ
を抽出する過程とからなる。In the color extracting method of the color image according to claim 2, the color image to be extracted is displayed on the color display 1.
3 and the representative point determination unit 15 instructs and inputs one or more points in the area to be extracted in the displayed image, and further selects a plurality of representative points from the area including the instructed point. The process of selecting points and the colors included in a solid having a predetermined size or a specified size in a color space centered on the colors of a plurality of representative points by the range designation input unit 16 and the color extraction unit 17. The process of extracting the image data of the region having
【0023】請求項3記載のカラー画像の色抽出方法
は,請求項2記載の各処理過程に,さらに抽出した画像
データの部分をその範囲がわかる態様でカラーディスプ
レイ13に表示する過程と,代表点決定部15により抽
出対象から削除する領域の一点または複数の点を指示さ
せて入力し,削除対象として指示された点が含まれる領
域から複数の代表点を選択する過程と,データ削除部1
8により,複数の代表点の色を中心とした色空間中の所
定の大きさまたは指定された大きさを持つ立体に含まれ
る色を持つ領域の画像データを,前に抽出した画像デー
タから取り除く過程とからなる。According to a third aspect of the present invention, there is provided a color extracting method for a color image, wherein in each of the processing steps of the second aspect, a step of displaying a portion of the extracted image data on the color display 13 in such a manner that the range can be understood, A process of instructing and inputting one or a plurality of points of the region to be deleted from the extraction target by the point determining unit 15 and selecting a plurality of representative points from the region including the point designated as the deletion target, and the data deleting unit 1.
By 8, the image data of the area having the color included in the solid having the predetermined size or the specified size in the color space centered on the colors of the plurality of representative points is removed from the previously extracted image data. It consists of a process and.
【0024】[0024]
【作用】本発明では,代表点を複数指定し,これらの代
表点をもとに色空間中で複数の立体を用い,三次元的に
領域を規定し,色を抽出する。特に,画像データの分布
の特性を利用して,代表点を例えば同じ色相で明るい
点,暗い点,中間の明るさの点として立体を規定し,抽
出の精度を向上させるようにしている。さらに抽出結果
をオペレータに見せ,抽出し過ぎの部分(不要な部分)
を再度指定させて,その指定された点を代表点として色
空間中で領域を規定することにより,抽出画像から規定
された領域を削除する。According to the present invention, a plurality of representative points are designated, a plurality of solids are used in the color space based on these representative points, a region is three-dimensionally defined, and a color is extracted. In particular, the characteristic of the distribution of the image data is used to define a solid as a representative point, for example, a bright point, a dark point, and an intermediate brightness point with the same hue to improve the extraction accuracy. Furthermore, show the extraction result to the operator, and extract too much (unnecessary part)
Is specified again, and the specified point is used as the representative point to define the area in the color space, thereby deleting the specified area from the extracted image.
【0025】本発明では,このように複数の立体を用い
て色を抽出する手段を用いることにより,代表色の指定
や,抽出範囲の設定が簡単である利点に加え,抽出精度
の向上が可能であるという利点がある。また,抽出結果
をオペレータに見せ,抽出し残しがある場合は,不要な
部分の代表色を指定させて,抽出と同様な方法で不要な
部分を抽出結果の画像から削除できるため,簡単な操作
で抽出の精度を向上させることができる。In the present invention, by using the means for extracting a color by using a plurality of solids in this way, it is possible to improve the extraction accuracy in addition to the advantage that the representative color can be easily specified and the extraction range can be set easily. Has the advantage that In addition, if the extraction result is shown to the operator and there is an unextracted part, the representative color of the unnecessary part can be specified and the unnecessary part can be deleted from the image of the extraction result in the same way as the extraction. Can improve the accuracy of extraction.
【0026】[0026]
【実施例】図2は,本発明の実施例の処理フローを示
す。以下,図2に示す処理〜に従って説明する。Embodiment FIG. 2 shows a processing flow of an embodiment of the present invention. The processing will be described below in accordance with the processing shown in FIG.
【0027】 色の抽出対象となるカラー画像をカラ
ーディスプレイ13に表示する。 ディスプレイ上に表示したカラー画像中で,抽出す
る領域の一点または複数点をオペレータにマウス,ライ
トペンなどで指示させる。A color image that is a color extraction target is displayed on the color display 13. In the color image displayed on the display, let the operator point one or more points in the extraction area with a mouse or a light pen.
【0028】 指定された点をもとに,何点か(例え
ば明るいところ,暗いところ,中間の明るさのところな
ど)を代表点として選択する。選択の方法は後述する。 さらに,色空間中で領域を規定する範囲となる三次
元の立体の大きさを,オペレータに指定させ,入力す
る。例えば立体を球とすると,球の半径をパラメータと
して入力する。Based on the designated points, some points (for example, a bright place, a dark place, an intermediate brightness, etc.) are selected as representative points. The selection method will be described later. Furthermore, the operator specifies and inputs the size of the three-dimensional solid that is the range defining the area in the color space. For example, if the solid is a sphere, the radius of the sphere is input as a parameter.
【0029】 指定された大きさで色空間中における
代表点の色を中心とした領域を規定し,画像保持用メモ
リ14を参照して,そこに含まれる画像データを抽出す
る。 抽出結果を色を変えるなどして見分けがつくように
カラーディスプレイ13に表示する。A region centered on the color of the representative point in the color space is defined by the designated size, and the image holding memory 14 is referenced to extract the image data contained therein. The extraction result is displayed on the color display 13 so that it can be distinguished by changing the color.
【0030】 オペレータに確認させ,抽出結果をオ
ペレータが見て満足ならば,抽出処理を終了する。不満
足ならば,処理へ戻り,抽出の範囲を変更し,再度抽
出処理および抽出結果の表示を行う。結果が満足の入力
指示があるまで,以上の処理を繰り返す。The operator confirms the result, and if the operator sees the extraction result and is satisfied, the extraction process is terminated. If it is not satisfied, the process is returned to, the extraction range is changed, and the extraction process and the extraction result are displayed again. The above process is repeated until the input instruction is satisfied with the result.
【0031】図3は,本発明の実施例における抽出処理
説明図であり。特に,図3の(イ)は抽出対象領域の指
定を説明するための図,(ロ)は色空間における複数の
立体が占める領域で色を抽出するようすを説明するため
の図である。FIG. 3 is an explanatory diagram of extraction processing in the embodiment of the present invention. In particular, FIG. 3A is a diagram for explaining the designation of the extraction target region, and FIG. 3B is a diagram for explaining the color extraction in the region occupied by a plurality of solids in the color space.
【0032】前述した図2に示す処理では,例えば図
3の(イ)に示すように,対象画像Aをカラーディスプ
レイ13に表示する。図2に示す処理により,オペレ
ータは,マウスなどを操作し,抽出対象領域の一点また
は複数点をカーソル20で指示する。マウスボタンが押
されたとき,カーソル20の位置を読み取り,その点を
指定点と認識する。In the above-described processing shown in FIG. 2, the target image A is displayed on the color display 13 as shown in FIG. According to the processing shown in FIG. 2, the operator operates a mouse or the like to designate one point or a plurality of points of the extraction target area with the cursor 20. When the mouse button is pressed, the position of the cursor 20 is read and the point is recognized as the designated point.
【0033】抽出する色の範囲は,図3の(ロ)に示す
ような色空間における立体によって定められる。この例
では,色空間は,色相,彩度,明度の座標系によって決
まる空間になっている。この色空間中で,指定された点
から定められた代表点31を中心とする3つの球体30
により領域を規定し,画像データを抽出するようになっ
ている。The range of colors to be extracted is determined by the solid in the color space as shown in FIG. In this example, the color space is a space determined by the coordinate system of hue, saturation, and lightness. Three spheres 30 centered on a representative point 31 defined from designated points in this color space
The area is defined by and the image data is extracted.
【0034】データを抽出する範囲は,球の半径により
指定されている。なお,抽出したい色は,通常の画像デ
ータ処理では同じ色相であることが多いため,この例で
は,3つの代表点31が,色相方向には狭く,明度,彩
度の平面上には広く分布するような関係に定めている。The range for extracting data is specified by the radius of the sphere. Since the colors to be extracted are often the same hue in normal image data processing, in this example, the three representative points 31 are narrow in the hue direction and widely distributed on the plane of lightness and saturation. The relationship has been established.
【0035】図4は,本発明の実施例による代表点の決
定説明図であって,指定された抽出領域のデータから,
明度が大きい点,小さい点,中間の明度の点を求めるよ
うすを示す。FIG. 4 is an explanatory diagram for determining representative points according to the embodiment of the present invention.
The following shows how to find points with high and low brightness and points with intermediate brightness.
【0036】指定された点からの代表点の選択・決定
は,例えば次のように行う。指定された一点または複数
の点の近辺の領域の画像データで,同じ色相のものを調
べ,それらのデータの明るさ(例えば明度値)を横軸,
データの出現頻度を縦軸として分布を求める。このよう
に抽出領域の明るい部分,暗い部分,中間の明るさの部
分の複数の点を,ランダムに指定すると,パッケージや
車などの商品の画像など,一般の多く画像では,およそ
図4に示すような分布になることが経験的にわかってい
る。The selection / determination of the representative point from the designated points is performed as follows, for example. The image data of the area around the specified one or more points are checked for the same hue, and the brightness (for example, brightness value) of those data is plotted on the horizontal axis,
Distribution is calculated with the frequency of occurrence of data as the vertical axis. In this way, when a plurality of points in the bright area, dark area, and intermediate brightness area of the extraction area are specified at random, in many general images, such as images of products such as packages and cars, it is shown in Fig. 4. It is empirically known that such a distribution will be obtained.
【0037】そこで,低明度,高明度,中間明度で出現
頻度が最大の明度値の点を,代表点とする。明度に対す
る出現頻度が,図4のように3つの山を形成しない場合
には,出現頻度が最大の明度の点(通常中間明度の点)
を挟んで,高,低明度方向に適当に離れた明度値の点
を,代表点として選択すればよい。Therefore, a point having a lightness value with a maximum appearance frequency among low brightness, high brightness, and intermediate brightness is set as a representative point. When the appearance frequency with respect to the lightness does not form three peaks as shown in Fig. 4, the lightness with the highest appearance frequency (usually the intermediate lightness point)
A lightness value point appropriately separated in the high and low lightness directions with respect to each other may be selected as a representative point.
【0038】図5は,本発明の実施例に係る複数の立体
による抽出説明図であって,複数の立体の大きさをそれ
ぞれ変えて,色空間中で領域を規定するようすを示す。
これは抽出に使用する色空間の特徴による。FIG. 5 is an explanatory diagram of extraction by a plurality of solids according to the embodiment of the present invention, showing that the sizes of the plurality of solids are changed to define a region in the color space.
This depends on the characteristics of the color space used for extraction.
【0039】例えばCIELABやCIELUVなどの
均等色空間では,人間の見える色の差と色空間中の色の
距離が対応するため,色は比較的均一に分布し,色の抽
出が行いやすい。この空間は,色彩工学でよく知られて
いるように,L*が明るさを表し,a*b*平面の位置
で色の違いを表す。原点に近い程低彩度の色であり,離
れて外側に行く程高彩度の色を表す。色の分布は,白
(高明度,低彩度),黒(低明度,低彩度)を上下の2
つを頂点とし,中間明度の部分が膨らんだ形をしてい
る。このため,高明度や低明度の部分を抽出する立体の
大きさは小さく,中間明度の色を抽出する立体は大きい
方が抽出の精度がよくなる。For example, in a uniform color space such as CIELAB or CIEUV, since the difference between the colors seen by a human and the distance between the colors in the color space correspond to each other, the colors are relatively evenly distributed and the colors can be easily extracted. As is well known in color engineering, L * represents the brightness of this space, and the color difference is represented by the position of the a * b * plane. The closer to the origin, the lower the saturation, and the further away from the origin, the higher the saturation. There are two color distributions, white (high brightness, low saturation) and black (low brightness, low saturation).
It has a shape with a bulge in the middle lightness, with one as the apex. Therefore, the size of the solid for extracting the high brightness and low brightness portions is small, and the larger the solid for extracting the color of the intermediate brightness is, the better the extraction accuracy is.
【0040】すなわち,図5に示すように,中間明度の
部分の球体30Bを大きくとり,高明度・低明度の部分
の球体30A,30Cを小さめにとる。この比率をあら
かじめ内部で定めてもよく,またパラメータの入力によ
って決めてもよい。That is, as shown in FIG. 5, the sphere 30B in the intermediate lightness portion is made large and the spheres 30A, 30C in the high and low lightness portions are made small. This ratio may be determined internally in advance or may be determined by inputting parameters.
【0041】図6は,抽出結果のデータから不要の領域
を削除する場合の,色抽出処理の流れを示す。図2に示
す実施例の処理の流れと異なるのは,抽出し過ぎの部分
を削除する処理を追加したことである。本実施例によれ
ば,より一層の高精度な色の抽出が可能になる。以下,
図6に示す処理(1) 〜(14)を説明する。FIG. 6 shows the flow of color extraction processing when an unnecessary area is deleted from the extraction result data. The difference from the process flow of the embodiment shown in FIG. 2 is that a process of deleting an overextracted portion is added. According to this embodiment, it is possible to extract colors with higher accuracy. Less than,
The processes (1) to (14) shown in FIG. 6 will be described.
【0042】(1) 〜(7) の処理は,図2で説明した処理
〜と同様である。 (8) 抽出し過ぎがあるかどうかをオペレータに問い合わ
せ,抽出し過ぎがない場合,処理を終了する。抽出し過
ぎがある場合には,処理(9) へ進む。The processes (1) to (7) are the same as the processes described in FIG. (8) Ask the operator whether there is too much extraction, and if there is not too much extraction, end the process. If there is too much extraction, proceed to processing (9).
【0043】(9) ディスプレイ上に表示した抽出結果の
カラー画像中で,抽出対象画像から取り除く部分の領域
の一点または複数点をオペレータにマウス,ライトペン
などで指示させる。(9) In the color image of the extraction result displayed on the display, the operator is made to instruct one or more points of the area to be removed from the extraction target image with a mouse or a light pen.
【0044】(10)指定された点をもとに,何点か(例え
ば明るいところ,暗いところ,中間の明るさのところな
ど)を代表点として選択し,決定する。この選択の方法
は,抽出領域の代表点の選択方法と同様でよい。(10) Based on the designated points, some points (for example, a bright place, a dark place, an intermediate brightness, etc.) are selected as representative points and determined. This selection method may be the same as the selection method of the representative points of the extraction area.
【0045】(11)色空間中で領域を規定する範囲となる
三次元の立体の大きさを,オペレータに指定させ,色空
間において削除範囲の大きさを定める。 (12)色空間中における代表点の色を中心とした領域を規
定し,抽出結果の画像データから,該当する画像データ
の部分を取り除く。(11) The operator designates the size of the three-dimensional solid which is the range defining the area in the color space, and the size of the deletion range is defined in the color space. (12) A region centered on the color of the representative point in the color space is defined, and the corresponding image data part is removed from the image data of the extraction result.
【0046】(13)その削除結果の画像データをカラーデ
ィスプレイ13に表示する。 (14)オペレータに確認させ,削除結果をオペレータが見
て満足ならば,抽出処理を終了する。不満足ならば,処
理(11)へ戻り,削除の範囲を変更し,再度削除処理およ
び削除結果の表示を行う。結果が満足の入力指示がある
まで,以上の処理を繰り返す。(13) The image data resulting from the deletion is displayed on the color display 13. (14) Ask the operator to confirm, and if the operator is satisfied with the result of deletion, the extraction process is terminated. If not satisfied, the process returns to the processing (11), the deletion range is changed, and the deletion processing and the deletion result are displayed again. The above process is repeated until the input instruction is satisfied with the result.
【0047】以上のようにデータの削除の手順は抽出の
場合と同様,カラーディスプレイ13のモニタ上でオペ
レータが不要な領域の代表点を指定し,その点を中心と
して立体により色空間中で領域を規定し,そこに含まれ
るデータを抽出結果のデータから削除するようにする。As described above, the procedure for deleting data is the same as in the case of extraction, in which the operator designates a representative point of the unnecessary area on the monitor of the color display 13, and the point is used as the center of the area in the color space in a three-dimensional manner. Is specified, and the data contained therein is deleted from the data of the extraction result.
【0048】図7は,本発明の実施例による抽出結果の
修正例説明図である。図7において,70はカラーディ
スプレイ13のディスプレイ画面,71は削除したい領
域の画面上における範囲を示す小領域,Aは抽出対象画
像,B1〜B2は抽出し残し部分,C1〜C3は抽出し
過ぎ部分を表す。FIG. 7 is an explanatory diagram of a modification example of the extraction result according to the embodiment of the present invention. In FIG. 7, 70 is the display screen of the color display 13, 71 is a small area indicating the range of the area to be deleted on the screen, A is the image to be extracted, B1 and B2 are the unextracted portions, and C1 to C3 are overextracted. Represents a part.
【0049】図6に示す抽出結果からのデータ削除処理
を行う方式は,抽出の範囲を広げていくと抽出し残しは
なくなるが,逆に抽出し過ぎが発生し,高精度な抽出が
不可能な場合に効果的である。抽出においては,少し広
めに抽出領域を指定し,抽出し残し部分B1,B2をな
くし,抽出し過ぎ部分C1〜C3を削除するようにする
ことで,高精度な抽出を実現できる。In the method of deleting data from the extraction result shown in FIG. 6, when the extraction range is widened, there is no extraction left, but overextraction occurs conversely, and high-precision extraction is impossible. It is effective in all cases. In the extraction, by specifying the extraction area a little wider, eliminating the remaining portions B1 and B2 to be extracted and deleting the overextracted portions C1 to C3, high-precision extraction can be realized.
【0050】さらに,図7に示すように,画像全面にお
ける一部分に対して,削除したい小領域71を指定でき
るようにし,その部分の画像データに関してのみ,図6
で説明したような削除処理(代表色指定とデータ削除)
を行えば,より一層の高精度なデータ削除が可能であ
り,さらに抽出処理の精度の向上が実現できることにな
る。Further, as shown in FIG. 7, a small area 71 to be deleted can be designated for a part of the entire surface of the image, and only the image data of the part can be designated as shown in FIG.
Deletion process (representative color designation and data deletion) described in
By doing so, it is possible to delete the data with even higher accuracy and further improve the accuracy of the extraction process.
【0051】[0051]
【発明の効果】以上説明したように,本発明によれば,
代表色の指定や,抽出範囲の設定が簡単である利点に加
え,抽出の精度を向上させることができるという利点が
ある。さらに,オペレータが見て抽出し残しがある場合
には,不要な部分の代表色を指定し,抽出と同様な方法
で不要な部分を抽出結果から削除できるため,簡単で操
作性がよく,より一層抽出の精度を向上させた画像処理
装置を実現することができる。As described above, according to the present invention,
In addition to the advantage that the representative color can be specified and the extraction range can be set easily, there is an advantage that the extraction accuracy can be improved. Furthermore, if the operator sees and leaves an unextracted part, he or she can specify the representative color of the unnecessary part and delete the unnecessary part from the extraction result in the same way as the extraction, so it is easy and easy to operate, and more It is possible to realize an image processing device in which the extraction accuracy is further improved.
【図1】本発明の原理説明図である。FIG. 1 is a diagram illustrating the principle of the present invention.
【図2】本発明の実施例の処理フローを示す図である。FIG. 2 is a diagram showing a processing flow of an embodiment of the present invention.
【図3】本発明の実施例における抽出処理説明図であ
る。FIG. 3 is an explanatory diagram of extraction processing according to the embodiment of this invention.
【図4】本発明の実施例による代表点の決定説明図であ
る。FIG. 4 is an explanatory diagram of determining representative points according to an embodiment of the present invention.
【図5】本発明の実施例に係る複数の立体による抽出説
明図である。FIG. 5 is an explanatory diagram of extraction by a plurality of solids according to the embodiment of the present invention.
【図6】本発明の実施例によるデータ削除を追加した処
理フローを示す図である。FIG. 6 is a diagram showing a processing flow in which data deletion is added according to an embodiment of the present invention.
【図7】本発明の実施例による抽出結果の修正例説明図
である。FIG. 7 is a diagram illustrating a modification example of the extraction result according to the embodiment of this invention.
10 計算機 11 画像入力装置 12 位置入力装置 13 カラーディスプレイ 14 画像保持用メモリ 15 代表点決定部 16 範囲指示入力部 17 色抽出部 18 データ削除部 19 表示用メモリ 20 カーソル 10 Computer 11 Image Input Device 12 Position Input Device 13 Color Display 14 Image Holding Memory 15 Representative Point Determining Section 16 Range Indication Input Section 17 Color Extracting Section 18 Data Deleting Section 19 Display Memory 20 Cursor
Claims (3)
ラーディスプレイ(13)と,ディスプレイ画面上における
位置を入力する位置入力装置(12)とを備え,前記カラー
ディスプレイ(13)に表示されたカラー画像中の色を前記
位置入力装置(12)により指定させ,その色の範囲を抽出
するカラー画像の色抽出装置において,色の抽出対象と
なる画像データを保持する画像保持用メモリ(14)と,デ
ィスプレイ画面における抽出対象の領域または抽出画像
から削除したい領域内の点を前記位置入力装置(12)によ
り指示させて入力し,その入力に基づき複数の代表点を
決定する代表点決定手段(15)と,抽出または削除する色
の範囲を指定するパラメータを入力する範囲指示入力手
段(16)と,前記抽出領域の代表点の色と前記抽出する色
の範囲を指定するパラメータとにより前記画像保持用メ
モリ(14)から抽出する色の画像データを選び出す色抽出
手段(17)と,前記削除領域の代表点と前記削除する色の
範囲を指定するパラメータとにより抽出結果の画像から
削除する色の画像データを取り除くデータ削除手段(18)
とを備えたことを特徴とするカラー画像の色抽出装置。1. A computer (10) for processing image data, a color display (13), and a position input device (12) for inputting a position on a display screen, which are displayed on the color display (13). In a color image color extracting device for extracting a range of the color by specifying a color in the color image by the position input device (12), an image holding memory (14) for holding image data to be a color extraction target. ) And a point in the area to be extracted on the display screen or in the area to be deleted from the extracted image by the position input device (12) to input, and a representative point determining means for determining a plurality of representative points based on the input (15), a range designating input means (16) for inputting a parameter designating a range of colors to be extracted or deleted, and a parameter designating a color of a representative point of the extraction region and a range of the color to be extracted. From the image of the extraction result by the color extraction means (17) for selecting the image data of the color to be extracted from the image holding memory (14), and the parameter that specifies the representative point of the deletion area and the range of the color to be deleted. Data deletion means to remove the image data of the color to be deleted (18)
And a color image extracting device for a color image.
り,カラーディスプレイ(13)に表示されたカラー画像中
の抽出対象領域の点を指定させ,その点の代表色を決定
して,その色の範囲を抽出するカラー画像の色抽出方法
において,抽出対象となるカラー画像をディスプレイに
表示する過程と,表示した画像において抽出対象となる
領域の一点または複数の点を指示させて入力する過程
と,指示された点が含まれる領域から複数の代表点を選
択する過程と,選択した複数の代表点の色を中心とした
色空間中の所定の大きさまたは指定された大きさを持つ
立体に含まれる色を持つ領域の画像データを抽出する過
程とを備えたことを特徴とするカラー画像の色抽出方
法。2. A computer (10) for processing image data causes a point of an extraction target area in a color image displayed on a color display (13) to be designated, a representative color of the point is determined, and the color is determined. In the color extraction method of the color image for extracting the range, a process of displaying the color image to be extracted on the display, and a process of indicating and inputting one or more points of the region to be extracted in the displayed image. , The process of selecting a plurality of representative points from the area that includes the designated points, and a solid with a predetermined size or a specified size in the color space centered on the colors of the selected plurality of representative points And a step of extracting image data of an area having a contained color.
り,カラーディスプレイ(13)に表示されたカラー画像中
の抽出対象領域の点を指定させ,その点の代表色を決定
して,その色の範囲を抽出するカラー画像の色抽出方法
において,抽出対象となるカラー画像をディスプレイに
表示する過程と,表示した画像において抽出対象となる
領域の一点または複数の点を指示させて入力する過程
と,指示された点が含まれる領域から複数の代表点を選
択する過程と,選択した複数の代表点の色を中心とした
色空間中の所定の大きさまたは指定された大きさを持つ
立体に含まれる色を持つ領域の画像データを抽出する過
程と抽出した画像データの部分をその範囲がわかる態様
でディスプレイに表示する過程と,抽出対象から削除す
る領域の一点または複数の点を指示させて入力する過程
と,削除対象として指示された点が含まれる領域から複
数の代表点を選択する過程と,選択した複数の代表点の
色を中心とした色空間中の所定の大きさまたは指定され
た大きさを持つ立体に含まれる色を持つ領域の画像デー
タを,前に抽出した画像データから取り除く過程とを備
えたことを特徴とするカラー画像の色抽出方法。3. A computer (10) for processing image data specifies a point of an extraction target area in a color image displayed on a color display (13), determines a representative color of the point, and determines the color. In the color extraction method of the color image for extracting the range, the process of displaying the color image to be extracted on the display and the process of instructing and inputting one or more points of the region to be extracted in the displayed image. , The process of selecting a plurality of representative points from the area that includes the designated points, and a solid with a predetermined size or a specified size in the color space centered on the colors of the selected plurality of representative points The process of extracting the image data of the region having the included color, the process of displaying the portion of the extracted image data on the display in a manner that the range can be understood, and one or more points of the region to be deleted from the extraction target. And inputting, selecting a plurality of representative points from the area including the point designated as a deletion target, and a predetermined size in the color space centered on the colors of the selected plurality of representative points. Or a step of removing image data of a region having a color included in a solid having a specified size from the previously extracted image data, a color extracting method of a color image.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3292565A JPH05128224A (en) | 1991-11-08 | 1991-11-08 | Color extracting device for color picture and method therefor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3292565A JPH05128224A (en) | 1991-11-08 | 1991-11-08 | Color extracting device for color picture and method therefor |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH05128224A true JPH05128224A (en) | 1993-05-25 |
Family
ID=17783418
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP3292565A Withdrawn JPH05128224A (en) | 1991-11-08 | 1991-11-08 | Color extracting device for color picture and method therefor |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH05128224A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000048200A (en) * | 1998-07-31 | 2000-02-18 | Canon Inc | Region of interest extraction method and apparatus, and storage medium |
JP2006172381A (en) * | 2004-12-20 | 2006-06-29 | Dkk Toa Corp | Image observation method and apparatus for implementing the method |
US7385739B2 (en) | 2001-09-14 | 2008-06-10 | Canon Kabushiki Kaisha | Image processing method and apparatus for color conversion accommodating device non-linearity |
JP2009205498A (en) * | 2008-02-28 | 2009-09-10 | Nippon Telegr & Teleph Corp <Ntt> | Information presentation device, information presentation method, information presentation program, and recording medium recorded with the program |
-
1991
- 1991-11-08 JP JP3292565A patent/JPH05128224A/en not_active Withdrawn
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000048200A (en) * | 1998-07-31 | 2000-02-18 | Canon Inc | Region of interest extraction method and apparatus, and storage medium |
US7385739B2 (en) | 2001-09-14 | 2008-06-10 | Canon Kabushiki Kaisha | Image processing method and apparatus for color conversion accommodating device non-linearity |
JP2006172381A (en) * | 2004-12-20 | 2006-06-29 | Dkk Toa Corp | Image observation method and apparatus for implementing the method |
JP2009205498A (en) * | 2008-02-28 | 2009-09-10 | Nippon Telegr & Teleph Corp <Ntt> | Information presentation device, information presentation method, information presentation program, and recording medium recorded with the program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5475507A (en) | Color image processing method and apparatus for same, which automatically detects a contour of an object in an image | |
EP0441359A2 (en) | Method of and apparatus for extracting image contour data | |
KR20000068697A (en) | Image data processing device and method, and transmission medium | |
US20220270232A1 (en) | Apparatus for adjusting parameter related to defect detection for image processing for image processing, method for information processing, and program | |
JPH05250472A (en) | Method and device for preparing fine mask of boundary on image in concerned area so as to separate area from remaining parts of image | |
JPH10302061A (en) | Digital processing method combining color cast removal and contrast emphasis of digital color image | |
JPH05119752A (en) | Color image color adjusting method and color adjusting apparatus | |
EP0235902B1 (en) | Digital image processing | |
US6728407B1 (en) | Method for automatically determining trackers along contour and storage medium storing program for implementing the same | |
US20110187721A1 (en) | Line drawing processing apparatus, storage medium storing a computer-readable program, and line drawing processing method | |
JPH05128224A (en) | Color extracting device for color picture and method therefor | |
EP1030270B1 (en) | Image binarization method and system | |
JP2720807B2 (en) | Scenario editing device | |
JP4966912B2 (en) | Line drawing processing apparatus, line drawing processing method and program | |
JP2936599B2 (en) | Color image processing equipment | |
JP2001209816A (en) | Figure creation method | |
JP2001291097A (en) | Image processing method, image processor, image processing program and computer readable recording medium | |
JP6930099B2 (en) | Image processing device | |
JP2000200359A (en) | Processor and method for image processing and recording medium where image processing program is recorded | |
JPS62204379A (en) | Picture processor | |
JPH05128225A (en) | Color designation / extraction device and color designation / extraction method | |
JP3882396B2 (en) | Movie processing apparatus and recording medium | |
JPH06333008A (en) | Input device for designation of image contour | |
EP0263584A2 (en) | Scan-in polygonal extraction of video images | |
JPH0736173A (en) | Image clipping method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Application deemed to be withdrawn because no request for examination was validly filed |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 19990204 |