[go: up one dir, main page]

CN114388056B - AR-based protein section generation method - Google Patents

AR-based protein section generation method Download PDF

Info

Publication number
CN114388056B
CN114388056B CN202210037365.6A CN202210037365A CN114388056B CN 114388056 B CN114388056 B CN 114388056B CN 202210037365 A CN202210037365 A CN 202210037365A CN 114388056 B CN114388056 B CN 114388056B
Authority
CN
China
Prior art keywords
protein
plane
real scene
reference plane
cross
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN202210037365.6A
Other languages
Chinese (zh)
Other versions
CN114388056A (en
Inventor
成生辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Westlake University
Original Assignee
Westlake 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 Westlake University filed Critical Westlake University
Priority to CN202210037365.6A priority Critical patent/CN114388056B/en
Publication of CN114388056A publication Critical patent/CN114388056A/en
Application granted granted Critical
Publication of CN114388056B publication Critical patent/CN114388056B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16BBIOINFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR GENETIC OR PROTEIN-RELATED DATA PROCESSING IN COMPUTATIONAL MOLECULAR BIOLOGY
    • G16B15/00ICT specially adapted for analysing two-dimensional or three-dimensional molecular structures, e.g. structural or functional relations or structure alignment
    • G16B15/20Protein or domain folding
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Crystallography & Structural Chemistry (AREA)
  • Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Chemical & Material Sciences (AREA)
  • Biophysics (AREA)
  • Geometry (AREA)
  • Computer Graphics (AREA)
  • General Physics & Mathematics (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Biotechnology (AREA)
  • Evolutionary Biology (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses an AR-based protein section generation method, an AR-based protein section generation device, an AR-based protein section generation equipment and a computer-readable storage medium, wherein the AR-based protein section generation method comprises the following steps: displaying a three-dimensional image of a protein to be observed in a real scene through the AR headset; acquiring a user instruction through the AR headset; establishing a reference plane in the real scene, and adjusting the reference plane according to the user instruction; and after receiving the confirmation instruction, generating a cross-sectional view of the protein to be observed by taking the datum plane as a reference. The method has the advantages of convenience in operation and high operation freedom.

Description

基于AR的蛋白截面生成方法AR-based protein cross-section generation method

技术领域technical field

本发明涉及蛋白质截面生成技术领域,尤其涉及一种基于AR的蛋白截面生成方法、装置、设备及计算机可读存储介质。The present invention relates to the technical field of protein section generation, and in particular to an AR-based protein section generation method, device, equipment and computer-readable storage medium.

背景技术Background technique

蛋白质由多肽链空间无序堆叠而成的空间结构体,为了了解其微观结构,蛋白质的计算机三维成像技术得到了广泛应用。Protein is a spatial structure formed by disordered stacking of polypeptide chains in space. In order to understand its microstructure, computer three-dimensional imaging technology of protein has been widely used.

但人们只关注基本的氨基酸功能单元的排列方式,对于蛋白质内部的稠密分布以及孔隙率等情况缺乏深入的了解。However, people only pay attention to the arrangement of basic amino acid functional units, and lack of in-depth understanding of the dense distribution and porosity inside proteins.

为了直观地展示蛋白质内部的稠密分布以及孔隙率等情况,常规的做法是在计算机上用一个虚拟的平面对蛋白质进行布尔减操作,从而得到相应的截面图。这种截面操作需要选取多个参照和设置多个参数,不仅操作复杂,且对用户的专业能力有较高的要求。In order to visually display the dense distribution and porosity inside the protein, the conventional method is to use a virtual plane on the computer to perform Boolean subtraction operations on the protein to obtain the corresponding cross-sectional view. This kind of section operation needs to select multiple references and set multiple parameters, which is not only complicated to operate, but also has high requirements on the user's professional ability.

发明内容Contents of the invention

本申请实施例通过提供一种基于AR的蛋白截面生成方法,旨在简化蛋白质的截面生成方式。The embodiment of the present application aims to simplify the method of generating protein cross sections by providing an AR-based method for generating protein cross sections.

为实现上述目的,本申请实施例提供了一种基于AR的蛋白截面生成方法,包括:In order to achieve the above purpose, the embodiment of the present application provides an AR-based protein section generation method, including:

通过AR头戴设备在现实场景中展示待观察蛋白质的三维图像;Display the three-dimensional image of the protein to be observed in the real scene through the AR head-mounted device;

通过AR头戴设备获取用户指令;Obtain user instructions through AR headsets;

在所述现实场景中建立基准面,并根据所述用户指令调整所述基准面;establishing a reference plane in the real scene, and adjusting the reference plane according to the user instruction;

在收到确认指令后,以所述基准面为参考生成所述待观察蛋白质的截面图。After receiving the confirmation instruction, generate a cross-sectional view of the protein to be observed with reference to the reference plane.

在一实施例中,在所述现实场景中建立基准面,包括:In one embodiment, establishing a reference plane in the real scene includes:

从用户指令中确定所要建立的基准面的类型;Determine the type of datum to be established from user instructions;

在所述现实场景中建立与所述类型相匹配的基准面。A datum matching the type is established in the real world.

在一实施例中,若所述用户指令限定的基准面类型为球形基准面,则在所述现实场景中建立与所述类型相匹配的基准面,包括:In one embodiment, if the type of datum defined by the user instruction is a spherical datum, then establishing a datum matching the type in the real scene includes:

获取所述三维图像的几何中心;Acquiring the geometric center of the three-dimensional image;

获取所述三维图像的几何中心至所述三维图像最外缘的间距;Obtain the distance from the geometric center of the three-dimensional image to the outermost edge of the three-dimensional image;

以所述几何中心为球心、并以所述间距为球半径建立所述球形基准面。The spherical datum plane is established with the geometric center as the center of the sphere and the distance as the radius of the sphere.

在一实施例中,若所述用户指令限定的基准面类型为平面基准面,则在所述现实场景中建立与所述类型相匹配的基准面,包括:In an embodiment, if the type of the reference plane defined by the user instruction is a plane reference plane, then establishing a reference plane matching the type in the real scene includes:

获取所述三维图像的几何中心;Acquiring the geometric center of the three-dimensional image;

在所述现实场景中建立预设基准轴;Establishing a preset reference axis in the real scene;

以所述几何中心为平面中心、并以所述预设基准轴为平面法线建立所述平面基准面。The plane reference plane is established with the geometric center as the plane center and the preset reference axis as the plane normal.

在一实施例中,根据所述用户指令调整所述基准面,包括:In an embodiment, adjusting the reference plane according to the user instruction includes:

根据所述用户指令调整所述基准面的尺寸、位置及角度中至少一者。At least one of the size, position and angle of the reference plane is adjusted according to the user instruction.

在一实施例中,所述用户指令为语音指令。In an embodiment, the user instruction is a voice instruction.

在一实施例中,以所述基准面为参考生成所述待观察蛋白质的截面图,包括:In one embodiment, generating a cross-sectional view of the protein to be observed with reference to the reference plane includes:

以所述基准面与所述三维图像相交面为截面位置,对待观察蛋白质的三维图像进行布尔减操作,以生成待观察蛋白质的截面图;Taking the intersecting surface of the reference plane and the three-dimensional image as the section position, performing a Boolean subtraction operation on the three-dimensional image of the protein to be observed to generate a cross-sectional view of the protein to be observed;

在所述现实场景中显示所述截面图。The cross-sectional view is displayed in the real scene.

为实现上述目的,本申请实施例还提出一种基于AR的蛋白截面生成装置,包括:In order to achieve the above purpose, the embodiment of this application also proposes an AR-based protein section generation device, including:

AR显示模块,用以在现实场景中展示待观察蛋白质的三维图像;The AR display module is used to display the three-dimensional image of the protein to be observed in the real scene;

获取模块,用以获取用户指令;The acquisition module is used to acquire user instructions;

控制模块,用以根据所述用户指令在所述现实场景中建立基准面,并根据所述用户指令调整所述基准面;A control module, configured to establish a reference plane in the real scene according to the user instruction, and adjust the reference plane according to the user instruction;

所述控制模块还用于在收到确认指令后,以所述基准面为参考生成所述待观察蛋白质的截面图。The control module is further configured to generate a cross-sectional view of the protein to be observed with reference to the reference plane after receiving the confirmation instruction.

为实现上述目的,本申请实施例还提出一种基于AR的蛋白截面生成设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的基于AR的蛋白截面生成程序,所述处理器执行所述基于AR的蛋白截面生成程序时实现如上述任一项所述的基于AR的蛋白截面生成方法。In order to achieve the above purpose, the embodiment of the present application also proposes an AR-based protein section generation device, including a memory, a processor, and an AR-based protein section generation program stored on the memory and operable on the processor. When the device executes the AR-based protein cross-section generation program, the AR-based protein cross-section generation method described in any one of the above is realized.

为实现上述目的,本申请实施例还提出一种计算机可读存储介质,所述计算机可读存储介质上存储有基于AR的蛋白截面生成程序,所述基于AR的蛋白截面生成程序被处理器执行时实现如上述任一项所述的基于AR的蛋白截面生成方法。In order to achieve the above purpose, the embodiment of the present application also proposes a computer-readable storage medium, the computer-readable storage medium stores an AR-based protein cross-section generation program, and the AR-based protein cross-section generation program is executed by a processor At the same time, the AR-based protein section generation method as described in any one of the above is realized.

本申请的基于AR的蛋白截面生成方法,通过AR头戴设备在现实场景展示待观察蛋白质的三维图像,再通过AR头戴设备获取用户指令,以调整现实场景中所建立的基准面,最后以基准面为参考生成待观察蛋白质的截面图,如此,无需输入复杂的参数便可生成任意所需的蛋白质截面图,降低了获取蛋白质截面图的技术难度;并且,通过AR头戴设备显示待观察蛋白质的三维图像,还可突破传统显示器的限制,用户能够更为自由观察蛋白质的三维图像、及调整基准面的位置,从而更容易获得更符合自身需求的蛋白质截面图。可见,相较于传统的通过设置复杂参数生成蛋白质截面图的方式,本申请的方法具有操作便捷,操作自由度高的优点。The AR-based protein section generation method of this application uses the AR head-mounted device to display the three-dimensional image of the protein to be observed in the real scene, and then obtains user instructions through the AR head-mounted device to adjust the reference plane established in the real scene. The reference plane is used as a reference to generate a cross-sectional view of the protein to be observed. In this way, any required protein cross-sectional view can be generated without inputting complex parameters, which reduces the technical difficulty of obtaining the protein cross-sectional view; and, the AR head-mounted device displays the cross-sectional view of the protein to be observed. The three-dimensional images of proteins can also break through the limitations of traditional displays, and users can observe the three-dimensional images of proteins more freely and adjust the position of the reference plane, so that it is easier to obtain protein cross-sectional views that better meet their needs. It can be seen that, compared with the traditional method of generating protein cross-sections by setting complex parameters, the method of the present application has the advantages of convenient operation and high degree of freedom of operation.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图示出的结构获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained according to the structures shown in these drawings without creative effort.

图1为本发明基于AR的蛋白截面生成设备一实施例的模块结构图;Fig. 1 is a module structure diagram of an embodiment of an AR-based protein cross section generating device of the present invention;

图2为本发明基于AR的蛋白截面生成方法一实施例的流程示意图;Fig. 2 is a schematic flow chart of an embodiment of the AR-based protein section generation method of the present invention;

图3为本发明基于AR的蛋白截面生成方法一实施例的流程示意图;Fig. 3 is a schematic flow chart of an embodiment of the AR-based protein section generation method of the present invention;

图4为本发明基于AR的蛋白截面生成方法一实施例的流程示意图;Fig. 4 is a schematic flowchart of an embodiment of the AR-based protein section generation method of the present invention;

图5为本发明基于AR的蛋白截面生成装置一实施例的模块结构图。Fig. 5 is a module structure diagram of an embodiment of an AR-based protein section generating device of the present invention.

本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose of the present invention, functional characteristics and advantages will be further described in conjunction with the embodiments and with reference to the accompanying drawings.

具体实施方式Detailed ways

应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

为了更好的理解上述技术方案,下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。In order to better understand the above-mentioned technical solutions, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

应当注意的是,在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。文中出现的“包含”不排除存在未列在权利要求中的部件或步骤。位于部件之前的数量词“一”或“一个”不排除存在多个这样的部件。本发明可以借助于包括有若干不同部件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。而“第一”、“第二”、以及“第三”等的使用不表示任何顺序,可将这些词解释为名称。It should be noted that, in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" used herein does not exclude the presence of elements or steps not listed in a claim. The numeral "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. While the use of "first," "second," and "third," etc. does not imply any order, these words may be construed as designations.

如图1所示,图1是本发明实施例方案涉及的硬件运行环境的服务器1(又叫基于AR的蛋白截面生成设备)结构示意图。As shown in FIG. 1 , FIG. 1 is a schematic structural diagram of a server 1 (also called an AR-based protein section generation device) in a hardware operating environment involved in the solution of the embodiment of the present invention.

本发明实施例服务器,如“物联网设备”、带联网功能的AR/VR设备、PC,智能手机、平板电脑、便携计算机等具有显示功能的设备。The server of the embodiment of the present invention, such as "Internet of Things device", AR/VR device with networking function, PC, smart phone, tablet computer, portable computer and other devices with display function.

如图1所示,所述服务器1包括:存储器11、处理器12及网络接口13。As shown in FIG. 1 , the server 1 includes: a memory 11 , a processor 12 and a network interface 13 .

其中,存储器11至少包括一种类型的可读存储介质,所述可读存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、磁性存储器、磁盘、光盘等。存储器11在一些实施例中可以是服务器1的内部存储单元,例如该服务器1的硬盘。存储器11在另一些实施例中也可以是服务器1的外部存储设备,例如该服务器1上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。Wherein, the memory 11 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (eg, SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. The storage 11 may be an internal storage unit of the server 1 in some embodiments, such as a hard disk of the server 1 . Storage 11 also can be the external storage device of server 1 in some other embodiments, for example the plug-in type hard disk equipped on this server 1, smart memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card , Flash Card (Flash Card) and so on.

进一步地,存储器11还可以包括服务器1的内部存储单元也包括外部存储设备。存储器11不仅可以用于存储安装于服务器1的应用软件及各类数据,例如基于AR的蛋白截面生成程序10的代码等,还可以用于暂时地存储已经输出或者将要输出的数据。Further, the storage 11 may also include an internal storage unit of the server 1 or an external storage device. The memory 11 can not only be used to store application software and various data installed on the server 1, such as codes of the AR-based protein section generation program 10, etc., but also can be used to temporarily store data that has been output or will be output.

处理器12在一些实施例中可以是一中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器或其他数据处理芯片,用于运行存储器11中存储的程序代码或处理数据,例如执行基于AR的蛋白截面生成程序10等。In some embodiments, the processor 12 may be a central processing unit (Central Processing Unit, CPU), a controller, a microcontroller, a microprocessor, or other data processing chips for running program codes stored in the memory 11 or processing Data, such as executing the AR-based protein section generation program 10 and so on.

网络接口13可选的可以包括标准的有线接口、无线接口(如WI-FI接口),通常用于在该服务器1与其他电子设备之间建立通信连接。The network interface 13 may optionally include standard wired interfaces and wireless interfaces (such as WI-FI interfaces), which are generally used to establish communication connections between the server 1 and other electronic devices.

网络可以为互联网、云网络、无线保真(Wi-Fi)网络、个人网(PAN)、局域网(LAN)和/或城域网(MAN)。网络环境中的各种设备可以被配置为根据各种有线和无线通信协议连接到通信网络。这样的有线和无线通信协议的例子可以包括但不限于以下中的至少一个:传输控制协议和互联网协议(TCP/IP)、用户数据报协议(UDP)、超文本传输协议(HTTP)、文件传输协议(FTP)、ZigBee、EDGE、IEEE 802.11、光保真(Li-Fi)、802.16、IEEE 802.11s、IEEE 802.11g、多跳通信、无线接入点(AP)、设备对设备通信、蜂窝通信协议和/或蓝牙(Blue Tooth)通信协议或其组合。The network may be the Internet, a cloud network, a wireless fidelity (Wi-Fi) network, a personal network (PAN), a local area network (LAN) and/or a metropolitan area network (MAN). Various devices in a network environment can be configured to connect to the communication network according to various wired and wireless communication protocols. Examples of such wired and wireless communication protocols may include, but are not limited to, at least one of the following: Transmission Control Protocol and Internet Protocol (TCP/IP), User Datagram Protocol (UDP), Hypertext Transfer Protocol (HTTP), file transfer Protocol (FTP), ZigBee, EDGE, IEEE 802.11, Optical Fidelity (Li-Fi), 802.16, IEEE 802.11s, IEEE 802.11g, multi-hop communication, wireless access point (AP), device-to-device communication, cellular communication protocol and/or Bluetooth (Blue Tooth) communication protocol or a combination thereof.

可选地,该服务器还可以包括用户接口,用户接口可以包括显示器(Display)、输入单元比如键盘(Keyboard),可选的用户接口还可以包括标准的有线接口、无线接口。可选地,在一些实施例中,显示器可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED(Organic Light-Emitting Diode,有机发光二极管)触摸器等。其中,显示器也可以称为显示屏或显示单元,用于显示在服务器1中处理的信息以及用于显示可视化的用户界面。Optionally, the server may further include a user interface. The user interface may include a display (Display) and an input unit such as a keyboard (Keyboard). Optional user interfaces may also include standard wired interfaces and wireless interfaces. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode, Organic Light-Emitting Diode) touch device, and the like. Wherein, the display may also be referred to as a display screen or a display unit, and is used for displaying information processed in the server 1 and for displaying a visualized user interface.

图1仅示出了具有组件11-13以及基于AR的蛋白截面生成程序10的服务器1,本领域技术人员可以理解的是,图1示出的结构并不构成对服务器1的限定,可以包括比图示更少或者更多的部件,或者组合某些部件,或者不同的部件布置。Fig. 1 only shows a server 1 with components 11-13 and an AR-based protein cross-section generation program 10, those skilled in the art can understand that the structure shown in Fig. 1 does not constitute a limitation to the server 1, and may include Fewer or more components than shown, or combinations of certain components, or different arrangements of components.

在本实施例中,处理器12可以用于调用存储器11中存储的基于AR的蛋白截面生成程序,并执行以下操作:In this embodiment, the processor 12 can be used to call the AR-based protein section generation program stored in the memory 11, and perform the following operations:

通过AR头戴设备在现实场景中展示待观察蛋白质的三维图像;Display the three-dimensional image of the protein to be observed in the real scene through the AR head-mounted device;

通过AR头戴设备获取用户指令;Obtain user instructions through AR headsets;

在所述现实场景中建立基准面,并根据所述用户指令调整所述基准面;establishing a reference plane in the real scene, and adjusting the reference plane according to the user instruction;

在收到确认指令后,以所述基准面为参考生成所述待观察蛋白质的截面图。After receiving the confirmation instruction, generate a cross-sectional view of the protein to be observed with reference to the reference plane.

在一实施例中,处理器12可以用于调用存储器11中存储的基于AR的蛋白截面生成程序,并执行以下操作:In one embodiment, the processor 12 can be used to call the AR-based protein section generation program stored in the memory 11, and perform the following operations:

从用户指令中确定所要建立的基准面的类型;Determine the type of datum to be established from user instructions;

在所述现实场景中建立与所述类型相匹配的基准面。A datum matching the type is established in the real world.

在一实施例中,处理器12可以用于调用存储器11中存储的基于AR的蛋白截面生成程序,并执行以下操作:In one embodiment, the processor 12 can be used to call the AR-based protein section generation program stored in the memory 11, and perform the following operations:

获取所述三维图像的几何中心;Acquiring the geometric center of the three-dimensional image;

获取所述三维图像的几何中心至所述三维图像最外缘的间距;Obtain the distance from the geometric center of the three-dimensional image to the outermost edge of the three-dimensional image;

以所述几何中心为球心、并以所述间距为球半径建立所述球形基准面。The spherical datum plane is established with the geometric center as the center of the sphere and the distance as the radius of the sphere.

在一实施例中,处理器12可以用于调用存储器11中存储的基于AR的蛋白截面生成程序,并执行以下操作:In one embodiment, the processor 12 can be used to call the AR-based protein section generation program stored in the memory 11, and perform the following operations:

获取所述三维图像的几何中心;Acquiring the geometric center of the three-dimensional image;

在所述现实场景中建立预设基准轴;Establishing a preset reference axis in the real scene;

以所述几何中心为平面中心、并以所述预设基准轴为平面法线建立所述平面基准面。The plane reference plane is established with the geometric center as the plane center and the preset reference axis as the plane normal.

在一实施例中,处理器12可以用于调用存储器11中存储的基于AR的蛋白截面生成程序,并执行以下操作:In one embodiment, the processor 12 can be used to call the AR-based protein section generation program stored in the memory 11, and perform the following operations:

根据所述用户指令调整所述基准面的尺寸、位置及角度中至少一者。At least one of the size, position and angle of the reference plane is adjusted according to the user instruction.

在一实施例中,处理器12可以用于调用存储器11中存储的基于AR的蛋白截面生成程序,并执行以下操作:In one embodiment, the processor 12 can be used to call the AR-based protein section generation program stored in the memory 11, and perform the following operations:

所述用户指令为语音指令。The user instruction is a voice instruction.

在一实施例中,处理器12可以用于调用存储器11中存储的基于AR的蛋白截面生成程序,并执行以下操作:In one embodiment, the processor 12 can be used to call the AR-based protein section generation program stored in the memory 11, and perform the following operations:

以所述基准面与所述三维图像相交面为截面位置,对待观察蛋白质的三维图像进行布尔减操作,以生成待观察蛋白质的截面图;Taking the intersecting surface of the reference plane and the three-dimensional image as the section position, performing a Boolean subtraction operation on the three-dimensional image of the protein to be observed to generate a cross-sectional view of the protein to be observed;

在所述现实场景中显示所述截面图。The cross-sectional view is displayed in the real scene.

基于上述基于AR的蛋白截面生成设备的硬件构架,提出本发明基于AR的蛋白截面生成方法的实施例。本发明的基于AR的蛋白截面生成方法,旨在简化蛋白质的截面生成方式。Based on the hardware framework of the above-mentioned AR-based protein cross-section generation device, an embodiment of the AR-based protein cross-section generation method of the present invention is proposed. The AR-based protein cross-section generation method of the present invention aims to simplify the protein cross-section generation method.

参照图2,图2为本发明基于AR的蛋白截面生成方法的一实施例,所述基于AR的蛋白截面生成方法包括以下步骤:Referring to Fig. 2, Fig. 2 is an embodiment of the AR-based protein section generation method of the present invention, and the AR-based protein section generation method includes the following steps:

S10、通过AR头戴设备在现实场景中展示待观察蛋白质的三维图像。S10. Displaying a three-dimensional image of the protein to be observed in a real scene through an AR head-mounted device.

这其中,AR是指Augmented Reality,即增强现实,是一种将虚拟信息与真实世界融合的技术,其能够将计算机生成的文字、图像、三维模型、音乐、视频等虚拟信息模拟仿真后,应用到真实世界中。应用AR技术的设备即为AR设备,常见的AR头戴设备包括AR头显、AR眼镜等。通常,AR头戴设备具有显示镜片,该显示镜片能够显示三维模型等AR对象。由于显示镜片具有透光性,因此当显示镜片上显示AR对象时,用户能够同时看到现实场景与AR对象,如此,AR对象便可在现实场景中展示。值得说明的是,AR头戴设备通常还具有图像采集模块及计算模块,该图像采集模块能够采集现实场景的深度信息,计算模块则能够根据图像采集模块所采集的深度信息,对现实场景建模,这样,新载入的三维图像等AR对象便可以选定的现实场景坐标为锚点,固定于现实场景中。换言之,待观察蛋白质的三维图像在展示后,其在现实场景中的坐标是固定的。Among them, AR refers to Augmented Reality, that is, augmented reality, which is a technology that integrates virtual information with the real world. into the real world. AR devices are devices that apply AR technology. Common AR headsets include AR headsets and AR glasses. Generally, an AR head-mounted device has a display lens capable of displaying an AR object such as a three-dimensional model. Since the display lens has light transmission, when the AR object is displayed on the display lens, the user can see the real scene and the AR object at the same time, so that the AR object can be displayed in the real scene. It is worth noting that AR headsets usually also have an image acquisition module and a calculation module. The image acquisition module can collect the depth information of the real scene, and the calculation module can model the real scene based on the depth information collected by the image acquisition module. , so that the newly loaded 3D image and other AR objects can be fixed in the real scene by selecting the coordinates of the real scene as anchor points. In other words, after the three-dimensional image of the protein to be observed is displayed, its coordinates in the real scene are fixed.

具体而言,将待观察蛋白质的三维图像数据导入AR头戴设备后,若用户通过AR头戴设备的菜单选项选择该待观察蛋白质,便可从在显示模块中显示该待观察蛋白质的三维图像,进而,用户便可在现实场景中显示该待观察蛋白质。Specifically, after importing the three-dimensional image data of the protein to be observed into the AR head-mounted device, if the user selects the protein to be observed through the menu option of the AR head-mounted device, the three-dimensional image of the protein to be observed can be displayed in the display module. , and then, the user can display the protein to be observed in the real scene.

S20、通过AR头戴设备获取用户指令。S20. Obtain a user instruction through the AR headset.

具体而言,AR头戴设备通常设置有图像采集模块和声音采集模块,该图像采集模块可以为摄像头,该声音采集模块可以为麦克风。通过该图像采集模块能够采集用户的手势动作,进而可采集用户的手势指令;而通过声音采集模块则可采集用户的声音,进而采集用户的语音指令。本申请的所指的用户指令可以为用户的手势指令或语音指令中的至少一者。Specifically, the AR headset is usually provided with an image collection module and a sound collection module, the image collection module may be a camera, and the sound collection module may be a microphone. The image collection module can collect the user's gestures, and then collect the user's gesture instructions; and the voice collection module can collect the user's voice, and then collect the user's voice instructions. The user instruction referred to in this application may be at least one of the user's gesture instruction or voice instruction.

S30、在所述现实场景中建立基准面,并根据所述用户指令调整所述基准面。S30. Establish a reference plane in the real scene, and adjust the reference plane according to the user instruction.

具体而言,在现实场景中载入了待观察蛋白质的三维图像后,便可在现实场景中建立基准面,该基准面是指用以生成待观察蛋白质的三维图像的参考面,基于用户所发出的调整指令,该基准面能够在现实场景中移动、转动及缩放。Specifically, after the three-dimensional image of the protein to be observed is loaded in the real scene, a reference plane can be established in the real scene. The reference plane refers to the reference plane used to generate the three-dimensional image of the protein to be observed. The adjustment command issued, the datum can be moved, rotated and scaled in the real scene.

在建立了基准面后,便可根据所获取的用户指令对基准面进行调整,以改变基准面相较于待观察蛋白质的三维图像的位置。After the reference plane is established, the reference plane can be adjusted according to the acquired user instruction, so as to change the position of the reference plane relative to the three-dimensional image of the protein to be observed.

S40、在收到确认指令后,以所述基准面为参考生成所述待观察蛋白质的截面图。S40. After receiving the confirmation instruction, generate a cross-sectional view of the protein to be observed with reference to the reference plane.

具体而言,在三维空间中调整基准面时,若基准面移动至任一用户需求的截面位置,则可向AR头戴设备的计算模块发送确认指令,AR头戴设备的计算模块在接收到相应的确认指令后,便可以基准面与三维图像的交界面为截面,生成待观察蛋白质的截面图。Specifically, when adjusting the reference plane in three-dimensional space, if the reference plane moves to any cross-sectional position required by the user, a confirmation command can be sent to the calculation module of the AR headset, and the calculation module of the AR headset receives After the corresponding confirmation instructions, the interface between the reference plane and the three-dimensional image can be used as a section to generate a cross-sectional view of the protein to be observed.

可以理解,本申请的基于AR的蛋白截面生成方法,通过AR头戴设备在现实场景展示待观察蛋白质的三维图像,再通过AR头戴设备获取用户指令,以调整现实场景中所建立的基准面,最后以基准面为参考生成待观察蛋白质的截面图,如此,无需输入复杂的参数便可生成任意所需的蛋白质截面图,降低了获取蛋白质截面图的技术难度;并且,通过AR头戴设备显示待观察蛋白质的三维图像,还可突破传统显示器的限制,用户能够更为自由观察蛋白质的三维图像、及调整基准面的位置,从而更容易获得更符合自身需求的蛋白质截面图。可见,相较于传统的通过设置复杂参数生成蛋白质截面图的方式,本申请的方法具有操作便捷,操作自由度高的优点。It can be understood that the AR-based protein section generation method of this application uses the AR head-mounted device to display the three-dimensional image of the protein to be observed in the real scene, and then obtains user instructions through the AR head-mounted device to adjust the reference plane established in the real scene , and finally generate the cross-sectional view of the protein to be observed with reference to the reference plane, so that any required protein cross-sectional view can be generated without inputting complicated parameters, which reduces the technical difficulty of obtaining the protein cross-sectional view; and, through the AR head-mounted device Displaying the three-dimensional image of the protein to be observed can also break through the limitations of traditional displays. Users can observe the three-dimensional image of the protein more freely and adjust the position of the reference plane, so that it is easier to obtain a cross-sectional view of the protein that better meets their needs. It can be seen that, compared with the traditional method of generating protein cross-sections by setting complex parameters, the method of the present application has the advantages of convenient operation and high degree of freedom of operation.

在一实施例中,在所述现实场景中建立基准面,包括:In one embodiment, establishing a reference plane in the real scene includes:

S110、从用户指令中确定所要建立的基准面的类型。S110. Determine the type of the reference plane to be established from the user instruction.

S120、在所述现实场景中建立与所述类型相匹配的基准面。S120. Establish a reference plane matching the type in the real scene.

示例性的,基准面的类型包括但不限于平面基准面、曲面基准面和球形基准面,这其中,平面基准面是指平面型的基准面,其具有X、Y、Z三个维度中任意两个维度的尺寸。曲面基准面为曲面型的基准面,其与平面基准面类似,但是同时具有X、Y、Z三个维度中任意三个维度的尺寸;示例性的,曲面基准面可以为弧形基准面、波浪形基准面等。而球形基准面则是指三维的基准面,其具有X、Y、Z三个维度的尺寸。Exemplarily, the types of datums include but are not limited to plane datums, curved datums and spherical datums, where the plane datum refers to a planar datum, which has any of the three dimensions of X, Y, and Z. Dimensions in two dimensions. The curved datum plane is a curved datum plane, which is similar to the plane datum plane, but has dimensions in any three dimensions of X, Y, and Z; for example, the curved datum plane can be an arc datum plane, wavy datum etc. The spherical datum plane refers to a three-dimensional datum plane, which has three dimensions of X, Y, and Z.

具体而言,根据不同的用户指令,以建立对应的类型的基准面,如此,用户可根据自身需求选择不同类型的基准面,进而能够满足用户的不同需求,扩大技术方案的适用性。当然,本申请的设计不限于此,在其他实施例中,也可仅提供一种类型的基准面。Specifically, according to different user instructions, corresponding types of datums are established. In this way, users can choose different types of datums according to their own needs, thereby meeting different needs of users and expanding the applicability of the technical solution. Of course, the design of the present application is not limited thereto, and in other embodiments, only one type of reference plane may be provided.

如图3所示,在一实施例中,若所述用户指令限定的基准面类型为球形基准面,则在所述现实场景中建立与所述类型相匹配的基准面,包括:As shown in Figure 3, in one embodiment, if the type of datum defined by the user instruction is a spherical datum, then a datum matching the type is established in the real scene, including:

S210、获取所述三维图像的几何中心。S210. Acquire the geometric center of the 3D image.

这其中,三维图像的几何中心即是待观察蛋白质的几何中心。Among them, the geometric center of the three-dimensional image is the geometric center of the protein to be observed.

具体而言,在计算待观察蛋白质的几何中心时,可将三维图像等效为正多面体,如正四面体、正五面体、正六面体等,再基于所等效正多面体,以求得待观察蛋白质的几何中心。Specifically, when calculating the geometric center of the protein to be observed, the three-dimensional image can be equivalent to a regular polyhedron, such as a regular tetrahedron, a regular pentahedron, a regular hexahedron, etc., and then based on the equivalent regular polyhedron, to obtain the The geometric center of the protein.

S220、获取所述三维图像的几何中心至所述三维图像最外缘的间距。S220. Obtain the distance from the geometric center of the 3D image to the outermost edge of the 3D image.

具体而言,可通过获取几何中心的三维坐标,及三维图像的最外缘一点的三维坐标,以求得三维图像的几何中心至其最外缘的间距。Specifically, the distance from the geometric center to the outermost edge of the three-dimensional image can be obtained by acquiring the three-dimensional coordinates of the geometric center and the three-dimensional coordinates of the outermost point of the three-dimensional image.

S230、以所述几何中心为球心、并以所述间距为球半径建立所述球形基准面。S230. Establish the spherical datum plane with the geometric center as the center of the sphere and the distance as the radius of the sphere.

具体而言,在确定了球形基准面的球心及球半径之后,便可在对应的现实场景中建立所需的球形基准面,由于球形基准面的球半径与三维图像的几何中心至最外缘的间距一致,因此可将该球形基准面视为蛋白质的三维图像的外切球。Specifically, after the center and radius of the spherical datum are determined, the required spherical datum can be established in the corresponding real scene, because the spherical radius of the spherical datum and the geometric center of the three-dimensional image to the outermost The edges are uniformly spaced, so this spherical datum can be thought of as the circumscribed sphere of the three-dimensional image of the protein.

可以理解,这样设置可将蛋白质的三维图像完全的容置于球形基准面中,进而可方便用户对观察形基准面与蛋白质的三维图像之间的相对位置,进而以便于用户获取所需的蛋白质截面。此外,通过在现实场景中建立球形基准面,能够依此从全方向地待观察蛋白质的截面结构,增加用户的观察视角。It can be understood that such a setting can completely accommodate the three-dimensional image of the protein in the spherical reference plane, and then it is convenient for the user to observe the relative position between the spherical reference plane and the three-dimensional image of the protein, so that the user can obtain the desired protein section. In addition, by establishing a spherical datum in the real scene, the cross-sectional structure of the protein can be observed from all directions, increasing the viewing angle of the user.

如图4所示,在一实施例中,若所述用户指令限定的基准面类型为平面基准面,则在所述现实场景中建立与所述类型相匹配的基准面,包括:As shown in FIG. 4, in one embodiment, if the type of reference plane defined by the user instruction is a plane reference plane, a reference plane matching the type is established in the real scene, including:

S410、获取所述三维图像的几何中心。S410. Acquire the geometric center of the 3D image.

这其中,三维图像的几何中心即是待观察蛋白质的几何中心。Among them, the geometric center of the three-dimensional image is the geometric center of the protein to be observed.

具体而言,在计算待观察蛋白质的几何中心时,可将三维图像等效为正多面体,如正四面体、正五面体、正六面体等,再基于所等效正多面体,以求得待观察蛋白质的几何中心。Specifically, when calculating the geometric center of the protein to be observed, the three-dimensional image can be equivalent to a regular polyhedron, such as a regular tetrahedron, a regular pentahedron, a regular hexahedron, etc., and then based on the equivalent regular polyhedron, to obtain the The geometric center of the protein.

S420、在所述现实场景中建立预设基准轴。S420. Establish a preset reference axis in the real scene.

具体而言,该预设基准轴可以为现实场景中的任一轴,为便于计算,可取现实场景中的基准坐标系(即XYZ坐标系)中的任一坐标轴为预设基准轴。如以X轴为所述预设基准轴。Specifically, the preset reference axis may be any axis in the real scene, and for ease of calculation, any coordinate axis in the reference coordinate system (ie, XYZ coordinate system) in the real scene may be taken as the preset reference axis. For example, the X axis is used as the preset reference axis.

S430、以所述几何中心为平面中心、并以所述预设基准轴为平面法线建立所述平面基准面。S430. Establish the plane reference plane with the geometric center as the plane center and the preset reference axis as the plane normal.

具体而言,在确立了平面基准面的中心及法线之后,便可依此建立所需的平面基准面。Specifically, after the center and normal of the plane reference plane are established, the required plane reference plane can be established accordingly.

可以理解,建立经过待观察蛋白质的几何中心的平面基准面,可便于用户截取待蛋白质的平面截面。It can be understood that establishing a plane reference plane passing through the geometric center of the protein to be observed can facilitate the user to cut a plane section of the protein to be observed.

在一实施例中,根据所述用户指令调整所述基准面,包括:In an embodiment, adjusting the reference plane according to the user instruction includes:

根据所述用户指令调整所述基准面的尺寸、位置及角度中至少一者。At least one of the size, position and angle of the reference plane is adjusted according to the user instruction.

具体地,当所建立的基准面为球形基准面时,用户可以以球形基准面的球心为中心,对球形基准面进行缩小和放大;而当所建立的基准面为平面基准面时,用户可以调整平面基准面的在角度和位置。Specifically, when the established datum is a spherical datum, the user can take the center of the spherical datum as the center to zoom in and out the spherical datum; and when the established datum is a plane datum, the user can adjust The angle and position of the plane datum.

在一实施例中,所述方法还包括:In one embodiment, the method also includes:

从用户指令中获取所述确认指令。The confirmation instruction is obtained from a user instruction.

即是说,在基准面调整在所需的位置后,用户可通过发出与确认指令对应的语音或手势,当AR头戴设备采集到相关的语音或手势后,便可认为收到了确认指令。可以理解,这样设置用户仅通过语音或手势便可完成基准面的调整及蛋白质截面的确认,从而可使用户操作的方式更为统一,以便于用户操作。当然,本申请的设计不限于此,在其他实施例中,该确认指令也可来自于独立的开关模块,如独立的手控开关、脚踏开关等。That is to say, after the reference plane is adjusted to the desired position, the user can issue a voice or gesture corresponding to the confirmation command, and when the AR headset collects the relevant voice or gesture, it can be considered that the confirmation command has been received. It can be understood that the user can complete the adjustment of the reference plane and the confirmation of the protein cross-section only by voice or gesture, so that the user's operation method can be more uniform and convenient for the user to operate. Of course, the design of the present application is not limited thereto. In other embodiments, the confirmation instruction may also come from an independent switch module, such as an independent hand switch, foot switch, and the like.

在一实施例中,以所述基准面为参考生成所述待观察蛋白质的截面图,包括:In one embodiment, generating a cross-sectional view of the protein to be observed with reference to the reference plane includes:

S510、以所述基准面与所述三维图像相交面为截面位置,对待观察蛋白质的三维图像进行布尔减操作,以生成待观察蛋白质的截面图。S510. Using the intersection of the reference plane and the 3D image as a section position, perform a Boolean subtraction operation on the 3D image of the protein to be observed, so as to generate a sectional view of the protein to be observed.

这其中,布尔减操作即bool减操作。具体而言,在生成蛋白质截面时,以当前基准面与待观察蛋白质三维图像的相交面为截面位置,对待观察蛋白质的三维图像进行布尔减操作,便可获得待观察蛋白质在当前位置的截面图。Among them, the Boolean subtraction operation is the bool subtraction operation. Specifically, when generating a protein cross-section, the intersection of the current reference plane and the three-dimensional image of the protein to be observed is taken as the cross-section position, and the Boolean subtraction operation is performed on the three-dimensional image of the protein to be observed to obtain the cross-sectional view of the protein to be observed at the current position .

S520、在所述现实场景中显示所述截面图。S520. Display the cross-sectional view in the real scene.

具体而言,在生成了待观察蛋白质的截面图后,便可通过显示模块显示该截面图,如此,用户便可实时地观察到所截取的蛋白质截面图。之后,用户便可基于当前的蛋白质截面图以确定是否重新获取新的蛋白质截面图。Specifically, after the cross-sectional view of the protein to be observed is generated, the cross-sectional view can be displayed through the display module, so that the user can observe the intercepted protein cross-sectional view in real time. Afterwards, the user can determine whether to acquire a new protein cross-sectional view based on the current protein cross-sectional view.

示例性的,以获取用户的语音指令为基准面的调整指令。当用户选择了球形的基准面,在调整基准面时,用户只需说含“增大”和“减小”两个关键词的语音指令即可使基准球实时地放大或缩小。当用户选择了平面型的基准面,在调整基准面时,用户只需说含方向+动作+数量的关键词(如左移0.5,平移0.2,左转30度,往左前旋转20度等)即可使实时调整基准面的位置和角度。当到达满意的位置时,用户需要说含“OK”或“好了”等关键词的语句进行确认,AR头戴设备收到语音确认信号后,会对三维图像进行bool减操作,即可生成想要的截面图形,完成截面图形的生成和显示。Exemplarily, the adjustment instruction is based on the acquired user's voice instruction. When the user selects a spherical datum plane, when adjusting the datum plane, the user only needs to say voice commands containing the two key words "increase" and "decrease" to make the datum ball zoom in or out in real time. When the user selects a flat reference plane, when adjusting the reference plane, the user only needs to say keywords including direction + action + quantity (such as moving left 0.5, translation 0.2, turning left 30 degrees, rotating left 20 degrees forward, etc.) That is, the position and angle of the datum plane can be adjusted in real time. When reaching a satisfactory position, the user needs to say a sentence containing keywords such as "OK" or "OK" to confirm. After the AR headset receives the voice confirmation signal, it will perform a bool subtraction operation on the 3D image to generate The desired cross-sectional graphics, complete the generation and display of cross-sectional graphics.

此外,参照图5,本发明实施例还提出基于AR的蛋白截面生成装置,所述基于AR的蛋白截面生成装置包括:In addition, referring to FIG. 5 , the embodiment of the present invention also proposes an AR-based protein section generation device, and the AR-based protein section generation device includes:

显示模块110,用以在现实场景中展示待观察蛋白质的三维图像;A display module 110, configured to display a three-dimensional image of the protein to be observed in a real scene;

获取模块120,用以获取用户指令;An acquisition module 120, configured to acquire user instructions;

控制模块130,用以根据所述用户指令在所述现实场景中建立基准面,并根据所述用户指令调整所述基准面;A control module 130, configured to establish a reference plane in the real scene according to the user instruction, and adjust the reference plane according to the user instruction;

所述控制模块还用于在收到确认指令后,以所述基准面为参考生成所述待观察蛋白质的截面图。The control module is further configured to generate a cross-sectional view of the protein to be observed with reference to the reference plane after receiving the confirmation instruction.

其中,基于AR的蛋白截面生成装置的各个功能模块实现的步骤可参照本发明基于AR的蛋白截面生成方法的各个实施例,此处不再赘述。The steps implemented by each functional module of the AR-based protein cross-section generation device can refer to the various embodiments of the AR-based protein cross-section generation method of the present invention, and will not be repeated here.

此外,本发明实施例还提出一种计算机可读存储介质,计算机可读存储介质可以是硬盘、多媒体卡、SD卡、闪存卡、SMC、只读存储器(ROM)、可擦除可编程只读存储器(EPROM)、便携式紧致盘只读存储器(CD-ROM)、USB存储器等中的任意一种或者几种的任意组合。计算机可读存储介质中包括基于AR的蛋白截面生成程序10,本发明之计算机可读存储介质的具体实施方式与上述基于AR的蛋白截面生成方法以及服务器1的具体实施方式大致相同,在此不再赘述。In addition, the embodiment of the present invention also proposes a computer-readable storage medium. The computer-readable storage medium can be a hard disk, a multimedia card, an SD card, a flash memory card, an SMC, a read-only memory (ROM), an erasable programmable read-only Any one or any combination of memory (EPROM), portable compact disk read-only memory (CD-ROM), USB memory, etc. The computer-readable storage medium includes an AR-based protein cross-section generation program 10. The specific implementation of the computer-readable storage medium of the present invention is substantially the same as the above-mentioned AR-based protein cross-section generation method and the specific implementation of the server 1. Let me repeat.

本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.

尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。While preferred embodiments of the invention have been described, additional changes and modifications to these embodiments can be made by those skilled in the art once the basic inventive concept is appreciated. Therefore, it is intended that the appended claims be construed to cover the preferred embodiment as well as all changes and modifications which fall within the scope of the invention.

显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.

Claims (7)

1.一种基于AR的蛋白截面生成方法,其特征在于,包括:1. A method for generating protein cross-sections based on AR, characterized in that, comprising: 通过AR头戴设备在现实场景中展示待观察蛋白质的三维图像;Display the three-dimensional image of the protein to be observed in the real scene through the AR head-mounted device; 通过AR头戴设备获取用户指令;Obtain user instructions through AR headsets; 在所述现实场景中建立基准面,并根据所述用户指令调整所述基准面;establishing a reference plane in the real scene, and adjusting the reference plane according to the user instruction; 在收到确认指令后,以所述基准面为参考生成所述待观察蛋白质的截面图;其中,After receiving the confirmation instruction, generate a cross-sectional view of the protein to be observed with reference to the reference plane; wherein, 在所述现实场景中建立基准面,包括:Establish datums in the described real-world scenario, including: 从用户指令中确定所要建立的基准面的类型;Determine the type of datum to be established from user instructions; 在所述现实场景中建立与所述类型相匹配的基准面;establishing a datum matching the type in the real scene; 若所述用户指令限定的基准面类型为平面基准面,则在所述现实场景中建立与所述类型相匹配的基准面,包括:If the type of datum defined by the user instruction is a plane datum, a datum matching the type is established in the real scene, including: 获取所述三维图像的几何中心;Acquiring the geometric center of the three-dimensional image; 在所述现实场景中建立预设基准轴;Establishing a preset reference axis in the real scene; 以所述几何中心为平面中心、并以所述预设基准轴为平面法线建立所述平面基准面。The plane reference plane is established with the geometric center as the plane center and the preset reference axis as the plane normal. 2.如权利要求1所述的基于AR的蛋白截面生成方法,其特征在于,根据所述用户指令调整所述基准面,包括:2. The AR-based protein section generation method according to claim 1, wherein adjusting the reference plane according to the user instruction comprises: 根据所述用户指令调整所述基准面的尺寸、位置及角度中至少一者。At least one of the size, position and angle of the reference plane is adjusted according to the user instruction. 3.如权利要求1所述的基于AR的蛋白截面生成方法,其特征在于,所述用户指令为语音指令。3. The method for generating protein cross-sections based on AR according to claim 1, wherein the user instruction is a voice instruction. 4.如权利要求1所述的基于AR的蛋白截面生成方法,其特征在于,以所述基准面为参考生成所述待观察蛋白质的截面图,包括:4. The AR-based protein cross-section generation method according to claim 1, wherein generating a cross-sectional view of the protein to be observed with reference to the reference plane comprises: 以所述基准面与所述三维图像相交面为截面位置,对待观察蛋白质的三维图像进行布尔减操作,以生成待观察蛋白质的截面图;Taking the intersecting surface of the reference plane and the three-dimensional image as the section position, performing a Boolean subtraction operation on the three-dimensional image of the protein to be observed to generate a cross-sectional view of the protein to be observed; 在所述现实场景中显示所述截面图。The cross-sectional view is displayed in the real scene. 5.一种基于AR的蛋白截面生成装置,其特征在于,包括:5. An AR-based protein section generation device, characterized in that it comprises: AR显示模块,用以在现实场景中展示待观察蛋白质的三维图像;The AR display module is used to display the three-dimensional image of the protein to be observed in the real scene; 获取模块,用以获取用户指令;The acquisition module is used to acquire user instructions; 控制模块,用以根据所述用户指令在所述现实场景中建立基准面,并根据所述用户指令调整所述基准面;A control module, configured to establish a reference plane in the real scene according to the user instruction, and adjust the reference plane according to the user instruction; 所述控制模块还用于在收到确认指令后,以所述基准面为参考生成所述待观察蛋白质的截面图;其中,The control module is also used to generate a cross-sectional view of the protein to be observed with reference to the reference plane after receiving the confirmation instruction; wherein, 控制模块在所述现实场景中建立基准面包括:The establishment of the reference plane in the real scene by the control module includes: 从用户指令中确定所要建立的基准面的类型;Determine the type of datum to be established from user instructions; 在所述现实场景中建立与所述类型相匹配的基准面;establishing a datum matching the type in the real scene; 若所述用户指令限定的基准面类型为平面基准面,则控制模块在所述现实场景中建立与所述类型相匹配的基准面包括:If the type of reference surface defined by the user instruction is a plane reference surface, then the control module establishing a reference surface matching the type in the real scene includes: 获取所述三维图像的几何中心;Acquiring the geometric center of the three-dimensional image; 在所述现实场景中建立预设基准轴;Establishing a preset reference axis in the real scene; 以所述几何中心为平面中心、并以所述预设基准轴为平面法线建立所述平面基准面。The plane reference plane is established with the geometric center as the plane center and the preset reference axis as the plane normal. 6.一种基于AR的蛋白截面生成设备,其特征在于,包括存储器、处理器及存储在存储器上并可在处理器上运行的基于AR的蛋白截面生成程序,所述处理器执行所述基于AR的蛋白截面生成程序时实现如权利要求1-4中任一项所述的基于AR的蛋白截面生成方法。6. An AR-based protein section generation device, characterized in that it includes a memory, a processor, and an AR-based protein section generation program that is stored on the memory and can run on the processor, and the processor executes the The AR-based protein cross-section generation method as described in any one of claims 1-4 is realized when the protein cross-section generation program of AR is used. 7.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有基于AR的蛋白截面生成程序,所述基于AR的蛋白截面生成程序被处理器执行时实现如权利要求1-4中任一项所述的基于AR的蛋白截面生成方法。7. A computer-readable storage medium, characterized in that, the computer-readable storage medium is stored with an AR-based protein section generation program, and the AR-based protein section generation program is executed by a processor to achieve The method for generating protein cross-sections based on AR described in any one of 1-4.
CN202210037365.6A 2022-01-13 2022-01-13 AR-based protein section generation method Expired - Fee Related CN114388056B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210037365.6A CN114388056B (en) 2022-01-13 2022-01-13 AR-based protein section generation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210037365.6A CN114388056B (en) 2022-01-13 2022-01-13 AR-based protein section generation method

Publications (2)

Publication Number Publication Date
CN114388056A CN114388056A (en) 2022-04-22
CN114388056B true CN114388056B (en) 2023-06-16

Family

ID=81201946

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210037365.6A Expired - Fee Related CN114388056B (en) 2022-01-13 2022-01-13 AR-based protein section generation method

Country Status (1)

Country Link
CN (1) CN114388056B (en)

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4664623B2 (en) * 2003-06-27 2011-04-06 株式会社東芝 Image processing display device
WO2005024756A1 (en) * 2003-09-07 2005-03-17 Yiyu Cai Molecular studio for virtual protein lab
JP5415245B2 (en) * 2009-12-14 2014-02-12 富士フイルム株式会社 MEDICAL IMAGE DISPLAY DEVICE, METHOD, AND PROGRAM
US10852428B2 (en) * 2014-02-21 2020-12-01 FLIR Belgium BVBA 3D scene annotation and enhancement systems and methods
US9808213B2 (en) * 2014-08-11 2017-11-07 Canon Kabushiki Kaisha Image processing apparatus, image processing method, medical image diagnostic system, and storage medium
US20180020992A1 (en) * 2015-02-16 2018-01-25 Dimensions And Shapes, Llc Systems and methods for medical visualization
CN107206692B (en) * 2015-04-24 2019-12-06 惠普发展公司有限责任合伙企业 Three-dimensional object representation
EP3220357A3 (en) * 2016-03-15 2018-01-10 Siemens Healthcare GmbH Model-based generation and display of three-dimensional objects
CN111949113B (en) * 2019-05-15 2024-10-29 阿里巴巴集团控股有限公司 Image interaction method and device applied to Virtual Reality (VR) scene
US20200326814A1 (en) * 2019-12-05 2020-10-15 Intel Corporation System and methods for human computer interface in three dimensions

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
三维网格模型局部骨架交互式提取方法研究;李明等;《河北工程大学学报(自然科学版)》;第32卷(第1期);86-90 *

Also Published As

Publication number Publication date
CN114388056A (en) 2022-04-22

Similar Documents

Publication Publication Date Title
CN109087239B (en) Face image processing method and device and storage medium
CN108520552A (en) Image processing method, image processing device, storage medium and electronic equipment
US11776209B2 (en) Image processing method and apparatus, electronic device, and storage medium
WO2019233229A1 (en) Image fusion method, apparatus, and storage medium
WO2016188318A1 (en) 3d human face reconstruction method, apparatus and server
WO2018113639A1 (en) Interaction method between user terminals, terminal, server, system and storage medium
US12001750B2 (en) Location-based shared augmented reality experience system
US12456263B2 (en) Cursor functionality for augmented reality content in messaging systems
US20240087242A1 (en) 3d cursor functionality for augmented reality content in messaging systems
CN106204423A (en) A method, device and terminal for image adjustment based on augmented reality
WO2024055001A1 (en) Sculpting augmented reality content using gestures in a messaging system
US20250251595A1 (en) Color calibration tool for see-through augmented reality environment
CN112206517A (en) Rendering method, device, storage medium and computer equipment
CN111798548A (en) Control method and device of dance picture and computer storage medium
EP4423997B1 (en) Method and system for generating voice messages with changing effects
US20240094861A1 (en) Configuring a 3d model within a virtual conferencing system
CN111524240A (en) Scene switching method and device and augmented reality equipment
CN114388056B (en) AR-based protein section generation method
WO2022212144A1 (en) User-defined contextual spaces
US11918888B2 (en) Multi-user AR experience with offline synchronization
CN114388060B (en) A Method for Generating Spherical Sections of Proteins Based on Circular Controller
KR20250028431A (en) Augmented Reality Image Playback Assistant
CN114388059B (en) Protein section generation method based on three-dimensional force feedback controller
CN114388055B (en) Method for generating protein cross-sections based on brain-infrared control
CN114388058A (en) A method for generating arbitrary cross-sections of proteins based on nine-axis IMU

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20230616

CF01 Termination of patent right due to non-payment of annual fee