JP3208961B2 - Color name acquisition device - Google Patents
Color name acquisition deviceInfo
- Publication number
- JP3208961B2 JP3208961B2 JP26662493A JP26662493A JP3208961B2 JP 3208961 B2 JP3208961 B2 JP 3208961B2 JP 26662493 A JP26662493 A JP 26662493A JP 26662493 A JP26662493 A JP 26662493A JP 3208961 B2 JP3208961 B2 JP 3208961B2
- Authority
- JP
- Japan
- Prior art keywords
- color
- value
- unit
- name
- rgb value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 239000003086 colorant Substances 0.000 claims description 8
- 230000006870 function Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 5
- 238000000034 method Methods 0.000 description 4
- 238000013500 data storage Methods 0.000 description 2
- 238000004590 computer program Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
Landscapes
- Processing Or Creating Images (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Image Analysis (AREA)
Description
【0001】[0001]
【産業上の利用分野】この発明は、ワークステーション
やパソコンなどのカラーディスプレイを具えたコンピュ
ータシステムで使用される色の名称取得装置に関し、詳
しくはディスプレイ上で指定された任意の点から、その
点の色の名称を得る装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an apparatus for acquiring a color name used in a computer system having a color display such as a workstation or a personal computer, and more particularly, to an arbitrary point designated on a display. And a device for obtaining the name of the color.
【0002】[0002]
【従来の技術】近年、ワークステーションやパソコンな
どのコンピュータシステムでは、カラーディスプレイに
よるカラー表示が普及しつつある。これらのシステムで
は、ディスプレイ上に色見本が表示され、ユーザは所望
の色を選択することにより、図形やグラフなどの色を指
定することができる。2. Description of the Related Art In recent years, in computer systems such as workstations and personal computers, color display using a color display has become widespread. In these systems, a color sample is displayed on a display, and a user can specify a color of a graphic or a graph by selecting a desired color.
【0003】ところで、上述したワークステーションな
どのカラーディスプレイ上には、非常に多くの色を表示
することができる。表示される色は、通常レッド
(R)、グリーン(G)、ブルー(B)の3つの値の組
み合わせで構成され、各値は0から255までの256
の階調を持っている。よって、色の総数は256の3乗
であり約1680万色となる。したがって、色見本を使
った色指定では多くの操作が必要になる場合もあり、ま
た正確な色の指定が難しいという欠点もある。By the way, a large number of colors can be displayed on a color display such as the workstation described above. The displayed color is usually composed of a combination of three values of red (R), green (G) and blue (B), and each value is 256 from 0 to 255.
Has the gradation of Therefore, the total number of colors is 256 to the third power, which is about 16.8 million colors. Therefore, there are cases where many operations are required in color specification using a color sample, and there is a drawback that it is difficult to specify a correct color.
【0004】そこで、色の名称を入力することで色を指
定できるようにしたものがある。例えば、特開平4−2
64678号公報には、色を表現する文字列を入力する
だけで所望の色とその値(RGB値)を発生するように
した色発生方法及びその装置が提案されている。[0004] Therefore, there is an apparatus in which a color can be designated by inputting a color name. For example, Japanese Patent Laid-Open No. 4-2
Japanese Patent Application Publication No. 64678 proposes a color generation method and a color generation method in which a desired color and its value (RGB value) are generated simply by inputting a character string expressing the color.
【0005】[0005]
【発明が解決しようとする課題】しかしながら、上述し
た特開平4−264678号のような色の名称を入力さ
せる方法では、その色の名称がわからなければ色を指定
できないという不便さがあった。例えば、ディスプレイ
上のある色と同じ、あるいは近い色を指定しようとした
場合でも、その色の名称を知ることができなければ、色
の指定はできないことになる。However, the method of inputting a color name as described in Japanese Patent Application Laid-Open No. Hei 4-264678 has an inconvenience that a color cannot be designated unless the color name is known. For example, even if an attempt is made to specify a color that is the same as or close to a certain color on the display, the color cannot be specified unless the name of that color is known.
【0006】この発明は、色の名称がわからない場合で
も、ディスプレイ画面上の所望の点を指定することによ
り、その点の色の名称を得ることができる色の名称取得
装置を提供することを目的とする。SUMMARY OF THE INVENTION It is an object of the present invention to provide a color name obtaining apparatus capable of obtaining a color name of a point by designating a desired point on a display screen even when the name of the color is unknown. And
【0007】[0007]
【課題を解決するための手段】この発明に係わる色の名
称取得装置は、ディスプレイ画面上に画像を表示する表
示手段と、前記表示手段に表示された画像上の任意の点
を指定するための指定手段と、前記指定手段で指定され
た点における色のRGB値を取得する取得手段と、基本
色の名称とそのRGB値とを保持する第1のデータ保持
手段と、前記基本色に近似した色を表現する文字列と、
その近似した色の範囲に適合するかどうかを判定する条
件式とを保持する第2のデータ保持手段と、前記取得手
段により取得された色のRGB値と一致するRGB値を
第1のデータ保持手段で検索し、一致するRGB値に対
応する色の名称を特定し、また一致するRGB値が存在
しないときは、最も近いRGB値を特定する第1の検索
手段と、前記第1の検索手段で特定された最も近いRG
B値に適合する条件式を前記第2のデータ保持手段から
検索し、対応する文字列を得る第2の検索手段と、前記
取得手段により取得された色のRGB値と一致するRG
B値が第1のデータ保持手段に存在したときは、当該R
GB値に対応する色の名称を表示手段に表示し、前記取
得手段により取得された色のRGB値に一致するRGB
値が第1のデータ保持手段に存在しないときは、第2の
検索手段で得た文字列と、第1の検索手段で特定された
最も近いRGB値に対応する基本色の名称とを組み合わ
せて表示する表示制御手段とからなることを特徴とす
る。According to the present invention, there is provided a color name obtaining apparatus for displaying an image on a display screen, and for specifying an arbitrary point on the image displayed on the display means. Specifying means, obtaining means for obtaining the RGB values of the color at the point specified by the specifying means, first data holding means for storing the names of the basic colors and their RGB values, A string representing the color,
A second data holding unit for holding a conditional expression for determining whether or not the color range matches the approximated color range; and a first data holding unit for storing an RGB value that matches the RGB value of the color obtained by the obtaining unit. Means for searching for a color name corresponding to a matching RGB value, and when there is no matching RGB value, a first searching means for specifying a closest RGB value; Closest RG specified in
A second search unit that searches the second data holding unit for a conditional expression that matches the B value and obtains a corresponding character string; and an RG that matches the RGB value of the color acquired by the acquisition unit.
When the B value exists in the first data holding means,
The name of the color corresponding to the GB value is displayed on the display unit, and the RGB value corresponding to the RGB value of the color acquired by the acquisition unit is displayed.
When the value does not exist in the first data holding means, the character string obtained by the second search means is combined with the name of the basic color corresponding to the closest RGB value specified by the first search means. And display control means for displaying.
【0008】[0008]
【作用】指定手段によりディスプレイ画面上の任意の点
が指定されると、取得手段は、前記指定手段で指定され
た点における色のRGB値を取得し、第1の検索手段に
通知する。第1の検索手段は、前記指定された点におけ
る色のRGB値で第1のデータ保持手段を検索し、一致
する値が存在するかどうかを調べる。そして、一致する
値があれば、その値に対応する色の名称を特定して表示
制御手段に通知する。表示制御手段は、当該色の名称を
表示手段に表示する。When an arbitrary point on the display screen is designated by the designation means, the acquisition means acquires the RGB values of the color at the point designated by the designation means and notifies the first retrieval means. The first searching means searches the first data holding means with the RGB values of the color at the designated point, and checks whether a matching value exists. If there is a matching value, the color name corresponding to the value is specified and notified to the display control means. The display control means displays the name of the color on the display means.
【0009】また、第1の検索手段は、第1のデータ保
持手段を検索した結果、一致する値が存在しなければ、
取得手段で取得された色のRGB値に最も近い値を特定
して、第2の検索手段に通知する。第2の検索手段は、
前記第1の検索手段で特定された最も近いRGB値に適
合する条件式を第2のデータ保持手段で検索し、対応す
る文字列を特定して表示制御手段に通知する。表示制御
手段は、第2の検索手段から得た文字列と、第1の検索
手段で特定された最も近いRGB値に対応する基本色の
名称とを組み合わせて表示手段に表示する。[0009] If the first search means finds no matching value as a result of searching the first data holding means,
The value closest to the RGB value of the color acquired by the acquisition unit is specified, and the value is notified to the second search unit. The second search means is
The second data holding unit searches for a conditional expression that matches the closest RGB value specified by the first search unit, specifies a corresponding character string, and notifies the display control unit. The display control means combines the character string obtained from the second search means with the name of the basic color corresponding to the closest RGB value specified by the first search means and displays the combination on the display means.
【0010】[0010]
【実施例】以下、この発明に係わる色の名称取得装置の
一実施例を図面を参照しながら詳細に説明する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of a color name obtaining apparatus according to the present invention will be described below in detail with reference to the drawings.
【0011】図1は、色の名称取得装置の機能的な構成
を示すブロック図である。この色の名称取得装置10
は、表示手段11、指定手段12、描画メモリ13、取
得手段14、第1のデータ保持手段15、第2のデータ
保持手段16、第1の検索手段17、第2の検索手段1
8、表示制御手段19により構成されている。FIG. 1 is a block diagram showing a functional configuration of a color name obtaining apparatus. Name acquisition device 10 for this color
Are a display unit 11, a designation unit 12, a drawing memory 13, an acquisition unit 14, a first data holding unit 15, a second data holding unit 16, a first search unit 17, and a second search unit 1.
8. It is composed of display control means 19.
【0012】表示手段11は、ディスプレイ画面上に図
形やグラフなどのカラー画像を表示する。The display means 11 displays a color image such as a figure or a graph on a display screen.
【0013】指定手段12は、ユーザが操作する入力手
段であり、ユーザがディスプレイ画面上の任意の点を指
定すると、その位置情報が表示制御手段19に通知され
る。描画メモリ13は、ディスプレイに表示される画像
データを展開し、各種の編集処理を行うためのメモリで
あり、図示せぬファイルから読み出された画像データは
この描画メモリに格納される。The designation means 12 is an input means operated by the user. When the user designates an arbitrary point on the display screen, the position information is notified to the display control means 19. The drawing memory 13 is a memory for developing image data displayed on the display and performing various editing processes. Image data read from a file (not shown) is stored in the drawing memory.
【0014】取得手段14は、前記指定手段12で指定
された画像上の点の位置情報に基づいて描画メモリ13
を検索し、指定された点における色の値(RGB値)を
取得する。なお、取得手段14の機能は表示制御手段1
9に持たせてもよい。The obtaining means 14 stores the drawing memory 13 based on the position information of the point on the image specified by the specifying means 12.
To obtain the color value (RGB value) at the designated point. Note that the function of the acquisition unit 14 is the display control unit 1.
9 may be provided.
【0015】第1のデータ保持手段15は、ディスプレ
イ上で表示される基本色の名称とその値を、図2に示す
ような色の名称と値のテーブル(以下、第1のテーブル
という)に保持している。テーブルに登録されるエント
リ数には特に制限はない。データの格納は通常のテキス
トファイルでもよいし、データベース(例えば、リレー
ショナルデータベース)を使用してもよい。The first data holding means 15 stores the names and values of the basic colors displayed on the display in a color name and value table (hereinafter referred to as a first table) as shown in FIG. keeping. There is no particular limitation on the number of entries registered in the table. The data may be stored in an ordinary text file or a database (for example, a relational database) may be used.
【0016】第2のデータ保持手段16は、前記第1の
データ保持手段15に保持されている基本色に近似した
色を表現する文字列と、その近似した色の範囲に適合す
るかどうかを判定する条件式を、図3に示すような条件
テーブル(以下、第2のテーブルという)に保持してい
る。第2のテーブルでは、第1のテーブルに登録されて
いる基本色に近似した色を表現する「白っぽい%」のよ
うな文字列と、その近似した色の範囲に適合するかどう
かを判定する条件式1〜6が登録されている。「%」の
部分には、第1のテーブルで検索された最も近い値に対
応する名称が入る。また、条件式の7(ENDCAS
E)は1〜6のいずれにも適合しなかった場合に用い
る。条件(式)の記述は、あらかじめ何らかの文法を定
めておき、それに従って記述する。この実施例では、通
常の計算機プログラムに近い表現で記述しているが、デ
ータの格納は通常のテキストファイルを使ってもよい。The second data holding means 16 determines a character string representing a color similar to the basic color held in the first data holding means 15 and whether or not the character string matches the approximate color range. The conditional expression to be determined is stored in a condition table as shown in FIG. 3 (hereinafter, referred to as a second table). In the second table, a character string such as “white whitish” expressing a color similar to the basic color registered in the first table and a condition for determining whether or not the character string matches the approximate color range Equations 1 to 6 are registered. In the “%” part, the name corresponding to the closest value searched in the first table is entered. The conditional expression 7 (ENDCAS)
E) is used when none of 1 to 6 is met. In describing the condition (expression), some grammar is defined in advance and described according to the grammar. In this embodiment, the data is described in an expression similar to a normal computer program, but data may be stored in a normal text file.
【0017】第1の検索手段17は、前記第1のテーブ
ルを参照し、前記取得手段14により取得された色の値
と一致する値を検索する。一致するかどうかの判定は、
数学的な距離の定義を満たせば、どのような定義であっ
てもよい。この実施例では、RGBの各々について、実
際の値(取得した値)とテーブルに登録されている値と
の差分(実際の値−登録された値)dR、dG、dBを求め、
(dRの2乗)+(dGの2乗)+(dBの2乗)の値が0と
なった場合に一致したものと判定し、一致したものが見
つからなかった場合は、当該値が最も小さいものを最も
近い値と判定している。検索の結果、実際の値と一致す
る値がテーブルに登録されていた場合は、その色の値と
対応する色の名称を特定して表示制御手段19に通知す
る。また、実際の値と一致する値がテーブルに登録され
ていない場合は、最も近い値を特定して、その差分を第
2の検索手段18に通知する。The first retrieval means 17 refers to the first table and retrieves a value that matches the color value acquired by the acquisition means 14. To determine if they match,
Any definition may be used as long as it satisfies the mathematical definition of distance. In this embodiment, for each of RGB, a difference (actual value−registered value) dR, dG, dB between an actual value (acquired value) and a value registered in the table is obtained,
When the value of (square of dR) + (square of dG) + (square of dB) becomes 0, it is determined that there is a match, and when no match is found, the value is the most significant. The smaller one is determined to be the closest value. As a result of the search, if a value that matches the actual value is registered in the table, the value of the color and the name of the corresponding color are specified and notified to the display control unit 19. If a value that matches the actual value is not registered in the table, the closest value is specified, and the difference is notified to the second search unit 18.
【0018】第2の検索手段18は、前記第1の検索手
段17から通知された差分に適合する条件式を前記第2
のテーブルで検索し、その条件式に対応する文字列を特
定して表示制御手段19に通知する。The second search means 18 calculates a conditional expression matching the difference notified from the first search means 17 by the second search means.
And a character string corresponding to the conditional expression is specified and notified to the display control means 19.
【0019】表示制御手段19は、表示手段11での画
像表示を制御するもので、描画メモリ13に展開された
画像データなどを表示する。また、色の名称を取得する
ためのアプリケーションウィンドウ内が開いているとき
は、前記第1の検索手段17から通知された色の値と対
応する色の名称を表示し、第2の検索手段18から通知
された条件式に対応する文字列と、この文字列に近似す
る基本色の名称(第1の検索手段17から取得する)を
組み合わせて新たに色の名称を作成し、取得手段14で
取得した色の値(実際の値)とともに表示手段11に表
示させる。The display control means 19 controls the image display on the display means 11, and displays the image data developed in the drawing memory 13. When an application window for acquiring a color name is open, a color name corresponding to the color value notified from the first search means 17 is displayed, and a second search means 18 is displayed. A new color name is created by combining the character string corresponding to the conditional expression notified from the above with the name of the basic color (obtained from the first search unit 17) approximate to this character string, and the obtaining unit 14 The display unit 11 displays the acquired color values (actual values) together with the values.
【0020】図4は、図1に示した色の名称取得装置1
0を実現するための具体例を示したものであり、例えば
画像処理機能を有するワークステーションのハードウェ
ア構成を示している。FIG. 4 shows a color name acquiring device 1 shown in FIG.
0 shows a specific example for realizing 0, for example, a hardware configuration of a workstation having an image processing function.
【0021】ディスプレイ21は、CRTなどのカラー
表示装置であり、画面上に図形やグラフなどの画像イメ
ージを表示する。ディスプレイ21での表示は表示制御
部22により制御されている。ディスプレイ21は図1
の表示手段11の機能を実現している。The display 21 is a color display device such as a CRT and displays an image such as a figure or a graph on a screen. The display on the display 21 is controlled by the display control unit 22. The display 21 is shown in FIG.
The function of the display means 11 is realized.
【0022】キーボード23は、コマンドや文字列など
のデータ入力用の入力装置であり、画面上で指示選択を
行うためのマウス24が接続されている。キーボード2
3やマウス24から入力された各種のデータや指示は、
キーボード/マウス制御部25を通じてプロセッサ部2
9に送られる。キーボード23、マウス24、キーボー
ド/マウス制御部25は、図1の指定手段12の機能を
実現している。The keyboard 23 is an input device for inputting data such as commands and character strings, and is connected with a mouse 24 for selecting an instruction on a screen. Keyboard 2
3 and various data and instructions input from the mouse 24
Processor unit 2 through keyboard / mouse control unit 25
9 The keyboard 23, the mouse 24, and the keyboard / mouse control unit 25 realize the function of the specifying unit 12 in FIG.
【0023】ハードディスク26は、磁気ディスクなど
の2次記憶装置で構成され、第1のテーブルや第2のテ
ーブルをテキストファイル形式で格納している。ハード
ディスク26は、図1の第1のデータ保持手段15、第
2のデータ保持手段16の機能を実現している。The hard disk 26 is constituted by a secondary storage device such as a magnetic disk, and stores the first table and the second table in a text file format. The hard disk 26 implements the functions of the first data holding unit 15 and the second data holding unit 16 in FIG.
【0024】実メモリ27は、RAMなどのメモリ装置
で構成されるバッファ記憶であり、各種プログラムのほ
か、キーボード23及びマウス24から入力された各種
のデータや命令などを一時的に記憶する。The real memory 27 is a buffer storage composed of a memory device such as a RAM, and temporarily stores various programs, various data and instructions input from the keyboard 23 and the mouse 24, and the like.
【0025】画像データ記憶メモリ28は、ディスプレ
イ21で表示される画像データが書き込まれるビットマ
ップメモリである。画像データ記憶メモリ28は、図1
の描画メモリ13の機能を実現している。The image data storage memory 28 is a bitmap memory in which image data displayed on the display 21 is written. The image data storage memory 28 is provided in FIG.
The function of the drawing memory 13 is realized.
【0026】プロセッサ部29は、CPUおよびその周
辺回路により構成される中央処理装置であり、制御プロ
グラムに従って上記各部の動作を管理し、また所定のデ
ータに対する演算処理などを実行する。プロセッサ部2
9は所定の制御プログラムにより、図1の取得手段1
4、第1の検索手段17、第2の検索手段18、表示制
御手段19の機能を実現している。The processor unit 29 is a central processing unit constituted by a CPU and its peripheral circuits. The processor unit 29 manages the operation of each unit according to a control program, and executes arithmetic processing on predetermined data. Processor 2
Reference numeral 9 denotes an acquisition unit 1 shown in FIG.
4. The functions of the first search means 17, the second search means 18, and the display control means 19 are realized.
【0027】次に、上記色の名称取得装置10の動作を
図1を参照しながら、図5のフローチャートを用いて説
明する。Next, the operation of the color name obtaining apparatus 10 will be described with reference to FIG. 1 and the flowchart of FIG.
【0028】まず、ユーザはディスプレイ画面上に色の
名称を取得するためのアプリケーションウィンドウを開
き、指定手段12(マウスなど)で所望の点を指定す
る。First, a user opens an application window for acquiring a color name on a display screen, and specifies a desired point with the specifying means 12 (mouse or the like).
【0029】取得手段14は、指定手段12により画面
上の任意の点が指定されると、表示制御手段19を通じ
て前記指定された点の位置x、yを取得し、前記位置
x、yに基づいて描画メモリ13を検索し、指定された
点における色の値R、G、Bを取得する(ステップ10
1、102)。次に、第1の検索手段17は前記指定さ
れた点における色の値R、G、Bで第1のテーブルを検
索し(ステップ103)、一致する値が存在するかどう
かを調べる(ステップ104)。ここで、一致する値が
存在するときは、その値に対応する色の名称を特定し、
その色の値R、G、Bとともに表示制御手段19に通知
する(ステップ105)。表示制御手段19は、第1の
検索手段17から通知された色の名称と色の値R、G、
Bを表示手段11に表示させる(ステップ106)。When an arbitrary point on the screen is designated by the designation means 12, the acquisition means 14 acquires the position x, y of the designated point through the display control means 19, and based on the position x, y. Search the drawing memory 13 to obtain the color values R, G, and B at the designated point (step 10).
1, 102). Next, the first search means 17 searches the first table with the color values R, G, and B at the designated point (step 103), and checks whether a matching value exists (step 104). ). Here, when there is a matching value, the color name corresponding to the value is specified,
The display control means 19 is notified together with the color values R, G, and B (step 105). The display control unit 19 includes a color name and color values R, G,
B is displayed on the display means 11 (step 106).
【0030】また、ステップ104で一致する値が存在
しないときは、取得手段14で取得された色の値R、
G、Bに最も近い値を特定して、2つの値の差分を第2
の検索手段18に通知する(ステップ107)。第2の
検索手段18は、第1の検索手段17から通知された差
分に適合する条件式を第2のテーブルで検索し(ステッ
プ108)、その条件式に対応する文字列を特定して表
示制御手段19に通知する(ステップ109)。表示制
御手段19は、第2の検索手段18から通知された文字
列と、第1の検索手段17で特定された最も近いRGB
値に対応する基本色の名称を組み合わせて新たな色の名
称を作成し、取得手段14で取得した色の値(実際の
値)とともに表示手段11に表示させる(ステップ11
0)。If there is no matching value in step 104, the color value R,
The value closest to G and B is specified, and the difference between the two values is calculated as the second value.
(Step 107). The second search unit 18 searches the second table for a conditional expression that matches the difference notified from the first search unit 17 (step 108), and specifies and displays a character string corresponding to the conditional expression. It notifies the control means 19 (step 109). The display control unit 19 compares the character string notified from the second search unit 18 with the nearest RGB specified by the first search unit 17.
A new color name is created by combining the basic color names corresponding to the values, and is displayed on the display unit 11 together with the color values (actual values) acquired by the acquisition unit 14 (step 11).
0).
【0031】次に、実際にディスプレイ画面上の点を指
定して色の名称を得る場合の具体例について説明する。Next, a specific example in the case where a color name is obtained by actually designating a point on the display screen will be described.
【0032】図6は、色の名称を取得するためのアプリ
ケーションウィンドウの表示例を示している。ユーザは
画面上で開始ボタンを押した後、ディスプレイ画面上の
色の名称を知りたい点にマウスカーソルを合わせ、マウ
スのボタンをクリックする。この時、マウスにより指定
された点の色の値R、G、Bが(0、0、0)であった
とする。第1のテーブル(図2)で色の値R、G、B
(0、0、0)と一致する値を検索すると、2列目で値
が全く同じ値が見つかる。したがって、マウスで指定さ
れた点の色は「黒」となり、図7に示すように文字列
「黒」が色の名称の項目に表示される。図7では、ユー
ザが選択した点の色と、黒のR、G、B値も表示されて
いる。FIG. 6 shows a display example of an application window for acquiring a color name. After pressing the start button on the screen, the user positions the mouse cursor on a point on the display screen where the user wants to know the color name, and clicks the mouse button. At this time, it is assumed that the color values R, G, and B of the point designated by the mouse are (0, 0, 0). In the first table (FIG. 2), the color values R, G, B
When searching for a value that matches (0, 0, 0), the same value is found in the second column. Therefore, the color of the point designated by the mouse is "black", and the character string "black" is displayed in the item of the color name as shown in FIG. In FIG. 7, the color of the point selected by the user and the R, G, B values of black are also displayed.
【0033】また、マウスにより指定された点の色の値
R、G、Bが(251、175、68)であったとす
る。第1のテーブル(図2)で色の値R、G、B(25
1、175、68)と一致する値を検索するが、テーブ
ルには一致する値が登録されていないため、最も近い値
を特定して、その差分を得る。この場合、最も近い値が
5列目のオレンジであったとすると、差分は、dR=25
1−250=1、dG=175−173=2、dB=68−
71=−3となる。次に、この差分に適合する条件式を
第2のテーブル(図3)で検索する。ここでは、3列目
の「dR>0ANDdG>0」が当てはまる。これにより、
条件式に対応する文字列「黄色っぽい%」が特定され
る。ここで、「%」は第1のテーブルで検索された最も
近い値に対応する名称が入るという約束であるとする
と、「黄色っぽい」と「オレンジ」を組み合わせた「黄
色っぽいオレンジ」が指定された点の色の名称となり、
図8に示すように文字列「黄色っぽいオレンジ」色の名
称の項目に表示される。また、ユーザが指定した点の実
際の値がR、G、Bの項目に表示される。It is also assumed that the color values R, G, B at the point designated by the mouse are (251, 175, 68). In the first table (FIG. 2), the color values R, G, B (25
1, 175, 68), but since no matching value is registered in the table, the closest value is specified and the difference is obtained. In this case, assuming that the closest value is orange in the fifth column, the difference is dR = 25
1-250 = 1, dG = 175-173 = 2, dB = 68−
71 = -3. Next, a conditional expression that matches this difference is searched in the second table (FIG. 3). Here, “dR> 0 AND dG> 0” in the third column applies. This allows
The character string "yellowish%" corresponding to the conditional expression is specified. Here, assuming that “%” is a promise that the name corresponding to the closest value searched in the first table is entered, “yellowish orange” which is a combination of “yellowish” and “orange” is specified. The name of the color of the dot
As shown in FIG. 8, a character string "yellow orange" is displayed in the item of the name. Also, the actual values of the points specified by the user are displayed in the items of R, G, and B.
【0034】なお、アプリケーションウィンドウには、
少なくともユーザが指定した点の色の名称が表示されれ
ばよく、ユーザが選択した点の色や、そのR、G、B値
は必ずしも表示する必要はない。また、表示された色の
名称をそのまま入力できるようにしてもよい。In the application window,
It suffices if at least the name of the color of the point designated by the user is displayed, and the color of the point selected by the user and the R, G, and B values thereof do not necessarily need to be displayed. Further, the name of the displayed color may be directly input.
【0035】[0035]
【発明の効果】以上説明したように、この発明に係わる
色の名称取得装置では、画面上で指定された点のRGB
値を取得し、そのRGB値と一致する値を保持している
ときは、その値に対応する色の名称を表示し、保持して
いないときは当該RGB値に最も近いRGB値が、基本
色に近似した色の範囲のどこに適合するかを判定し、適
合した色の範囲に対応する文字列と、前記最も近いRG
B値に対応する基本色の名称とを組み合わせて表示する
ようにしたため、ユーザはディスプレイ画面上の所望の
点を指定するだけで簡単にその点の色の名称を得ること
ができる。As described above, in the color name acquiring apparatus according to the present invention, the RGB of the point designated on the screen is obtained.
When a value is obtained and a value that matches the RGB value is held, the name of the color corresponding to that value is displayed. Otherwise, the RGB value closest to the RGB value is used as the basic color. Is determined, and a character string corresponding to the matched color range and the closest RG
Since the display is made in combination with the name of the basic color corresponding to the B value, the user can easily obtain the name of the color of the point simply by specifying the desired point on the display screen.
【図1】色の名称取得装置の機能的な構成を示すブロッ
ク図。FIG. 1 is a block diagram showing a functional configuration of a color name acquisition device.
【図2】色の名称と値のテーブル(第1のテーブル)の
説明図。FIG. 2 is an explanatory diagram of a color name and value table (first table).
【図3】近い色を表現する条件テーブル(第2のテーブ
ル)の説明図。FIG. 3 is an explanatory diagram of a condition table (second table) expressing a close color.
【図4】色の名称取得装置を実現するための具体例を示
す構成図。FIG. 4 is a configuration diagram showing a specific example for realizing a color name acquisition device.
【図5】色の名称取得装置の動作を示すフローチャー
ト。FIG. 5 is a flowchart showing the operation of the color name acquisition device.
【図6】アプリケーションウィンドウの表示例を示す
図。FIG. 6 is a view showing a display example of an application window.
【図7】アプリケーションウィンドウの表示例を示す
図。FIG. 7 is a view showing a display example of an application window.
【図8】アプリケーションウィンドウの表示例を示す
図。FIG. 8 is a view showing a display example of an application window.
11…表示手段、12…指定手段、13…描画メモリ、
14…取得手段、15…第1のデータ保持手段、16…
第2のデータ保持手段、17…第1の検索手段、18…
第2の検索手段11 display means, 12 designation means, 13 drawing memory,
14 ... acquisition means, 15 ... first data holding means, 16 ...
Second data holding means, 17 ... first search means, 18 ...
Second search means
Claims (1)
ための指定手段と、 画像上で指定された点における色のRGB値を取得する
取得手段と、 基本色の名称とそのRGB値とを保持する第1のデータ
保持手段と、 前記基本色に近似した色を表現する文字列と、その近似
した色の範囲に適合するかどうかを判定する条件式とを
保持する第2のデータ保持手段と、 前記取得手段により取得された色のRGB値と一致する
RGB値を第1のデータ保持手段で検索して、一致する
RGB値に対応する色の名称を特定し、また一致するR
GB値が存在しないときは、最も近いRGB値を特定す
る第1の検索手段と、 前記第1の検索手段で特定された最も近いRGB値に適
合する条件式を前記第2のデータ保持手段から検索し、
対応する文字列を得る第2の検索手段と、 前記取得手段により取得された色のRGB値と一致する
RGB値が第1のデータ保持手段に存在したときは、当
該RGB値に対応する色の名称を表示手段に表示し、前
記取得手段により取得された色のRGB値に一致するR
GB値が第1のデータ保持手段に存在しないときは、第
2の検索手段で得た文字列と、第1の検索手段で特定さ
れた最も近いRGB値に対応する基本色の名称とを組み
合わせて表示する表示制御手段と、 からなることを特徴とする色の名称取得装置。A display unit that displays an image; a specification unit that specifies an arbitrary point on the image displayed on the display unit; and an RGB value of a color at a point specified on the image. Acquiring means; first data holding means for holding the names of the basic colors and their RGB values; character strings representing colors similar to the basic colors; A second data holding unit for holding a conditional expression to be determined, and a first data holding unit that searches for an RGB value that matches the RGB value of the color obtained by the obtaining unit, and that matches the RGB value that matches. Identify the name of the color to be
When there is no GB value, a first search means for specifying the closest RGB value; and a conditional expression matching the closest RGB value specified by the first search means, from the second data holding means. Search and
A second search unit that obtains a corresponding character string; and if an RGB value that matches the RGB value of the color acquired by the acquisition unit exists in the first data holding unit, a color corresponding to the RGB value is acquired. The name is displayed on the display unit, and the R value corresponding to the RGB value of the color acquired by the acquisition unit is displayed.
When the GB value does not exist in the first data holding unit, the character string obtained by the second searching unit is combined with the name of the basic color corresponding to the closest RGB value specified by the first searching unit. And a display control means for displaying a color name.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP26662493A JP3208961B2 (en) | 1993-10-25 | 1993-10-25 | Color name acquisition device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP26662493A JP3208961B2 (en) | 1993-10-25 | 1993-10-25 | Color name acquisition device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH07121558A JPH07121558A (en) | 1995-05-12 |
| JP3208961B2 true JP3208961B2 (en) | 2001-09-17 |
Family
ID=17433409
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP26662493A Expired - Fee Related JP3208961B2 (en) | 1993-10-25 | 1993-10-25 | Color name acquisition device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3208961B2 (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4505213B2 (en) * | 2003-11-26 | 2010-07-21 | 関西ペイント株式会社 | Method for identifying paint color from computer graphics images |
| CA3009766A1 (en) | 2015-02-04 | 2016-08-11 | Natural Acoustics Lab LLC | Variable chambered percussion instruments |
| US10019975B2 (en) | 2015-02-04 | 2018-07-10 | Natural Acoustics Lab LLC | Variable chambered percussion instruments |
-
1993
- 1993-10-25 JP JP26662493A patent/JP3208961B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH07121558A (en) | 1995-05-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| Martin et al. | High-dimensional brushing for interactive exploration of multivariate data. | |
| US8737746B2 (en) | Method for multiple pass symbol and components-based visual object searching of documents | |
| JPS6362033A (en) | Display device for relative information | |
| JP3208961B2 (en) | Color name acquisition device | |
| JP4005672B2 (en) | Document processing apparatus, storage medium storing document processing program, and document processing method | |
| JP3528541B2 (en) | Search logic input device | |
| JPS6378228A (en) | information retrieval device | |
| KR20220006722A (en) | Content navigation method, and user terminal and content navigation providing apparatus implementing the same method | |
| JPH07182363A (en) | Data processing method and device | |
| JP2585826B2 (en) | Database search method and apparatus | |
| JPH0749506Y2 (en) | Map search device | |
| KR100439468B1 (en) | Table Contolling Method Through Data Distribution Definition | |
| JPH04274562A (en) | Device for retrieving and displaying collection of art museum, museum, or the like | |
| JP2950090B2 (en) | CAD system | |
| JP2000250917A (en) | Object search method, object search device, and recording medium recording object search program | |
| JPH1153380A (en) | Document management apparatus and method, and recording medium | |
| JPH05250419A (en) | Color image filing method | |
| JPH0573589A (en) | Automatic execution device for table calculation program | |
| JPH11175548A (en) | Method for retrieving image file and device therefor and storage medium | |
| JPH01113821A (en) | Data entry method | |
| JPH02186477A (en) | Document retrieval device | |
| JPH0962692A (en) | Document creating apparatus and dictionary search display method | |
| JPH08138035A (en) | Picture data base device | |
| JPH07325842A (en) | Database condition retrieval instruction method | |
| JPH02267671A (en) | Retrieval display device for table format database |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |