JPH11110552A - Method for extracting color of image and image processor using the same - Google Patents
Method for extracting color of image and image processor using the sameInfo
- Publication number
- JPH11110552A JPH11110552A JP9267576A JP26757697A JPH11110552A JP H11110552 A JPH11110552 A JP H11110552A JP 9267576 A JP9267576 A JP 9267576A JP 26757697 A JP26757697 A JP 26757697A JP H11110552 A JPH11110552 A JP H11110552A
- Authority
- JP
- Japan
- Prior art keywords
- value
- values
- image
- difference
- pixel
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 19
- 238000000605 extraction Methods 0.000 claims description 38
- 239000000284 extract Substances 0.000 claims description 3
- 238000005286 illumination Methods 0.000 abstract description 12
- 239000003086 colorant Substances 0.000 abstract description 3
- 238000003384 imaging method Methods 0.000 description 30
- 238000010586 diagram Methods 0.000 description 5
- 238000006243 chemical reaction Methods 0.000 description 4
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 239000000126 substance Substances 0.000 description 2
- 239000003814 drug Substances 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- 238000012856 packing Methods 0.000 description 1
- SWGJCIMEBVHMTA-UHFFFAOYSA-K trisodium;6-oxido-4-sulfo-5-[(4-sulfonatonaphthalen-1-yl)diazenyl]naphthalene-2-sulfonate Chemical compound [Na+].[Na+].[Na+].C1=CC=C2C(N=NC3=C4C(=CC(=CC4=CC=C3O)S([O-])(=O)=O)S([O-])(=O)=O)=CC=C(S([O-])(=O)=O)C2=C1 SWGJCIMEBVHMTA-UHFFFAOYSA-K 0.000 description 1
Landscapes
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
- Color Image Communication Systems (AREA)
- Image Analysis (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、画像から色成分を
特徴量として色抽出する画像の色抽出方法及びその方法
を用いた画像処理装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image color extraction method for extracting a color component from an image as a feature value, and an image processing apparatus using the method.
【0002】[0002]
【従来の技術】カラー画像の中から対象物を抽出するこ
とを目的とする抽出処理では、画像内に含まれる個々の
領域を識別することが重要であり、この領域を識別する
方法においては、画像をその濃度,色,テクスチャ等の
特徴量の均一な部分画像として識別する方法が一般的で
ある。2. Description of the Related Art In an extraction process for extracting a target object from a color image, it is important to identify individual regions included in the image. In general, a method of identifying an image as a partial image having a uniform feature amount such as density, color, and texture is used.
【0003】色成分を特徴量として領域を識別する方法
は、様々な工業分野にて既に利用されており、例えば、
食品,薬品等の分野では、製品に貼り付けられた色付ラ
ベルの位置を検査する装置、また、混合製造ラインにお
ける製品又はそれを梱包するパッケージに印刷されたカ
ラーバーにより製品を識別する装置等に応用されてい
る。A method of identifying a region using a color component as a feature has already been used in various industrial fields.
In the field of food, medicine, etc., a device for inspecting the position of a colored label attached to a product, a device for identifying a product on a mixed production line or a color bar printed on a package for packing the product, etc. Has been applied to
【0004】このような装置においては、カラーカメラ
等の撮像器を用いて製品等の対象物が撮像され、撮像画
像は画素毎のR値,G値,及びB値からなるアナログ信
号に分割された後で画像処理装置に取込まれ、画像処理
装置に取込まれたアナログのR値,G値,及びB値は、
ディジタルのR値,G値,及びB値に変換されて記憶装
置に記憶される。画像処理装置は、記憶情報に基づいて
CRT等の表示装置に原画像を表示するとともに、原画
像が表示された画面上にて移動自在に設けられたポイン
タを重畳して表示させる。In such an apparatus, an object such as a product is imaged using an image pickup device such as a color camera, and the imaged image is divided into analog signals composed of R, G, and B values for each pixel. After that, the analog R value, G value, and B value taken into the image processing device and taken into the image processing device are:
The data is converted into digital R, G, and B values and stored in the storage device. The image processing apparatus displays the original image on a display device such as a CRT based on the stored information, and also displays a pointer movably provided on a screen on which the original image is displayed in a superimposed manner.
【0005】このポインタをコントローラ等の入力手段
を用いて操作し、画面上に表示されたカラーパレットの
中から抽出対象とする色が選択され、又は抽出対象とす
る色をR値,G値,及びB値の各数値で入力され、又は
原画像の抽出対象とする色を有する画素が直接的に選択
されるのに伴って、その画素のR値,G値,及びB値と
予め設定されたR値,G値,及びB値の各値に対する閾
値の許容範囲とに基づいて、R値,G値,及びB値の各
値に対する閾値が決定され、原画像中の各画素のR値,
G値,及びB値の各値が各閾値を越えない場合に、抽出
対象とする色と同一色であると判断して、この同一色と
判断された全ての画素領域を抽出してCRT等の表示装
置に表示させる方法が用いられており、この方法では、
R値,G値,及びB値の3つの値と予め設定されたR
値,G値,及びB値の各値に応じた閾値とを比較するこ
とにより、同一色の領域を識別できることから、演算を
行なう装置の構成の単純化が図れ、処理速度が高速であ
る。By operating this pointer using input means such as a controller, a color to be extracted is selected from a color pallet displayed on the screen, or a color to be extracted is set to an R value, a G value, And a pixel having a color to be extracted from the original image is directly input with each numerical value of the pixel value and the B value, and the R value, the G value, and the B value of the pixel are set in advance. The threshold for each of the R, G, and B values is determined based on the permissible range of the threshold for each of the R, G, and B values, and the R value of each pixel in the original image is determined. ,
If the values of the G value and the B value do not exceed the respective threshold values, it is determined that the color is the same as the color to be extracted, and all the pixel regions determined to be the same color are extracted and the CRT or the like is extracted. A method of displaying on a display device is used. In this method,
R value, G value, and B value, and a preset R value
By comparing values, G values, and B values with thresholds corresponding to the respective values, regions of the same color can be identified, so that the configuration of the device that performs the operation can be simplified, and the processing speed is high.
【0006】ところが、上述の如き方法においては、例
えば、薬品チューブの如く丸みを帯びた対象物の側面に
貼り付けられた色付ラベルを撮像器で取込む場合、照明
からの光がこの対象面へ一方向から偏って照射されてい
るのが普通であるため、色付ラベル全体に光が均一に照
射されずに明暗部分が生じて色付ラベル全体を均一な色
領域であると識別できず、色付ラベル全体を抽出できな
いという問題があった。また、色付ラベル全体を抽出す
るために上述の如きR値,G値,及びB値の閾値を大き
くとった場合、不必要な他の領域まで抽出するという新
たな問題が生じる。However, in the above-described method, for example, when a colored label attached to a side surface of a rounded object such as a chemical tube is taken in by an image pickup device, light from illumination is applied to the object surface. Since the light is normally radiated from one direction, the entire colored label is not evenly irradiated with light, and bright and dark portions are generated, and the entire colored label cannot be identified as a uniform color area. However, there is a problem that the entire colored label cannot be extracted. Further, when the threshold values of the R value, the G value, and the B value are set large as described above in order to extract the entire colored label, a new problem arises in that unnecessary regions are extracted.
【0007】また、照明むらが発生する照明によって
は、対象面の輝度に不均一が生じ、抽出される領域が斑
状となるという問題があり、対象形状をその全体に亘っ
て抽出するためにR値,G値,及びB値の各閾値を大き
くとった場合には、上述の如く不必要な他の領域まで抽
出することになる。[0007] Further, there is a problem that the brightness of the target surface becomes uneven due to the illumination that causes the illumination unevenness, and the area to be extracted becomes patchy. When the thresholds of the value, the G value, and the B value are set large, other unnecessary regions are extracted as described above.
【0008】これらの問題を解決すべく、例えば、特開
平4−10075号公報では、前述の方法の如くディジ
タル化された撮像画像の画素毎のR値,G値,及びB値
をHSI変換してH(色相),S(彩度),I(明度)
の各特徴量に分割し、画面上に表示されたカラーパレッ
トの中から抽出対象とする色が選択され、又は抽出対象
とする色をR値,G値,及びB値の各数値で入力され、
又は原画像の抽出対象とする色を有する画素が直接的に
選択されるのに伴って、その画素のH値,S値,及びI
値と予め設定されたH値,S値,及びI値の各値に対す
る閾値の許容範囲とに基づいて、H値,S値,及びI値
の各値に対する閾値が決定され、原画像中の各画素のH
値,S値,及びI値の各値が各閾値を越えない場合に、
抽出対象とする色と同一色であると判断して、この同一
色と判断された全ての画素領域を抽出して表示装置に表
示させる画像の色抽出方法が開示されており、この方法
によれば、照明むらによって変動することのない対象面
の色合い成分で評価することが可能となる。In order to solve these problems, for example, Japanese Patent Application Laid-Open No. Hei 4-10075 discloses that the R value, G value, and B value of each pixel of a digitized captured image are HSI-converted as described above. H (hue), S (saturation), I (lightness)
And the color to be extracted is selected from the color pallet displayed on the screen, or the color to be extracted is input as each of the R value, the G value, and the B value. ,
Or, as the pixel having the color to be extracted from the original image is directly selected, the H value, S value, and I
The threshold for each of the H, S, and I values is determined based on the values and the preset tolerances of the threshold for each of the H, S, and I values. H of each pixel
Value, S value, and I value do not exceed each threshold,
A method of extracting a color of an image which is determined to be the same color as a color to be extracted, and all the pixel regions determined to be the same color are extracted and displayed on a display device is disclosed. For example, it is possible to evaluate with a color component of the target surface which does not change due to uneven illumination.
【0009】[0009]
【発明が解決しようとする課題】ところが、この方法で
はR値,G値,及びB値からH値,S値,及びI値へH
SI変換する必要があるため、R値,G値,及びB値を
そのまま利用する前述の方法と比較して装置の構成が複
雑となるばかりでなく、演算処理が複雑となるために処
理速度が低下するという問題が生じる。In this method, however, the R, G, and B values are converted to H, S, and I values by H
Since it is necessary to perform SI conversion, not only the configuration of the apparatus is complicated as compared with the above-described method in which the R value, G value, and B value are used as they are, but also the processing speed is increased due to the complicated arithmetic processing. The problem of lowering occurs.
【0010】本発明は斯かる事情に鑑みてなされたもの
であり、撮像領域における各画素のR値,G値,及びB
値に加えて、R値及びG値の差分値,B値及びG値の差
分値,R値及びB値の差分値を演算しておき、抽出対象
となる画素に対応する前記差分値,R値,G値,及びB
値に基づいて前記差分値,R値,G値,及びB値の閾値
を各別に設定し、閾値内の画素を抽出対象となる領域と
同一色であるとして抽出することにより、照明による明
暗部分のある撮像領域又は照明むらによる不均一な輝度
部分のある撮像領域であっても、比較的簡単な構成で演
算処理の高速な画像の色抽出方法及びその方法を用いた
画像処理装置を提供することを目的とする。The present invention has been made in view of the above circumstances, and has been made in consideration of the R value, G value, and B value of each pixel in an imaging region.
In addition to the values, the difference value between the R value and the G value, the difference value between the B value and the G value, and the difference value between the R value and the B value are calculated in advance, and the difference value and the R value corresponding to the pixel to be extracted are calculated. Value, G value, and B
The thresholds of the difference value, the R value, the G value, and the B value are individually set based on the values, and the pixels within the threshold values are extracted as having the same color as the region to be extracted. Provided is a method for extracting a color of an image with a relatively simple configuration and a high speed of arithmetic processing, and an image processing apparatus using the method, even in an imaging area having an uneven brightness portion due to uneven illumination or an imaging area having uneven brightness. The purpose is to:
【0011】[0011]
【課題を解決するための手段】第1発明に係る画像の色
抽出方法は、撮像した画像から選択された一又は複数の
画素におけるR値,G値,及びB値に基づいて、R値,
G値,及びB値に関連する値に対する閾値を設定し、前
記画像における任意の画素のR値,G値,及びB値に関
連する値が前記閾値を越えない画素を前記選択された画
素と同一色であるとして抽出する画像の色抽出方法にお
いて、前記撮像した画像に基づいて、R値及びG値の差
分値、B値及びG値の差分値、R値及びB値の差分値の
うちの一又は複数の差分値を演算し、前記選択された画
素のR値,G値,B値,及び前記差分値に基づいて閾値
を設定することを特徴とする。According to a first aspect of the present invention, there is provided a method for extracting a color of an image, comprising the steps of: extracting an R value, a G value, and a B value at one or a plurality of pixels selected from a captured image;
Thresholds for values related to the G value and the B value are set, and pixels whose values related to the R value, the G value, and the B value of any pixel in the image do not exceed the threshold value are defined as the selected pixels. In the color extraction method of an image to be extracted as having the same color, a difference value between an R value and a G value, a difference value between a B value and a G value, and a difference value between an R value and a B value are determined based on the captured image. Calculating one or more difference values, and setting a threshold value based on the R value, G value, B value of the selected pixel, and the difference value.
【0012】第2発明に係る画像処理装置は、撮像した
画像から選択された一又は複数の画素におけるR値,G
値,及びB値に基づいて、R値,G値,及びB値に関連
する値に対する閾値を設定し、前記画像における任意の
画素のR値,G値,及びB値に関連する値が前記閾値を
越えない画素を前記選択された画素と同一色であるとし
て抽出する画像処理装置において、前記撮像した画像に
基づいて、R値及びG値の差分値、B値及びG値の差分
値、R値及びB値の差分値のうちの一又は複数の差分値
を演算する演算手段と、前記選択された画素のR値,G
値,B値,及び前記差分値に基づいて閾値を決定する閾
値決定手段と、前記撮像した画像におけるR値,G値,
B値,及び前記差分値が前記閾値を越えない画素を前記
選択された画素と同一色である画素として抽出する抽出
手段とを備えることを特徴とする。An image processing apparatus according to a second aspect of the present invention provides an image processing apparatus comprising: an R value and a G value for one or a plurality of pixels selected from a captured image;
Setting a threshold value for the R value, the G value, and the value related to the B value based on the value and the B value, and determining the value related to the R value, the G value, and the B value of any pixel in the image. In an image processing apparatus for extracting a pixel that does not exceed a threshold value as having the same color as the selected pixel, a difference value between an R value and a G value, a difference value between a B value and a G value, Calculating means for calculating one or more difference values among the difference values of the R value and the B value; and the R value and the G value of the selected pixel.
Threshold value determining means for determining a threshold value based on the value, the B value, and the difference value; and an R value, a G value,
Extracting means for extracting a pixel whose B value and the difference value do not exceed the threshold value as a pixel having the same color as the selected pixel.
【0013】第3発明に係る画像処理装置は、対象とな
る画像を撮像する撮像手段と、前記画像に重畳して表示
されたポインタを操作し、前記画像から対象となる一又
は複数の画素を選択する選択手段と、選択された画素に
おけるR値,G値,及びB値に基づいて、R値,G値,
及びB値に関連する値に対する閾値を設定し、前記画像
における任意の画素のR値,G値,及びB値に関連する
値が前記閾値を越えない画素を前記選択された画素と同
一色であるとして抽出する抽出手段と、抽出結果を表示
する表示手段とを備える画像処理装置において、前記撮
像手段により撮像された前記画像に基づいて、R値及び
G値の差分値、B値及びG値の差分値、R値及びB値の
差分値のうちの一又は複数の差分値を演算する演算手段
と、前記選択された画素のR値,G値,B値,及び前記
差分値に基づいて閾値を決定する閾値決定手段とを備え
ることを特徴とする。According to a third aspect of the present invention, there is provided an image processing apparatus, comprising: an image pickup means for picking up a target image; operating a pointer superimposed on the image to display one or a plurality of target pixels from the image; Based on the selection means for selecting and the R value, G value, and B value of the selected pixel, R value, G value,
And a threshold value for a value related to the B value, and a pixel in which the value related to the R value, G value, and B value of any pixel in the image does not exceed the threshold value is set to the same color as the selected pixel. In an image processing apparatus provided with an extracting means for extracting as a result and a display means for displaying an extraction result, a difference value between R value and G value, a B value and a G value based on the image taken by the imaging means. Calculating means for calculating one or a plurality of difference values among the difference values of the R, G and B values of the selected pixel, based on the R, G and B values of the selected pixel and the difference value Threshold value determining means for determining a threshold value.
【0014】本発明に係る画像の色抽出方法及びその方
法を用いた画像処理装置によれば、色抽出のパラメータ
となるR値,G値,及びB値の3値にR値及びG値の差
分値たる例えばR−G値,B値及びG値の差分値たる例
えばB−G値,R値及びB値の差分値たる例えばR−B
値等の差分値のうち1つから複数の差分値をパラメータ
として加えることにより、照明による明暗部分のある撮
像領域又は照明むらによる不均一な輝度部分のある撮像
領域であっても、高精度な色抽出を行なうことができ
る。また、HSI変換等の比較的複雑な処理を行なわず
に、R値,G値,及びB値に関連する値たる上述の如き
差分値を演算する構成としたので、比較的簡単な構成で
演算処理の低下を抑制することができる。According to the image color extraction method and the image processing apparatus using the method according to the present invention, the R value, the G value, and the B value serving as the color extraction parameters are added to the R value and the G value. A difference value, for example, an RG value, a B value, and a difference value between the G values, for example, a BG value, a difference value between the R value, and the B value, for example, RB
By adding a plurality of difference values as parameters from one of the difference values such as values, even in an imaging region having a bright and dark portion due to illumination or an imaging region having a non-uniform luminance portion due to uneven illumination, high accuracy can be achieved. Color extraction can be performed. Further, since the above-described difference value, which is a value related to the R value, the G value, and the B value, is calculated without performing relatively complicated processing such as HSI conversion, the calculation is performed with a relatively simple configuration. A reduction in processing can be suppressed.
【0015】図13,図14は、撮像領域を示す模式図
である。例えば、図13に示した撮像領域11aは、対
象物が軸心を水平に配置された円柱状の部材の側面方向
から撮像器により撮像された状態を示したものであり、
図13においては説明を簡略化するために撮像領域11
aを3等分するように周設された3色の色領域を想定し
ている。従って、3色の色領域は、撮像領域11aの左
端から白色,青みがかった色,赤みがかった色となる縦
長の矩形領域となっており、各色の矩形領域はその領域
内において均一に着色されているものとする。図14
は、撮像器の光軸に対して若干傾斜した角度から対象物
に光を照射した如き状態を示しており、図14において
は説明を簡略化するために、この照射光により各色領域
の分割方向に対して直角方向に3等分するように各色領
域に明暗部分が生じているものとする。このように、互
いに直交する方向に3×3の領域に分割された各色領域
の色は、図15に示す如きR値,G値,及びB値で表わ
される。FIGS. 13 and 14 are schematic diagrams showing an image pickup area. For example, the imaging region 11a illustrated in FIG. 13 illustrates a state where an object is imaged by an imaging device from a side surface direction of a columnar member whose axis is horizontally arranged.
In FIG. 13, the imaging region 11 is
It is assumed that three color regions are provided so as to divide a into three equal parts. Therefore, the three color regions are vertically long rectangular regions that are white, bluish, and reddish from the left end of the imaging region 11a, and the rectangular regions of each color are uniformly colored in the region. Shall be. FIG.
FIG. 14 shows a state in which light is radiated to the object from an angle slightly inclined with respect to the optical axis of the image pickup device. In FIG. It is assumed that light and dark portions are generated in the respective color regions so as to be equally divided into three in the direction perpendicular to. As described above, the colors of the respective color regions divided into 3 × 3 regions in directions orthogonal to each other are represented by R values, G values, and B values as shown in FIG.
【0016】図15は、図14に示した各色領域のR
値,G値,及びB値を示す図表であり、図16は、図1
4に示した各色領域のR値,G値,B値,R−G値,B
−G値,及びR−B値を示す図表である。例えば、色抽
出のパラメータをR値,G値,及びB値の3つの値と
し、選択された画素を含む色領域全体のR値,G値,及
びB値の最大値及び最小値をR値,G値,及びB値の閾
値とし、撮像領域11aの右端にある赤みがかった色領
域(以下、赤色領域といい、青みがかった領域も同様に
青色領域という)内の任意の画素を選択して全ての赤色
領域を抽出する場合、この赤色領域の中央の領域におけ
るR値,G値,及びB値は、R=30,G=20,B=
20であり、各値に対する閾値はR=20〜40,G=
10〜30,B=10〜30となる。FIG. 15 is a graph showing the R values of the respective color regions shown in FIG.
FIG. 16 is a table showing values, G values, and B values.
R value, G value, B value, RG value, B value of each color area shown in FIG.
It is a chart which shows -G value and RB value. For example, parameters for color extraction are three values of R value, G value, and B value, and the maximum value and the minimum value of the R value, G value, and B value of the entire color area including the selected pixel are R values. , G value, and B value, and select any pixel in a reddish color region (hereinafter, referred to as a red region, and a bluish region is also referred to as a blue region) at the right end of the imaging region 11a, and select all the pixels. Is extracted, the R value, the G value, and the B value in the central region of the red region are R = 30, G = 20, and B =
20, and the threshold for each value is R = 20-40, G =
10-30 and B = 10-30.
【0017】そして、撮像領域11a内の全ての画素の
R値,G値,及びB値を夫々に対応する閾値と比較し、
閾値範囲内にあるものを全て抽出した場合、全ての赤色
領域に加えて、余分な白色領域及び青色領域の一部まで
抽出することになる。Then, the R value, the G value, and the B value of all the pixels in the image pickup area 11a are compared with the corresponding thresholds, respectively.
When all the pixels within the threshold range are extracted, in addition to all the red regions, an extra white region and a part of the blue region are extracted.
【0018】これに対して、本発明に係る画像の色抽出
方法及びその方法を用いた画像処理装置では、予めR
値,G値,及びB値から各値の差分値であるR−G値,
B−G値,及びR−B値を演算しておき、これら3つの
差分値を色抽出のパラメータに加えて上述と同様に設定
して各閾値と比較する。従って、赤色領域のR値,G
値,B値,R−G値,B−G値,及びR−B値の閾値
は、R=20〜40,G=10〜30,B=10〜3
0,R−G=10〜10,B−G=0〜0,R−B=1
0〜10となり、撮像領域11a内の全ての画素のR
値,G値,B値,R−G値,B−G値,及びR−B値を
夫々に対応する閾値と比較した場合、全ての赤色領域の
みを抽出することができる。On the other hand, in the image color extraction method according to the present invention and the image processing apparatus using the method, the R
RG value, which is a difference value of each value from the value, the G value, and the B value,
The BG value and the RB value are calculated, and these three difference values are set in the same manner as described above in addition to the color extraction parameters, and are compared with the respective threshold values. Therefore, the R value, G
The threshold values of the value, the B value, the RG value, the BG value, and the RB value are R = 20 to 40, G = 10 to 30, B = 10 to 3
0, RG = 10 to 10, BG = 0 to 0, RB = 1
0 to 10 and the R of all the pixels in the imaging area 11a.
When the value, the G value, the B value, the RG value, the BG value, and the RB value are compared with the corresponding thresholds, only the entire red region can be extracted.
【0019】以上の構成においては、撮像領域に照明に
よる明暗部分がある状態を示したが、照明むらによる不
均一な輝度部分のある撮像領域であっても同様の原理に
て抽出対象となる領域のみ抽出することができる。In the above-described configuration, a state is shown in which there is a bright and dark portion due to illumination in the imaging region. However, even in an imaging region having non-uniform brightness due to uneven illumination, a region to be extracted is based on the same principle. Only can be extracted.
【0020】なお、色抽出のパラメータとして、R値,
G値,B値,R−G値,B−G値,及びR−B値の6つ
のパラメータを用いる構成としたが、これに限らず、撮
像画像に対する抽出領域のR値,G値,及びB値の差の
大きさ等に応じて、R値,G値,B値に追加するパラメ
ータの数は1つ〜3つの範囲で自由に選択することがで
きる。従って、パラメータの数を減じることにより、更
に簡易な構成で演算処理の低下を抑制することができ、
パラメータの数を増すことにより、更に高精度な色抽出
を行なうことができる。Note that R values,
Although the configuration uses six parameters of G value, B value, RG value, BG value, and RB value, the present invention is not limited to this, and the R value, G value, and The number of parameters to be added to the R value, G value, and B value can be freely selected from one to three in accordance with the size of the difference between the B values. Therefore, by reducing the number of parameters, it is possible to suppress a decrease in arithmetic processing with a simpler configuration,
By increasing the number of parameters, more accurate color extraction can be performed.
【0021】また、R値,G値,及びB値に代わる色抽
出のパラメータとして、R値,G値,及びB値に基づい
てH(色相),S(彩度),I(明度)にHSI変換し
て、これらの値を用いるか、又はこれらの値に加えてH
値,S値,及びI値の差分値を用いる構成とすることも
できるのはいうまでもない。As parameters for color extraction instead of the R, G, and B values, H (hue), S (saturation), and I (brightness) are determined based on the R, G, and B values. HSI conversion and use these values or add H
It is needless to say that a configuration using a difference value between the value, the S value, and the I value can be adopted.
【0022】また、選択された画素を含む色領域全体の
R値,G値,B値,R−G値,B−G値,及びR−B値
の最大値及び最小値を各値の閾値とする構成としたが、
これに限らず、例えば選択された画素を中央とする所定
の領域内にある画素のR値,G値,B値,R−G値,B
−G値,及びR−B値の最大値及び最小値を閾値とする
構成とすることもできる。Further, the maximum value and the minimum value of the R value, G value, B value, RG value, BG value, and RB value of the entire color area including the selected pixel are set as threshold values of each value. Configuration,
The present invention is not limited to this. For example, the R value, G value, B value, RG value, B
The maximum value and the minimum value of the -G value and the RB value may be set as the threshold values.
【0023】[0023]
実施の形態1.以下本発明をその実施の形態を示す図面
に基づいて詳述する。図1は、実施の形態1に係る画像
処理装置の構成を示すブロック図である。Embodiment 1 FIG. Hereinafter, the present invention will be described in detail with reference to the drawings showing the embodiments. FIG. 1 is a block diagram illustrating a configuration of the image processing apparatus according to the first embodiment.
【0024】図において、1は撮像対象としての例えば
製造ライン上の薬品チューブ等のワークであり、その側
面には色付ラベル11が貼り付けられている。このワー
ク1の上方には、ワーク1を撮像するカラーカメラ2が
設けられている。カラーカメラ2は画像抽出装置3に接
続されており、画像抽出装置3には、抽出対象となる領
域を指定する入力手段4と、原画像及び抽出結果を表示
するCRT等の表示装置5とが接続されている。In FIG. 1, reference numeral 1 denotes a workpiece such as a chemical tube on a production line as an object to be imaged, and a colored label 11 is attached to a side surface thereof. A color camera 2 for imaging the work 1 is provided above the work 1. The color camera 2 is connected to an image extraction device 3. The image extraction device 3 includes an input unit 4 for designating an area to be extracted and a display device 5 such as a CRT for displaying an original image and an extraction result. It is connected.
【0025】画像抽出装置3は、A/D変換器等を用い
てなる画像入力部31と、演算処理を行なうCPU32
と、CPU32から与えられる情報を記憶するメモリ3
4と、D/A変換器等を用いてなる画像出力部33とを
備えてなり、カラーカメラ2で撮像された撮像領域11
aのアナログの撮像画像データは、画素毎にR値,G
値,及びB値の各値に分解されて、画像入力部31に与
えられる。画像入力部31は、与えられたアナログのR
値,G値,及びB値をディジタルのR値,G値,及びB
値(以下、単にR値,G値,及びB値という)に変換し
てCPU32に与えるようになっている。CPU32
は、与えられた画素毎のR値,G値,及びB値をメモリ
34に格納するとともに、このR値,G値,及びB値を
画像出力部33に与える。画像出力部33は、与えられ
たR値,G値,及びB値を再びアナログのR値,G値,
及びB値に変換し、表示装置5に撮像領域11aの原画
像を出力して画面表示させるようになっている。また、
メモリ34には、予め設定されたR値,G値,B値,並
びにR値及びB値の差分値たるR−B値の各値に対する
閾値が格納されている。The image extracting device 3 includes an image input unit 31 using an A / D converter and the like, and a CPU 32 for performing arithmetic processing.
And a memory 3 for storing information given from the CPU 32.
4 and an image output unit 33 using a D / A converter and the like.
The analog captured image data of “a” is an R value, G
The value is decomposed into a value and a B value, and is provided to the image input unit 31. The image input unit 31 receives a given analog R
Values, G values, and B values are converted to digital R values, G values, and B values.
The values are converted into values (hereinafter simply referred to as R values, G values, and B values) and given to the CPU 32. CPU32
Stores the given R value, G value, and B value for each pixel in the memory 34 and supplies the R value, G value, and B value to the image output unit 33. The image output unit 33 converts the given R value, G value, and B value again into analog R values, G values,
And the B value, and outputs the original image of the imaging area 11a to the display device 5 to display it on the screen. Also,
The memory 34 stores a preset R value, a G value, a B value, and a threshold value for each of the RB values that are the difference between the R value and the B value.
【0026】また、表示される画面上には、原画像に重
畳して画面上を移動自在に設けられた図示しないポイン
タが表示されており、オペレータが入力手段4を用いて
ポインタを操作することにより、抽出対象となる色領域
内の画素を指示することができるようになっている。画
像抽出装置3は、選択された画素のR値,G値,B値に
基づいて選択された画素と同一色の画素を撮像領域11
aの中から抽出して表示装置5に表示させるようになっ
ている。On the displayed screen, a pointer (not shown) provided so as to be movable on the screen so as to be superimposed on the original image is displayed, and the operator operates the pointer using the input means 4. Thus, a pixel in the color area to be extracted can be specified. The image extracting device 3 extracts pixels of the same color as the selected pixel based on the R value, G value, and B value of the selected pixel in the imaging region 11.
Extracted from a and displayed on the display device 5.
【0027】図2,図3は、撮像領域11aのR値,G
値,及びB値を示す図表である。ワーク1に貼り付けら
れた色付ラベル11には、ワーク1の周方向に5色のカ
ラーバーが着色されており、ここでは説明を簡略化する
ためにカラーバーは、図2に示す如く撮像領域11aを
横方向に5等分するように設けられ、撮像領域11aの
左端から白色,赤みがかった色,青みがかった色,紫が
かった色,及び赤紫がかった色となる縦長矩形の色領域
となっている。各カラーバーは各色領域全体に亘って均
一に着色してあり、図2は、この撮像領域11aにおけ
る各カラーバーのR値,G値,及びB値を示している。FIGS. 2 and 3 show the R value and G value of the image pickup area 11a.
5 is a chart showing values and B values. The color label 11 attached to the work 1 is colored with five color bars in the circumferential direction of the work 1. Here, the color bar is imaged as shown in FIG. A vertically-long rectangular color region is provided so as to divide the region 11a in the horizontal direction into five equal parts, and from the left end of the imaging region 11a, becomes a white, reddish, bluish, purple-red, and reddish-purple color. Has become. Each color bar is uniformly colored over the entire color region, and FIG. 2 shows the R value, the G value, and the B value of each color bar in the imaging region 11a.
【0028】また、図3は、カラーカメラ2の光軸に対
して若干傾斜した角度から色付ラベル11に光を照射し
た如き状態を示しており、図3においては説明を簡略化
するために、この照射光により各色領域の分割方向に対
して直角方向に5等分するように各色領域に明暗部分が
生じているものとする。このように、互いに直交する方
向に5×5の領域に分割された各色領域の色は、図3に
示す如きR値,G値,及びB値で表わされる。FIG. 3 shows a state in which light is applied to the colored label 11 from an angle slightly inclined with respect to the optical axis of the color camera 2. In FIG. It is assumed that light and dark portions are generated in each color region by the irradiation light so as to be equally divided into five portions in a direction perpendicular to the direction of division of each color region. As described above, the colors of the respective color regions divided into 5 × 5 regions in directions orthogonal to each other are represented by R values, G values, and B values as shown in FIG.
【0029】図4は、色領域抽出に伴うCPU32の制
御内容を示すフローチャートである。表示装置5に表示
されている撮像領域11aの原画像の何れかの色の領域
を抽出するかをオペレータが入力手段4を用いて画面上
のポインタを操作し、抽出対象となる色領域内の画素を
選択するのに伴ってスタートする。FIG. 4 is a flowchart showing the control contents of the CPU 32 in extracting a color area. The operator operates the pointer on the screen using the input means 4 to determine which color region of the original image of the imaging region 11a displayed on the display device 5 is to be extracted. It starts with selecting a pixel.
【0030】CPU32は、まず、撮像領域11aの各
画素に対応するR値,G値,及びB値を取込んでメモリ
34に格納する(ステップ1)。次いで、選択された画
素を含む色領域内の全ての画素のR値,G値,及びB値
をメモリ34から読込み、読込結果に基づいてR−B値
を演算し(ステップ2)、既に設定してある閾値と比較
する(ステップ3)。First, the CPU 32 fetches the R value, the G value, and the B value corresponding to each pixel in the imaging area 11a and stores them in the memory 34 (step 1). Next, the R value, G value, and B value of all the pixels in the color region including the selected pixel are read from the memory 34, and the RB value is calculated based on the read result (step 2), and is already set. The threshold value is compared with the threshold value (step 3).
【0031】そして、各画素のR値,G値,B値,及び
R−B値の全ての値が閾値内である場合には、この画素
が選択された画素と同一色であると判断し、この画素の
R値,G値,及びB値に基づいて表示すべく画像出力部
33へ与える(ステップ4)。また、R値,G値,B
値,又はR−B値の何れかの値が閾値外である場合に
は、R値,G値,及びB値の各値を零とするなどして、
選択された画素と同一色である画素を区別して表示すべ
く画像出力部33へ与える(ステップ5)。If all of the R, G, B, and RB values of each pixel are within the threshold, it is determined that this pixel has the same color as the selected pixel. Is supplied to the image output unit 33 for display based on the R value, G value, and B value of this pixel (step 4). R value, G value, B value
If any of the values or the RB values are outside the threshold, the values of the R value, the G value, and the B value are set to zero, and so on.
The pixel having the same color as the selected pixel is provided to the image output unit 33 to be displayed in a distinguished manner (step 5).
【0032】図5は、実施の形態1に係る画像処理装置
の抽出結果の一例を示す図表である。以上の構成とする
ことにより、例えば、図3の状態において、B値が比較
的に大きい青みがかった色の列(以下、青色列といい、
同様にして赤みがかった色の列を赤色列、紫がかった色
の列を紫色列,赤紫がかった色の列を赤紫色列と夫々い
う)の全体部分を抽出するために、オペレータが青色列
内の画素を選択した場合、この青色列おけるR値,G
値,B値,及びR−B値の各閾値範囲は、R=30〜7
0,G=30〜70,B=60〜140,R−B=−7
0〜−30であり、撮像領域11a内の各画素のR値,
G値,B値,及びR−B値と比較した場合、R値,G
値,B値,及びR−B値の全ての値が閾値範囲内にある
画素は、図5に示す如く破線で囲んだ青色列の画素のみ
であり、選択された画素を含む色領域のみ抽出できるこ
とがわかる。FIG. 5 is a chart showing an example of an extraction result of the image processing apparatus according to the first embodiment. With the above configuration, for example, in the state of FIG. 3, a bluish-colored column having a relatively large B value (hereinafter, referred to as a blue column,
Similarly, in order to extract the entirety of the reddish column, the red column is referred to as the purple column, the purple column is referred to as the purple column, and the reddish column is referred to as the red-purple column. Is selected, the R value, G in this blue column
The threshold ranges of the value, the B value, and the RB value are as follows: R = 30 to 7
0, G = 30-70, B = 60-140, RB = -7
0 to −30, the R value of each pixel in the imaging area 11a,
When compared with G value, B value, and RB value, R value, G value
The pixels in which all of the values of the values, B values, and RB values are within the threshold range are only the pixels in the blue column surrounded by the dashed line as shown in FIG. 5, and only the color region including the selected pixels is extracted. We can see that we can do it.
【0033】図6は、従来の画像処理装置の抽出結果の
一例を示す図表である。また、実施の形態1に係る画像
処理装置の抽出結果と比較するためにR値,G値,及び
B値の3つの値で上述と同様の評価をした場合には、図
6に示す如く、白色列及び紫色列の一部の領域のR値,
G値,B値,及びR−B値が閾値範囲内にあるために、
青色列に加えてこれらの領域が抽出される。また、これ
らの余計な色列を抽出しないようにするために、閾値を
狭くした場合、前述の如く青色列の全ての領域を抽出す
ることができなくなる。FIG. 6 is a table showing an example of the extraction result of the conventional image processing apparatus. In addition, when the same evaluation as described above is performed using the three values of the R value, the G value, and the B value for comparison with the extraction result of the image processing apparatus according to the first embodiment, as shown in FIG. R value of partial area of white column and purple column,
Because the G value, B value, and RB value are within the threshold range,
These regions are extracted in addition to the blue columns. Further, if the threshold is narrowed in order not to extract these unnecessary color strings, it becomes impossible to extract all the regions of the blue string as described above.
【0034】このように実施の形態1に係る画像処理装
置においては、抽出対象となる画素を含む色領域内にあ
る画素のR値,G値,及びB値に加えて、R−B値等の
差分値に基づく閾値を設定し、この閾値に基づいて撮像
領域11a内の各画素のR値,G値,B値,及びR−B
値を評価することにより、抽出対象となる画素と同一色
の画素を正確に抽出することができる。As described above, in the image processing apparatus according to the first embodiment, in addition to the R value, the G value, and the B value of the pixel in the color region including the pixel to be extracted, the RB value, etc. Is set based on the difference value of R, G, B, and RB of each pixel in the imaging region 11a based on the threshold.
By evaluating the value, a pixel having the same color as the pixel to be extracted can be accurately extracted.
【0035】図7,図8は、実施の形態1に係る画像処
理装置の抽出結果の一例を示す図表である。ところが、
実施の形態1に示した画像処理装置においては、図7に
示す如く、R−B値を差分値として用いても、異なる色
列、例えば紫色列を抽出しようとした場合に、白色列の
一部の如き余計な色列まで抽出し、また、図8に示す如
く、異なる差分値、例えばR−G値を用いて図5に示す
如く青色列を抽出しようとした場合にも、白色列の一部
の如き余計な色列まで抽出する虞がある。FIGS. 7 and 8 are tables showing an example of the extraction result of the image processing apparatus according to the first embodiment. However,
In the image processing apparatus according to the first embodiment, as shown in FIG. 7, even when an RB value is used as a difference value, if a different color string, for example, a purple In addition, as shown in FIG. 8, even when an attempt is made to extract an unnecessary color string as shown in FIG. 8 and to extract a blue string as shown in FIG. There is a possibility that some extra color strings may be extracted.
【0036】実施の形態2.そこで、実施の形態2の画
像処理装置では、実施の形態1の如きR−B値等の1つ
の差分値を用いる構成ではなく、R値及びG値の差分値
たるR−G値,R値及びB値の差分値たるR−B値等の
2つの差分値を用いる構成としたものであり、実施の形
態1と対応する部分には同一符号を付して説明を省略す
る。Embodiment 2 Therefore, the image processing apparatus according to the second embodiment does not employ a configuration using one difference value such as an RB value as in the first embodiment, but an RG value and an R value which are difference values between an R value and a G value. And a difference value between the B value and the RB value, which is a difference value between the B value and the B value. The same reference numerals are given to portions corresponding to those in the first embodiment, and description thereof will be omitted.
【0037】図9〜図11は、実施の形態2に係る画像
処理装置の抽出結果の一例を示す図表である。図9,図
10に示す如く、R値,G値,B値,及びR−B値にR
−G値を差分値として加えることにより、青色列,紫色
列等の色列も正確に抽出が可能となる。FIGS. 9 to 11 are tables showing examples of the extraction results of the image processing apparatus according to the second embodiment. As shown in FIGS. 9 and 10, the R value, G value, B value, and RB value
By adding the -G value as a difference value, a color string such as a blue string or a purple string can be accurately extracted.
【0038】ところが、実施の形態1と同様にして、差
分値の組合せによっては余計な色列まで抽出する虞があ
る。例えば、図11に示す如く、R−G値及びB−G値
を用いた場合には、赤紫色列の一部まで抽出する虞があ
る。However, as in the first embodiment, there is a possibility that an extra color string may be extracted depending on the combination of the difference values. For example, as shown in FIG. 11, when the RG value and the BG value are used, there is a possibility that a part of the red-purple line is extracted.
【0039】実施の形態3.そこで、実施の形態3の画
像処理装置では、実施の形態2の如きR−G値,R−B
値等の2つの差分値を用いる構成ではなく、R値及びG
値の差分値たるR−G値,B値及びG値の差分値たるB
−G値,並びにR値及びB値の差分値たるR−B値等の
3つの差分値を用いる構成としたものであり、実施の形
態2と対応する部分には同一符号を付して説明を省略す
る。Embodiment 3 Therefore, in the image processing apparatus according to the third embodiment, the RG values and the RB values as in the second embodiment are used.
Instead of using two difference values such as values, R value and G
RG value, B value, which is the difference value of the value, and B, which is the difference value of the G value
A configuration using three difference values, such as a G value and an RB value, which is a difference value between the R value and the B value, is used, and portions corresponding to the second embodiment are denoted by the same reference numerals. Is omitted.
【0040】図12は、実施の形態3に係る画像処理装
置の抽出結果の一例を示す図表である。図12に示す如
く、R値,G値,B値,R−B値,及びR−G値にB−
G値を差分値として加えることにより、全ての色列を正
確に抽出することができる。FIG. 12 is a chart showing an example of an extraction result of the image processing apparatus according to the third embodiment. As shown in FIG. 12, the R value, G value, B value, RB value, and RG value
By adding the G value as a difference value, all color strings can be accurately extracted.
【0041】以上の実施の形態においては、R−B値,
R−G値,B−G値の何れか1つ又は複数を用いる構成
としたが、本発明においてはR値,G値,B値の差分値
であればよく、例えばB−R値,G−R値,G−B値等
を差分値として用いる構成とすることもできることはい
うまでもない。In the above embodiment, the RB value,
Although one or more of the RG value and the BG value are used, the present invention may be any difference value between the R value, the G value, and the B value. Needless to say, a configuration using -R value, GB value and the like as the difference value can be adopted.
【0042】[0042]
【発明の効果】以上詳述した如く本発明に係る画像の色
抽出方法及びその方法を用いた画像処理装置によれば、
色抽出のパラメータとなるR値,G値,及びB値の3値
にR−G値,B−G値,R−B値等の差分値のうちの一
又は複数の差分値をパラメータとして加えることによ
り、照明による明暗部分のある撮像領域又は照明むらに
よる不均一な輝度部分のある撮像領域であっても、高精
度な色抽出を行なうことができる。また、HSI変換等
の比較的複雑な処理を行なわずに、R値,G値,及びB
値の差分値を演算する構成としたので、比較的簡単な構
成で演算処理の低下を抑制することができる等、本発明
は優れた効果を奏する。As described in detail above, according to the image color extraction method and the image processing apparatus using the method according to the present invention,
One or a plurality of difference values of difference values such as RG value, BG value, RB value, etc. are added as parameters to three values of R value, G value, and B value which are parameters for color extraction. Accordingly, high-precision color extraction can be performed even in an imaging region having a bright and dark portion due to illumination or an imaging region having an uneven luminance portion due to uneven illumination. Further, the R value, the G value, and the B value can be obtained without performing relatively complicated processing such as HSI conversion.
Since the configuration is such that the difference between the values is calculated, the present invention has excellent effects, such as a reduction in the calculation processing can be suppressed with a relatively simple configuration.
【図1】実施の形態1に係る画像処理装置の構成を示す
ブロック図である。FIG. 1 is a block diagram illustrating a configuration of an image processing apparatus according to a first embodiment.
【図2】撮像領域のR値,G値,及びB値を示す図表で
ある。FIG. 2 is a table showing an R value, a G value, and a B value of an imaging region.
【図3】撮像領域のR値,G値,及びB値を示す図表で
ある。FIG. 3 is a table showing an R value, a G value, and a B value of an imaging region.
【図4】色領域抽出に伴うCPUの制御内容を示すフロ
ーチャートである。FIG. 4 is a flowchart showing the control contents of a CPU associated with color region extraction.
【図5】実施の形態1に係る画像処理装置の抽出結果の
一例を示す図表である。FIG. 5 is a chart showing an example of an extraction result of the image processing apparatus according to the first embodiment;
【図6】従来の画像処理装置の抽出結果の一例を示す図
表である。FIG. 6 is a chart showing an example of an extraction result of a conventional image processing apparatus.
【図7】実施の形態1に係る画像処理装置の抽出結果の
一例を示す図表である。FIG. 7 is a table illustrating an example of an extraction result of the image processing apparatus according to the first embodiment;
【図8】実施の形態1に係る画像処理装置の抽出結果の
一例を示す図表である。FIG. 8 is a table illustrating an example of an extraction result of the image processing apparatus according to the first embodiment;
【図9】実施の形態2に係る画像処理装置の抽出結果の
一例を示す図表である。FIG. 9 is a table illustrating an example of an extraction result of the image processing apparatus according to the second embodiment;
【図10】実施の形態2に係る画像処理装置の抽出結果
の一例を示す図表である。FIG. 10 is a table illustrating an example of an extraction result of the image processing apparatus according to the second embodiment;
【図11】実施の形態2に係る画像処理装置の抽出結果
の一例を図表である。FIG. 11 is a chart illustrating an example of an extraction result of the image processing apparatus according to the second embodiment;
【図12】実施の形態3に係る画像処理装置の抽出結果
の一例を示す図表である。FIG. 12 is a chart showing an example of an extraction result of the image processing apparatus according to the third embodiment;
【図13】撮像領域を示す模式図である。FIG. 13 is a schematic diagram illustrating an imaging region.
【図14】撮像領域を示す模式図である。FIG. 14 is a schematic diagram illustrating an imaging region.
【図15】図14に示した色領域のR値,G値,及びB
値を示す図表である。FIG. 15 illustrates an R value, a G value, and a B value of the color area illustrated in FIG. 14;
5 is a table showing values.
【図16】図14に示した色領域のR値,G値,B値,
R−G値,B−G値,及びR−B値を示す図表である。FIG. 16 shows R, G, and B values of the color area shown in FIG.
4 is a chart showing RG values, BG values, and RB values.
1 ワーク 2 カラーカメラ 3 画像抽出装置 4 入力手段 5 表示装置 11 色付ラベル 11a 撮像領域 31 画像入力部 32 CPU 33 画像出力部 34 メモリ Reference Signs List 1 work 2 color camera 3 image extraction device 4 input means 5 display device 11 colored label 11a imaging area 31 image input unit 32 CPU 33 image output unit 34 memory
Claims (3)
の画素におけるR値,G値,及びB値に基づいて、R
値,G値,及びB値に関連する値に対する閾値を設定
し、前記画像における任意の画素のR値,G値,及びB
値に関連する値が前記閾値を越えない画素を前記選択さ
れた画素と同一色であるとして抽出する画像の色抽出方
法において、 前記撮像した画像に基づいて、R値及びG値の差分値、
B値及びG値の差分値、R値及びB値の差分値のうちの
一又は複数の差分値を演算し、前記選択された画素のR
値,G値,B値,及び前記差分値に基づいて閾値を設定
することを特徴とする画像の色抽出方法。An R value based on an R value, a G value, and a B value at one or a plurality of pixels selected from a captured image.
Set thresholds for values associated with values, G values, and B values, and set R, G, and B values for any pixel in the image.
In a color extraction method of an image for extracting a pixel whose value related to a value does not exceed the threshold value as the same color as the selected pixel, a difference value between an R value and a G value based on the captured image,
One or more difference values of the difference value between the B value and the G value, the difference value between the R value and the B value are calculated, and the R value of the selected pixel is calculated.
A method for extracting a color of an image, wherein a threshold value is set based on a value, a G value, a B value, and the difference value.
の画素におけるR値,G値,及びB値に基づいて、R
値,G値,及びB値に関連する値に対する閾値を設定
し、前記画像における任意の画素のR値,G値,及びB
値に関連する値が前記閾値を越えない画素を前記選択さ
れた画素と同一色であるとして抽出する画像処理装置に
おいて、 前記撮像した画像に基づいて、R値及びG値の差分値、
B値及びG値の差分値、R値及びB値の差分値のうちの
一又は複数の差分値を演算する演算手段と、前記選択さ
れた画素のR値,G値,B値,及び前記差分値に基づい
て閾値を決定する閾値決定手段と、前記撮像した画像に
おけるR値,G値,B値,及び前記差分値が前記閾値を
越えない画素を前記選択された画素と同一色である画素
として抽出する抽出手段とを備えることを特徴とする画
像処理装置。2. An image processing apparatus according to claim 1, further comprising: selecting one of a plurality of pixels selected from a captured image based on an R value, a G value, and a B value.
Set thresholds for values associated with values, G values, and B values, and set R, G, and B values for any pixel in the image.
In an image processing apparatus for extracting a pixel whose value related to a value does not exceed the threshold value as having the same color as the selected pixel, a difference value between an R value and a G value based on the captured image;
Calculating means for calculating one or more of a difference value between the B value and the G value, a difference value between the R value and the B value, and an R value, a G value, a B value, and Threshold value determining means for determining a threshold value based on the difference value; and pixels in which the R value, G value, B value, and the difference value do not exceed the threshold value in the captured image have the same color as the selected pixel. An image processing apparatus comprising: an extraction unit that extracts a pixel.
前記画像に重畳して表示されたポインタを操作し、前記
画像から対象となる一又は複数の画素を選択する選択手
段と、選択された画素におけるR値,G値,及びB値に
基づいて、R値,G値,及びB値に関連する値に対する
閾値を設定し、前記画像における任意の画素のR値,G
値,及びB値に関連する値が前記閾値を越えない画素を
前記選択された画素と同一色であるとして抽出する抽出
手段と、抽出結果を表示する表示手段とを備える画像処
理装置において、 前記撮像手段により撮像された前記画像に基づいて、R
値及びG値の差分値、B値及びG値の差分値、R値及び
B値の差分値のうちの一又は複数の差分値を演算する演
算手段と、前記選択された画素のR値,G値,B値,及
び前記差分値に基づいて閾値を決定する閾値決定手段と
を備えることを特徴とする画像処理装置。3. An image pickup means for picking up an image to be processed,
Operating a pointer displayed superimposed on the image, selecting one or more target pixels from the image, and selecting an R value, a G value, and a B value of the selected pixel. Thresholds for values related to the R value, the G value, and the B value are set, and the R value, G value of an arbitrary pixel in the image are set.
An image processing apparatus comprising: an extraction unit that extracts a pixel whose value related to a value and a B value does not exceed the threshold value as having the same color as the selected pixel; and a display unit that displays an extraction result. Based on the image captured by the image capturing means, R
Calculating means for calculating one or a plurality of difference values among the difference value between the G value and the G value, the difference value between the B value and the G value, the difference value between the R value and the B value, and the R value of the selected pixel. An image processing apparatus comprising: a threshold value determining unit that determines a threshold value based on a G value, a B value, and the difference value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP9267576A JPH11110552A (en) | 1997-09-30 | 1997-09-30 | Method for extracting color of image and image processor using the same |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP9267576A JPH11110552A (en) | 1997-09-30 | 1997-09-30 | Method for extracting color of image and image processor using the same |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH11110552A true JPH11110552A (en) | 1999-04-23 |
Family
ID=17446708
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP9267576A Pending JPH11110552A (en) | 1997-09-30 | 1997-09-30 | Method for extracting color of image and image processor using the same |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH11110552A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6774909B1 (en) | 2000-01-19 | 2004-08-10 | Keyence Corporation | Method and apparatus for transforming color image into monochromatic image |
JP2010016661A (en) * | 2008-07-04 | 2010-01-21 | Murata Mach Ltd | Image processing device |
-
1997
- 1997-09-30 JP JP9267576A patent/JPH11110552A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6774909B1 (en) | 2000-01-19 | 2004-08-10 | Keyence Corporation | Method and apparatus for transforming color image into monochromatic image |
JP2010016661A (en) * | 2008-07-04 | 2010-01-21 | Murata Mach Ltd | Image processing device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100278642B1 (en) | Color image processing apparatus and method | |
JP4435355B2 (en) | Color image conversion method, conversion device, and recording medium | |
WO2001015452A1 (en) | Device for applying accurate color thresholds in real time | |
JPH0243688A (en) | Image processor | |
KR20060048146A (en) | Area segmentation technology based on color | |
JPH11110552A (en) | Method for extracting color of image and image processor using the same | |
US8358836B2 (en) | Specific color detection applicator | |
JPH027091A (en) | Color display system | |
JP4598501B2 (en) | Temperature measurement display device | |
JP3943678B2 (en) | Image color extraction method and image processing apparatus using the method | |
JP4053652B2 (en) | White uniformity evaluation method and apparatus | |
JPH11110555A (en) | Display method for image and image processor using the same | |
JPS5948425B2 (en) | Color image analysis device | |
JP2005130000A (en) | Image processing device | |
JPH04344576A (en) | Image processor | |
JP2847665B2 (en) | Automatic inspection method for non-metallic inclusions using color images | |
JP2004321659A (en) | Quantitative measurement system and optical self evaluation system of color vision characteristic and its method and program | |
KR100255861B1 (en) | Input and output image processing method and apparatus using plural lookup table | |
JP2000105167A (en) | Address calibration method of image quality inspection device | |
JPH10153484A (en) | Color measuring device | |
JPH07122193A (en) | Method and device for detecting defect | |
JPH02205186A (en) | Picture processor | |
JPH02185192A (en) | Uniformity evaluation device | |
JP2001195561A (en) | Method, device and system for processing image, and recording medium | |
JP3785693B2 (en) | Image processing inspection equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20040927 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20061114 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20070306 |