JPH08123940A - Method and device for extracting picture area - Google Patents
Method and device for extracting picture areaInfo
- Publication number
- JPH08123940A JPH08123940A JP6256769A JP25676994A JPH08123940A JP H08123940 A JPH08123940 A JP H08123940A JP 6256769 A JP6256769 A JP 6256769A JP 25676994 A JP25676994 A JP 25676994A JP H08123940 A JPH08123940 A JP H08123940A
- Authority
- JP
- Japan
- Prior art keywords
- area
- image
- setting
- extracting
- extraction
- 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 description 10
- 238000000605 extraction Methods 0.000 claims abstract description 32
- 238000001514 detection method Methods 0.000 claims description 6
- 239000000284 extract Substances 0.000 abstract description 4
- 238000006243 chemical reaction Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 239000008186 active pharmaceutical agent Substances 0.000 description 2
- 230000006870 function Effects 0.000 description 1
- 230000012447 hatching Effects 0.000 description 1
Landscapes
- Processing Or Creating Images (AREA)
- Image Analysis (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、画像の任意の領域を抽
出して、画像処理を行う画像領域抽出装置及びその画像
領域抽出方法に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image area extracting apparatus and an image area extracting method for extracting an arbitrary area of an image and performing image processing.
【0002】[0002]
【従来の技術】従来、画像の任意の領域を抽出して、画
像処理を行う手法としては、種々の提案がなされ、実施
されている。例えば、従来例1として、マウスにより任
意の矩形領域、または円を描き、その囲まれた領域のみ
の画像を抽出し、各種の画像処理を行うという手法があ
る。2. Description of the Related Art Conventionally, various proposals have been made and carried out as a method for performing image processing by extracting an arbitrary region of an image. For example, as a first conventional example, there is a method of drawing an arbitrary rectangular area or circle with a mouse, extracting an image of only the enclosed area, and performing various kinds of image processing.
【0003】また、従来例2として、マウスにより抽出
したい領域の境界をなぞりながら領域を抽出し、各種の
画像処理を行うという手法がある。また、従来例3とし
て、画像の輝度、彩度、色相、または色度、R,G,B
の値に対し、適当なしきい値を設定することにより任意
の画像領域を抽出し、各種の画像処理を行うという手法
がある。Further, as a second conventional example, there is a method of extracting a region while tracing the boundary of the region to be extracted with a mouse and performing various kinds of image processing. In addition, as Conventional Example 3, image brightness, saturation, hue, or chromaticity, R, G, B
There is a method in which an arbitrary image area is extracted by setting an appropriate threshold value for the value of and various kinds of image processing are performed.
【0004】[0004]
【発明が解決しようとする課題】しかしながら、上記従
来例1においては、複雑な形状の領域は矩形または円で
は抽出できないという欠点がある。また、上記従来例2
においては、従来例1と同様に、複雑な形状の領域の抽
出は難かしいという欠点がある。さらに、上記従4来例
3においては、しきい値の設定に時間がかかったり、ま
た抽出したい領域が正しく抽出できないことが多いとい
う欠点がある。However, the above-mentioned conventional example 1 has a drawback that a region having a complicated shape cannot be extracted as a rectangle or a circle. Further, the above-mentioned conventional example 2
However, as in the first conventional example, there is a drawback in that it is difficult to extract a region having a complicated shape. Further, in the above-mentioned Third related example 4, there is a drawback that it takes time to set the threshold value and the region to be extracted cannot be correctly extracted in many cases.
【0005】そこで本発明は、上記問題点に鑑みてなさ
れたものであり、画像の任意の領域を容易に正しく抽出
し、その抽出した領域に対して色補正や階調補正などの
画像処理を行うことができる画像領域抽出装置を提供す
ることを目的とする。Therefore, the present invention has been made in view of the above problems, and it is possible to easily and correctly extract an arbitrary area of an image and perform image processing such as color correction and gradation correction on the extracted area. It is an object of the present invention to provide an image area extracting device that can perform the operation.
【0006】[0006]
【課題を解決するための手段】上記目的を達成するため
に、請求項1に記載の画像領域抽出装置は、電子映像化
された画像の中で、おおまかに第2領域を指定する第2
領域指定手段と、この第2領域指定手段により指定され
た第2領域内の比較的微小な第1領域を指定する第1領
域指定手段と、この第1領域指定手段により指定された
第1領域内の画素の映像パラメータの平均値を演算する
演算手段と、この演算手段により得られた上記映像パラ
メータの平均値に基づいて、領域抽出のための所定の余
裕を見込んだ上記映像パラメータの上限及び下限のしき
い値を設定する設定手段とを具備し、上記第2領域指定
手段により指定された上記第2領域内の画素のうち、上
記設定手段により設定された上記上限及び下限のしきい
値で決定される範囲内の映像パラメータ値を有する画素
のみを抽出することを特徴とする。In order to achieve the above object, an image area extraction device according to a first aspect of the present invention provides a second area that roughly specifies a second area in an electronic imaged image.
Area designating means, first area designating means for designating a relatively small first area within the second area designated by the second area designating means, and first area designated by the first area designating means Calculating means for calculating the average value of the image parameters of the pixels in the inside, and based on the average value of the image parameters obtained by the calculating means, the upper limit of the image parameters in consideration of a predetermined margin for area extraction, and Setting means for setting a lower limit threshold value, and the upper and lower limit threshold values set by the setting means among the pixels in the second area designated by the second area designating means. It is characterized in that only pixels having an image parameter value within the range determined by are extracted.
【0007】またさらに、請求項2に記載の画像領域抽
出装置は、上記映像パラメータ値が、画素を特徴付けす
るパラメータである、明度、輝度、彩度、色相、または
色度のうちの少なくとも1つにより定義されることを特
徴とする。Further, in the image area extracting apparatus according to the second aspect, the image parameter value is at least one of brightness, luminance, saturation, hue, or chromaticity, which is a parameter characterizing a pixel. It is defined by two.
【0008】またさらに、請求項3に記載の画像領域抽
出装置は、電子映像化された画像の一部を抽出する画像
領域抽出装置であり、上記画像の大まかな抽出範囲であ
る第2領域を設定する第2領域設定ステップと、抽出基
準となる色を特定するため、上記第2領域設定ステップ
により設定された第2領域内の微小な第1領域を設定す
る第1領域設定ステップと、上記第1領域設定ステップ
により設定された第1領域内の画素の特徴パラメータの
平均値を演算したのち表示出力する演算表示ステップ
と、上記第1領域の特徴パラメータの平均値に基づいて
上記第2領域内の特徴領域を抽出するための余裕値を設
定し、上記特徴パラメータの平均値と、上記余裕値とに
基づいて、特徴領域抽出の基準となる特徴パラメータの
上限値と下限値との検出しきい値をそれぞれ確定する検
出しきい値確定ステップと、上記第2領域内の特徴領域
を抽出するキーとなる抽出パラメータを選択入力する選
択入力ステップと、上記検出しきい値と上記抽出パラメ
ータとに基づいて、上記第2領域内の特徴領域を抽出す
る領域抽出ステップとを有することを特徴とする。Furthermore, an image area extracting device according to a third aspect of the invention is an image area extracting device for extracting a part of an electronic imaged image, and a second area which is a rough extraction range of the image is extracted. A second area setting step for setting, a first area setting step for setting a minute first area in the second area set by the second area setting step in order to specify a color serving as an extraction reference, and A calculation and display step of calculating and outputting the average value of the characteristic parameters of the pixels in the first area set by the first area setting step, and the second area based on the average value of the characteristic parameters of the first area Set a margin value for extracting the characteristic region in the, the average value of the characteristic parameter, based on the margin value, of the upper limit value and the lower limit value of the feature parameter serving as a reference of the characteristic region extraction A detection threshold value setting step of setting output threshold values, a selection input step of selecting and inputting an extraction parameter serving as a key for extracting a characteristic region in the second region, the detection threshold value and the extraction parameter, Area extraction step for extracting the characteristic area in the second area based on the above.
【0009】[0009]
【作用】本発明の画像領域抽出装置においては、電子映
像化された画像の中で、おおまかに第2領域が第2領域
指定手段により指定され、この第2領域指定手段により
指定された第2領域内の比較的微小な第1領域が第1領
域指定手段により指定される。さらに、この第1領域指
定手段により指定された第1領域内の画素の映像パラメ
ータの平均値が演算手段により演算され、この演算手段
により得られた上記映像パラメータの平均値に基づい
て、領域抽出のための所定の余裕を見込んだ上記映像パ
ラメータの上限及び下限のしきい値が設定手段により設
定される。そして、上記第2領域指定手段により指定さ
れた上記第2領域内の画素のうち、上記設定手段により
設定された上記上限及び下限のしきい値で決定される範
囲内の映像パラメータ値を有する画素のみが抽出され
る。In the image area extracting apparatus of the present invention, the second area is roughly specified by the second area specifying means in the electronic imaged image, and the second area is specified by the second area specifying means. A relatively small first area in the area is designated by the first area designating means. Further, the average value of the video parameters of the pixels in the first area designated by the first area designating means is calculated by the calculating means, and the area extraction is performed based on the average value of the video parameters obtained by the calculating means. The upper and lower thresholds of the video parameters are set by the setting means in consideration of a predetermined margin. Then, among the pixels in the second area designated by the second area designating means, pixels having an image parameter value within a range determined by the upper and lower threshold values set by the setting means. Only is extracted.
【0010】[0010]
【実施例】以下、図面を参照して本発明の実施例を説明
する。図1は、本発明に係る実施例の画像領域抽出装置
の構成を示すブロック図である。Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the configuration of an image area extracting apparatus according to an embodiment of the present invention.
【0011】この画像領域抽出装置において、デジタル
画像データに対し、所望の画像処理を実行したり、接続
されている各部の制御を行うワークステーション(以下
WSと記す)1には、画像データを入力し、デジタルデ
ータに変換するためのスキャナ2、画像領域抽出のため
の特徴パラメータの入力や画像領域の指定などを行うマ
ウス3及びキーボード4、画像の表示や画像領域抽出の
ための特徴パラメータなどの表示を行うモニタテレビ
5、画像処理実行後の表示画像などを出力するプリンタ
6、デジタル画像データなどを記憶し、WS1との間で
それらの書き込みや読み出しを行う外部記憶装置7がそ
れぞれ接続される。In this image area extracting apparatus, image data is input to a workstation (hereinafter referred to as WS) 1 which executes desired image processing on digital image data and controls each connected part. A scanner 2 for converting into digital data, a mouse 3 and a keyboard 4 for inputting characteristic parameters for image area extraction and specifying an image area, a characteristic parameter for displaying an image and extracting an image area, etc. A monitor television 5 for displaying, a printer 6 for outputting a display image after execution of image processing, and an external storage device 7 for storing digital image data and the like for writing and reading them with the WS 1 are respectively connected. .
【0012】図2は、上記WS1の内部構成を模式的に
示すブロック図である。WS1の内部において、デジタ
ル画像データを記憶している画像メモリ8には、画像全
体の中で基準となる色相(H)、彩度(S)、明度
(B)などの特徴パラメータを演算するための領域を設
定する第1領域設定部9が接続され、さらにこの第1領
域設定部9には、この第1領域設定部9により設定され
た画像データから上記特徴パラメータを演算する特徴パ
ラメータ演算部10が接続される。FIG. 2 is a block diagram schematically showing the internal structure of the WS1. In the image memory 8 storing digital image data inside the WS 1, in order to calculate characteristic parameters such as hue (H), saturation (S), and lightness (B) which are references in the entire image. Is connected to a first area setting unit 9, and the first area setting unit 9 further calculates a characteristic parameter calculation unit that calculates the characteristic parameter from the image data set by the first area setting unit 9. 10 are connected.
【0013】また、上記画像メモリ8には、画像の第2
領域を設定する第2領域設定部11が接続され、さらに
この第2領域設定部11には、この第2領域設定部11
により設定された画像の第2領域の中から、上記特徴パ
ラメータに基づいて所望の領域を抽出する領域抽出部1
2が接続される。The image memory 8 stores the second image data.
A second area setting unit 11 for setting an area is connected, and the second area setting unit 11 is further connected to the second area setting unit 11.
A region extracting unit 1 for extracting a desired region from the second region of the image set by
2 are connected.
【0014】なお、実際には、上記各ブロックの機能は
ソフト的に実行されるため、上述のハード構成がすべて
実在するわけではない。図3は、本発明に係る実施例の
画像領域抽出装置の動作を示すフローチャートである。
図4〜図8に示す動作時のモニタテレビ5の表示例をも
とに、この画像領域抽出装置の動作について説明する。In practice, since the functions of the above blocks are executed by software, not all the hardware configurations described above actually exist. FIG. 3 is a flow chart showing the operation of the image area extracting apparatus according to the embodiment of the present invention.
The operation of this image area extracting apparatus will be described based on the display examples of the monitor television 5 at the time of the operations shown in FIGS.
【0015】図4(a)に示すように、スキャナ2など
で入力された画像がモニタテレビ5に表示されている。
まず、マウス3のボタンをクリックして設定したい矩形
の左上隅を指定する。続いて、マウス3を移動すると、
これに追従するようにマウス指標が移動し、上記左上隅
とマウス指標の現位置とを対角状の頂点とする矩形が描
かれる。そこで、抽出したい領域を囲むように、マウス
3のボタンをクリックして右下隅を指定する。以上のよ
うな公知の入力手法により、第2領域21を設定する
(ステップS1)。なお、以上のような入力手法を行う
のは、図4(c)に示すスイッチ22が選択されている
場合である。As shown in FIG. 4A, the image input by the scanner 2 or the like is displayed on the monitor television 5.
First, the button of the mouse 3 is clicked to specify the upper left corner of the rectangle to be set. Then, when you move mouse 3,
The mouse index moves so as to follow this, and a rectangle whose diagonal corner is the upper left corner and the current position of the mouse index is drawn. Therefore, the button on the mouse 3 is clicked to specify the lower right corner so as to surround the area to be extracted. The second area 21 is set by the above-described known input method (step S1). The input method as described above is performed when the switch 22 shown in FIG. 4C is selected.
【0016】ここで、図4(b)に示すスイッチ22〜
24は、第2領域21を設定するときの入力形態を選択
するスイッチである。スイッチ22は、上述したように
マウス3による領域設定を矩形にて行うとき、スイッチ
23はマウス3による領域設定を円にて行うとき、スイ
ッチ24はマウス3を逐次移動しながら、画像の任意の
ポイントを指定して閉領域を作り、領域設定を行うとき
に選択する。スイッチ25については、後述する。それ
ぞれのスイッチ22〜25は、その表示領域の上にマウ
ス指標を移動して、マウス3のボタンをクリックするこ
とにより選択される。Here, the switches 22 to 22 shown in FIG.
Reference numeral 24 is a switch for selecting an input form when setting the second area 21. As described above, the switch 22 sets the area by the mouse 3 in a rectangular shape, the switch 23 sets the area by the mouse 3 in a circle, and the switch 24 sequentially moves the mouse 3 to move an arbitrary image in the image. Select a point to make a closed area and set the area. The switch 25 will be described later. Each of the switches 22 to 25 is selected by moving the mouse index on the display area and clicking the button of the mouse 3.
【0017】次に、図4(b)に示すスイッチ25を選
択すると、図5(c)に示すようなスイッチ22,25
が選択された表示状態となり、図5(b)に示すウィン
ドウが表示される。Next, when the switch 25 shown in FIG. 4B is selected, the switches 22 and 25 shown in FIG. 5C are selected.
Is displayed, and the window shown in FIG. 5B is displayed.
【0018】次に、上記第2領域21の設定時と同様な
手順にて設定した図5(a)に示す矩形領域は、図5
(b)に示すパネルスイッチ“STD_COL”の上に
マウス指標を移動し、マウス3をクリックすることによ
り、第1領域26として登録される(ステップS2)。Next, the rectangular area shown in FIG. 5A, which is set by the same procedure as when setting the second area 21, is the same as the rectangular area shown in FIG.
By moving the mouse index to the panel switch "STD_COL" shown in (b) and clicking the mouse 3, it is registered as the first area 26 (step S2).
【0019】次に、第1領域26に属するそれぞれの画
素の赤(R)、緑(G)、青(B)の各成分の平均値
(Rバー,Gバー,Bバー)を求め、これを基準色(R
バー,Gバー,Bバー)27とする(ステップS3)。Next, the average value (R bar, G bar, B bar) of each component of red (R), green (G), and blue (B) of each pixel belonging to the first area 26 is calculated, and this is calculated. The standard color (R
Bar, G bar, B bar) 27 (step S3).
【0020】次に、図6(a)に示すように、基準色2
7が視覚的に確認できるように、ウィンドウ上に表示す
る(ステップS4)。次に、基準色27の色相(H)、
彩度(S)、輝度(B)を求め、図6(a)に示すよう
に、それら色相(H)、彩度(S)、輝度(B)の値を
ウィンドウ上の左側の表示欄28に表示する(ステップ
S5)。Next, as shown in FIG. 6A, the reference color 2
7 is displayed on the window so that it can be visually confirmed (step S4). Next, the hue (H) of the reference color 27,
The saturation (S) and the brightness (B) are obtained, and as shown in FIG. 6A, the values of the hue (H), the saturation (S), and the brightness (B) are displayed in the display field 28 on the left side of the window. (Step S5).
【0021】次に、基準色27の色相をH0、彩度をS
0、明度をB0とし、これらを基準として、色相の下限
しきい値THLと上限しきい値THH(THL≦TH
H)、また彩度の下限しきい値TSLと上限しきい値T
SH(TSL≦TSH)、及び明度の下限しきい値TB
Lと上限しきい値TBH(TBL≦TBH)をそれぞれ
設定する。図6(a)に示すHUE、SATUR、BR
ITはそれぞれ色相、彩度、明度の上限しきい値及び下
限しきい値を設定するスライダーである。指標(▽)の
設定は、指標(▽)の近くにマウス指標を移動し、マウ
ス3をクリックすることによって、指標(▽)がマウス
指標の位置に移動するという操作により行う。設定され
た上限しきい値及び下限しきい値は、ウィンドウ上の右
側の表示欄29に表示される(ステップS6)。Next, the hue of the reference color 27 is H0 and the saturation is S
0, the brightness is B0, and with these values as a reference, the lower limit threshold THL and the upper limit threshold THH (THL ≦ TH
H), the lower threshold TSL and the upper threshold T of the saturation
SH (TSL ≦ TSH) and the lower limit threshold value TB of brightness
L and the upper threshold TBH (TBL ≦ TBH) are set respectively. HUE, SATUR, BR shown in FIG.
IT is a slider for setting an upper threshold value and a lower threshold value of hue, saturation, and brightness, respectively. The index (∇) is set by moving the mouse index near the index (∇) and clicking the mouse 3 to move the index (∇) to the position of the mouse index. The set upper and lower threshold values are displayed in the display field 29 on the right side of the window (step S6).
【0022】すなわち、本実施例では、第2領域21に
ある画素のうち、上限しきい値及び下限しきい値の範囲
にある色相(H)、彩度(S)、輝度(B)の値をもつ
画素のみが抽出される。したがって、第2領域21のマ
ウス指標が位置する画素の(H,S,B)の、上記基準
色の(H0,S0,B0)に対する差DH=H−H0,
DS=S−S0,DB=B−B0が視覚的に確認できる
と、上記上限しきい値及び下限しきい値の設定が容易に
なる。このため、図6(a)に示すように、ウィンドウ
上の左下に画像上のマウス指標の位置の画素に対するX
座標(X)、Y座標(Y)が表示欄30に、さらに上記
(DH,DS,DB)が表示欄31に表示される。That is, in this embodiment, among the pixels in the second area 21, the values of the hue (H), the saturation (S), and the brightness (B) within the range of the upper limit threshold and the lower limit threshold. Only those pixels with are extracted. Therefore, the difference DH = H−H0, between the (H, S, B) of the pixel where the mouse index is located in the second area 21 and the (H0, S0, B0) of the reference color.
If DS = S-S0 and DB = B-B0 can be visually confirmed, it becomes easy to set the upper limit threshold and the lower limit threshold. For this reason, as shown in FIG. 6A, the X for the pixel at the position of the mouse index on the image is displayed at the lower left of the window.
The coordinates (X) and Y coordinates (Y) are displayed in the display column 30, and the above (DH, DS, DB) are displayed in the display column 31.
【0023】ここで、画像によっては、色相(H)だけ
で所望の領域を抽出できる場合がある。しかし、色相
(H)、彩度(S)、輝度(B)のアンド条件を作らな
いと、正しく所望の領域を抽出できないこともある。す
なわち、色相(H)だけで領域を抽出するときは第2領
域21のそれぞれの画素の色相(H)が、 THL≦H≦THH の条件を満たす画素のみが抽出される。また、色相
(H)と輝度(B)により領域を抽出するときは、 THL≦H≦THH、かつ、TBL≦B≦TBH を満たす画素のみが抽出される。このように、色相
(H)、彩度(S)、輝度(B)のどの組合わせのアン
ド条件で画素を抽出するか、抽出条件を決める必要があ
る。そこで、図6(a)の下段のパネルスイッチ“H”
“S”“B”の選択したいパネルスイッチの上にマウス
指標を移動し、マウス3のボタンをクリックしてこれら
を選択する(ステップS7)。なお、パネルスイッチを
偶数回、クリックすると選択は解除される。また、この
例は、色相(H)と輝度(B)の2つのアンド条件で画
素を抽出する場合を示している。Here, depending on the image, there are cases where a desired region can be extracted only by the hue (H). However, a desired area may not be correctly extracted unless AND conditions for hue (H), saturation (S), and brightness (B) are created. That is, when the area is extracted only by the hue (H), the hue (H) of each pixel of the second area 21 is extracted only the pixel satisfying the condition of THL ≦ H ≦ THH. Further, when extracting a region by hue (H) and brightness (B), only pixels satisfying THL ≦ H ≦ THH and TBL ≦ B ≦ TBH are extracted. As described above, it is necessary to determine which combination of hue (H), saturation (S), and brightness (B) to extract a pixel, and the extraction condition. Therefore, the lower panel switch "H" in FIG.
The mouse index is moved to the panel switch of "S" or "B" to be selected, and the button of the mouse 3 is clicked to select them (step S7). If the panel switch is clicked an even number of times, the selection will be canceled. Further, this example shows a case where pixels are extracted under two AND conditions of hue (H) and brightness (B).
【0024】次に、図6(a)に示すウィンドウの下段
のパネルスイッチ“OK”をクリックすると、第2領域
21のそれぞれの画素に対して、それらの画素が上記ス
テップS6にて、設定した上限しきい値と下限しきい値
の範囲内にあるか否かが演算される。そして、上記抽出
条件に合った画素のみが抽出される(ステップS8)。Next, when the panel switch "OK" in the lower part of the window shown in FIG. 6A is clicked, the respective pixels of the second area 21 are set in step S6. It is calculated whether or not it is within the range between the upper limit threshold and the lower limit threshold. Then, only pixels that meet the above extraction conditions are extracted (step S8).
【0025】次に、図6(c)に示すように、抽出され
た領域をウィンドウに表示する(ステップS9)。実際
には、抽出された領域は緑色で表示されるが、判り易く
するため、図6(c)では斜線で示す。この抽出例で
は、肌の部分である肌色のみの抽出を意図していたのだ
が、他の部分である服の一部も抽出してしまっている。
これは、服の色相(H)、輝度(B)が肌色に近く、肌
色とうまく分離できないためである。Next, as shown in FIG. 6C, the extracted area is displayed in the window (step S9). In reality, the extracted region is displayed in green, but in order to make it easy to understand, it is indicated by hatching in FIG. 6C. In this example of extraction, only the skin color, which is the skin part, was intended to be extracted, but part of the clothes, which is the other part, was also extracted.
This is because the hue (H) and the brightness (B) of clothes are close to the skin color and cannot be separated from the skin color well.
【0026】この問題を解決するため、第2領域の設定
にあたり、領域設定にマウス3を逐次移動しながら、画
像の任意のポイントを指定して閉領域を作り、任意の形
状にて領域の設定ができるモード、すなわち、図4
(b)に示したスイッチ24を選択する。そして、服を
含まないように第2領域32を設定し、上記ステップS
8と同様の演算を行い、肌色部を抽出したのが図7
(c)に示す表示である。正確に肌色部を抽出できてい
るのがわかる。In order to solve this problem, in setting the second area, the mouse 3 is sequentially moved to the area setting, an arbitrary point of the image is designated to form a closed area, and the area is set in an arbitrary shape. Mode, that is, Fig. 4
The switch 24 shown in (b) is selected. Then, the second area 32 is set so as not to include clothes, and the above step S
FIG. 7 shows that the skin color part is extracted by performing the same calculation as in FIG.
It is the display shown in (c). It can be seen that the skin color part has been accurately extracted.
【0027】次に、抽出された領域に問題がないかどう
かを判断し(ステップS10)、問題がなければ、抽出
された領域に所望の画像処理を行う(ステップS1
1)。一方、抽出された領域に問題があれば、以上の操
作を繰り返し行う。Next, it is judged whether or not there is a problem in the extracted area (step S10), and if there is no problem, desired image processing is performed on the extracted area (step S1).
1). On the other hand, if there is a problem in the extracted area, the above operation is repeated.
【0028】図8に、上記ステップS11での画像処理
を示す。この画像処理は、抽出された領域にR,G,B
色変換を行うものである。図8(d)に示す、スライダ
ーの0点を基準として指標(△)を移動させることによ
り、R,G,Bの各成分の比率を変え、色変換を行う。
図8(b)は、色変換後の画像を表示するウィンドウで
ある。その後、本処理を終了する。この画像処理後の表
示画像は、プリンタ6により出力されたり、また外部記
憶装置7に記憶される。FIG. 8 shows the image processing in step S11. This image processing is applied to R, G, B in the extracted area.
Color conversion is performed. By moving the index (Δ) with reference to the slider 0 point shown in FIG. 8D, the ratio of each component of R, G, B is changed to perform color conversion.
FIG. 8B is a window that displays an image after color conversion. After that, this processing ends. The display image after the image processing is output by the printer 6 or stored in the external storage device 7.
【0029】なお、本実施例においては、特徴パラメー
タとして色相、彩度、明度を用いたが、これに限るわけ
ではなく、色度とR,G,Bの明るさを用いても良い。
また、本実施例では、マウス3を用いて入力、設定、及
び選択を行う例を示したが、これはマウス3に限るわけ
ではなく、キーボード4やその他の入力手段を用いても
良い。In this embodiment, hue, saturation and lightness are used as the characteristic parameters, but the present invention is not limited to this, and chromaticity and R, G and B brightness may be used.
Further, in the present embodiment, an example in which the mouse 3 is used for inputting, setting, and selecting is shown, but this is not limited to the mouse 3, and the keyboard 4 or other input means may be used.
【0030】以上説明したように、本実施例によれば、
画像の所望の領域を正確に抽出できるので、この抽出し
た領域に色変換、階調変換などの画像処理を施すばかり
でなく、画像を切り出したり合成する場合も便利であ
る。As described above, according to this embodiment,
Since a desired area of the image can be accurately extracted, it is convenient not only to perform image processing such as color conversion and gradation conversion on the extracted area, but also to cut out or combine the images.
【0031】また、任意の形状にて領域の設定を行う手
法のみで、上記ステップS8の演算を行わない場合に
は、肌色部だけを抽出する努力をしても、境界が不自然
になり目立ってしまう場合が多いという欠点がある。し
かし、本実施例では、このような不自然さが全くない。If only the method of setting an area in an arbitrary shape is not used and the calculation in step S8 is not performed, the boundary becomes unnatural even if an effort is made to extract only the skin color portion. There is a drawback that it often happens. However, in this embodiment, there is no such unnaturalness.
【0032】なお、本発明の上記実施態様によれば、以
下のごとき構成が得られる。 (1) 画像の特徴を表す少なくとも1つの特徴パラメ
ータの値を演算する演算手段と上記特徴パラメータ値を
基準として、上記特徴パラメータの上限または下限のし
きい値を設定する設定手段と、画像の各画素における上
記特徴パラメータの値が上記しきい値に応じた所定値を
持つ画素のみを領域抽出する抽出手段と、を具備したこ
とを特徴とする画像領域抽出装置。 (2) 画像の第1領域に関連する特徴パラメータを演
算する演算手段と、上記特徴パラメータ値を基準とし
て、上記特徴パラメータの上限または下限のしきい値を
設定する設定手段と、画像の各領域の画素の上記特徴パ
ラメータ値が上記しきい値に応じた所定値を持つ画素の
みを領域抽出する抽出手段と、を具備したことを特徴と
する画像領域抽出装置。 (3) 画像中にそれぞれ異なる第1領域と第2領域と
を設定する設定手段と、上記第1領域に関連する特徴パ
ラメータを演算する演算手段と、上記特徴パラメータ値
を基準として、上記特徴パラメータの上限または下限の
しきい値を設定する設定手段と、上記第2領域の各画素
の上記特徴パラメータ値が上記しきい値に応じた所定値
を持つ画素のみを領域抽出する抽出手段と、を具備した
ことを特徴とする画像領域抽出装置。 (4) 上記特徴パラメータは、色相、彩度、明度のい
づれか1つ、またはそれらの組み合わせであることを特
徴とする上記(1)乃至(3)に記載の画像領域抽出装
置 (5) 上記特徴パラメータは、色度、明度のいづれか
1つ、またはそれら2つの組み合わせであることを特徴
とする上記(1)乃至(3)に記載の画像領域抽出装
置。 (6) 電子映像化された画像の中で、おおまかに第2
領域を指定する第2領域指定ステップと、この第2領域
指定ステップにより指定された第2領域内の比較的微小
な第1領域を指定する第1領域指定ステップと、この第
1領域指定ステップにより指定された第1領域内の画素
の映像パラメータの平均値を演算する演算ステップと、
この演算ステップにより得られた上記映像パラメータの
平均値に基づいて、領域抽出のための所定の余裕を見込
んだ上記映像パラメータの上限及び下限のしきい値を設
定する設定ステップと、上記第2領域指定ステップによ
り指定された上記第2領域内の画素のうち、上記設定ス
テップにより設定された上記上限及び下限のしきい値で
決定される範囲内の映像パラメータ値を有する画素のみ
を抽出する領域抽出ステップと、から成ることを特徴と
する画像領域抽出方法。According to the above embodiment of the present invention, the following configuration can be obtained. (1) Calculation means for calculating the value of at least one characteristic parameter representing the characteristics of the image, setting means for setting the upper or lower threshold value of the characteristic parameter based on the characteristic parameter value, and each of the images An image area extracting apparatus comprising: an extracting unit that extracts only an area in which the value of the characteristic parameter of the pixel has a predetermined value according to the threshold value. (2) Computation means for computing a characteristic parameter associated with the first area of the image, setting means for setting an upper or lower threshold value of the characteristic parameter based on the characteristic parameter value, and each area of the image An image area extracting device for extracting an area only from a pixel in which the characteristic parameter value of the pixel has a predetermined value according to the threshold value. (3) Setting means for setting different first and second areas in the image, calculating means for calculating characteristic parameters associated with the first area, and the characteristic parameters based on the characteristic parameter values. Setting means for setting an upper limit or lower limit threshold value, and extracting means for extracting a region of only pixels having the characteristic parameter value of each pixel in the second region having a predetermined value according to the threshold value. An image area extraction device characterized by being provided. (4) The image region extraction device according to (1) to (3), wherein the characteristic parameter is one of hue, saturation, and lightness, or a combination thereof. The parameter is one of chromaticity and lightness, or a combination of the two, and the image region extracting apparatus according to (1) to (3) above. (6) Roughly the second among the electronic images.
A second area designating step of designating an area, a first area designating step of designating a relatively small first area within the second area designated by the second area designating step, and a first area designating step A calculation step of calculating an average value of video parameters of pixels in the designated first region,
A setting step of setting upper and lower thresholds of the video parameter in consideration of a predetermined margin for area extraction based on the average value of the video parameter obtained by the calculation step; and the second area. Of the pixels in the second region designated in the designating step, region extraction for extracting only pixels having a video parameter value within the range determined by the upper and lower threshold values set in the setting step. An image area extraction method comprising:
【0033】[0033]
【発明の効果】以上述べたように本発明によれば、画像
の任意の領域を容易に正しく抽出し、その抽出した領域
に対して色補正や階調補正などの画像処理を行うことが
できる画像領域抽出装置を提供することができる。As described above, according to the present invention, it is possible to easily and correctly extract an arbitrary area of an image and perform image processing such as color correction and gradation correction on the extracted area. An image area extraction device can be provided.
【図1】実施例の画像領域抽出装置の構成を示すブロッ
ク図である。FIG. 1 is a block diagram showing a configuration of an image area extraction device according to an embodiment.
【図2】実施例のWS1の内部構成を模式的に示すブロ
ック図である。FIG. 2 is a block diagram schematically showing an internal configuration of WS1 of the embodiment.
【図3】実施例の画像領域抽出装置の動作を示すフロー
チャートである。FIG. 3 is a flowchart showing the operation of the image area extraction device of the embodiment.
【図4】実施例の画像領域抽出装置における第2領域の
設定時の表示例である。FIG. 4 is a display example at the time of setting the second area in the image area extracting apparatus of the embodiment.
【図5】実施例の画像領域抽出装置における第1領域の
設定時の表示例である。FIG. 5 is a display example when the first area is set in the image area extracting apparatus of the embodiment.
【図6】実施例の画像領域抽出装置におけるしきい値の
設定、領域抽出時などの表示例である。FIG. 6 is a display example at the time of setting a threshold value and extracting an area in the image area extracting apparatus of the embodiment.
【図7】実施例の画像領域抽出装置における他の第2領
域の設定、領域抽出時などの表示例である。FIG. 7 is a display example when setting another second area, extracting an area, and the like in the image area extracting apparatus of the embodiment.
【図8】実施例の画像領域抽出装置における画像処理時
の表示例である。FIG. 8 is a display example at the time of image processing in the image area extraction device of the embodiment.
1…ワークステーション(WS)、2…スキャナ、3…
マウス、4…キーボード、5…モニタテレビ、6…プリ
ンタ、7…外部記憶装置、8…画像メモリ、9…第1領
域設定部、10…特徴パラメータ演算部、11…第2領
域設定部、12…領域抽出部、21…第2領域、22,
23,24,25…スイッチ、26…第1領域、27…
基準色、28,29,30,31…表示欄、32…第2
領域。1 ... work station (WS), 2 ... scanner, 3 ...
Mouse, 4 ... Keyboard, 5 ... Monitor TV, 6 ... Printer, 7 ... External storage device, 8 ... Image memory, 9 ... First area setting section, 10 ... Feature parameter calculation section, 11 ... Second area setting section, 12 ... Region extraction unit, 21 ... Second region, 22,
23, 24, 25 ... Switch, 26 ... First area, 27 ...
Reference color, 28, 29, 30, 31 ... Display column, 32 ... Second
region.
───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 9365−5H G06F 15/62 322 B 9061−5H 15/70 330 Z ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Office reference number FI technical display location 9365-5H G06F 15/62 322 B 9061-5H 15/70 330 Z
Claims (3)
に第2領域を指定する第2領域指定手段と、 この第2領域指定手段により指定された第2領域内の比
較的微小な第1領域を指定する第1領域指定手段と、 この第1領域指定手段により指定された第1領域内の画
素の映像パラメータの平均値を演算する演算手段と、 この演算手段により得られた上記映像パラメータの平均
値に基づいて、領域抽出のための所定の余裕を見込んだ
上記映像パラメータの上限及び下限のしきい値を設定す
る設定手段と、 を具備し、上記第2領域指定手段により指定された上記
第2領域内の画素のうち、上記設定手段により設定され
た上記上限及び下限のしきい値で決定される範囲内の映
像パラメータ値を有する画素のみを抽出することを特徴
とする画像領域抽出装置。1. A second area designating means for roughly designating a second area in an electronic image, and a relatively small first area within the second area designated by the second area designating means. First area designating means for designating one area, computing means for computing an average value of video parameters of pixels in the first area designated by the first area designating means, and the video image obtained by the computing means. Setting means for setting the upper and lower thresholds of the video parameter in consideration of a predetermined margin for area extraction based on the average value of the parameters, and the setting means is specified by the second area specifying means. Among the pixels in the second area, only the pixels having the image parameter value within the range determined by the upper and lower thresholds set by the setting means are extracted. Detection device.
けするパラメータである、明度、輝度、彩度、色相、ま
たは色度のうちの少なくとも1つにより定義されること
を特徴とする請求項1に記載の画像領域抽出装置。2. The image parameter value is defined by at least one of lightness, luminance, saturation, hue, or chromaticity, which is a parameter that characterizes a pixel. The image area extraction device according to 1.
画像領域抽出装置において、 上記画像の大まかな抽出範囲である第2領域を設定する
第2領域設定ステップと、 抽出基準となる色を特定するため、上記第2領域設定ス
テップにより設定された第2領域内の微小な第1領域を
設定する第1領域設定ステップと、 上記第1領域設定ステップにより設定された第1領域内
の画素の特徴パラメータの平均値を演算したのち表示出
力する演算表示ステップと、 上記第1領域の特徴パラメータの平均値に基づいて上記
第2領域内の特徴領域を抽出するための余裕値を設定
し、上記特徴パラメータの平均値と、上記余裕値とに基
づいて、特徴領域抽出の基準となる特徴パラメータの上
限値と下限値との検出しきい値をそれぞれ確定する検出
しきい値確定ステップと、 上記第2領域内の特徴領域を抽出するキーとなる抽出パ
ラメータを選択入力する選択入力ステップと、 上記検出しきい値と上記抽出パラメータとに基づいて、
上記第2領域内の特徴領域を抽出する領域抽出ステップ
と、 を有することを特徴とする画像領域抽出方法。3. An image area extracting device for extracting a part of an electronic imaged image, wherein a second area setting step of setting a second area which is a rough extraction range of the image, and a color serving as an extraction reference. A first area setting step of setting a minute first area in the second area set by the second area setting step, and a first area set by the first area setting step. A calculation and display step of calculating and outputting the average value of the characteristic parameters of the pixels and setting a margin value for extracting the characteristic area in the second area based on the average value of the characteristic parameters of the first area. , A detection threshold value that determines the detection threshold values of the upper limit value and the lower limit value of the feature parameter that is the reference of feature region extraction, based on the average value of the feature parameter and the margin value. A constant step, a selection input step of selectively inputting the extracted parameters that are key for extracting a feature region of the second region, on the basis of the above detection threshold and the extraction parameters,
A region extraction step of extracting a feature region in the second region, the image region extraction method comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP6256769A JPH08123940A (en) | 1994-10-21 | 1994-10-21 | Method and device for extracting picture area |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP6256769A JPH08123940A (en) | 1994-10-21 | 1994-10-21 | Method and device for extracting picture area |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH08123940A true JPH08123940A (en) | 1996-05-17 |
Family
ID=17297198
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP6256769A Withdrawn JPH08123940A (en) | 1994-10-21 | 1994-10-21 | Method and device for extracting picture area |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH08123940A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2002017629A1 (en) * | 2000-08-25 | 2002-02-28 | Omron Corporation | Image printing device |
JP2004246456A (en) * | 2003-02-12 | 2004-09-02 | Omron Corp | Apparatus and method for image editing |
JP2006012069A (en) * | 2004-06-29 | 2006-01-12 | Olympus Corp | Sorting device and sorting method |
US7602993B2 (en) | 2004-06-17 | 2009-10-13 | Olympus Corporation | Image processing and display using a plurality of user movable viewer areas |
JP2011028364A (en) * | 2009-07-22 | 2011-02-10 | Omron Corp | Image processor and image processing method |
US8411326B2 (en) | 2008-09-30 | 2013-04-02 | Fujifilm Corporation | Image forming apparatus and method for using selected correction table based on divided area of a recording medium |
JP2014170592A (en) * | 2014-06-24 | 2014-09-18 | Omron Corp | Image processing apparatus |
-
1994
- 1994-10-21 JP JP6256769A patent/JPH08123940A/en not_active Withdrawn
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2002017629A1 (en) * | 2000-08-25 | 2002-02-28 | Omron Corporation | Image printing device |
JP2004246456A (en) * | 2003-02-12 | 2004-09-02 | Omron Corp | Apparatus and method for image editing |
US7602993B2 (en) | 2004-06-17 | 2009-10-13 | Olympus Corporation | Image processing and display using a plurality of user movable viewer areas |
JP2006012069A (en) * | 2004-06-29 | 2006-01-12 | Olympus Corp | Sorting device and sorting method |
US8411326B2 (en) | 2008-09-30 | 2013-04-02 | Fujifilm Corporation | Image forming apparatus and method for using selected correction table based on divided area of a recording medium |
JP2011028364A (en) * | 2009-07-22 | 2011-02-10 | Omron Corp | Image processor and image processing method |
JP2014170592A (en) * | 2014-06-24 | 2014-09-18 | Omron Corp | Image processing apparatus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7663647B2 (en) | Model based compositing | |
US5475507A (en) | Color image processing method and apparatus for same, which automatically detects a contour of an object in an image | |
EP0709806B1 (en) | Color correction device and color correction method | |
JP3189870B2 (en) | Image processing device | |
US6469747B1 (en) | Parabolic mixer for video signals | |
JP4482778B2 (en) | Image processing apparatus, image processing method, and recording medium | |
PT947955E (en) | APPARATUS FOR GENERATING RANGE CURVES ADAPTED TO A DETAILED APPLICATION FOR COLOR CORRECTION EQUIPMENT | |
JPH04127675A (en) | Digital picture formation | |
JP3126046B2 (en) | Color adjustment method and color adjustment device for color image | |
US7212674B1 (en) | Method, apparatus and recording medium for face extraction | |
JPH06309426A (en) | Method for inputting threshold | |
JPH08123940A (en) | Method and device for extracting picture area | |
US6665451B1 (en) | Image processing method and apparatus | |
JP2936599B2 (en) | Color image processing equipment | |
JPH07334648A (en) | Method and device for processing image | |
JP2003299114A (en) | Color extraction image processor and method for displaying extracted color | |
JPS62204379A (en) | Picture processor | |
JP2713677B2 (en) | Color image color change processing method and color image synthesis processing method | |
JP4482779B2 (en) | Image processing apparatus, image processing method, and recording medium | |
JPH07121710A (en) | Image segmentation method and apparatus | |
JP2005128774A (en) | Image region extraction apparatus and method | |
JPH0528263A (en) | Color picture processor | |
JPH087787B2 (en) | Color image area extraction method | |
JP2859883B2 (en) | Display device for presentation | |
JP2896311B2 (en) | How to make a color image mask |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20020115 |