JP4424004B2 - Graph display method, graph display program, and storage medium storing graph display program - Google Patents
Graph display method, graph display program, and storage medium storing graph display program Download PDFInfo
- Publication number
- JP4424004B2 JP4424004B2 JP2004052120A JP2004052120A JP4424004B2 JP 4424004 B2 JP4424004 B2 JP 4424004B2 JP 2004052120 A JP2004052120 A JP 2004052120A JP 2004052120 A JP2004052120 A JP 2004052120A JP 4424004 B2 JP4424004 B2 JP 4424004B2
- Authority
- JP
- Japan
- Prior art keywords
- graph
- area
- assigned
- monochrome
- pattern
- 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
Images
Landscapes
- Color Image Communication Systems (AREA)
- Controls And Circuits For Display Device (AREA)
- Processing Or Creating Images (AREA)
- Image Processing (AREA)
- Image Generation (AREA)
Description
本発明は、統計化された複数の数値を円グラフや棒グラフで示した資料を、モノクロ変換して表示する際に、グラフ内に含まれる複数の領域にモノクロパターンを割り振るグラフ表示方法に関するものである。 The present invention relates to a graph display method for allocating monochrome patterns to a plurality of areas included in a graph when a material in which a plurality of statistical values are indicated by a pie chart or a bar graph is converted into monochrome and displayed. is there.
情報機器上で利用される各種アプリケーションのうち、表計算ソフトなどでは、数値を表に入力するだけで、自動的に円グラフや棒グラフが生成される機能が備わっている。これらのグラフに含まれる複数の領域は、隣接する領域と容易に識別可能な色が自動的に割り振られるような仕組みを持つアプリケーションが主流となっている。ただし、領域が色づけされたこのようなグラフをモノクロ印刷する際に、もとの色が異なっているにもかかわらず、輝度が類似しているために、グラフ内の領域の識別が困難になるという問題が生じていた。 Among various applications used on information equipment, spreadsheet software and the like have a function for automatically generating a pie chart or a bar chart simply by inputting a numerical value into a table. The plurality of areas included in these graphs are mainly applications that have a mechanism that automatically assigns colors that can be easily distinguished from adjacent areas. However, when such a graph with colored areas is printed in monochrome, it is difficult to identify the areas in the graph because the luminance is similar even though the original colors are different. There was a problem.
この問題を解決するために、特許文献1では、カラー原稿の画像を白黒画像に変換する際に、入力原稿内で使用されている色の種類の数を計測し、出力すべきモノクロ画像の階調数と、入力原稿で使用された色の数によって均等になるように、色−輝度テーブルを設ける。このテーブルを利用することで、入力原稿の色に対応した輝度を取得し、輝度に対応するモノクロパターンに変換する。さらに、隣接する箇所で使用されていない色の組み合わせを同じ輝度にする機能や、隣接するモノクロパターンの輝度が類似する場合に境界線を示すエッジ情報を記載する機能を備える。これにより、カラー原稿の画像を白黒画像に変換する際に、隣接した色の識別を容易にする仕組みとなっている。
In order to solve this problem, in
また、特許文献2では、定められた複数の色を順番づけて登録した配色パラメータを備える。配色パラメータ内に登録された複数の色は、順番が前後する色と容易に識別可能になるような順に登録されており、また、入力された原稿からグラフの領域を抽出する手段と、配色パラメータ内に示される色を、順番にその領域順に対応させて割り当てる手段を用いることで、そのグラフの領域ごとに異なる色を割り振り、さらに、隣接した領域との識別を容易にする仕組みが記載されている。
近年、カラーグラフを始めとしたホームページや印刷物の配色においては、カラーバリアフリーと呼ばれる、色覚偏位者への配慮が施された色使いが利用されつつある。すなわち、多種類の色を使わずに、数種類の識別しやすい色を用いて領域の識別を容易にしようという試みである。当然ながら、この配慮のため、グラフ内にて離れた異なる領域にも同じ色が割り当てられることもある。 In recent years, in color schemes for homepages such as color graphs and printed materials, color usage called color barrier-free and taking into account color blind people is being used. That is, an attempt is made to easily identify a region using several types of easily distinguishable colors without using many types of colors. Of course, due to this consideration, the same color may be assigned to different areas in the graph.
例えば、橙色と青色と白色のみを使った図3のようなグラフを例にあげる。実際には、色の数がもう少し多種類でも構わないが、本発明の課題をわかりやすくするため、ここでは極端に色数を減らして3種類としている。また、実際のカラーグラフでは、割り当てられた色がグラフの各領域内に塗られているものとするが、本明細書の図3の(1)および(2)においては、それぞれの領域内に実際に塗られている色名を文字で記載している。さらに、図3の(1)と(2)は、同性質を持つものに対する値を示す情報がおのおののグラフ内に含まれ、複数のグラフを表現することで、同性質を持つものに対する値の変化を容易に比較できることを目的としたグラフとする。例えば、10年前と現在との同じ製品における販売量の推移を月別に表示したものとする。 For example, a graph as shown in FIG. 3 using only orange, blue, and white is given as an example. Actually, the number of colors may be a little larger, but in order to make the problem of the present invention easier to understand, here the number of colors is extremely reduced to three. In an actual color graph, the assigned color is assumed to be painted in each area of the graph. However, in (1) and (2) of FIG. The name of the color that is actually painted is written in letters. Further, in (1) and (2) of FIG. 3, information indicating values for the same property is included in each graph, and by expressing a plurality of graphs, the values of the values for the same property are represented. The graph is intended to allow easy comparison of changes. For example, assume that the change in sales volume for the same product 10 years ago and now is displayed by month.
表示されるものは、同じ会社の月別の売上を比較したグラフであっても良いし、同じ青果物における月別の生産量を示した過去との比較グラフであって良いし、同じ会社における月別の輸入輸出量を過去と比較したグラフであっても、同じ学校の入学者数、停学者数、退学者数などを月別に示したものであっても良い。当然ながら、ひとつのグラフにおける複数の領域は、月別に限定されるものではなく、年で区別したもの、日で区別したもの、分で区別したものであってもよいし、製品などの種類で区分したものであっても良い。 What is displayed may be a graph comparing the monthly sales of the same company, a comparison graph with the past showing the monthly production of the same fruits and vegetables, or the monthly imports of the same company Even a graph comparing the export volume with the past, the number of students enrolled at the same school, the number of suspended students, the number of expelled students, etc., may be shown by month. Of course, multiple areas in a single graph are not limited by month, but may be classified by year, by day, by minute, or by product type. It may be divided.
このように、同性質を持つものに対する値を示す情報がおのおののグラフ内に含まれ、複数のグラフを表現することで、同性質を持つものに対する値の変化を容易に比較することができるグラフであれば良い。 In this way, information indicating values for those having the same property is included in each graph, and by expressing a plurality of graphs, changes in values for those having the same property can be easily compared If it is good.
図3の(2)の二つ目の領域で示される2月の値と、三つ目の領域で示される3月の値は0%であったとする。このように、グラフ内には示される値がゼロとなり、領域の範囲がなくなる場合がたまに存在する。 It is assumed that the value of February shown in the second area of (2) in FIG. 3 and the value of March shown in the third area are 0%. Thus, there are occasions when the value shown in the graph becomes zero and the range of the region disappears.
図3の(1)と(2)の両グラフをモノクロ印刷する場合に、特許文献1の仕組みを用いると、図4の(1)と(2)のような結果になる。この結果の図4の(2)では、一つ目の領域と4つ目の領域の区別が極めて困難になることがわかった。もともと同じ色である一つ目の領域と四つ目の領域が隣接することになり、異なったモノクロパターンが割り当てられないためこのような結果となり、モノクロであるが故に、カラーグラフよりも領域の境界がわかりにくくなることがわかった。 When the graphs of (1) and (2) in FIG. 3 are printed in monochrome, the results shown in (1) and (2) of FIG. In FIG. 4 (2) as a result, it has been found that it is very difficult to distinguish the first area from the fourth area. The first area and the fourth area, which are originally the same color, are adjacent to each other, and different monochrome patterns are not assigned. It turns out that the boundary becomes difficult to understand.
また、同様に、図3の(1)および(2)を、特許文献2の仕組みを用いてモノクロ変換の上、印刷した場合は、図5の(1)および(2)となる。領域の順番にパターンを割り当てるため、両グラフで同じ要素(この場合は月名)を示す領域のモノクロパターンが図5の(1)と図5の(2)で異なる結果となることがわかった。具体的には、図5の(1)の4月の領域と、5月の領域と、6月の領域に割り当てられたモノクロパターンが、比較対照となる図5の(2)の4月の領域、5月の領域、6月の領域のモノクロパターンと異なり、ふたつのグラフを比較することが困難になるという問題を見つけることができた。
Similarly, when (1) and (2) in FIG. 3 are printed after monochrome conversion using the mechanism of
本願にて示される第一の発明は、カラーグラフが含まれる画像を入力し、当該入力画像に含まれる複数のグラフと、当該複数のグラフに含まれる一又は複数の領域とを認識し、予め記憶された複数のモノクロパターンに基づいて、当該カラーグラフをモノクロに変換して表示するグラフ表示方法であって、
前記複数のグラフのうち、モノクロパターンが未割り当てのグラフのうち、グラフに含まれる領域の数が多い順に、モノクロパターン割り当て対象のグラフとし、前記モノクロパターン割り当て対象とされたグラフに含まれるモノクロパターン未割り当ての領域を順にモノクロパターンの割り当て領域とし、当該割り当て領域に配色されたカラー情報を取得し、前記取得したカラー情報を持つ領域が、既にモノクロパターンが割り当て済みの他のグラフに含まれるかどうかを判別し、同じカラー情報を持つ領域が、既にモノクロパターンが割り当て済みの他のグラフに含まれる場合に、当該同じカラー情報を持つ領域に割り当て済みのモノクロパターンを当該割り当て領域に割り当て、同じカラー情報を持つ領域が、既にモノクロパターンが割り当て済みのグラフに含まれない場合に、前記記憶されたモノクロパターンから未割り当てのパターンを取得し当該割り当て領域に割り当て、前記モノクロパターン割り当て対象とされたグラフに含まれるすべての領域にモノクロパターンが割り当てられていない場合に未割り当て領域を取得し、前記モノクロパターン割り当て対象とされたグラフに含まれるすべての領域にモノクロパターンが割り当てられ、モノクロパターンが割り当てられていないグラフが他に存在する場合に未割り当てグラフを取得し、前記入力画像に含まれる複数のグラフのすべてにモノクロパターンが割り当てられた場合に、前記複数のグラフの各領域に割り当てられたモノクロパターンで、当該領域を塗りつけたグラフを表示させることを特徴とする。
The first invention shown in the present application inputs an image including a color graph, recognizes a plurality of graphs included in the input image, and one or a plurality of regions included in the plurality of graphs, A graph display method for converting the color graph into monochrome based on a plurality of stored monochrome patterns and displaying the monochrome graph,
Among the plurality of graphs, among the graphs to which the monochrome pattern is not assigned, the graphs that are to be assigned the monochrome pattern in the descending order of the number of areas included in the graph, Whether an unallocated area is sequentially assigned to a monochrome pattern allocation area, color information arranged in the allocated area is acquired, and the area having the acquired color information is included in another graph to which the monochrome pattern has already been allocated If an area having the same color information is included in another graph to which a monochrome pattern has already been assigned, the monochrome pattern assigned to the area having the same color information is assigned to the assigned area, and the same Areas with color information already have monochrome patterns When not included in the assigned graph, an unassigned pattern is acquired from the stored monochrome pattern and assigned to the assigned area, and the monochrome pattern is assigned to all areas included in the graph to be assigned to the monochrome pattern. When an unallocated area is acquired when a monochrome pattern is not allocated, a monochrome pattern is allocated to all the areas included in the graph that is the target of monochrome pattern allocation, and there are other graphs to which no monochrome pattern is allocated If a monochrome pattern is assigned to all of a plurality of graphs included in the input image and a monochrome pattern is assigned to each region of the plurality of graphs, a graph in which the region is painted Is displayed.
本願にて示される第二の発明は、カラーグラフが含まれる画像を入力し、当該入力画像に含まれる複数のグラフと、当該複数のグラフに含まれる一又は複数の領域とを認識し、予め記憶された複数のモノクロパターンに基づいて、当該カラーグラフをモノクロに変換して表示するグラフ表示方法であって、
モノクロパターンの割り当て対象となる領域の領域順を示す対応変数に初期値1を代入し、前記モノクロ変換対象とされたグラフのうち、モノクロパターンが未割り当てのグラフのうちで、グラフに含まれる領域数が多い順に、モノクロパターン割り当て対象のグラフとし、前記取得したモノクロパターン割り当て対象となるグラフに含まれるモノクロパターン未割り当ての領域を順にモノクロパターンの割り当て領域とし、当該割り当て領域に配色されたカラー情報を取得し、前記取得したカラー情報を持つ領域が、既にモノクロパターンが割り当て済みの他のグラフのうち、上記対応変数に示される領域順以降に含まれるかどうかを判別し、同じカラー情報を持つ領域が、既にモノクロパターンが割り当てられている他のグラフの上記対応変数に示される領域順以降に含まれていた場合に、当該同じカラー情報を持つ領域に割り当てられたモノクロパターンを前記パターン割り当て領域に割り当て、当該同じカラー情報を持つ領域を含むグラフの、当該同じカラー情報を持つ領域の領域順を、前記対応変数に代入し、同じカラー情報を持つ領域が、既にモノクロパターンが割り当てられている他のグラフの上記対応変数に示される領域順以降に含まれていない場合に、前記記憶されたモノクロパターンから未割り当てのパターンを取得し前記パターン割り当て領域に割り当て、当該パターン割り当て領域を含むグラフの、当該パターン割り当て領域の領域順を、前記対応変数に代入し、 前記モノクロパターン割り当て対象とされたグラフに含まれるすべての領域にモノクロパターンが割り当てられていない場合に未割り当て領域を取得し、前記モノクロパターン割り当て対象とされたグラフに含まれるすべての領域にモノクロパターンが割り当てられ、モノクロパターンが割り当てられていないグラフが他に存在する場合に前記対応変数に初期値1を代入して未割り当てグラフを取得し、前記入力画像に含まれる複数のグラフのすべてにモノクロパターンが割り当てられた場合に、前記複数のグラフの各領域に割り当てられたモノクロパターンで、当該領域を塗りつけたグラフを表示させることを特徴とする。
The second invention shown in the present application inputs an image including a color graph, recognizes a plurality of graphs included in the input image, and one or a plurality of regions included in the plurality of graphs, A graph display method for converting the color graph into monochrome based on a plurality of stored monochrome patterns and displaying the monochrome graph,
The
本願のグラフ表示方法は、複数のカラーグラフを同時にモノクロ変換する場合に、複数のグラフに含まれる領域の数と順番と、領域に割り当てられたRGB値とを考慮しながら、モノクロパターンを割り振る。これにより、異なるグラフにおいて、同じ要素を示す複数の領域のモノクロパターンが異なる場合をなくすとともに、ひとつのグラフ内に同じRGB値で配色された複数の領域がある場合においても、それぞれに、異なるモノクロパターンを割り当てることで、それらの領域の識別を容易となる。 In the graph display method of the present application, when a plurality of color graphs are converted into monochrome simultaneously, a monochrome pattern is allocated in consideration of the number and order of regions included in the plurality of graphs and the RGB values assigned to the regions. This eliminates the case where the monochrome patterns of a plurality of areas showing the same element are different in different graphs, and even when there are a plurality of areas arranged in the same RGB value in one graph, By assigning a pattern, it becomes easy to identify those areas.
本発明で示されるグラフ表示方法を用いたグラフ表示プログラム1の一実施例の構成を図1に示す。グラフ表示プログラム1は、表示入力装置11、アプリケーション12、カラーグラフ表示手段13、変換対象選択手段14、グラフ領域判定手段15、グラフ情報記憶手段16、モノクロパターン割り当て手段18、モノクログラフ表示手段20、領域データ記憶部17、モノクロパターンデータ19にて構成される。
A configuration of an embodiment of a
また、グラフ表示プログラム1の利用形態を図2に示す。図2で示す形態は、パーソナルコンピュータなどの情報機器21と印刷機22とがデータ通信可能に接続され、情報機器21のハードディスク上に、アプリケーション12、グラフ表示プログラム1がインストールされ、情報機器21内にて、アプリケーション12、グラフ表示プログラム1が動作する形態を示している。
Moreover, the usage form of the
また、情報機器21と印刷機22の接続形態はインターネットなどのネットワークを介されていても良く、さらに無線でのデータ通信であっても良い。また、アプリケーション12やグラフ表示プログラム1は情報機器21のハードディスク上にインストールされずに、CD−ROMやDVDなどの記憶媒体に記憶され、情報機器21がその記憶媒体からアプリケーション12やグラフ表示プログラム1を読み込んで、動作させる形態であっても良い。
In addition, the connection form of the
図1にて示される構成の詳細を述べる。表示入力装置11は、グラフ表示プログラム1が出力する画像を表示したり、グラフ表示プログラム1の利用者がグラフ表示プログラム1への指示を入力したりする装置である。
Details of the configuration shown in FIG. 1 will be described. The display input device 11 is a device that displays an image output by the
カラーグラフ表示手段13は、表計算ソフトやお絵かきツールなどのアプリケーションからの画像データを受信し、表示入力装置11に表示する働きを持つ。 The color graph display means 13 has a function of receiving image data from an application such as spreadsheet software or a drawing tool and displaying it on the display input device 11.
変換対象選択手段14は、グラフ表示プログラム1の利用者が、カラーグラフ表示手段13によって表示入力装置11に表示されたグラフ画像のうちのモノクロ変換して表示したいグラフを一または複数個指定する働きを持つ。
The conversion target selecting means 14 is used for the user of the
グラフ領域判定手段15は、変換対象選択手段14にて指定された一または複数個指定されたグラフに含まれる複数の領域を判定する働きを持つ。
The graph
グラフ情報記憶手段16は、グラフ領域判定手段15にて判定された一または複数のグラフについて、グラフ毎に識別番号を割り振り、また、グラフに含まれる領域に識別番号を割り振り、グラフ識別番号と、領域識別番号と、領域に配色されたRGB値とを対応付けて、領域データ記憶部17に記憶する働きを持つ。 The graph information storage means 16 assigns an identification number for each graph for one or a plurality of graphs determined by the graph area determination means 15, and assigns an identification number to an area included in the graph. The region identification number and the RGB values arranged in the region are associated with each other and stored in the region data storage unit 17.
モノクロパターン割り当て手段18は、各グラフの領域順などを考慮し、モノクロパターンデータ19内のモノクロパターンをグラフ内の各領域に割り当て、領域データ記憶部17に記憶する働きを持つ。
The monochrome pattern assigning means 18 has a function of assigning a monochrome pattern in the
モノクログラフ表示手段20は、モノクロパターン割り当て手段18にてモノクロパターンが割り当てられたグラフを利用者の表示入力装置11に表示する働きを持つ。 The monochrome graph display means 20 has a function of displaying the graph to which the monochrome pattern is assigned by the monochrome pattern assignment means 18 on the display input device 11 of the user.
モノクロパターンデータ19は、多種類のモノクロパターンとパターン識別子とが対応づけられて登録されている。モノクロパターンデータ19の一例を図6に示す。なお、このモノクロパターンデータ19に記憶されたモノクロパターンの順は、識別が困難なパターンが連続して記憶されないことが予め配慮されていることとする。
In the
領域データ記憶部17は、グラフの識別番号を値として格納するグラフ識別子フィールドと、領域の識別番号を値として格納する領域識別番号フィールドと、元のカラーのRGB値を値として格納するRGB値フィールドと、モノクロパターンの識別番号を値として格納するモノクロパターン識別番号フィールドを含むことによって構成される。領域データ記憶部17の一例を図7に示す。 The region data storage unit 17 includes a graph identifier field that stores a graph identification number as a value, a region identification number field that stores a region identification number as a value, and an RGB value field that stores an RGB value of the original color as a value. And a monochrome pattern identification number field for storing a monochrome pattern identification number as a value. An example of the area data storage unit 17 is shown in FIG.
図7では、RGB値は6桁の0からFまでの16進数によって示し、先頭の2桁を赤要素の輝度、次の2桁を緑要素の輝度、次の2桁を青要素の輝度に相当する。00がもっとも輝度が小さく、FFがもっとも輝度が高くなる。このため、RGB値が”000000”で示される色は黒となり、白は”FFFFFF”で示される。図7では、青が”0000CC”で示され,橙が”FFBB44”で示され、白が”FFFFFF”で示されている。 In FIG. 7, RGB values are represented by 6-digit hexadecimal numbers from 0 to F. The first two digits are the luminance of the red component, the next two digits are the luminance of the green component, and the next two digits are the luminance of the blue component. Equivalent to. 00 has the lowest luminance, and FF has the highest luminance. Therefore, the color indicated by RGB value “000000” is black, and white is indicated by “FFFFFF”. In FIG. 7, blue is indicated by “0000CC”, orange is indicated by “FFBB44”, and white is indicated by “FFFFFF”.
次に、図8を参照して、グラフ表示プログラム1の処理の流れを示す。図8のステップS801は、カラーグラフ取得手段13がアプリケーション12からカラーグラフ画像を取得するステップである。例えば、図9に示すような、8つのカラーグラフが記載された画像を取得する。なお、実際のカラーグラフでは、割り当てられた色がグラフの各領域内に塗られているものとするが、図9においては、実際に塗られている色名をそれぞれの領域内に文字で記載している。
Next, the flow of processing of the
ステップS802は、変換対象選択手段14が、情報端末11にカラーグラフ取得手段13で取得した画像を表示し、グラフ表示プログラム1の利用者にモノクロに変換させたいグラフの選択を促すステップである。実際に表示入力装置11に表示された画面は図10のようになる。図10では、画面中央から左側に位置する4つのグラフが選択されたことを示している。グラフの選択は、マウスのドラッグアンドドロップでいくつかのグラフを囲む範囲を指定しても良いし、グラフひとつずつをマウスでクリックすることで、一つ又は複数のグラフを選択する手法でも良い。
In step S802, the conversion
ステップS803は、ステップS802にて、グラフ表示プログラム1の利用者が選択した一つ又は複数のグラフの情報を、変換対象選択手段14が、表示入力装置11から受信するステップである。
Step S803 is a step in which the conversion
ステップS804は、グラフ領域判定手段15が、当該画像よりグラフと思われる区域ならびにグラフに含まれる複数の領域を判定するステップである。グラフと思われる区域の判定は、公知の技術によって実現できる。例えば特開平4−142679号公報に示される技術を用いる。このように入力画像からグラフと識別された区域のみを取得する。なお、ステップS802に相当する、変換対象選択手段14にて、グラフ画像のみをポインティングデバイスで複数指定した場合は、ステップS804の処理のうち、グラフ区域を判定する処理は不要であっても良い。
Step S804 is a step in which the graph
次に、グラフ領域判定手段15が、取得したグラフの区域において、各グラフに含まれる複数の領域ごとに、それぞれの領域が配置されている座標と、それぞれの領域に塗られたRGB値を取得する。この処理も公知の技術で実現できる。例えば、領域座標を取得するには、特開平4−142679号公報ならびに特開平1−173178号公報で示される技術を用いられる。また、RGB値を取得するには、公知の技術のひとつである、各領域の画素について、所定の分解能で3原色信号の各強度に数値化する方法であっても良い。 Next, the graph area determination means 15 acquires the coordinates where each area is arranged and the RGB value applied to each area for each of a plurality of areas included in each graph in the area of the acquired graph. To do. This processing can also be realized by a known technique. For example, techniques shown in Japanese Patent Laid-Open Nos. 4-142679 and 1-173178 are used to obtain the region coordinates. Further, in order to obtain the RGB value, a method of digitizing each intensity of the three primary color signals with a predetermined resolution for each region of pixels, which is one of known techniques, may be used.
ステップS805は、グラフ情報記憶手段16が、図12にて示されるように、各グラフにグラフ識別番号を付与し、各グラフの領域毎に領域識別番号を付与し、領域の種類と、領域の座標と、領域のRGB値とを、領域データ記憶部17に記憶するステップである。この時点では、領域データ記憶部17のモノクロパターン識別記号フィールドの値はすべて値が無い状態となっている。なお、図12の座標値フィールドには、実際は、図7で示されるような座標値を示す値が記憶されているが、パターン割り当ての処理には直接、関係しないため、図12には座標値を記載していない。後述される図13、図15、図16および図18も同様である。 In step S805, as shown in FIG. 12, the graph information storage unit 16 assigns a graph identification number to each graph, assigns an area identification number to each area of each graph, and determines the type of area, the area In this step, the coordinates and the RGB values of the area are stored in the area data storage unit 17. At this time, all the values of the monochrome pattern identification symbol field of the area data storage unit 17 are in a state of no value. The coordinate value field in FIG. 12 actually stores a value indicating the coordinate value as shown in FIG. 7, but since it is not directly related to the pattern assignment processing, the coordinate value in FIG. Is not listed. The same applies to FIGS. 13, 15, 16 and 18, which will be described later.
例えば、図11で示される四つの円グラフを入力として、四つのグラフの領域をステップS804にて判定し、ステップS805にて全グラフ情報を領域データ記憶部17に格納した場合は、図12に示されるようになる。図12の場合は、図11のグラフにて左上のグラフがグラフ識別番号1に、右上のグラフがグラフ識別番号2に、左下のグラフがグラフ識別番号3に、右下のグラフがグラフ識別番号4として領域データ記憶部17に登録されている。
For example, when the four pie charts shown in FIG. 11 are input, the areas of the four graphs are determined in step S804, and all the graph information is stored in the area data storage unit 17 in step S805, FIG. As shown. In the case of FIG. 12, in the graph of FIG. 11, the upper left graph is the
ステップS806は、モノクロパターン割り当て手段18が、ステップS805で領域データ記憶部17に記憶されたグラフ情報にて、グラフに含まれる領域が多いグラフの順に、グラフ識別番号を再割り当てするステップである。例えば、図12で示されるような領域データ記憶部17は、図13のように、領域を多く持つグラフの順にグラフ識別番号が再割り当てされる。例えば、図11に示される左下のグラフが6つの領域を持っており、他のグラフが持つ領域数より多いのでグラフ識別番号が1と割り当てられる。 Step S806 is a step in which the monochrome pattern assigning means 18 reassigns the graph identification numbers in the order of the graph having the largest number of regions included in the graph, based on the graph information stored in the region data storage unit 17 in Step S805. For example, in the area data storage unit 17 as shown in FIG. 12, the graph identification numbers are reassigned in the order of the graph having many areas as shown in FIG. For example, the lower left graph shown in FIG. 11 has six regions, and the graph identification number is assigned as 1 because there are more regions than other graphs.
ステップS807は、モノクロパターン割り当て手段18が、現在、パターンの割り当て対象としているグラフのグラフ識別番号を示す変数Xに、初期値1を代入するステップである。
Step S807 is a step in which the monochrome pattern assigning means 18 substitutes an
ステップS808は、モノクロパターン割り当て手段18が、現在、パターンの割り当て対象としている領域の領域識別番号を示す変数Yに、初期値1を代入するステップである。
Step S808 is a step in which the monochrome pattern assigning means 18 substitutes an
ステップS809は、モノクロパターン割り当て手段18が、パターン割り当て済の他のグラフにて、現在のパターン割り当ての領域と同じRBG値を持つ領域の番号を示す対応変数Zに、初期値0を代入するステップである。
Step S809 is a step in which the monochrome pattern assigning means 18 substitutes an
ステップS810は、モノクロパターン割り当て手段18が、グラフ識別番号Xで示されるグラフの、領域識別番号Yで示される領域にパターンを割り当てるステップである。各領域に割り当てられたパターンの識別子は、領域データ記憶部17のモノクロパターン識別番号フィールドに、割り当てられたモノクロパターンの識別番号を格納される。ステップS810内の詳細な処理の流れは別途、記載する。 Step S810 is a step in which the monochrome pattern assigning means 18 assigns a pattern to the area indicated by the area identification number Y of the graph indicated by the graph identification number X. As the identifier of the pattern assigned to each area, the identification number of the assigned monochrome pattern is stored in the monochrome pattern identification number field of the area data storage unit 17. The detailed processing flow in step S810 will be described separately.
ステップS811は、モノクロパターン割り当て手段18が、領域識別番号を示す変数Yをインクリメントするステップである。もしYが1であれば、このステップにてYに2が代入される。 In step S811, the monochrome pattern assignment unit 18 increments the variable Y indicating the area identification number. If Y is 1, 2 is substituted for Y in this step.
ステップS812は、モノクロパターン割り当て手段18が、グラフ識別番号Xで示されるグラフ内の領域数とYとを比較し、Yが領域数を超えていないかどうかを判別するステップである。もし、Yが領域数を超えていればステップS813に移り、Yが領域数を超えていなければステップS809に移る。 In step S812, the monochrome pattern assigning means 18 compares the number of areas in the graph indicated by the graph identification number X with Y, and determines whether Y does not exceed the number of areas. If Y exceeds the number of areas, the process proceeds to step S813. If Y does not exceed the number of areas, the process proceeds to step S809.
ステップS813は、モノクロパターン割り当て手段18が、グラフを識別するためのグラフ識別番号であるXをインクリメントするステップである。もし、Xが1であれば、このステップにてXに2が代入される。 In step S813, the monochrome pattern assignment unit 18 increments X, which is a graph identification number for identifying a graph. If X is 1, 2 is substituted for X in this step.
ステップS814は、モノクロパターン割り当て手段18が、領域データ記憶部17に含まれるグラフの総数とXとを比較し、Xがグラフの総数を超えているかどうか判別するステップである。Xがグラフの総数を超えている場合はステップS815に移り、Xがグラフの総数を超えていない場合はステップS809に処理が移る。 In step S814, the monochrome pattern assignment unit 18 compares the total number of graphs included in the area data storage unit 17 with X, and determines whether X exceeds the total number of graphs. If X exceeds the total number of graphs, the process proceeds to step S815. If X does not exceed the total number of graphs, the process proceeds to step S809.
ステップS815は、モノクログラフ表示手段20が領域データ記憶部17のデータを用いて各グラフの各領域にパターンを割り当てた画像を、表示入力装置11に表示させるステップである。具体的には、各グラフの各領域の配色を領域データ記憶部17に格納されたモノクロパターン識別番号を使って、モノクロパターンデータ19から取得し、各領域を取得したモノクロパターンで塗りつぶして表示される。以上が、グラフ表示プログラムの処理の流れである。
Step S815 is a step in which the monochrome
次に、ステップS810に相当する、グラフの各領域にモノクロパターンを割り当てる処理の詳細な流れを、図14を参照しながら説明する。 Next, a detailed flow of processing for assigning a monochrome pattern to each area of the graph, which corresponds to step S810, will be described with reference to FIG.
ステップS1401は、モノクロパターン割り当て手段が、グラフ識別番号Xの領域識別番号Yに対応するRGB値を領域データ記憶部17から取得するステップである。例えば、図12の領域データ記憶部17を用いると、グラフ識別番号Xが1で、領域識別番号Yが1の場合のRGB値は”0000CC”となる。 Step S1401 is a step in which the monochrome pattern assigning unit obtains an RGB value corresponding to the region identification number Y of the graph identification number X from the region data storage unit 17. For example, when the area data storage unit 17 of FIG. 12 is used, the RGB value when the graph identification number X is 1 and the area identification number Y is 1 is “0000CC”.
ステップS1402は、モノクロパターン割り当て手段が、ステップS1401で取得した領域のRGB値と同様のRGB値を持つ領域が、既にパターン割り当て済のグラフ内にあるかどうかを判別するステップである。既にパターン割り当て済かどうかは、領域データ記憶部17のモノクロパターン識別番号フィールドの値の有無で判断できる。もしも、同じRGB値を持つ領域が、既にモノクロパターン割り当て済のグラフ内にあれば、ステップS1403に処理が移り、もし、同じRGB値を持つ領域が、既にモノクロパターン割り当て済のグラフ内に無い場合はステップS1409に処理が移る。 Step S1402 is a step in which the monochrome pattern assigning unit determines whether or not a region having an RGB value similar to the RGB value of the region acquired in step S1401 is already in the pattern assigned graph. Whether the pattern has already been assigned can be determined by the presence or absence of a value in the monochrome pattern identification number field of the area data storage unit 17. If an area having the same RGB value is already in the monochrome pattern assigned graph, the process moves to step S1403, and if an area having the same RGB value is not already in the monochrome pattern assigned graph. The process moves to step S1409.
ステップS1403は、モノクロパターン割り当て手段が、ステップS1402で取得した、既にモノクロパターン割り当て済のグラフにて、領域識別番号Yが示す領域のRGB値と同じRGB値を持つ領域の数と、グラフ識別番号がXであるグラフで当該RGB値を持つ領域の数と同じかどうかを判別するステップである。領域の数が同じである場合は、ステップS1410に処理が移り、同じでない場合は、ステップS1404に処理が移る。 In step S1403, the number of areas having the same RGB value as the RGB value of the area indicated by the area identification number Y in the graph already assigned with the monochrome pattern acquired by the monochrome pattern assigning unit in step S1402, and the graph identification number Is a step of determining whether or not the number of regions having the RGB value is the same as the number of regions in the graph in which X is X. If the number of areas is the same, the process moves to step S1410, and if not, the process moves to step S1404.
ステップS1404は、モノクロパターン割り当て手段が、ステップS1402で取得した既にモノクロパターン割り当て済のグラフの、対応領域番号Zよりも大きな領域識別番号を持つ領域の数が、グラフ識別番号Xのうちのモノクロパターンが割り当てられていない領域の数と等しいかどうかを判別するステップである。等しい場合は、ステップS1410に処理が移り、等しくない場合はステップS1405に処理が移る。 In step S1404, the monochrome pattern allocation unit obtains the monochrome pattern in which the number of areas having an area identification number larger than the corresponding area number Z in the already allocated monochrome pattern acquired in step S1402 is the graph identification number X. Is a step of determining whether or not is equal to the number of unallocated areas. If they are equal, the process moves to step S1410, and if they are not equal, the process moves to step S1405.
ステップS1405は、モノクロパターン割り当て手段が、領域識別番号Yに対応する領域の要素が、パターン割り当て済の同じRGB値を持つ領域の要素とどのように対応するかを、グラフ表示プログラム1の利用者に選択してもらう情報を、表示入力装置11に送付するステップである。表示入力装置11に表示された画面の一例は図17となる。
In step S1405, the user of the
ステップS1406は、モノクロパターン割り当て手段が、表示入力装置11より、グラフ表示プログラム1の利用者が選択した領域の情報を受信するステップである。
In step S 1406, the monochrome pattern assigning unit receives information on the area selected by the user of the
ステップS1407は、モノクロパターン割り当て手段が、ステップS1406にて受信した領域が持つ領域識別番号を、領域データ記憶部17から取得し、対応領域番号Zに代入するステップである。 Step S1407 is a step in which the monochrome pattern assigning unit acquires the area identification number of the area received in step S1406 from the area data storage unit 17 and substitutes it into the corresponding area number Z.
ステップS1408は、モノクロパターン割り当て手段が、ステップS1406にて受信した領域に割り当て済であるモノクロパターンの識別番号を、領域データ記憶部17から取得するステップである。 Step S1408 is a step in which the monochrome pattern assigning unit obtains from the region data storage unit 17 the identification number of the monochrome pattern that has been assigned to the region received in step S1406.
ステップS1409は、モノクロパターン割り当て手段が、モノクロパターンデータから未割り当てのモノクロパターン識別番号を先頭から取得するステップである。 In step S1409, the monochrome pattern assigning unit obtains an unassigned monochrome pattern identification number from the top of the monochrome pattern data.
ステップS1410は、既にモノクロパターン割り当て済のグラフの中で、領域識別番号Yで示される領域と同じRGB値を持つ領域の中から、対応識別番号Zの次に大きな識別番号で示される領域に割り当てられたモノクロパターンの識別番号を、モノクロパターン割り当て手段が、取得するステップである。 Step S1410 assigns to the area indicated by the identification number next to the corresponding identification number Z from the areas having the same RGB value as the area indicated by the area identification number Y in the already assigned monochrome pattern graph. This is a step in which the monochrome pattern assigning means obtains the identification number of the monochrome pattern thus obtained.
ステップS1411は、モノクロパターン割り当て手段が、ステップS1410で取得した、対応識別番号Zの次に大きな識別番号をZに代入するステップである。 Step S1411 is a step in which the monochrome pattern assignment unit substitutes for Z the next largest identification number after the corresponding identification number Z acquired in step S1410.
ステップS1412は、モノクロパターン割り当て手段が、ステップS1408やステップS1410やステップS1409で取得したモノクロパターン識別番号を、領域データ記憶部17のうちの領域識別番号Yに対応するモノクロパターン識別番号フィールドの値として登録するステップである。 In step S1412, the monochrome pattern assignment unit acquires the monochrome pattern identification number acquired in step S1408, step S1410, or step S1409 as the value of the monochrome pattern identification number field corresponding to the area identification number Y in the area data storage unit 17. This is the step to register.
以上が、ステップS810に相当する、グラフの各領域にモノクロパターンを割り当てる処理の詳細な流れである。 The above is the detailed flow of the process of assigning a monochrome pattern to each area of the graph, corresponding to step S810.
では、実際に図11で示される4つのグラフをモノクロ変換した上で表示する流れを、上記ステップに沿って説明する。以下の処理はすべてモノクロパターン割り当て手段18が実施する。まず、ステップ806にて、グラフ識別番号が再割り当てされた領域データ記憶部17を図13とする。 Now, the flow of displaying the four graphs shown in FIG. 11 after monochrome conversion will be described along the above steps. The following processes are all performed by the monochrome pattern assigning means 18. First, in step 806, the area data storage unit 17 to which the graph identification number is reassigned is shown in FIG.
次に、ステップS1401にて、グラフ識別番号が1であり、領域識別番号が1である領域のRGBとして、領域データ記憶部17から”0000CC”が取得される。次のステップS1402にて”0000CC”と同じRGB値を持つ領域が、モノクロパターン割り当て済のグラフに含まれているかを判別するが、この場合、モノクログラフ割り当て済のグラフは無いのでステップS1409に移る。
Next, in step S1401, “0000CC” is acquired from the region data storage unit 17 as RGB of the region having the
ステップS1409にて、図6で示されるようなモノクロパターンデータ19から、グラフ識別番号1内にて未割り当てのモノクロパターンの識別番号である1が取得される。次にステップS1412にて、グラフ識別番号が1で、領域識別番号が1に対応するモノクロパターン識別番号フィールドに、ステップS1409で取得したモノクロパターン識別番号である1を代入する。このように、グラフ識別番号1で示されるグラフの領域のモノクロパターンが割り当てられた後の領域データ記憶部17は図15となる。グラフ識別番号1で示されるグラフの場合は、ステップS1402の判別処理にて、常にステップS1409に処理が移るので、結果的に、モノクロパターンデータ19に登録されているモノクロパターンが先頭から順に、グラフの領域に割り当てられることになる。
In step S1409, 1 which is the identification number of the unassigned monochrome pattern in the
次に、グラフ識別番号が2である図11の左上のグラフについて説明する。ステップS1401にて、グラフ識別番号が2であり、領域識別番号が1である領域のRGB値として、”0000CC”が取得される。次にステップS1402にて、取得したRGB値”0000CC”と同じRGB値を、すでにパターン割り当て済のグラフが持つかどうかが判別される。この場合、すでにパターン割り当て済のグラフであるグラフ識別番号1のグラフの領域として”0000CC”を持つものがあることが、図15からもわかる。
Next, the upper left graph of FIG. 11 where the graph identification number is 2 will be described. In step S1401, “0000CC” is acquired as the RGB value of the area where the graph identification number is 2 and the area identification number is 1. In step S1402, it is determined whether the graph already assigned with the pattern has the same RGB value as the acquired RGB value “0000CC”. In this case, it can also be seen from FIG. 15 that there is an area having “0000CC” as the area of the graph with the
このため、ステップS1403に処理が移る。ステップS1403にて、グラフ識別番号1のグラフ内と、グラフ識別番号2のグラフ内とで、RGB値”0000CC”を持つ領域の数が等しいかどうかを判別する。この場合、どちらの領域数も2であるため、ステップS1410に処理が移る。
Therefore, the process moves to step S1403. In step S1403, it is determined whether the number of regions having the RGB value “0000CC” is the same in the graph with the
ステップS1410にて、グラフ識別番号1でRGB値”0000CC”を持つ領域のうち、対応識別番号Zの次に大きい領域識別番号に割り当てられたモノクロパターン識別番号を取得する。この場合、対応識別番号は初期値の0であり、グラフ識別番号1の領域にて、0よりも大きく、RGB値”0000CC”を持つ領域識別番号は1と4であることがわかる。このため、領域識別番号が1である領域に割り当てられたモノクロパターン識別番号1が取得されることになる。
In step S1410, the monochrome pattern identification number assigned to the area identification number next to the corresponding identification number Z is acquired from the area having the RGB value “0000CC” at the
なお、仮に、対応識別番号Zが初期値の0であり、同じRGB値を持つ領域の識別番号が3と5と7などの場合は、0の次に大きい番号として3が取得される。この場合の次に大きい番号とは単なるインクリメントを示すものではない。そして、ステップS1411にて対応識別番号Zに、さきほど取得された、対応識別番号Zの次に大きい領域識別番号である1が代入されるとともに、ステップS1412にて、領域データ記憶部17の、グラフ識別番号が2であり、領域識別番号が1に対応するモノクロパターン識別番号フィールドに、先ほど取得したモノクロパターン識別番号1が記憶される。
If the corresponding identification number Z is 0 as an initial value and the identification numbers of areas having the same RGB value are 3, 5, 7, etc., 3 is acquired as the next highest number after 0. The next higher number in this case does not simply indicate an increment. In step S1411, 1 is assigned to the corresponding identification number Z, which is the next larger area identification number after the corresponding identification number Z. In step S1412, the graph of the area data storage unit 17 is displayed. The monochrome
次に、グラフ識別番号Xの値が2であり、領域識別番号Yの値が2である領域のパターン割り当てについて説明する。ステップS1401にて、グラフ識別番号Xの値が2であり、領域識別番号Yの値が2である領域のRGB値を取得する。この場合のRGB値は”0000CC”となる。次にステップS1402にて、先ほど取得したRGB値”0000CC”と同じRGB値を持つ領域が、パターン割り当て済であるグラフ内にあるかを判定するが、この場合、パターン割り当て済であるグラフ識別番号1のグラフが同様のRGB値を持っているため、処理がステップS1403に移る。 Next, pattern assignment of a region where the value of the graph identification number X is 2 and the value of the region identification number Y is 2 will be described. In step S1401, the RGB value of the region where the value of the graph identification number X is 2 and the value of the region identification number Y is 2 is acquired. The RGB value in this case is “0000CC”. Next, in step S1402, it is determined whether or not the area having the same RGB value as the RGB value “0000CC” acquired earlier is in the pattern assigned graph. In this case, the graph identification number assigned the pattern is assigned. Since the graph of 1 has the same RGB value, the process moves to step S1403.
ステップS1403にて、グラフ識別番号1に含まれ、RGB値が”0000CC”である領域の数と、グラフ識別番号2に含まれ、RGB値が”0000CC”である領域の数が同じであるかを判別する。この場合、グラフ識別番号1に含まれ、RGB値が”0000CC”である領域の数は2である。また、グラフ識別番号2に含まれ、RGB値が”0000CC”である領域の数は2であるので、RGB値が”0000CC”である領域の数領域の数は等しいことになる。そのため、処理がステップS1410に移る。
In step S1403, is the number of regions included in the
ステップS1410にて、グラフ識別番号1でRGB値”0000CC”を持つ領域のうち、対応識別番号Zの次に大きい領域識別番号に割り当てられたモノクロパターン識別番号を取得する。この場合、対応識別番号は1であり、グラフ識別番号1の領域にて、1よりも大きく、RGB値”0000CC”を持つ領域識別番号は4のものひとつであることがわかる。このため、領域識別番号が4である領域に割り当てられたモノクロパターン識別番号1が取得されることになる。
In step S1410, the monochrome pattern identification number assigned to the area identification number next to the corresponding identification number Z is acquired from the area having the RGB value “0000CC” at the
次のステップS1411にて、対応識別番号Zに、さきほど取得した、RGB値が”0000CC”である領域のうち、対応識別番号Zの次に大きい識別番号である4が代入される。また、ステップS1412にて、ステップS1410にて取得したモノクロパターン識別番号である4が、領域データ記憶部の、グラフ識別番号が2で領域識別番号が2に対応するモノクロパターン識別番号フィールドに記憶される。
In the next step S1411, 4 which is the next largest identification number after the correspondence identification number Z in the region having the RGB value “0000CC” acquired earlier is assigned to the correspondence identification number Z. In step S1412, 4 which is the monochrome pattern identification number acquired in step S1410 is stored in the monochrome pattern identification number field corresponding to the
次に、グラフ識別番号Xの値が2であり、領域識別番号Yの値が3である領域のパターン割り当てについて説明する。ステップS1401にて、グラフ識別番号Xの値が2であり、領域識別番号Yの値が3である領域のRGB値を取得する。この場合のRGB値は”FFFFFF”となる。次にステップS1402にて、先ほど取得したRGB値”FFFFFF”と同じRGB値を持つ領域が、パターン割り当て済であるグラフ内にあるかを判定するが、この場合、パターン割り当て済であるグラフ識別番号1のグラフが同様のRGB値を持っているため、処理がステップS1403に移る。 Next, pattern assignment of a region where the value of the graph identification number X is 2 and the value of the region identification number Y is 3 will be described. In step S1401, the RGB value of the region where the value of the graph identification number X is 2 and the value of the region identification number Y is 3 is acquired. The RGB value in this case is “FFFFFF”. Next, in step S1402, it is determined whether an area having the same RGB value as the RGB value “FFFFFF” acquired earlier is in the graph to which the pattern has been assigned. In this case, the graph identification number to which the pattern has been assigned. Since the graph of 1 has the same RGB value, the process moves to step S1403.
ステップS1403にて、グラフ識別番号1に含まれ、RGB値が”FFFFFF”である領域の数と、グラフ識別番号2に含まれ、RGB値が”FFFFFF”である領域の数が同じであるかを判別する。この場合、グラフ識別番号1に含まれ、RGB値が”FFFFFF”である領域の数は2である。また、グラフ識別番号2に含まれ、RGB値が”FFFFFF”である領域の数は1であるので、RGB値が”FFFFFF”である領域の数領域の数は等しくないことになる。そのため、処理がステップS1404に移る。
In step S1403, is the number of regions included in the
次のステップS1404では、まず、グラフ識別番号が1であり、対応識別番号Z以上を領域識別番号とする領域で、かつ、RGB値が”FFFFFF”である領域の数を、領域データ記憶部17から取得する。この場合はZが4であるので、領域識別番号が5以上でRGB値が”FFFFFF”である領域の数は、領域識別番号が5のもの1つとなる。 In the next step S1404, first, the region data storage unit 17 calculates the number of regions having a graph identification number of 1, an area identification number equal to or higher than the corresponding identification number Z, and an RGB value of “FFFFFF”. Get from. In this case, since Z is 4, the number of areas having an area identification number of 5 or more and an RGB value of “FFFFFF” is one with an area identification number of 5.
また、グラフ識別番号が2であり、モノクロパターンが割り当てられていない領域の中で、RGB値が”FFFFFF”である領域の数は、領域識別番号が3のもの1つとなる。このように、領域の数が等しいため、次の処理として、ステップS1410に移る。 In addition, among the areas where the graph identification number is 2 and the monochrome pattern is not assigned, the number of areas where the RGB value is “FFFFFF” is one where the area identification number is 3. Thus, since the number of areas is equal, the process proceeds to step S1410 as the next process.
ステップS1410では、ステップS1404で取得した、グラフ識別番号が1で、対応識別番号Zで示される4以上を領域識別番号とする領域で、かつ、RGB値が”FFFFFF”である領域のうち、対応識別番号Zの次に大きい識別番号に割り振られたパターン識別番号を取得する。この場合、グラフ識別番号が1で、RGB値が”FFFFFF”である領域のうち、対応識別番号Zの次に大きい識別番号は5であり、その領域に既に割り振られたモノクロパターン識別番号は5であるため、モノクロパターン識別番号として5が取得される。 In step S1410, among the areas obtained in step S1404, where the graph identification number is 1, the area identification number is 4 or more indicated by the correspondence identification number Z, and the RGB value is “FFFFFF”. The pattern identification number assigned to the identification number that is next to the identification number Z is acquired. In this case, among the areas where the graph identification number is 1 and the RGB value is “FFFFFF”, the next largest identification number after the corresponding identification number Z is 5, and the monochrome pattern identification number already assigned to that area is 5 Therefore, 5 is acquired as the monochrome pattern identification number.
次のステップS1411にて、対応識別番号Zに、さきほど取得した、RGB値が”FFFFFF”である領域のうち、対応識別番号Zの次に大きい識別番号であった5が代入される。また、ステップS1412で、ステップS1410にて取得したモノクロパターン識別番号である5が、領域データ記憶部の、グラフ識別番号が2で領域識別番号が3に対応するモノクロパターン識別番号フィールドに記憶される。
In the next step S1411, 5 is assigned to the corresponding identification number Z, which is the second largest identification number after the corresponding identification number Z in the region having the RGB value “FFFFFF” acquired earlier. In step S1412, the monochrome
同様の処理にて、領域データ記憶部17の、グラフ識別番号Xの値が2であり、領域識別番号Yの値が3である領域のパターンとして、パターン識別番号6が記憶される。この段階での領域データ記憶部17は図16のようになる。
In the same process, the
次に、グラフ識別番号3の各領域にモノクロパターンを割り当てる処理の流れを説明する。ステップS1401にて、グラフ識別番号Xの値が3であり、領域識別番号Yの値が1である領域のRGB値を取得する。この場合のRGB値は”0000CC”となる。次にステップS1402にて、先ほど取得したRGB値”0000CC”と同じRGB値を持つ領域が、パターン割り当て済であるグラフ内にあるかを判定するが、この場合、パターン割り当て済であるグラフ識別番号1のグラフが同様のRGB値を持っているため、処理がステップS1403に移る。
Next, a flow of processing for assigning a monochrome pattern to each area of the
ステップS1403にて、グラフ識別番号1に含まれ、RGB値が”0000CC”である領域の数と、グラフ識別番号3に含まれ、RGB値が”0000CC”である領域の数が同じであるかを判別する。この場合、グラフ識別番号1に含まれ、RGB値が”0000CC”である領域の数は2である。また、グラフ識別番号3に含まれ、RGB値が”0000CC”である領域の数は1であるので、RGB値が”0000CC”である領域の数領域の数は等しくないことになる。そのため、処理がステップS1404に移る。
In step S1403, is the number of regions included in the
次のステップS1404では、まず、グラフ識別番号が1であり、対応識別番号Z以上を領域識別番号とする領域で、かつ、RGB値が”0000CC”である領域の数を、領域データ記憶部17から取得する。この場合はZが初期値である0であるので、グラフ識別番号が1であり、領域識別番号が1以上でRGB値が”0000CC”である領域の数は、領域識別番号が1のものと領域識別番号が4のものの2つとなる。 In the next step S1404, first, the area data storage unit 17 calculates the number of areas having a graph identification number of 1, an area identification number equal to or higher than the corresponding identification number Z, and an RGB value of “0000CC”. Get from. In this case, since Z is 0, which is an initial value, the number of areas where the graph identification number is 1, the area identification number is 1 or more, and the RGB value is “0000CC” is that the area identification number is 1. Two of the area identification numbers are four.
また、グラフ識別番号が3であり、モノクロパターンが割り当てられていない領域の中で、RGB値が”0000CC”である領域の数は、領域識別番号が1のもの1つとなる。このように、同じRGB値を持つ領域の数が等しくないため、次の処理として、ステップS1405に移る。 In addition, among the areas where the graph identification number is 3 and the monochrome pattern is not assigned, the number of areas where the RGB value is “0000CC” is one with the area identification number of 1. Thus, since the number of areas having the same RGB value is not equal, the process proceeds to step S1405 as the next processing.
ステップS1405では、図17に示されるような選択メニューを表示入力装置11に表示する。図17では、グラフ識別番号が1で示されるグラフと、グラフ識別番号が3で示されるグラフが表示され、今回、モノクロパターン割り当て対象となっているグラフ識別番号3の領域識別番号1で示される領域が、グラフ識別番号1で示されるグラフのどの領域かの選択を利用者に促す表示になっている。選択の対象としては、グラフ識別番号3の領域識別番号1で示される領域と同じRGB値を持つ、グラフ識別番号1の領域識別番号1で示される領域と領域識別番号4で示される領域の2つとなっている。
In step S1405, a selection menu as shown in FIG. In FIG. 17, a graph having a graph identification number of 1 and a graph having a graph identification number of 3 are displayed, and this time, this is indicated by a
ステップS1406にて、表示入力装置11からグラフ表示プログラムの利用者が入力した選択情報を取得する。例えば、選択した領域が、グラフ識別番号1の領域識別番号4で示される領域(青色に塗られた2つ目の領域であり、図17の2に相当)であれば、ステップS1407にて、対応識別番号Zに強情報が、選択された領域の領域識別番号である4が代入され、ステップS1408にて、選択された領域の領域識別番号に割り当てられたモノクロパターン識別番号として4が領域データ記憶部17から取得される。
In step S1406, selection information input by the user of the graph display program is acquired from the display input device 11. For example, if the selected region is the region indicated by the
次に、ステップS1412にて、ステップS1406にて取得したモノクロパターン識別番号である4が、領域データ記憶部の、グラフ識別番号が3で領域識別番号が1に対応するモノクロパターン識別番号フィールドに記憶される。
Next, in step S1412, 4 which is the monochrome pattern identification number acquired in step S1406 is stored in the monochrome pattern identification number field corresponding to the
グラフ識別番号4の各領域にモノクロパターンを割り当てる処理の流れも、グラフ識別番号3の各領域にパターンを割り当てる処理と同様に実施される。
The flow of the process of assigning a monochrome pattern to each area of the
このように図14の処理の流れに沿って、図11で示される4つのグラフの各領域にモノクロパターン識別番号を割り当てた場合の領域データ記憶部17は図18の様になる。また、ステップS815に相当する処理として、モノクログラフ表示手段20が、図18で示される領域データ記憶部17に記憶されたモノクロパターン識別番号を使い、図6で示されるモノクロパターンデータ19を用いて、表示入力装置11にグラフを表示したものは図19となる。
As described above, the area data storage unit 17 in the case where the monochrome pattern identification number is assigned to each area of the four graphs shown in FIG. 11 along the processing flow of FIG. 14 is as shown in FIG. As a process corresponding to step S815, the monochrome graph display means 20 uses the monochrome pattern identification number stored in the area data storage unit 17 shown in FIG. 18 and uses the
なお、上記では円グラフを対象とした実施例であるが、図20で示されるような棒状で示されるグラフでも同様の仕組みが適用可能である。図20も図9などと同様に、実際には、カラーで領域が塗りつぶされているが、図内では塗りつぶされている色の名称を領域内に文字で表示している。また、図21は、上記で示したグラフ表示プログラム1を記憶した記憶媒体を利用する実施形態の一例である。コンピュータ211が記憶媒体212に記憶されたグラフ表示プログラム1を読みこみ、グラフ表示プログラム1を実行することも可能である。以上が本発明の実施例を示したものである。
In addition, although the above is an embodiment for a pie chart, the same mechanism can be applied to a graph shown in a bar shape as shown in FIG. In FIG. 20, as in FIG. 9 and the like, the area is actually filled with color, but in the figure, the name of the filled color is displayed in characters in the area. FIG. 21 is an example of an embodiment using a storage medium storing the
以上説明したように本発明のグラフ表示プログラムは、複数のモノクロパターンを記憶したモノクロパターンデータを備え、モノクロ変換したうえで表示する対象となる複数のカラーグラフが持つ領域数、元のRGB値と領域順を考慮してモノクロ変換することにより、複数のカラーグラフに含まれる各領域の数が異なっていても、変換前のRGB値が同じ領域に同じモノクロパターンが割り当てられるという利点がある。このため、従来までは、モノクロ変換したいグラフを複数選択して、モノクロ変換を実施した後で、同じデータを示す領域が異なるモノクロパターンに割り振られていた場合に、手動で修正する必要があったが、本発明を用いることにより、自動的に同じデータを示す領域には同じパターンが割り当てられる。 As described above, the graph display program of the present invention includes monochrome pattern data in which a plurality of monochrome patterns are stored, and the number of areas, the original RGB values of the plurality of color graphs to be displayed after monochrome conversion are displayed. By performing monochrome conversion in consideration of the area order, there is an advantage that the same monochrome pattern is assigned to an area having the same RGB value before conversion even if the number of areas included in the plurality of color graphs is different. For this reason, until now, after selecting multiple graphs to be converted to monochrome and performing monochrome conversion, it was necessary to manually correct the area where the same data was allocated to different monochrome patterns. However, by using the present invention, the same pattern is automatically assigned to areas showing the same data.
また、ひとつのグラフ内の異なる領域に同じRGB値を持つ色が割り当てられているカラーグラフのモノクロ変換においても、領域順を考慮し、異なるモノクロパターンを割り当てることで、領域の識別が容易となる。本発明は、複数のカラーグラフを同時にモノクロ変換して表示する場合に、効果を発揮することが考えられる。 Further, even in monochrome conversion of a color graph in which colors having the same RGB values are assigned to different areas in one graph, it is easy to identify the areas by assigning different monochrome patterns in consideration of the order of the areas. . The present invention can be considered effective when a plurality of color graphs are simultaneously converted into monochrome and displayed.
1 グラフ表示プログラム
11 表示入力装置
12 アプリケーション
13 カラーグラフ取得手段
14 変換対象選択手段
15 グラフ領域判定手段
16 グラフ情報記憶手段
17 領域データ記憶部
18 モノクロパターン割り当て手段
19 モノクロパターンデータ
20 モノクログラフ表示手段
21 情報機器
22 印刷機
211 コンピュータ
212 記憶媒体
DESCRIPTION OF
Claims (2)
コンピュータに、
A)モノクロパターンの割り当て対象となる領域の領域順を示す対応変数に初期値1を代入させ、
B)前記モノクロ変換対象とされたグラフのうち、モノクロパターンが未割り当てのグラフのうちで、グラフに含まれる領域数が多い順に、モノクロパターン割り当て対象のグラフとして認識させ、
C)前記取得したモノクロパターン割り当て対象となるグラフに含まれるモノクロパターン未割り当ての領域を順にモノクロパターンの割り当て領域として認識させ、
D)当該割り当て領域に配色されたカラー情報を取得させ、
E)前記取得したカラー情報を持つ領域が、既にモノクロパターンが割り当て済みの他のグラフのうち、上記対応変数に示される領域順以降に含まれるかどうかを判別させ、
F)同じカラー情報を持つ領域が、既にモノクロパターンが割り当てられている他のグラフの上記対応変数に示される領域順以降に含まれていた場合に、当該同じカラー情報を持つ領域に割り当てられたモノクロパターンを前記パターン割り当て領域に割り当てさせ、
G)当該同じカラー情報を持つ領域を含むグラフの、当該同じカラー情報を持つ領域の領域順を、前記対応変数に代入させ、
H)同じカラー情報を持つ領域が、既にモノクロパターンが割り当てられている他のグラフの上記対応変数に示される領域順以降に含まれていない場合に、前記記憶されたモノクロパターンから未割り当てのパターンを取得し前記パターン割り当て領域に割り当てさせ、
I)当該パターン割り当て領域を含むグラフの、当該パターン割り当て領域の領域順を、前記対応変数に代入させ、
J)前記モノクロパターン割り当て対象とされたグラフに含まれるすべての領域にモノクロパターンが割り当てられていない場合に前記Cに移行させ、
K)前記モノクロパターン割り当て対象とされたグラフに含まれるすべての領域にモノクロパターンが割り当てられ、モノクロパターンが割り当てられていないグラフが他に存在する場合に前記対応変数に初期値1を代入して前記Bに移行させ、
L)前記入力画像に含まれる複数のグラフのすべてにモノクロパターンが割り当てられた場合に、前記複数のグラフの各領域に割り当てられたモノクロパターンで、当該領域を塗りつけたグラフを表示させる
ことを特徴とするグラフ表示方法。 Input an image including a color graph, recognize a plurality of graphs included in the input image and one or a plurality of regions included in the plurality of graphs, and based on a plurality of monochrome patterns stored in advance, A graph display method for converting the color graph into monochrome and displaying it on a computer ,
On the computer,
A) The initial value 1 is assigned to the corresponding variable indicating the order of the areas to be assigned monochrome patterns, and
B) of the graph the is a monochrome conversion target, among monochrome pattern chart unassigned, the descending order of the number of areas included in the graph, is recognized as a graph of monochrome patterns Assignee,
C) in order to be recognized as the assigned area of the monochromatic pattern an area of a monochrome pattern unassigned included in the graph to be the acquired monochrome pattern allocation target,
D) to acquire the color information color to the allocation region,
E) region with the acquired color information is already out of another graph monochrome patterns assigned, to determine whether included in the area order later shown in the corresponding variable,
F) When an area having the same color information is included after the area order indicated by the corresponding variable in another graph to which a monochrome pattern has already been assigned, the area is assigned to the area having the same color information. A monochrome pattern is assigned to the pattern assignment area,
G) of the graph including a region having the same color information, an area the order of the region having the same color information, is assigned to the corresponding variable,
H) If an area having the same color information is not included after the area order indicated by the corresponding variable in another graph to which a monochrome pattern has already been assigned, the unassigned pattern from the stored monochrome pattern Is obtained and assigned to the pattern assignment area,
Graph comprising I) the pattern assigned area, the area order of the pattern assigned area, is assigned to the corresponding variable,
J) wherein is shifted to C when the monochrome pattern in all the areas included in the monochromatic pattern assignment target is graph is not assigned,
K) When a monochrome pattern is assigned to all the areas included in the graph to which the monochrome pattern is to be assigned and there is another graph to which no monochrome pattern is assigned, the initial value 1 is assigned to the corresponding variable. Shift to B,
L) When a monochrome pattern is assigned to all of the plurality of graphs included in the input image, a graph in which the region is painted with the monochrome pattern assigned to each region of the plurality of graphs is displayed. Graph display method.
A)モノクロパターンの割り当て対象となる領域の領域順を示す対応変数に初期値1を代入するステップと、
B)当該入力画像に含まれる複数のグラフを認識するステップと、
C)前記認識した各グラフに含まれる一又は複数の領域を認識するステップと、
D)前記ステップにて取得した一又は複数の領域に塗られたカラー情報を取得し、当該領域に対応づけて領域データ記憶部に記憶するステップと、
E)前記複数のグラフのうち、モノクロパターンが領域に割り当てられていないグラフの中で、グラフに含まれる領域の数が多い順にグラフを選択するステップと、
F)前記選択したグラフに含まれるモノクロパターン未割り当ての領域を順にモノクロパターンの割り当て領域として選択するステップと、
G)当該割り当て領域に配色されたカラー情報を前記領域データ記憶部から取得するステップと、
H)既にモノクロパターンが割り当てられている他のグラフの領域のうちの、前記取得したカラー情報を持つ領域が、上記対応変数に示される領域順以降に含まれるかどうかを判別するステップと、
I)同じカラー情報を持つ領域が、既にモノクロパターンが割り当てられている他のグラフの上記対応変数に示される領域順以降に含まれていた場合に、当該同じカラー情報を持つ領域に割り当てられたモノクロパターンを当該割り当て領域のモノクロパターンとして前記領域データ記憶部に記憶するステップと、
J)当該同じカラー情報を持つ領域の領域順を、前記対応変数に代入するステップと、
K)同じカラー情報を持つ領域が、既にモノクロパターンが割り当てられている他のグラフの上記対応変数に示される領域順以降に含まれていない場合に、前記記憶されたモノクロパターンから未割り当てのパターンを取得し当該パターン割り当て領域のモノクロパターンとして領域データ記憶部に記憶するステップと、
L)当該パターン割り当て領域を含むグラフの、当該パターン割り当て領域の領域順を、前記対応変数に代入するステップと、
M)前記選択したグラフに含まれるすべての領域にモノクロパターンが割り当てられていない場合に前記Fに移行し、
N)前記選択したグラフに含まれるすべての領域にモノクロパターンが割り当てられ、モノクロパターンが割り当てられていないグラフが他に存在する場合に前記対応変数に初期値1を代入して前記Eに移行し、
O)前記入力画像に含まれる複数のグラフのすべてにモノクロパターンが割り当てられた際に、前記領域データ記憶部に記憶された各領域のモノクロパターンで当該領域を塗りつけた前記複数のグラフを表示させるステップ、
として機能させることを特徴とするグラフ表示プログラム。 A computer that reads an image including a color graph, converts the color graph included in the image into monochrome based on a plurality of monochrome patterns stored in advance, and displays the computer on a display screen.
A) Substituting an initial value of 1 into a corresponding variable indicating the area order of areas to be assigned monochrome patterns;
B) recognizing a plurality of graphs included in the input image;
C) recognizing one or more regions included in each recognized graph;
D) acquiring color information applied to one or a plurality of areas acquired in the step, and storing the color information in the area data storage unit in association with the areas;
E) selecting a graph in the descending order of the number of regions included in the graph among the plurality of graphs in which the monochrome pattern is not assigned to the region;
F) selecting a monochrome pattern unallocated area included in the selected graph in order as a monochrome pattern allocated area;
G) obtaining color information arranged in the assigned area from the area data storage unit;
H) determining whether the area having the acquired color information among the areas of other graphs to which a monochrome pattern has already been assigned is included after the area order indicated by the corresponding variable;
I) An area having the same color information is assigned to an area having the same color information when the area having the same color information is included after the area order indicated by the corresponding variable in another graph to which a monochrome pattern has already been assigned. Storing a monochrome pattern in the area data storage unit as a monochrome pattern of the assigned area;
J) Substituting the region order of the regions having the same color information into the corresponding variable;
K) When an area having the same color information is not included after the area order indicated by the corresponding variable in another graph to which a monochrome pattern has already been assigned, an unassigned pattern from the stored monochrome pattern And storing it in the area data storage unit as a monochrome pattern of the pattern allocation area;
L) Substituting the region order of the pattern allocation region of the graph including the pattern allocation region into the corresponding variable;
M) If a monochrome pattern is not assigned to all the areas included in the selected graph, the process moves to F.
N) When a monochrome pattern is assigned to all areas included in the selected graph and there are other graphs to which no monochrome pattern is assigned, the initial value 1 is assigned to the corresponding variable and the process proceeds to E. ,
O) When a monochrome pattern is assigned to all of the plurality of graphs included in the input image, the plurality of graphs in which the area is painted with the monochrome pattern of each area stored in the area data storage unit are displayed. Step,
Graph display program characterized by functioning as
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004052120A JP4424004B2 (en) | 2004-02-26 | 2004-02-26 | Graph display method, graph display program, and storage medium storing graph display program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004052120A JP4424004B2 (en) | 2004-02-26 | 2004-02-26 | Graph display method, graph display program, and storage medium storing graph display program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2005242702A JP2005242702A (en) | 2005-09-08 |
JP4424004B2 true JP4424004B2 (en) | 2010-03-03 |
Family
ID=35024371
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004052120A Expired - Fee Related JP4424004B2 (en) | 2004-02-26 | 2004-02-26 | Graph display method, graph display program, and storage medium storing graph display program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4424004B2 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5776145B2 (en) * | 2010-07-27 | 2015-09-09 | 株式会社リコー | Image processing apparatus, image processing method, program, and recording medium |
JP6213208B2 (en) * | 2013-12-17 | 2017-10-18 | 株式会社島津製作所 | Data output method and data output apparatus for printing apparatus |
JP2016165026A (en) * | 2015-03-06 | 2016-09-08 | 株式会社沖データ | Image processing system |
-
2004
- 2004-02-26 JP JP2004052120A patent/JP4424004B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2005242702A (en) | 2005-09-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100446542C (en) | Systems and methods for organizing image data into regions | |
Tominski et al. | Task-driven color coding | |
JP5437150B2 (en) | Method and system for highlighting topic elements in a chart having multiple contrast elements of multiple colors | |
US6774909B1 (en) | Method and apparatus for transforming color image into monochromatic image | |
CN106155483A (en) | Display packing and terminal | |
CN109981923A (en) | Image processing apparatus and image processing method | |
KR20200035865A (en) | Information processing apparatus, information processing method, and storage medium | |
CN106203571A (en) | Image production method based on Quick Response Code and recognition methods and realize system | |
CN101751904B (en) | Method for color enhancement | |
JP4424004B2 (en) | Graph display method, graph display program, and storage medium storing graph display program | |
RU2004121993A (en) | SEGMENTATION OF IMAGES USING THE WATER DISTRIBUTION METHOD | |
US9111387B2 (en) | Color information generation device, color information generation method, and recording medium | |
JP2006031688A (en) | Image processing device, method, and program | |
CN108447118A (en) | Big data method for visualizing, device and the electronic equipment that 3D visions are presented | |
US6317516B1 (en) | Learning method for an image analysis system for use in the analysis of an object as well as uses of the method | |
Gijsenij et al. | Analyzing a decade of colors of the year | |
CN109981922A (en) | Image processing apparatus and image processing method | |
JP2003507796A (en) | System and method for locating regions of matching color and pattern in a target image | |
CN109981912A (en) | Image processing apparatus and image processing method | |
US20170017360A1 (en) | Method for checking network elements and network | |
JP3061812B2 (en) | Pattern recognition method and apparatus | |
JP4731438B2 (en) | Color scheme proposal method | |
CN106952323A (en) | A kind of handwriting trace color method to set up and device | |
JP2695868B2 (en) | Color stereo display | |
CN106027829A (en) | Image processing apparatus and image processing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20070118 |
|
RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7421 Effective date: 20070531 |
|
RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7421 Effective date: 20070606 |
|
RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7421 Effective date: 20080722 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20090825 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20091022 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20091117 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20091130 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 4424004 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121218 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121218 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20131218 Year of fee payment: 4 |
|
LAPS | Cancellation because of no payment of annual fees |