CN111128350B - Online editing method and device - Google Patents
Online editing method and device Download PDFInfo
- Publication number
- CN111128350B CN111128350B CN201911360701.5A CN201911360701A CN111128350B CN 111128350 B CN111128350 B CN 111128350B CN 201911360701 A CN201911360701 A CN 201911360701A CN 111128350 B CN111128350 B CN 111128350B
- Authority
- CN
- China
- Prior art keywords
- dimensional model
- frame
- implant
- file
- browser
- 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
Links
Classifications
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16H—HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
- G16H30/00—ICT specially adapted for the handling or processing of medical images
- G16H30/40—ICT specially adapted for the handling or processing of medical images for processing medical images, e.g. editing
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T19/00—Manipulating 3D models or images for computer graphics
- G06T19/20—Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts
Landscapes
- Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Public Health (AREA)
- Architecture (AREA)
- Epidemiology (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Primary Health Care (AREA)
- Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
- Radiology & Medical Imaging (AREA)
- Computer Graphics (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Processing Or Creating Images (AREA)
Abstract
本发明公开了一种在线编辑方法及装置。其中,该方法包括:确定待处理对象的第一三维模型文件;确定需要植入待处理对象的初始植入物的第二三维模型,其中,初始植入物是根据待处理对象的特征信息确定的;在预定浏览器中展现用于呈现第一三维模型文件对应的第一三维模型的第一框架;将第一三维模型以及第二三维模型匹配到第一框架中;在第一框架中呈现第一三维模型以及第二三维模型;选择第三三维模型,并利用第三三维模型替换呈现在第一框架中的第二三维模型。本发明解决了相关技术中在通过浏览器进行手术规划显示时无法进行编辑的技术问题。
The invention discloses an online editing method and device. Wherein, the method includes: determining a first three-dimensional model file of the object to be processed; determining a second three-dimensional model of an initial implant that needs to be implanted in the object to be processed, wherein the initial implant is determined based on the characteristic information of the object to be processed. of; displaying in a predetermined browser a first frame for presenting the first three-dimensional model corresponding to the first three-dimensional model file; matching the first three-dimensional model and the second three-dimensional model to the first frame; presenting in the first frame The first three-dimensional model and the second three-dimensional model; select the third three-dimensional model, and use the third three-dimensional model to replace the second three-dimensional model presented in the first frame. The present invention solves the technical problem in the related art that the surgical plan cannot be edited when displayed through a browser.
Description
技术领域Technical field
本发明涉及数据处理技术领域,具体而言,涉及一种在线编辑方法及装置。The present invention relates to the field of data processing technology, and specifically to an online editing method and device.
背景技术Background technique
手术规划,即手术前,获得患者病灶处的图像,然后结合医生的解剖学和病理学知识,进行手术规划(包括手术方法、手术流程、手术切口与路径等),并得到手术方案。随着科学技术的发展,医生在手术借助计算机技术辅助进行手术前规划,以便设计出最优的手术方案。Surgical planning means obtaining images of the patient's lesions before surgery, and then combining the doctor's knowledge of anatomy and pathology to conduct surgical planning (including surgical methods, surgical procedures, surgical incisions and paths, etc.), and obtain a surgical plan. With the development of science and technology, doctors use computer technology to assist in pre-operative planning in order to design the optimal surgical plan.
在手术规划的呈现方面,通常需要用户在电脑或手机端安装客户端,即使在使用浏览器进行手术规划显示时也要求用户下载并安装插件,才能进行网页交互式三维显示,这样的操作给用户带来了不便。In terms of presentation of surgical planning, users are usually required to install a client on a computer or mobile phone. Even when using a browser to display surgical planning, the user is required to download and install a plug-in in order to perform interactive three-dimensional display on the web page. This operation gives users caused inconvenience.
同时,用户在浏览手术规划时,需要对手术规划进行编辑调整,如替换手术规划预先选定的植入物假体型号,常规的在线浏览手术规划呈现方式无法满足编辑手术规划的需要。At the same time, when users browse the surgical plan, they need to edit and adjust the surgical plan, such as replacing the implant and prosthesis model pre-selected in the surgical plan. The conventional online presentation method of browsing the surgical plan cannot meet the needs of editing the surgical plan.
针对上述相关技术中在通过浏览器进行手术规划显示时无法进行编辑的问题,目前尚未提出有效的解决方案。Regarding the above-mentioned related technology problem of being unable to edit when displaying the surgical plan through a browser, no effective solution has yet been proposed.
发明内容Contents of the invention
本发明实施例提供了一种在线编辑方法及装置,以至少解决相关技术中在通过浏览器进行手术规划显示时无法进行编辑的技术问题。Embodiments of the present invention provide an online editing method and device to at least solve the technical problem in the related art that editing cannot be performed when displaying surgical plans through a browser.
根据本发明实施例的一个方面,提供了一种在线编辑方法,包括:确定待处理对象的第一三维模型文件;确定需要植入所述待处理对象的初始植入物的第二三维模型,其中,所述初始植入物是根据所述待处理对象的特征信息确定的;在预定浏览器中展现用于呈现所述第一三维模型文件对应的第一三维模型的第一框架;将所述第一三维模型以及所述第二三维模型匹配到所述第一框架中;在所述第一框架中呈现所述第一三维模型以及所述第二三维模型;选择第三三维模型,并利用所述第三三维模型替换呈现在所述第一框架中的所述第二三维模型。According to one aspect of an embodiment of the present invention, an online editing method is provided, including: determining a first three-dimensional model file of an object to be processed; determining a second three-dimensional model of an initial implant that needs to be implanted in the object to be processed, Wherein, the initial implant is determined based on the characteristic information of the object to be processed; a first frame for presenting the first three-dimensional model corresponding to the first three-dimensional model file is displayed in a predetermined browser; Match the first three-dimensional model and the second three-dimensional model to the first frame; present the first three-dimensional model and the second three-dimensional model in the first frame; select a third three-dimensional model, and The second three-dimensional model presented in the first frame is replaced with the third three-dimensional model.
可选地,在确定所述待处理对象的第一三维模型文件之前,该在线编辑方法还包括:获取所述待处理对象的影像数据;对所述影像数据进行逆向处理得到所述第一三维模型。Optionally, before determining the first three-dimensional model file of the object to be processed, the online editing method further includes: obtaining image data of the object to be processed; performing reverse processing on the image data to obtain the first three-dimensional model file. Model.
可选地,确定所述待处理对象的第一三维模型文件包括:确定所述第一三维模型的第一空间位置信息以及所述第一三维模型的第一属性信息;根据所述第一空间位置信息以及所述第一属性信息确定所述待处理对象的第一三维模型文件,并将所述第一三维模型文件存储至第一预定存储位置。Optionally, determining the first three-dimensional model file of the object to be processed includes: determining the first spatial position information of the first three-dimensional model and the first attribute information of the first three-dimensional model; according to the first space The position information and the first attribute information determine the first three-dimensional model file of the object to be processed, and the first three-dimensional model file is stored in a first predetermined storage location.
可选地,确定需要植入所述待处理对象的初始植入物的第二三维模型包括:将所述第二三维模型存储至第二预定存储位置;其中,将所述第二三维模型存储至所述第二预定存储位置包括:根据所述待处理对象确定所述初始植入物的型号信息以及所述初始植入物的第二空间位置信息,得到所述第二三维模型的第二模型文件;将所述第二模型文件存储在所述第二预定存储位置。Optionally, determining that a second three-dimensional model of the initial implant that needs to be implanted in the object to be treated includes: storing the second three-dimensional model to a second predetermined storage location; wherein, storing the second three-dimensional model To the second predetermined storage location includes: determining the model information of the initial implant and the second spatial position information of the initial implant according to the object to be processed, and obtaining a second image of the second three-dimensional model. Model file; store the second model file in the second predetermined storage location.
可选地,在所述预定浏览器中展现用于呈现所述第一三维模型的框架包括:在3D绘图协议下,所述预定浏览器通过JavaScript脚本将所述第一三维模型的第一模型文件传输至预定计算机的显示卡;控制所述显示卡根据所述第一模型文件通过着色器在所述预定浏览器中搭建所述第一框架;在所述预定浏览器中呈现所述第一框架。Optionally, presenting the framework for presenting the first three-dimensional model in the predetermined browser includes: under the 3D drawing protocol, the predetermined browser converts the first model of the first three-dimensional model into the first three-dimensional model through a JavaScript script. The file is transferred to the display card of the predetermined computer; controlling the display card to build the first frame in the predetermined browser through a shader according to the first model file; rendering the first frame in the predetermined browser frame.
可选地,将所述第一三维模型以及所述第二三维模型匹配到所述第一框架中包括:控制所述预定浏览器通过JavaScript脚本将所述第一模型文件以及所述第二模型文件传输至所述显示卡的顶点着色器和片段着色器;控制所述预定浏览器通过所述JavaScript脚本调用所述显示卡的顶点着色器和片段着色器,处理所述第一模型文件以及所述第二模型文件对应的信息。Optionally, matching the first three-dimensional model and the second three-dimensional model to the first frame includes: controlling the predetermined browser to convert the first model file and the second model file into the first frame through a JavaScript script. The file is transferred to the vertex shader and fragment shader of the display card; controlling the predetermined browser to call the vertex shader and fragment shader of the display card through the JavaScript script to process the first model file and the The information corresponding to the second model file.
可选地,在选择第三三维模型之前,该在线编辑方法还包括:构建植入物产品库;其中,构建所述植入物产品库包括:确定根据所述第一三维模型文件确定的至少一个植入物;获取所述至少一个植入物的三维模型文件,以得到所述植入物产品库。Optionally, before selecting the third three-dimensional model, the online editing method further includes: building an implant product library; wherein building the implant product library includes: determining at least An implant; obtain the three-dimensional model file of the at least one implant to obtain the implant product library.
可选地,选择第三三维模型,并利用所述第三三维模型替换呈现在所述第一框架中的所述第二三维模型包括:在所述预定浏览器中展现用于呈现所述至少一个植入物的三维模型文件的第二框架;将所述植入物产品库中的三维模型文件传输至所述预定浏览器,以在所述第二框架中呈现所述至少一个植入物的三维模型文件;从所述第二框架中选择所述第三三维模型;将所述第三三维模型移动至所述第一框架的预定位置,以替换所述呈现在所述第一框架中的所述第二三维模型。Optionally, selecting a third three-dimensional model and using the third three-dimensional model to replace the second three-dimensional model presented in the first frame includes: displaying in the predetermined browser for presenting the at least a second frame of a three-dimensional model file of an implant; transmitting the three-dimensional model file in the implant product library to the predetermined browser to present the at least one implant in the second frame a three-dimensional model file; select the third three-dimensional model from the second frame; move the third three-dimensional model to a predetermined position of the first frame to replace the one presented in the first frame of the second three-dimensional model.
根据本发明实施例的另外一个方面,还提供了一种在线编辑装置,包括:第一确定单元,用于确定待处理对象的第一三维模型文件;第二确定单元,用于确定需要植入所述待处理对象的初始植入物的第二三维模型,其中,所述初始植入物是根据所述待处理对象的特征信息确定的;展现单元,用于在预定浏览器中展现用于呈现所述第一三维模型文件对应的第一三维模型的第一框架;匹配单元,用于将所述第一三维模型以及所述第二三维模型匹配到所述第一框架中;呈现单元,用于在所述第一框架中呈现所述第一三维模型以及所述第二三维模型;替换单元,用于选择第三三维模型,并利用所述第三三维模型替换呈现在所述第一框架中的所述第二三维模型。According to another aspect of the embodiment of the present invention, an online editing device is also provided, including: a first determination unit used to determine the first three-dimensional model file of the object to be processed; a second determination unit used to determine the need for implantation The second three-dimensional model of the initial implant of the object to be treated, wherein the initial implant is determined based on the characteristic information of the object to be treated; a display unit configured to display the initial implant in a predetermined browser. Present the first frame of the first three-dimensional model corresponding to the first three-dimensional model file; a matching unit for matching the first three-dimensional model and the second three-dimensional model to the first frame; a presentation unit, for presenting the first three-dimensional model and the second three-dimensional model in the first frame; a replacement unit for selecting a third three-dimensional model and using the third three-dimensional model to replace the first three-dimensional model presented in the first frame; The second 3D model in the frame.
可选地,该在线编辑装置还包括:获取单元,用于在确定所述待处理对象的第一三维模型文件之前,获取所述待处理对象的影像数据;逆向处理单元,用于对所述影像数据进行逆向处理得到所述第一三维模型。Optionally, the online editing device further includes: an acquisition unit, configured to acquire the image data of the object to be processed before determining the first three-dimensional model file of the object to be processed; and a reverse processing unit, configured to perform the processing on the object. The image data is reversely processed to obtain the first three-dimensional model.
可选地,所述第一确定单元包括:第一确定模块,用于确定所述第一三维模型的第一空间位置信息以及所述第一三维模型的第一属性信息;第二确定模块,用于根据所述第一空间位置信息以及所述第一属性信息确定所述待处理对象的第一三维模型文件,并将所述第一三维模型文件存储至第一预定存储位置。Optionally, the first determination unit includes: a first determination module, used to determine the first spatial position information of the first three-dimensional model and the first attribute information of the first three-dimensional model; a second determination module, Determining a first three-dimensional model file of the object to be processed according to the first spatial position information and the first attribute information, and storing the first three-dimensional model file in a first predetermined storage location.
可选地,所述第二确定单元包括:存储模块,用于将所述第二三维模型存储至第二预定存储位置;其中,所述存储模块包括:确定子模块,用于根据所述待处理对象确定所述初始植入物的型号信息以及所述初始植入物的第二空间位置信息,得到所述第二三维模型的第二模型文件;存储子模块,用于将所述第二模型文件存储在所述第二预定存储位置。Optionally, the second determination unit includes: a storage module for storing the second three-dimensional model to a second predetermined storage location; wherein the storage module includes: a determination sub-module for determining according to the to-be-determined The processing object determines the model information of the initial implant and the second spatial position information of the initial implant, and obtains a second model file of the second three-dimensional model; a storage submodule is used to store the second The model file is stored in the second predetermined storage location.
可选地,所述呈现单元包括:传输模块,用于在3D绘图协议下,所述预定浏览器通过JavaScript脚本将所述第一三维模型的第一模型文件传输至预定计算机的显示卡;第一控制模块,用于控制所述显示卡根据所述第一模型文件通过着色器在所述预定浏览器中搭建所述第一框架;呈现模块,用于在所述预定浏览器中呈现所述第一框架。Optionally, the presentation unit includes: a transmission module, configured for the predetermined browser to transmit the first model file of the first three-dimensional model to the display card of the predetermined computer through a JavaScript script under a 3D drawing protocol; A control module, used to control the display card to build the first frame in the predetermined browser through a shader according to the first model file; a presentation module, used to present the first frame in the predetermined browser First frame.
可选地,所述匹配单元包括:第二控制模块,用于控制所述预定浏览器通过JavaScript脚本将所述第一模型文件以及所述第二模型文件传输至所述显示卡的顶点着色器和片段着色器;第三控制模块,用于控制所述预定浏览器通过所述JavaScript脚本调用所述显示卡的顶点着色器和片段着色器,处理所述第一模型文件以及所述第二模型文件对应的信息。Optionally, the matching unit includes: a second control module for controlling the predetermined browser to transmit the first model file and the second model file to the vertex shader of the display card through a JavaScript script and a fragment shader; a third control module for controlling the predetermined browser to call the vertex shader and fragment shader of the display card through the JavaScript script to process the first model file and the second model Information corresponding to the file.
可选地,该在线编辑装置还包括:构建单元,用于在选择第三三维模型之前,构建植入物产品库;其中,所述构建单元包括:第三确定模块,用于确定根据所述第一三维模型文件确定的至少一个植入物;获取模块,用于获取所述至少一个植入物的三维模型文件,以得到所述植入物产品库。Optionally, the online editing device further includes: a building unit, used to build an implant product library before selecting the third three-dimensional model; wherein the building unit includes: a third determination module, used to determine according to the At least one implant determined by the first three-dimensional model file; an acquisition module configured to acquire the three-dimensional model file of the at least one implant to obtain the implant product library.
可选地,所述替换单元包括:展现模块,用于在所述预定浏览器中展现用于呈现所述至少一个植入物的三维模型文件的第二框架;呈现模块,用于将所述植入物产品库中的三维模型文件传输至所述预定浏览器,以在所述第二框架中呈现所述至少一个植入物的三维模型文件;选择模块,用于从所述第二框架中选择所述第三三维模型;替换模块,用于将所述第三三维模型移动至所述第一框架的预定位置,以替换所述呈现在所述第一框架中的所述第二三维模型。Optionally, the replacement unit includes: a presentation module, configured to present a second frame for presenting the three-dimensional model file of the at least one implant in the predetermined browser; a presentation module, configured to display the three-dimensional model file of the at least one implant. The three-dimensional model file in the implant product library is transmitted to the predetermined browser to present the three-dimensional model file of the at least one implant in the second frame; a selection module is used to select the three-dimensional model file from the second frame Select the third three-dimensional model in the first frame; a replacement module for moving the third three-dimensional model to a predetermined position of the first frame to replace the second three-dimensional model presented in the first frame Model.
根据本发明实施例的另外一个方面,还提供了一种存储介质,所述存储介质包括存储的程序,其中,所述程序执行上述中任意一项所述的在线编辑方法。According to another aspect of the embodiment of the present invention, a storage medium is also provided. The storage medium includes a stored program, wherein the program executes any one of the above online editing methods.
根据本发明实施例的另外一个方面,还提供了一种处理器,所述处理器用于运行程序,其中,所述程序运行时执行上述中任意一项所述的在线编辑方法。According to another aspect of the embodiment of the present invention, a processor is also provided, and the processor is configured to run a program, wherein when the program is running, it executes any one of the above online editing methods.
在本发明实施例中,采用确定待处理对象的第一三维模型文件;确定需要植入待处理对象的初始植入物的第二三维模型,其中,初始植入物是根据待处理对象的特征信息确定的;在预定浏览器中展现用于呈现第一三维模型文件对应的第一三维模型的第一框架;将第一三维模型以及第二三维模型匹配到第一框架中;在第一框架中呈现第一三维模型以及第二三维模型;选择第三三维模型,并利用第三三维模型替换呈现在第一框架中的第二三维模型,通过本发明实施例提供的在线编辑方法,实现了可以直接在预定浏览器中搭建用于展现待处理对象以及植入物的三维模型的框架,在需要进行展示或者编辑时,可直接在浏览器中进行展示或编辑的目的,并达到了提高对待处理对象进行处理的灵活性的技术效果,进而解决了相关技术中在通过浏览器进行手术规划显示时无法进行编辑的技术问题。In the embodiment of the present invention, a first three-dimensional model file is used to determine the object to be treated; and a second three-dimensional model is used to determine the initial implant that needs to be implanted in the object to be treated, wherein the initial implant is based on the characteristics of the object to be treated. The information is determined; displaying in a predetermined browser a first frame for presenting the first three-dimensional model corresponding to the first three-dimensional model file; matching the first three-dimensional model and the second three-dimensional model to the first frame; in the first frame The first three-dimensional model and the second three-dimensional model are presented in the first frame; the third three-dimensional model is selected, and the third three-dimensional model is used to replace the second three-dimensional model presented in the first frame. Through the online editing method provided by the embodiment of the present invention, the A framework for displaying the three-dimensional model of the object to be processed and the implant can be built directly in the predetermined browser. When display or editing is needed, the purpose of display or editing can be directly performed in the browser, and the treatment is improved. The technical effect of flexibility in processing the object is solved, thereby solving the technical problem in related technologies that the surgical plan cannot be edited when displayed through a browser.
附图说明Description of the drawings
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described here are used to provide a further understanding of the present invention and constitute a part of this application. The illustrative embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the attached picture:
图1是根据本发明实施例的在线编辑方法的流程图;Figure 1 is a flow chart of an online editing method according to an embodiment of the present invention;
图2是根据本发明实施例的可选的在线编辑方法的流程图;Figure 2 is a flow chart of an optional online editing method according to an embodiment of the present invention;
图3是根据本发明实施例的待处理对象以及植入物在浏览器中显示的示意图;Figure 3 is a schematic diagram of objects to be processed and implants displayed in a browser according to an embodiment of the present invention;
图4是根据本发明实施例的可选的待处理对象以及植入物在浏览器中显示的示意图;Figure 4 is a schematic diagram of optional objects to be processed and implants displayed in a browser according to an embodiment of the present invention;
图5是根据本发明实施例的在线编辑装置的示意图。Figure 5 is a schematic diagram of an online editing device according to an embodiment of the present invention.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only These are some embodiments of the present invention, rather than all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts should fall within the scope of protection of the present invention.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the invention described herein are capable of being practiced in sequences other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, e.g., a process, method, system, product, or apparatus that encompasses a series of steps or units and need not be limited to those explicitly listed. Those steps or elements may instead include other steps or elements not expressly listed or inherent to the process, method, product or apparatus.
实施例1Example 1
根据本发明实施例,提供了一种在线编辑方法的方法实施例,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。According to an embodiment of the present invention, a method embodiment of an online editing method is provided. It should be noted that the steps shown in the flow chart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and, Although a logical sequence is shown in the flowcharts, in some cases the steps shown or described may be performed in a sequence different from that herein.
图1是根据本发明实施例的在线编辑方法的流程图,如图1所示,该在线编辑方法包括如下步骤:Figure 1 is a flow chart of an online editing method according to an embodiment of the present invention. As shown in Figure 1, the online editing method includes the following steps:
步骤S102,确定待处理对象的第一三维模型文件。Step S102: Determine the first three-dimensional model file of the object to be processed.
可选地,在确定待处理对象的第一三维模型文件之前,该在线编辑方法还包括:获取待处理对象的影像数据;对影像数据进行逆向处理得到第一三维模型。Optionally, before determining the first three-dimensional model file of the object to be processed, the online editing method further includes: obtaining image data of the object to be processed; and performing reverse processing on the image data to obtain the first three-dimensional model.
例如,上述待处理对象可以为骨骼,上述影像数据可以为骨骼的计算机体层摄像CT数据,也可以为磁共振MRI数据,当然也可以为其他类型的影像数据。For example, the object to be processed may be a skeleton, and the image data may be computed tomography CT data of the skeleton, or magnetic resonance MRI data. Of course, it may also be other types of image data.
另外,确定待处理对象的第一三维模型文件包括:确定第一三维模型的第一空间位置信息以及第一三维模型的第一属性信息;根据第一空间位置信息以及第一属性信息确定待处理对象的第一三维模型文件,并将第一三维模型文件存储至第一预定存储位置。In addition, determining the first three-dimensional model file of the object to be processed includes: determining the first spatial position information of the first three-dimensional model and the first attribute information of the first three-dimensional model; determining the first three-dimensional position information and the first attribute information of the object to be processed. The first three-dimensional model file of the object is stored in the first predetermined storage location.
例如,在利用骨骼的医学影像数据逆向得到骨骼的三维模型(即,第一三维模型)之后,还可以将第一三维模型存储为包含空间位置信息的模型文件(第一三维模型文件),该模型文件可以包括材质等属性信息用以优化预定浏览器中的呈现效果。For example, after using the medical imaging data of the skeleton to reversely obtain the three-dimensional model of the skeleton (i.e., the first three-dimensional model), the first three-dimensional model can also be stored as a model file (the first three-dimensional model file) containing spatial position information. The model file can include material and other attribute information to optimize the rendering effect in the predetermined browser.
在一个应用场景中,获取骨骼的CT或MRI等医学影像数据,利用骨骼的医学影像数据逆向出骨骼的三维模型,存储为包含有空间位置信息的第一三维模型文件;第一三维模型文件可以包含材质等属性信息用以优化浏览器中的呈现效果。In one application scenario, medical imaging data such as CT or MRI of bones are obtained, and a three-dimensional model of the bones is reversely generated using the medical imaging data of the bones, and stored as a first three-dimensional model file containing spatial position information; the first three-dimensional model file can Contains material and other attribute information to optimize the rendering effect in the browser.
步骤S104,确定需要植入待处理对象的初始植入物的第二三维模型,其中,初始植入物是根据待处理对象的特征信息确定的。Step S104: Determine the second three-dimensional model of the initial implant that needs to be implanted into the object to be treated, where the initial implant is determined based on the characteristic information of the object to be treated.
可选的,利用骨骼的第一三维模型,使用设计软件进行手术规划设计,即,确定手术中需要用到的骨科植入物的型号及空间位置信息,将骨科植入物模型存储为包含有空间位置信息的三维模型文件,即,第二三维模型文件;第二三维模型文件可以包含材质等属性信息用以优化浏览器中的呈现效果。Optionally, use the first three-dimensional model of the skeleton and use design software to perform surgical planning and design, that is, determine the model and spatial position information of the orthopedic implant needed for the operation, and store the orthopedic implant model as a file containing The three-dimensional model file of the spatial position information, that is, the second three-dimensional model file; the second three-dimensional model file may contain attribute information such as material to optimize the presentation effect in the browser.
在一种可选的实施例中,确定需要植入待处理对象的初始植入物的第二三维模型可以包括:将第二三维模型存储至第二预定存储位置;其中,将第二三维模型存储至第二预定存储位置包括:根据待处理对象确定初始植入物的型号信息以及初始植入物的第二空间位置信息,得到第二三维模型的第二模型文件;将第二模型文件存储在第二预定存储位置。In an optional embodiment, determining that the second three-dimensional model of the initial implant that needs to be implanted in the object to be treated may include: storing the second three-dimensional model to a second predetermined storage location; wherein, the second three-dimensional model Storing to the second predetermined storage location includes: determining the model information of the initial implant and the second spatial position information of the initial implant according to the object to be processed, and obtaining a second model file of the second three-dimensional model; storing the second model file at the second predetermined storage location.
例如,利用骨骼的三维模型,使用设计软件进行手术规划设计,即,确定手术中需要用到的骨科植入物的型号及空间位置信息,将骨科植入物模型存储为包含有空间位置信息的三维模型文件。需要说明的是,在本发明实施例中,植入物的个数为一个或多个。For example, use a three-dimensional model of the skeleton and use design software for surgical planning and design, that is, determine the model and spatial position information of the orthopedic implant needed for the operation, and store the orthopedic implant model as a model containing the spatial position information. 3D model file. It should be noted that, in the embodiment of the present invention, the number of implants is one or more.
步骤S106,在预定浏览器中展现用于呈现第一三维模型文件对应的第一三维模型的第一框架。Step S106: Display the first frame for presenting the first three-dimensional model corresponding to the first three-dimensional model file in a predetermined browser.
可选的,在预定浏览器中展现用于呈现第一三维模型的框架可以包括:在3D绘图协议下,预定浏览器通过JavaScript脚本将第一三维模型的第一模型文件传输至预定计算机的显示卡;控制显示卡根据第一模型文件通过着色器在预定浏览器中搭建第一框架;在预定浏览器中呈现第一框架。Optionally, presenting the framework for presenting the first three-dimensional model in the predetermined browser may include: under the 3D drawing protocol, the predetermined browser transmits the first model file of the first three-dimensional model to the display of the predetermined computer through a JavaScript script. card; the control display card builds the first frame in the predetermined browser through the shader according to the first model file; and renders the first frame in the predetermined browser.
即,通过浏览器(即,预定浏览器)采用webGL技术在线搭建手术规划的呈现框架。其中,WebGL(Web Graphics Library)是一种3D绘图协议,这种绘图技术标准允许把JavaScript和OpenGL ES 2.0结合在一起,通过增加OpenGL ES 2.0的一个JavaScript绑定,WebGL可以为HTML5 Canvas提供硬件3D加速渲染。That is, the webGL technology is used to build a presentation framework for surgical planning online through a browser (ie, a scheduled browser). Among them, WebGL (Web Graphics Library) is a 3D drawing protocol. This drawing technology standard allows JavaScript and OpenGL ES 2.0 to be combined. By adding a JavaScript binding to OpenGL ES 2.0, WebGL can provide hardware 3D for HTML5 Canvas. Speed up rendering.
WebGL完美地解决了现有的Web交互式三维动画的两个问题:第一,它通过HTML脚本本身实现Web交互式三维动画的制作,无需任何浏览器插件支持;第二,它利用底层的图形硬件加速功能进行图形渲染,是通过统一的、标准的、跨平台的OpenGL接口实现的。通过该技术,不需要通过任何浏览器插件,仅仅用HTML和JavaScript,就可以做出性能可与现在用Flash、Silverlight等相当的Web交互式三维动画,而且在任何平台式都能以同样的方式运作。WebGL perfectly solves two problems of existing Web interactive three-dimensional animation: first, it realizes the production of Web interactive three-dimensional animation through HTML script itself, without any browser plug-in support; second, it uses the underlying graphics The hardware acceleration function performs graphics rendering through a unified, standard, cross-platform OpenGL interface. Through this technology, without using any browser plug-ins, just using HTML and JavaScript, you can create web interactive 3D animations with performance comparable to current Flash, Silverlight, etc., and it can be used in the same way on any platform. operation.
步骤S108,将第一三维模型以及第二三维模型匹配到第一框架中。Step S108: Match the first three-dimensional model and the second three-dimensional model to the first frame.
可选的,在上述实施例中,主要是将包含有空间位置信息的骨骼及植入物三维模型储存入手术规划库,并通过互联网传输到浏览器(即,预定浏览器),浏览器根据骨骼及植入物三维模型的空间位置信息,将骨骼及植入物三维模型匹配于呈现第一框架中。Optionally, in the above embodiment, the three-dimensional model of bones and implants containing spatial position information is mainly stored in the surgical planning library, and transmitted to the browser (i.e., scheduled browser) through the Internet, and the browser is based on The spatial position information of the three-dimensional model of the bone and the implant is used to match the three-dimensional model of the bone and the implant in the first presentation frame.
在一种可选的实施例中,将第一三维模型以及第二三维模型匹配到第一框架中可以包括:控制预定浏览器通过JavaScript脚本将第一模型文件以及第二模型文件传输至显示卡的顶点着色器和片段着色器;控制预定浏览器通过JavaScript脚本调用显示卡的顶点着色器和片段着色器,处理第一模型文件以及第二模型文件对应的信息。In an optional embodiment, matching the first three-dimensional model and the second three-dimensional model to the first frame may include: controlling a predetermined browser to transmit the first model file and the second model file to the display card through a JavaScript script. The vertex shader and fragment shader; control the predetermined browser to call the vertex shader and fragment shader of the display card through a JavaScript script to process the information corresponding to the first model file and the second model file.
步骤S110,在第一框架中呈现第一三维模型以及第二三维模型。Step S110: Present the first three-dimensional model and the second three-dimensional model in the first frame.
例如,骨骼及植入物三维模型匹配于呈现第一框架中,浏览器直接通过JavaScript将骨骼及植入物三维模型的矩阵和材质等信息传递给计算机显示卡的顶点着色器和片段着色器;浏览器直接通过JavaScript调用计算机显示卡的顶点着色器和片段着色器,处理传递来的骨骼及植入物三维模型的矩阵和材质等信息,为进行三维模型的绘制做好准备;浏览器直接通过JavaScript调用计算机显示卡,绘制呈现框架中的骨骼及植入物三维模型。For example, the three-dimensional model of bones and implants is matched in the first rendering frame, and the browser directly transfers the matrix and material information of the three-dimensional model of bones and implants to the vertex shader and fragment shader of the computer graphics card through JavaScript; The browser directly calls the vertex shader and fragment shader of the computer graphics card through JavaScript to process the matrix and material information of the 3D model of the bones and implants, and prepares for the drawing of the 3D model; the browser directly JavaScript calls the computer graphics card to draw the three-dimensional model of the bones and implants in the rendering frame.
步骤S112,选择第三三维模型,并利用第三三维模型替换呈现在第一框架中的第二三维模型。Step S112: Select a third three-dimensional model and replace the second three-dimensional model presented in the first frame with the third three-dimensional model.
另外,在选择第三三维模型之前,该在线编辑方法还包括:构建植入物产品库;其中,构建植入物产品库包括:确定根据第一三维模型文件确定的至少一个植入物;获取至少一个植入物的三维模型文件,以得到植入物产品库。In addition, before selecting the third three-dimensional model, the online editing method also includes: building an implant product library; wherein building the implant product library includes: determining at least one implant determined according to the first three-dimensional model file; obtaining A three-dimensional model file of at least one implant to obtain an implant product library.
例如,将包含有空间位置信息的植入物三维模型储存入产品库(即,植入物产品库),并通过互联网传输到浏览器,该浏览器根据植入物三维模型的空间位置信息,将植入物三维模型(即,至少一个植入物的三维模型文件)匹配于呈现第二框架中。For example, a three-dimensional implant model containing spatial position information is stored in a product library (i.e., implant product library) and transmitted to a browser through the Internet. The browser, based on the spatial position information of the implant three-dimensional model, The implant three-dimensional model (ie, the three-dimensional model file of at least one implant) is matched into the presentation second frame.
由上可知,在本发明实施例中,确定待处理对象的第一三维模型文件;确定需要植入待处理对象的初始植入物的第二三维模型,在预定浏览器中展现用于呈现第一三维模型文件对应的第一三维模型的第一框架;并将第一三维模型以及第二三维模型匹配到第一框架中;在第一框架中呈现第一三维模型以及第二三维模型;选择第三三维模型,并利用第三三维模型替换呈现在第一框架中的第二三维模型,实现了直接在预定浏览器中搭建用于展现待处理对象以及植入物的三维模型的框架,在需要进行展示或者编辑时,可直接在浏览器中进行展示或编辑的目的。It can be seen from the above that in the embodiment of the present invention, the first three-dimensional model file of the object to be treated is determined; the second three-dimensional model of the initial implant that needs to be implanted in the object to be treated is determined, and displayed in a predetermined browser for presenting the third A first frame of the first three-dimensional model corresponding to a three-dimensional model file; matching the first three-dimensional model and the second three-dimensional model to the first frame; presenting the first three-dimensional model and the second three-dimensional model in the first frame; selecting The third three-dimensional model is used to replace the second three-dimensional model presented in the first frame, thereby directly building a framework for displaying the three-dimensional model of the object to be processed and the implant in the predetermined browser. When display or editing is required, the display or editing can be performed directly in the browser.
容易注意到,由于在本发明实施例中,预先将待处理对象的三维模型以及植入物的三维模型传输至浏览器中,并且在该浏览器中预先搭建有呈现待处理对象的三维模型以及植入物的框架,从而可以实现直接在预定浏览器中搭建用于展现待处理对象以及植入物的三维模型的框架,在需要进行展示或者编辑时,可直接在浏览器中进行展示或编辑的目的,达到了提高对待处理对象进行处理的灵活性的技术效果。,It is easy to notice that in the embodiment of the present invention, the three-dimensional model of the object to be processed and the three-dimensional model of the implant are transmitted to the browser in advance, and the three-dimensional model of the object to be processed is pre-built in the browser. The framework of the implant allows you to build a framework for displaying the object to be processed and the three-dimensional model of the implant directly in a predetermined browser. When display or editing is needed, it can be displayed or edited directly in the browser. The purpose is to achieve the technical effect of improving the flexibility of processing objects to be processed. ,
因此,通过本发明实施例提供的在线编辑方法,解决了相关技术中在通过浏览器进行手术规划显示时无法进行编辑的技术问题。Therefore, the online editing method provided by the embodiment of the present invention solves the technical problem in the related art that editing cannot be performed when the surgical plan is displayed through a browser.
根据本发明上述实施例,在步骤S112中,选择第三三维模型,并利用第三三维模型替换呈现在第一框架中的第二三维模型可以包括:在预定浏览器中展现用于呈现至少一个植入物的三维模型文件的第二框架;将植入物产品库中的三维模型文件传输至预定浏览器,以在第二框架中呈现至少一个植入物的三维模型文件;从第二框架中选择第三三维模型;将第三三维模型移动至第一框架的预定位置,以替换呈现在第一框架中的第二三维模型。According to the above embodiments of the present invention, in step S112, selecting the third three-dimensional model and using the third three-dimensional model to replace the second three-dimensional model presented in the first frame may include: displaying in a predetermined browser for presenting at least one a second frame of a three-dimensional model file of the implant; transmitting the three-dimensional model file in the implant product library to a predetermined browser to present at least one three-dimensional model file of the implant in the second frame; from the second frame Select the third three-dimensional model in the first frame; move the third three-dimensional model to a predetermined position in the first frame to replace the second three-dimensional model presented in the first frame.
下面以待处理对象为骨骼,结合附图对本发明实施例提供的在线编辑方法进行详细说明。Taking the object to be processed as a skeleton, the online editing method provided by the embodiment of the present invention will be described in detail below with reference to the accompanying drawings.
图2是根据本发明实施例的可选的在线编辑方法的流程图,如图2所示,包括:步骤(1):骨骼三维模型的获取,具体为:获取骨骼的CT或MRI等医学影像数据,利用骨骼的医学影像数据逆向出骨骼的三维模型,存储为包含有空间位置信息的模型文件;即,获取骨骼的CT或MRI等医学影像数据,利用骨骼的医学影像数据逆向出骨骼的三维模型,存储为包含有空间位置信息的模型文件,该模型文件(即,第一三维模型文件)可以包含材质等属性信息用以优化浏览器中的呈现效果。Figure 2 is a flow chart of an optional online editing method according to an embodiment of the present invention. As shown in Figure 2, it includes: Step (1): Acquisition of a three-dimensional skeleton model, specifically: acquisition of medical images such as CT or MRI of the skeleton. Data, use the medical imaging data of the bones to reversely generate a three-dimensional model of the bones, and store it as a model file containing spatial position information; that is, obtain medical imaging data such as CT or MRI of the bones, and use the medical imaging data of the bones to reversely generate a three-dimensional model of the bones. The model is stored as a model file containing spatial position information. The model file (ie, the first three-dimensional model file) may contain attribute information such as material to optimize the presentation effect in the browser.
步骤(2)植入物三维模型的获取,具体为:利用骨骼的三维模型,使用设计软件进行手术规划设计,即,确定手术中需要用到的植入物的型号及空间位置信息,将植入物模型存储为包含有空间位置信息的三维模型文件,该模型文件(第二三维模型文件)可以包含材质等属性信息用以优化浏览器中的呈现效果;其中,植入物的个数为一个或多个。Step (2) Obtain the three-dimensional model of the implant, specifically: use the three-dimensional model of the bone and use design software to plan and design the surgery, that is, determine the model and spatial position information of the implant needed during the surgery, and then The implanted object model is stored as a three-dimensional model file containing spatial position information. The model file (the second three-dimensional model file) can contain material and other attribute information to optimize the presentation effect in the browser; where, the number of implants is one or more.
步骤(3)手术规划库呈现框架的搭建,具体为:通过浏览器采用WebGL技术在线搭建骨骼及植入物三维模型的呈现框架。为了生动、形象地将骨骼三维模型表达出来并通过浏览器进行在线访问,本发明实施例中采用HTML5和WebGL框架技术来搭建骨骼三维模型的呈现框架。采用HTML5中的WebGL框架体系,通过该框架能够充分利用在显示带宽上的优势,以一种无插件的形式在浏览器上绘制并显示三维图形。在WebGL框架下,浏览器通过JavaScript脚本将所要搭建的骨骼三维模型的呈现框架的信息传递给计算机的显示卡,显示卡根据传递过来的信息,通过着色器在浏览器上进行骨骼三维模型的呈现框架的搭建。Step (3) Construction of the presentation framework of the surgical planning library, specifically: using WebGL technology to build the presentation framework of the three-dimensional model of bones and implants online through the browser. In order to express the three-dimensional skeletal model vividly and vividly and access it online through a browser, in embodiments of the present invention, HTML5 and WebGL framework technologies are used to build a presentation framework for the three-dimensional skeletal model. Using the WebGL framework system in HTML5, this framework can make full use of the advantages in display bandwidth to draw and display three-dimensional graphics on the browser in a plug-in-free form. Under the WebGL framework, the browser passes the information about the presentation framework of the skeletal 3D model to be built to the computer's display card through JavaScript scripts. The display card uses the shader to render the skeletal 3D model on the browser based on the passed information. Construction of the framework.
步骤(4)产品库呈现框架的搭建,具体为:通过浏览器采用WebGL技术在线搭建植入物三维模型的呈现框架(即,第二框架)。Step (4) Building the product library presentation framework, specifically: using WebGL technology to build the presentation framework of the implant three-dimensional model online through the browser (i.e., the second frame).
步骤(5)骨骼及植入物三维模型匹配入呈现框架,具体为:将包含有空间位置信息的骨骼及植入物三维模型储存入手术规划库,并通过互联网传输到浏览器,浏览器根据骨骼及植入物三维模型的空间位置信息,将骨骼及植入物三维模型匹配于呈现框架中。骨骼及植入物三维模型匹配于呈现框架中,浏览器直接通过JavaScript将骨骼及植入物三维模型的矩阵和材质等信息传递给计算机显示卡的顶点着色器和片段着色器;浏览器直接通过JavaScript调用计算机显示卡的顶点着色器和片段着色器,处理传递来的骨骼及植入物三维模型的矩阵和材质等信息,为进行三维模型的绘制做好准备;浏览器直接通过JavaScript调用计算机显示卡,绘制呈现框架中的骨骼及植入物三维模型。Step (5) Match the three-dimensional model of bones and implants into the presentation framework, specifically: store the three-dimensional model of bones and implants containing spatial position information into the surgical planning library, and transmit it to the browser through the Internet, and the browser will The spatial position information of the three-dimensional model of the bone and implant is used to match the three-dimensional model of the bone and implant in the presentation frame. The 3D models of bones and implants are matched in the rendering framework. The browser directly transfers the matrix and material information of the 3D models of bones and implants to the vertex shader and fragment shader of the computer display card through JavaScript; the browser directly passes JavaScript calls the vertex shader and fragment shader of the computer graphics card to process the matrix and material information of the 3D model of bones and implants passed in, and prepares for the drawing of the 3D model; the browser directly calls the computer display through JavaScript Card, draw the 3D model of the bones and implants in the rendering frame.
步骤(6)不同型号的植入物三维模型匹配入呈现框架(即,第二框架),具体为:将包含有空间位置信息的植入物三维模型储存入产品库,并通过互联网传输到浏览器,所述浏览器根据植入物三维模型的空间位置信息,将植入物三维模型匹配于呈现框架中。Step (6) Match the three-dimensional models of implants of different types into the presentation frame (i.e., the second frame), specifically: store the three-dimensional implant models containing spatial position information into the product library, and transmit them to the browser through the Internet. The browser matches the three-dimensional implant model to the presentation frame based on the spatial position information of the implant three-dimensional model.
步骤(7)手术规划的在线呈现,图3是根据本发明实施例的待处理对象以及植入物在浏览器中显示的示意图,如图3所示,骨骼1及植入物2及其他植入物三维模型以静态或动态的方式在浏览器上显示。Step (7) Online presentation of surgical planning. Figure 3 is a schematic diagram of the object to be processed and the implant displayed in the browser according to the embodiment of the present invention. As shown in Figure 3, bone 1, implant 2 and other implants The 3D model of the object is displayed on the browser in a static or dynamic manner.
步骤(8)产品库的在线呈现,图4是根据本发明实施例的可选的待处理对象以及植入物在浏览器中显示的示意图,如图4所示,植入物3及其他植入物三维模型以静态或动态的方式在浏览器上显示。Step (8) Online presentation of the product library. Figure 4 is a schematic diagram of optional objects to be processed and implants displayed in a browser according to an embodiment of the present invention. As shown in Figure 4, implant 3 and other implants The 3D model of the object is displayed on the browser in a static or dynamic manner.
步骤(9)执行编辑操作,如图4所示,选取产品库呈现框架中的植入物3拖动至手术规划库呈现框架中的植入物2附近区域,系统可自动识别到模型并执行替换操作,替换后的植入物3与原植入物2中心重合,特征面朝向不变,用户可通过移动操作调整新植入物3至合适的位置。Step (9) Perform the editing operation, as shown in Figure 4. Select implant 3 in the product library presentation frame and drag it to the area near implant 2 in the surgical planning library presentation frame. The system can automatically recognize the model and execute it. In the replacement operation, the center of the replaced implant 3 coincides with the original implant 2, and the orientation of the characteristic surface remains unchanged. The user can adjust the new implant 3 to the appropriate position through the movement operation.
需要说明的是,骨骼及植入物三维模型的动态方式的在线显示包括:模型的旋转、移动等,例如:骨骼及植入物三维模型可以沿指定的旋转中心进行旋转呈现。It should be noted that the dynamic online display of the three-dimensional model of bones and implants includes: rotation, movement, etc. of the model. For example, the three-dimensional model of bones and implants can be rotated and presented along a specified rotation center.
通过本发明实施例提供的在线编辑方法,能够在浏览器不运行任何插件的环境下,对手术规划进行在线呈现及编辑,提高了手术规划在线呈现的功能性,有利于使用者对手术规划进行更为直观的编辑、观察;并且解决了通常在使用浏览器进行手术规划显示时无法进行编辑的问题,提高了手术规划在线呈现的功能性。Through the online editing method provided by the embodiment of the present invention, the surgical plan can be presented and edited online in an environment where the browser does not run any plug-ins, which improves the functionality of online presentation of the surgical plan and is conducive to the user's evaluation of the surgical plan. More intuitive editing and observation; it also solves the problem of being unable to edit when using a browser to display surgical planning, and improves the functionality of online presentation of surgical planning.
实施例2Example 2
根据本发明实施例的另外一个方面,还提供了一种在线编辑装置,图5是根据本发明实施例的在线编辑装置的示意图,如图5所示,该在线编辑装置可以包括:第一确定单元51,第二确定单元52,展现单元53,匹配单元54,呈现单元55以及替换单元56。下面对该在线编辑装置进行详细说明。According to another aspect of the embodiment of the present invention, an online editing device is also provided. Figure 5 is a schematic diagram of the online editing device according to the embodiment of the present invention. As shown in Figure 5, the online editing device may include: a first determination unit 51, second determination unit 52, presentation unit 53, matching unit 54, presentation unit 55 and replacement unit 56. The online editing device will be described in detail below.
第一确定单元51,用于确定待处理对象的第一三维模型文件。The first determining unit 51 is used to determine the first three-dimensional model file of the object to be processed.
第二确定单元52,用于确定需要植入待处理对象的初始植入物的第二三维模型,其中,初始植入物是根据待处理对象的特征信息确定的。The second determination unit 52 is used to determine the second three-dimensional model of the initial implant that needs to be implanted into the object to be treated, where the initial implant is determined based on the characteristic information of the object to be treated.
展现单元53,用于在预定浏览器中展现用于呈现第一三维模型文件对应的第一三维模型的第一框架。The presentation unit 53 is configured to present the first frame for presenting the first three-dimensional model corresponding to the first three-dimensional model file in a predetermined browser.
匹配单元54,用于将第一三维模型以及第二三维模型匹配到第一框架中。The matching unit 54 is used to match the first three-dimensional model and the second three-dimensional model into the first frame.
呈现单元55,用于在第一框架中呈现第一三维模型以及第二三维模型。The presentation unit 55 is configured to present the first three-dimensional model and the second three-dimensional model in the first frame.
替换单元56,用于选择第三三维模型,并利用第三三维模型替换呈现在第一框架中的第二三维模型。The replacement unit 56 is used to select a third three-dimensional model and replace the second three-dimensional model presented in the first frame with the third three-dimensional model.
此处需要说明的是,上述第一确定单元51,第二确定单元52,展现单元53,匹配单元54,呈现单元55以及替换单元56对应于实施例1中的步骤S102至S112,上述模块与对应的步骤所实现的示例和应用场景相同,但不限于上述实施例1所公开的内容。需要说明的是,上述模块作为装置的一部分可以在诸如一组计算机可执行指令的计算机系统中执行。It should be noted here that the above-mentioned first determination unit 51, second determination unit 52, presentation unit 53, matching unit 54, presentation unit 55 and replacement unit 56 correspond to steps S102 to S112 in Embodiment 1, and the above modules are The examples and application scenarios implemented by the corresponding steps are the same, but are not limited to the content disclosed in the above-mentioned Embodiment 1. It should be noted that the above-mentioned modules, as part of the device, can be executed in a computer system such as a set of computer-executable instructions.
由上可知,在本申请上述实施例中,可以利用第一确定单元确定待处理对象的第一三维模型文件;然后利用第二确定单元确定需要植入待处理对象的初始植入物的第二三维模型,其中,初始植入物是根据待处理对象的特征信息确定的;再利用展现单元在预定浏览器中展现用于呈现第一三维模型文件对应的第一三维模型的第一框架;并利用匹配单元将第一三维模型以及第二三维模型匹配到第一框架中;以及利用呈现单元在第一框架中呈现第一三维模型以及第二三维模型;替换单元,用于选择第三三维模型,并利用第三三维模型替换呈现在第一框架中的第二三维模型。通过本发明实施例提供的在线编辑装置,实现了可以直接在预定浏览器中搭建用于展现待处理对象以及植入物的三维模型的框架,在需要进行展示或者编辑时,可直接在浏览器中进行展示或编辑的目的,并达到了提高对待处理对象进行处理的灵活性的技术效果,进而解决了相关技术中在通过浏览器进行手术规划显示时无法进行编辑的技术问题。It can be seen from the above that in the above embodiments of the present application, the first determination unit can be used to determine the first three-dimensional model file of the object to be treated; and then the second determination unit can be used to determine the second initial implant that needs to be implanted in the object to be treated. A three-dimensional model, wherein the initial implant is determined based on the characteristic information of the object to be processed; and then the display unit is used to display the first frame for presenting the first three-dimensional model corresponding to the first three-dimensional model file in a predetermined browser; and Utilize the matching unit to match the first three-dimensional model and the second three-dimensional model into the first frame; and utilize the presentation unit to present the first three-dimensional model and the second three-dimensional model in the first frame; and replace the unit for selecting the third three-dimensional model. , and replace the second three-dimensional model presented in the first frame with the third three-dimensional model. Through the online editing device provided by the embodiment of the present invention, a framework for displaying the three-dimensional model of the object to be processed and the implant can be built directly in a predetermined browser. When display or editing is required, the framework can be directly built in the browser. The purpose of display or editing is to achieve the technical effect of improving the flexibility of processing the object to be processed, thereby solving the technical problem in related technologies that editing cannot be performed when displaying surgical planning through a browser.
在一种可选的实施例中,该在线编辑装置还包括:获取单元,用于在确定待处理对象的第一三维模型文件之前,获取待处理对象的影像数据;逆向处理单元,用于对影像数据进行逆向处理得到第一三维模型。In an optional embodiment, the online editing device further includes: an acquisition unit, configured to acquire the image data of the object to be processed before determining the first three-dimensional model file of the object to be processed; and a reverse processing unit, configured to The image data is reversely processed to obtain the first three-dimensional model.
在一种可选的实施例中,第一确定单元包括:第一确定模块,用于确定第一三维模型的第一空间位置信息以及第一三维模型的第一属性信息;第二确定模块,用于根据第一空间位置信息以及第一属性信息确定待处理对象的第一三维模型文件,并将第一三维模型文件存储至第一预定存储位置。In an optional embodiment, the first determination unit includes: a first determination module, used to determine the first spatial position information of the first three-dimensional model and the first attribute information of the first three-dimensional model; a second determination module, Used to determine a first three-dimensional model file of the object to be processed according to the first spatial position information and the first attribute information, and store the first three-dimensional model file in a first predetermined storage location.
在一种可选的实施例中,第二确定单元包括:存储模块,用于将第二三维模型存储至第二预定存储位置;其中,存储模块包括:确定子模块,用于根据待处理对象确定初始植入物的型号信息以及初始植入物的第二空间位置信息,得到第二三维模型的第二模型文件;存储子模块,用于将第二模型文件存储在第二预定存储位置。In an optional embodiment, the second determination unit includes: a storage module for storing the second three-dimensional model to a second predetermined storage location; wherein the storage module includes: a determination sub-module for determining based on the object to be processed Determine the model information of the initial implant and the second spatial position information of the initial implant to obtain a second model file of the second three-dimensional model; the storage submodule is used to store the second model file in a second predetermined storage location.
在一种可选的实施例中,呈现单元包括:传输模块,用于在3D绘图协议下,预定浏览器通过JavaScript脚本将第一三维模型的第一模型文件传输至预定计算机的显示卡;第一控制模块,用于控制显示卡根据第一模型文件通过着色器在预定浏览器中搭建第一框架;呈现模块,用于在预定浏览器中呈现第一框架。In an optional embodiment, the presentation unit includes: a transmission module, configured for the predetermined browser to transmit the first model file of the first three-dimensional model to the display card of the predetermined computer through a JavaScript script under the 3D drawing protocol; A control module, used to control the display card to build the first frame in the predetermined browser through the shader according to the first model file; a rendering module, used to present the first frame in the predetermined browser.
在一种可选的实施例中,匹配单元包括:第二控制模块,用于控制预定浏览器通过JavaScript脚本将第一模型文件以及第二模型文件传输至显示卡的顶点着色器和片段着色器;第三控制模块,用于控制预定浏览器通过JavaScript脚本调用显示卡的顶点着色器和片段着色器,处理第一模型文件以及第二模型文件对应的信息。In an optional embodiment, the matching unit includes: a second control module, used to control the predetermined browser to transfer the first model file and the second model file to the vertex shader and fragment shader of the display card through a JavaScript script ; The third control module is used to control the predetermined browser to call the vertex shader and fragment shader of the display card through a JavaScript script to process the information corresponding to the first model file and the second model file.
在一种可选的实施例中,该在线编辑装置还包括:构建单元,用于在选择第三三维模型之前,构建植入物产品库;其中,构建单元包括:第三确定模块,用于确定根据第一三维模型文件确定的至少一个植入物;获取模块,用于获取至少一个植入物的三维模型文件,以得到植入物产品库。In an optional embodiment, the online editing device further includes: a building unit, configured to build an implant product library before selecting the third three-dimensional model; wherein the building unit includes: a third determination module, configured to Determine at least one implant determined based on the first three-dimensional model file; and obtain a module for obtaining a three-dimensional model file of at least one implant to obtain an implant product library.
在一种可选的实施例中,替换单元包括:展现模块,用于在预定浏览器中展现用于呈现至少一个植入物的三维模型文件的第二框架;呈现模块,用于将植入物产品库中的三维模型文件传输至预定浏览器,以在第二框架中呈现至少一个植入物的三维模型文件;选择模块,用于从第二框架中选择第三三维模型;替换模块,用于将第三三维模型移动至第一框架的预定位置,以替换呈现在第一框架中的第二三维模型。In an optional embodiment, the replacement unit includes: a presentation module, configured to present a second frame for presenting the three-dimensional model file of at least one implant in a predetermined browser; a presentation module, configured to display the implant The three-dimensional model file in the product library is transmitted to a predetermined browser to present the three-dimensional model file of at least one implant in the second frame; a selection module is used to select a third three-dimensional model from the second frame; a replacement module, Used to move the third three-dimensional model to a predetermined position in the first frame to replace the second three-dimensional model presented in the first frame.
实施例3Example 3
根据本发明实施例的另外一个方面,还提供了一种存储介质,存储介质包括存储的程序,其中,程序执行上述中任意一项的在线编辑方法。According to another aspect of the embodiment of the present invention, a storage medium is also provided. The storage medium includes a stored program, wherein the program executes any one of the above online editing methods.
实施例4Example 4
根据本发明实施例的另外一个方面,还提供了一种处理器,处理器用于运行程序,其中,程序运行时执行上述中任意一项的在线编辑方法。According to another aspect of the embodiment of the present invention, a processor is also provided, and the processor is used to run a program, wherein when the program is running, any one of the above online editing methods is executed.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The above serial numbers of the embodiments of the present invention are only for description and do not represent the advantages and disadvantages of the embodiments.
在本发明的上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments of the present invention, each embodiment is described with its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的技术内容,可通过其它的方式实现。其中,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,可以为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元或模块的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are only illustrative. For example, the division of the units may be a logical functional division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or may be Integrated into another system, or some features can be ignored, or not implemented. On the other hand, the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the units or modules may be in electrical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated units can be implemented in the form of hardware or software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to cause a computer device (which can be a personal computer, a server or a network device, etc.) to execute all or part of the steps of the method described in various embodiments of the present invention. The aforementioned storage media include: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program code. .
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above are only preferred embodiments of the present invention. It should be noted that those skilled in the art can make several improvements and modifications without departing from the principles of the present invention. These improvements and modifications can also be made. should be regarded as the protection scope of the present invention.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911360701.5A CN111128350B (en) | 2019-12-25 | 2019-12-25 | Online editing method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911360701.5A CN111128350B (en) | 2019-12-25 | 2019-12-25 | Online editing method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111128350A CN111128350A (en) | 2020-05-08 |
| CN111128350B true CN111128350B (en) | 2023-09-08 |
Family
ID=70502546
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201911360701.5A Active CN111128350B (en) | 2019-12-25 | 2019-12-25 | Online editing method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111128350B (en) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106874700A (en) * | 2017-04-01 | 2017-06-20 | 上海术理智能科技有限公司 | Surgical simulation method, surgical simulation device and electronic equipment based on Web |
| CN106875392A (en) * | 2017-03-15 | 2017-06-20 | 麦递途工贸(上海)有限公司 | A kind of method for generating the description information of human body orthopaedics implant guider |
| WO2018166369A1 (en) * | 2017-03-14 | 2018-09-20 | 阿里巴巴集团控股有限公司 | Method and device for generating three-dimensional graphic file and presenting three-dimensional graphic on client |
| CN108766539A (en) * | 2018-05-16 | 2018-11-06 | 徐州医科大学 | Implant features parameter edit methods towards the preoperative planning of orthopaedics |
| CN109215113A (en) * | 2018-08-14 | 2019-01-15 | 北京爱康宜诚医疗器材有限公司 | The display methods and device of bone threedimensional model |
-
2019
- 2019-12-25 CN CN201911360701.5A patent/CN111128350B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2018166369A1 (en) * | 2017-03-14 | 2018-09-20 | 阿里巴巴集团控股有限公司 | Method and device for generating three-dimensional graphic file and presenting three-dimensional graphic on client |
| CN106875392A (en) * | 2017-03-15 | 2017-06-20 | 麦递途工贸(上海)有限公司 | A kind of method for generating the description information of human body orthopaedics implant guider |
| CN106874700A (en) * | 2017-04-01 | 2017-06-20 | 上海术理智能科技有限公司 | Surgical simulation method, surgical simulation device and electronic equipment based on Web |
| CN108766539A (en) * | 2018-05-16 | 2018-11-06 | 徐州医科大学 | Implant features parameter edit methods towards the preoperative planning of orthopaedics |
| CN109215113A (en) * | 2018-08-14 | 2019-01-15 | 北京爱康宜诚医疗器材有限公司 | The display methods and device of bone threedimensional model |
Non-Patent Citations (1)
| Title |
|---|
| 汤啸天,等.3D打印技术与骨科植入物研发现状及其瓶颈突破思路.《医学与法医》.2015,全文. * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111128350A (en) | 2020-05-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11615878B2 (en) | Systems and methods for integrating neural network image analyses into medical image viewing applications | |
| US12308099B2 (en) | Extended reality medical report generating system | |
| CN106874700A (en) | Surgical simulation method, surgical simulation device and electronic equipment based on Web | |
| Pires et al. | On the use of virtual reality for medical imaging visualization | |
| CN104271066A (en) | Hybrid image/scene renderer with hands-free controls | |
| US10249092B2 (en) | System and method for rendering complex data in a virtual reality or augmented reality environment | |
| US7420575B2 (en) | Image processing apparatus, image processing method and image processing program | |
| JP7407863B2 (en) | Methods and systems for reviewing medical research data | |
| US10296713B2 (en) | Method and system for reviewing medical study data | |
| Bhat et al. | A Framework to Enhance the Experience of CBCT Data in Real-Time Using Immersive Virtual Reality: Impacting Dental Pre-Surgical Planning | |
| CN111128350B (en) | Online editing method and device | |
| WO2021030995A1 (en) | Inferior vena cava image analysis method and product based on vrds ai | |
| WO2025016321A1 (en) | Image processing method, electronic device, and computer readable storage medium | |
| CN111627528A (en) | VRDS 4D medical image multi-equipment Ai linkage display method and product | |
| US9454547B2 (en) | Computer system and method for image processing | |
| CN111161853A (en) | Online display method and device | |
| Fröhlich et al. | Holographic visualisation and interaction of fused CT, PET and MRI volumetric medical imaging data using dedicated remote GPGPU ray casting | |
| JP3977237B2 (en) | Volume rendering image processing program, image processing terminal, and image processing server | |
| EP4369352A1 (en) | System for virtual reality-based preoperative surgical planning | |
| KR102728479B1 (en) | Image Processing Method, Apparatus, Computing Device and Storage Medium | |
| US12394057B2 (en) | Method, device, and system for processing medical image | |
| Limberg | Osirix as a resource | |
| US20250120816A1 (en) | Systems and methods for generating patient-specific implants for anatomical structures of patients | |
| JP2024172049A (en) | IMAGE GENERATION DEVICE, IMAGE GENERATION METHOD, PROGRAM, AND IMAGE | |
| CN107157588B (en) | Data processing method of imaging device and imaging device |
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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |