JP7333096B2 - Color information conversion program, color information conversion method, and color information conversion information processing apparatus - Google Patents

Color information conversion program, color information conversion method, and color information conversion information processing apparatus Download PDF

Info

Publication number
JP7333096B2
JP7333096B2 JP2021133667A JP2021133667A JP7333096B2 JP 7333096 B2 JP7333096 B2 JP 7333096B2 JP 2021133667 A JP2021133667 A JP 2021133667A JP 2021133667 A JP2021133667 A JP 2021133667A JP 7333096 B2 JP7333096 B2 JP 7333096B2
Authority
JP
Japan
Prior art keywords
information
color information
color
level difference
converted
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.)
Active
Application number
JP2021133667A
Other languages
Japanese (ja)
Other versions
JP2023028148A (en
Inventor
誠司 安保
Original Assignee
Tkk株式会社
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 Tkk株式会社 filed Critical Tkk株式会社
Priority to JP2021133667A priority Critical patent/JP7333096B2/en
Publication of JP2023028148A publication Critical patent/JP2023028148A/en
Application granted granted Critical
Publication of JP7333096B2 publication Critical patent/JP7333096B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Processing (AREA)

Description

本発明は、イラスト、写真、デザイン画等の2次元の画像を立体化(3次元化)する色彩情報変換プログラム、色彩情報変換方法及び色彩情報変換情報処理装置に関する。 The present invention relates to a color information conversion program, a color information conversion method, and a color information conversion information processing apparatus for stereoscopicizing (three-dimensionalizing) two-dimensional images such as illustrations, photographs, and design drawings.

2次元の画像等を立体化するためには、通常、不要な部分を削り落とし、目的のカタチに仕上げる工作機械(工作加工機器)を動作・制御させるNC(=Numerical Control)プログラムを、CAD/CAM装置を用いて作成するのが一般的である。 In order to create a three-dimensional image such as a two-dimensional image, NC (= Numerical Control) programs that operate and control machine tools (machine tools) that scrape off unnecessary parts and finish them into the desired shape are usually created by CAD / It is generally created using a CAM device.

以下、詳しく説明する。CAD(キャド)は、パソコンの画面上で図面を作成するためのソフトウェアであり、3次元CADはX・Y・Zの立体空間上に製図する。 A detailed description will be given below. CAD is software for creating drawings on the screen of a personal computer, and 3-dimensional CAD draws in the three-dimensional space of X, Y, and Z.

CAMでは、3次元CADで作成された3次元の図形(形状)に対し、「使用する工具」、「工具の動かし方」、「加工するスピード」等の情報を設定することで「ツールパス」と呼ばれる工具の軌跡情報を作成する。そして、ポストプロセッサで工具の軌跡情報を、NCプログラムに変換する。 In CAM, a "tool path" is created by setting information such as "tool to be used", "how to move the tool", and "processing speed" for a three-dimensional figure (shape) created by three-dimensional CAD. Create tool trajectory information called . Then, the post processor converts the locus information of the tool into an NC program.

CAD/CAM装置は、上述したCADとCAMの両方の機能を併せ持つ装置である。3次元の図形の設計からNCプログラムの作成までを一括して行うことができる。 A CAD/CAM device is a device that has both the CAD and CAM functions described above. It is possible to collectively perform everything from designing a three-dimensional figure to creating an NC program.

例えば、特許文献1では、オペレーティングシステム等の標準的なソフトウェア及びNCプログラムの作成を支援するソフトウェア等の専用のアプリケーションソフトウェアがインストールされている汎用コンピュータより成るCAD/CAM装置の構成が開示されている。 For example, Patent Literature 1 discloses a configuration of a CAD/CAM device consisting of a general-purpose computer in which standard software such as an operating system and dedicated application software such as software for supporting the creation of NC programs are installed. .

特許第6587763号公報Japanese Patent No. 6587763

しかしながら、CAD/CAM装置を用いる場合、CAD機能を使用して、3次元の図形を設計・編集する必要がある。また、NCプログラムでは、命令を示すNCコード、工具が移動する各軸の座標値、及び工具の送り速度等の多くのパラメータを設定する必要がある。 However, when using a CAD/CAM device, it is necessary to use the CAD function to design and edit three-dimensional graphics. Also, in the NC program, it is necessary to set many parameters such as the NC code indicating the command, the coordinate values of each axis along which the tool moves, and the feed speed of the tool.

そこで本発明は、上記問題点に対処するため、CAD/CAM装置を用いることなく、イラスト、写真、デザイン画等の2次元の画像を立体化できる、色彩情報変換プログラム、色彩情報変換方法及び色彩情報変換情報処理装置を提供することを目的とする。 Therefore, in order to deal with the above problems, the present invention provides a color information conversion program, a color information conversion method, and a color information conversion method that can stereoscopicize two-dimensional images such as illustrations, photographs, and design drawings without using a CAD/CAM device. An object of the present invention is to provide an information conversion information processing device.

前記目的を達成するため、請求項1に係る発明は、
色彩情報を変換させるプログラムであって、
情報処理装置の制御手段に、
ドット絵の各ドットに係る色彩情報を取得させ、
当該色彩情報を、所定の種類の、段差の程度を示す段差情報のうち、いずれかの段差情報に変換させ、
変換した段差情報を、加工対象の各加工箇所を識別する加工対象マス目識別情報に対応付けさせ、
加工対象マス目識別情報に対応付けられた前記段差情報、ユーザによって入力された加工条件に基づき、工作機械を制御する制御プログラムに変換させ、
当該制御プログラムを工作機械に出力させる、色彩情報変換プログラムとした。
In order to achieve the above object, the invention according to claim 1 is
A program for converting color information,
In the control means of the information processing device,
Acquire color information related to each dot of the dot picture,
converting the color information into any level difference information out of a predetermined type of level difference information indicating the level of the level difference;
Correlate the converted step information with processing target grid identification information for identifying each processing location to be processed,
converting the step information associated with the identification information of the grid to be processed into a control program for controlling the machine tool based on the processing conditions input by the user;
A color information conversion program for outputting the control program to a machine tool was used.

また、請求項2に係る発明は、
情報処理装置の制御手段に、
前記色彩情報のRGBの3つの成分の数値のうち、最も大きいものを選択して取得させ、
当該数値に基づいて、前記色彩情報を、所定の種類の、段差の程度を示す段差情報のうち、いずれかの段差情報に変換させる、請求項1に記載の色彩情報変換プログラムとした。
Further, the invention according to claim 2 is
In the control means of the information processing device,
Selecting and acquiring the largest numerical value of the three components of RGB of the color information,
2. The color information conversion program according to claim 1, wherein the color information is converted into any level difference information among predetermined types of level difference information indicating the degree of level difference based on the numerical value.

また、請求項3に係る発明は、
情報処理装置の制御手段に、
色彩情報の数値が小さい場合には、段差の程度が小さい段差情報に変換させ、色彩情報の数値が大きい場合には、段差の程度が大きい段差情報に変換させる、請求項1又は2に記載の色彩情報変換プログラムとした。
Further, the invention according to claim 3 is
In the control means of the information processing device,
3. The method according to claim 1 or 2, wherein when the numerical value of the color information is small, it is converted into step information with a small degree of step, and when the numerical value of the color information is large, it is converted into step information with a large degree of step. A color information conversion program was used.

また、請求項4に係る発明は、
情報処理装置の制御手段に、
色彩情報の数値が小さい場合には、段差の程度が大きい段差情報に変換させ、色彩情報の数値が大きい場合には、段差の程度が小さい段差情報に変換させる、請求項1又は2に記載の色彩情報変換プログラムとした。
Further, the invention according to claim 4 is
In the control means of the information processing device,
3. The method according to claim 1 or 2, wherein when the numerical value of the color information is small, it is converted into step information with a large degree of step, and when the numerical value of the color information is large, it is converted into step information with a small degree of step. A color information conversion program was used.

また、請求項5に係る発明は、
情報処理装置に、色彩情報を変換させる方法であって、
ドット絵の各ドットに係る色彩情報を取得させるステップと、
当該色彩情報を、所定の種類の、段差の程度を示す段差情報のうち、いずれかの段差情報に変換させるステップと、
変換した段差情報を、加工対象の各加工箇所を識別する加工対象マス目識別情報に対応付けさせるステップと、
加工対象マス目識別情報に対応付けられた前記段差情報、ユーザによって入力された加工条件に基づき、工作機械を制御する制御プログラムに変換させるステップと、
当該制御プログラムを工作機械に出力させるステップを有する、色彩情報変換方法とした。
Further, the invention according to claim 5 is
A method for causing an information processing device to convert color information,
obtaining color information for each dot of the dot picture;
a step of converting the color information into any level difference information among predetermined types of level difference information indicating the degree of the level difference;
a step of associating the converted step information with processing target grid identification information for identifying each processing location to be processed;
a step of converting into a control program for controlling a machine tool based on the step information associated with the identification information of the grid to be machined and the machining conditions input by the user;
The color information conversion method has a step of outputting the control program to a machine tool.

また、請求項6に係る発明は、
色彩情報を変換させる情報処理装置であって、
ドット絵の各ドットに係る色彩情報を取得し、
当該色彩情報を、所定の種類の、段差の程度を示す段差情報のうち、いずれかの段差情報に変換し、
変換した段差情報を、加工対象の各加工箇所を識別する加工対象マス目識別情報に対応付け、
加工対象マス目識別情報に対応付けられた前記段差情報、ユーザによって入力された加工条件に基づき、工作機械を制御する制御プログラムに変換し、
当該制御プログラムを工作機械に出力する制御手段を有する、色彩情報変換情報処理装置とした。
Further, the invention according to claim 6 is
An information processing device that converts color information,
Acquire color information related to each dot of the dot picture,
converting the color information into any level difference information out of a predetermined type of level difference information indicating the level of the level difference;
Correlating the converted step information with processing target grid identification information for identifying each processing location to be processed,
Converting to a control program for controlling a machine tool based on the step information associated with the identification information of the grid to be processed and the processing conditions input by the user,
A color information conversion information processing apparatus having control means for outputting the control program to a machine tool is provided.

本発明によれば、イラスト、写真、デザイン画等の2次元の画像を、CAD/CAMソフトを用いることなく、立体化することができる。 According to the present invention, two-dimensional images such as illustrations, photographs, and design drawings can be rendered three-dimensional without using CAD/CAM software.

また、CAD/CAMソフトを用いる場合には、CADの機能を使って、3次元の図形を書き込み設計し、編集する必要があるが、本発明の場合には、ドット絵自体が立体化させる3次元の図形の設計図になるため、新たに設計図を作成する必要がなく、便宜である。 When using CAD/CAM software, it is necessary to use the CAD functions to write, design, and edit a three-dimensional figure. Since it is a blueprint of a dimensional figure, there is no need to create a new blueprint, which is convenient.

この発明の実施の形態例1の色彩情報変換情報処理装置の概略構成図である。1 is a schematic configuration diagram of a color information conversion information processing apparatus according to Embodiment 1 of the present invention; FIG. この発明の実施の形態例1の色彩情報変換情報処理装置に係る色彩情報及び段差情報の例を示す説明図である。FIG. 4 is an explanatory diagram showing an example of color information and step information according to the color information conversion information processing apparatus according to Embodiment 1 of the present invention; この発明の実施の形態例1の色彩情報変換情報処理装置の色彩情報記憶領域の構造を模式的に示した図である。FIG. 3 is a diagram schematically showing the structure of a color information storage area of the color information conversion information processing apparatus according to Embodiment 1 of the present invention; この発明の実施の形態例1の色彩情報変換情報処理装置の色彩情報段差情報対応テーブル記憶領域の構造を模式的に示した図である。FIG. 4 is a diagram schematically showing the structure of a color information step information correspondence table storage area of the color information conversion information processing apparatus according to Embodiment 1 of the present invention; この発明の実施の形態例1の色彩情報変換情報処理装置の段差情報記憶領域の構造を模式的に示した図である。FIG. 3 is a diagram schematically showing the structure of a step information storage area of the color information conversion information processing apparatus according to Embodiment 1 of the present invention; この発明の実施の形態例1の色彩情報変換情報処理装置の処理の流れを示す流れ図である。4 is a flow chart showing the flow of processing of the color information conversion information processing apparatus according to Embodiment 1 of the present invention;

以下、添付図面を参照して本発明に係る実施の形態例を詳細に説明する。ただし、この実施の形態例に記載されている構成要素はあくまでも例示であり、本発明の範囲をそれらのみに限定する趣旨のものではない。 Embodiments according to the present invention will be described in detail below with reference to the accompanying drawings. However, the components described in this embodiment are merely examples, and the scope of the present invention is not limited to them.

<実施の形態例1>
色彩情報変換情報処理装置1は、図1に示すように、スキャナー2及び工作機械3と相互に通信可能に接続されている。また、色彩情報変換情報処理装置1は、情報処理装置であって、CPU(=Central Processing Unit)等の制御手段11と、RAM(=Random Access Memory)12、ROM(=Read Only Memory)13、HD(=Hard Disk)14、ディスプレイ15、入力手段16、インタフェイス17、これらの機器を接続するバス18を有している。
<Embodiment 1>
As shown in FIG. 1, the color information conversion information processing apparatus 1 is connected to the scanner 2 and the machine tool 3 so as to be able to communicate with each other. The color information conversion information processing apparatus 1 is an information processing apparatus, and includes a control means 11 such as a CPU (=Central Processing Unit), a RAM (=Random Access Memory) 12, a ROM (=Read Only Memory) 13, It has an HD (=Hard Disk) 14, a display 15, an input means 16, an interface 17, and a bus 18 connecting these devices.

制御手段11は、RAM12上で、スキャナー2等を通じて入力されたイラスト、写真、デザイン画等の2次元の画像をドット絵に変換する。制御手段11は、変換したドット絵に係る色彩情報を、HD14の色彩情報記憶領域141に格納させる。なお、イラスト等の2次元の画像をドット絵に変換する処理については、周知の技術であるため、ここでは説明を割愛する。 The control means 11 converts two-dimensional images such as illustrations, photographs, and design drawings input through the scanner 2 or the like into dot pictures on the RAM 12 . The control means 11 stores the color information related to the converted dot picture in the color information storage area 141 of the HD 14 . Note that the process of converting a two-dimensional image such as an illustration into a dot picture is a well-known technique, and therefore description thereof is omitted here.

「ドット絵」とは、ディスプレイ15上の解像度のマス目(=ドット、ピクセル、Excelの各セルに相当)に色を出力することで、画像を表現したものである。ドット絵に変換されることで、各マス目(=各ドット)に色彩情報が割り振られる。制御手段11は、割り振られた各色彩情報を、図3に示すように、HD14の色彩情報記憶領域141に、各マス目を識別するマス目識別情報に対応付けて格納させる。これらの各色彩情報は、光の三原色であるR(=Red)、G(=Green)、B(=Blue)を夫々示す3つの数値から構成される。例えば、マス目識別情報が、「3,2(=3列2行)」の色彩情報は、「R=1,G=125,B=125」であり、マス目識別情報が、「5,4(=5列4行)」の色彩情報は、「R=1,G=75,B=1」である。色彩情報は、RGBの3つの成分が合わさって1つの色を表す。 A “dot picture” is an image that is expressed by outputting colors to the resolution squares (=dots, pixels, cells of Excel) on the display 15 . Color information is assigned to each square (=each dot) by converting to a dot picture. The control means 11 stores each allocated color information in the color information storage area 141 of the HD 14 in association with grid identification information for identifying each grid, as shown in FIG. Each of these color information is composed of three numerical values respectively indicating R (=Red), G (=Green), and B (=Blue), which are the three primary colors of light. For example, if the grid identification information is "3, 2 (=3 columns, 2 rows)", the color information is "R=1, G=125, B=125", and the grid identification information is "5, 4 (=five columns and four rows)” is “R=1, G=75, B=1”. Color information represents one color by combining three components of RGB.

例えば、図2に示す例では、色彩情報に係るRGBの各成分の数値は、1~225の範囲で、「1」、「25」、「50」、「75」、「100」、「125」、「150」、「175」、「200」及び「225」の10種類である。そして、色彩情報に係るRGBの各成分の組み合わせは、RGBの各成分について6ビットの「64通り」である。つまり、用いる色彩情報の種類(=表現可能な色数)は64種類である。 For example, in the example shown in FIG. 2, the numerical values of the RGB components related to the color information are in the range of 1 to 225, and are "1", "25", "50", "75", "100", "125 ", "150", "175", "200" and "225". The combinations of RGB components related to color information are 6-bit “64 combinations” for each RGB component. In other words, there are 64 types of color information to be used (=the number of expressible colors).

制御手段11は、HD14の色彩情報記憶領域141に格納されている、各マス目に係る色彩情報を呼び出して取得する。以下、詳しく説明する。上述したように、色彩情報は、光の三原色であるR(=Red)、G(=Green)、B(=Blue)を夫々示す数値から構成されるが、制御手段11は、RGBの各成分に係る3つの数値のうち、最も大きいものを選択して取得する。例えば、RGBの数値が、「1,100,1」の場合、制御手段11は、「100」を選択して取得する。また例えば、RGBの数値が「125,125,125」の場合、「125」を選択して取得する。 The control means 11 calls and acquires the color information related to each grid stored in the color information storage area 141 of the HD 14 . A detailed description will be given below. As described above, the color information is composed of numerical values indicating R (=Red), G (=Green), and B (=Blue), which are the three primary colors of light. Select and acquire the largest value among the three values related to . For example, when the numerical values of RGB are "1, 100, 1", the control means 11 selects and acquires "100". Also, for example, when the numerical values of RGB are "125, 125, 125", "125" is selected and obtained.

制御手段11は、取得した、成分に係る最も大きい数値も基づき、色彩情報を段差情報に変換する。 The control means 11 also converts the color information into step information based on the acquired largest numerical value related to the component.

以下、詳しく説明する。「段差情報」は、2次元のドット絵の色彩を、3次元の段差(深さ)で表現する際の情報であって、加工対象の金属板等にどのくらいの深さまで、切削・加工して段差をつけるのか、段差の程度を示すものである。 A detailed description will be given below. "Step information" is information when expressing the color of a two-dimensional dot picture with a three-dimensional step (depth). It indicates whether a step is provided or the degree of the step.

例えば、図2に示す例では、段差情報は、「-1~-10」の10種類あり(4行で示した段差情報のうち、上の2行)、制御手段11は、色彩情報段差情報対応テーブル記憶領域142に格納されている色彩情報段差情報対応テーブルを参照して、取得した成分に係る最も大きい数値に基づき、色彩情報を、10種類の段差情報のうち、いずれかの段差情報(対応する段差情報)に変換する。そして、制御手段11は、段差情報記憶領域143に、変換した各段差情報を、加工対象の金属板等の各加工箇所を識別する加工対象マス目識別情報に対応付けて格納させる。 For example, in the example shown in FIG. 2, there are 10 types of level difference information from "-1 to -10" (upper two lines of the level difference information shown in four lines), and the control means 11 controls color information level information The color information step information correspondence table stored in the correspondence table storage area 142 is referred to, and the color information is converted to any step information ( corresponding step information). Then, the control means 11 causes the step information storage area 143 to store the converted step information in association with the processing target grid identification information for identifying each processing location of the metal plate or the like to be processed.

なお、ディスプレイ15上の解像度のマス目を識別するマス目識別情報と、加工対象の金属板等の各加工箇所を識別する加工対象マス目識別情報は、対応していることは言うまでもない。 Needless to say, the grid identification information for identifying the resolution grids on the display 15 and the processing target grid identification information for identifying each processing location of the metal plate to be processed correspond to each other.

制御手段11は、段差情報、ユーザによって入力された加工条件に基づき、工作機械を制御する制御プログラム(NCプログラム等)に変換する。そして、制御手段11は、制御プログラム記憶領域144に、変換した制御プログラムを格納させる。また、制御手段11は、制御プログラム記憶領域144に格納されている制御プログラムを呼び出して、インタフェイス17を通じて、工作機械3に出力する。 The control means 11 converts the step information and the machining conditions input by the user into a control program (such as an NC program) for controlling the machine tool. Then, the control means 11 causes the control program storage area 144 to store the converted control program. Also, the control means 11 calls the control program stored in the control program storage area 144 and outputs it to the machine tool 3 through the interface 17 .

RAM12は各種データ、プログラム等を一時的に記憶するためのものであり、制御手段11の主メモリ、ワークエリア等として機能する。ROM13は、内部に基本I/Oプログラム等のプログラム、基本処理において使用する各種データ等を記憶する。 The RAM 12 is for temporarily storing various data, programs, etc., and functions as a main memory, a work area, etc. of the control means 11 . The ROM 13 internally stores programs such as a basic I/O program, various data used in basic processing, and the like.

HD14は補助記憶装置であり、大容量メモリとして機能する。HD14には、アプリケーションプログラム、OS、制御プログラム、関連プログラム等を記憶する。 The HD 14 is an auxiliary storage device and functions as a large capacity memory. The HD 14 stores application programs, an OS, control programs, related programs, and the like.

また、HD14内には、色彩情報記憶領域141、色彩情報段差情報対応テーブル記憶領域142、段差情報記憶領域143及び制御プログラム記憶領域144が設けられている。 Further, in the HD 14, a color information storage area 141, a color information step information correspondence table storage area 142, a step information storage area 143 and a control program storage area 144 are provided.

色彩情報記憶領域141には、図3に示すように、ディスプレイ15上の解像度の各マス目を識別するマス目識別情報に対応付けて、色彩情報が格納される。色彩情報は、光の三原色であるR、G、Bを夫々示す数値から構成される。また、色彩情報段差情報対応テーブル記憶領域142には、図4に示すように、色彩情報の成分に係る数値と、段差情報が対応している並べられているテーブルが格納されている。また、段差情報記憶領域143には、図5に示すように、加工対象の金属板等の各加工箇所を識別する加工対象マス目識別情報に対応付けて、段差情報が格納される。更に、制御プログラム記憶領域144には、工作機械3を制御する制御プログラムが格納される。 In the color information storage area 141, as shown in FIG. 3, color information is stored in association with grid identification information for identifying each grid of resolution on the display 15. FIG. The color information is composed of numerical values indicating R, G, and B, which are the three primary colors of light. In addition, as shown in FIG. 4, the color information step information correspondence table storage area 142 stores a table in which numerical values related to color information components and step information are associated with each other. In addition, as shown in FIG. 5, the step information storage area 143 stores step information in association with processing target grid identification information for identifying each processing location of a metal plate or the like to be processed. Furthermore, a control program for controlling the machine tool 3 is stored in the control program storage area 144 .

入力手段16は、例えば、キーボードやポインティングデバイス(マウス等)、タッチパネルである。入力手段16を用いて、ユーザは、色彩情報変換情報処理装置1に対して、色彩情報変換情報処理装置1を制御するコマンド等を入力指示する。特に、ユーザは、入力手段16を通じて、「使用する工具」「工具の動かし方」「加工するスピード」等の加工条件を入力して設定する The input means 16 is, for example, a keyboard, a pointing device (mouse, etc.), or a touch panel. Using the input means 16 , the user inputs a command or the like for controlling the color information conversion information processing apparatus 1 to the color information conversion information processing apparatus 1 . In particular, the user inputs and sets processing conditions such as "tool to be used", "how to move the tool", and "speed to be processed" through the input means 16.

17はインタフェイスであり、このインタフェイス17を介して、色彩情報変換情報処理装置1は、スキャナー2及び工作機械3等の他の装置との情報や命令のやり取りを行う。バス18は、色彩情報変換情報処理装置1内の情報・命令の流れを司るものである。 Reference numeral 17 denotes an interface, through which the color information conversion information processing apparatus 1 exchanges information and commands with other devices such as the scanner 2 and the machine tool 3 . A bus 18 governs the flow of information and commands within the color information conversion information processing apparatus 1 .

また、以上の各装置と同等の機能を実現するソフトウェアにより、ハードウェア装置の代替として構成することもできる。 Also, software that implements the same functions as those of the above devices can be used as a substitute for the hardware device.

本実施の形態例では、本実施の形態例に係るプログラム及び関連データを直接RAM12にロードして実行させる例を示しているが、これ以外にも、本実施の形態例に係るプログラムを動作させる度に、既にプログラムがインストールされているHD14からRAM12にロードするようにしてもよい。また、本実施の形態例に係るプログラムをROM13に格納しておき、これをメモリマップの一部をなすように構成し、直接制御手段11で実行することも可能である。 In the present embodiment, an example is shown in which the program and related data according to the present embodiment are directly loaded into the RAM 12 and executed. Each time, the program may be loaded into the RAM 12 from the HD 14 in which the program has already been installed. Further, it is also possible to store the program according to the present embodiment in the ROM 13, configure it so as to form a part of the memory map, and execute it directly by the control means 11. FIG.

また、本実施の形態例1では、説明の便宜のため、色彩情報変換情報処理装置1を1つの装置で実現した構成について述べるが、複数の装置にリソースを分散した構成によって実現してもよい。例えば、記憶や演算のリソースを複数の装置に分散した形に構成してもよい。或いは、色彩情報変換情報処理装置1上で仮想的に実現される構成要素毎にリソースを分散し、並列処理を行うようにしてもよい。 Further, in the first embodiment, for convenience of explanation, a configuration in which the color information conversion information processing apparatus 1 is realized by one device will be described, but it may be realized by a configuration in which resources are distributed to a plurality of devices. . For example, storage and computation resources may be distributed over multiple devices. Alternatively, resources may be distributed for each component virtually realized on the color information conversion information processing apparatus 1, and parallel processing may be performed.

<色彩情報変換情報処理装置1の処理の流れ>
次に、図6を用いて、色彩情報変換情報処理装置1の処理の流れを説明する。色彩情報変換情報処理装置1は、スキャナー2等を通じて入力されたイラスト、写真、デザイン画等の2次元の画像をドット絵に変換する(ステップS601)。すると、各マス目に色彩情報が割り振られ、割り振られた各色彩情報は、HD14の色彩情報記憶領域141に、各マス目を識別するマス目識別情報に対応付けて格納される。色彩情報変換情報処理装置1は、HD14の色彩情報記憶領域141に格納されている、各マス目に係る色彩情報に係るRGBの3つの数値のうち、最も大きいものを選択して取得する(ステップS602)。
<Processing Flow of Color Information Conversion Information Processing Apparatus 1>
Next, the processing flow of the color information conversion information processing apparatus 1 will be described with reference to FIG. The color information conversion information processing apparatus 1 converts two-dimensional images such as illustrations, photographs, and design drawings input through the scanner 2 or the like into dot pictures (step S601). Then, color information is assigned to each square, and each assigned color information is stored in the color information storage area 141 of the HD 14 in association with square identification information for identifying each square. The color information conversion information processing apparatus 1 selects and acquires the largest of the three numerical values of RGB related to the color information related to each grid stored in the color information storage area 141 of the HD 14 (step S602).

色彩情報変換情報処理装置1は、色彩情報段差情報対応テーブル記憶領域142に格納されているテーブルを参照にして、取得した色彩情報を段差情報に変換する(ステップS603)。色彩情報変換情報処理装置1は、段差情報記憶領域143に、変換した段差情報を、加工対象の金属板等の各加工箇所を識別する加工対象マス目識別情報に対応付けて格納する。 The color information conversion information processing apparatus 1 refers to the table stored in the color information step information correspondence table storage area 142 and converts the acquired color information into step information (step S603). The color information conversion information processing apparatus 1 stores the converted step information in the step information storage area 143 in association with the processing object grid identification information for identifying each processing location of the metal plate or the like to be processed.

「色彩情報の取得(ステップS602)→段差情報への変換(ステップS603)→加工対象マス目識別情報に対応付けて格納」の処理を、各マス目について全て完了するまで、繰り返し行う(ステップS604で「YES」)。 The processing of "acquisition of color information (step S602)→conversion to step information (step S603)→storage in association with processing object grid identification information" is repeated until all grids are completed (step S604). "YES").

具体的には例えば、色彩情報変換情報処理装置1は、マス目識別情報「1,1(=1列1行)」のRGBの3つの数値「150,1,1」のうち(図3を参照)、最も大きい数値の「150」を選択して取得する。色彩情報変換情報処理装置1は、図4に示す色彩情報段差情報対応テーブル記憶領域142に格納されているテーブルを参照にして、取得した色彩情報「150」を、対応する段差情報「-7」に変換する。色彩情報変換情報処理装置1は、段差情報記憶領域143に、変換した段差情報「-7」を、加工対象の金属板等の各加工箇所を識別する加工対象マス目識別情報「1,1(=1列1行)」に対応付けて格納する(図5を参照)。 Specifically, for example, the color information conversion information processing apparatus 1 selects three RGB numerical values “150, 1, 1” of the grid identification information “1, 1 (=1 column, 1 row)” (see FIG. 3). ), and select and acquire the largest number "150". The color information conversion information processing apparatus 1 refers to the table stored in the color information level difference information correspondence table storage area 142 shown in FIG. Convert to The color information conversion information processing apparatus 1 stores the converted step information "-7" in the step information storage area 143 as processing object grid identification information "1, 1 ( = 1 column 1 row)” (see FIG. 5).

次に、色彩情報変換情報処理装置1は、マス目識別情報「1,2(=1列2行)」のRGBの3つの数値「1,125,125」のうち(図3を参照)、最も大きい数値の「125」を選択して取得する。色彩情報変換情報処理装置1は、図4に示す色彩情報段差情報対応テーブル記憶領域142に格納されているテーブルを参照にして、取得した色彩情報「125」を、対応する段差情報「-6」に変換する。色彩情報変換情報処理装置1は、段差情報記憶領域143に、変換した段差情報「-6」を、加工対象の金属板等の各加工箇所を識別する加工対象マス目識別情報「1,2(=1列2行)」に対応付けて格納する(図5を参照)。 Next, the color information conversion information processing apparatus 1 determines, among the three numerical values “1, 125, 125” of RGB of the grid identification information “1, 2 (= 1 column 2 rows)” (see FIG. 3), Select and acquire the largest number "125". The color information conversion information processing apparatus 1 refers to the table stored in the color information step information correspondence table storage area 142 shown in FIG. Convert to The color information conversion information processing apparatus 1 stores the converted step information "-6" in the step information storage area 143 as processing object grid identification information "1, 2 ( = 1 column 2 rows)” (see FIG. 5).

各マス目について段差情報への変換・格納が全て(6,6(=6列6行))完了するまで、繰り返し行う。 This process is repeated until all squares (6, 6 (=6 columns and 6 rows)) have been converted and stored into step information.

そして、各マス目について段差情報への変換・格納が全て完了すると、色彩情報変換情報処理装置1は、段差情報、ユーザによって入力された加工条件に基づき、NCプログラム等、工作機械を制御する制御プログラムに変換する(ステップS605)。色彩情報変換情報処理装置1は、制御プログラム記憶領域144に、変換した制御プログラムを格納する。色彩情報変換情報処理装置1は、制御プログラム記憶領域144に格納されている制御プログラムを呼び出して、インタフェイス17を通じて、工作機械3に出力する(ステップS606)。 Then, when the conversion and storage of each square into level difference information is completed, the color information conversion information processing apparatus 1 executes control for controlling a machine tool such as an NC program based on the level difference information and the processing conditions input by the user. Convert into a program (step S605). The color information conversion information processing apparatus 1 stores the converted control program in the control program storage area 144 . The color information conversion information processing apparatus 1 calls the control program stored in the control program storage area 144 and outputs it to the machine tool 3 through the interface 17 (step S606).

このように、色彩情報変換情報処理装置1によれば、イラスト、写真、デザイン画等の2次元の画像を、CAD/CAMソフトを用いることなく、立体化することができる。 Thus, according to the color information conversion information processing apparatus 1, two-dimensional images such as illustrations, photographs, and design drawings can be three-dimensionalized without using CAD/CAM software.

また、CAD/CAMソフトを用いる場合には、CADの機能を使って、3次元の図形を書き込み設計し、編集する必要があるが、色彩情報変換情報処理装置1を用いる場合には、ドット絵自体が立体化させる3次元の図形の設計図になるため、新たに設計図を作成する必要がなく、便宜である。 When using CAD/CAM software, it is necessary to write, design, and edit a three-dimensional figure using CAD functions. Since it becomes a blueprint of a three-dimensional figure to be three-dimensionalized, there is no need to create a new blueprint, which is convenient.

<変形例>
また、上述した本実施の形態例1では、スキャナー2を通じてイラスト、写真、デザイン画等の2次元の画像を、色彩情報変換情報処理装置1に入力する構成を示したが、この構成に限定されるものではない。例えば、デジタルカメラ、スマートフォンを通じてイラスト、写真、デザイン画等の2次元の画像を、色彩情報変換情報処理装置1に入力する構成としても良い。
<Modification>
In addition, in the first embodiment described above, a configuration is shown in which a two-dimensional image such as an illustration, a photograph, or a design image is input to the color information conversion information processing apparatus 1 through the scanner 2. However, the configuration is not limited to this configuration. not something. For example, two-dimensional images such as illustrations, photographs, and design drawings may be input to the color information conversion information processing apparatus 1 through a digital camera or smartphone.

また、上述した本実施の形態例1では、スキャナー2等を通じて入力されたイラスト、写真、デザイン画等の2次元の画像をドット絵に変換する構成を示したが、この構成に限定されるものではない。ユーザが入力手段16を用いて、ディスプレイ15を見ながら、ドット絵を描く構成としても良い。 Further, in the first embodiment described above, a configuration is shown in which two-dimensional images such as illustrations, photographs, and design drawings input through the scanner 2 or the like are converted into dot pictures, but the present invention is limited to this configuration. isn't it. The user may use the input means 16 to draw a dot picture while looking at the display 15 .

また、上述した本実施の形態例1では、用いる色彩情報の種類が64種類の場合を示したが、この構成に限定されるものではない。例えば、色彩情報に係るRGBの各成分の組み合わせを、RGBの各成分について8ビットの「256通り」とする。つまり、256種類の色彩情報を用いる構成としても良い。 In addition, in the first embodiment described above, a case was shown in which 64 types of color information are used, but the configuration is not limited to this. For example, the combinations of RGB components related to color information are 8-bit “256 ways” for each RGB component. That is, a configuration using 256 types of color information may be used.

また、上述した本実施の形態例1では、元の色彩情報の数値が小さい場合には、変換後の段差情報に係る数値(絶対値)(=設ける段差の程度)を小さくし、元の色彩情報の数値が大きい場合には、変換後の段差情報に係る数値(絶対値)(=設ける段差の程度)を大きくする構成を示した。例えば、元の色彩情報の数値「1」の場合には、変換後の段差情報に係る数値は「-1」になる。一方、元の色彩情報の数値「175」の場合には、変換後の段差情報に係る数値は「-8」になる。しかし、この構成に限定されるものではない。これとは逆に、図2で示した段差情報の例の2行目及び4行目のように、元の色彩情報の数値が小さい場合には、変換後の段差情報に係る数値(絶対値)を大きくし、元の色彩情報の数値が大きい場合には、変換後の段差情報に係る数値(絶対値)を小さくする構成としても良い。その場合、例えば、図2で示した段差情報の例の2行目のように、元の色彩情報の数値「1」の場合には、変換後の段差情報に係る数値は「-10」になる。一方、元の色彩情報の数値「175」の場合には、変換後の段差情報に係る数値は「-3」になる。いずれの構成であっても、色彩情報段差情報対応テーブルにおける、色彩情報と段差情報との対応関係によって、実現できる。 Further, in the first embodiment described above, when the numerical value of the original color information is small, the numerical value (absolute value) (=degree of level difference to be provided) related to the level difference information after conversion is reduced, and the original color information is reduced. When the numerical value of the information is large, the configuration is shown in which the numerical value (absolute value) (=the degree of the level difference to be provided) related to the level difference information after conversion is increased. For example, if the numerical value of the original color information is "1", the numerical value of the step information after conversion is "-1". On the other hand, if the numerical value of the original color information is "175", the numerical value of the step information after conversion is "-8". However, it is not limited to this configuration. Conversely, when the numerical value of the original color information is small, as in the second and fourth rows of the step information example shown in FIG. ) is increased, and if the numerical value of the original color information is large, the numerical value (absolute value) related to the step information after conversion may be decreased. In that case, for example, as in the second line of the step information example shown in FIG. Become. On the other hand, when the numerical value of the original color information is "175", the numerical value of the step information after conversion is "-3". Either configuration can be realized by the correspondence relationship between the color information and the step information in the color information step information correspondence table.

また、上述した本実施の形態例1では、段差情報間のピッチ(=高低の度合い)が、「-1」、「―2」、「-3」と、均等な構成を示したが、この構成に限定されるものではない。例えば、図2で示した段差情報の例の3行目及び4行目のように、「0」、「-0.168」、「-0.2718」のように、段差情報間のピッチが不均等である構成としても良い。 In addition, in the first embodiment described above, the pitches (=degrees of height) between step information are equal to "-1", "-2", and "-3". The configuration is not limited. For example, as in the 3rd and 4th rows of the example of step information shown in FIG. It is good also as a structure which is uneven.

また、上述した本実施の形態例1では、「-1~-10」の10種類の段差情報を用いる構成を示したが、この構成に限定されるものではない。例えば、「-1~-48」の48種類の段差情報を用いる構成としても良い。用いる段差情報の種類数によって、2次元の画像を粗く立体化したり、細密に立体化したり、調整することができる。 Further, in the first embodiment described above, the configuration using ten types of step information from "-1 to -10" is shown, but the configuration is not limited to this. For example, a configuration using 48 types of step information from "-1 to -48" may be used. Depending on the number of types of step information to be used, a two-dimensional image can be coarsely three-dimensionalized or finely three-dimensionalized and adjusted.

1:色彩情報変換情報処理装置、11:制御手段、12:RAM、13:ROM、14:HD、141:色彩情報記憶領域、142:色彩情報段差情報対応テーブル記憶領域、143:段差情報記憶領域、144:制御プログラム記憶領域、15:ディスプレイ、16:入力手段、17:インタフェイス、18:バス、
2:スキャナー、3:工作機械
1: color information conversion information processing device, 11: control means, 12: RAM, 13: ROM, 14: HD, 141: color information storage area, 142: color information step information correspondence table storage area, 143: step information storage area , 144: control program storage area, 15: display, 16: input means, 17: interface, 18: bus,
2: scanner, 3: machine tool

Claims (6)

色彩情報を変換させるプログラムであって、
情報処理装置の制御手段に、
ドット絵の各ドットに係る色彩情報を取得させ、
当該色彩情報を、所定の種類の、段差の程度を示す段差情報のうち、いずれかの段差情報に変換させ、
変換した段差情報を、加工対象の各加工箇所を識別する加工対象マス目識別情報に対応付けさせ、
加工対象マス目識別情報に対応付けられた前記段差情報、ユーザによって入力された加工条件に基づき、工作機械を制御する制御プログラムに変換させ、
当該制御プログラムを工作機械に出力させることを特徴とする、色彩情報変換プログラム。
A program for converting color information,
In the control means of the information processing device,
Acquire color information related to each dot of the dot picture,
converting the color information into any level difference information out of a predetermined type of level difference information indicating the level of the level difference;
Correlate the converted step information with processing target grid identification information for identifying each processing location to be processed,
converting the step information associated with the identification information of the grid to be processed into a control program for controlling the machine tool based on the processing conditions input by the user;
A color information conversion program for outputting the control program to a machine tool.
情報処理装置の制御手段に、
前記色彩情報のRGBの3つの成分の数値のうち、最も大きいものを選択して取得させ、
当該数値に基づいて、前記色彩情報を、所定の種類の、段差の程度を示す段差情報のうち、いずれかの段差情報に変換させることを特徴とする、請求項1に記載の色彩情報変換プログラム。
In the control means of the information processing device,
Selecting and acquiring the largest numerical value of the three components of RGB of the color information,
2. The color information conversion program according to claim 1, wherein the color information is converted into any one of a predetermined type of step information indicating the degree of the step based on the numerical value. .
情報処理装置の制御手段に、
色彩情報の数値が小さい場合には、段差の程度が小さい段差情報に変換させ、色彩情報の数値が大きい場合には、段差の程度が大きい段差情報に変換させることを特徴とする、請求項1又は2に記載の色彩情報変換プログラム。
In the control means of the information processing device,
When the numerical value of the color information is small, it is converted into step information with a small degree of step, and when the numerical value of the color information is large, it is converted into step information with a large degree of step. Or the color information conversion program according to 2.
情報処理装置の制御手段に、
色彩情報の数値が小さい場合には、段差の程度が大きい段差情報に変換させ、色彩情報の数値が大きい場合には、段差の程度が小さい段差情報に変換させることを特徴とする、請求項1又は2に記載の色彩情報変換プログラム。
In the control means of the information processing device,
When the numerical value of the color information is small, it is converted into step information with a large degree of step, and when the numerical value of the color information is large, it is converted into step information with a small degree of step. Or the color information conversion program according to 2.
情報処理装置に、色彩情報を変換させる方法であって、
ドット絵の各ドットに係る色彩情報を取得させるステップと、
当該色彩情報を、所定の種類の、段差の程度を示す段差情報のうち、いずれかの段差情報に変換させるステップと、
変換した段差情報を、加工対象の各加工箇所を識別する加工対象マス目識別情報に対応付けさせるステップと、
加工対象マス目識別情報に対応付けられた前記段差情報、ユーザによって入力された加工条件に基づき、工作機械を制御する制御プログラムに変換させるステップと、
当該制御プログラムを工作機械に出力させるステップを有することを特徴とする、色彩情報変換方法。
A method for causing an information processing device to convert color information,
obtaining color information for each dot of the dot picture;
a step of converting the color information into any level difference information among predetermined types of level difference information indicating the degree of the level difference;
a step of associating the converted step information with processing target grid identification information for identifying each processing location to be processed;
a step of converting into a control program for controlling a machine tool based on the step information associated with the identification information of the grid to be machined and the machining conditions input by the user;
A color information conversion method, comprising the step of outputting the control program to a machine tool.
色彩情報を変換させる情報処理装置であって、
ドット絵の各ドットに係る色彩情報を取得し、
当該色彩情報を、所定の種類の、段差の程度を示す段差情報のうち、いずれかの段差情報に変換し、
変換した段差情報を、加工対象の各加工箇所を識別する加工対象マス目識別情報に対応付け、
加工対象マス目識別情報に対応付けられた前記段差情報、ユーザによって入力された加工条件に基づき、工作機械を制御する制御プログラムに変換し、
当該制御プログラムを工作機械に出力する制御手段を有することを特徴とする、色彩情報変換情報処理装置。
An information processing device that converts color information,
Acquire color information related to each dot of the dot picture,
converting the color information into any level difference information out of a predetermined type of level difference information indicating the level of the level difference;
Correlating the converted step information with processing target grid identification information for identifying each processing location to be processed,
Converting to a control program for controlling a machine tool based on the step information associated with the identification information of the grid to be processed and the processing conditions input by the user,
A color information conversion information processing apparatus, comprising control means for outputting the control program to a machine tool.
JP2021133667A 2021-08-18 2021-08-18 Color information conversion program, color information conversion method, and color information conversion information processing apparatus Active JP7333096B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2021133667A JP7333096B2 (en) 2021-08-18 2021-08-18 Color information conversion program, color information conversion method, and color information conversion information processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021133667A JP7333096B2 (en) 2021-08-18 2021-08-18 Color information conversion program, color information conversion method, and color information conversion information processing apparatus

Publications (2)

Publication Number Publication Date
JP2023028148A JP2023028148A (en) 2023-03-03
JP7333096B2 true JP7333096B2 (en) 2023-08-24

Family

ID=85331670

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021133667A Active JP7333096B2 (en) 2021-08-18 2021-08-18 Color information conversion program, color information conversion method, and color information conversion information processing apparatus

Country Status (1)

Country Link
JP (1) JP7333096B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000348213A (en) 1999-06-07 2000-12-15 Sanyo Electric Co Ltd Three-dimensional image generating device, three- dimensional image generating and display device, and method thereof and recording medium
JP2004206551A (en) 2002-12-26 2004-07-22 Toppan Printing Co Ltd Three-dimensional interior space simulation system
JP2006201534A (en) 2005-01-21 2006-08-03 Fuji Seal International Inc Label and heat shrinkable cylindrical label, and labeled package, and method for measuring surface height of cylindrical model, and method for manufacturing cylindrical label
JP2016063522A (en) 2014-09-22 2016-04-25 カシオ計算機株式会社 Image processing system, method, and program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000348213A (en) 1999-06-07 2000-12-15 Sanyo Electric Co Ltd Three-dimensional image generating device, three- dimensional image generating and display device, and method thereof and recording medium
JP2004206551A (en) 2002-12-26 2004-07-22 Toppan Printing Co Ltd Three-dimensional interior space simulation system
JP2006201534A (en) 2005-01-21 2006-08-03 Fuji Seal International Inc Label and heat shrinkable cylindrical label, and labeled package, and method for measuring surface height of cylindrical model, and method for manufacturing cylindrical label
JP2016063522A (en) 2014-09-22 2016-04-25 カシオ計算機株式会社 Image processing system, method, and program

Also Published As

Publication number Publication date
JP2023028148A (en) 2023-03-03

Similar Documents

Publication Publication Date Title
EP0248919B1 (en) Method for generating representations of 3-dimensional objects and system performing this method
EP2590144B1 (en) Designing a modeled volume represented by dexels
CN107368621B (en) Method for generating CAD format two-dimensional standard three-view by three-dimensional support model in PDMS
JP2853355B2 (en) 3D graphic data generator
US9600151B2 (en) Interactive design variations interface
JPH06290237A (en) Product drawing generating device
JP7333096B2 (en) Color information conversion program, color information conversion method, and color information conversion information processing apparatus
JP4358761B2 (en) Image processing program, image processing apparatus, and recording medium
CN111435589B (en) Target display method and device and target display system
JP5162552B2 (en) Color adjustment apparatus, color adjustment method, and color adjustment program
JP6598546B2 (en) Image processing apparatus, image processing method, and program
US11074670B2 (en) Image processing apparatus, control method thereof, recording medium, and information processing system
JPH0756673B2 (en) Image processing method by divided space filter
JP2977319B2 (en) Electronic brush control method and device
JP2005025539A (en) Preparation work optimizing system
US5487021A (en) Computer-aided design system
JP2004164151A (en) Method for preparing/providing collected image material data and device for preparing the same
JP2701056B2 (en) Secondary representation method for three-dimensional objects
WO2019039603A1 (en) Image processing device, and program
CN114207535B (en) Method and device for determining processing conditions
JP7152973B2 (en) Inspection condition creation support device, inspection condition creation support method, inspection condition creation support program, and recording medium
JPS6061866A (en) Chamfering system of graphic processing system
JPH07200801A (en) Deformed image producing device
JP2613080B2 (en) Image enlargement apparatus and method
JP2964778B2 (en) Graphic data processing device

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20210818

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20211005

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220920

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20221121

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20221206

A601 Written request for extension of time

Free format text: JAPANESE INTERMEDIATE CODE: A601

Effective date: 20230206

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230403

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230804

R150 Certificate of patent or registration of utility model

Ref document number: 7333096

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150