CN109685862A - A kind of method that CT slice is directly changed into 3D printing G code - Google Patents

A kind of method that CT slice is directly changed into 3D printing G code Download PDF

Info

Publication number
CN109685862A
CN109685862A CN201811519580.XA CN201811519580A CN109685862A CN 109685862 A CN109685862 A CN 109685862A CN 201811519580 A CN201811519580 A CN 201811519580A CN 109685862 A CN109685862 A CN 109685862A
Authority
CN
China
Prior art keywords
printing
matching
image
code
internal periphery
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.)
Pending
Application number
CN201811519580.XA
Other languages
Chinese (zh)
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.)
Chongqing University
Original Assignee
Chongqing University
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 Chongqing University filed Critical Chongqing University
Priority to CN201811519580.XA priority Critical patent/CN109685862A/en
Publication of CN109685862A publication Critical patent/CN109685862A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B33ADDITIVE MANUFACTURING TECHNOLOGY
    • B33YADDITIVE MANUFACTURING, i.e. MANUFACTURING OF THREE-DIMENSIONAL [3-D] OBJECTS BY ADDITIVE DEPOSITION, ADDITIVE AGGLOMERATION OR ADDITIVE LAYERING, e.g. BY 3-D PRINTING, STEREOLITHOGRAPHY OR SELECTIVE LASER SINTERING
    • B33Y50/00Data acquisition or data processing for additive manufacturing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/44Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/74Image or video pattern matching; Proximity measures in feature spaces
    • G06V10/75Organisation of the matching processes, e.g. simultaneous or sequential comparisons of image or video features; Coarse-fine approaches, e.g. multi-scale approaches; using context analysis; Selection of dictionaries
    • G06V10/752Contour matching

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Materials Engineering (AREA)
  • Manufacturing & Machinery (AREA)
  • Chemical & Material Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Computing Systems (AREA)
  • Databases & Information Systems (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Software Systems (AREA)
  • Apparatus For Radiation Diagnosis (AREA)

Abstract

The invention discloses a kind of CT to be sliced the method for being directly changed into 3D printing G code, key step are as follows: 1) obtains several CT sectioning images to 3D printing object.2) geological information of sectioning image.3) Entities Matching, outer profile matching and Internal periphery is carried out to adjacent sectioning image to match.After the completion of matching, judge contiguous slices image with the presence or absence of bifurcated, and if it exists, to be then transferred to step 4, if it does not exist, then go to step 5.4) bifurcated matching is carried out to the forked contiguous slices image of tool.6) interlayer interpolation processing is carried out to two layers adjacent of sectioning image.7) each layer data is filled and is scanned, obtain scan line, and scan line is encoded into the G code for 3D printing.This invention simplifies data handling procedures, shorten the period of reverse, while efficiently solving bifurcation problem, also improve the quality of matched precision and 3D printing.

Description

A kind of method that CT slice is directly changed into 3D printing G code
Technical field
The present invention relates to 3D printing field, specifically a kind of CT is sliced the method for being directly changed into 3D printing G code.
Background technique
At present, the integrated path of industry CT and 3D printing mainly has 2: 1) Files from Industrial CT Slicing → CAD model → STL File → 3D printing data, 3 Victoria C AD model reconstructions account for the 90%~95% of the reverse time in which, and digital scanning is only 5%~10% is accounted for, while the profile information of stl file has a large amount of redundant data even mistake;2) Files from Industrial CT Slicing → Stl file → 3D printing data not can avoid the defect of stl file although which does not have to carry out CAD modeling.
Summary of the invention
Present invention aim to address problems of the prior art.
To realize the present invention purpose and the technical solution adopted is that such, a kind of CT slice is directly changed into 3D printing G The method of code, mainly comprises the steps that
1) several CT sectioning images to 3D printing object are obtained.
2) each CT sectioning image is pre-processed, to obtain the geological information of sectioning image.
The geological information mainly includes entity, outer profile, Internal periphery, segment and point set.Wherein entity by Internal periphery and Outer profile composition.Internal periphery and outer profile are made of segment.If segment is formed by doing.
3) Entities Matching is carried out to adjacent sectioning image.
The method of Entities Matching is the registration for calculating adjacent slice.Entities Matching includes one-to-one, a pair of two or one To more matchings.
4) outer profile matching is carried out to adjacent sectioning image and Internal periphery matches.After the completion of matching, contiguous slices are judged Image whether there is bifurcated, and if it exists, is then transferred to step 5, if it does not exist, then gos to step 6.
When Internal periphery or outer profile match, profile is recorded with tree construction.The nest relation of the depth representing profile of tree.
Internal periphery or outer profile matching include one-to-one, a pair of two or one-to-many matching.
The method for judging whether there is bifurcated are as follows: whether the corresponding relationship for judging contiguous slices image is one-to-one, if so, Bifurcated is then not present, if it is not, then there is bifurcated.
5) to having forked contiguous slices image progress bifurcated matching, make the one-to-one corresponding pass of contiguous slices image System.
The matched method of bifurcated is as follows:
I the Internal periphery and outer profile of contiguous slices image entities) are split as segment.
The method that Internal periphery and outer profile are split as segment is as follows:
A) curvature of outer profile or Internal periphery each point is calculated.
B) the identical point of curvature constitutes a segment.
II contiguous slices image segments) are matched, thus the corresponding relationship of sectioning image by a pair two or one-to-many conversion It is one-to-one.
6) interlayer interpolation processing is carried out to two layers adjacent of sectioning image.
7) each layer data is filled and is scanned, obtain scan line, and scan line is encoded into the G for 3D printing Code.
The solution have the advantages that unquestionable.The present invention be directed to industry CT and 3D printing the characteristics of, realize by Workpiece Files from Industrial CT Slicing directly generates the G code formatted file for 3D printing.The present invention has been effectively shielded from the 3 of exemplar The generation of Victoria C AD modeling and stl file, simplifies data handling procedure, shortens the period of reverse.The present invention uses cutting plate The method of section also improves matched precision while efficiently solving bifurcation problem.The present invention carries out line to interlayer profile The G code model surface transition obtained after property interpolation is smoother, improves 3D printing part quality.
Detailed description of the invention
Fig. 1 is the method flow diagram that CT slice is directly changed into 3D printing G code;
Fig. 2 is geological information schematic diagram in slice;
Fig. 3 is entity registration schematic diagram;
Fig. 4 is profile nest relation and corresponding arborescence I;
Fig. 5 is profile nest relation and corresponding arborescence II;
Fig. 6 is profile nest relation and corresponding arborescence III;
Fig. 7 is fragmentary views;
Fig. 8 is interpolation processing schematic diagram;
Fig. 9 is the G code conversion process schematic diagram of wheel hub slice.
Specific embodiment
Below with reference to embodiment, the invention will be further described, but should not be construed the above-mentioned subject area of the present invention only It is limited to following embodiments.Without departing from the idea case in the present invention described above, according to ordinary skill knowledge and used With means, various replacements and change are made, should all include within the scope of the present invention.
Embodiment 1:
Referring to Fig. 1, a kind of method that CT slice is directly changed into 3D printing G code is mainly comprised the steps that
1) several CT sectioning images to 3D printing object are obtained.
2) each CT sectioning image is pre-processed, to obtain the geological information of sectioning image.
The geological information mainly includes entity, outer profile, Internal periphery, segment and point set.Wherein entity by Internal periphery and Outer profile composition.Internal periphery and outer profile are made of segment.If segment is formed by doing.Geological information is as shown in Figure 2.
3) Entities Matching is carried out to adjacent sectioning image.
The method of Entities Matching is the registration for calculating adjacent slice, as shown in figure 3, A, B are respectively contiguous slices figure The entity of picture, C indicate the registration of contiguous slices image.Entities Matching includes one-to-one, a pair of two or one-to-many matching.
4) outer profile matching is carried out to adjacent sectioning image and Internal periphery matches.After the completion of matching, contiguous slices are judged Image whether there is bifurcated, and if it exists, is then transferred to step 5, if it does not exist, then gos to step 6.
When Internal periphery or outer profile match, profile is recorded with tree construction.The nest relation of the depth representing profile of tree.Example It such as, include profile 3, profile 4, profile 8 in profile 1 in Fig. 4 and Fig. 5, profile 2 includes profile 5, profile 6, profile 7, profile 9, Include profile 8 in profile 3, includes profile 9 in profile 6, therefore, tree structure is as shown in Figure 6.
Internal periphery or outer profile matching include one-to-one, a pair of two or one-to-many matching.
The method for judging whether there is bifurcated are as follows: whether the corresponding relationship for judging contiguous slices image is one-to-one, if so, Bifurcated is then not present, if it is not, then there is bifurcated.
5) to having forked contiguous slices image progress bifurcated matching, make the one-to-one corresponding pass of contiguous slices image System.
I the Internal periphery and outer profile of contiguous slices image entities) are split as segment.
The method that Internal periphery and outer profile are split as segment is as follows:
A) curvature of outer profile or Internal periphery each point is calculated.
B) the identical point of curvature constitutes a segment.
II contiguous slices image segments) are matched, thus the corresponding relationship of sectioning image by a pair two or one-to-many conversion It is one-to-one.
6) interlayer interpolation processing is carried out to two layers adjacent of sectioning image.As shown in figure 8, U indicates upper layer sectioning image, B Indicate that lower layer's sectioning image, U indicate linear interpolation.
7) each layer data is filled and is scanned, obtain scan line, and scan line is encoded into the G for 3D printing Code.
Embodiment 2:
A kind of CT slice is directly changed into the experiment of 3D printing G code method printing wheel hub, and key step is as follows:
1) several CT sectioning images of wheel hub are obtained.
2) each CT sectioning image is pre-processed, to obtain the geological information of sectioning image.
3) Entities Matching is carried out to adjacent sectioning image.
4) outer profile matching is carried out to adjacent sectioning image and Internal periphery matches.After the completion of matching, contiguous slices are judged Image whether there is bifurcated, and if it exists, is then transferred to step 5, if it does not exist, then gos to step 6.
5) to having forked contiguous slices image progress bifurcated matching, make the one-to-one corresponding pass of contiguous slices image System.
I the Internal periphery and outer profile of contiguous slices image entities) are split as segment, as shown in Figure 7.
II contiguous slices image segments) are matched, thus the corresponding relationship of sectioning image by a pair two or one-to-many conversion It is one-to-one.
6) interlayer interpolation processing is carried out to two layers adjacent of sectioning image.
7) each layer data is filled and is scanned, obtain scan line, and scan line is encoded into the G for 3D printing Code, as shown in Figure 9.

Claims (7)

1. a kind of CT is sliced the method for being directly changed into 3D printing G code, which is characterized in that mainly comprise the steps that
1) several CT sectioning images to 3D printing object are obtained;
2) each CT sectioning image is pre-processed, to obtain the geological information of sectioning image.
3) Entities Matching is carried out to adjacent sectioning image;
4) outer profile matching is carried out to adjacent sectioning image and Internal periphery matches;After the completion of matching, contiguous slices image is judged With the presence or absence of bifurcated, and if it exists, be then transferred to step 5, if it does not exist, then go to step 6;
5) to having forked contiguous slices image progress bifurcated matching, make the one-to-one corresponding relationship of contiguous slices image;
6) interlayer interpolation processing is carried out to two layers adjacent of sectioning image;
7) each layer data is filled and is scanned, obtain scan line, and scan line is encoded into the G generation for 3D printing Code.
2. a kind of CT according to claim 1 is sliced the method for being directly changed into 3D printing G code, it is characterised in that: institute Stating geological information mainly includes entity, outer profile, Internal periphery, segment and point set;Wherein entity is made of Internal periphery and outer profile; Internal periphery and outer profile are made of segment;If segment is formed by doing.
3. a kind of CT according to claim 1 or 2 is sliced the method for being directly changed into 3D printing G code, it is characterised in that: The method of Entities Matching is the registration for calculating adjacent slice;Entities Matching includes one-to-one, a pair of two or one-to-many Match.
4. a kind of CT according to claim 1 or 2 is sliced the method for being directly changed into 3D printing G code, it is characterised in that: When Internal periphery or outer profile match, profile is recorded with tree construction;The nest relation of the depth representing profile of tree;
Internal periphery or outer profile matching include one-to-one, a pair of two or one-to-many matching.
5. a kind of CT according to claim 1 is sliced the method for being directly changed into 3D printing G code, which is characterized in that point Pitch matching process are as follows:
1) Internal periphery and outer profile of contiguous slices image entities are torn open and is split as segment;
2) contiguous slices image segments are matched, so that the corresponding relationship of sectioning image is converted to a pair by a pair two or one-to-many One.
6. a kind of CT according to claim 1 is sliced the method for being directly changed into 3D printing G code, which is characterized in that sentence The disconnected method with the presence or absence of bifurcated are as follows: whether the corresponding relationship for judging contiguous slices image is one-to-one, if so, there is no divide Fork, if it is not, then there is bifurcated.
7. a kind of CT according to claim 1 is sliced the method for being directly changed into 3D printing G code, which is characterized in that will The method that Internal periphery and outer profile are split as segment is as follows:
1) curvature of outer profile or Internal periphery each point is calculated;
2) the identical point of curvature constitutes a segment.
CN201811519580.XA 2018-12-12 2018-12-12 A kind of method that CT slice is directly changed into 3D printing G code Pending CN109685862A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811519580.XA CN109685862A (en) 2018-12-12 2018-12-12 A kind of method that CT slice is directly changed into 3D printing G code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811519580.XA CN109685862A (en) 2018-12-12 2018-12-12 A kind of method that CT slice is directly changed into 3D printing G code

Publications (1)

Publication Number Publication Date
CN109685862A true CN109685862A (en) 2019-04-26

Family

ID=66187438

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811519580.XA Pending CN109685862A (en) 2018-12-12 2018-12-12 A kind of method that CT slice is directly changed into 3D printing G code

Country Status (1)

Country Link
CN (1) CN109685862A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113478834A (en) * 2021-06-30 2021-10-08 广州市健齿生物科技有限公司 3D printing method, device and equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102495584A (en) * 2011-11-24 2012-06-13 重庆大学 Method for directly generating numerical control machining code by using industrial CT (Computed Tomography) sequence image
CN102663814A (en) * 2012-03-30 2012-09-12 上海第二工业大学 Automatic modeling method utilizing two dimensional image to generate three dimensional geometric model
CN103136786A (en) * 2013-02-06 2013-06-05 心医国际数字医疗***(大连)有限公司 Method and system for quickly generating three-dimensional view through captive test (CT) graph
JP2015082678A (en) * 2013-10-21 2015-04-27 大日本印刷株式会社 Copyright protection method and protection system for 3d printer output data
CN108257120A (en) * 2018-01-09 2018-07-06 东北大学 A kind of extraction method of the three-dimensional liver bounding box based on CT images
CN108288271A (en) * 2018-02-06 2018-07-17 上海交通大学 Image detecting system and method based on three-dimensional residual error network
CN108889948A (en) * 2018-08-24 2018-11-27 合肥工业大学 A kind of subarea-scanning method for thin-wall part increasing material manufacturing

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102495584A (en) * 2011-11-24 2012-06-13 重庆大学 Method for directly generating numerical control machining code by using industrial CT (Computed Tomography) sequence image
CN102663814A (en) * 2012-03-30 2012-09-12 上海第二工业大学 Automatic modeling method utilizing two dimensional image to generate three dimensional geometric model
CN103136786A (en) * 2013-02-06 2013-06-05 心医国际数字医疗***(大连)有限公司 Method and system for quickly generating three-dimensional view through captive test (CT) graph
JP2015082678A (en) * 2013-10-21 2015-04-27 大日本印刷株式会社 Copyright protection method and protection system for 3d printer output data
CN108257120A (en) * 2018-01-09 2018-07-06 东北大学 A kind of extraction method of the three-dimensional liver bounding box based on CT images
CN108288271A (en) * 2018-02-06 2018-07-17 上海交通大学 Image detecting system and method based on three-dimensional residual error network
CN108889948A (en) * 2018-08-24 2018-11-27 合肥工业大学 A kind of subarea-scanning method for thin-wall part increasing material manufacturing

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
李占利 等: "面向RP的骨骼三维重构***", 《西安科技学院学报》 *
段黎明 等: "工业CT切片图像直接生成快速原型层片数据", 《强激光与粒子束》 *
段黎明 等: "工业CT切片图像直接生成粗加工数控代码", 《重庆大学学报》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113478834A (en) * 2021-06-30 2021-10-08 广州市健齿生物科技有限公司 3D printing method, device and equipment

Similar Documents

Publication Publication Date Title
US11150633B2 (en) System and method for automated geometric shape deviation modeling for additive manufacturing
US9835568B2 (en) Defect correction using tomographic scanner for additive manufacturing
CN109367014B (en) 3D printing method for axially printing bent pipe based on five-axis printing platform
US20180297115A1 (en) Real Time Detection of Defects during Formation of an Additively Manufactured Component
CN103894608B (en) A kind of 3 D-printing large spot scanning pattern generation method
CN110853132B (en) Three-dimensional modeling method for 3D printed complex curved surface part
CN107358636B (en) Loose defect image generation method based on texture synthesis
CN107464223B (en) Point cloud hole repairing method based on slices
US20180243866A1 (en) Turbine component repair with additive manufacturing
Pratt et al. Progress towards an international standard for data transfer in rapid prototyping and layered manufacturing
CN105426628B (en) A kind of complex product isomery Model Fusion method
CN108237693A (en) The B-REP of the result of twin shaft 3D printing process
WO2023082760A1 (en) Defective picture generation method and apparatus applied to industrial quality inspection
CN109598705B (en) Automatic generation method of inspection procedure based on detection characteristics
CN104408240A (en) Data conversion and extraction method for model based definition (MBD)
EP2233950A3 (en) Method and System for Inspection of Containers
CN109685862A (en) A kind of method that CT slice is directly changed into 3D printing G code
CN116373304A (en) In-situ repair path planning method for composite damaged member
US20180071821A1 (en) Additive manufacturing material analysis system and related method
CN106392071A (en) Method used for improving manufacturing efficiency and precision of additive formed through powder bed fusion
Alamri et al. Predicting the porosity in selective laser melting parts using hybrid regression convolutional neural network
CN113469388B (en) Maintenance system and method for rail transit vehicle
US20230294221A1 (en) Method and arrangement for repairing a workpiece
Ali et al. An integrated design approach for rapid product development: A case study through application of reverse engineering, re‐engineering and fast prototyping tools
WO2023071159A1 (en) 3d printed product counterfeiting prevention method based on embedded identification code and applicable to multiple processes

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190426