TWI417807B - System, method and computer for automatically marking a graphics path with a predetermined color - Google Patents

System, method and computer for automatically marking a graphics path with a predetermined color Download PDF

Info

Publication number
TWI417807B
TWI417807B TW097135105A TW97135105A TWI417807B TW I417807 B TWI417807 B TW I417807B TW 097135105 A TW097135105 A TW 097135105A TW 97135105 A TW97135105 A TW 97135105A TW I417807 B TWI417807 B TW I417807B
Authority
TW
Taiwan
Prior art keywords
color
path
primitive
processing
layer
Prior art date
Application number
TW097135105A
Other languages
Chinese (zh)
Other versions
TW201011686A (en
Inventor
Yu-Quan Xie
Original Assignee
Hon Hai Prec Ind Co 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 Hon Hai Prec Ind Co Ltd filed Critical Hon Hai Prec Ind Co Ltd
Priority to TW097135105A priority Critical patent/TWI417807B/en
Publication of TW201011686A publication Critical patent/TW201011686A/en
Application granted granted Critical
Publication of TWI417807B publication Critical patent/TWI417807B/en

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • Image Generation (AREA)

Description

圖元路徑自動標色的系統、方法及電腦 System, method and computer for automatic color mapping of primitive path

本發明涉及一種實現圖元路徑自動標色的系統、方法及電腦。 The invention relates to a system, a method and a computer for realizing automatic color mapping of a primitive path.

在圖形設計和加工領域,對待加工圖元的2D線(即:路徑)進行標色以對待加工圖元的2D線附加加工資訊是非常重要、且必不可少的過程,加工機床自動讀取待加工圖元2D線上標識的顏色對應的附加加工資訊進而實現線切割作業的自動化。 In the field of graphic design and processing, it is very important and indispensable for the 2D line (ie: path) of the processed element to be color-coded to process the 2D line of the processed element. The processing machine automatically reads it. The additional processing information corresponding to the color identified on the 2D line of the processing element is further automated to perform the wire cutting operation.

目前,人們在對設計的待加工圖元的路徑進行標色處理的時候經常會犯一些錯誤,比如圖檔中圖元路徑較多的時候,如幾百個圖元路徑,這個時候人們對其中某些圖元路徑進行標色處理的時候經常會發生混亂和錯誤,因為人們給圖元路徑標識的顏色可能會與圖元路徑原顏色相同,以至於我們無法判斷哪些是經過標色處理的路徑,同時,人們時常會將那些應該被標識同一個顏色的圖元路徑標識成不同的顏色。 At present, people often make some mistakes when designing the path of the to-be-processed primitives. For example, when there are many primitive paths in the image file, such as hundreds of primitive paths, people will Some primitive paths often have confusion and errors when they are color-coded, because the color that people identify with the primitive path may be the same as the original color of the primitive path, so that we can't judge which is the color-processed path. At the same time, people often identify the primitive paths that should be identified by the same color into different colors.

鑒於以上內容,有必要提供一種圖元路徑自動標色系統以提高圖元路徑標色作業的效率及正確性。 In view of the above, it is necessary to provide an automatic color mapping system for the primitive path to improve the efficiency and correctness of the color path work of the primitive path.

一種圖元路徑自動標色系統,該系統裝置於電腦中。該系統包括 :參數設定模組、資訊獲取模組、資訊分析模組、顏色修改模組、圖元分層模組、及設計圖檔。該設計圖檔用於儲存需標識路徑顏色的圖元。該參數設定模組用於為不同圖元設定對應的加工刀數,及為設定的每一個加工刀數設定一個對應的標識顏色。該資訊獲取模組用於對設定的加工刀數進行選擇,從設計圖檔中選擇各個加工刀數對應的圖元,根據圖元的屬性資料獲取選擇的每一個圖元的圖層資訊,確定不可標識圖元路徑顏色的圖層,及將屬於不可標識圖元路徑顏色的圖層的圖元從選擇的圖元中刪除。該資訊分析模組用於分析經資訊獲取模組刪除後剩餘的圖元中是否有圖元的路徑被標識過顏色。該顏色修改模組用於將經資訊獲取模組刪除後剩餘的圖元中路徑被標識過顏色的圖元,按各自對應的加工刀數確定的路徑顏色進行路徑顏色修改。該圖元分層模組,用於為每一個加工刀數分配一個對應的圖層,將經資訊獲取模組刪除後剩餘的圖元中路徑沒有被標識過顏色的圖元,按各自對應的加工刀數劃入分配的圖層。所述顏色修改模組,還用於對劃入各個分配圖層中的圖元,按各自對應的加工刀數確定的路徑顏色進行路徑顏色標識。 A primitive path automatic color calibration system, the system is installed in a computer. The system includes : Parameter setting module, information acquisition module, information analysis module, color modification module, layer layer module, and design image file. The design file is used to store the elements that need to identify the color of the path. The parameter setting module is used to set the corresponding number of processing tools for different primitives, and set a corresponding identification color for each set number of processing tools. The information acquisition module is configured to select a set number of processing tools, select a picture element corresponding to each processing tool number from the design image file, and obtain layer information of each selected element according to the attribute data of the graphic element, and determine that the image information is not available. A layer that identifies the color of the primitive path and the element that has the layer that belongs to the unidentifiable primitive path color is removed from the selected primitive. The information analysis module is configured to analyze whether a path of a primitive in the remaining elements after the information acquisition module is deleted is identified by a color. The color modification module is configured to modify the path color of the path in which the path of the remaining elements in the primitive remaining after the information acquisition module is deleted, and the path color determined by the corresponding number of processing tools. The primitive layering module is configured to allocate a corresponding layer for each processing tool, and the path of the remaining primitives after the information acquisition module is deleted is not identified by the color, and the corresponding processing is performed according to the corresponding processing. The number of knives is assigned to the assigned layer. The color modification module is further configured to perform path color identification on the primitives that are assigned to each of the distribution layers by using the path color determined by the corresponding number of processing tools.

此外,還有必要提供一種基於電腦的圖元路徑自動標色方法以提高圖元路徑標色作業的效率及正確性。 In addition, it is also necessary to provide a computer-based automatic color mapping method for the primitive path to improve the efficiency and correctness of the color path work of the primitive path.

一種基於電腦的圖元路徑自動標色方法,該方法包括如下步驟:a.為不同圖元設定對應的加工刀數,及為設定的每一個加工刀數設定一個對應的標識顏色;b.從設定的加工刀數中選擇一個加工刀數,並從設計圖檔中選擇與該加工刀數對應的圖元;c.根據圖元的屬性資料獲取選擇的每一個圖元的圖層資訊;d.確定不可標 識圖元路徑顏色的圖層,及將屬於不可標識圖元路徑顏色的圖層的圖元從選擇的圖元中刪除;e.在剩餘的圖元中有圖元的路徑被標識過顏色時,轉入下述步驟f,或者,在剩餘的圖元中沒有圖元的路徑被標識過顏色時,轉入下述步驟g;f.將剩餘的圖元中路徑被標識過顏色的圖元,按該加工刀數確定的路徑顏色進行路徑顏色修改;g.為該加工刀數分配一個對應的圖層,將剩餘的圖元中路徑沒有被標識過顏色的圖元劃入該分配的圖層;h.對劃入該分配的圖層中的圖元的路徑標識成該加工刀數對應的路徑標識顏色;i.在有加工刀數未被選擇時,轉入上述步驟b。 A method for automatically coloring a primitive path based on a computer, the method comprising the steps of: a. setting a corresponding number of processing knives for different primitives, and setting a corresponding identification color for each set number of processing knives; b. Select one of the number of processing knives, and select the primitive corresponding to the number of processing knives from the design drawing file; c. obtain the layer information of each selected primitive according to the attribute data of the primitive; d. Determine not to be marked The layer that identifies the color of the primitive path and the primitive that belongs to the layer of the unidentifiable primitive path color are deleted from the selected primitive; e. when the path of the remaining primitive in the remaining primitive is identified by the color, In the following step f, or when the path of the remaining primitives is not marked with a color, the process proceeds to the following step g; f. the remaining primitives in the path are identified by the color of the primitive, The path color determined by the number of processing tools is used to modify the path color; g. assigning a corresponding layer to the number of processing tools, and dividing the remaining elements in the remaining primitives with the unmarked color into the assigned layer; h. The path of the primitive assigned to the assigned layer is identified by the path identification color corresponding to the number of machining tools; i. When the number of machining tools is not selected, the process proceeds to step b above.

此外,還有必要提供一種能進行圖元路徑自動標色的電腦以提高圖元路徑標色作業的效率及正確性。 In addition, it is also necessary to provide a computer capable of automatically coloring the primitive path to improve the efficiency and correctness of the color path of the primitive path.

一種能進行圖元路徑自動標色的電腦包括:參數設定模組、資訊獲取模組、資訊分析模組、顏色修改模組、圖元分層模組、及設計圖檔。該設計圖檔用於儲存需標識路徑顏色的圖元。該參數設定模組用於為不同圖元設定對應的加工刀數,及為設定的每一個加工刀數設定一個對應的標識顏色。該資訊獲取模組用於對設定的加工刀數進行選擇,從設計圖檔中選擇各個加工刀數對應的圖元,根據圖元的屬性資料獲取選擇的每一個圖元的圖層資訊,確定不可標識圖元路徑顏色的圖層,及將屬於不可標識圖元路徑顏色的圖層的圖元從選擇的圖元中刪除。該資訊分析模組用於分析經資訊獲取模組刪除後剩餘的圖元中是否有圖元的路徑被標識過顏色。該顏色修改模組用於將經資訊獲取模組刪除後剩餘的圖元中路徑被標識過顏色的圖元,按各自對應的加工刀數確定的路徑顏色進行路徑顏色修改。該圖元分層模組,用於為每一個加工刀 數分配一個對應的圖層,將經資訊獲取模組刪除後剩餘的圖元中路徑沒有被標識過顏色的圖元,按各自對應的加工刀數劃入分配的圖層。所述顏色修改模組,還用於對劃入各個分配圖層中的圖元,按各自對應的加工刀數確定的路徑顏色進行路徑顏色標識。 A computer capable of automatically coloring a primitive path includes a parameter setting module, an information acquisition module, an information analysis module, a color modification module, a layer layer module, and a design image file. The design file is used to store the elements that need to identify the color of the path. The parameter setting module is used to set the corresponding number of processing tools for different primitives, and set a corresponding identification color for each set number of processing tools. The information acquisition module is configured to select a set number of processing tools, select a picture element corresponding to each processing tool number from the design image file, and obtain layer information of each selected element according to the attribute data of the graphic element, and determine that the image information is not available. A layer that identifies the color of the primitive path and the element that has the layer that belongs to the unidentifiable primitive path color is removed from the selected primitive. The information analysis module is configured to analyze whether a path of a primitive in the remaining elements after the information acquisition module is deleted is identified by a color. The color modification module is configured to modify the path color of the path in which the path of the remaining elements in the primitive remaining after the information acquisition module is deleted, and the path color determined by the corresponding number of processing tools. The primitive layering module is used for each processing knife The number is assigned a corresponding layer, and the elements in the remaining primitives after the information acquisition module are deleted are not marked with color, and are assigned to the assigned layer according to the corresponding number of processing knives. The color modification module is further configured to perform path color identification on the primitives that are assigned to each of the distribution layers by using the path color determined by the corresponding number of processing tools.

相較習知技術,本發明透過將圖元按照加工刀數進行分類,且按照加工刀數進行圖元路徑標識顏色的分類,提高了圖元路徑標色作業的效率及正確性。 Compared with the prior art, the present invention improves the efficiency and correctness of the color path work of the primitive path by classifying the primitives according to the number of processing tools and classifying the color of the symbol path identification according to the number of processing tools.

1‧‧‧電腦 1‧‧‧ computer

10‧‧‧圖元路徑自動標色系統 10‧‧‧ primitive path automatic color system

100‧‧‧參數設定模組 100‧‧‧ parameter setting module

101‧‧‧資訊獲取模組 101‧‧‧Information acquisition module

102‧‧‧資訊分析模組 102‧‧‧Information Analysis Module

103‧‧‧顏色修改模組 103‧‧‧Color Modification Module

105‧‧‧圖元分層模組 105‧‧‧ element layering module

106‧‧‧設計圖檔 106‧‧‧Design files

圖1係本發明圖元路徑自動標色系統較佳實施方式的硬體架構圖。 1 is a hardware architecture diagram of a preferred embodiment of the primitive color mapping system of the present invention.

圖2係本發明圖元路徑自動標色方法較佳實施方式的具體實施流程圖。 FIG. 2 is a specific implementation flowchart of a preferred embodiment of the method for automatically coloring the primitive path of the present invention.

名詞解釋: Glossary:

圖元的加工刀數,指的是在加工過程中機床刀頭按照圖元形狀切割的次數。 The number of machining tools of the drawing element refers to the number of times the machine tool bit is cut according to the shape of the primitive during the machining process.

圖元的路徑,指的是在加工過程中機床刀頭按照圖元形狀切割的軌跡,也即是指圖元在設計圖檔中的線路。 The path of the primitive refers to the trajectory of the cutting edge of the machine tool according to the shape of the primitive during the machining process, that is, the line of the primitive in the design drawing file.

如圖1所示,係本發明圖元路徑自動標色系統較佳實施方式的硬體架構圖。該圖元路徑自動標色系統10運行於一個電腦1中,為用戶提供一個圖元路徑自動標色操作介面。 As shown in FIG. 1, it is a hardware architecture diagram of a preferred embodiment of the primitive color mapping system of the present invention. The primitive path automatic color grading system 10 runs in a computer 1 to provide a user with a primitive path automatic color mapping operation interface.

該圖元路徑自動標色系統10包括參數設定模組100,資訊獲取模組101,資訊分析模組102,顏色修改模組103,圖元分層模組105 ,及設計圖檔106。該設計圖檔106中含有需標識路徑顏色的圖元,且對應一個配置文檔。所述配置文檔含有不可標識圖元路徑顏色的圖層資訊。 The primitive path automatic color calibration system 10 includes a parameter setting module 100, an information acquisition module 101, an information analysis module 102, a color modification module 103, and a layer layering module 105. And the design file 106. The design file 106 contains primitives that need to identify the path color, and corresponds to a configuration document. The configuration document contains layer information that cannot identify the color of the primitive path.

參數設定模組100,用於為不同圖元設定對應的加工刀數,及為設定的每一個加工刀數設定一個對應的標識顏色。圖元的加工刀數是根據圖元在加工過程中的實際需要來設定的,比如說,內孔圖元對應的加工刀數通常是一刀,帶斜度內孔圖元對應的加工刀數通常是三刀。不同的圖元可能對應相同的加工刀數,比如說,圓形內孔與半圓形內孔對應的加工刀數通常是一刀。在本實施例中,圖元路徑標識顏色是根據加工刀數來設定的,不同的加工刀數對應不同的圖元路徑標識顏色,比如說,內孔圖元(一刀)對應的路徑標識顏色為紅色,而帶斜度內孔圖元(三刀)對應的路徑標識顏色為藍色。 The parameter setting module 100 is configured to set a corresponding number of processing tools for different primitives, and set a corresponding identification color for each set number of processing tools. The number of machining knives of the primitive is set according to the actual needs of the primitive during the machining process. For example, the number of machining knives corresponding to the inner hole primitive is usually one knife, and the number of machining knives corresponding to the oblique inner hole primitive is usually It is three knives. Different primitives may correspond to the same number of machining tools. For example, the number of machining knives corresponding to a circular inner hole and a semi-circular inner hole is usually one. In this embodiment, the color of the primitive path identifier is set according to the number of processing tools, and the number of different processing tools corresponds to different primitive path identification colors. For example, the path identification color corresponding to the inner hole graphic element (one knife) is Red, and the path identifier color corresponding to the sloped hole element (three-knife) is blue.

資訊獲取模組101,用於對設定的加工刀數進行選擇,從設計圖檔106中選擇各個加工刀數對應的圖元,根據圖元的屬性資料獲取選擇的每一個圖元的圖層資訊,根據設計圖檔106的配置文檔確定不可標識圖元路徑顏色的圖層,及將屬於不可標識圖元路徑顏色的圖層的圖元從選擇的圖元中刪除。所屬圖元的屬性資料包括所屬圖層資訊、起點和終點座標資訊等。 The information acquisition module 101 is configured to select a set number of processing tools, select a picture element corresponding to each processing tool number from the design image file 106, and obtain layer information of each selected element according to the attribute data of the graphic element. The layer that cannot identify the color of the primitive path is determined according to the configuration document of the design file 106, and the primitive of the layer belonging to the unidentifiable primitive path color is deleted from the selected primitive. The attribute data of the associated element includes the layer information, the start point and the end point coordinate information.

資訊分析模組102,用於分析經資訊獲取模組101刪除後剩餘的圖元中是否有圖元的路徑被標識過顏色,即:分析經資訊獲取模組101刪除後剩餘的圖元中是否有圖元的路徑的當前顏色與初始顏色不同。 The information analysis module 102 is configured to analyze whether the path of the primitive remaining in the picture element deleted by the information obtaining module 101 is identified by the color, that is, whether the remaining elements in the picture acquired by the information obtaining module 101 are analyzed. The current color of the path with the primitive is different from the original color.

顏色修改模組103,用於將經資訊獲取模組101刪除後剩餘的圖元 中路徑被標識過顏色的圖元,按各自對應的加工刀數確定的路徑顏色進行路徑顏色修改。在本實施例中,只有在一個圖元具有的路徑顏色與該圖元對應的加工刀數確定的路徑顏色不一致的情況下,顏色修改模組103才會對該圖元進行路徑顏色修改。 The color modification module 103 is configured to delete the remaining primitives after the information acquisition module 101 is deleted. The middle path is identified by the color of the primitive, and the path color is modified according to the path color determined by the corresponding number of processing knives. In this embodiment, the color modification module 103 performs path color modification on the primitive only if the path color of one primitive does not match the path color determined by the number of processing knives corresponding to the primitive.

圖元分層模組105,用於為每一個加工刀數分配一個對應的圖層,將經資訊獲取模組101刪除後剩餘的圖元中路徑沒有被標識過顏色的圖元按各自對應的加工刀數劃入分配的圖層。 The primitive layering module 105 is configured to allocate a corresponding layer for each processing tool, and the remaining pixels in the primitives deleted by the information obtaining module 101 are not processed by the corresponding color. The number of knives is assigned to the assigned layer.

顏色修改模組103,還用於對劃入各個分配圖層中的圖元,按各自對應的加工刀數確定的路徑顏色進行路徑顏色標識。 The color modification module 103 is further configured to perform path color identification on the primitives that are assigned to the respective distribution layers by using the path color determined by the corresponding number of processing tools.

資訊分析模組102,還用於分析是否有加工刀數未被資訊獲取模組101選擇。 The information analysis module 102 is further configured to analyze whether the number of processing tools is not selected by the information acquisition module 101.

如圖2所示,係本發明圖元路徑自動標色方法較佳實施方式的具體實施流程圖。首先,參數設定模組100為不同圖元設定對應的加工刀數,及為設定的每一個加工刀數設定一個對應的標識顏色(步驟S10)。圖元的加工刀數是根據圖元在加工過程中的實際需要來設定的,比如說,內孔圖元對應的加工刀數通常是一刀,帶斜度內孔圖元對應的加工刀數通常是三刀。不同的圖元可能對應相同的加工刀數,比如說,圓形內孔與半圓形內孔對應的加工刀數通常是一刀。在本實施例中,圖元路徑標識顏色是根據加工刀數來設定的,不同的加工刀數對應不同的圖元路徑標識顏色,比如說,內孔圖元(一刀)對應的路徑標識顏色為紅色,而帶斜度內孔圖元(三刀)對應的路徑標識顏色為藍色。 As shown in FIG. 2, it is a specific implementation flowchart of a preferred embodiment of the method for automatically coloring the primitive path of the present invention. First, the parameter setting module 100 sets the corresponding number of processing knives for different primitives, and sets a corresponding identification color for each set number of processing knives (step S10). The number of machining knives of the primitive is set according to the actual needs of the primitive during the machining process. For example, the number of machining knives corresponding to the inner hole primitive is usually one knife, and the number of machining knives corresponding to the oblique inner hole primitive is usually It is three knives. Different primitives may correspond to the same number of machining tools. For example, the number of machining knives corresponding to a circular inner hole and a semi-circular inner hole is usually one. In this embodiment, the color of the primitive path identifier is set according to the number of processing tools, and the number of different processing tools corresponds to different primitive path identification colors. For example, the path identification color corresponding to the inner hole graphic element (one knife) is Red, and the path identifier color corresponding to the sloped hole element (three-knife) is blue.

資訊獲取模組101從設定的加工刀數中選擇一個加工刀數,並從 設計圖檔106中選擇與該加工刀數對應的圖元(步驟S11)。 The information acquisition module 101 selects one of the number of processing tools from the set number of processing tools, and The primitive corresponding to the number of machining knives is selected in the design image file 106 (step S11).

資訊獲取模組101根據圖元的屬性資料獲取選擇的每一個圖元的圖層資訊(步驟S12)。 The information acquisition module 101 acquires layer information of each selected primitive according to the attribute data of the primitive (step S12).

資訊獲取模組101根據設計圖檔106的配置文檔確定不可標識圖元路徑顏色的圖層,及將屬於不可標識圖元路徑顏色的圖層的圖元從選擇的圖元中刪除(步驟S13)。 The information acquisition module 101 determines a layer that cannot identify the color of the primitive path according to the configuration document of the design image file 106, and deletes the primitive of the layer belonging to the unidentifiable primitive path color from the selected primitive (step S13).

資訊分析模組102分析經資訊獲取模組101刪除後剩餘的圖元中是否有圖元的路徑被標識過顏色,即:分析經資訊獲取模組101刪除後剩餘的圖元中是否有圖元的路徑的當前顏色與初始顏色不同(步驟S15)。 The information analysis module 102 analyzes whether the path of the primitive remaining in the picture element deleted by the information obtaining module 101 is identified by the color, that is, whether the picture element remaining in the picture element deleted by the information obtaining module 101 has a picture element The current color of the path is different from the initial color (step S15).

在經資訊獲取模組101刪除後剩餘的圖元中有圖元的路徑被標識過顏色時,轉入下述步驟S16;或者,在經資訊獲取模組101刪除後剩餘的圖元中沒有圖元的路徑被標識過顏色時,轉入下述步驟S17。 If the path of the primitive in the remaining primitives after the information acquisition module 101 is deleted is identified by the color, the process proceeds to the following step S16; or, the remaining primitives after the information acquisition module 101 is deleted are not shown. When the path of the element is identified as a color, the process proceeds to the following step S17.

顏色修改模組103將經資訊獲取模組101刪除後剩餘的圖元中路徑被標識過顏色的圖元,按該加工刀數確定的路徑顏色進行路徑顏色修改(步驟S16)。在本實施例中,只有在一個圖元具有的路徑顏色與該圖元對應的加工刀數確定的路徑顏色不一致的情況下,顏色修改模組103才會對該圖元進行路徑顏色修改。 The color modification module 103 reconstructs the path color by the path color determined by the number of processing tools after the information acquired by the information acquisition module 101 is deleted, and the path color is modified according to the path color determined by the number of processing tools (step S16). In this embodiment, the color modification module 103 performs path color modification on the primitive only if the path color of one primitive does not match the path color determined by the number of processing knives corresponding to the primitive.

圖元分層模組105為該加工刀數分配一個對應的圖層,將經資訊獲取模組101刪除後剩餘的圖元中路徑沒有被標識過顏色的圖元劃入該分配的圖層(步驟S17)。 The primitive layering module 105 assigns a corresponding layer to the number of processing tools, and the pixels in the remaining primitives that have not been identified by the information acquisition module 101 are not included in the assigned layer (step S17). ).

顏色修改模組103對劃入該分配的圖層中的圖元的路徑標識成該 加工刀數對應的路徑標識顏色(步驟S18)。 The color modification module 103 identifies the path of the primitives that are drawn into the assigned layer into the The path identification color corresponding to the number of machining knives (step S18).

資訊分析模組102分析是否有加工刀數未被資訊獲取模組101選擇(步驟S19)。 The information analysis module 102 analyzes whether or not the number of machining tools is not selected by the information acquisition module 101 (step S19).

在有加工刀數未被資訊獲取模組101選擇時,轉入上述步驟S11;或者,在沒有加工刀數未被資訊獲取模組101選擇時,流程結束。 When the number of machining knives is not selected by the information acquisition module 101, the process proceeds to the above step S11; or, when the number of machining knives is not selected by the information acquisition module 101, the flow ends.

以上所述僅為本發明之較佳實施例而已,且已達廣泛之使用功效,凡其他未脫離本發明所揭示之精神下所完成之均等變化或修飾,均應包含在下述之申請專利範圍內。 The above is only the preferred embodiment of the present invention, and has been used in a wide range of applications. Any other equivalent changes or modifications which are not departing from the spirit of the present invention should be included in the following claims. Inside.

1‧‧‧電腦 1‧‧‧ computer

10‧‧‧圖元路徑自動標色系統 10‧‧‧ primitive path automatic color system

100‧‧‧參數設定模組 100‧‧‧ parameter setting module

101‧‧‧資訊獲取模組 101‧‧‧Information acquisition module

102‧‧‧資訊分析模組 102‧‧‧Information Analysis Module

103‧‧‧顏色修改模組 103‧‧‧Color Modification Module

105‧‧‧圖元分層模組 105‧‧‧ element layering module

106‧‧‧設計圖檔 106‧‧‧Design files

Claims (8)

一種圖元路徑自動標色系統,該系統裝置於電腦中,該系統包括:設計圖檔,用於儲存需標識路徑顏色的圖元;參數設定模組,用於為不同圖元設定對應的加工刀數,及為設定的每一個加工刀數設定一個對應的標識顏色;資訊獲取模組,用於對設定的加工刀數進行選擇,從設計圖檔中選擇各個加工刀數對應的圖元,根據圖元的屬性資料獲取選擇的每一個圖元的圖層資訊,確定不可標識圖元路徑顏色的圖層,及將屬於不可標識圖元路徑顏色的圖層的圖元從選擇的圖元中刪除,所述圖元路徑是圖元在設計圖檔中的線路;資訊分析模組,用於分析經資訊獲取模組刪除後剩餘的圖元中是否有圖元的路徑被標識過顏色;顏色修改模組,用於將經資訊獲取模組刪除後剩餘的圖元中路徑被標識過顏色的圖元,按各自對應的加工刀數確定的路徑顏色進行路徑顏色修改;圖元分層模組,用於為每一個加工刀數分配一個對應的圖層,將經資訊獲取模組刪除後剩餘的圖元中路徑沒有被標識過顏色的圖元,按各自對應的加工刀數劃入分配的圖層;所述顏色修改模組,還用於對劃入各個分配圖層中的圖元,按各自對應的加工刀數確定的路徑顏色進行路徑顏色標識。 An automatic path coloring system for a primitive path, the system being installed in a computer, the system comprising: a design image file for storing a graphic element of a color to be identified; a parameter setting module, configured to set a corresponding processing for different graphic elements The number of knives and a corresponding identification color for each set number of processing knives; the information acquisition module is used for selecting the number of processing knives to be selected, and selecting the primitive corresponding to the number of processing knives from the design drawing file, Obtaining layer information of each selected primitive according to the attribute data of the primitive, determining a layer that cannot identify the color of the primitive path, and deleting the primitive of the layer belonging to the unidentifiable primitive path color from the selected primitive. The primitive path is a line of the primitive in the design image file; the information analysis module is configured to analyze whether the path of the primitive remaining in the primitive after the information acquisition module is deleted is identified by the color; the color modification module For the picture elements whose path is identified by the remaining elements in the picture element after the information acquisition module is deleted, and the path color is determined according to the path color determined by the corresponding number of processing tools. The primitive layering module is configured to allocate a corresponding layer for each processing tool, and the path of the remaining primitives after the information acquisition module is deleted is not identified by the color, and the corresponding processing is performed according to the corresponding processing. The number of knives is assigned to the assigned layer; the color modification module is also used to mark the color of the path determined by the number of the corresponding processing knives for the primitives that are assigned to each of the assigned layers. 如申請專利範圍第1項所述之圖元路徑自動標色系統,其中,所述設計圖檔對應一個含有不可標識圖元路徑顏色的圖層資訊配置文檔。 The primitive path automatic color grading system of claim 1, wherein the design image file corresponds to a layer information configuration document containing a color of the unidentifiable primitive path. 如申請專利範圍第2項所述之圖元路徑自動標色系統,其中,所述資訊獲 取模組根據設計圖檔對應的配置文檔確定不可標識圖元路徑顏色的圖層。 The automatic color mapping system of the primitive path described in claim 2, wherein the information is obtained The module determines a layer that cannot identify the color of the element path according to the configuration document corresponding to the design file. 如申請專利範圍第1項所述之圖元路徑自動標色系統,其中,所述資訊分析模組還用於分析是否有加工刀數未被資訊獲取模組選擇。 The image path automatic color calibration system according to claim 1, wherein the information analysis module is further configured to analyze whether the number of processing tools is not selected by the information acquisition module. 一種基於電腦的圖元路徑自動標色方法,該方法包括如下步驟:a.為不同圖元設定對應的加工刀數,及為設定的每一個加工刀數設定一個對應的標識顏色;b.從設定的加工刀數中選擇一個加工刀數,並從設計圖檔中選擇與該加工刀數對應的圖元;c.根據圖元的屬性資料獲取選擇的每一個圖元的圖層資訊;d.確定不可標識圖元路徑顏色的圖層,及將屬於不可標識圖元路徑顏色的圖層的圖元從選擇的圖元中刪除,所述圖元路徑是圖元在設計圖檔中的線路;e.在剩餘的圖元中有圖元的路徑被標識過顏色時,轉入下述步驟f,或者,在剩餘的圖元中沒有圖元的路徑被標識過顏色時,轉入下述步驟g;f.將剩餘的圖元中路徑被標識過顏色的圖元,按該加工刀數確定的路徑顏色進行路徑顏色修改;g.為該加工刀數分配一個對應的圖層,將剩餘的圖元中路徑沒有被標識過顏色的圖元劃入該分配的圖層;h.對劃入該分配的圖層中的圖元的路徑標識成該加工刀數對應的路徑標識顏色;i.在有加工刀數未被選擇時,轉入上述步驟b。 A method for automatically coloring a primitive path based on a computer, the method comprising the steps of: a. setting a corresponding number of processing knives for different primitives, and setting a corresponding identification color for each set number of processing knives; b. Select one of the number of processing knives, and select the primitive corresponding to the number of processing knives from the design drawing file; c. obtain the layer information of each selected primitive according to the attribute data of the primitive; d. Determining a layer that cannot identify the color of the primitive path, and deleting the primitive of the layer belonging to the unidentifiable primitive path color from the selected primitive, wherein the primitive path is a line of the primitive in the design image file; e. When the path of the primitive in the remaining primitives is identified as a color, the process proceeds to the following step f, or, if the path of the remaining primitives has no color, the process proceeds to the following step g; f. the remaining elements in the remaining primitives whose paths are identified by the color, and the path color determined according to the path color determined by the number of processing tools; g. assigning a corresponding layer to the number of processing tools, and remaining the remaining elements The path has not been identified The color primitive is assigned to the assigned layer; h. the path of the primitive in the assigned layer is identified as the path identifier color corresponding to the number of processing tools; i. when the number of processing tools is not selected, Go to step b above. 如申請專利範圍第5項所述之圖元路徑自動標色方法,其中,所述設計圖檔對應一個含有不可標識圖元路徑顏色的圖層資訊配置文檔。 The method for automatically coloring a primitive path according to claim 5, wherein the design image file corresponds to a layer information configuration document having a color of the unidentifiable primitive path. 如申請專利範圍第6項所述之圖元路徑自動標色方法,其中,所述不可標 識圖元路徑顏色的圖層是根據設計圖檔對應的配置文檔確定的。 The method for automatically coloring a primitive path as described in claim 6 of the patent application, wherein the non-standard The layer that identifies the color of the primitive path is determined according to the configuration document corresponding to the design file. 一種能進行圖元路徑自動標色的電腦,該電腦包括:設計圖檔,用於儲存需標識路徑顏色的圖元;參數設定模組,用於為不同圖元設定對應的加工刀數,及為設定的每一個加工刀數設定一個對應的標識顏色;資訊獲取模組,用於對設定的加工刀數進行選擇,從設計圖檔中選擇各個加工刀數對應的圖元,根據圖元的屬性資料獲取選擇的每一個圖元的圖層資訊,確定不可標識圖元路徑顏色的圖層,及將屬於不可標識圖元路徑顏色的圖層的圖元從選擇的圖元中刪除,所述圖元路徑是圖元在設計圖檔中的線路;資訊分析模組,用於分析經資訊獲取模組刪除後剩餘的圖元中是否有圖元的路徑被標識過顏色;顏色修改模組,用於將經資訊獲取模組刪除後剩餘的圖元中路徑被標識過顏色的圖元,按各自對應的加工刀數確定的路徑顏色進行路徑顏色修改;圖元分層模組,用於為每一個加工刀數分配一個對應的圖層,將經資訊獲取模組刪除後剩餘的圖元中路徑沒有被標識過顏色的圖元,按各自對應的加工刀數劃入分配的圖層;所述顏色修改模組,還用於對劃入各個分配圖層中的圖元,按各自對應的加工刀數確定的路徑顏色進行路徑顏色標識。 A computer capable of automatically coloring a primitive path, the computer comprising: a design image file for storing a graphic element of a color to be identified; a parameter setting module for setting a corresponding number of processing tools for different primitives, and A corresponding identification color is set for each set number of processing knives; an information acquisition module is used for selecting the number of processing knives to be set, and selecting the corresponding element corresponding to the number of processing knives from the design drawing file, according to the picture element The attribute data obtains layer information of each selected primitive, determines a layer that cannot identify the color of the primitive path, and deletes the primitive of the layer belonging to the unidentifiable primitive path color from the selected primitive, the primitive path Is the line of the graphic element in the design image file; the information analysis module is configured to analyze whether the path of the graphic element in the remaining element after the information acquisition module is deleted is identified by the color; the color modification module is used for After the information acquisition module is deleted, the path of the remaining primitives is identified by the color of the primitives, and the path color is modified according to the path color determined by the corresponding number of processing knives; The group is used to assign a corresponding layer to each processing tool, and the remaining elements in the primitives after the information acquisition module is deleted are not marked with color, and are allocated according to the corresponding number of processing tools. The color modification module is further configured to perform path color identification on the image elements that are assigned to each of the distribution layers by using the path color determined by the corresponding number of processing tools.
TW097135105A 2008-09-12 2008-09-12 System, method and computer for automatically marking a graphics path with a predetermined color TWI417807B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW097135105A TWI417807B (en) 2008-09-12 2008-09-12 System, method and computer for automatically marking a graphics path with a predetermined color

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW097135105A TWI417807B (en) 2008-09-12 2008-09-12 System, method and computer for automatically marking a graphics path with a predetermined color

Publications (2)

Publication Number Publication Date
TW201011686A TW201011686A (en) 2010-03-16
TWI417807B true TWI417807B (en) 2013-12-01

Family

ID=44828720

Family Applications (1)

Application Number Title Priority Date Filing Date
TW097135105A TWI417807B (en) 2008-09-12 2008-09-12 System, method and computer for automatically marking a graphics path with a predetermined color

Country Status (1)

Country Link
TW (1) TWI417807B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW340096B (en) * 1996-03-04 1998-09-11 Kinergy Pte Ltd Rapid molding system and method
TW200707147A (en) * 2005-03-23 2007-02-16 Hurco Co Inc Method of tolerance-based trajectory planning and control
TW200823072A (en) * 2006-11-27 2008-06-01 Micro Star Int Co Ltd Method for picture-forming
TW200825643A (en) * 2006-08-04 2008-06-16 Hurco Co Inc System and method for surface finish management

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW340096B (en) * 1996-03-04 1998-09-11 Kinergy Pte Ltd Rapid molding system and method
TW200707147A (en) * 2005-03-23 2007-02-16 Hurco Co Inc Method of tolerance-based trajectory planning and control
TW200825643A (en) * 2006-08-04 2008-06-16 Hurco Co Inc System and method for surface finish management
TW200823072A (en) * 2006-11-27 2008-06-01 Micro Star Int Co Ltd Method for picture-forming

Also Published As

Publication number Publication date
TW201011686A (en) 2010-03-16

Similar Documents

Publication Publication Date Title
CN107430771B (en) System and method for image segmentation
US9984457B2 (en) Automated grossing image synchronization and related viewers and workstations
JP6131723B2 (en) Information processing apparatus, information processing method, program, and recording medium
JP4154156B2 (en) Defect classification inspection system
US9691145B2 (en) Methods and systems for automated selection of regions of an image for secondary finishing and generation of mask image of same
US20090033683A1 (en) Method, system and apparatus for intelligent resizing of images
CN107317725A (en) The method for visualizing and system of a kind of block chain
US9509859B2 (en) Image allocation device and image allocation method
JP2006053919A (en) Image data separating system and method
JP2007279828A (en) Business form processor, business form format preparation device, business form, program for processing business form and program for preparing business form format
US20040054568A1 (en) Automated construction project estimator tool
CN108009346A (en) According to the method for DXF form engineering drawing Fast Drawing SVG form maps
US20090169113A1 (en) Automatic and Semi-Automatic Detection of Planar Shapes from 2D Images
CN112307145A (en) Batch updating method, device, medium and equipment for historical map data
TWI417807B (en) System, method and computer for automatically marking a graphics path with a predetermined color
CN110851630A (en) Management system and method for deep learning labeled samples
JP4889159B2 (en) Data search system and data search method
CN108664972A (en) A kind of wrong answer list that information can be electronic and a kind of wrong topic management method
CN105095173B (en) Composing device and composition method based on typesetting result
CN109285166B (en) Overlapping and conglutinating chromosome automatic segmentation method based on full convolution network
CN113177392A (en) Method for synchronizing row segment information in proofreading interface, computing device and storage medium
JP6617873B2 (en) Copy paste method, program
US10269535B2 (en) Information processing device and information processing method
JP5070116B2 (en) Table data generation apparatus and table data generation method
CN101661519A (en) System and method for automatically marking color of primitive path and computer

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees