JP6051988B2 - Information processing program, information processing method, and information processing apparatus - Google Patents

Information processing program, information processing method, and information processing apparatus Download PDF

Info

Publication number
JP6051988B2
JP6051988B2 JP2013057388A JP2013057388A JP6051988B2 JP 6051988 B2 JP6051988 B2 JP 6051988B2 JP 2013057388 A JP2013057388 A JP 2013057388A JP 2013057388 A JP2013057388 A JP 2013057388A JP 6051988 B2 JP6051988 B2 JP 6051988B2
Authority
JP
Japan
Prior art keywords
information
pixel
attribute
symbol
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
Application number
JP2013057388A
Other languages
Japanese (ja)
Other versions
JP2014182663A (en
Inventor
大堀 順也
順也 大堀
正幸 河島
正幸 河島
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2013057388A priority Critical patent/JP6051988B2/en
Publication of JP2014182663A publication Critical patent/JP2014182663A/en
Application granted granted Critical
Publication of JP6051988B2 publication Critical patent/JP6051988B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Character Discrimination (AREA)

Description

本発明は、情報処理プログラム、情報処理方法および情報処理装置に関する。   The present invention relates to an information processing program, an information processing method, and an information processing apparatus.

従来、インターネット等のネットワークを介して、化合物の構造式の画像情報が提供される場合、当該構造式に含まれる原子記号や結合記号の属性を示す構造情報(例えば、MOLファイル)は、画像情報とは別のデータとして提供されることが多い。   Conventionally, when image information of a structural formula of a compound is provided via a network such as the Internet, structural information (for example, a MOL file) indicating attributes of atomic symbols and bond symbols included in the structural formula is image information. Often provided as separate data.

関連する技術としては、例えば、化合物を第1の特性情報に基づいて分類した複数の階層的なクラスターに基づいた再帰的な入れ子構造となるように決定した化合物の2次元平面内における配置で、第2の特性情報に基づいた色によって化合物を描画する技術がある。また、画像から文字/接続線の属性認識を通じて、原子と結合状況からなる化学構造図式を解析する文字図形認識の技術がある。   As a related technique, for example, an arrangement in a two-dimensional plane of a compound determined to be a recursive nested structure based on a plurality of hierarchical clusters in which the compound is classified based on the first property information, There is a technique for drawing a compound with a color based on second characteristic information. In addition, there is a character graphic recognition technique for analyzing a chemical structure diagram composed of atoms and bonding states through character / connection line attribute recognition from an image.

特開2006−318048号公報JP 2006-318048 A 特開昭62−169290号公報JP 62-169290 A

しかしながら、上述した従来技術では、化合物の構造式の画像情報と構造情報とが別々のデータとして提供されると、利用者は、別々のデータとして提供される画像情報と構造情報とを対応付けて管理することになり、利用者の管理作業にかかる負担が増大する。また、画像情報に対応する構造情報がないと、利用者は、構造式の化学的性質を把握することが難しい場合がある。   However, in the above-described prior art, when the image information and the structure information of the structural formula of the compound are provided as separate data, the user associates the image information and the structure information provided as separate data with each other. As a result, the burden on the user's management work increases. Further, if there is no structural information corresponding to the image information, it may be difficult for the user to grasp the chemical properties of the structural formula.

1つの側面では、本発明は、化合物の構造式の画像情報から当該構造式に含まれる原子の属性または原子間の結合の属性を特定することを目的とする。   In one aspect, an object of the present invention is to specify an attribute of an atom or a bond between atoms included in the structural formula from image information of the structural formula of the compound.

本発明の一側面によれば、描画領域に描画される化合物の構造式に含まれる原子を示す原子記号の属性と、構造式に含まれる原子間の結合を示す結合記号の属性と、を含む構造情報を取得し、取得した構造情報を参照して、構造式の中から選択された原子記号または結合記号のいずれかの記号の属性を特定し、構造情報を参照して、描画領域上に描画される構造式の画像情報に含まれる記号を表す画素群のうちのいずれかの画素の画素情報を特定し、特定した画素の画素情報を示すビット列のうち、特定した属性の種別に応じた位置にあるビットの値を、特定した属性を示す値に変更する情報処理プログラム、情報処理方法および情報処理装置が提案される。   According to one aspect of the present invention, an attribute of an atomic symbol indicating an atom included in a structural formula of a compound drawn in the drawing area and an attribute of a bond symbol indicating a bond between atoms included in the structural formula are included. Acquire structural information, refer to the acquired structural information, specify the attribute of either the atomic symbol or bond symbol selected from the structural formula, refer to the structural information, and place it on the drawing area The pixel information of any pixel in the pixel group representing the symbol included in the image information of the structural formula to be drawn is specified, and according to the specified attribute type in the bit string indicating the pixel information of the specified pixel An information processing program, an information processing method, and an information processing apparatus for changing the value of a bit at a position to a value indicating a specified attribute are proposed.

また、本発明の一側面によれば、描画領域上に描画される化合物の構造式の画像情報の中から、構造式に含まれる原子記号または結合記号のいずれかの記号を示す画素群のいずれかの画素の画素情報であって、画素情報を示すビット列のうちの記号の属性に応じた位置にあるビットの値が属性を示す値に変更された画素情報を抽出し、抽出した画素情報を示すビット列のうちの属性に応じた位置にあるビットの値に基づいて、記号の属性を特定する情報処理プログラム、情報処理方法および情報処理装置が提案される。   Further, according to one aspect of the present invention, any one of the pixel groups indicating either the atomic symbol or the bond symbol included in the structural formula from the image information of the structural formula of the compound drawn on the drawing area. Pixel information in which the value of the bit at the position corresponding to the attribute of the symbol in the bit string indicating the pixel information is changed to a value indicating the attribute, and the extracted pixel information is An information processing program, an information processing method, and an information processing apparatus for specifying a symbol attribute based on a bit value at a position corresponding to an attribute in a bit string to be shown are proposed.

本発明の一態様によれば、化合物の構造式の画像情報から当該構造式に含まれる原子の属性または原子間の結合の属性を特定することができるという効果を奏する。   According to one embodiment of the present invention, there is an effect that an attribute of an atom included in the structural formula or an attribute of a bond between atoms can be specified from image information of the structural formula of the compound.

図1は、実施の形態にかかる情報処理装置100の一実施例を示す説明図である。FIG. 1 is an explanatory diagram of an example of the information processing apparatus 100 according to the embodiment. 図2は、実施の形態にかかる情報処理装置100のハードウェア構成例を示すブロック図である。FIG. 2 is a block diagram of a hardware configuration example of the information processing apparatus 100 according to the embodiment. 図3は、原子記号−属性対応情報テーブル300の記憶内容の一例を示す説明図である。FIG. 3 is an explanatory diagram showing an example of the stored contents of the atomic symbol / attribute correspondence information table 300. 図4は、結合記号−属性対応情報テーブル400の記憶内容の一例を示す説明図である。FIG. 4 is an explanatory diagram showing an example of the stored contents of the combined symbol / attribute correspondence information table 400. 図5は、情報処理装置100の機能的構成を示すブロック図である。FIG. 5 is a block diagram illustrating a functional configuration of the information processing apparatus 100. 図6は、第1の動作の具体例を示す説明図(その1)である。FIG. 6 is an explanatory diagram (part 1) of a specific example of the first operation. 図7は、第1の動作の具体例を示す説明図(その2)である。FIG. 7 is an explanatory diagram (part 2) illustrating a specific example of the first operation. 図8は、第1の動作の具体例を示す説明図(その3)である。FIG. 8 is an explanatory diagram (part 3) illustrating a specific example of the first operation. 図9は、第1の動作の具体例を示す説明図(その4)である。FIG. 9 is an explanatory diagram (part 4) illustrating a specific example of the first operation. 図10は、第1の動作の具体例を示す説明図(その5)である。FIG. 10 is an explanatory diagram (part 5) illustrating a specific example of the first operation. 図11は、第1の動作の具体例を示す説明図(その6)である。FIG. 11 is an explanatory diagram (part 6) illustrating a specific example of the first operation. 図12は、第1の動作の具体例を示す説明図(その7)である。FIG. 12 is an explanatory diagram (part 7) illustrating a specific example of the first operation. 図13は、第1の動作の具体例を示す説明図(その8)である。FIG. 13 is an explanatory diagram (part 8) illustrating a specific example of the first operation. 図14は、第1の動作の具体例を示す説明図(その9)である。FIG. 14 is an explanatory diagram (No. 9) illustrating a specific example of the first operation. 図15は、第1の動作の具体例を示す説明図(その10)である。FIG. 15 is an explanatory diagram (part 10) illustrating a specific example of the first operation. 図16は、第1の動作の具体例を示す説明図(その11)である。FIG. 16 is an explanatory diagram (part 11) illustrating a specific example of the first operation. 図17は、第1の動作の具体例を示す説明図(その12)である。FIG. 17 is an explanatory diagram (part 12) illustrating a specific example of the first operation. 図18は、第1の動作の具体例を示す説明図(その13)である。FIG. 18 is an explanatory diagram (part 13) illustrating a specific example of the first operation. 図19は、属性値格納処理手順の一例を示すフローチャートである。FIG. 19 is a flowchart illustrating an example of an attribute value storage processing procedure. 図20は、構造画像作成処理手順の一例を示すフローチャートである。FIG. 20 is a flowchart illustrating an example of a structural image creation processing procedure. 図21は、画素抽出処理手順の一例を示すフローチャートである。FIG. 21 is a flowchart illustrating an example of a pixel extraction processing procedure. 図22は、再帰処理手順の一例を示すフローチャートである。FIG. 22 is a flowchart illustrating an example of the recursive processing procedure. 図23は、構造情報埋込処理手順の一例を示すフローチャートである。FIG. 23 is a flowchart illustrating an example of the structure information embedding processing procedure. 図24は、第2の動作の具体例を示す説明図(その1)である。FIG. 24 is an explanatory diagram (part 1) illustrating a specific example of the second operation. 図25は、第2の動作の具体例を示す説明図(その2)である。FIG. 25 is an explanatory diagram (part 2) illustrating a specific example of the second operation. 図26は、構造情報出力処理手順の一例を示すフローチャートである。FIG. 26 is a flowchart illustrating an example of the structure information output processing procedure.

以下に添付図面を参照して、本発明にかかる情報処理プログラム、情報処理方法および情報処理装置の実施の形態を詳細に説明する。   Hereinafter, embodiments of an information processing program, an information processing method, and an information processing apparatus according to the present invention will be described in detail with reference to the accompanying drawings.

(実施の形態にかかる情報処理装置100の一実施例)
図1は、実施の形態にかかる情報処理装置100の一実施例を示す説明図である。情報処理装置100は、例えば、化合物の構造式111に含まれる原子記号の属性を示す値と結合記号の属性を示す値とを、構造式111を描画領域上に描画した画像110を示す画像情報内に埋め込むコンピュータである。以下の説明では、情報処理装置100によって行われる原子記号の属性を示す値と結合記号の属性を示す値とを、構造式111を描画領域上に描画した画像110を示す画像情報内に埋め込む動作を「第1の動作」と表記する場合がある。
(One Example of Information Processing Apparatus 100 According to Embodiment)
FIG. 1 is an explanatory diagram of an example of the information processing apparatus 100 according to the embodiment. The information processing apparatus 100, for example, image information indicating an image 110 in which the structural formula 111 is drawn on the drawing area by using the value indicating the attribute of the atomic symbol and the value indicating the attribute of the bond symbol included in the structural formula 111 of the compound. It is a computer that is embedded inside. In the following description, an operation performed by the information processing apparatus 100 to embed a value indicating the attribute of the atomic symbol and a value indicating the attribute of the bond symbol in the image information indicating the image 110 in which the structural formula 111 is drawn on the drawing area. May be referred to as “first operation”.

ここで、原子記号とは、例えば、化合物内の原子を示す記号である。原子記号の一例としては、炭素原子を示す記号「C」がある。原子記号の属性とは、例えば、原子記号の記号種別を示す種別情報、構造式111に含まれる各々の原子記号に割り当てられた原子ID(Identification)、原子番号の値、構造式111に含まれる原子記号の位置を示す値、および電荷の値などである。また、結合記号とは、例えば、化合物内の原子間の結合を示す記号である。結合記号の属性とは、例えば、結合記号の記号種別を示す種別情報、結合される2つの原子の原子ID、結合記号の結合種別を示す値、および結合記号の立体種別を示す値などである。   Here, the atomic symbol is, for example, a symbol indicating an atom in the compound. An example of an atomic symbol is the symbol “C” indicating a carbon atom. The attribute of the atomic symbol includes, for example, type information indicating the symbol type of the atomic symbol, an atomic ID (Identification) assigned to each atomic symbol included in the structural formula 111, an atomic number value, and the structural formula 111. A value indicating the position of an atomic symbol, a charge value, and the like. The bond symbol is, for example, a symbol indicating a bond between atoms in a compound. The attribute of the bond symbol includes, for example, type information indicating the symbol type of the bond symbol, atom IDs of two atoms to be bonded, a value indicating the bond type of the bond symbol, and a value indicating the solid type of the bond symbol. .

また、情報処理装置100は、例えば、構造式111を描画領域上に描画した画像110を示す画像情報内に埋め込まれた原子記号の属性を示す値と結合記号の属性を示す値とを、画像情報から抽出するコンピュータである。以下の説明では、情報処理装置100によって行われる構造式111を描画領域上に描画した画像110を示す画像情報内に埋め込まれた原子記号の属性を示す値と結合記号の属性を示す値とを画像情報から抽出する動作を「第2の動作」と表記する場合がある。   In addition, the information processing apparatus 100, for example, displays the value indicating the attribute of the atomic symbol and the value indicating the attribute of the bond symbol embedded in the image information indicating the image 110 in which the structural formula 111 is drawn on the drawing area. A computer that extracts information. In the following description, the value indicating the attribute of the atomic symbol and the value indicating the attribute of the bond symbol embedded in the image information indicating the image 110 in which the structural formula 111 performed by the information processing apparatus 100 is drawn on the drawing area will be described. The operation extracted from the image information may be referred to as “second operation”.

<第1の動作>
ここで、情報処理装置100によって行われる第1の動作の一例について説明する。ここで、図1の例では、画像110が上部に示され、画像110の中央部分を拡大したものが下部に示されている。
<First operation>
Here, an example of the first operation performed by the information processing apparatus 100 will be described. Here, in the example of FIG. 1, the image 110 is shown at the top, and an enlarged view of the central portion of the image 110 is shown at the bottom.

情報処理装置100は、例えば、画像110内の原子記号「C」の一部分を表す画素を特定する。次に、情報処理装置100は、特定した画素の画素情報を示すビット列のうち、所定の位置にあるビットの値を、原子記号「C」の属性を示す値に変更する。以下の説明では、属性を示す値を「属性値」と表記する場合がある。ここで、画素情報とは、例えば、RGB値を示す24ビットのビット列である。属性とは、例えば、記号種別の情報であって、原子記号または結合記号のいずれかであることを示す種別情報である。属性値とは、例えば、種別情報「原子記号」を示す値「1」である。   For example, the information processing apparatus 100 identifies a pixel representing a part of the atomic symbol “C” in the image 110. Next, the information processing apparatus 100 changes the value of the bit at a predetermined position in the bit string indicating the pixel information of the specified pixel to a value indicating the attribute of the atomic symbol “C”. In the following description, a value indicating an attribute may be referred to as an “attribute value”. Here, the pixel information is, for example, a 24-bit bit string indicating RGB values. The attribute is, for example, symbol type information, and is type information indicating either an atomic symbol or a bond symbol. The attribute value is, for example, a value “1” indicating the type information “atomic symbol”.

情報処理装置100は、具体的には、画像110内の原子記号「C」の一部分を表す画素112を特定する。次に、情報処理装置100は、特定した画素112の画素情報を示すビット列「000000000000000000000000」のうち、所定の位置「1ビット目」にあるビットの値を、原子記号「C」の属性「原子記号」を示す値「1」に変更する。結果として、特定した画素112は、文字色「黒」とも背景色「白」とも異なる色になる。また、情報処理装置100は、他の原子記号や結合記号に対しても同様の処理を行う。   Specifically, the information processing apparatus 100 specifies a pixel 112 that represents a part of the atomic symbol “C” in the image 110. Next, the information processing apparatus 100 converts the value of the bit at the predetermined position “first bit” in the bit string “000000000000000000000000” indicating the pixel information of the identified pixel 112 to the attribute “atomic symbol” of the atomic symbol “C”. Is changed to a value “1” indicating “”. As a result, the specified pixel 112 has a color different from the text color “black” and the background color “white”. Further, the information processing apparatus 100 performs the same processing for other atomic symbols and bond symbols.

これにより、情報処理装置100は、画像情報に原子記号の属性値と結合記号の属性値とを埋め込むことができる。このため、情報処理装置100の利用者は、画像情報と、原子記号の属性と結合記号の属性とを示す構造情報と、を別個に管理しなくてもよく、管理にかかる作業量を削減することができる。情報処理装置100によって行われる第1の動作の詳細については図6〜図18を用いて後述する。   Thereby, the information processing apparatus 100 can embed the attribute value of the atomic symbol and the attribute value of the bond symbol in the image information. For this reason, the user of the information processing apparatus 100 does not have to separately manage the image information and the structural information indicating the attribute of the atomic symbol and the attribute of the bond symbol, thereby reducing the amount of work required for the management. be able to. Details of the first operation performed by the information processing apparatus 100 will be described later with reference to FIGS.

ここでは、情報処理装置100は、一つの画素の画素情報を示すビット列のうちの所定の位置にあるビットの値を属性値に変更したが、これに限らない。例えば、情報処理装置100は、属性値が複数のビットで表現される場合は、複数ビットの各々のビットに対応する画素の画素情報を示すビット列のうちの所定の位置にあるビットの値を、各々のビットの値に変更してもよい。   Here, the information processing apparatus 100 changes the value of the bit at a predetermined position in the bit string indicating the pixel information of one pixel to the attribute value, but is not limited thereto. For example, when the attribute value is expressed by a plurality of bits, the information processing apparatus 100 sets the value of a bit at a predetermined position in a bit string indicating pixel information of a pixel corresponding to each bit of the plurality of bits, You may change to the value of each bit.

<第2の動作>
次に、情報処理装置100によって行われる第2の動作の一例について説明する。情報処理装置100は、例えば、画像情報から、文字色「黒」とも背景色「白」とも異なる色を示す画素を特定し、特定した画素の画素情報を抽出する。次に、情報処理装置100は、抽出した画素の画素情報を示すビット列のうち、所定の位置にあるビットの値から属性値を抽出して、特定した画素を含む画素群が表す記号の属性を特定する。
<Second operation>
Next, an example of the second operation performed by the information processing apparatus 100 will be described. For example, the information processing apparatus 100 identifies pixels that show different colors from the text color “black” and the background color “white” from the image information, and extracts pixel information of the identified pixels. Next, the information processing apparatus 100 extracts an attribute value from the value of the bit at a predetermined position in the bit string indicating the pixel information of the extracted pixel, and determines the attribute of the symbol represented by the pixel group including the specified pixel. Identify.

情報処理装置100は、具体的には、画像110内で文字色とも背景色とも異なる色を示す画素112を特定する。次に、情報処理装置100は、特定した画素112の画素情報を示すビット列「000000000000000000000000」のうち、所定の位置「1ビット目」にある値「1」を抽出する。そして、情報処理装置100は、特定した画素112を含む画素群が表す記号の属性として、抽出した値「1」が示す属性「原子記号」を特定する。また、情報処理装置100は、文字色とも背景色とも異なる色を示す他の画素に対しても同様の処理を行う。   Specifically, the information processing apparatus 100 specifies a pixel 112 that shows a color different from the character color and the background color in the image 110. Next, the information processing apparatus 100 extracts the value “1” at the predetermined position “first bit” from the bit string “000000000000000000000000” indicating the pixel information of the identified pixel 112. Then, the information processing apparatus 100 specifies the attribute “atomic symbol” indicated by the extracted value “1” as the attribute of the symbol represented by the pixel group including the specified pixel 112. In addition, the information processing apparatus 100 performs the same process for other pixels that exhibit colors different from the character color and the background color.

これにより、情報処理装置100は、画像情報から原子記号の属性と結合記号の属性とを特定することができ、特定した原子記号の属性と結合記号の属性とを出力することができる。このため、情報処理装置100の利用者は、原子記号の属性と結合記号の属性とを示す構造情報を把握することができる。情報処理装置100によって行われる第2の動作の詳細については図24および図25を用いて後述する。   As a result, the information processing apparatus 100 can specify the attribute of the atomic symbol and the attribute of the bond symbol from the image information, and can output the attribute of the specified atomic symbol and the attribute of the bond symbol. For this reason, the user of the information processing apparatus 100 can grasp the structure information indicating the attribute of the atomic symbol and the attribute of the bond symbol. Details of the second operation performed by the information processing apparatus 100 will be described later with reference to FIGS. 24 and 25.

ここでは、情報処理装置100は、第1の動作と第2の動作とを行うコンピュータであったが、これに限らない。例えば、情報処理装置100は、第1の動作のみを行うコンピュータであってもよいし、第2の動作のみを行うコンピュータであってもよい。   Here, the information processing apparatus 100 is a computer that performs the first operation and the second operation, but is not limited thereto. For example, the information processing apparatus 100 may be a computer that performs only the first operation, or may be a computer that performs only the second operation.

(情報処理装置100のハードウェア構成例)
図2は、実施の形態にかかる情報処理装置100のハードウェア構成例を示すブロック図である。図2において、情報処理装置100は、CPU(Central Processing Unit)201と、ROM(Read Only Memory)202と、RAM(Random Access Memory)203と、磁気ディスクドライブ(Hard Disk Drive)204と、磁気ディスク205と、光ディスクドライブ206と、光ディスク207と、ディスプレイ208と、インターフェース(I/F:Interface)209と、キーボード210と、マウス211と、スキャナ212と、プリンタ213と、を備えている。また、各構成部はバス200によってそれぞれ接続されている。
(Hardware configuration example of information processing apparatus 100)
FIG. 2 is a block diagram of a hardware configuration example of the information processing apparatus 100 according to the embodiment. In FIG. 2, the information processing apparatus 100 includes a CPU (Central Processing Unit) 201, a ROM (Read Only Memory) 202, a RAM (Random Access Memory) 203, a magnetic disk drive (Hard Disk Drive) 204, and a magnetic disk. 205, an optical disk drive 206, an optical disk 207, a display 208, an interface (I / F: Interface) 209, a keyboard 210, a mouse 211, a scanner 212, and a printer 213. Each component is connected by a bus 200.

ここで、CPU201は、情報処理装置100の全体の制御を司る。ROM202は、ブートプログラムなどのプログラムを記憶する。また、ROM202は、例えば、図3に後述する原子記号−属性対応情報テーブル300と、図4に後述する結合記号−属性対応情報テーブル400と、を記憶する。   Here, the CPU 201 governs overall control of the information processing apparatus 100. The ROM 202 stores a program such as a boot program. The ROM 202 stores, for example, an atomic symbol / attribute correspondence information table 300 described later in FIG. 3 and a combined symbol / attribute correspondence information table 400 described later in FIG.

RAM203は、CPU201のワークエリアとして使用される。磁気ディスクドライブ204は、CPU201の制御にしたがって磁気ディスク205に対するデータのリード/ライトを制御する。磁気ディスク205は、磁気ディスクドライブ204の制御で書き込まれたデータを記憶する。   The RAM 203 is used as a work area for the CPU 201. The magnetic disk drive 204 controls reading / writing of data with respect to the magnetic disk 205 according to the control of the CPU 201. The magnetic disk 205 stores data written under the control of the magnetic disk drive 204.

光ディスクドライブ206は、CPU201の制御にしたがって光ディスク207に対するデータのリード/ライトを制御する。光ディスク207は、光ディスクドライブ206の制御で書き込まれたデータを記憶したり、光ディスク207に記憶されたデータをコンピュータに読み取らせたりする。   The optical disk drive 206 controls reading / writing of data with respect to the optical disk 207 according to the control of the CPU 201. The optical disk 207 stores data written under the control of the optical disk drive 206, or causes the computer to read data stored on the optical disk 207.

ディスプレイ208は、カーソル、アイコンあるいはツールボックスをはじめ、文書、画像、機能情報などのデータを表示する。このディスプレイ208は、例えば、液晶ディスプレイ、プラズマディスプレイなどを採用することができる。   The display 208 displays data such as a document, an image, and function information as well as a cursor, an icon, or a tool box. As this display 208, for example, a liquid crystal display, a plasma display, or the like can be adopted.

I/F209は、通信回線を通じてLAN(Local Area Network)、WAN(Wide Area Network)、インターネットなどのネットワーク214に接続され、このネットワーク214を介して他の装置に接続される。そして、I/F209は、ネットワーク214と内部のインターフェースを司り、外部装置からのデータの入出力を制御する。I/F209には、例えばモデムやLANアダプタなどを採用することができる。   The I / F 209 is connected to a network 214 such as a LAN (Local Area Network), a WAN (Wide Area Network), and the Internet through a communication line, and is connected to other devices via the network 214. The I / F 209 controls an internal interface with the network 214 and controls data input / output from an external device. For example, a modem or a LAN adapter may be employed as the I / F 209.

キーボード210は、文字、数字、各種指示などの入力のためのキーを備え、データの入力を行う。また、タッチパネル式の入力パッドやテンキーなどであってもよい。マウス211は、カーソルの移動や範囲選択、あるいはウィンドウの移動やサイズの変更などを行う。ポインティングデバイスとして同様に機能を備えるものであれば、トラックボールやジョイスティックなどであってもよい。   The keyboard 210 includes keys for inputting characters, numbers, various instructions, and the like, and inputs data. Moreover, a touch panel type input pad or a numeric keypad may be used. The mouse 211 performs cursor movement, range selection, window movement, size change, and the like. A trackball or a joystick may be used as long as they have the same function as a pointing device.

スキャナ212は、画像を光学的に読み取り、情報処理装置100内に画像データを取り込む。なお、スキャナ212は、OCR(Optical Character Reader)機能を持たせてもよい。また、プリンタ213は、画像データや文書データを印刷する。プリンタ213には、例えば、レーザプリンタやインクジェットプリンタを採用することができる。なお、光ディスクドライブ206、光ディスク207、ディスプレイ208、キーボード210、マウス211、スキャナ212、およびプリンタ213の少なくともいずれか1つは、なくてもよい。   The scanner 212 optically reads an image and takes in image data into the information processing apparatus 100. The scanner 212 may have an OCR (Optical Character Reader) function. The printer 213 prints image data and document data. As the printer 213, for example, a laser printer or an ink jet printer can be adopted. Note that at least one of the optical disk drive 206, the optical disk 207, the display 208, the keyboard 210, the mouse 211, the scanner 212, and the printer 213 may be omitted.

(原子記号−属性対応情報テーブル300)
次に、図3を用いて、原子記号−属性対応情報テーブル300の記憶内容の一例について説明する。原子記号−属性対応情報テーブル300は、例えば、図2に示したROM202、RAM203、磁気ディスク205、光ディスク207などの記憶領域により実現される。
(Atomic symbol-attribute correspondence information table 300)
Next, an example of the contents stored in the atomic symbol / attribute correspondence information table 300 will be described with reference to FIG. The atomic symbol-attribute correspondence information table 300 is realized by storage areas such as the ROM 202, the RAM 203, the magnetic disk 205, and the optical disk 207 shown in FIG.

図3は、原子記号−属性対応情報テーブル300の記憶内容の一例を示す説明図である。図3に示すように、原子記号−属性対応情報テーブル300は、種別項目と、属性項目と、属性値項目と、対応ビット項目と、を有し、原子記号の属性の種別ごとに各項目の値がレコードとして記憶される。   FIG. 3 is an explanatory diagram showing an example of the stored contents of the atomic symbol / attribute correspondence information table 300. As shown in FIG. 3, the atomic symbol-attribute correspondence information table 300 includes a type item, an attribute item, an attribute value item, and a corresponding bit item, and each item for each attribute type of the atomic symbol. The value is stored as a record.

種別項目には、原子記号の属性の種別が記憶される。原子記号の属性の種別とは、例えば、記号種別、原子ID、原子番号、X座標値、Y座標値、および電荷である。属性項目には、原子記号の属性が記憶される。属性とは、例えば、属性の種別が「記号種別」である場合は「原子記号」および「結合記号」である。また、属性とは、例えば、属性の種別が「原子番号」である場合は、原子番号を示す値「1〜118」である。また、属性とは、例えば、属性の種別が「電荷」である場合は、電荷を示す値「0〜8」である。   In the type item, the attribute type of the atomic symbol is stored. The attribute type of the atomic symbol is, for example, a symbol type, an atom ID, an atomic number, an X coordinate value, a Y coordinate value, and an electric charge. In the attribute item, an attribute of an atomic symbol is stored. The attributes are, for example, “atom symbol” and “bond symbol” when the attribute type is “symbol type”. The attribute is, for example, a value “1 to 118” indicating an atomic number when the attribute type is “atomic number”. The attribute is, for example, a value “0 to 8” indicating charge when the attribute type is “charge”.

属性値項目には、属性を示す値が記憶される。属性値とは、例えば、種別情報「原子記号」を示すビット列「0000001」である。また、属性値とは、例えば、原子番号「1」を示すビット列「00000000000001」である。対応ビット項目には、画素情報を示すビット列のうちの属性値に変更するビットの位置が記憶される。ビットの位置は、例えば、属性の種別「記号種別」の属性値に変更する場合は、画素情報を示すビット列のうちの「1ビット目」である。また、ビットの位置は、例えば、属性の種別「原子ID」の属性値に変更する場合は、画素情報を示すビット列のうちの「2,3ビット目」である。   A value indicating an attribute is stored in the attribute value item. The attribute value is, for example, a bit string “0000001” indicating the type information “atomic symbol”. The attribute value is, for example, a bit string “00000000000001” indicating the atomic number “1”. The corresponding bit item stores the position of the bit to be changed to the attribute value in the bit string indicating the pixel information. The bit position is, for example, the “first bit” in the bit string indicating the pixel information when the attribute value is changed to the attribute value of the attribute type “symbol type”. The bit position is, for example, “the second and third bits” in the bit string indicating the pixel information when the attribute value is changed to the attribute value of the attribute type “atom ID”.

(結合記号−属性対応情報テーブル400)
次に、図4を用いて、結合記号−属性対応情報テーブル400の記憶内容の一例について説明する。結合記号−属性対応情報テーブル400は、例えば、図2に示したROM202、RAM203、磁気ディスク205、光ディスク207などの記憶領域により実現される。
(Combined symbol-attribute correspondence information table 400)
Next, an example of the contents stored in the combined symbol / attribute correspondence information table 400 will be described with reference to FIG. The combined symbol / attribute correspondence information table 400 is realized by storage areas such as the ROM 202, the RAM 203, the magnetic disk 205, and the optical disk 207 shown in FIG.

図4は、結合記号−属性対応情報テーブル400の記憶内容の一例を示す説明図である。図4に示すように、結合記号−属性対応情報テーブル400は、種別項目と、属性項目と、属性値項目と、対応ビット項目と、を有し、結合記号の属性の種別ごとに各項目の値がレコードとして記憶される。   FIG. 4 is an explanatory diagram showing an example of the stored contents of the combined symbol / attribute correspondence information table 400. As shown in FIG. 4, the combined symbol / attribute correspondence information table 400 includes a type item, an attribute item, an attribute value item, and a corresponding bit item, and each item is classified for each attribute type of the combined symbol. The value is stored as a record.

種別項目には、結合記号の属性の種別が記憶される。結合記号の属性の種別とは、例えば、記号種別、1番目の原子ID、2番目の原子ID、結合種別、および立体種別である。属性項目には、結合記号の属性が記憶される。属性とは、例えば、属性の種別が「記号種別」である場合は、「原子記号」および「結合記号」である。また、属性とは、例えば、属性の種別が「結合種別」である場合は、「単結合」、「二重結合」、「三重結合」、および「芳香環結合」である。また、属性とは、例えば、属性の種別が「立体種別」である場合は、「なし」、「上」、「上か下」、および「下」である。   In the type item, the type of attribute of the combined symbol is stored. The attribute type of the bond symbol is, for example, a symbol type, a first atom ID, a second atom ID, a bond type, and a solid type. In the attribute item, an attribute of the combination symbol is stored. The attributes are, for example, “atom symbol” and “bond symbol” when the attribute type is “symbol type”. The attribute is, for example, “single bond”, “double bond”, “triple bond”, and “aromatic ring bond” when the attribute type is “bond type”. The attribute is, for example, “none”, “up”, “up or down”, and “down” when the type of the attribute is “solid type”.

属性値項目には、属性を示す値が記憶される。属性値とは、例えば、種別情報「結合記号」を示すビット列「0000010」である。また、属性値とは、例えば、結合種別「単結合」を示すビット列「00000000000001」である。対応ビット項目には、画素情報を示すビット列のうちの属性値に変更するビットの位置が記憶される。ビットの位置は、例えば、属性の種別「記号種別」の属性値に変更する場合は、画素情報を示すビット列のうちの「1ビット目」である。また、ビットの位置は、例えば、属性の種別「結合種別」の属性値に変更する場合は、画素情報を示すビット列のうちの「19ビット目」である。   A value indicating an attribute is stored in the attribute value item. The attribute value is, for example, a bit string “0000010” indicating the type information “joining symbol”. Further, the attribute value is, for example, a bit string “00000000000001” indicating a coupling type “single coupling”. The corresponding bit item stores the position of the bit to be changed to the attribute value in the bit string indicating the pixel information. The bit position is, for example, the “first bit” in the bit string indicating the pixel information when the attribute value is changed to the attribute value of the attribute type “symbol type”. The bit position is, for example, the “19th bit” in the bit string indicating the pixel information when the attribute value is changed to the attribute value of the attribute type “join type”.

(情報処理装置100の機能的構成例)
次に、図5を用いて、情報処理装置100の機能的構成例について説明する。
(Functional configuration example of information processing apparatus 100)
Next, a functional configuration example of the information processing apparatus 100 will be described with reference to FIG.

図5は、情報処理装置100の機能的構成を示すブロック図である。情報処理装置100は、取得部501と、第1の特定部502と、第2の特定部503と、第1の変更部504と、第2の変更部505と、抽出部506と、第3の特定部507と、を含む。   FIG. 5 is a block diagram illustrating a functional configuration of the information processing apparatus 100. The information processing apparatus 100 includes an acquisition unit 501, a first specification unit 502, a second specification unit 503, a first change unit 504, a second change unit 505, an extraction unit 506, and a third The specifying unit 507 is included.

<第1の動作>
まず、第1の動作を実現する機能部について説明する。第1の動作は、取得部501と、第1の特定部502と、第2の特定部503と、第1の変更部504と、第2の変更部505と、によって実現される。
<First operation>
First, a functional unit that realizes the first operation will be described. The first operation is realized by the acquisition unit 501, the first specification unit 502, the second specification unit 503, the first change unit 504, and the second change unit 505.

取得部501は、描画領域に描画される化合物の構造式111に含まれる原子を示す原子記号の属性と、構造式111に含まれる原子間の結合を示す結合記号の属性と、を含む構造情報を取得する。取得部501は、例えば、描画領域に描画される化合物「CH3−CHO(アセトアルデヒド)」の構造式111に含まれる原子記号の属性と結合記号の属性とを示す構造情報を取得する。   The acquisition unit 501 includes structural information including an attribute of an atomic symbol indicating an atom included in the structural formula 111 of the compound drawn in the drawing area and an attribute of a bond symbol indicating a bond between atoms included in the structural formula 111. To get. For example, the acquisition unit 501 acquires structural information indicating the attribute of the atomic symbol and the attribute of the bond symbol included in the structural formula 111 of the compound “CH3-CHO (acetaldehyde)” drawn in the drawing region.

これにより、第1の特定部502は、取得部501によって取得された構造情報を参照して、構造式111に含まれる原子記号の属性と結合記号の属性とを特定することができる。取得されたデータは、例えば、RAM203、磁気ディスク205、光ディスク207などの記憶領域に記憶される。取得部501は、例えば、図2に示したROM202、RAM203、磁気ディスク205、光ディスク207などの記憶装置に記憶されたプログラムをCPU201に実行させることにより、または、I/F209により、その機能を実現する。   Thereby, the first specifying unit 502 can specify the attribute of the atomic symbol and the attribute of the bond symbol included in the structural formula 111 with reference to the structure information acquired by the acquiring unit 501. The acquired data is stored in a storage area such as the RAM 203, the magnetic disk 205, and the optical disk 207, for example. The acquisition unit 501 realizes its function by causing the CPU 201 to execute a program stored in a storage device such as the ROM 202, the RAM 203, the magnetic disk 205, and the optical disk 207 illustrated in FIG. 2 or by the I / F 209, for example. To do.

第1の特定部502は、取得した構造情報を参照して、構造式111の中から選択された原子記号または結合記号のいずれかの記号の属性を特定する。第1の特定部502は、例えば、構造式111の中から原子記号「C」を選択し、構造情報を参照して、原子記号「C」の属性として、種別情報「原子記号」やX座標値「30」やY座標値「57」や電荷の値「0」を特定する。また、第1の特定部502は、同様に、構造式111の中から、未選択の原子記号または結合記号のいずれかの記号を、順次選択して、選択した記号の属性を特定する。   The first specifying unit 502 specifies the attribute of either the atomic symbol or the bond symbol selected from the structural formula 111 with reference to the acquired structural information. For example, the first specifying unit 502 selects the atomic symbol “C” from the structural formula 111, refers to the structure information, and sets the type information “atomic symbol” or the X coordinate as the attribute of the atomic symbol “C”. A value “30”, a Y coordinate value “57”, and a charge value “0” are specified. Similarly, the first specifying unit 502 sequentially selects one of unselected atomic symbols or bond symbols from the structural formula 111 to specify the attribute of the selected symbol.

これにより、第1の変更部504は、第1の特定部502によって特定された属性から、属性値を生成することができる。特定されたデータは、例えば、RAM203、磁気ディスク205、光ディスク207などの記憶領域に記憶される。第1の特定部502は、例えば、図2に示したROM202、RAM203、磁気ディスク205、光ディスク207などの記憶装置に記憶されたプログラムをCPU201に実行させることにより、その機能を実現する。   Thereby, the first changing unit 504 can generate an attribute value from the attribute specified by the first specifying unit 502. The identified data is stored in a storage area such as the RAM 203, the magnetic disk 205, and the optical disk 207, for example. The first specifying unit 502 realizes its function by causing the CPU 201 to execute a program stored in a storage device such as the ROM 202, the RAM 203, the magnetic disk 205, and the optical disk 207 shown in FIG.

第2の特定部503は、構造情報を参照して、描画領域上に描画される構造式111の画像情報に含まれる記号を表す画素群のうちのいずれかの画素の画素情報を特定する。第2の特定部503は、例えば、化合物構造情報ファイルに含まれる原子記号「C」のX座標値やY座標値を参照して、原子記号「C」を表す画素群を特定し、特定した画素群のうちのいずれかの画素の画素情報を特定する。   The second specifying unit 503 specifies the pixel information of any pixel in the pixel group representing the symbol included in the image information of the structural formula 111 drawn on the drawing area with reference to the structure information. For example, the second specifying unit 503 specifies the pixel group representing the atomic symbol “C” by referring to the X coordinate value or the Y coordinate value of the atomic symbol “C” included in the compound structure information file. The pixel information of any pixel in the pixel group is specified.

また、第2の特定部503は、属性値が複数のビットで表現される場合に、記号を表す画素群のうちの複数のビットの各々のビットに対応する画素の画素情報を特定してもよい。第2の特定部503は、例えば、構造情報に含まれる原子記号「C」のX座標値やY座標値を参照して、原子記号「C」を表す画素群を特定する。次に、第2の特定部503は、原子記号−属性対応情報テーブル300を参照して、種別情報「原子記号」を示す属性値「0000001」を特定する。   Further, the second specifying unit 503 may specify pixel information of a pixel corresponding to each bit of the plurality of bits in the pixel group representing the symbol when the attribute value is expressed by a plurality of bits. Good. For example, the second specifying unit 503 specifies a pixel group representing the atomic symbol “C” with reference to the X coordinate value and the Y coordinate value of the atomic symbol “C” included in the structure information. Next, the second specifying unit 503 specifies the attribute value “0000001” indicating the type information “atomic symbol” with reference to the atomic symbol-attribute correspondence information table 300.

そして、第2の特定部503は、種別情報「原子記号」が複数のビットで表現されるため、特定した原子記号「C」を表す画素群のうち、各々のビットに対応する7つの画素の画素情報を特定する。以下の説明では、種別情報「原子記号」を示す属性値「0000001」の各々のビットを「第1〜第7のビット」と表記する場合がある。また、以下の説明では、第1〜第7のビットの各々のビットに対応する画素の画素情報を「第1〜第7の画素情報」と表記する場合がある。   Then, since the type information “atomic symbol” is expressed by a plurality of bits, the second specifying unit 503 includes seven pixels corresponding to each bit in the pixel group indicating the specified atomic symbol “C”. Specify pixel information. In the following description, each bit of the attribute value “0000001” indicating the type information “atomic symbol” may be expressed as “first to seventh bits”. In the following description, pixel information of pixels corresponding to each of the first to seventh bits may be referred to as “first to seventh pixel information”.

これにより、第1の変更部504は、第2の特定部503によって特定された画素情報を、変更対象の画素情報として取得することができる。特定されたデータは、例えば、RAM203、磁気ディスク205、光ディスク207などの記憶領域に記憶される。第2の特定部503は、例えば、図2に示したROM202、RAM203、磁気ディスク205、光ディスク207などの記憶装置に記憶されたプログラムをCPU201に実行させることにより、その機能を実現する。   Accordingly, the first changing unit 504 can acquire the pixel information specified by the second specifying unit 503 as the pixel information to be changed. The identified data is stored in a storage area such as the RAM 203, the magnetic disk 205, and the optical disk 207, for example. The second specifying unit 503 realizes its function by causing the CPU 201 to execute a program stored in a storage device such as the ROM 202, the RAM 203, the magnetic disk 205, and the optical disk 207 shown in FIG.

第1の変更部504は、特定した画素の画素情報を示すビット列のうち、特定した属性の種別に応じた位置にあるビットの値を、特定した属性値に変更する。第1の変更部504は、例えば、原子記号−属性対応情報テーブル300を参照して、属性の種別「記号種別」に応じた位置「1ビット目」を特定する。次に、第1の変更部504は、種別情報「原子記号」を示す属性値「1」を特定する。そして、第1の変更部504は、第1の変更部504は、特定した画素の画素情報を示すビット列「000000000000000000000000」のうち、特定した位置「1ビット目」にあるビットの値を、種別情報「原子記号」を示す属性値「1」に変更する。   The first changing unit 504 changes the value of the bit at the position corresponding to the specified attribute type in the bit string indicating the pixel information of the specified pixel to the specified attribute value. For example, the first changing unit 504 refers to the atomic symbol-attribute correspondence information table 300 and identifies the position “first bit” corresponding to the attribute type “symbol type”. Next, the first changing unit 504 specifies the attribute value “1” indicating the type information “atomic symbol”. Then, the first changing unit 504 is configured to change the value of the bit at the specified position “first bit” in the bit string “000000000000000000000000” indicating the pixel information of the specified pixel to the type information. Change to attribute value “1” indicating “atomic symbol”.

また、第1の変更部504は、第2の特定部503によって各々のビットに対応する画素の画素情報が特定された場合は、各々のビットに対応する画素情報を示すビット列のうち、属性の種別に応じた位置にあるビットの値を、各々のビットの値に変更してもよい。第1の変更部504は、例えば、第1の画素情報を示すビット列「000000000000000000000000」のうち、属性の種別「記号種別」に応じた位置「1ビット目」にあるビットの値を、第1のビットの値「0」に変更する。   In addition, when the second specifying unit 503 specifies the pixel information of the pixel corresponding to each bit, the first changing unit 504 includes the attribute of the bit string indicating the pixel information corresponding to each bit. The value of the bit at the position corresponding to the type may be changed to the value of each bit. For example, the first changing unit 504 converts the value of the bit at the position “first bit” according to the attribute type “symbol type” in the bit string “000000000000000000000000” indicating the first pixel information to the first Change the bit value to “0”.

また、第1の変更部504は、同様に、第2〜第6の画素情報の各々の画素情報を示すビット列のうち、属性の種別「記号種別」に応じた位置「1ビット目」にあるビットの値を、第2〜第6のビットの各々のビットの値「0」に変更する。また、第1の変更部504は、例えば、第7の画素情報を示すビット列「000000000000000000000000」のうち、属性の種別「記号種別」に応じた位置「1ビット目」にあるビットの値を、第7のビットの値「1」に変更する。   Similarly, the first changing unit 504 is in the position “first bit” corresponding to the attribute type “symbol type” in the bit string indicating the pixel information of each of the second to sixth pixel information. The bit value is changed to the value “0” of each of the second to sixth bits. In addition, the first changing unit 504 sets, for example, the value of the bit at the position “first bit” according to the attribute type “symbol type” in the bit string “000000000000000000000000” indicating the seventh pixel information. The value of bit 7 is changed to “1”.

これにより、第1の変更部504は、画像情報の中に、原子記号の属性と結合記号の属性とを埋め込むことができる。変更されたデータは、例えば、RAM203、磁気ディスク205、光ディスク207などの記憶領域に記憶される。第1の変更部504は、例えば、図2に示したROM202、RAM203、磁気ディスク205、光ディスク207などの記憶装置に記憶されたプログラムをCPU201に実行させることにより、その機能を実現する。   Thereby, the first changing unit 504 can embed the attribute of the atomic symbol and the attribute of the bond symbol in the image information. The changed data is stored in a storage area such as the RAM 203, the magnetic disk 205, and the optical disk 207, for example. The first changing unit 504 realizes its function by causing the CPU 201 to execute a program stored in a storage device such as the ROM 202, the RAM 203, the magnetic disk 205, and the optical disk 207 shown in FIG.

第2の変更部505は、特定した画素情報を示すビット列のうち、特定した属性に応じた位置とは異なる所定の位置にあるビットの値を、所定の値に変更する。ここで、所定の値とは、例えば、画素情報を示すビット列が第1の変更部504によって変更されたことを示す格納先の識別子であって、「1,0,1」である。所定の位置とは、例えば、画素情報を示すビット列のうちの格納先の識別子に変更する位置であって、8,16,24ビット目である。第2の変更部505は、例えば、特定した画素の画素情報を示すビット列「000000000000000000000000」のうち、所定の位置「8,16,24ビット目」にあるビットの値を、格納先の識別子を示す所定の値「1,0,1」に変更する。   The second changing unit 505 changes the value of a bit at a predetermined position different from the position corresponding to the specified attribute in the bit string indicating the specified pixel information to a predetermined value. Here, the predetermined value is, for example, a storage destination identifier indicating that the bit string indicating the pixel information has been changed by the first changing unit 504, and is “1, 0, 1”. The predetermined position is, for example, a position to be changed to a storage destination identifier in a bit string indicating pixel information, and is the 8th, 16th, and 24th bits. The second changing unit 505 indicates, for example, the value of the bit at the predetermined position “8th, 16th, 24th bits” in the bit string “000000000000000000000000” indicating the pixel information of the specified pixel, and the storage destination identifier. The value is changed to a predetermined value “1, 0, 1”.

これにより、抽出部506は、画像情報の中から、所定の位置「8,16,24ビット目」にあるビットの値が所定の値「1,0,1」に変更された画素情報を探索して、原子記号の属性値または結合記号の属性値が格納された画素情報を抽出することができる。変更されたデータは、例えば、RAM203、磁気ディスク205、光ディスク207などの記憶領域に記憶される。第2の変更部505は、例えば、図2に示したROM202、RAM203、磁気ディスク205、光ディスク207などの記憶装置に記憶されたプログラムをCPU201に実行させることにより、その機能を実現する。   Thereby, the extraction unit 506 searches the image information for pixel information in which the value of the bit at the predetermined position “8th, 16th, and 24th bits” is changed to the predetermined value “1, 0, 1”. Thus, the pixel information in which the attribute value of the atomic symbol or the attribute value of the bond symbol is stored can be extracted. The changed data is stored in a storage area such as the RAM 203, the magnetic disk 205, and the optical disk 207, for example. The second changing unit 505 realizes its function by causing the CPU 201 to execute a program stored in a storage device such as the ROM 202, the RAM 203, the magnetic disk 205, and the optical disk 207 shown in FIG.

<第2の動作>
次に、第2の動作を実現する機能部について説明する。第2の動作は、抽出部506と、第3の特定部507と、によって実現される。
<Second operation>
Next, a functional unit that realizes the second operation will be described. The second operation is realized by the extracting unit 506 and the third specifying unit 507.

抽出部506は、構造式111の画像情報の中から、所定の位置にあるビットの値が所定の値である画素情報を抽出する。ここで、構造式111の画像情報は、例えば、記号の属性に応じた位置にあるビットの値が記号の属性を示すビットの値に変更され、かつ、所定の位置にあるビットの値が所定の値に変更された画素情報を含む。抽出部506は、例えば、第1および第2の変更部505によって変更された変更後の画像情報の中から、所定の位置「8,16,24ビット目」にあるビットの値が、格納先の識別子を示す所定の値「1,0,1」に変更された画素情報を抽出する。   The extraction unit 506 extracts pixel information in which the value of a bit at a predetermined position is a predetermined value from the image information of the structural formula 111. Here, in the image information of the structural formula 111, for example, the value of the bit at the position corresponding to the attribute of the symbol is changed to the value of the bit indicating the attribute of the symbol, and the value of the bit at the predetermined position is predetermined. The pixel information changed to the value of is included. For example, the extraction unit 506 stores the value of the bit at the predetermined position “8th, 16th, and 24th bits” from the changed image information changed by the first and second changing units 505. Pixel information that has been changed to a predetermined value “1, 0, 1” indicating the identifier is extracted.

これにより、第3の特定部507は、抽出部506によって抽出された画素情報から、原子記号の属性または結合記号の属性を特定することができる。抽出されたデータは、例えば、RAM203、磁気ディスク205、光ディスク207などの記憶領域に記憶される。抽出部506は、例えば、図2に示したROM202、RAM203、磁気ディスク205、光ディスク207などの記憶装置に記憶されたプログラムをCPU201に実行させることにより、その機能を実現する。   Thereby, the third specifying unit 507 can specify the attribute of the atomic symbol or the attribute of the bond symbol from the pixel information extracted by the extracting unit 506. The extracted data is stored in a storage area such as the RAM 203, the magnetic disk 205, and the optical disk 207, for example. The extraction unit 506 realizes its function by causing the CPU 201 to execute a program stored in a storage device such as the ROM 202, the RAM 203, the magnetic disk 205, and the optical disk 207 shown in FIG.

ここでは、抽出部506は、所定の位置にあるビットの値が所定の値である画素情報を抽出したが、これに限らない。例えば、抽出部506は、画像情報の各々の画素情報を、ラスタスキャンする順番で特定し、所定の条件を満たす位置にある画素の画素情報を抽出してもよい。   Here, the extraction unit 506 extracts pixel information in which the value of a bit at a predetermined position is a predetermined value, but is not limited thereto. For example, the extraction unit 506 may identify each piece of pixel information of the image information in the order of raster scanning, and may extract pixel information of a pixel at a position that satisfies a predetermined condition.

第3の特定部507は、抽出した画素情報を示すビット列のうち、記号の属性の種別に応じた位置にあるビットの値に基づいて、属性を特定する。第3の特定部507は、例えば、属性の種別が「記号種別」である場合、原子記号−属性対応情報テーブル300を参照して、属性の種別に対応するビットの位置「1ビット目」を特定する。次に、第3の特定部507は、抽出した画素情報を示すビット列「100000010000000000000001」のうち、特定した位置「1ビット目」にあるビットの値「1」から、種別情報「原子記号」を特定することができる。   The third specifying unit 507 specifies the attribute based on the value of the bit at the position corresponding to the type of the symbol attribute in the extracted bit string indicating the pixel information. For example, when the attribute type is “symbol type”, the third specifying unit 507 refers to the atomic symbol-attribute correspondence information table 300 and sets the bit position “first bit” corresponding to the attribute type. Identify. Next, the third specifying unit 507 specifies the type information “atomic symbol” from the bit value “1” at the specified position “first bit” in the bit string “100000000010000000000001” indicating the extracted pixel information. can do.

これにより、第3の特定部507は、記号の種別を特定することができる。特定されたデータは、例えば、RAM203、磁気ディスク205、光ディスク207などの記憶領域に記憶される。第3の特定部507は、例えば、図2に示したROM202、RAM203、磁気ディスク205、光ディスク207などの記憶装置に記憶されたプログラムをCPU201に実行させることにより、その機能を実現する。   Thereby, the 3rd specific | specification part 507 can pinpoint the classification of a symbol. The identified data is stored in a storage area such as the RAM 203, the magnetic disk 205, and the optical disk 207, for example. For example, the third specifying unit 507 realizes its function by causing the CPU 201 to execute a program stored in a storage device such as the ROM 202, the RAM 203, the magnetic disk 205, and the optical disk 207 illustrated in FIG.

(第1の動作の具体例)
次に、図6〜図18を用いて、第1の動作の具体例について説明する。
(Specific example of the first operation)
Next, a specific example of the first operation will be described with reference to FIGS.

図6〜図18は、第1の動作の具体例を示す説明図である。図6〜図18の例では、情報処理装置100は、化合物「CH3−CHO(アセトアルデヒド)」の構造式111を描画した画像情報に、構造式111に含まれる原子記号の属性値および結合記号の属性値を埋め込む。   6 to 18 are explanatory diagrams showing specific examples of the first operation. In the example of FIGS. 6 to 18, the information processing apparatus 100 adds the attribute value and bond symbol of the atomic symbol included in the structural formula 111 to the image information in which the structural formula 111 of the compound “CH 3 -CHO (acetaldehyde)” is drawn. Embed attribute values.

図6において、情報処理装置100は、化合物構造情報ファイル600を取得する。化合物構造情報ファイル600は、化合物「CH3−CHO」の構造式111に含まれる原子記号の属性と結合記号の属性とを含む。図6の例では、化合物構造情報ファイル600の原子ブロックの部分に、原子記号の属性が含まれる。化合物構造情報ファイル600の結合ブロックの部分には、結合記号の属性が含まれる。   In FIG. 6, the information processing apparatus 100 acquires a compound structure information file 600. The compound structure information file 600 includes an atomic symbol attribute and a bond symbol attribute included in the structural formula 111 of the compound “CH 3 —CHO”. In the example of FIG. 6, the atomic symbol attribute is included in the atomic block portion of the compound structure information file 600. The binding block portion of the compound structure information file 600 includes a binding symbol attribute.

化合物構造情報ファイル600に含まれる原子記号の属性とは、例えば、原子記号のX座標値、原子記号のY座標値、原子記号、原子記号の電荷などである。化合物構造情報ファイル600の原子ブロックの部分において、1列目の数字が原子記号のX座標値を示し、2列目の数字が原子記号のY座標値を示し、3列目の文字列が原子記号を示し、4列目の数字が原子記号の電荷を示す。図6の例では、化合物構造情報ファイル600の1行目に、原子記号の属性として、X座標値「30」、Y座標値「57」、原子記号「C」、および電荷「0」が記憶されている。   The atomic symbol attributes included in the compound structure information file 600 are, for example, the X coordinate value of the atomic symbol, the Y coordinate value of the atomic symbol, the atomic symbol, the charge of the atomic symbol, and the like. In the atomic block portion of the compound structure information file 600, the number in the first column indicates the X coordinate value of the atomic symbol, the number in the second column indicates the Y coordinate value of the atomic symbol, and the character string in the third column is the atom. The symbol indicates the charge of the atomic symbol in the fourth column. In the example of FIG. 6, the X coordinate value “30”, the Y coordinate value “57”, the atomic symbol “C”, and the charge “0” are stored in the first line of the compound structure information file 600 as the atomic symbol attributes. Has been.

また、化合物構造情報ファイル600に含まれる結合記号の属性とは、例えば、結合記号によって結合される第1および第2の原子記号のうちの第1の原子記号の第1の原子IDと第2の原子記号の第2の原子ID、結合種別、立体種別などである。化合物構造情報ファイル600の結合ブロックの部分において、1列目の数字が第1の原子IDを示し、2列目の数字が第2の原子IDを示し、3列目の数字が結合種別を示し、4列目の数字が立体種別を示す。原子記号の原子IDは、例えば、化合物構造情報ファイル600における原子記号の出現順に割り当てられる。例えば、化合物構造情報ファイル600の1行目に記載された原子記号「C」の原子IDは「1」である。図6の例では、化合物構造情報ファイル600の9行目に、結合記号の属性として、第1の原子記号の原子ID「1」、第2の原子記号の原子ID「3」、結合種別「1」、および立体種別「3」が記憶されている。   In addition, the attribute of the bond symbol included in the compound structure information file 600 is, for example, the first atom ID and the second atom ID of the first atomic symbol of the first and second atomic symbols bonded by the bond symbol. Are the second atom ID, bond type, solid type, and the like. In the bond block portion of the compound structure information file 600, the number in the first column indicates the first atom ID, the number in the second column indicates the second atom ID, and the number in the third column indicates the bond type. The numbers in the fourth column indicate the solid type. The atomic IDs of atomic symbols are assigned in the order in which atomic symbols appear in the compound structure information file 600, for example. For example, the atom ID “C” described in the first line of the compound structure information file 600 is “1”. In the example of FIG. 6, on the ninth line of the compound structure information file 600, the atom ID “1” of the first atomic symbol, the atomic ID “3” of the second atomic symbol, the bond type “ 1 ”and the solid type“ 3 ”are stored.

図7において、情報処理装置100は、構造式111を描画するための第1の描画領域700を作成する。第1の描画領域700とは、例えば、画素の画素情報として背景色「白」が設定された画像情報である。図7の例では、第1の描画領域700が上部に示され、第1の描画領域700の左上部分を拡大したものが下部に示されている。   In FIG. 7, the information processing apparatus 100 creates a first drawing area 700 for drawing the structural formula 111. The first drawing area 700 is image information in which a background color “white” is set as pixel information of a pixel, for example. In the example of FIG. 7, the first drawing area 700 is shown in the upper part, and the upper left part of the first drawing area 700 is shown in the lower part.

ここで、背景色「白」の画素の画素情報はビット列「111111111111111111111111」である。ビット列「111111111111111111111111」は、(R,G,B)=(255,255,255)を示す。   Here, the pixel information of the pixel of the background color “white” is the bit string “111111111111111111111111”. The bit string “111111111111111111111111” indicates (R, G, B) = (255, 255, 255).

図8において、情報処理装置100は、第1の描画領域700上に化合物の構造式111を描画したベース画像800を作成する。ベース画像800とは、例えば、第1の描画領域700上の構造式111の描画位置にある画素の画素情報として文字色「黒」を設定することによって、第1の描画領域700上に構造式111を描画した画像である。描画位置は、例えば、化合物構造情報ファイル600の原子記号のX座標値とY座標値とから特定される。図8の例では、ベース画像800が上部に示され、ベース画像800の左上部分を拡大したものが下部に示されている。   In FIG. 8, the information processing apparatus 100 creates a base image 800 in which the structural formula 111 of the compound is drawn on the first drawing area 700. The base image 800 is, for example, a structural formula on the first drawing area 700 by setting the character color “black” as the pixel information of the pixel at the drawing position of the structural formula 111 on the first drawing area 700. 111 is a rendered image. For example, the drawing position is specified from the X coordinate value and the Y coordinate value of the atomic symbol in the compound structure information file 600. In the example of FIG. 8, the base image 800 is shown at the top, and an enlarged upper left portion of the base image 800 is shown at the bottom.

ここで、文字色「黒」の画素の画素情報は「000000000000000000000000」である。ビット列「000000000000000000000000」は、(R,G,B)=(0,0,0)を示す。   Here, the pixel information of the pixel of the character color “black” is “000000000000000000000000”. The bit string “000000000000000000000000” indicates (R, G, B) = (0, 0, 0).

図9において、情報処理装置100は、第1の描画領域700と同一サイズであって、構造式111に含まれる原子記号または結合記号のいずれかの記号を描画するための第2の描画領域900を作成する。第2の描画領域900とは、例えば、画素の画素情報として背景色「白」が設定された画像情報である。図9の例では、第2の描画領域900が上部に示され、第2の描画領域900の左上部分を拡大したものが下部に示されている。   In FIG. 9, the information processing apparatus 100 has the same size as the first drawing area 700, and a second drawing area 900 for drawing either the atomic symbol or the bond symbol included in the structural formula 111. Create The second drawing area 900 is, for example, image information in which a background color “white” is set as pixel information of a pixel. In the example of FIG. 9, the second drawing area 900 is shown in the upper part, and the upper left part of the second drawing area 900 is shown in the lower part.

図10において、情報処理装置100は、化合物の構造式111に含まれる原子記号または結合記号のいずれかの記号を選択し、第2の描画領域900上に選択した記号を描画した構造画像1000を作成する。ここで、例えば、構造式111に含まれる原子記号「C」が選択された場合を例に挙げる。この場合、構造画像1000とは、第2の描画領域900上の原子記号「C」の描画位置にある画素の画素情報として文字色「黒」を設定することによって、第2の描画領域900上に原子記号「C」を描画した画像である。図10の例では、構造画像1000が上部に示され、構造画像1000の左上部分を拡大したものが下部に示されている。   In FIG. 10, the information processing apparatus 100 selects either the atomic symbol or the bond symbol included in the structural formula 111 of the compound, and displays the structural image 1000 in which the selected symbol is drawn on the second drawing area 900. create. Here, for example, a case where the atomic symbol “C” included in the structural formula 111 is selected will be described as an example. In this case, the structural image 1000 is obtained by setting the character color “black” as the pixel information of the pixel at the drawing position of the atomic symbol “C” on the second drawing area 900. Is an image in which the atomic symbol “C” is drawn. In the example of FIG. 10, the structure image 1000 is shown in the upper part, and an enlarged upper left portion of the structure image 1000 is shown in the lower part.

次に、情報処理装置100は、構造画像1000のうちの原子記号「C」を表す画素群を特定する。そして、情報処理装置100は、特定した画素群のうち、原子記号「C」の属性値の格納先となる、符号1001の位置にある7つの画素を特定する。ここでは、情報処理装置100は、座標(136,86)の画素、座標(137,85)の画素、座標(137,86)の画素、座標(137,87)の画素、座標(138,85)の画素、座標(138,86)の画素、および座標(139,85)の画素を特定する。   Next, the information processing apparatus 100 specifies a pixel group representing the atomic symbol “C” in the structure image 1000. Then, the information processing apparatus 100 specifies seven pixels at the position of reference numeral 1001 that are storage destinations of the attribute value of the atomic symbol “C” in the specified pixel group. Here, the information processing apparatus 100 includes a pixel at coordinates (136, 86), a pixel at coordinates (137, 85), a pixel at coordinates (137, 86), a pixel at coordinates (137, 87), and a coordinate (138, 85). ), A pixel at coordinates (138, 86), and a pixel at coordinates (139, 85).

図11において、情報処理装置100は、特定した7つの画素の各々の画素の画素情報の変更内容を決定し、各々の画素の画素情報を変更する。情報処理装置100は、例えば、原子記号「C」の種別情報である「原子記号」を示す属性値「0000001」を特定する。次に、情報処理装置100は、属性値のビットの値を、先頭から順に、特定した7つの画素1001のうちのX座標値が相対的に小さい画素の画素情報に対応付ける。ここで、情報処理装置100は、X座標値が同一の画素がある場合は、属性値のビットの値を、X座標が同一の画素のうちのY座標値が相対的に小さい画素の画素情報に対応付ける。   In FIG. 11, the information processing apparatus 100 determines the change contents of the pixel information of each of the specified seven pixels, and changes the pixel information of each pixel. For example, the information processing apparatus 100 specifies an attribute value “0000001” indicating “atom symbol” which is the type information of the atomic symbol “C”. Next, the information processing apparatus 100 associates the bit value of the attribute value with the pixel information of the pixel having a relatively small X coordinate value among the specified seven pixels 1001 in order from the top. Here, when there is a pixel having the same X coordinate value, the information processing apparatus 100 uses the bit value of the attribute value as pixel information of a pixel having a relatively small Y coordinate value among pixels having the same X coordinate. Associate with.

結果として、情報処理装置100は、属性値の1ビット目を、座標(136,86)の画素に対応付ける。また、情報処理装置100は、属性値の2ビット目を、座標(137,85)の画素に対応付ける。また、情報処理装置100は、属性値の3ビット目を、座標(137,86)の画素に対応付ける。また、情報処理装置100は、属性値の4ビット目を、座標(137,87)の画素に対応付ける。また、情報処理装置100は、属性値の5ビット目を、座標(138,85)の画素に対応付ける。また、情報処理装置100は、属性値の6ビット目を、座標(138,86)の画素に対応付ける。また、情報処理装置100は、属性値の7ビット目を、座標(139,85)の画素に対応付ける。   As a result, the information processing apparatus 100 associates the first bit of the attribute value with the pixel at the coordinates (136, 86). Further, the information processing apparatus 100 associates the second bit of the attribute value with the pixel at the coordinates (137, 85). Further, the information processing apparatus 100 associates the third bit of the attribute value with the pixel at the coordinates (137, 86). Further, the information processing apparatus 100 associates the fourth bit of the attribute value with the pixel at the coordinates (137, 87). In addition, the information processing apparatus 100 associates the fifth bit of the attribute value with the pixel at coordinates (138, 85). Further, the information processing apparatus 100 associates the sixth bit of the attribute value with the pixel at the coordinates (138, 86). In addition, the information processing apparatus 100 associates the seventh bit of the attribute value with the pixel at coordinates (139, 85).

そして、情報処理装置100は、原子記号の属性の格納先の画素情報であることを示す格納先画素情報を生成する。格納先画素情報は、例えば、画素情報の「8,16,24ビット目」の各々のビットの値を、格納先の識別子「1,0,1」の各々の値に変更したビット列「000000010000000000000001」である。次に、情報処理装置100は、座標(136,86)の画素の画素情報「000000000000000000000000」と、格納先画素情報「000000010000000000000001」と、のANDをとる。   Then, the information processing apparatus 100 generates storage destination pixel information indicating that the pixel information is the storage destination pixel information of the atomic symbol attribute. The storage destination pixel information is, for example, a bit string “000000010000000000000001” in which the value of each bit of “8th, 16th, 24th bits” of the pixel information is changed to each value of the storage destination identifier “1,0,1”. It is. Next, the information processing apparatus 100 ANDs the pixel information “000000000000000000000000” of the pixel at the coordinates (136,86) and the storage destination pixel information “000000010000000000000001”.

そして、情報処理装置100は、原子記号−属性対応情報テーブル300を参照して、原子記号の種別情報である「原子記号」に応じた位置「1ビット目」を特定する。次に、情報処理装置100は、ANDをとった結果「000000010000000000000001」のうち、特定した位置「1ビット目」にあるビットの値を、属性値の1ビット目の値「0」に変更する。変更した結果は、ビット列「000000010000000000000001」になる。   Then, the information processing apparatus 100 refers to the atomic symbol-attribute correspondence information table 300 and identifies the position “first bit” corresponding to the “atomic symbol” that is the atomic symbol type information. Next, the information processing apparatus 100 changes the value of the bit at the specified position “first bit” of “000000010000000000000001” as a result of the AND operation to the value “0” of the first bit of the attribute value. The result of the change is a bit string “000000010000000000000001”.

そして、情報処理装置100は、座標(136,86)の画素の画素情報を、生成したビット列「000000010000000000000001」に変更する。また、情報処理装置100は、同様にして、他の座標の画素の画素情報についても変更する。これにより、情報処理装置100は、特定した7つの画素の画素情報に、原子記号の種別情報である「原子記号」を示す属性値を格納することができる。   Then, the information processing apparatus 100 changes the pixel information of the pixel at the coordinates (136, 86) to the generated bit string “000000010000000000000001”. Similarly, the information processing apparatus 100 changes the pixel information of the pixels at other coordinates. Thereby, the information processing apparatus 100 can store the attribute value indicating the “atomic symbol”, which is the type information of the atomic symbol, in the pixel information of the specified seven pixels.

次に、情報処理装置100は、化合物構造情報ファイル600を参照することにより、原子記号「C」の出現順番「1」を特定し、原子記号「C」の原子ID「1」を特定する。そして、情報処理装置100は、特定した原子記号「C」の原子IDである「1」を示す属性値「00000000000001」を特定する。次に、情報処理装置100は、属性値を7ビットごとに分割し、第1のビット列「0000000」と第2のビット列「0000001」とに分割する。   Next, the information processing apparatus 100 refers to the compound structure information file 600 to identify the appearance order “1” of the atomic symbol “C” and the atomic ID “1” of the atomic symbol “C”. Then, the information processing apparatus 100 specifies the attribute value “00000000000001” indicating “1” which is the atom ID of the specified atomic symbol “C”. Next, the information processing apparatus 100 divides the attribute value every 7 bits and divides the attribute value into the first bit string “0000000” and the second bit string “0000001”.

そして、情報処理装置100は、第1のビット列の先頭のビットの値から順に、特定した7つの画素のうちのX座標値が相対的に小さい画素の画素情報に対応付ける。このとき、情報処理装置100は、X座標値が同一の画素がある場合はX座標が同一の画素のうちのY座標値が相対的に小さい画素の画素情報に対応付ける。   Then, the information processing apparatus 100 sequentially associates the pixel information of the pixels with relatively small X coordinate values among the identified seven pixels, starting from the value of the first bit of the first bit string. At this time, if there is a pixel having the same X coordinate value, the information processing apparatus 100 associates the pixel information of a pixel having a relatively small Y coordinate value among pixels having the same X coordinate value.

また、情報処理装置100は、第2のビット列の先頭のビットの値から順に、特定した7つの画素のうちのX座標値が相対的に小さい画素の画素情報に対応付ける。このとき、情報処理装置100は、X座標値が同一の画素がある場合はX座標が同一の画素のうちのY座標値が相対的に小さい画素の画素情報に対応付ける。   In addition, the information processing apparatus 100 associates pixel information of pixels with relatively small X coordinate values among the seven specified pixels in order from the value of the first bit of the second bit string. At this time, if there is a pixel having the same X coordinate value, the information processing apparatus 100 associates the pixel information of a pixel having a relatively small Y coordinate value among pixels having the same X coordinate value.

結果として、情報処理装置100は、属性値の1ビット目と8ビット目とを、座標(136,86)の画素に対応付ける。また、情報処理装置100は、属性値の2ビット目と9ビット目とを、座標(137,85)の画素に対応付ける。また、情報処理装置100は、属性値の3ビット目と10ビット目とを、座標(137,86)の画素に対応付ける。また、情報処理装置100は、属性値の4ビット目と11ビット目とを、座標(137,87)の画素に対応付ける。また、情報処理装置100は、属性値の5ビット目と12ビット目とを、座標(138,85)の画素に対応付ける。また、情報処理装置100は、属性値の6ビット目と13ビット目とを、座標(138,86)の画素に対応付ける。また、情報処理装置100は、属性値の7ビット目と14ビット目とを、座標(139,85)の画素に対応付ける。   As a result, the information processing apparatus 100 associates the first bit and the eighth bit of the attribute value with the pixel at the coordinates (136, 86). In addition, the information processing apparatus 100 associates the second bit and the ninth bit of the attribute value with the pixel at the coordinates (137, 85). Further, the information processing apparatus 100 associates the third bit and the tenth bit of the attribute value with the pixel at the coordinates (137, 86). Further, the information processing apparatus 100 associates the fourth bit and the eleventh bit of the attribute value with the pixel at the coordinates (137, 87). Further, the information processing apparatus 100 associates the fifth bit and the twelfth bit of the attribute value with the pixel at the coordinates (138, 85). In addition, the information processing apparatus 100 associates the 6th and 13th bits of the attribute value with the pixel at the coordinates (138, 86). Further, the information processing apparatus 100 associates the 7th and 14th bits of the attribute value with the pixel at the coordinates (139, 85).

次に、情報処理装置100は、座標(136,86)の画素の画素情報「000000000000000000000000」と、格納先画素情報「000000010000000000000001」と、のANDをとる。   Next, the information processing apparatus 100 ANDs the pixel information “000000000000000000000000” of the pixel at the coordinates (136,86) and the storage destination pixel information “000000010000000000000001”.

そして、情報処理装置100は、原子記号−属性対応情報テーブル300を参照して、原子記号の原子IDである「1」に応じた位置「2,3ビット目」を特定する。次に、情報処理装置100は、ANDをとった結果「000000010000000000000001」のうち、特定した位置「2,3ビット目」にある各々のビットの値を、属性値の1,8ビット目の各々の値「0,0」に変更する。変更した結果は、ビット列「000000010000000000000001」になる。   Then, the information processing apparatus 100 refers to the atomic symbol / attribute correspondence information table 300 and identifies the position “second and third bits” corresponding to “1” which is the atomic ID of the atomic symbol. Next, the information processing apparatus 100 calculates the value of each bit at the specified position “second and third bits” among “000000010000000000000001” as a result of ANDing, and sets each of the first and eighth bits of the attribute value. Change to the value “0,0”. The result of the change is a bit string “000000010000000000000001”.

そして、情報処理装置100は、座標(136,86)の画素の画素情報を、生成したビット列「000000010000000000000001」に変更する。また、情報処理装置100は、同様にして、他の座標の画素の画素情報についても変更する。これにより、情報処理装置100は、特定した7つの画素の画素情報に、原子記号の原子IDである「1」を示す属性値を格納することができる。   Then, the information processing apparatus 100 changes the pixel information of the pixel at the coordinates (136, 86) to the generated bit string “000000010000000000000001”. Similarly, the information processing apparatus 100 changes the pixel information of the pixels at other coordinates. Thereby, the information processing apparatus 100 can store the attribute value indicating “1”, which is the atomic ID of the atomic symbol, in the pixel information of the specified seven pixels.

また、情報処理装置100は、同様にして、特定した7つの画素の画素情報に、原子記号「C」の原子番号である「6」を示す属性値「00000000000110」を格納する。また、情報処理装置100は、同様にして、特定した7つの画素の画素情報に、原子記号「C」のX座標値である「30」を示す属性値「000000000000000011110」を格納する。   Similarly, the information processing apparatus 100 stores the attribute value “0000000000001010” indicating the atomic number “6” of the atomic symbol “C” in the pixel information of the specified seven pixels. Similarly, the information processing apparatus 100 stores the attribute value “0000000000000011110” indicating “30” that is the X coordinate value of the atomic symbol “C” in the pixel information of the specified seven pixels.

また、情報処理装置100は、同様にして、特定した7つの画素の画素情報に、原子記号「C」のY座標値である「57」を示す属性値「000000000000000111001」を格納する。また、情報処理装置100は、同様にして、特定した7つの画素の画素情報に、原子記号「C」の電荷の値である「0」を示す属性値「0000000」を格納する。結果として、特定した7つの画素の画素情報は、図11に示す画素情報に変更される。   Similarly, the information processing apparatus 100 stores the attribute value “000000000000000111001” indicating the Y coordinate value “57” of the atomic symbol “C” in the pixel information of the specified seven pixels. Similarly, the information processing apparatus 100 stores the attribute value “0000000” indicating “0”, which is the charge value of the atomic symbol “C”, in the pixel information of the specified seven pixels. As a result, the pixel information of the specified seven pixels is changed to the pixel information shown in FIG.

これにより、図12に示すように、構造画像1000は、画像情報の中に原子記号「C」の属性値が格納された構造画像1200になる。図12の例では、構造画像1200が上部に示され、構造画像1200の左上部分を拡大したものが下部に示されている。次に、情報処理装置100は、図8に示したベース画像800の各々の画素情報と、図12に示す構造画像1200の各々の画素情報と、のANDをとる。   As a result, as shown in FIG. 12, the structure image 1000 becomes a structure image 1200 in which the attribute value of the atomic symbol “C” is stored in the image information. In the example of FIG. 12, the structure image 1200 is shown in the upper part, and the upper left part of the structure image 1200 is shown in the lower part. Next, the information processing apparatus 100 ANDs each pixel information of the base image 800 shown in FIG. 8 and each pixel information of the structure image 1200 shown in FIG.

これにより、図13に示すように、ベース画像800は、化合物の構造式111を示し、原子記号「C」を表す画素群の一部の画素の画素情報に、原子記号「C」の属性値が格納されたベース画像1300になる。図13の例では、ベース画像1300が上部に示され、ベース画像1300の左上部分を拡大したものが下部に示されている。   As a result, as shown in FIG. 13, the base image 800 represents the structural formula 111 of the compound, and the attribute value of the atomic symbol “C” is included in the pixel information of some pixels of the pixel group representing the atomic symbol “C”. Is stored in the base image 1300. In the example of FIG. 13, the base image 1300 is shown in the upper part, and an enlarged upper left portion of the base image 1300 is shown in the lower part.

図14において、情報処理装置100は、図9〜図12と同様にして、図9〜図12において属性値を格納した原子記号「C」とは異なる他の原子記号または他の結合記号について、属性値を格納した構造画像1400を作成する。   In FIG. 14, the information processing apparatus 100, similar to FIGS. 9 to 12, uses other atomic symbols or other bond symbols different from the atomic symbol “C” that stores the attribute values in FIGS. 9 to 12. A structure image 1400 storing attribute values is created.

図14の例では、情報処理装置100は、再び、第2の描画領域900を作成する。次に、情報処理装置100は、図9〜図12において属性値を格納した原子記号「C」とは異なる結合記号「単結合」を選択し、第2の描画領域900上に選択した記号を描画した構造画像1400を作成する。図14の例では、構造画像1400が上部に示され、構造画像1400の左上部分を拡大したものが下部に示されている。   In the example of FIG. 14, the information processing apparatus 100 creates the second drawing area 900 again. Next, the information processing apparatus 100 selects a bond symbol “single bond” different from the atomic symbol “C” in which the attribute value is stored in FIGS. 9 to 12, and selects the selected symbol on the second drawing area 900. A drawn structural image 1400 is created. In the example of FIG. 14, the structure image 1400 is shown in the upper part, and the upper left part of the structure image 1400 is enlarged in the lower part.

そして、情報処理装置100は、構造画像1400のうちの結合記号「単結合」を表す画素群を特定する。次に、情報処理装置100は、特定した画素群のうち、結合記号「単結合」の属性値の格納先となる、符号1401の位置にある7つの画素を特定する。ここでは、情報処理装置100は、座標(49,87)の画素、座標(49,88)の画素、座標(49,89)の画素、座標(49,90)の画素、座標(49,91)の画素、座標(49,92)の画素、および座標(49,93)の画素を特定する。   Then, the information processing apparatus 100 specifies a pixel group that represents the combination symbol “single combination” in the structure image 1400. Next, the information processing apparatus 100 identifies seven pixels at the position of reference numeral 1401 that are storage destinations of the attribute value of the coupling symbol “single coupling” among the identified pixel group. Here, the information processing apparatus 100 includes a pixel at coordinates (49, 87), a pixel at coordinates (49, 88), a pixel at coordinates (49, 89), a pixel at coordinates (49, 90), and a coordinate (49, 91). ), A pixel at coordinates (49, 92), and a pixel at coordinates (49, 93).

図15において、情報処理装置100は、特定した7つの画素の各々の画素の画素情報の変更内容を決定し、各々の画素の画素情報を変更する。情報処理装置100は、例えば、結合記号「単結合」の種別情報である「結合記号」を示す属性値「0000010」を特定する。   In FIG. 15, the information processing apparatus 100 determines the change contents of the pixel information of each of the specified seven pixels, and changes the pixel information of each pixel. The information processing apparatus 100 specifies, for example, an attribute value “0000010” indicating “link symbol” that is type information of the bond symbol “single bond”.

次に、情報処理装置100は、第1のビット列の先頭のビットの値から順に、特定した7つの画素のうちのX座標値が相対的に小さい画素の画素情報に対応付ける。このとき、情報処理装置100は、X座標値が同一の画素がある場合はX座標が同一の画素のうちのY座標値が相対的に小さい画素の画素情報に対応付ける。   Next, the information processing apparatus 100 associates pixel information of pixels with relatively small X coordinate values among the seven specified pixels in order from the value of the first bit of the first bit string. At this time, if there is a pixel having the same X coordinate value, the information processing apparatus 100 associates the pixel information of a pixel having a relatively small Y coordinate value among pixels having the same X coordinate value.

結果として、情報処理装置100は、属性値の1ビット目を、座標(49,87)の画素に対応付ける。また、情報処理装置100は、属性値の2ビット目を、座標(49,88)の画素に対応付ける。また、情報処理装置100は、属性値の3ビット目を、座標(49,89)の画素に対応付ける。また、情報処理装置100は、属性値の4ビット目を、座標(49,90)の画素に対応付ける。また、情報処理装置100は、属性値の5ビット目を、座標(49,91)の画素に対応付ける。また、情報処理装置100は、属性値の6ビット目を、座標(49,92)の画素に対応付ける。また、情報処理装置100は、属性値の7ビット目を、座標(49,93)の画素に対応付ける。   As a result, the information processing apparatus 100 associates the first bit of the attribute value with the pixel at coordinates (49, 87). Further, the information processing apparatus 100 associates the second bit of the attribute value with the pixel at coordinates (49, 88). Further, the information processing apparatus 100 associates the third bit of the attribute value with the pixel at coordinates (49, 89). Further, the information processing apparatus 100 associates the fourth bit of the attribute value with the pixel at coordinates (49, 90). In addition, the information processing apparatus 100 associates the fifth bit of the attribute value with the pixel at coordinates (49, 91). Further, the information processing apparatus 100 associates the sixth bit of the attribute value with the pixel at the coordinates (49, 92). In addition, the information processing apparatus 100 associates the seventh bit of the attribute value with the pixel at coordinates (49, 93).

次に、情報処理装置100は、座標(49,87)の画素の画素情報「000000000000000000000000」と、格納先画素情報「000000010000000000000001」と、のANDをとる。   Next, the information processing apparatus 100 ANDs the pixel information “000000000000000000000000” of the pixel at the coordinates (49,87) and the storage destination pixel information “000000010000000000000001”.

そして、情報処理装置100は、結合記号−属性対応情報テーブル400を参照して、結合記号の種別情報である「結合記号」に応じた位置「1ビット目」を特定する。次に、情報処理装置100は、ANDをとった結果「000000010000000000000001」のうち、特定した位置「1ビット目」にあるビットの値を、属性値の1ビット目の値「0」に変更する。変更した結果は、ビット列「000000010000000000000001」になる。   Then, the information processing apparatus 100 refers to the combined symbol / attribute correspondence information table 400 and specifies the position “first bit” corresponding to the “combined symbol” that is the type information of the combined symbol. Next, the information processing apparatus 100 changes the value of the bit at the specified position “first bit” of “000000010000000000000001” as a result of the AND operation to the value “0” of the first bit of the attribute value. The result of the change is a bit string “000000010000000000000001”.

そして、情報処理装置100は、座標(49,87)の画素の画素情報を、生成したビット列「000000010000000000000001」に変更する。また、情報処理装置100は、同様にして、他の座標の画素の画素情報についても変更する。これにより、情報処理装置100は、特定した7つの画素の画素情報に、結合記号の種別情報である「結合記号」を示す属性値を格納することができる。   Then, the information processing apparatus 100 changes the pixel information of the pixel at coordinates (49,87) to the generated bit string “000000010000000000000001”. Similarly, the information processing apparatus 100 changes the pixel information of the pixels at other coordinates. Thereby, the information processing apparatus 100 can store the attribute value indicating the “joined symbol” that is the type information of the joined symbol in the pixel information of the specified seven pixels.

次に、情報処理装置100は、化合物構造情報ファイル600を参照して、結合記号「単結合」の立体種別である「下」を示す属性値「00000000000011」を特定する。そして、情報処理装置100は、第1のビット列の先頭のビットの値から順に、特定した7つの画素のうちのX座標値が相対的に小さい画素の画素情報に対応付ける。このとき、情報処理装置100は、X座標値が同一の画素がある場合はX座標が同一の画素のうちのY座標値が相対的に小さい画素の画素情報に対応付ける。   Next, the information processing apparatus 100 refers to the compound structure information file 600 and specifies the attribute value “00000000000011” indicating “lower” which is the three-dimensional type of the bond symbol “single bond”. Then, the information processing apparatus 100 sequentially associates the pixel information of the pixels with relatively small X coordinate values among the identified seven pixels, starting from the value of the first bit of the first bit string. At this time, if there is a pixel having the same X coordinate value, the information processing apparatus 100 associates the pixel information of a pixel having a relatively small Y coordinate value among pixels having the same X coordinate value.

結果として、情報処理装置100は、属性値の1ビット目を、座標(49,87)の画素に対応付ける。また、情報処理装置100は、属性値の2ビット目を、座標(49,88)の画素に対応付ける。また、情報処理装置100は、属性値の3ビット目を、座標(49,89)の画素に対応付ける。また、情報処理装置100は、属性値の4ビット目を、座標(49,90)の画素に対応付ける。また、情報処理装置100は、属性値の5ビット目を、座標(49,91)の画素に対応付ける。また、情報処理装置100は、属性値の6ビット目を、座標(49,92)の画素に対応付ける。また、情報処理装置100は、属性値の7ビット目を、座標(49,93)の画素に対応付ける。   As a result, the information processing apparatus 100 associates the first bit of the attribute value with the pixel at coordinates (49, 87). Further, the information processing apparatus 100 associates the second bit of the attribute value with the pixel at coordinates (49, 88). Further, the information processing apparatus 100 associates the third bit of the attribute value with the pixel at coordinates (49, 89). Further, the information processing apparatus 100 associates the fourth bit of the attribute value with the pixel at coordinates (49, 90). In addition, the information processing apparatus 100 associates the fifth bit of the attribute value with the pixel at coordinates (49, 91). Further, the information processing apparatus 100 associates the sixth bit of the attribute value with the pixel at the coordinates (49, 92). In addition, the information processing apparatus 100 associates the seventh bit of the attribute value with the pixel at coordinates (49, 93).

次に、情報処理装置100は、座標(49,87)の画素の画素情報「000000000000000000000000」と、格納先画素情報「000000010000000000000001」と、のANDをとる。   Next, the information processing apparatus 100 ANDs the pixel information “000000000000000000000000” of the pixel at the coordinates (49,87) and the storage destination pixel information “000000010000000000000001”.

そして、情報処理装置100は、結合記号−属性対応情報テーブル400を参照して、結合記号の立体種別である「下」に応じた位置「20ビット目」を特定する。次に、情報処理装置100は、ANDをとった結果「000000010000000000000001」のうち、特定した位置「20ビット目」にあるビットの値を、属性値の1ビット目の値「0」に変更する。変更した結果は、ビット列「000000010000000000000001」になる。   Then, the information processing apparatus 100 refers to the combined symbol / attribute correspondence information table 400 to identify the position “20th bit” corresponding to “lower” that is the solid type of the combined symbol. Next, the information processing apparatus 100 changes the value of the bit at the specified position “20th bit” of “000000010000000000000001” as a result of ANDing to the value “0” of the first bit of the attribute value. The result of the change is a bit string “000000010000000000000001”.

そして、情報処理装置100は、座標(49,87)の画素の画素情報を、生成したビット列「000000010000000000000001」に変更する。また、情報処理装置100は、同様にして、他の座標の画素の画素情報についても変更する。これにより、情報処理装置100は、特定した7つの画素の画素情報に、結合記号の立体種別である「下」を示す属性値を格納することができる。   Then, the information processing apparatus 100 changes the pixel information of the pixel at coordinates (49,87) to the generated bit string “000000010000000000000001”. Similarly, the information processing apparatus 100 changes the pixel information of the pixels at other coordinates. As a result, the information processing apparatus 100 can store the attribute value indicating “lower”, which is the three-dimensional type of the combined symbol, in the pixel information of the specified seven pixels.

また、情報処理装置100は、同様にして、特定した7つの画素の画素情報に、結合記号「単結合」の結合種別である「単結合」を示す属性値「00000000000001」を格納する。また、情報処理装置100は、同様にして、特定した7つの画素の画素情報に、結合記号「単結合」によって結合される第1の原子記号を示す第1の原子IDである「1」を示す属性値「00000000000001」を格納する。   Similarly, the information processing apparatus 100 stores the attribute value “00000000000001” indicating “single bond” that is the combination type of the combination symbol “single bond” in the pixel information of the specified seven pixels. Similarly, the information processing apparatus 100 adds “1”, which is the first atomic ID indicating the first atomic symbol coupled by the coupling symbol “single bond”, to the pixel information of the identified seven pixels. The indicated attribute value “00000000000001” is stored.

また、情報処理装置100は、同様にして、特定した7つの画素の画素情報に、結合記号「単結合」によって結合される第2の原子記号を示す第2の原子IDである「3」を示す属性値「00000000000011」を格納する。結果として、特定した7つの画素の画素情報は、図15に示す画素情報に変更される。   Similarly, the information processing apparatus 100 adds “3”, which is the second atomic ID indicating the second atomic symbol coupled by the coupling symbol “single bond”, to the pixel information of the identified seven pixels. The indicated attribute value “000000000000101” is stored. As a result, the pixel information of the specified seven pixels is changed to the pixel information shown in FIG.

これにより、図16に示すように、構造画像1400は、画像情報の中に結合記号「単結合」の属性値が格納された構造画像1600になる。図16の例では、構造画像1600が上部に示され、構造画像1600の左上部分を拡大したものが下部に示されている。次に、情報処理装置100は、図13に示したベース画像1300の各々の画素情報と、図16に示す構造画像1600の各々の画素情報と、のANDをとる。   As a result, as shown in FIG. 16, the structure image 1400 becomes a structure image 1600 in which the attribute value of the combination symbol “single bond” is stored in the image information. In the example of FIG. 16, the structure image 1600 is shown in the upper part, and the upper left part of the structure image 1600 is enlarged in the lower part. Next, the information processing apparatus 100 ANDs each pixel information of the base image 1300 illustrated in FIG. 13 and each pixel information of the structure image 1600 illustrated in FIG.

これにより、図17に示すように、ベース画像1300は、化合物の構造式111を示し、結合記号「単結合」を表す画素群の一部の画素の画素情報に、結合記号「単結合」の属性値が格納されたベース画像1700になる。図17の例では、ベース画像1700が上部に示され、ベース画像1700の左上部分を拡大したものが下部に示されている。   As a result, as shown in FIG. 17, the base image 1300 shows the structural formula 111 of the compound, and the pixel information of some pixels of the pixel group representing the bond symbol “single bond” includes the bond symbol “single bond”. It becomes the base image 1700 in which the attribute value is stored. In the example of FIG. 17, the base image 1700 is shown in the upper part, and an enlarged upper left portion of the base image 1700 is shown in the lower part.

また、情報処理装置100は、図9〜図17と同様にして、図9〜図17において属性値を格納した原子記号「C」および結合記号「単結合」とは異なる他の原子記号または他の結合記号について、属性値を格納した構造画像を作成する。そして、情報処理装置100は、作成する都度、ベース画像の各々の画素情報と、作成した構造画像の各々の画素情報と、のANDをとる。   9 to 17, the information processing apparatus 100 uses another atomic symbol or other than the atomic symbol “C” and the bond symbol “single bond” that store the attribute values in FIGS. 9 to 17. A structure image storing attribute values is created for the combined symbols. Then, each time the information processing apparatus 100 is created, the information processing apparatus 100 performs an AND operation on each pixel information of the base image and each pixel information of the created structure image.

これにより、図18に示すように、ベース画像1700は、化合物の構造式111を示し、化合物の構造式111に含まれる各々の記号の属性値を格納したベース画像1800になる。図18の例では、ベース画像1800が上部に示され、ベース画像1800の左上部分を拡大したものが下部に示されている。   As a result, as shown in FIG. 18, the base image 1700 shows the structural formula 111 of the compound, and becomes a base image 1800 in which the attribute value of each symbol included in the structural formula 111 of the compound is stored. In the example of FIG. 18, the base image 1800 is shown in the upper part, and an enlarged upper left portion of the base image 1800 is shown in the lower part.

これにより、情報処理装置100は、画像情報に原子記号の属性値と結合記号の属性値とを埋め込むことができる。このため、情報処理装置100の利用者は、画像情報と、原子記号の属性と結合記号の属性とを示す構造情報と、を別個に管理しなくてもよく、管理にかかる作業量を削減することができる。   Thereby, the information processing apparatus 100 can embed the attribute value of the atomic symbol and the attribute value of the bond symbol in the image information. For this reason, the user of the information processing apparatus 100 does not have to separately manage the image information and the structural information indicating the attribute of the atomic symbol and the attribute of the bond symbol, thereby reducing the amount of work required for the management. be able to.

(属性値格納処理)
次に、図19を用いて、情報処理装置100の属性値格納処理手順の一例について説明する。属性値格納処理は、図6〜図18に示した第1の動作を行うための処理である。
(Attribute value storage processing)
Next, an example of the attribute value storage processing procedure of the information processing apparatus 100 will be described with reference to FIG. The attribute value storage process is a process for performing the first operation shown in FIGS.

図19は、属性値格納処理手順の一例を示すフローチャートである。図19において、情報処理装置100は、化合物構造情報ファイル600を取得する(ステップS1901)。次に、情報処理装置100は、化合物構造情報ファイル600から原子記号の属性と結合記号の属性とを取得する(ステップS1902)。   FIG. 19 is a flowchart illustrating an example of an attribute value storage processing procedure. In FIG. 19, the information processing apparatus 100 acquires the compound structure information file 600 (step S1901). Next, the information processing apparatus 100 acquires the attribute of the atomic symbol and the attribute of the bond symbol from the compound structure information file 600 (step S1902).

そして、情報処理装置100は、原子記号の属性と結合記号の属性とに基づいて、ベース画像を作成する(ステップS1903)。次に、情報処理装置100は、化合物の構造式111に含まれる原子記号と結合記号とのうち、未選択の記号を選択する(ステップS1904)。   Then, the information processing apparatus 100 creates a base image based on the atomic symbol attribute and the bond symbol attribute (step S1903). Next, the information processing apparatus 100 selects an unselected symbol among the atomic symbols and bond symbols included in the structural formula 111 of the compound (step S1904).

そして、情報処理装置100は、図20に示す構造画像作成処理を実行する(ステップS1905)。次に、情報処理装置100は、図21に示す画素抽出処理を実行する(ステップS1906)。そして、情報処理装置100は、図23に示す構造情報埋込処理を実行する(ステップS1907)。   The information processing apparatus 100 executes the structure image creation process shown in FIG. 20 (step S1905). Next, the information processing apparatus 100 performs the pixel extraction process illustrated in FIG. 21 (step S1906). The information processing apparatus 100 executes the structure information embedding process shown in FIG. 23 (step S1907).

次に、情報処理装置100は、ベース画像内の各々の画素の画素情報と、構造画像内の各々の画素の画素情報と、のANDをとる(ステップS1908)。そして、情報処理装置100は、ステップS1904において、化合物の構造式111に未選択の記号が含まれるか否かを判定する(ステップS1909)。   Next, the information processing apparatus 100 performs an AND operation between the pixel information of each pixel in the base image and the pixel information of each pixel in the structure image (step S1908). In step S1904, the information processing apparatus 100 determines whether an unselected symbol is included in the structural formula 111 of the compound (step S1909).

ここで、未選択の記号がある場合(ステップS1909:Yes)、情報処理装置100は、ステップS1904に戻る。一方で、未選択の記号がない場合(ステップS1909:No)、情報処理装置100は、属性値格納処理を終了する。これにより、情報処理装置100は、画像情報に原子記号の属性値と結合記号の属性値とを埋め込むことができる。このため、情報処理装置100の利用者は、画像情報と、原子記号の属性と結合記号の属性とを示す構造情報と、を別個に管理しなくてもよく、管理にかかる作業量を削減することができる。   If there is an unselected symbol (step S1909: YES), the information processing apparatus 100 returns to step S1904. On the other hand, when there is no unselected symbol (step S1909: No), the information processing apparatus 100 ends the attribute value storage process. Thereby, the information processing apparatus 100 can embed the attribute value of the atomic symbol and the attribute value of the bond symbol in the image information. For this reason, the user of the information processing apparatus 100 does not have to separately manage the image information and the structural information indicating the attribute of the atomic symbol and the attribute of the bond symbol, thereby reducing the amount of work required for the management. be able to.

(構造画像作成処理)
次に、図20を用いて、ステップS1905に示した構造画像作成処理手順の一例について説明する。
(Structural image creation process)
Next, an example of the structure image creation processing procedure shown in step S1905 will be described with reference to FIG.

図20は、構造画像作成処理手順の一例を示すフローチャートである。図20において、情報処理装置100は、ベース画像と同一のサイズの描画領域を作成する(ステップS2001)。次に、情報処理装置100は、ステップS1904において選択した記号が、原子記号か否かを判定する(ステップS2002)。   FIG. 20 is a flowchart illustrating an example of a structural image creation processing procedure. In FIG. 20, the information processing apparatus 100 creates a drawing area having the same size as the base image (step S2001). Next, the information processing apparatus 100 determines whether or not the symbol selected in step S1904 is an atomic symbol (step S2002).

ここで、原子記号である場合(ステップS2002:Yes)、情報処理装置100は、ステップS2001において作成した描画領域上に選択した原子記号を描画して構造画像を作成する(ステップS2003)。そして、情報処理装置100は、構造画像作成処理を終了する。   If the symbol is an atomic symbol (step S2002: Yes), the information processing apparatus 100 creates a structural image by drawing the selected atomic symbol on the drawing region created in step S2001 (step S2003). Then, the information processing apparatus 100 ends the structural image creation process.

一方で、原子記号ではない場合(ステップS2002:No)、情報処理装置100は、ステップS2001において作成した描画領域上に選択した結合記号を描画して構造画像を作成する(ステップS2004)。そして、情報処理装置100は、構造画像作成処理を終了する。これにより、情報処理装置100は、ベース画像と重ね合わせるための構造画像を作成することができる。   On the other hand, if the symbol is not an atomic symbol (step S2002: No), the information processing apparatus 100 creates a structural image by drawing the selected bond symbol on the drawing area created in step S2001 (step S2004). Then, the information processing apparatus 100 ends the structural image creation process. Thereby, the information processing apparatus 100 can create a structure image to be superimposed on the base image.

(画素抽出処理)
次に、図21を用いて、ステップS1906に示した画素抽出処理手順の一例について説明する。
(Pixel extraction processing)
Next, an example of the pixel extraction processing procedure shown in step S1906 will be described with reference to FIG.

図21は、画素抽出処理手順の一例を示すフローチャートである。図21において、情報処理装置100は、構造画像上のX座標値を示す変数xに0を設定する(ステップS2101)。次に、情報処理装置100は、構造画像上のY座標値を示す変数yに0を設定する(ステップS2102)。   FIG. 21 is a flowchart illustrating an example of a pixel extraction processing procedure. In FIG. 21, the information processing apparatus 100 sets 0 to a variable x indicating an X coordinate value on the structure image (step S2101). Next, the information processing apparatus 100 sets 0 to the variable y indicating the Y coordinate value on the structure image (step S2102).

そして、情報処理装置100は、構造画像上の各々の画素に対応付けたチェックフラグと、抽出した画素の座標を格納する一時記憶領域と、を初期化する(ステップS2103)。次に、情報処理装置100は、図22に示す再帰処理を実行する(ステップS2104)。そして、情報処理装置100は、一時記憶領域にN個以上の画素の座標が記憶されているか否かを判定する(ステップS2105)。   The information processing apparatus 100 initializes a check flag associated with each pixel on the structure image and a temporary storage area for storing the coordinates of the extracted pixel (step S2103). Next, the information processing apparatus 100 executes the recursion process shown in FIG. 22 (step S2104). The information processing apparatus 100 determines whether or not the coordinates of N or more pixels are stored in the temporary storage area (step S2105).

ここで、記憶されている場合(ステップS2105:Yes)、情報処理装置100は、一時記憶領域の記憶内容をグローバル記憶領域に格納する(ステップS2106)。そして、情報処理装置100は、画素抽出処理を終了する。   If the information is stored (step S2105: YES), the information processing apparatus 100 stores the storage contents of the temporary storage area in the global storage area (step S2106). Then, the information processing apparatus 100 ends the pixel extraction process.

一方で、記憶されていない場合(ステップS2105:No)、情報処理装置100は、変数yに1を加算する(ステップS2107)。そして、情報処理装置100は、変数yが、構造画像の画像高さより大きい値であるか否かを判定する(ステップS2108)。ここで、大きい値ではない場合(ステップS2108:No)、情報処理装置100は、ステップS2103に戻る。   On the other hand, when not stored (step S2105: No), the information processing apparatus 100 adds 1 to the variable y (step S2107). The information processing apparatus 100 determines whether the variable y is a value larger than the image height of the structure image (step S2108). If the value is not a large value (step S2108: NO), the information processing apparatus 100 returns to step S2103.

一方で、大きい値である場合(ステップS2108:Yes)、情報処理装置100は、変数xに1を加算する(ステップS2109)。そして、情報処理装置100は、変数xが、構造画像の画像幅より大きい値であるか否かを判定する(ステップS2110)。ここで、大きい値ではない場合(ステップS2110:No)、情報処理装置100は、ステップS2102に戻る。   On the other hand, when it is a large value (step S2108: Yes), the information processing apparatus 100 adds 1 to the variable x (step S2109). Then, the information processing apparatus 100 determines whether or not the variable x is a value larger than the image width of the structure image (step S2110). If the value is not a large value (step S2110: NO), the information processing apparatus 100 returns to step S2102.

一方で、大きい値である場合(ステップS2110:Yes)、情報処理装置100は、画素抽出処理を終了する。これにより、情報処理装置100は、原子記号または結合記号のいずれかの記号の属性値を格納する画素を抽出することができる。ここで、情報処理装置100は、画素抽出処理によってN個の画素を抽出できなかった場合は、属性値格納処理を終了してもよい。   On the other hand, when it is a large value (step S2110: Yes), the information processing apparatus 100 ends the pixel extraction process. Thereby, the information processing apparatus 100 can extract a pixel that stores an attribute value of either an atomic symbol or a bond symbol. Here, the information processing apparatus 100 may end the attribute value storage process when N pixels cannot be extracted by the pixel extraction process.

(再帰処理)
次に、図22を用いて、ステップS2104に示した再帰処理手順の一例について説明する。
(Recursive processing)
Next, an example of the recursive processing procedure shown in step S2104 will be described using FIG.

図22は、再帰処理手順の一例を示すフローチャートである。図22において、情報処理装置100は、変数xと変数yとが示す座標にある画素の画素情報を取得する(ステップS2201)。次に、情報処理装置100は、取得した画素情報と、当該画素に対応付けられたチェックフラグと、を参照して、当該画素の画素情報が文字色を示し、かつ、当該画素が未チェックであるか否かを判定する(ステップS2202)。   FIG. 22 is a flowchart illustrating an example of the recursive processing procedure. In FIG. 22, the information processing apparatus 100 acquires pixel information of a pixel located at coordinates indicated by a variable x and a variable y (step S2201). Next, the information processing apparatus 100 refers to the acquired pixel information and the check flag associated with the pixel, the pixel information of the pixel indicates a character color, and the pixel is unchecked. It is determined whether or not there is (step S2202).

ここで、当該画素の画素情報が文字色以外を示す場合、または、当該画素がチェック済である場合(ステップS2202:No)、情報処理装置100は、再帰処理を終了する。一方で、当該画素の画素情報が文字色を示し、かつ、当該画素が未チェックである場合(ステップS2202:Yes)、情報処理装置100は、ステップS2203の処理に移行する。   Here, when the pixel information of the pixel indicates a color other than the character color, or when the pixel is already checked (step S2202: No), the information processing apparatus 100 ends the recursion process. On the other hand, if the pixel information of the pixel indicates a character color and the pixel is unchecked (step S2202: YES), the information processing apparatus 100 proceeds to the process of step S2203.

ステップS2203において、情報処理装置100は、当該画素が、グローバル記憶領域に格納された座標にある画素ではなく、かつ、グローバル記憶領域に格納された座標にある画素に隣接する画素ではないか否かを判定する(ステップS2203)。ここで、当該画素が、グローバル記憶領域に格納された座標にある画素である場合、または、グローバル記憶領域に格納された座標にある画素に隣接する画素である場合(ステップS2203:No)、情報処理装置100は、再帰処理を終了する。   In step S2203, the information processing apparatus 100 determines whether the pixel is not a pixel at the coordinates stored in the global storage area and is not adjacent to the pixel at the coordinates stored in the global storage area. Is determined (step S2203). Here, when the pixel is a pixel at the coordinates stored in the global storage area, or when the pixel is adjacent to the pixel at the coordinates stored in the global storage area (step S2203: No), the information The processing device 100 ends the recursive process.

一方で、当該画素が、グローバル記憶領域に格納された座標にある画素ではなく、かつ、グローバル記憶領域に格納された座標にある画素に隣接する画素ではない場合(ステップS2203:Yes)、情報処理装置100は、ステップS2204の処理に移行する。   On the other hand, if the pixel is not a pixel at the coordinates stored in the global storage area and is not a pixel adjacent to the pixel at the coordinates stored in the global storage area (step S2203: Yes), information processing is performed. The apparatus 100 proceeds to the process of step S2204.

ステップS2204において、情報処理装置100は、変数xと変数yとが示す座標を、一時記憶領域に格納する(ステップS2204)。次に、情報処理装置100は、一時記憶領域にN個以上の画素の座標が格納されたか否かを判定する(ステップS2205)。ここで、画素の座標が格納されている場合(ステップS2205:Yes)、情報処理装置100は、再帰処理を終了する。   In step S2204, the information processing apparatus 100 stores the coordinates indicated by the variable x and the variable y in the temporary storage area (step S2204). Next, the information processing apparatus 100 determines whether or not the coordinates of N or more pixels are stored in the temporary storage area (step S2205). If the coordinates of the pixel are stored (step S2205: YES), the information processing apparatus 100 ends the recursive process.

一方で、画素の座標が格納されていない場合(ステップS2205:No)、情報処理装置100は、当該画素のチェックフラグをチェック済に設定する(ステップS2206)。次に、情報処理装置100は、当該画素の周囲にある8画素のうち、未選択の画素を選択する(ステップS2207)。そして、情報処理装置100は、再帰処理を実行する(ステップS2208)。   On the other hand, when the coordinates of the pixel are not stored (step S2205: No), the information processing apparatus 100 sets the check flag of the pixel to checked (step S2206). Next, the information processing apparatus 100 selects an unselected pixel among the eight pixels around the pixel (step S2207). Then, the information processing apparatus 100 executes a recursive process (step S2208).

次に、情報処理装置100は、一時記憶領域にN個以上の画素の座標が格納されたか否かを判定する(ステップS2209)。ここで、格納されている場合(ステップS2209:Yes)、情報処理装置100は、再帰処理を終了する。   Next, the information processing apparatus 100 determines whether or not the coordinates of N or more pixels are stored in the temporary storage area (step S2209). If the information is stored (step S2209: YES), the information processing apparatus 100 ends the recursion process.

一方で、格納されていない場合(ステップS2209:No)、情報処理装置100は、当該画素の周囲にある8画素のうち、未選択の画素があるか否かを判定する(ステップS2210)。ここで、未選択の画素がある場合(ステップS2210:Yes)、情報処理装置100は、ステップS2207の処理に戻る。一方で、未選択の画素がない場合(ステップS2210:No)、情報処理装置100は、再帰処理を終了する。これにより、情報処理装置100は、原子記号または結合記号のいずれかの記号の属性値を格納する画素を抽出することができる。   On the other hand, when not stored (step S2209: No), the information processing apparatus 100 determines whether there is an unselected pixel among the eight pixels around the pixel (step S2210). If there is an unselected pixel (step S2210: Yes), the information processing apparatus 100 returns to the process of step S2207. On the other hand, when there is no unselected pixel (step S2210: No), the information processing apparatus 100 ends the recursive process. Thereby, the information processing apparatus 100 can extract a pixel that stores an attribute value of either an atomic symbol or a bond symbol.

(構造情報埋込処理)
次に、図23を用いて、ステップS1907に示した構造情報埋込処理手順の一例について説明する。
(Structural information embedding process)
Next, an example of the structure information embedding process procedure shown in step S1907 will be described with reference to FIG.

図23は、構造情報埋込処理手順の一例を示すフローチャートである。図23において、情報処理装置100は、ステップS1904において選択した記号の属性のうち、未選択の属性を選択する(ステップS2301)。次に、情報処理装置100は、選択した属性を、Nビットの2進数で表現して、属性値を作成する(ステップS2302)。   FIG. 23 is a flowchart illustrating an example of the structure information embedding processing procedure. In FIG. 23, the information processing apparatus 100 selects an unselected attribute among the symbol attributes selected in step S1904 (step S2301). Next, the information processing apparatus 100 creates an attribute value by expressing the selected attribute in an N-bit binary number (step S2302).

そして、情報処理装置100は、グローバル記憶領域に格納されているN個の画素の画素情報の各々の画素情報と、Nビットの属性値の各々のビットの値と、を対応付ける(ステップS2303)。   Then, the information processing apparatus 100 associates each piece of pixel information of the N pieces of pixel information stored in the global storage area with each bit value of the N-bit attribute value (step S2303).

次に、情報処理装置100は、グローバル記憶領域に格納されているN個の画素の画素情報のうち、未選択の画素情報を選択する(ステップS2304)。そして、情報処理装置100は、選択した画素情報と、格納先画素情報と、のANDをとる(ステップS2305)。   Next, the information processing apparatus 100 selects unselected pixel information from the pixel information of N pixels stored in the global storage area (step S2304). Then, the information processing apparatus 100 performs AND between the selected pixel information and the storage destination pixel information (step S2305).

次に、情報処理装置100は、原子記号−属性対応情報テーブル300または結合記号−属性対応情報テーブル400と、選択した画素情報に対応する属性値のビットの値を参照して、ANDをとった結果を示すビット列を変更するか否かを判定する(ステップS2306)。ここで、変更しない場合(ステップS2306:No)、情報処理装置100は、ステップS2308の処理に移行する。   Next, the information processing apparatus 100 refers to the atomic symbol-attribute correspondence information table 300 or the combined symbol-attribute correspondence information table 400 and the bit value of the attribute value corresponding to the selected pixel information and takes an AND. It is determined whether or not to change the bit string indicating the result (step S2306). If no change is made (step S2306: NO), the information processing apparatus 100 proceeds to the process of step S2308.

一方で、変更する場合(ステップS2306:Yes)、情報処理装置100は、ANDをとった結果を示すビット列のうち、選択した属性に応じた位置にあるビットの値を、選択した画素情報に対応する属性値のビットの値に変更する(ステップS2307)。そして、情報処理装置100は、ステップS2308の処理に移行する。   On the other hand, when changing (step S2306: Yes), the information processing apparatus 100 corresponds to the selected pixel information with the value of the bit at the position corresponding to the selected attribute in the bit string indicating the result of the AND operation. The bit value of the attribute value to be changed is changed (step S2307). Then, the information processing apparatus 100 proceeds to the process of step S2308.

ステップS2308において、情報処理装置100は、選択した画素情報を、ステップS2305においてANDをとった結果、またはステップS2307において変更されたANDをとった結果に変更する(ステップS2308)。   In step S2308, the information processing apparatus 100 changes the selected pixel information to a result of taking an AND in step S2305 or a result of taking an AND changed in step S2307 (step S2308).

次に、情報処理装置100は、グローバル記憶領域に格納されているN個の画素の画素情報のうち、未選択の画素情報があるか否かを判定する(ステップS2309)。ここで、未選択の画素情報がある場合(ステップS2309:Yes)、情報処理装置100は、ステップS2304の処理に戻る。   Next, the information processing apparatus 100 determines whether there is unselected pixel information among the pixel information of N pixels stored in the global storage area (step S2309). If there is unselected pixel information (step S2309: YES), the information processing apparatus 100 returns to the process of step S2304.

一方で、未選択の画素情報がない場合(ステップS2309:No)、情報処理装置100は、ステップS1904において選択した記号の属性のうち、未選択の属性があるか否かを判定する(ステップS2310)。ここで、未選択の属性がある場合(ステップS2310:Yes)、情報処理装置100は、ステップS2301の処理に戻る。一方で、未選択の属性がない場合(ステップS2310:No)、情報処理装置100は、構造情報埋込処理を終了する。これにより、情報処理装置100は、画像情報に原子記号の属性値と結合記号の属性値とを埋め込むことができる。   On the other hand, when there is no unselected pixel information (step S2309: No), the information processing apparatus 100 determines whether there is an unselected attribute among the attributes of the symbols selected in step S1904 (step S2310). ). Here, when there is an unselected attribute (step S2310: Yes), the information processing apparatus 100 returns to the process of step S2301. On the other hand, when there is no unselected attribute (step S2310: No), the information processing apparatus 100 ends the structure information embedding process. Thereby, the information processing apparatus 100 can embed the attribute value of the atomic symbol and the attribute value of the bond symbol in the image information.

(第2の動作の具体例)
次に、図24および図25を用いて、第2の動作の具体例について説明する。
(Specific example of the second operation)
Next, a specific example of the second operation will be described with reference to FIGS.

図24および図25は、第2の動作の具体例を示す説明図である。図24の例では、情報処理装置100は、化合物「CH3−CHO(アセトアルデヒド)」の構造式111を描画した画像2400の画像情報の中から、構造式111に含まれる原子記号の属性と結合記号の属性とを特定する。図24の例では、画像2400が上部に示され、画像2400の左上部分を拡大したものが下部に示されている。画像2400は、図18に示したベース画像1800と同一の画像である。   24 and 25 are explanatory diagrams showing a specific example of the second operation. In the example of FIG. 24, the information processing apparatus 100 includes the atomic symbol attributes and bond symbols included in the structural formula 111 from the image information of the image 2400 in which the structural formula 111 of the compound “CH 3 -CHO (acetaldehyde)” is drawn. Identify the attributes. In the example of FIG. 24, the image 2400 is shown in the upper part, and the upper left part of the image 2400 is enlarged in the lower part. The image 2400 is the same image as the base image 1800 shown in FIG.

図24において、情報処理装置100は、例えば、符号2401に示す対象領域の選択を受け付ける。次に、情報処理装置100は、対象領域にある各々の画素の画素情報と、抽出用画素情報「000000100000010000001」と、をAND演算し、AND演算結果が「000000100000000000001」になる画素情報を抽出する。   In FIG. 24, the information processing apparatus 100 accepts selection of a target area indicated by reference numeral 2401, for example. Next, the information processing apparatus 100 performs an AND operation on the pixel information of each pixel in the target area and the extraction pixel information “000000100000000010000001”, and extracts pixel information in which the AND operation result is “000000100000000000001”.

これにより、情報処理装置100は、対象領域にある画素の画素情報の中から、「8,16,24ビット目」の各々のビットの値が、格納先の識別子「1,0,1」の各々の値に変更された画素情報を抽出することができる。換言すれば、情報処理装置100は、原子記号または結合記号のいずれかの記号の属性を示す値が格納された画素情報を抽出することができる。   As a result, the information processing apparatus 100 sets the value of each bit of “8th, 16th, 24th bits” of the pixel information of the pixels in the target area to the storage destination identifier “1, 0, 1”. Pixel information changed to each value can be extracted. In other words, the information processing apparatus 100 can extract pixel information in which a value indicating the attribute of either the atomic symbol or the bond symbol is stored.

そして、情報処理装置100は、抽出した画素情報の中で、隣接する画素同士の画素情報をグループ化する。図24の例では、座標(24,89)の画素、座標(24,90)の画素、座標(24,91)の画素、座標(24,92)の画素、座標(25,89)の画素、座標(25,90)の画素、および座標(25,91)の画素が、第1のグループになる。   Then, the information processing apparatus 100 groups the pixel information of adjacent pixels in the extracted pixel information. In the example of FIG. 24, a pixel with coordinates (24, 89), a pixel with coordinates (24, 90), a pixel with coordinates (24, 91), a pixel with coordinates (24, 92), and a pixel with coordinates (25, 89). , The pixel at coordinates (25, 90) and the pixel at coordinates (25, 91) are in the first group.

また、座標(49,87)の画素、座標(49,88)の画素、座標(49,89)の画素、座標(49,90)の画素、座標(49,91)の画素、座標(49,92)の画素、および座標(49,93)の画素が、第2のグループになる。   Also, a pixel with coordinates (49, 87), a pixel with coordinates (49, 88), a pixel with coordinates (49, 89), a pixel with coordinates (49, 90), a pixel with coordinates (49, 91), and a coordinate (49 , 92) and coordinates (49, 93) are in the second group.

また、座標(136,86)の画素、座標(137,85)の画素、座標(137,86)の画素、座標(137,87)の画素、座標(138,85)の画素、座標(138,86)の画素、および座標(139,85)の画素が、第3のグループになる。   Also, a pixel at coordinates (136, 86), a pixel at coordinates (137, 85), a pixel at coordinates (137, 86), a pixel at coordinates (137, 87), a pixel at coordinates (138, 85), and a coordinate (138 , 86) and the pixel at coordinates (139, 85) are in the third group.

次に、情報処理装置100は、各々のグループの画素情報から、原子記号の属性または結合記号の属性のいずれかの属性を特定する。情報処理装置100は、例えば、第2のグループの画素情報を、X座標値が小さい順に並べる。ここで、情報処理装置100は、X座標値が同一の画素の画素情報がある場合は、第2のグループの画素情報を、X座標値が同一の画素の画素情報のうちのY座標値が小さい順に並べる。   Next, the information processing apparatus 100 specifies either the attribute of the atomic symbol or the attribute of the bond symbol from the pixel information of each group. For example, the information processing apparatus 100 arranges the pixel information of the second group in ascending order of the X coordinate values. Here, when there is pixel information of the pixels having the same X coordinate value, the information processing apparatus 100 displays the pixel information of the second group as the Y coordinate value of the pixel information of the pixels having the same X coordinate value. Arrange in ascending order.

次に、情報処理装置100は、原子記号−属性対応情報テーブル300および結合記号−属性対応情報テーブル400に共通して、種別情報の属性値が格納されている位置「1ビット目」を特定する。そして、情報処理装置100は、種別情報の属性値が格納されている各々の画素情報の「1ビット目」の値を特定するために、各々の画素情報と、1ビット目のみ1を設定した抽出用画素情報「100000000000000000000」と、のAND演算を行う。これにより、情報処理装置100は、AND演算の結果から、各々の画素情報の1ビット目のビットの値が「0」、「0」、「0」、「0」、「0」、「1」、「0」であると特定する。   Next, in common with the atomic symbol-attribute correspondence information table 300 and the combined symbol-attribute correspondence information table 400, the information processing apparatus 100 specifies the position “first bit” where the attribute value of the type information is stored. . The information processing apparatus 100 sets each pixel information and 1 only for the first bit in order to specify the value of the “first bit” of each pixel information in which the attribute value of the type information is stored. An AND operation is performed on the extraction pixel information “100000000000000000000”. Accordingly, the information processing apparatus 100 determines that the value of the first bit of each pixel information is “0”, “0”, “0”, “0”, “0”, “1” from the result of the AND operation. ”And“ 0 ”.

次に、情報処理装置100は、特定したビットの値を並べたビット列「0000010」を、「記号種別」の属性値として特定する。そして、情報処理装置100は、属性値「0000010」が示す属性「結合記号」を特定する。   Next, the information processing apparatus 100 specifies the bit string “0000010” in which the specified bit values are arranged as an attribute value of “symbol type”. Then, the information processing apparatus 100 specifies the attribute “joined symbol” indicated by the attribute value “0000010”.

また、情報処理装置100は、属性「結合記号」が特定されたため、結合記号−属性対応情報テーブル400を参照して、他の属性の属性値が格納されている位置を特定して、他の属性の属性値を特定する。情報処理装置100は、例えば、「立体種別」の属性値が格納されている位置「20ビット目」を特定する。   In addition, since the attribute “combined symbol” is specified, the information processing apparatus 100 refers to the combined symbol-attribute correspondence information table 400 to specify the position where the attribute value of another attribute is stored, Specify the attribute value of the attribute. For example, the information processing apparatus 100 specifies the position “20th bit” in which the attribute value of “solid type” is stored.

次に、情報処理装置100は、「立体種別」の属性値が格納されている各々の画素情報の「20ビット目」の値を特定するために、各々の画素情報と、20ビット目のみ1を設定した抽出用画素情報「000000000000000000010」と、のAND演算を行う。これにより、情報処理装置100は、AND演算の結果から、各々の画素情報の20ビット目のビットの値が「0」、「0」、「0」、「0」、「0」、「1」、「1」であると特定する。   Next, in order to specify the value of “20th bit” of each pixel information in which the attribute value of “stereoscopic type” is stored, the information processing apparatus 100 sets each pixel information and only the 20th bit to 1 And AND pixel information for extraction “000000000000000000010” set. Thereby, the information processing apparatus 100 determines that the value of the 20th bit of each pixel information is “0”, “0”, “0”, “0”, “0”, “1” from the result of the AND operation. ”And“ 1 ”.

次に、情報処理装置100は、特定したビットの値を並べたビット列「0000011」を、「立体種別」の属性値として特定する。そして、情報処理装置100は、属性値「0000011」が示す「下」を特定する。これにより、情報処理装置100は、画像情報から結合記号の属性を特定することができる。   Next, the information processing apparatus 100 specifies the bit string “0000011” in which the specified bit values are arranged as an attribute value of “solid type”. Then, the information processing apparatus 100 specifies “lower” indicated by the attribute value “0000011”. Thereby, the information processing apparatus 100 can identify the attribute of the combined symbol from the image information.

また、情報処理装置100は、例えば、第3のグループの画素情報を、X座標値が小さい順に並べる。ここで、情報処理装置100は、X座標値が同一の画素の画素情報がある場合は、第3のグループの画素情報を、X座標値が同一の画素の画素情報のうちのY座標値が小さい順に並べる。   Further, for example, the information processing apparatus 100 arranges the pixel information of the third group in ascending order of the X coordinate values. Here, when there is pixel information of the pixels having the same X coordinate value, the information processing apparatus 100 displays the pixel information of the third group and the Y coordinate value of the pixel information of the pixels having the same X coordinate value. Arrange in ascending order.

次に、情報処理装置100は、原子記号−属性対応情報テーブル300および結合記号−属性対応情報テーブル400に共通して、種別情報の属性値が格納されている位置「1ビット目」を特定する。そして、情報処理装置100は、種別情報の属性値が格納されている各々の画素情報の「1ビット目」の値を特定するために、各々の画素情報と、1ビット目のみ1を設定した抽出用画素情報「100000000000000000000」と、のAND演算を行う。これにより、情報処理装置100は、AND演算の結果から、各々の画素情報の1ビット目のビットの値が「0」、「0」、「0」、「0」、「0」、「0」、「1」であると特定する。   Next, in common with the atomic symbol-attribute correspondence information table 300 and the combined symbol-attribute correspondence information table 400, the information processing apparatus 100 specifies the position “first bit” where the attribute value of the type information is stored. . The information processing apparatus 100 sets each pixel information and 1 only for the first bit in order to specify the value of the “first bit” of each pixel information in which the attribute value of the type information is stored. An AND operation is performed on the extraction pixel information “100000000000000000000”. Thereby, the information processing apparatus 100 determines that the value of the first bit of each pixel information is “0”, “0”, “0”, “0”, “0”, “0” from the result of the AND operation. ”And“ 1 ”.

次に、情報処理装置100は、特定したビットの値を並べたビット列「0000001」を、「記号種別」の属性値として特定する。そして、情報処理装置100は、属性値「0000001」が示す属性「原子記号」を特定する。   Next, the information processing apparatus 100 specifies the bit string “0000001” in which the specified bit values are arranged as an attribute value of “symbol type”. Then, the information processing apparatus 100 specifies the attribute “atomic symbol” indicated by the attribute value “0000001”.

また、情報処理装置100は、属性「原子記号」が特定されたため、原子記号−属性対応情報テーブル300を参照して、他の属性の属性値が格納されている位置を特定して、他の属性の属性値を特定する。情報処理装置100は、例えば、「原子ID」の属性値が格納されている位置「2,3ビット目」を特定する。   In addition, since the attribute “atomic symbol” is specified, the information processing apparatus 100 refers to the atomic symbol-attribute correspondence information table 300, specifies the position where the attribute value of another attribute is stored, Specify the attribute value of the attribute. For example, the information processing apparatus 100 specifies the position “second and third bits” where the attribute value of “atom ID” is stored.

次に、情報処理装置100は、「原子ID」の属性値が格納されている各々の画素情報の「2ビット目」の値を特定するために、各々の画素情報と、2ビット目のみ1を設定した抽出用画素情報「010000000000000000000」と、のAND演算を行う。これにより、情報処理装置100は、AND演算の結果から、各々の画素情報の2ビット目のビットの値が「0」、「0」、「0」、「0」、「0」、「0」、「0」であると特定する。   Next, in order to specify the value of “second bit” of each pixel information in which the attribute value of “atom ID” is stored, the information processing apparatus 100 sets each pixel information and only the second bit to 1 AND operation with the pixel information for extraction “01000000000000000000” in which is set. Thereby, the information processing apparatus 100 determines that the value of the second bit of each pixel information is “0”, “0”, “0”, “0”, “0”, “0” from the result of the AND operation. ”And“ 0 ”.

また、情報処理装置100は、「原子ID」の属性値が格納されている各々の画素情報の「3ビット目」の値を特定するために、各々の画素情報と、3ビット目のみ1を設定した抽出用画素情報「001000000000000000000」と、のAND演算を行う。これにより、情報処理装置100は、AND演算の結果から、各々の画素情報の3ビット目のビットの値が「0」、「0」、「0」、「0」、「0」、「0」、「1」であると特定する。   Further, the information processing apparatus 100 sets each pixel information and 1 only in the third bit in order to specify the value of “third bit” of each pixel information in which the attribute value of “atom ID” is stored. An AND operation is performed on the set pixel information for extraction “001000000000000000000”. Thereby, the information processing apparatus 100 determines that the value of the third bit of each pixel information is “0”, “0”, “0”, “0”, “0”, “0” from the result of the AND operation. ”And“ 1 ”.

次に、情報処理装置100は、特定したビットの値を並べたビット列「00000000000001」を、「原子ID」の属性値として特定する。そして、情報処理装置100は、属性値「00000000000001」が示す原子ID「1」を特定する。これにより、情報処理装置100は、画像情報から原子記号の属性を特定することができる。   Next, the information processing apparatus 100 specifies the bit string “00000000000001” in which the specified bit values are arranged as the attribute value of “Atom ID”. Then, the information processing apparatus 100 specifies the atom ID “1” indicated by the attribute value “00000000000001”. Thereby, the information processing apparatus 100 can identify the attribute of the atomic symbol from the image information.

図25において、情報処理装置100は、図24において特定した原子記号の属性と結合記号の属性とから構造情報を作成して、作成した構造情報をポップアップ表示する。これにより、情報処理装置100の利用者は、自ら化合物の構造式を解析しなくても、構造情報を把握することができ、構造式の化学的性質を把握することができる。また、情報処理装置100の利用者は、構造情報を元に、構造式のうちの対象領域の部分を含む別の構造式を作成することができる。   In FIG. 25, the information processing apparatus 100 creates structure information from the attribute of the atomic symbol and the attribute of the bond symbol specified in FIG. 24, and displays the created structure information in a pop-up manner. As a result, the user of the information processing apparatus 100 can grasp the structure information without analyzing the structural formula of the compound by itself, and can grasp the chemical properties of the structural formula. Further, the user of the information processing apparatus 100 can create another structural formula including the target region portion of the structural formula based on the structural information.

(構造情報出力処理)
次に、図26を用いて、情報処理装置100の構造情報出力処理手順の一例について説明する。構造情報出力処理は、図24および図25に示した第2の動作を行うための処理である。
(Structural information output processing)
Next, an example of the structure information output processing procedure of the information processing apparatus 100 will be described with reference to FIG. The structure information output process is a process for performing the second operation shown in FIGS.

図26は、構造情報出力処理手順の一例を示すフローチャートである。図26において、情報処理装置100は、化合物の構造物が描画された画像の画像情報の中の対象領域の選択を受け付ける(ステップS2601)。次に、情報処理装置100は、対象領域の中から、所定の位置にあるビットの値が所定の値である画素情報を抽出する(ステップS2602)。そして、情報処理装置100は、抽出した画素情報のうち、隣接する画素同士の画素情報をグループ化する(ステップS2603)。   FIG. 26 is a flowchart illustrating an example of the structure information output processing procedure. In FIG. 26, the information processing apparatus 100 accepts selection of a target region in the image information of an image in which a compound structure is drawn (step S2601). Next, the information processing apparatus 100 extracts pixel information whose bit value at a predetermined position is a predetermined value from the target region (step S2602). Then, the information processing apparatus 100 groups pixel information of adjacent pixels among the extracted pixel information (step S2603).

次に、情報処理装置100は、各々のグループ内の画素情報から、原子記号の属性または結合記号の属性のいずれかを特定する(ステップS2604)。そして、情報処理装置100は、特定した原子記号の属性または結合記号の属性を、構造情報として出力する(ステップS2605)。次に、情報処理装置100は、構造情報出力処理を終了する。   Next, the information processing apparatus 100 specifies either the atomic symbol attribute or the bond symbol attribute from the pixel information in each group (step S2604). Then, the information processing apparatus 100 outputs the identified atomic symbol attribute or bond symbol attribute as structure information (step S2605). Next, the information processing apparatus 100 ends the structure information output process.

これにより、情報処理装置100は、画像情報から原子記号の属性値と結合記号の属性値とを抽出することができる。また、情報処理装置100は、抽出した原子記号の属性値から特定した原子記号の属性と抽出した結合記号の属性値から特定した結合記号の属性とを構造情報として出力することができる。このため、情報処理装置100の利用者は、構造情報を把握することができる。   Thereby, the information processing apparatus 100 can extract the attribute value of the atomic symbol and the attribute value of the bond symbol from the image information. Further, the information processing apparatus 100 can output the attribute of the atomic symbol specified from the attribute value of the extracted atomic symbol and the attribute of the bond symbol specified from the extracted attribute value of the bond symbol as structure information. For this reason, the user of the information processing apparatus 100 can grasp the structure information.

以上説明したように、情報処理プログラムによれば、化合物の構造式111を描画した画像情報に含まれる原子記号または結合記号を表す画素群の画素の画素情報の一部を、原子記号の属性値または結合記号の属性値に変更することができる。これにより、情報処理プログラムは、化合物の構造式111を描画した画像情報と、化合物の構造式111に含まれる原子記号の属性と結合記号の属性と、を一体として記憶しておくことができる。このため、情報処理プログラムの利用者は、画像情報と、原子記号の属性と結合記号の属性と、を対応付けて別個に管理しなくてもよい。   As described above, according to the information processing program, a part of the pixel information of the pixel of the pixel group representing the atomic symbol or bond symbol included in the image information in which the structural formula 111 of the compound is drawn is converted into the attribute value of the atomic symbol. Or it can be changed to the attribute value of the combination symbol. As a result, the information processing program can integrally store the image information depicting the structural formula 111 of the compound and the attribute of the atomic symbol and the attribute of the bond symbol included in the structural formula 111 of the compound. For this reason, the user of the information processing program does not have to manage the image information, the atomic symbol attribute, and the bond symbol attribute in association with each other.

情報処理プログラムは、例えば、化合物の構造式111を描画した画像情報と、原子記号または結合記号の描画位置と、を一体として記憶しておくことができる。また、情報処理プログラムは、例えば、化合物の構造式111を描画した画像情報と、原子記号または前記結合記号のいずれかであることを示す種別情報と、を一体として記憶しておくことができる。   The information processing program can store, for example, the image information in which the structural formula 111 of the compound is drawn and the drawing position of the atomic symbol or bond symbol as a unit. In addition, the information processing program can, for example, integrally store image information in which the structural formula 111 of the compound is drawn and type information that indicates either the atomic symbol or the bond symbol.

また、情報処理プログラムは、例えば、化合物の構造式111を描画した画像情報と、原子の原子番号と、構造式における原子の電荷と、を一体として記憶しておくことができる。また、情報処理プログラムは、例えば、化合物の構造式111を描画した画像情報と、結合記号の結合種別と、結合記号の立体種別と、を一体として記憶しておくことができる。   In addition, the information processing program can store, for example, image information depicting the structural formula 111 of the compound, the atomic number of the atom, and the charge of the atom in the structural formula as a unit. Further, the information processing program can store, for example, image information in which the structural formula 111 of the compound is drawn, the coupling type of the coupling symbol, and the solid type of the coupling symbol as a unit.

また、情報処理プログラムによれば、属性値が複数ビットで表現される場合は、画像情報に含まれる複数の画素の画素情報に、属性値を分けて格納することができる。これにより、情報処理プログラムは、1つの画素を用いた場合に比べて、属性値として画像情報の中に格納可能なビット長を長くすることができる。   Further, according to the information processing program, when the attribute value is expressed by a plurality of bits, the attribute value can be stored separately in the pixel information of a plurality of pixels included in the image information. As a result, the information processing program can increase the bit length that can be stored in the image information as the attribute value, compared to the case where one pixel is used.

また、情報処理プログラムによれば、画素情報の中に属性値を格納した場合、属性値を格納した画素情報を示すビット列の所定の位置にあるビットの値を、格納先の識別子を示す値に変更する。これにより、情報処理プログラムは、属性値が格納された画素情報の抽出のための識別子を、画素情報に格納することができる。   Further, according to the information processing program, when an attribute value is stored in the pixel information, the value of the bit at a predetermined position in the bit string indicating the pixel information storing the attribute value is set as a value indicating the identifier of the storage destination. change. Thereby, the information processing program can store the identifier for extracting the pixel information in which the attribute value is stored in the pixel information.

また、情報処理プログラムによれば、画像情報の中から属性値が格納された画素情報を抽出し、原子記号の属性または結合記号の属性を特定することができる。これにより、情報処理プログラムの利用者は、画像情報に描画された化合物の構造式111の構造情報を把握することができる。   Further, according to the information processing program, it is possible to extract pixel information in which attribute values are stored from image information, and to specify atomic symbol attributes or bond symbol attributes. Thereby, the user of the information processing program can grasp the structural information of the structural formula 111 of the compound drawn in the image information.

また、画像情報から原子記号と結合記号とを含む構造式を認識する文字図形認識ソフトウェアによって、原子記号の属性と結合記号の属性とを特定する場合が考えられる。しかしながら、この場合、文字図形認識ソフトウェアの開発に化学知識やプログラミングスキルが必要となり、文字図形認識ソフトウェアのコストが増大してしまう。一方で、情報処理プログラムによれば、画像情報に対するビット演算によって原子記号の属性と結合記号の属性とを特定することができ、文字図形認識ソフトウェアを開発する場合に比べてコストを低減することができる。   Further, there may be a case where the attribute of the atomic symbol and the attribute of the bond symbol are specified by the character / graphic recognition software that recognizes the structural formula including the atomic symbol and the bond symbol from the image information. However, in this case, chemical knowledge and programming skills are required for the development of the character graphic recognition software, and the cost of the character graphic recognition software increases. On the other hand, according to the information processing program, it is possible to specify the attribute of the atomic symbol and the attribute of the bond symbol by bit operation on the image information, and the cost can be reduced as compared with the case of developing character / graphic recognition software. it can.

なお、本実施の形態で説明した情報処理方法は、予め用意されたプログラムをパーソナル・コンピュータやワークステーション等のコンピュータで実行することにより実現することができる。本情報処理プログラムは、ハードディスク、フレキシブルディスク、CD−ROM、MO、DVD等のコンピュータで読み取り可能な記録媒体に記録され、コンピュータによって記録媒体から読み出されることによって実行される。また本情報処理プログラムは、インターネット等のネットワークを介して配布してもよい。   The information processing method described in this embodiment can be realized by executing a program prepared in advance on a computer such as a personal computer or a workstation. The information processing program is recorded on a computer-readable recording medium such as a hard disk, a flexible disk, a CD-ROM, an MO, and a DVD, and is executed by being read from the recording medium by the computer. The information processing program may be distributed through a network such as the Internet.

上述した実施の形態に関し、さらに以下の付記を開示する。   The following additional notes are disclosed with respect to the embodiment described above.

(付記1)コンピュータに、
描画領域に描画される化合物の構造式に含まれる原子を示す原子記号の属性と、前記構造式に含まれる原子間の結合を示す結合記号の属性と、を含む構造情報を取得し、
取得した前記構造情報を参照して、前記構造式の中から選択された前記原子記号または前記結合記号のいずれかの記号の属性を特定し、
前記構造情報を参照して、前記描画領域上に描画される前記構造式の画像情報に含まれる前記記号を表す画素群のうちのいずれかの画素の画素情報を特定し、
特定した前記画素の画素情報を示すビット列のうち、特定した前記属性の種別に応じた位置にあるビットの値を、特定した前記属性を示す値に変更する、
処理を実行させることを特徴とする情報処理プログラム。
(Supplementary note 1)
Obtaining structural information including an attribute of an atomic symbol indicating an atom included in a structural formula of a compound drawn in the drawing area and an attribute of a bond symbol indicating a bond between atoms included in the structural formula;
With reference to the acquired structural information, the attribute of either the atomic symbol or the bond symbol selected from the structural formula is specified,
With reference to the structure information, specify pixel information of any pixel in the pixel group representing the symbol included in the image information of the structural formula drawn on the drawing area,
Of the bit string indicating the pixel information of the specified pixel, the value of the bit at a position corresponding to the type of the specified attribute is changed to a value indicating the specified attribute.
An information processing program for executing a process.

(付記2)前記画素情報を特定する処理は、
前記属性を示す値が複数のビットで表現される場合に、前記記号を表す画素群のうちの前記複数のビットの各々のビットに対応する画素の画素情報を特定し、
前記変更する処理は、
特定した前記各々のビットに対応する画素の画素情報を示すビット列のうち、前記属性の種別に応じた位置にあるビットの値を、前記各々のビットの値に変更することを特徴とする付記1に記載の情報処理プログラム。
(Supplementary Note 2) The process of specifying the pixel information is as follows:
When the value indicating the attribute is represented by a plurality of bits, the pixel information of the pixel corresponding to each bit of the plurality of bits of the pixel group representing the symbol is specified,
The process to change is
Supplementary note 1 wherein a bit value indicating pixel information of a pixel corresponding to each identified bit is changed to a value of each bit at a position corresponding to the attribute type. Information processing program described in 1.

(付記3)前記コンピュータに、
特定した前記画素情報を示すビット列のうち、特定した前記属性に応じた位置とは異なる所定の位置にあるビットの値を、所定の値に変更する処理を実行させることを特徴とする付記1または2に記載の情報処理プログラム。
(Supplementary note 3)
Supplementary note 1 or 2, wherein a process of changing a value of a bit at a predetermined position different from a position corresponding to the specified attribute from the bit string indicating the specified pixel information to a predetermined value is executed. 2. The information processing program according to 2.

(付記4)前記コンピュータに、
前記記号の属性に応じた位置にあるビットの値が前記記号の属性を示すビットの値に変更され、かつ、前記所定の位置にあるビットの値が前記所定の値に変更された画素情報を含む、前記構造式の画像情報の中から、前記所定の位置にあるビットの値が前記所定の値である画素情報を抽出し、
抽出した画素情報を示すビット列のうち、前記記号の属性の種別に応じた位置にあるビットの値に基づいて、前記属性を特定する、
処理を実行させることを特徴とする付記3に記載の情報処理プログラム。
(Supplementary note 4)
Pixel information in which the value of the bit at the position corresponding to the attribute of the symbol is changed to the value of the bit indicating the attribute of the symbol, and the value of the bit at the predetermined position is changed to the predetermined value Including pixel information whose bit value at the predetermined position is the predetermined value from the image information of the structural formula,
In the bit string indicating the extracted pixel information, the attribute is specified based on the value of the bit at a position corresponding to the type of the attribute of the symbol.
The information processing program according to appendix 3, wherein the processing is executed.

(付記5)前記記号の属性は、前記描画領域上の前記記号の描画位置を含み、
前記画素情報を特定する処理は、
前記構造情報に含まれる前記記号の描画位置を参照して、前記記号を表す画素群のうちのいずれかの画素の画素情報を特定することを特徴とする付記1〜4のいずれか一つに記載の情報処理プログラム。
(Supplementary Note 5) The attribute of the symbol includes a drawing position of the symbol on the drawing area,
The process of specifying the pixel information includes
According to any one of supplementary notes 1 to 4, wherein pixel information of any pixel in a pixel group representing the symbol is specified with reference to a drawing position of the symbol included in the structure information The information processing program described.

(付記6)前記記号の属性は、前記記号が前記原子記号または前記結合記号のいずれかであることを示す種別情報を含むことを特徴とする付記1〜5のいずれか一つに記載の情報処理プログラム。 (Supplementary note 6) The information according to any one of supplementary notes 1 to 5, wherein the attribute of the symbol includes type information indicating that the symbol is either the atomic symbol or the bond symbol. Processing program.

(付記7)前記記号の属性は、前記記号が前記原子記号である場合には、前記原子の原子番号と、前記構造式における前記原子の電荷と、前記描画領域上の前記原子記号の描画位置と、を含むことを特徴とする付記1〜6のいずれか一つに記載の情報処理プログラム。 (Supplementary note 7) When the symbol is the atomic symbol, the attribute of the symbol is the atomic number of the atom, the charge of the atom in the structural formula, and the drawing position of the atomic symbol on the drawing region And the information processing program according to any one of appendices 1 to 6,

(付記8)前記記号の属性は、前記記号が前記結合記号である場合には、前記結合の結合種別と、前記結合の立体種別と、前記描画領域上の前記結合記号の描画位置と、を含むことを特徴とする付記1〜7のいずれか一つに記載の情報処理プログラム。 (Supplementary note 8) When the symbol is the combination symbol, the attribute of the symbol includes the combination type of the combination, the solid type of the combination, and the drawing position of the combination symbol on the drawing area. The information processing program according to any one of appendices 1 to 7, wherein the information processing program is included.

(付記9)コンピュータに、
描画領域上に描画される化合物の構造式の画像情報の中から、前記構造式に含まれる原子記号または結合記号のいずれかの記号を示す画素群のいずれかの画素の画素情報であって、前記画素情報を示すビット列のうちの前記記号の属性に応じた位置にあるビットの値が前記属性を示す値に変更された前記画素情報を抽出し、
抽出した前記画素情報を示すビット列のうちの前記属性に応じた位置にあるビットの値に基づいて、前記記号の属性を特定する、
処理を実行させることを特徴とする情報処理プログラム。
(Appendix 9)
Among the image information of the structural formula of the compound drawn on the drawing area, pixel information of any pixel of the pixel group indicating either the atomic symbol or the bond symbol included in the structural formula, Extracting the pixel information in which the value of the bit at the position corresponding to the attribute of the symbol in the bit string indicating the pixel information is changed to the value indicating the attribute;
Identifying the attribute of the symbol based on the value of the bit at the position corresponding to the attribute in the extracted bit string indicating the pixel information;
An information processing program for executing a process.

(付記10)コンピュータが、
描画領域に描画される化合物の構造式に含まれる原子を示す原子記号の属性と、前記構造式に含まれる原子間の結合を示す結合記号の属性と、を含む構造情報を取得し、
取得した前記構造情報を参照して、前記構造式の中から選択された前記原子記号または前記結合記号のいずれかの記号の属性を特定し、
前記構造情報を参照して、前記描画領域上に描画される前記構造式の画像情報に含まれる前記記号を表す画素群のうちのいずれかの画素の画素情報を特定し、
特定した前記画素の画素情報を示すビット列のうち、特定した前記属性の種別に応じた位置にあるビットの値を、特定した前記属性を示す値に変更する、
処理を実行することを特徴とする情報処理方法。
(Supplementary note 10)
Obtaining structural information including an attribute of an atomic symbol indicating an atom included in a structural formula of a compound drawn in the drawing area and an attribute of a bond symbol indicating a bond between atoms included in the structural formula;
With reference to the acquired structural information, the attribute of either the atomic symbol or the bond symbol selected from the structural formula is specified,
With reference to the structure information, specify pixel information of any pixel in the pixel group representing the symbol included in the image information of the structural formula drawn on the drawing area,
Of the bit string indicating the pixel information of the specified pixel, the value of the bit at a position corresponding to the type of the specified attribute is changed to a value indicating the specified attribute.
An information processing method characterized by executing processing.

(付記11)コンピュータが、
描画領域上に描画される化合物の構造式の画像情報の中から、前記構造式に含まれる原子記号または結合記号のいずれかの記号を示す画素群のいずれかの画素の画素情報であって、前記画素情報を示すビット列のうちの前記記号の属性に応じた位置にあるビットの値が前記属性を示す値に変更された前記画素情報を抽出し、
抽出した前記画素情報を示すビット列のうちの前記属性に応じた位置にあるビットの値に基づいて、前記記号の属性を特定する、
処理を実行することを特徴とする情報処理方法。
(Appendix 11) The computer
Among the image information of the structural formula of the compound drawn on the drawing area, pixel information of any pixel of the pixel group indicating either the atomic symbol or the bond symbol included in the structural formula, Extracting the pixel information in which the value of the bit at the position corresponding to the attribute of the symbol in the bit string indicating the pixel information is changed to the value indicating the attribute;
Identifying the attribute of the symbol based on the value of the bit at the position corresponding to the attribute in the extracted bit string indicating the pixel information;
An information processing method characterized by executing processing.

(付記12)描画領域に描画される化合物の構造式に含まれる原子を示す原子記号の属性と、前記構造式に含まれる原子間の結合を示す結合記号の属性と、を含む構造情報を取得する取得部と、
前記取得部によって取得された前記構造情報を参照して、前記構造式の中から選択された前記原子記号または前記結合記号のいずれかの記号の属性を特定する第1の特定部と、
前記構造情報を参照して、前記描画領域上に描画される前記構造式の画像情報に含まれる前記記号を表す画素群のうちのいずれかの画素の画素情報を特定する第2の特定部と、
前記第2の特定部によって特定された前記画素の画素情報を示すビット列のうち、前記第1の特定部によって特定された前記属性の種別に応じた位置にあるビットの値を、前記第1の特定部によって特定された前記属性を示す値に変更する変更部と、
を有することを特徴とする情報処理装置。
(Supplementary Note 12) Acquire structural information including an attribute of an atomic symbol indicating an atom included in a structural formula of a compound drawn in the drawing area and an attribute of a bond symbol indicating a bond between atoms included in the structural formula An acquisition unit to
A first specifying unit that specifies an attribute of a symbol of either the atomic symbol or the bond symbol selected from the structural formula with reference to the structural information acquired by the acquiring unit;
A second specifying unit that specifies pixel information of any pixel in the pixel group representing the symbol included in the image information of the structural formula drawn on the drawing area with reference to the structure information; ,
Of the bit string indicating the pixel information of the pixel specified by the second specifying unit, the value of the bit at the position corresponding to the type of the attribute specified by the first specifying unit is set as the first value. A changing unit for changing the value to the value specified by the specifying unit;
An information processing apparatus comprising:

(付記13)描画領域上に描画される化合物の構造式の画像情報の中から、前記構造式に含まれる原子記号または結合記号のいずれかの記号を示す画素群のいずれかの画素の画素情報であって、前記画素情報を示すビット列のうちの前記記号の属性に応じた位置にあるビットの値が前記属性を示す値に変更された前記画素情報を抽出する抽出部と、
前記抽出部によって抽出された前記画素情報を示すビット列のうちの前記属性に応じた位置にあるビットの値に基づいて、前記記号の属性を特定する特定部と、
を有することを特徴とする情報処理装置。
(Supplementary note 13) Pixel information of any pixel of a pixel group indicating either an atomic symbol or a bond symbol included in the structural formula from the image information of the structural formula of the compound drawn on the drawing area An extracting unit for extracting the pixel information in which a value of a bit at a position corresponding to the attribute of the symbol in the bit string indicating the pixel information is changed to a value indicating the attribute;
A specifying unit that specifies an attribute of the symbol based on a value of a bit at a position corresponding to the attribute in a bit string indicating the pixel information extracted by the extracting unit;
An information processing apparatus comprising:

100 情報処理装置
501 取得部
502 第1の特定部
503 第2の特定部
504 第1の変更部
505 第2の変更部
506 抽出部
507 第3の特定部
DESCRIPTION OF SYMBOLS 100 Information processing apparatus 501 Acquisition part 502 1st specific part 503 2nd specific part 504 1st change part 505 2nd change part 506 Extraction part 507 3rd specific part

Claims (6)

コンピュータに、
描画領域に描画される化合物の構造式に含まれる原子を示す原子記号の属性と、前記構造式に含まれる原子間の結合を示す結合記号の属性と、を含む構造情報を取得し、
取得した前記構造情報を参照して、前記構造式の中から選択された前記原子記号または前記結合記号のいずれかの記号の属性を特定し、
前記構造情報を参照して、前記描画領域上に描画される前記構造式の画像情報に含まれる前記記号を表す画素群のうちのいずれかの画素の画素情報を特定し、
特定した前記画素の画素情報を示すビット列のうち、特定した前記属性の種別に応じた位置にあるビットの値を、特定した前記属性を示す値に変更する、
処理を実行させることを特徴とする情報処理プログラム。
On the computer,
Obtaining structural information including an attribute of an atomic symbol indicating an atom included in a structural formula of a compound drawn in the drawing area and an attribute of a bond symbol indicating a bond between atoms included in the structural formula;
With reference to the acquired structural information, the attribute of either the atomic symbol or the bond symbol selected from the structural formula is specified,
With reference to the structure information, specify pixel information of any pixel in the pixel group representing the symbol included in the image information of the structural formula drawn on the drawing area,
Of the bit string indicating the pixel information of the specified pixel, the value of the bit at a position corresponding to the type of the specified attribute is changed to a value indicating the specified attribute.
An information processing program for executing a process.
前記画素情報を特定する処理は、
前記属性を示す値が複数のビットで表現される場合に、前記記号を表す画素群のうちの前記複数のビットの各々のビットに対応する画素の画素情報を特定し、
前記変更する処理は、
特定した前記各々のビットに対応する画素の画素情報を示すビット列のうち、前記属性の種別に応じた位置にあるビットの値を、前記各々のビットの値に変更することを特徴とする請求項1に記載の情報処理プログラム。
The process of specifying the pixel information includes
When the value indicating the attribute is represented by a plurality of bits, the pixel information of the pixel corresponding to each bit of the plurality of bits of the pixel group representing the symbol is specified,
The process to change is
The bit value indicating the pixel information of the pixel corresponding to each of the specified bits is changed to a value of each of the bits at a position corresponding to the attribute type. 1. An information processing program according to 1.
前記コンピュータに、
特定した前記画素情報を示すビット列のうち、特定した前記属性に応じた位置とは異なる所定の位置にあるビットの値を、所定の値に変更する処理を実行させることを特徴とする請求項1または2に記載の情報処理プログラム。
In the computer,
2. A process of changing a value of a bit at a predetermined position different from a position corresponding to the specified attribute in a bit string indicating the specified pixel information to a predetermined value is executed. Or the information processing program of 2.
前記コンピュータに、
前記記号の属性に応じた位置にあるビットの値が前記記号の属性を示すビットの値に変更され、かつ、前記所定の位置にあるビットの値が前記所定の値に変更された画素情報を含む、前記構造式の画像情報の中から、前記所定の位置にあるビットの値が前記所定の値である画素情報を抽出し、
抽出した画素情報を示すビット列のうち、前記記号の属性の種別に応じた位置にあるビットの値に基づいて、前記属性を特定する、
処理を実行させることを特徴とする請求項3に記載の情報処理プログラム。
In the computer,
Pixel information in which the value of the bit at the position corresponding to the attribute of the symbol is changed to the value of the bit indicating the attribute of the symbol, and the value of the bit at the predetermined position is changed to the predetermined value Including pixel information whose bit value at the predetermined position is the predetermined value from the image information of the structural formula,
In the bit string indicating the extracted pixel information, the attribute is specified based on the value of the bit at a position corresponding to the type of the attribute of the symbol.
The information processing program according to claim 3, wherein processing is executed.
コンピュータが、
描画領域に描画される化合物の構造式に含まれる原子を示す原子記号の属性と、前記構造式に含まれる原子間の結合を示す結合記号の属性と、を含む構造情報を取得し、
取得した前記構造情報を参照して、前記構造式の中から選択された前記原子記号または前記結合記号のいずれかの記号の属性を特定し、
前記構造情報を参照して、前記描画領域上に描画される前記構造式の画像情報に含まれる前記記号を表す画素群のうちのいずれかの画素の画素情報を特定し、
特定した前記画素の画素情報を示すビット列のうち、特定した前記属性の種別に応じた位置にあるビットの値を、特定した前記属性を示す値に変更する、
処理を実行することを特徴とする情報処理方法。
Computer
Obtaining structural information including an attribute of an atomic symbol indicating an atom included in a structural formula of a compound drawn in the drawing area and an attribute of a bond symbol indicating a bond between atoms included in the structural formula;
With reference to the acquired structural information, the attribute of either the atomic symbol or the bond symbol selected from the structural formula is specified,
With reference to the structure information, specify pixel information of any pixel in the pixel group representing the symbol included in the image information of the structural formula drawn on the drawing area,
Of the bit string indicating the pixel information of the specified pixel, the value of the bit at a position corresponding to the type of the specified attribute is changed to a value indicating the specified attribute.
An information processing method characterized by executing processing.
描画領域に描画される化合物の構造式に含まれる原子を示す原子記号の属性と、前記構造式に含まれる原子間の結合を示す結合記号の属性と、を含む構造情報を取得する取得部と、
前記取得部によって取得された前記構造情報を参照して、前記構造式の中から選択された前記原子記号または前記結合記号のいずれかの記号の属性を特定する第1の特定部と、
前記構造情報を参照して、前記描画領域上に描画される前記構造式の画像情報に含まれる前記記号を表す画素群のうちのいずれかの画素の画素情報を特定する第2の特定部と、
前記第2の特定部によって特定された前記画素の画素情報を示すビット列のうち、前記第1の特定部によって特定された前記属性の種別に応じた位置にあるビットの値を、前記第1の特定部によって特定された前記属性を示す値に変更する変更部と、
を有することを特徴とする情報処理装置。
An acquisition unit for acquiring structural information including an attribute of an atomic symbol indicating an atom included in a structural formula of a compound drawn in a drawing area and an attribute of a bond symbol indicating a bond between atoms included in the structural formula; ,
A first specifying unit that specifies an attribute of a symbol of either the atomic symbol or the bond symbol selected from the structural formula with reference to the structural information acquired by the acquiring unit;
A second specifying unit that specifies pixel information of any pixel in the pixel group representing the symbol included in the image information of the structural formula drawn on the drawing area with reference to the structure information; ,
Of the bit string indicating the pixel information of the pixel specified by the second specifying unit, the value of the bit at the position corresponding to the type of the attribute specified by the first specifying unit is set as the first value. A changing unit for changing the value to the value specified by the specifying unit;
An information processing apparatus comprising:
JP2013057388A 2013-03-19 2013-03-19 Information processing program, information processing method, and information processing apparatus Expired - Fee Related JP6051988B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013057388A JP6051988B2 (en) 2013-03-19 2013-03-19 Information processing program, information processing method, and information processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013057388A JP6051988B2 (en) 2013-03-19 2013-03-19 Information processing program, information processing method, and information processing apparatus

Publications (2)

Publication Number Publication Date
JP2014182663A JP2014182663A (en) 2014-09-29
JP6051988B2 true JP6051988B2 (en) 2016-12-27

Family

ID=51701297

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013057388A Expired - Fee Related JP6051988B2 (en) 2013-03-19 2013-03-19 Information processing program, information processing method, and information processing apparatus

Country Status (1)

Country Link
JP (1) JP6051988B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021125206A1 (en) 2019-12-16 2021-06-24 富士フイルム株式会社 Image analysis device, image analysis method, and program

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01142869A (en) * 1987-11-30 1989-06-05 Toshiba Corp Molecule design supporting system
JPH0498464A (en) * 1990-08-10 1992-03-31 Fujitsu Ltd Data representing system for chemical structure
JP2002298101A (en) * 2001-04-03 2002-10-11 Sony Corp Method and device for recognizing character information
KR101323502B1 (en) * 2009-03-19 2013-10-31 후지쯔 가부시끼가이샤 Recording medium having marker generation program recorded thereon, marker generation device, and marker generation method

Also Published As

Publication number Publication date
JP2014182663A (en) 2014-09-29

Similar Documents

Publication Publication Date Title
JP4918776B2 (en) Electronic document comparison program, electronic document comparison device, and electronic document comparison method
CN1143239C (en) System for analyzing table images
JP4850652B2 (en) Image search apparatus, control method therefor, program, and storage medium
US7536636B2 (en) Systems and methods for comparing documents containing graphic elements
CN104346415B (en) Method for naming image document
CN1542655A (en) Information processing apparatus, method, storage medium and program
JP2006120125A (en) Document image information management apparatus and document image information management program
CN1517904A (en) Ink marking device and associated application programmed interface
CN1272728C (en) Information processor, file processing method, storage medium and program
CN1900933A (en) Image search system, image search method, and storage medium
JP4448549B2 (en) Comparing documents with graphic elements
CN101051305A (en) Ocr sheet-inputting device, sheet, and correlative program
JP2011166768A (en) Method for generating microfine intrinsic features and document image processing system
CN1925541A (en) Image processing apparatus and method thereof
JP2007317034A (en) Image processing apparatus, image processing method, program, and recording medium
JPWO2008090606A1 (en) Information search program, recording medium storing the program, information search device, and information search method
JP2011039580A (en) Device and method for processing document, and program
JP6428615B2 (en) Multidimensional range search apparatus and multidimensional range search method
JP6051988B2 (en) Information processing program, information processing method, and information processing apparatus
CN101055519A (en) Icon generating device, computer readable medium and method for generating icon
JP5881937B2 (en) Information processing apparatus, information processing method, and program
JP2005259017A (en) Image processing apparatus, image processing program and storage medium
JP2009252185A (en) Information searching device, information searching method, control program, and recording medium
JP2005078245A (en) Content search device using dendrogram
KR101446566B1 (en) File management apparatus and method thereof

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20151106

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20161012

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: 20161101

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20161114

R150 Certificate of patent or registration of utility model

Ref document number: 6051988

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees