[go: up one dir, main page]

CN116636928A - Registration progress detection method and system for lung trachea and electronic equipment - Google Patents

Registration progress detection method and system for lung trachea and electronic equipment Download PDF

Info

Publication number
CN116636928A
CN116636928A CN202310497894.9A CN202310497894A CN116636928A CN 116636928 A CN116636928 A CN 116636928A CN 202310497894 A CN202310497894 A CN 202310497894A CN 116636928 A CN116636928 A CN 116636928A
Authority
CN
China
Prior art keywords
model
point
key point
trachea
lung
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310497894.9A
Other languages
Chinese (zh)
Inventor
佘文波
张军柱
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Changzhou Lunghealth Medtech Co ltd
Original Assignee
Changzhou Lunghealth Medtech Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Changzhou Lunghealth Medtech Co ltd filed Critical Changzhou Lunghealth Medtech Co ltd
Priority to CN202310497894.9A priority Critical patent/CN116636928A/en
Publication of CN116636928A publication Critical patent/CN116636928A/en
Pending legal-status Critical Current

Links

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B34/00Computer-aided surgery; Manipulators or robots specially adapted for use in surgery
    • A61B34/20Surgical navigation systems; Devices for tracking or guiding surgical instruments, e.g. for frameless stereotaxis
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/30Determination of transform parameters for the alignment of images, i.e. image registration
    • G06T7/33Determination of transform parameters for the alignment of images, i.e. image registration using feature-based methods
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B34/00Computer-aided surgery; Manipulators or robots specially adapted for use in surgery
    • A61B34/20Surgical navigation systems; Devices for tracking or guiding surgical instruments, e.g. for frameless stereotaxis
    • A61B2034/2046Tracking techniques
    • A61B2034/2051Electromagnetic tracking systems
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B34/00Computer-aided surgery; Manipulators or robots specially adapted for use in surgery
    • A61B34/20Surgical navigation systems; Devices for tracking or guiding surgical instruments, e.g. for frameless stereotaxis
    • A61B2034/2046Tracking techniques
    • A61B2034/2065Tracking using image or pattern recognition
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30004Biomedical image processing
    • G06T2207/30061Lung
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A90/00Technologies having an indirect contribution to adaptation to climate change
    • Y02A90/10Information and communication technologies [ICT] supporting adaptation to climate change, e.g. for weather forecasting or climate simulation

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Surgery (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Medical Informatics (AREA)
  • General Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
  • Molecular Biology (AREA)
  • Animal Behavior & Ethology (AREA)
  • Robotics (AREA)
  • Public Health (AREA)
  • Veterinary Medicine (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Apparatus For Radiation Diagnosis (AREA)

Abstract

本申请提供一种针对肺部气管的配准进度检测方法、系统及电子设备。方法包括:获取基于肺部气管的医学影像图像所重建出的气管树三维模型和气管树三维模型中的多个第一关键点;基于多个第一关键点对气管树三维模型进行划分得到多个模型区域,每个模型区域内包含至少一个第一关键点;获取定位传感器在肺部气管内当前位置的第一位置信息;根据第一位置信息,确定定位传感器在气管树三维模型中的第二位置信息和所处的目标模型区域;根据第二位置信息,计算定位传感器与目标模型区域包含的所述至少一个第一关键点之间的第一距离;根据第一距离,确定针对目标模型区域的配准进度。本方案能精确地确定配准操作完成情况,还能保证配准数据采集的充分性。

The present application provides a registration progress detection method, system and electronic equipment for lung trachea. The method includes: acquiring a three-dimensional model of the trachea tree reconstructed based on medical imaging images of the lungs and trachea and a plurality of first key points in the three-dimensional model of the trachea tree; dividing the three-dimensional model of the trachea tree based on the plurality of first key points to obtain multiple Each model area contains at least one first key point; obtain the first position information of the current position of the positioning sensor in the lung trachea; according to the first position information, determine the first position of the positioning sensor in the three-dimensional model of the trachea tree Two position information and the target model area where it is located; according to the second position information, calculate the first distance between the positioning sensor and the at least one first key point contained in the target model area; according to the first distance, determine the target model The registration progress of the region. The scheme can accurately determine the completion status of the registration operation, and can also ensure the adequacy of registration data collection.

Description

针对肺部气管的配准进度检测方法、系统及电子设备Registration progress detection method, system and electronic device for pulmonary trachea

技术领域technical field

本申请涉及医疗器械技术领域,尤其涉及一种针对肺部气管的配准进度检测方法、系统及电子设备。The present application relates to the technical field of medical devices, in particular to a registration progress detection method, system and electronic equipment for pulmonary trachea.

背景技术Background technique

随着计算机技术及医学影像技术的发展,手术导航技术以其精准、灵活、微创等优点,在疾病诊疗中应用日趋广泛。比如,常用以检查患者肺部周围性疾的电磁导航支气管镜技术(Electromagnetic Navigation Bronchoscope,ENB)。With the development of computer technology and medical imaging technology, surgical navigation technology is widely used in the diagnosis and treatment of diseases due to its advantages of precision, flexibility and minimal invasiveness. For example, Electromagnetic Navigation Bronchoscope (ENB), which is commonly used to examine patients with peripheral lung diseases.

在利用如ENB对患者肺部进行术中诊疗过程中,一个必不可少的步骤为配准,该配准的目的是将术中患者肺部气管的实际物理空间与术前针对患者肺部重建出的气管树三维模型进行匹配,以便于实现手术器械等在气管树三维模型中相对位置的精准定位,为手术导航提供前提保障。目前,由于配准过程没有建立科学的评价流程和标准,导致每次配准的进度不够直观、配准过程中针对患者肺部气管的实际物理空间采集数据也不够充分等,从而影响配准效率和精准度。为此,亟需提供一种能够获知配准完成程度、且保证配准过程中数据采集充分的技术方案,以给予医师配准进度反馈,提升配准准确度等。In the process of intraoperative diagnosis and treatment of a patient's lungs using ENB, an essential step is registration. The three-dimensional model of the tracheal tree is matched to facilitate the precise positioning of surgical instruments and other relative positions in the three-dimensional model of the tracheal tree, providing a prerequisite guarantee for surgical navigation. At present, because the registration process has not established a scientific evaluation process and standards, the progress of each registration is not intuitive enough, and the data collected for the actual physical space of the patient's lungs and trachea during the registration process is not sufficient, which affects the registration efficiency. and precision. For this reason, it is urgent to provide a technical solution that can know the degree of registration completion and ensure sufficient data collection during the registration process, so as to give feedback to the doctor on the registration progress and improve the registration accuracy.

发明内容Contents of the invention

鉴于上述问题,本申请提供一种解决上述问题或至少部分地解决上述问题的针对肺部气管的配准进度检测方法、系统及电子设备。In view of the above problems, the present application provides a registration progress detection method, system and electronic device for pulmonary trachea that solve the above problems or at least partially solve the above problems.

于是,在本申请的一个实施例中,提供了一种针对肺部气管的配准进度检测方法。Therefore, in one embodiment of the present application, a registration progress detection method for lung trachea is provided.

该方法包括:The method includes:

获取基于肺部气管的医学影像图像所重建出的气管树三维模型和所述气管树三维模型中的多个第一关键点;Acquiring a three-dimensional model of the trachea tree reconstructed based on medical imaging images of the lung trachea and a plurality of first key points in the three-dimensional model of the trachea tree;

基于多个所述第一关键点对所述气管树三维模型进行划分,得到多个模型区域,其中,每个所述模型区域内包含至少一个第一关键点;dividing the three-dimensional model of the tracheal tree based on a plurality of the first key points to obtain a plurality of model areas, wherein each of the model areas contains at least one first key point;

获取定位传感器在所述肺部气管内当前位置的第一位置信息;Acquiring first position information of the current position of the positioning sensor in the lung trachea;

根据所述第一位置信息,确定所述定位传感器在所述气管树三维模型中的第二位置信息和所处的目标模型区域;According to the first position information, determine the second position information of the positioning sensor in the three-dimensional model of the trachea tree and the target model area where it is located;

根据所述第二位置信息,计算所述定位传感器与所述目标模型区域包含的所述至少一个第一关键点的第一距离;calculating a first distance between the positioning sensor and the at least one first key point included in the target model area according to the second position information;

根据所述第一距离,确定针对所述目标模型区域的配准进度。A registration progress for the target model region is determined according to the first distance.

在本申请的另一实施例中,还提供了一种针对肺部气管的配准进度检测系统。该系统包括:In another embodiment of the present application, a registration progress detection system for lung trachea is also provided. The system includes:

磁场发生器,用于产生定位磁场;肺部气管处于所述定位磁场中;A magnetic field generator, used to generate a positioning magnetic field; the lungs and trachea are in the positioning magnetic field;

定位传感器,其在所述肺部气管内移动时能通过感应所述定位磁场产生定位信号,并将所述定位信号发送至处理设备,以由所述处理设备根据所述定位信号确定所述定位传感器在所述肺部气管中的位置信息;A positioning sensor, which can generate a positioning signal by sensing the positioning magnetic field when it moves in the trachea of the lung, and send the positioning signal to a processing device, so that the processing device can determine the positioning according to the positioning signal location information of the sensor in the trachea of the lung;

处理设备,用于执行上述一实施例提供的针对肺部气管的配准进度检测方法中的步骤。The processing device is configured to execute the steps in the method for detecting the registration progress of the pulmonary trachea provided by the above-mentioned embodiment.

在本申请的一个实施例中,提供了一种电子设备。该电子设备包括:存储器和处理器,其中,所述存储器,用于存储计算机程序;所述处理器,与所述存储器耦合,用于执行所述存储器中存储的所述计算机程序,以用于实现本申请上述一实施例提供的针对肺部气管的配准进度检测方法中的步骤或功能。In one embodiment of the present application, an electronic device is provided. The electronic device includes: a memory and a processor, wherein the memory is used to store a computer program; the processor is coupled to the memory and used to execute the computer program stored in the memory for The steps or functions in the registration progress detection method for pulmonary trachea provided by the above-mentioned embodiment of the present application are realized.

本申请各实施例提供的技术方案,是在获取针对肺部气管所重建出的气管树三维模型的基础上,基于获取到的气管树三维模型中的多个第一关键点来对该气管树三维模型进行划分得到多个模型区域,每个模型区域内包含至少一个第一关键点;进一步地,根据获取到的定位传感器在肺部气管内当前的第一位置信息,可确定出定位传感器在气管树三维模型中的第二位置信息以及所处的目标模型区域;并根据该第二位置信息,可计算出定位传感器与目标模型区域包含的至少一个第一关键点的第一距离,进而根据该第一距离能确定出针对目标模型区域的配准进度。本申请方案,通过将定位传感器与目标模型区域中相应的第一关键点的第一距离,作为该目标模型区域的配准进度的衡量标准,为评价术中针对肺部气管配准的配准完成情况提供了客观性标准,利于提高配准完成情况确定的精准性;此外,基于确定出的目标模型区域的配准进度,还有助于后续实现给用户(如临床医师)提供相应的配准进度信息反馈,进而使用户从直观上即可了解目标模型区域的配准完成情况,能为用户操作定位传感器在肺部气管内移动提供有效辅助,从而利于保证配准数据采集的充分性,可为后续精准引导手术进行提供保障。The technical solutions provided by the various embodiments of the present application are based on obtaining the three-dimensional model of the tracheal tree reconstructed for the pulmonary trachea, and then based on multiple first key points in the obtained three-dimensional model of the tracheal tree to The three-dimensional model is divided to obtain multiple model regions, and each model region contains at least one first key point; further, according to the obtained first position information of the positioning sensor in the lung trachea, it can be determined that the positioning sensor is in The second position information in the three-dimensional model of the trachea tree and the target model area where it is located; and according to the second position information, the first distance between the positioning sensor and at least one first key point contained in the target model area can be calculated, and then according to The first distance can determine the registration progress for the target model region. In the solution of the present application, by using the first distance between the positioning sensor and the corresponding first key point in the target model area as a measure of the registration progress of the target model area, in order to evaluate the intraoperative registration for lung trachea registration The completion status provides an objective standard, which is conducive to improving the accuracy of the determination of the registration completion status; in addition, based on the determined registration progress of the target model area, it also helps to provide users (such as clinicians) with corresponding registration results in subsequent implementations. Accurate progress information feedback, so that the user can intuitively understand the registration completion of the target model area, and can provide effective assistance for the user to operate the positioning sensor to move in the lung trachea, thereby helping to ensure the adequacy of registration data collection. It can provide guarantee for follow-up precise guidance surgery.

附图说明Description of drawings

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

图1a至图1c为申请实施例用于肺部诊疗的医疗系统的结构示意图;Figures 1a to 1c are structural schematic diagrams of the medical system used for lung diagnosis and treatment in the embodiment of the application;

图2为本申请一实施例提供的针对肺部气管的配准进度检测方法的流程示意图;FIG. 2 is a schematic flowchart of a registration progress detection method for pulmonary trachea provided by an embodiment of the present application;

图3a和图3b为本申请实施例提供的带有中心线信息的气管树三维模型的正视平面图;Figure 3a and Figure 3b are front plan views of the three-dimensional model of the trachea tree with centerline information provided by the embodiment of the present application;

图4a和图4b为本申请实施例提供的气管树三维模型的模型区域划分的正视平面图;Figure 4a and Figure 4b are front plan views of the model area division of the three-dimensional model of the tracheal tree provided by the embodiment of the present application;

图5为本申请一实施例提供的一轨迹数据的示意图;FIG. 5 is a schematic diagram of trajectory data provided by an embodiment of the present application;

图6为本申请一实施例提供的针对肺部气管的配准进度检测系统的结构示意图;FIG. 6 is a schematic structural diagram of a registration progress detection system for pulmonary trachea provided by an embodiment of the present application;

图7为本申请一实施例提供的针对肺部气管的配准进度检测装置的结构示意图;FIG. 7 is a schematic structural diagram of a registration progress detection device for pulmonary trachea provided by an embodiment of the present application;

图8为本申请一实施例提供的电子设备的结构示意图;FIG. 8 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;

图9为本申请一实施例提供的一种计算机程序产品的结构示意图;FIG. 9 is a schematic structural diagram of a computer program product provided by an embodiment of the present application;

图10和图11为本申请实施例提供的手术配准界面示意图。Fig. 10 and Fig. 11 are schematic diagrams of the surgical registration interface provided by the embodiment of the present application.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

在本申请的说明书、权利要求书及上述附图中描述的一些流程中,包含了按照特定顺序出现的多个操作,这些操作可以不按照其在本文中出现的顺序来执行或并行执行。操作的序号如101、102等,仅仅是用于区分各个不同的操作,序号本身不代表任何的执行顺序。另外,这些流程可以包括更多或更少的操作,并且这些操作可以按顺序执行或并行执行。需要说明的是,本文中的“第一”、“第二”等描述,是用于区分不同的消息、设备、模块等,不代表先后顺序,也不限定“第一”和“第二”是不同的类型。而本申请中术语“或/和”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如:A或/和B,表示可以单独存在A,同时存在A和B,单独存在B这三种情况;本申请中字符“/”,一般表示前后关联对象是一种“或”关系。还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的商品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种商品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的商品或者系统中还存在另外的相同要素。此外,下述的各实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。Some processes described in the specification, claims, and above-mentioned drawings of the present application contain multiple operations appearing in a specific order, and these operations may not be executed in the order in which they appear herein or executed in parallel. The serial numbers of the operations, such as 101, 102, etc., are only used to distinguish different operations, and the serial numbers themselves do not represent any execution order. Additionally, these processes can include more or fewer operations, and these operations can be performed sequentially or in parallel. It should be noted that the descriptions of "first" and "second" in this article are used to distinguish different messages, devices, modules, etc. are different types. However, the term "or/and" in this application is only an association relationship describing associated objects, which means that there may be three relationships, such as: A or/and B, which means that A can exist alone, and A and B can exist simultaneously. There are three cases of B; the character "/" in this application generally indicates that the contextual objects are an "or" relationship. It should also be noted that the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a good or system comprising a set of elements includes not only those elements but also includes items not expressly listed. other elements of the product, or elements inherent in the commodity or system. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the article or system comprising said element. In addition, the following embodiments are only some of the embodiments of the present application, not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts belong to the scope of protection of this application.

本申请以下各实施例中,会涉及定位传感器,例如设置于定位导管上的定位传感器,该定位传感器采用电磁导航(Electromagetic Navigation)原理,不同于普通的电磁导航原理。普通的电磁导航原理主要是:依赖外部磁场吸引或排斥导管中的永久磁体影响进入人体内的医疗器械的方向。本申请实施例中,定位传感器的工作原理主要是:响应于其所在空间的磁场而向外部的控制系统(如下文所述的磁导航装置)输出电流,以供控制系统定位相应导管的位置。详细地来说就是,定位传感器与控制系统通过有线或无线的方式进行(信号)连接。该控制系统包括磁场发生器,用以在一定范围的定位空间中产生磁场。定位传感器本身没有磁性,定位传感器中的线圈用于感受磁场发生器所产生的磁场。其中,磁场发生器在一定范围的定位空间中产生变化磁场,并保证定位空间中每一电的磁场特点是唯一的。定位传感器中的线圈在变换磁场中产生电流,经采集生成信号(即上下文所述的定位信号)后传输至控制系统,控制系统分析所述信号以确定相应导管的精确位置和方向。In the following embodiments of the present application, a positioning sensor, such as a positioning sensor disposed on a positioning catheter, will be involved. The positioning sensor adopts the principle of electromagnetic navigation (Electromagetic Navigation), which is different from the principle of ordinary electromagnetic navigation. The common principle of electromagnetic navigation is mainly to rely on the external magnetic field to attract or repel the permanent magnet in the catheter to affect the direction of the medical device entering the human body. In the embodiment of the present application, the working principle of the positioning sensor is mainly to output current to an external control system (such as the magnetic navigation device described below) in response to the magnetic field in the space where it is located, so that the control system can locate the position of the corresponding catheter. In detail, the positioning sensor and the control system are connected (signal) by wire or wirelessly. The control system includes a magnetic field generator for generating a magnetic field in a certain range of positioning space. The positioning sensor itself has no magnetism, and the coil in the positioning sensor is used to sense the magnetic field generated by the magnetic field generator. Among them, the magnetic field generator generates a changing magnetic field in a certain range of positioning space, and ensures that the magnetic field characteristics of each electrode in the positioning space are unique. The coil in the positioning sensor generates a current in a changing magnetic field, and the generated signal (ie, the positioning signal mentioned above) is collected and transmitted to the control system. The control system analyzes the signal to determine the precise position and orientation of the corresponding catheter.

为便于理解,在介绍本申请实施例提供的技术方案之前,先介绍一下针对肺部手术导航的医疗系统。具体地,For ease of understanding, before introducing the technical solutions provided by the embodiments of the present application, a medical system for lung surgery navigation is introduced first. specifically,

图1a和图1b为本申请实施例提供的一种医疗系统的立体结构示意图。如参见图1a和图1b所示,该医疗系统包括:操作台10、磁导航装置20、医学影像装置30及定位医疗工具40。其中,Fig. 1a and Fig. 1b are three-dimensional structural schematic diagrams of a medical system provided by an embodiment of the present application. As shown in FIG. 1 a and FIG. 1 b , the medical system includes: an operating console 10 , a magnetic navigation device 20 , a medical imaging device 30 and a positioning medical tool 40 . in,

磁导航装置20,用于根据医疗路径将定位医疗工具40导航至所述医疗路径上相应的目标点(或目标区域)。The magnetic navigation device 20 is used for navigating the positioning medical tool 40 to a corresponding target point (or target area) on the medical path according to the medical path.

上述医疗路径可以是由相应具有路径规划功能的处理模块规划出的。具体地,处理模块,可用于根据患者全身或某一身体部位的医学影像数据(如CT、MRI等图像数据)重建出相应的三维模型,并基于该规划出的三维模型执行路径规划以得到相应的医疗路径。例如,可根据术前患者肺部的医学影像数据重建出包含主气管和支气管的气管树三维模型,并根据该气管树三维模型规划出由主隆突经肺部自然气管到目标点的导航路径(或说规划路径),该导航路径即为医疗路径。上述主隆突是指主气管的分叉处,主气管经分叉会分为左主支气管和右主支气管。The aforementioned medical path may be planned by a corresponding processing module having a path planning function. Specifically, the processing module can be used to reconstruct a corresponding three-dimensional model based on medical image data (such as CT, MRI, etc.) of the patient's whole body or a certain body part, and perform path planning based on the planned three-dimensional model to obtain the corresponding medical path. For example, the 3D model of the trachea tree including the main trachea and bronchi can be reconstructed based on the medical image data of the patient's lungs before operation, and the navigation path from the main carina through the natural trachea of the lung to the target point can be planned according to the 3D model of the trachea tree (or planning path), the navigation path is the medical path. The above-mentioned main carina refers to the bifurcation of the main trachea, and the main trachea will be divided into the left main bronchus and the right main bronchus through the bifurcation.

具体实施时,上述处理模块可以设置在磁导航装置20上,或者也可以设置在如图1c中示出的医生用的主控台车50上。上述处理模块可以是应用程序软件,该应用程序软件具有重建三维模型和路径规划、配准等功能,其具体可安装于诸如主控台车50或磁导航装置20上的控制设备中,比如图1c中示出的控制设备511(如为计算机设备)。不过,为降低医生的辐射暴露和医患交叉感染的风险,本实施例优选控制设备511分离于电磁导航装置20,设置在主控台车50上,以使医生可以离开手术室操作控制设备。上述主控台车50能与磁导航装置20通信,其可视为磁导航装置20显示和操控功能的延伸。例如:通过主控台车50上控制设备511包含的显示屏,具体为显示屏上显示出人机交互界面,可显示重建出的三维模型(如气管树三维模型)、医疗路径、手术进度(如配准进度、实时导航进度)、内窥影像等;此外,医生还可通过点击人机交互界面上显示的配准控件,触发配准操作开始执行;或者,通过人机交互界面控制医学影像装置30执行扫描,等等。During specific implementation, the above-mentioned processing module can be set on the magnetic navigation device 20, or can also be set on the main control trolley 50 for doctors as shown in FIG. 1c. The above-mentioned processing module may be application software, which has the functions of reconstructing a three-dimensional model, path planning, registration, etc., and it may be specifically installed in a control device such as the main control trolley 50 or the magnetic navigation device 20, as shown in Fig. The control device 511 (such as a computer device) shown in 1c. However, in order to reduce the radiation exposure of doctors and the risk of cross-infection between doctors and patients, in this embodiment, the control device 511 is preferably separated from the electromagnetic navigation device 20 and installed on the main control trolley 50, so that the doctor can operate the control device away from the operating room. The above-mentioned main control trolley 50 can communicate with the magnetic navigation device 20 , which can be regarded as an extension of the display and control functions of the magnetic navigation device 20 . For example: through the display screen contained in the control device 511 on the main control trolley 50, specifically, the human-computer interaction interface is displayed on the display screen, which can display the reconstructed three-dimensional model (such as the three-dimensional model of the tracheal tree), the medical path, and the operation progress ( Such as registration progress, real-time navigation progress), endoscopic images, etc.; in addition, the doctor can also trigger the registration operation to start by clicking the registration control displayed on the human-computer interaction interface; or, control the medical image through the human-computer interaction interface The device 30 performs scanning, and so on.

上述医学影像装置30,用于获取患者的医学影像。比如,获取患者肺部的医学影像。The above-mentioned medical imaging device 30 is used to obtain medical images of patients. For example, take medical images of a patient's lungs.

具体实施时,上述医学影像装置30可以为但不现定于CT机、X光机等,在条件允许的情况下其可泛指一切医学影像的成像装置,用于对患者的局部或全身进行成像,其成像类型包括但不限定于是二维影像。During specific implementation, the above-mentioned medical imaging device 30 may be, but is not limited to, a CT machine, an X-ray machine, etc., and it may generally refer to any imaging device for medical imaging if conditions permit, and is used for performing local or whole-body imaging on a patient. Imaging, the imaging type includes but not limited to two-dimensional image.

在一实例中,上述医学影像装置30包括可相对于操作台10移动的C形臂311,C形臂311的两端分别用于设置射线模块(用于发出相应的医疗射线,如X射线)和成像模块(图中未示出,具体可设置在C形臂311位于操作台上面的一端),且C形开口朝向操作台。上述C形臂311相对于操作台移动是指C形臂的开口可以沿操作台10的长度或宽度方向移动,也可以是指C形臂的开口围绕操作台10旋转,以使得医学影像装置30的拍摄或扫描覆盖整个操作台及其各个方向,可以按需拍摄合适角度的医学影像(也即医疗影像),提升医疗系统的使用体验。In one example, the above-mentioned medical imaging device 30 includes a C-shaped arm 311 that can move relative to the console 10, and the two ends of the C-shaped arm 311 are respectively used to install radiation modules (for emitting corresponding medical radiation, such as X-rays). and an imaging module (not shown in the figure, specifically, it can be arranged at one end of the C-shaped arm 311 above the operating platform), and the C-shaped opening faces the operating platform. The movement of the C-arm 311 relative to the console means that the opening of the C-arm can move along the length or width of the console 10, or that the opening of the C-arm can rotate around the console 10, so that the medical imaging device 30 The shooting or scanning covers the entire operating table and all directions, and can shoot medical images (that is, medical images) with appropriate angles on demand to improve the experience of using the medical system.

这里需要补充说明的是,上述医学影像装置30可以连接至主控台车50或磁导航装置20上的控制设备,使得控制设备上的处理模块(应用程序软件)可以接收和处理医学影像装置30获得的医学影像。What needs to be supplemented here is that the above-mentioned medical imaging device 30 can be connected to the control device on the main control trolley 50 or the magnetic navigation device 20, so that the processing module (application software) on the control device can receive and process the medical imaging device 30 Acquired medical images.

上述操作台10可以是但不限定于为手术室内的手术台,或者为患者诊疗用病床等。该操作台10可供医学影像装置30的射线透射,具有不影响医疗影像装置30的成像效果的作用。另外,上述医学影像装置30和磁导航装置20可分别设置在操作台10旁。The operating table 10 may be, but not limited to, an operating table in an operating room, or a hospital bed for patient diagnosis and treatment. The console 10 can transmit the radiation of the medical imaging device 30 , and has the function of not affecting the imaging effect of the medical imaging device 30 . In addition, the above-mentioned medical imaging device 30 and the magnetic navigation device 20 can be respectively arranged beside the operating table 10 .

上述所述的医疗定位工具40指的是具备定位功能的医疗工具,如活检、治疗等医疗工具,具体地:可以是用于定位的导线或导管、消融导管,等等。The medical positioning tool 40 mentioned above refers to a medical tool with a positioning function, such as biopsy, treatment and other medical tools, specifically: it may be a guide wire or catheter for positioning, an ablation catheter, and the like.

定位医疗工具40与磁导航装置20连接,或者与磁导航装置20的一部分连接。例如,在磁导航装置20的形状结构为如图1b中示出的形状结构情况下,该磁导航装置20包括输送机构21,该输送机构21可与定位医疗工具40连接,输送机构21根据医疗路径带动定位医疗工具40进入患者体内,如患者肺部气道(或说气管)内,并在磁导航装置20的控制下达到相应的目标点(或目标区域)。上述图1b给出了通过输送机构将所述定位医疗工具40输送至患者体内的示例,在其他实施例中,还可以是凭借医师的操作通过相应的推进装置(如下述所述的提拉机构212)将所述定位医疗工具40送达患者体内,医师借助所述的磁导航装置对应的显示设备(如图1c中示出的显示设备511)手动的控制推进装置,使得推进装置带动定位医疗工具40依照医疗路径进行移动,进而达到相应目标点(或目标区域)。The positioning medical tool 40 is connected to the magnetic navigation device 20 , or is connected to a part of the magnetic navigation device 20 . For example, when the shape and structure of the magnetic navigation device 20 is as shown in FIG. The path drives the positioning medical tool 40 into the patient's body, such as the patient's lung airway (or trachea), and reaches the corresponding target point (or target area) under the control of the magnetic navigation device 20 . The above-mentioned Fig. 1b gives an example of delivering the positioning medical tool 40 into the patient's body through a delivery mechanism. 212) The positioning medical tool 40 is delivered to the patient's body, and the doctor manually controls the propulsion device with the help of the display device corresponding to the magnetic navigation device (display device 511 shown in Figure 1c), so that the propulsion device drives the positioning medical tool The tool 40 moves according to the medical path, and then reaches the corresponding target point (or target area).

这里需要说明的是:上述所述的输送机构21可包括机械臂211和提拉机构212。提拉机构212连接于定位医疗工具40的一个端部。通过手持或机械臂211推进抽拉上述提拉机构212,可以带动定位医疗工具40进出人体气管。另外,电磁导航装置20除了可以为图1b中示出的形状结构外,还可以是其它形状结构,比如,图1c中示出的形状结构,本申请实施例对电磁导航装置20的形状结构不作具体限定。It should be noted here that: the above-mentioned conveying mechanism 21 may include a mechanical arm 211 and a lifting mechanism 212 . The lifting mechanism 212 is connected to one end of the positioning medical tool 40 . Pushing and pulling the above-mentioned lifting mechanism 212 by hand or the mechanical arm 211 can drive and position the medical tool 40 into and out of the trachea of the human body. In addition, the electromagnetic navigation device 20 can be in addition to the shape and structure shown in FIG. 1b, and can also be in other shapes and structures, such as the shape and structure shown in FIG. Specific limits.

进一步地,上述磁导航装置20还可包括设置在上述操作台10内的磁场发生器22、以及设置在定位医疗工具40内的定位传感器23。其中,磁场发生器22用于产生定位磁场以对定位传感器23进行位置定位。Further, the above-mentioned magnetic navigation device 20 may further include a magnetic field generator 22 arranged in the above-mentioned operation console 10 , and a positioning sensor 23 arranged in the positioning medical tool 40 . Wherein, the magnetic field generator 22 is used to generate a positioning magnetic field for positioning the positioning sensor 23 .

具体实施时,上述磁场发生器22设置在操作台10内,可以向床面方向发射定位磁场,当患者躺在操作台10上时,患者相应的身体部位(如肺部)位于该定位磁场中,且由于患者在操作台10上一般处于全麻状态,所以患者相应的身体部位(如肺部)在定位磁场的相对位置是固定的。由于定位磁场具有自己的坐标系,称之为磁场坐标系,由此患者相应的身体部位(如肺部)在磁场坐标系的相对位置是固定的,且定位医疗工具40在患者体内的位置和方向可通过定位医疗工具40头部在磁场坐标系中的位置坐标来表示,具体的是定位磁场可对定位医疗工具40内的定位传感器23进行位置定位,由于定位传感器23设置在医疗工具40的头端位置,由此即通过对定位传感器23进行位置定位以获取定位传感器在磁场坐标系中的位置坐标,便可得到定位医疗工具40在患者体内的位置和方向。During specific implementation, the above-mentioned magnetic field generator 22 is arranged in the console 10, and can emit a positioning magnetic field toward the bed surface. When the patient is lying on the console 10, the patient's corresponding body parts (such as the lungs) are located in the positioning magnetic field. , and since the patient is generally under general anesthesia on the console 10, the relative positions of the corresponding body parts (such as the lungs) of the patient in the positioning magnetic field are fixed. Since the positioning magnetic field has its own coordinate system, which is called the magnetic field coordinate system, the relative position of the patient's corresponding body parts (such as the lungs) in the magnetic field coordinate system is fixed, and the position and position of the positioning medical tool 40 in the patient's body are fixed. The direction can be represented by the position coordinates of the head of the positioning medical tool 40 in the magnetic field coordinate system. Specifically, the positioning magnetic field can position the positioning sensor 23 in the positioning medical tool 40, because the positioning sensor 23 is arranged on the medical tool 40. The position of the head end, that is, by locating the positioning sensor 23 to obtain the position coordinates of the positioning sensor in the magnetic field coordinate system, the position and direction of the positioning medical tool 40 in the patient's body can be obtained.

在本申请下文所介绍的针对肺部气管的配准进度检测方法,便是根据定位传感器在患者肺部气管内游走时相对于肺部气管的第一位置信息(为实际物理空间(也即磁场空间)中在肺部气管内的位置),确定其映射至针对肺部气管所重建出的气管树三维模型中相应的第二位置信息,进行根据第二位置信息确定定位传感器映射至气管树三维模型中时所在的目标模型区域,从而计算定位传感器相对于该目标模型区域的关键点的距离,以作为判断针对目标模型区域的配准进度的衡量标准。有关气管树三维模型包含的模型区域的具体介绍可参见下文本申请其他实施例中相关内容,此处不作具体赘述。当在确定针对气管树三维模型包含的所有应进行配准的模型区域均配准完成后,便完成了整个肺部气管的配准。The registration progress detection method for the lung trachea described below in this application is based on the first position information of the positioning sensor relative to the lung trachea when walking in the patient's lung trachea (which is the actual physical space (that is, The position in the lung trachea in the magnetic field space), determine its mapping to the corresponding second position information in the three-dimensional model of the trachea tree reconstructed for the lung trachea, and determine the mapping of the positioning sensor to the trachea tree according to the second position information The target model area where the 3D model is located, so as to calculate the distance of the positioning sensor relative to the key point of the target model area, as a measure standard for judging the registration progress of the target model area. For the specific introduction of the model area included in the three-dimensional model of the tracheal tree, please refer to the relevant content in other embodiments of the application below, and details will not be repeated here. After it is determined that all the model regions that should be registered included in the three-dimensional model of the trachea tree have been registered, the registration of the entire lung trachea is completed.

下面对本申请实施例提供的针对肺部气管的配准进度检测方法进行详细介绍。The method for detecting the registration progress of the pulmonary trachea provided in the embodiment of the present application will be described in detail below.

图2示出了本申请一实施例提供的针对肺部气管的配准进度检测方法的流程示意图。该方法的执行主体为相应的处理设备,比如图1a至图1c中示出的磁导航装置20或者图1c中示出的主控台车50上的控制设备511(诸如计算机设备),此处不作具体限定。如参见图2所示,所述针对肺部气管的配准进度检测方法包括如下步骤:Fig. 2 shows a schematic flowchart of a registration progress detection method for pulmonary trachea provided by an embodiment of the present application. The method is executed by a corresponding processing device, such as the magnetic navigation device 20 shown in FIGS. 1a to 1c or the control device 511 (such as a computer device) on the master console 50 shown in FIG. Not specifically limited. As shown in FIG. 2, the registration progress detection method for lung trachea includes the following steps:

101、获取基于肺部气管的医学影像图像所重建出的气管树三维模型和所述气管树三维模型的多个第一关键点;101. Acquire a three-dimensional model of a tracheal tree reconstructed based on a medical imaging image of a lung trachea and a plurality of first key points of the three-dimensional model of the tracheal tree;

102、基于多个所述第一关键点对所述气管树三维模型进行划分,得到多个模型区域;其中,每个所述模型区域内包含至少一个第一关键点;102. Divide the three-dimensional model of the trachea tree based on multiple first key points to obtain multiple model areas; wherein each of the model areas contains at least one first key point;

103、获取定位传感器在所述肺部气管内当前位置的第一位置信息;103. Acquire first position information of the current position of the positioning sensor in the lung trachea;

104、根据所述第一位置信息,确定所述定位传感器在所述气管树三维模型中的第二位置信息和所处的目标模型区域;104. According to the first position information, determine the second position information of the positioning sensor in the three-dimensional model of the trachea tree and the target model area where it is located;

105、根据所述第二位置信息,计算所述定位传感器与所述目标模型区域包含的至少一个第一关键点之间的第一距离;105. Calculate a first distance between the positioning sensor and at least one first key point included in the target model area according to the second position information;

106、根据所述第一距离,确定针对所述目标模型区域的配准进度。106. Determine a registration progress for the target model region according to the first distance.

上述101中,气管树三维模型可以是基于术前一系列从不同角度针对患者肺部所采集到的多个医学影像图像(如二维断层图像,即CT图像),利用三维重建技术(如三维重建软件),通过对多个医学影像图像进行相关处理而获得的。In the above 101, the three-dimensional model of the tracheal tree can be based on a series of preoperative medical imaging images (such as two-dimensional tomographic images, that is, CT images) collected from different angles for the patient's lungs, using three-dimensional reconstruction technology (such as three-dimensional Reconstruction software), obtained by correlating multiple medical imaging images.

例如,术前,可以通过如CT断层扫描患者肺部,获取患者肺部的多个二维CT图像;然后,将该多个二维CT图像导入如上文本申请其他实施例中所述的处理模块(可为具有重建三维模型、路径规划、配准等功能的应用程序软件),进行肺部气管等组织的图像识别、分割等,获取肺部气管的三维建模参数,进而基于该三维建模参数来构建出患者肺部气管的气管树三维模型。For example, before the operation, multiple two-dimensional CT images of the patient's lungs can be obtained by scanning the patient's lungs such as CT tomography; then, the multiple two-dimensional CT images are imported into the processing module as described in other embodiments of the above text application (It can be application software with functions such as reconstruction of 3D model, path planning, registration, etc.), image recognition and segmentation of tissues such as lung trachea, etc., to obtain 3D modeling parameters of lung trachea, and then based on the 3D modeling parameters to construct a three-dimensional model of the trachea tree of the patient's lung trachea.

由上示例,即上述101中的“获取基于肺部气管的医学影像图像所重建出的气管树三维模型”,可通过以下相关处理步骤来获得:Based on the above example, that is, "acquiring the three-dimensional model of the trachea tree reconstructed based on the medical imaging images of the lung trachea" in the above-mentioned 101, can be obtained through the following related processing steps:

S111、获取针对肺部气管采集到的多个医学影像图像;S111. Obtain a plurality of medical imaging images collected for the lungs and trachea;

S112、对所述多个医学影像图像进行识别,以获得所述肺部气管的三维建模参数;S112. Identify the plurality of medical imaging images to obtain three-dimensional modeling parameters of the lung trachea;

S113、基于所述三维建模参数,构建所述气管树三维模型。S113. Based on the three-dimensional modeling parameters, construct the three-dimensional model of the tracheal tree.

在获取到气管树三维模型之后,可以对气管树三维模型进行骨架化,以提取气管树三维模型的中心线信息,为后续气管树三维模型的划分等提供数据支持。例如,可基于中心线信息,事先在气管树三维模型中预设多个第一关键点、一个基准点等,已备后续基于该多个第一关键点、基准点来实现气管树三维模型的划分。即,在一种可实现技术方案中,上述101中的“获取所述气管树三维模型中的多个第一关键点”,可通过如下具体步骤来获得:After the three-dimensional model of the tracheal tree is obtained, the three-dimensional model of the tracheal tree can be skeletonized to extract the centerline information of the three-dimensional model of the tracheal tree, and provide data support for subsequent division of the three-dimensional model of the tracheal tree. For example, based on the central line information, a plurality of first key points, a reference point, etc. can be preset in the tracheal tree three-dimensional model in advance, and the subsequent realization of the tracheal tree three-dimensional model based on the multiple first key points and reference points can be prepared. divided. That is, in an achievable technical solution, the "obtain multiple first key points in the 3D model of the tracheal tree" in the above 101 can be obtained through the following specific steps:

S121、确定所述气管树三维模型的中心线信息;S121. Determine the centerline information of the three-dimensional model of the tracheal tree;

S122、根据所述中心线信息,确定基准点及所述气管树三维模型中的多个第一关键点;S122. Determine a reference point and a plurality of first key points in the three-dimensional model of the tracheal tree according to the centerline information;

上述S121中,可以利用但不局限于相应的细化算法来提取气管树三维模型的中心线信息,比如拓扑细化算法。细化算法主要是通过反复侵蚀目标对象表面像素直到只剩下骨架,以此来实现目标对象的中心线提取的方法。有关利用细化算法提取气管树三维模型的中心线信息的具体实现,可参见现有相关方案。In the above S121, the centerline information of the three-dimensional model of the trachea tree may be extracted by using but not limited to a corresponding thinning algorithm, such as a topology thinning algorithm. The thinning algorithm mainly implements the method of extracting the centerline of the target object by repeatedly eroding the surface pixels of the target object until only the skeleton remains. For the specific implementation of using the thinning algorithm to extract the centerline information of the three-dimensional model of the tracheal tree, please refer to the existing related solutions.

在图3a和图3b中示出的气管树三维模型100的正视平面图中,以虚线方式示出了气管树三维模型的中心线信息。In the front plan view of the three-dimensional model of the tracheal tree 100 shown in Fig. 3a and Fig. 3b, the central line information of the three-dimensional model of the tracheal tree is shown in a dotted line.

在提取出气管树三维模型的中心线信息后,在执行步骤S122之前,可以先通过对中心线信息进行分析,确定中心线信息中的中心线分叉点,进而根据中心线分叉点来确定气管树三维模型中包括的多个气管模型。即,上述S121和S122之间还可包括如下步骤:After extracting the centerline information of the three-dimensional model of the trachea tree, before performing step S122, the centerline bifurcation point in the centerline information can be determined by analyzing the centerline information, and then determined according to the centerline bifurcation point Multiple trachea models included in the tracheal tree 3D model. That is, the following steps may also be included between the above S121 and S122:

A1、确定所述中心线信息中的中心线分叉点;A1. Determine the bifurcation point of the centerline in the centerline information;

A2、根据所述中心线分叉点,确定所述气管树三维模型中包括的多个气管模型。A2. Determine a plurality of trachea models included in the three-dimensional model of the trachea tree according to the bifurcation point of the centerline.

上述中,中心线分叉点指的至少两个中心线段的交点。中心线信息中的中心线分叉点,可参见图3a中示出的分叉点b0、分叉点b1和分叉点b2。In the above, the bifurcation point of the centerline refers to the intersection point of at least two centerline segments. For the bifurcation points of the centerline in the centerline information, refer to the bifurcation point b0 , the bifurcation point b1 and the bifurcation point b2 shown in FIG. 3 a .

在现实中,人的肺部气管形态为树状,根据肺部气管的解剖结构,可以将肺部气管按照分叉层级可划分为不同层级,比如:主气管(第1层级,为一端与咽喉连接、另一端与支气管连接的管道,是空气通道)经肺门入肺,会分叉为两个主支气管(也可称为叶主支气管,为第2层级):左主支气管和右主支气管;进一步地,两个主支气管会分别进行进一步分叉,比如,左主支气管进一步分叉为左上叶支气管、左下叶支气管,等等。基于此,针对本实施例中获取的气管树三维模型,可依据上述确定出的中心线分叉点,来确定气管树三维模型包括的多个气管模型,以便为后续各步骤处理提出支撑。具体地,如参见图3a所示,自上而下,可确定气管树三维模型中包括如下多个气管模型:主气管模型1、与所述主气管模型1分叉相连的右肺支气管模型和左肺支气管模型,其中,右肺支气管模型具体包含:右主支气管模型11(其一端与主气管模型1相连)、与所述右主支气管模型11(具体为右主支气管模型11的另一端)分叉相连的右上叶支气管模型111和右下叶支气管模型112,左肺支气管模型具体包含:左主支气管模型12(其一端与主气管模型1相连)、与所述左主支气管模型12(具体为左主支气管模型12的另一端)分叉相连的左上叶支气管模型121和左下叶支气管模型122。In reality, the shape of the human lung trachea is a tree. According to the anatomical structure of the lung trachea, the lung trachea can be divided into different levels according to the bifurcation level, for example: the main trachea (the first level, which is one end and the throat Connected, the other end is connected to the bronchus, which is an air channel) enters the lung through the hilum, and will bifurcate into two main bronchi (also called lobar main bronchus, which is the second level): left main bronchus and right main bronchus ; Further, the two main bronchi will be further bifurcated, for example, the left main bronchus will be further bifurcated into the left upper lobe bronchus, the left lower lobe bronchus, and so on. Based on this, for the three-dimensional model of the tracheal tree obtained in this embodiment, multiple tracheal models included in the three-dimensional model of the tracheal tree can be determined according to the centerline bifurcation points determined above, so as to provide support for subsequent processing steps. Specifically, as shown in FIG. 3a, from top to bottom, it can be determined that the three-dimensional model of the trachea tree includes the following multiple trachea models: a main trachea model 1, a right lung bronchus model connected to the main trachea model 1 and The left lung bronchus model, wherein the right lung bronchus model specifically includes: the right main bronchus model 11 (one end of which is connected to the main trachea model 1), and the right main bronchus model 11 (specifically the other end of the right main bronchus model 11) The right upper lobe bronchus model 111 and the right lower lobe bronchus model 112 connected by bifurcations, the left pulmonary bronchus model specifically includes: the left main bronchus model 12 (one end of which is connected to the main trachea model 1), and the left main bronchus model 12 (specifically It is the left upper lobe bronchus model 121 and the left lower lobe bronchus model 122 connected by bifurcation of the other end of the left main bronchus model 12 .

相应地,上述所述的中心线信息包含气管树三维模型中多个气管模型的中心线。Correspondingly, the above-mentioned centerline information includes the centerlines of multiple trachea models in the three-dimensional model of the trachea tree.

上述S122中,基准点可对应于肺部气管中的主隆突位置,由于主隆突是指主气管的分叉处,基于此,可以将气管树三维模型中包含的主气管模型、右主支气管模型和左主支气管模型这三个气管模型的中心线的交点作为基准点,进而再基于基准点、中心线信息确定多个第一关键点等。具体地,在一具体可实现技术方案中,上述S122“根据所述中心线信息,确定基准点及所述气管树三维模型中的多个第一关键点”,可采用如下步骤来实现:In the above S122, the reference point may correspond to the position of the main carina in the lung trachea. Since the main carina refers to the bifurcation of the main trachea, based on this, the main trachea model, right main The intersection of the centerlines of the three trachea models, the bronchus model and the left main bronchus model, is used as a reference point, and then multiple first key points are determined based on the reference point and centerline information. Specifically, in a specific achievable technical solution, the above-mentioned S122 "determine the reference point and multiple first key points in the three-dimensional model of the trachea tree according to the centerline information" can be implemented by the following steps:

S1221、获取所述主气管模型的中心线、所述右主支气管模型的中心线和所述左主支气管模型的中心线的交点,确定为所述基准点;S1221. Acquire the intersection point of the centerline of the main trachea model, the centerline of the right main bronchus model, and the center line of the left main bronchus model, and determine it as the reference point;

S1222、获取所述主气管模型上的位于所述基准点上方、且与所述基准点的距离为预设距离的一点,确定为所述主气管模型的主气管关键点;S1222. Obtain a point on the main trachea model that is above the reference point and whose distance from the reference point is a preset distance, and determine it as the main trachea key point of the main trachea model;

S1223、分别获取所述右上叶支气管模型和所述右下叶支气管模型的未与所述右主支气管模型相连的一端上的一点,确定为所述右上叶支气管模型的右上叶关键点、所述右下叶支气管模型的右下叶关键点;S1223. Acquire a point on the end of the right upper lobe bronchus model and the right lower lobe bronchus model that is not connected to the right main bronchus model, and determine it as the right upper lobe key point of the right upper lobe bronchus model, the Key points of the right lower lobe of the right lower lobe bronchus model;

S1224、分别获取所述左上叶支气管模型、所述左下叶支气管模型的未与所述左主支气管模型相连的一端上的一点,确定为所述左上叶支气管模型的左上叶关键点、所述左下叶支气管模型的左下叶关键点;S1224. Acquire the left upper lobe bronchus model and a point on the end of the left lower lobe bronchus model that is not connected to the left main bronchus model, and determine it as the left upper lobe key point of the left upper lobe bronchus model, the left lower lobe model Key points of the left lower lobe of the lobar bronchi model;

其中,所述右上叶关键点、所述右下叶关键点、所述左上叶关键点及所述左下叶关键点,分别位于所述右上叶支气管模型、所述右下叶支气管模型、所述左上叶支气管模型及所述左下叶支气管模型各自的中心线上。Wherein, the key points of the right upper lobe, the key points of the right lower lobe, the key points of the left upper lobe and the key points of the left lower lobe are located in the right upper lobe bronchus model, the right lower lobe bronchus model, the The left upper lobe bronchus model and the respective centerlines of the left lower lobe bronchus model.

上述所述的预设距离可根据实际情况灵活设定,此处不作具体限定。The preset distance mentioned above can be flexibly set according to the actual situation, and is not specifically limited here.

例如,继续参见图3a所示,可以将获取到的主气管模型1的中心线、右主支气管模型11的中心线和左主支气管模型12的中心线的交点,也即上述所述的分叉点b0,确定为基准点A。进一步地,可以将主气管模型1上距离基准点A约为10cm的一点,确定为主气管模型1的主气管关键点10。以及,还可以获取右上叶支气管模型111的未与右主支气管模型11相连的一端上的、且位于右上叶支气管模型111的中心线上的一点,确定为右上叶支气管模型111的右上叶关键点1110。For example, continue to refer to Fig. 3a, the intersection of the centerline of the obtained main bronchus model 1, the center line of the right main bronchus model 11 and the center line of the left main bronchus model 12, that is, the above-mentioned bifurcation Point b0 is determined as reference point A. Further, a point about 10 cm away from the reference point A on the main trachea model 1 may be determined as the main trachea key point 10 of the main trachea model 1 . And, a point on the end of the right upper lobe bronchus model 111 that is not connected to the right main bronchus model 11 and located on the centerline of the right upper lobe bronchus model 111 can also be obtained, and determined as the right upper lobe key point of the right upper lobe bronchus model 111 1110.

有关图3a中示出的右下叶支气管模型的右下叶关键点1120、左上叶支气管模型的左上叶关键点1210及左下叶支气管模型的左下叶关键点1220的确定,可具体参见上述对右上叶支气管模型111的右上叶关键点1110的确定相关示例描述。Regarding the determination of the right lower lobe key point 1120 of the right lower lobe bronchus model shown in FIG. Determination of the right upper lobe key point 1110 of the lobar bronchi model 111 is described with respect to an example.

这里需要补充说明的是,上述步骤S1211~S1224描述的方式,是以在主气管模型、右上叶支气管模型和所述右下叶支气管模型、左上叶支气管模型以及左下叶支气管模型上各自确定一个相应的关键点来介绍说明多个第一关键点确定的,采用此方式获取多个第一关键点,使得每个第一关键点设置在相应气管模型的末端,这有利于后续基于第一关键点针对相应的模型区域的配准进度检测时,保证定位传感器在对相应的模型区域已完成充分遍历的情况下,才判定为针对相应的模型区域完成了配准。What needs to be added here is that the method described in the above steps S1211 to S1224 is to determine a corresponding The key points are introduced to explain the determination of multiple first key points. In this way, multiple first key points are obtained, so that each first key point is set at the end of the corresponding trachea model, which is beneficial to the follow-up based on the first key point. When detecting the registration progress of the corresponding model area, it is ensured that the positioning sensor has fully traversed the corresponding model area before it is determined that the registration is completed for the corresponding model area.

当然,还可以在上述所述的模型上确定其他关键点以视为第一关键点。例如:承接上述在描述步骤S1221~S1224给出的示例,参见图3b,还可以将主气管模型1上距离基准点A约为5cm的一点,确定为主气管模型1的另一个主气管关键点10’;以及,还可以获取右上叶支气管模型111的中心线上位于上述确定的右上叶关键点1110与分叉点b1之间的一点,具体地,如获取右上叶支气管模型111的中心线上距离上述确定的右上叶关键点1110为设定距离的一点,确定为右上叶支气管模型111的另一个右上叶关键点(图3b中未示出)等等,本实施例对此不作限定。采用此方式来获取多个第一关键点,会使得后续在相应的模型区域内可能存在两个及以上的第一关键点的情况,在此情况下,针对该相应的模型区域进行配准进度检测过程中,可以基于该模型区域内包含的两个及以上的第一关键点在多个配准进度范围内进行配准进度分析。有关在多个配准进度范围内进行配准进度分析的具体实现,将在下文中有详述,此处不作具体描述。Of course, other key points can also be determined on the above-mentioned model to be regarded as the first key point. For example: following the example given above in the description steps S1221-S1224, see Figure 3b, a point on the main trachea model 1 about 5 cm away from the reference point A can also be determined as another main trachea key point of the main trachea model 1 10'; and, it is also possible to obtain a point on the center line of the right upper lobe bronchus model 111 between the above-mentioned determined right upper lobe key point 1110 and the bifurcation point b1, specifically, such as obtaining the center line of the right upper lobe bronchus model 111 A point at a set distance from the above-identified right upper lobe key point 1110 is determined as another right upper lobe key point (not shown in FIG. 3 b ) of the right upper lobe bronchus model 111 , etc., which is not limited in this embodiment. Using this method to obtain multiple first key points will result in the possibility that there may be two or more first key points in the corresponding model area. In this case, the registration progress is performed for the corresponding model area During the detection process, registration progress analysis may be performed within multiple registration progress ranges based on the two or more first key points contained in the model area. The specific implementation of the registration progress analysis within multiple registration progress ranges will be described in detail below, and will not be specifically described here.

优选地,本实施例通过上述步骤S1221~S1224来获取多个第一关键点。Preferably, in this embodiment, a plurality of first key points are obtained through the above steps S1221 to S1224.

有上内容,本实施例中的气管树三维模型包括多个气管模型,具体地,多个气管模型包括:主气管模型、与所述主气管模型相连的右肺支气管模型和左肺支气管模型,其中,所述右肺支气管模型包括:右主支气管模型、右上叶支气管模型、右下叶支气管模型;所述左肺支气管模包括:左主支气管模型、左上叶支气管模型、左下叶支气管模型;Based on the above, the three-dimensional model of the trachea tree in this embodiment includes multiple trachea models, specifically, the multiple trachea models include: a main trachea model, a right lung bronchus model and a left lung bronchus model connected to the main trachea model, Wherein, the right lung bronchus model includes: a right main bronchus model, a right upper lobe bronchus model, and a right lower lobe bronchus model; the left lung bronchus model includes: a left main bronchus model, a left upper lobe bronchus model, and a left lower lobe bronchus model;

多个第一个关键点包括:位于所述主气管模型上的主气管关键点、位于所述右上叶支气管模型上的右上叶关键点、位于所述右下叶支气管模型上的右下叶关键点、位于所述左上叶支气管模型上的左上叶关键点、位于所述左下叶支气管模型上的左下叶关键点。A plurality of first key points include: a main trachea key point located on the main trachea model, a right upper lobe key point located on the right upper lobe bronchus model, a right lower lobe key point located on the right lower lobe bronchus model point, the left upper lobe key point located on the left upper lobe bronchus model, and the left lower lobe key point located on the left lower lobe bronchus model.

上述102中,可基于一基准平面和多个第一关键点来实现气管树三维模型的划分,基准平面可基于位于主气管模型上的主气管关键点和气管树三维模型的基准点来确定。即,在一种可实现方案中,上述102“基于多个所述第一关键点对所述气管树三维模型进行化分,得到多个模型区域”,可具体包括:In the above 102, the division of the three-dimensional model of the trachea tree can be realized based on a reference plane and multiple first key points, and the reference plane can be determined based on the key points of the main trachea located on the main airway model and the reference points of the three-dimensional model of the trachea tree. That is, in a feasible solution, the above-mentioned 102 "decompose the three-dimensional model of the tracheal tree based on multiple first key points to obtain multiple model regions" may specifically include:

1021、获取所述气管树三维模型的基准点;所述基准点是基于所述主气管模型、所述右主支气管模型和所述左主支气管模型的交点确定的;1021. Acquire a reference point of the three-dimensional model of the trachea tree; the reference point is determined based on the intersection of the main trachea model, the right main bronchus model, and the left main bronchus model;

1022、根据所述主气管关键点和所述基准点,确定所述气管树三维模型的基准平面;1022. Determine a reference plane of the three-dimensional model of the trachea tree according to the key points of the main trachea and the reference point;

1023、根据所述基准平面和多个所述第一关键点,将所述气管树三维模型划分为多个模型区域。1023. Divide the three-dimensional model of the tracheal tree into multiple model regions according to the reference plane and the multiple first key points.

有关上述1021的具体实现描述,可参见上文中与步骤S1221相关内容。For the specific implementation description of the above step S1221, please refer to the content related to step S1221 above.

上述1022中,可以将主气管关键点作为起始点、基准点作为终止点,确定一向量,该向量能反映出主气管模型的主气管方向;进一步地,可将该向量作为需要确定的基准平面的法向量,为基准平面确定提供依据。基于此,在一具体可实现技术方案中,上述1022“根据所述主气管关键点和所述基准点,确定所述气管树三维模型的基准平面”,可采用如下更具体步骤来实现:In the above 1022, the key point of the main trachea can be used as the starting point and the reference point can be used as the end point to determine a vector that can reflect the direction of the main trachea of the main trachea model; further, the vector can be used as the reference plane to be determined The normal vector of , provides the basis for determining the datum plane. Based on this, in a specific achievable technical solution, the above-mentioned 1022 "determine the reference plane of the three-dimensional model of the trachea tree according to the key points of the main trachea and the reference point" can be implemented by the following more specific steps:

10221、根据所述主气管关键点和所述基准点,确定一用以反映所述主气管模型的主气管方向的向量;10221. According to the key points of the main trachea and the reference point, determine a vector used to reflect the direction of the main trachea of the main trachea model;

10222、将过所述基准点、且与所述向量垂直的一平面,确定为所述基准平面。10222. Determine a plane passing through the reference point and perpendicular to the vector as the reference plane.

在图4a示出的气管树三维模型的正视平面图上,以箭头V指示出了主气管模型的主气管方向,基准平面为P。On the front plan view of the three-dimensional model of the trachea tree shown in Fig. 4a, the direction of the main trachea of the main trachea model is indicated by the arrow V, and the reference plane is P.

上述1023中,可以将气管树三维模型中位于基准平面上方的模型区域确定为主气管模型区域;以及,进一步地可以通过将气管树三维模型中位于基准平面下方的模型区域划分为左、右两部分区域,然后基于左、右两部分区域各自包含的气管模型的关键点,来对左、右两部分区域进行再次划分,以此实现将气管树三维模型划分为多个模型区域。其中,在将位于基准平面下方的模型区域划分为左、右两部分区域时,可以通过过基准点沿上述所述向量的方向引一垂线来实现。由此,在一具体可实现技术方案中,上述1023“根据所述基准平面和多个所述第二关键点,将所述气管树三维模型划分为多个模型区域”,可采用如下步骤来实现:In the above step 1023, the model area above the reference plane in the three-dimensional model of the trachea tree can be determined as the main airway model area; and further, the model area below the reference plane in the three-dimensional model of the trachea tree can be divided into left and right Part of the area, and then based on the key points of the trachea model contained in the left and right parts of the area, the left and right parts of the area are divided again, so as to realize the division of the three-dimensional model of the trachea tree into multiple model areas. Wherein, when dividing the model area below the reference plane into left and right parts, it can be realized by drawing a vertical line through the reference point along the direction of the above-mentioned vector. Therefore, in a specific achievable technical solution, the above-mentioned 1023 "divide the three-dimensional model of the tracheal tree into multiple model areas according to the reference plane and the plurality of second key points", the following steps can be adopted to accomplish:

10231、将所述气管树三维模型中位于所述基准平面上方的模型区域,确定为主气管模型区域;10231. Determine the model area above the reference plane in the three-dimensional model of the trachea tree as the main trachea model area;

10232、基于所述基准点和所述主气管关键点,确定一分割线;10232. Based on the reference point and the key point of the main trachea, determine a dividing line;

10233、根据所述分割线,将所述气管树三维模型中位于所述基准平面下方的模型区域划分为右肺支气管模型区域、左肺支气管模型区域;10233. According to the dividing line, divide the model area below the reference plane in the three-dimensional model of the trachea tree into a right lung bronchus model area and a left lung bronchus model area;

10234、根据所述右肺支气管模型区域内包含的位于所述右上叶支气管模型的右上叶关键点、位于所述右下叶支气管模型的右下叶关键点,将所述右肺支气管模型区域划分为右肺上叶模型区域、右肺下叶模型区域;10234. According to the right upper lobe key point located in the right upper lobe bronchus model and the right lower lobe key point located in the right lower lobe bronchus model contained in the right lung bronchus model area, divide the area of the right lung bronchus model are the model area of the upper lobe of the right lung and the model area of the lower lobe of the right lung;

10235、根据所述左肺支气管模型区域内包含的位于所述左上叶支气管模型的左上叶关键点、位于所述左下叶支气管模型的左下叶关键点,将所述左肺支气管模型区域划分为左肺上叶模型区域、左肺下叶模型区域。10235. According to the left upper lobe key point located in the left upper lobe bronchus model and the left lower lobe key point located in the left lower lobe bronchus model contained in the left lung bronchus model area, divide the left lung bronchus model area into left Model area of the upper lobe of the lung, model area of the lower lobe of the left lung.

例如,参见图4a,上述气管树三维模型中位于基准平面P上方的模型区域为主气管模型区域。进一步地,将主气管关键点10与基准点A之间的连线沿箭头V所指示方向(即上述所述的向量的方向,为主气管模型的主气管方向)向下延长,得到一分割线l0;换一种表述方式,上述分割线l0也可是过基准点A沿箭头V所指示方向向下引一垂线来得到的。上述确定出的分割线l0会将气管树三维模型中位于基准平面P下方的模型区域分割成为两个区域,即右肺支气管模型区域、左肺支气管模型区域。结合图3a可获知,上述右肺支气管模型区域包括右上叶支气管模型和右下叶支气管模型,为此进一步地,可以根据位于右上叶支气管模型的右上叶关键点1110、位于右下叶支气管模型的右下叶关键点1220,将该右肺支气管模型区域划分为右肺上叶模型区域、右肺下叶模型区域。For example, referring to Fig. 4a, the model area above the reference plane P in the above three-dimensional model of the trachea tree is the main trachea model area. Further, the line between the key point 10 of the main trachea and the reference point A is extended downward along the direction indicated by the arrow V (that is, the direction of the above-mentioned vector is the direction of the main trachea of the main trachea model) to obtain a division Line l0; in another way of expression, the above-mentioned dividing line l0 can also be obtained by drawing a vertical line downward along the direction indicated by the arrow V through the reference point A. The division line l0 determined above will divide the model area below the reference plane P in the three-dimensional model of the trachea tree into two areas, namely, the right lung bronchus model area and the left lung bronchus model area. In combination with Fig. 3a, it can be known that the above-mentioned right lung bronchus model area includes the right upper lobe bronchus model and the right lower lobe bronchus model. For this further, according to the right upper lobe key point 1110 located in the right upper lobe bronchus model, the right upper lobe bronchus model located in The right lower lobe key point 1220 divides the right lung bronchi model area into the right upper lobe model area and the right lower lobe model area.

具体地,如继续参见图4a,可以直接在右上叶关键点1110和右下叶关键点1220之间作一连线l1,并取该连线l1的中点c1,过中点c1作一条平行于基准平面P的水平线l11,该水平线l11便会将右肺支气管模型区域划分为上下两部分区域,具体地,右肺支气管模型区域中位于水平线l11上方的模型区域为右肺上叶模型区域、位于水平线l11下方的模型区域为右肺下叶模型区域。Specifically, as shown in Fig. 4a, a line l1 can be directly drawn between the key point 1110 of the upper right lobe and the key point 1220 of the lower right lobe, and the midpoint c1 of the line l1 can be taken to pass through the midpoint c1 to draw a line parallel to The horizontal line l11 of the reference plane P, the horizontal line l11 will divide the right lung bronchus model area into upper and lower parts, specifically, the model area above the horizontal line l11 in the right lung bronchus model area is the right upper lobe model area, located at The model area below the horizontal line l11 is the model area of the lower lobe of the right lung.

或者,由于上述右上叶关键点1110和右下叶关键点1220往往不在同一条垂直线上,若直接在右上叶关键点1110和右下叶关键点1220之间作一连线,作出的连线常是倾斜的,这可能会影响后续对右肺支气管模型区域划分的精准性。为提高后续对右肺支气管模型区域划分的精准性,可以针对上述右上叶关键点1110、右下叶关键点1220中的一个关键点,确定出与另一个关键点在同一条垂直线上的点,具体地,该确定出的点的纵坐标与上述右上叶关键点1110、右下叶关键点1220中的一个关键点的纵坐标相同,其的横坐标为与上述右上叶关键点1110、右下叶关键点1220中的另一个关键点的横坐标相同。进一步地,可依据该确定出的点与上述右上叶关键点1110、右下叶关键点1220中的另一个关键点的连线,来实现后续对右肺支气管模型区域划分。具体地,例如,参见图4b,针对右下叶关键点1220,可以确定一个点1220’,该点1220’的纵坐标与右下叶关键点1220的纵坐标相同、其横坐标与右上叶关键点1110的横坐标相同;在该点1220’与右下叶关键点1220之间作一连线l1’,并取该连线l1’的中点c1’,过中点c1’作一条与连线l1’垂直的水平线l11’,该水平线l11’便会将右肺支气管模型区域划分为上下两部分区域,具体地,右肺支气管模型区域中位于水平线l11’上方的模型区域为右肺上叶模型区域、位于水平线l11’下方的模型区域为右肺下叶模型区域。上述连线l11’除与水平线l11’垂直外,同时还与基准平面P平行。Or, since the above-mentioned key point 1110 of the upper right leaf and key point 1220 of the lower right leaf are often not on the same vertical line, if a connecting line is directly drawn between the key point 1110 of the upper right leaf and the key point 1220 of the lower right leaf, the connection line made is often It is inclined, which may affect the accuracy of the subsequent division of the right lung bronchus model. In order to improve the accuracy of the subsequent region division of the right lung bronchus model, a point on the same vertical line as the other key point can be determined for one of the above-mentioned right upper lobe key points 1110 and right lower lobe key points 1220 , specifically, the ordinate of the determined point is the same as the ordinate of one key point among the above-mentioned upper right leaf key point 1110 and right lower leaf key point 1220, and its abscissa is the same as the above-mentioned upper right leaf key point 1110, right Another key point in the lower leaf key point 1220 has the same abscissa. Further, the subsequent region division of the right lung bronchus model can be realized according to the connection line between the determined point and another key point among the right upper lobe key point 1110 and the right lower lobe key point 1220 . Specifically, for example, referring to Fig. 4b, for the key point 1220 of the lower right leaf, a point 1220' can be determined, the ordinate of the point 1220' is the same as the ordinate of the key point 1220 of the lower right leaf, and the abscissa of the point 1220' is the same as that of the key point of the upper right leaf. The abscissa of point 1110 is the same; draw a connection line l1' between this point 1220' and the key point 1220 of the lower right leaf, and take the midpoint c1' of this connection line l1', and pass through the midpoint c1' to make a connection line with l1' vertical horizontal line l11', this horizontal line l11' will divide the right lung bronchus model area into upper and lower parts, specifically, the model area above the horizontal line l11' in the right lung bronchus model area is the right upper lobe model The region, the model region below the horizontal line l11' is the model region of the lower lobe of the right lung. The above connection line l11' is not only perpendicular to the horizontal line l11', but also parallel to the reference plane P.

优选地,本实施例优先选择图4b中示出的方式来实现对右肺支气管模型区域的划分。Preferably, in this embodiment, the method shown in FIG. 4b is preferentially selected to realize the division of the right lung bronchus model area.

有关进一步地对左肺支气管模型区域划分的实现,可参见上述所描述的对右肺支气管模型区域划分的具体实现相关内容,此处不再做具体赘述。For the further implementation of the area division of the left lung bronchus model, please refer to the specific implementation related content of the above-described right lung bronchus model area division, and details will not be repeated here.

基于上述内容,在一具体可实现方案中,上述10234“根据所述右肺支气管模型区域包含的位于所述右上叶支气管模型的右上叶关键点、位于所述右下叶支气管模型的右下叶关键点,将所述右肺支气管模型区域划分为右肺上叶模型区域、右肺下叶模型区域”,可采用如下步骤来实现:Based on the above, in a specific achievable solution, the above 10234 "According to the right upper lobe key point of the right upper lobe bronchus model contained in the right lung bronchus model area, the right lower lobe of the right lower lobe bronchus model The key point is to divide the right lung bronchi model area into the right upper lobe model area and the right lower lobe model area", which can be realized by the following steps:

S21、根据所述右上叶关键点和所述右下叶关键点,确定一条第一水平线;其中,所述第一水平线位于所述右上叶关键点和所述右下叶关键点之间、且平行于所述基准平面;S21. Determine a first horizontal line according to the key point of the upper right leaf and the key point of the lower right leaf; wherein, the first horizontal line is located between the key point of the upper right leaf and the key point of the lower right leaf, and parallel to said datum plane;

S22、将所述右肺支气管模型区域中位于所述第一水平线上方的模型区域,确定为所述右肺上叶模型区域;S22. Determine the model area above the first horizontal line in the right lung bronchus model area as the right upper lobe model area;

S23、将右肺支气管模型区域中位于所述第一水平线下方的模型区域,确定为所述右肺下叶模型区域。S23. Determine the model area below the first horizontal line in the right lung bronchi model area as the right lower lobe model area.

其中,上述S21“根据所述右上叶关键点和所述右下叶关键点,确定一条第一水平线”,具体可采用如下任一种方式中的步骤项来实现:Wherein, the above-mentioned S21 "determine a first horizontal line according to the key points of the upper right lobe and the key points of the lower right lobe" can be specifically implemented by using the steps in any of the following ways:

方式一、将过所述右上叶关键点和所述右下叶关键点的第一连线(如上述所述的连线l1)的中心点,且平行于所述基准平面的水平线(如上述所述的水平线l11)),确定为所述第一水平线。Mode 1, pass through the center point of the first connecting line (connection l1 as described above) between the key point of the upper right lobe and the key point of the lower right leaf, and parallel to the horizontal line of the reference plane (as described above The horizontal line l11)) is determined as the first horizontal line.

方式二、在所述右肺支气管模型区域中确定一个第二关键点(如上述所述的点1220’),其中,所述第二关键点的纵坐标与所述右上叶关键点、所述右下叶关键点中的一个关键点的纵坐标相同,所述第二关键点的横坐标与所述右上叶关键点、所述右下叶关键点中的另一个关键点相同;将过所述第二关键点与所述右上叶关键点、所述右下叶关键点中的另一个关键点的第二连线(如上述所述的连线l1’)的中心点,且与所述第二连线垂直的水平线(如上述所述的水平线l11’,此水平线l11’同时平行于所述基准平面),确定为所述第一水平线。Method 2: Determine a second key point (such as the above-mentioned point 1220') in the area of the right pulmonary bronchi model, wherein the ordinate of the second key point is the same as that of the right upper lobe key point, the The ordinate of a key point in the right lower leaf key point is the same, and the abscissa of the second key point is identical with another key point in the described right upper leaf key point and the described right lower leaf key point; The center point of the second connection line (such as the above-mentioned connection l1') between the second key point and the other key point in the right upper leaf key point and the right lower leaf key point, and the A horizontal line perpendicular to the second connecting line (such as the horizontal line l11' mentioned above, and this horizontal line l11' is parallel to the reference plane) is determined as the first horizontal line.

有关上述针对S21~S23中包含的对右肺支气管模型区域划分的两种实现方式的具体示例描述,可参见上文结合图4a、图4b所描述的相关内容。For the description of the above specific examples of the two implementations of the region division of the right lung bronchus model included in S21-S23, please refer to the relevant content described above in conjunction with FIG. 4a and FIG. 4b.

以及相应地,在一具体可实现方案中,上述10235、“根据所述左肺支气管模型区域包含的位于所述左上叶支气管模型的左上叶关键点、位于所述左下叶支气管模型的左下叶关键点,将所述左肺支气管模型区域划分为左肺上叶模型区域、左肺下叶模型区域”,可采用如下步骤来实现:And correspondingly, in a specific implementable solution, the above-mentioned 10235, "According to the left upper lobe key point located in the left upper lobe bronchus model and the left lower lobe key point located in the left lower lobe bronchus model contained in the left lung bronchus model area point, the left lung bronchi model area is divided into the left upper lobe model area and the left lower lobe model area", which can be achieved by the following steps:

S31、根据所述左上叶关键点和所述左下叶关键点,确定一条第二水平线;其中,所述第二水平线位于所述左上叶关键点和所述左下叶关键点之间、且平行于所述基准平面;S31. Determine a second horizontal line according to the key point of the upper left leaf and the key point of the lower left leaf; wherein, the second horizontal line is located between the key point of the upper left leaf and the key point of the lower left leaf and is parallel to said datum plane;

S32、将所述左肺支气管模型区域中位于所述第二水平线上方的模型区域,确定为所述左肺上叶模型区域;S32. Determine the model area above the second horizontal line in the left lung bronchi model area as the left upper lobe model area;

S33、将所述左肺支气管模型区域中位于所述第二水平线下方的模型区域,确定为所述左肺下叶模型区域。S33. Determine a model area below the second horizontal line in the left lung bronchi model area as the left lower lobe model area.

其中,上述S31“根据所述左上叶关键点和所述左下叶关键点,确定一条第二水平线”,具体可采用如下任一种方式中的步骤项来实现:Wherein, the above-mentioned S31 "determine a second horizontal line according to the key point of the upper left lobe and the key point of the lower left lobe" can be specifically implemented by using the steps in any of the following ways:

方式三、将过所述左上叶关键点和所述左下叶关键点的第三连线的中心点,且平行于所述基准面的水平线,确定为所述第二水平线;或者Method 3. The center point of the third line passing through the key point of the upper left leaf and the key point of the lower left leaf and parallel to the horizontal line of the reference plane is determined as the second horizontal line; or

方式四、在所述左肺支气管模型区域中确定一个第三关键点,其中,所述第三关键点的纵坐标与所述左上叶关键点、所述左下叶关键点中的一个关键点的纵坐标相同,所述第三关键点的横坐标与所述左上叶关键点、所述左下叶关键点中的另一个关键点相同;将过所述第三关键点与所述左上叶关键点、所述左下叶关键点中的另一个关键点的第四连线的中心点,且与所述第四连线垂直的水平线(该水平线同时也平行于所述基准平面),确定为所述第二水平线。Mode 4: Determine a third key point in the left pulmonary bronchi model area, wherein the ordinate of the third key point is the same as that of one of the key points in the left upper lobe key point and the left lower lobe key point. The ordinate is the same, the abscissa of the third key point is the same as the other key point in the left upper leaf key point and the left lower leaf key point; pass the third key point and the left upper leaf key point , the center point of the fourth connection line of another key point in the left lower leaf key point, and a horizontal line perpendicular to the fourth connection line (the horizontal line is also parallel to the reference plane), determined as the second horizontal line.

有关上述针对S31~S33中包含的对左肺支气管模型区域划分的两种实现方式的具体示例描述,可参见上文针对S21~S23中包含的对右肺支气管模型区域划分的两种实现方式的具体示例描述。For the specific example descriptions of the above two implementations of the region division of the left lung bronchus model included in S31-S33, please refer to the above two implementation methods of the division of the right lung bronchus model included in S21-S23 Specific example description.

在通过上述与步骤102相关的内容所得到的多个模型区域中,每个模型区域是包括至少一个所述气管模型的,如:参见图4a并结合图3a,主气管模型区域包括主气管模型1;右肺上叶模型区域包括右主支气管模型11、右上叶支气管模型111;右肺下叶模型区域包括右下叶支气管模型112;左肺上叶模型区域包括左主支气管模型12、左上叶支气管模型121;左肺下叶模型区域包括左下叶支气管模型122。以及,Among the multiple model areas obtained through the above-mentioned content related to step 102, each model area includes at least one trachea model, such as: referring to Figure 4a and in conjunction with Figure 3a, the main trachea model area includes the main trachea model 1. The model area of the upper lobe of the right lung includes the right main bronchus model 11 and the bronchus model of the right upper lobe 111; the model area of the lower lobe of the right lung includes the bronchus model 112 of the right lower lobe; A bronchial model 121 ; the left lower lobe model area includes a left lower lobe bronchus model 122 . as well as,

每个模型区域内包含至少一个第一关键点,具体地,设目标模型区域为多个模型区域中的一个,则位于目标模型区域包括的至少一个所述气管模型中至少部分气管上的第一关键点,即为该目标模型区域内包含的至少一个第一关键点。例如,结合图3a和图4b,若目标模型区域为右肺上叶模型区域,该右肺上叶模型区域包括右主支气管模型11和右上叶支气管模型111,则位于右上叶支气管模型111的右上叶关键点1110,便为右肺上叶模型区域内包含的至少一个第一关键点。Each model area contains at least one first key point. Specifically, if the target model area is one of a plurality of model areas, the first key point located on at least part of the trachea in at least one of the trachea models included in the target model area The key point is at least one first key point included in the target model area. For example, in combination with Fig. 3a and Fig. 4b, if the target model area is the right upper lobe model area, and the right upper lobe model area includes the right main bronchus model 11 and the right upper lobe bronchus model 111, it is located on the upper right of the right upper lobe bronchus model 111 The leaf key point 1110 is at least one first key point included in the model area of the upper lobe of the right lung.

基于上文所述的通过上述步骤S1221~S1224来获取多个第一关键点相关内容,优先地在本实施例中,每个模型区域内包含一个第一关键点。具体地,主气管模型区域内包含的第一关键点即为位于主气管模型上的主气管关键点;右肺上叶模型区域内包含的第一关键点即为位于所述右上叶支气管模型的右上叶关键点;右肺下叶模型区域内包含的第一关键点即为位于所述右下叶支气管模型的右下叶关键点;左肺上叶模型区域内包含的第一关键点即为位于所述左上叶支气管模型的左上叶关键点;左肺下叶模型区域内包含的第一关键点即为位于所述左下叶支气管模型的左下叶关键点。Based on the aforementioned steps S1221 - S1224 to acquire multiple first key point-related content, preferably in this embodiment, each model area contains a first key point. Specifically, the first key point contained in the main trachea model area is the main trachea key point located on the main trachea model; the first key point contained in the right upper lobe model area is the key point located on the right upper lobe bronchus model. Right upper lobe key point; the first key point contained in the right lower lobe model area is the right lower lobe key point located in the right lower lobe bronchus model; the first key point contained in the left upper lobe model area is The left upper lobe key point located in the left upper lobe bronchus model; the first key point included in the area of the left lower lobe model is the left lower lobe key point located in the left lower lobe bronchus model.

进一步地,基于上述针对气管树三维模型划分好的模型区域范围,以及各模型区域内包含的第一关键点、确定的基准点等,便可结合利用磁导航装置实时跟踪定位传感器在患者肺部气管空间(为实际物理空间)中的位置所获取到反映临床定位信号的点云数据(即为定位传感器在患者肺部气管空间中的位置数据),来确定定位传感器是否分别达到了上述气管树三维模型中各模型区域的第一关键点、基准点;若是,则认为完成了一次配准所需的数据采集。在上述使用定位传感器进行数据采集过程中,会结合采集到的点云数据,针对定位传感器在气管树三维模型中当前所述的目标模型区域进行配准进度的自动检测,当依次确定针对上述气管树三维模型中各模型区域的配准完成后,便判定完成了整个肺部气管配准。Furthermore, based on the above-mentioned range of model regions divided for the three-dimensional model of the trachea tree, as well as the first key points and determined reference points contained in each model region, it is possible to use the magnetic navigation device to track and position the sensor in real time in the patient's lungs. The point cloud data reflecting the clinical positioning signal (that is, the position data of the positioning sensor in the patient's lung tracheal space) obtained from the position in the tracheal space (actual physical space) is used to determine whether the positioning sensor reaches the above-mentioned tracheal tree respectively. The first key point and reference point of each model area in the three-dimensional model; if yes, it is considered that the data acquisition required for a registration is completed. In the above-mentioned data collection process using the positioning sensor, the collected point cloud data will be combined to automatically detect the registration progress of the target model area currently described in the 3D model of the trachea tree by the positioning sensor. After the registration of each model area in the three-dimensional tree model is completed, it is determined that the registration of the entire lung and trachea has been completed.

具体地,在本实施例中是在确定定位传感器达到基准点,才开始触发执行本实施例提供的配准进度检测方案的。例如:手术配准阶段,医师会操纵定位传感器从患者鼻孔或口腔进入肺部气管并移动,在此过程中,若根据定位传感器当前在肺部气管的定位位置,确定定位传感器在气管树三维模型中达到基准点A,此时会在如图10示出的手术配准界面上显示一提示信息如“定位传感器置于主隆突位,点击[确认]按钮开始配准”,响应于医师点击的提示信息中的“确认”按钮或界面上显示的“开始配准”按钮后,便开始触发自动执行本实施例提供的配准进度检测方案。其中,上述手术配准界面可通过如图1c中示出的控制设备511的显示屏来显示;医师点击如“确认”按钮后,可继续操纵定位传感器在患者的肺部气管包含的各气管移动,例如:可先操纵定位传感器执行回退动作,以在肺部气管中的主气管中移动;在确认遍历完主气管后,再操纵定位传感器依次遍历肺部气管的右主支气管、右下叶支气管等等。另外,在检测到医师点击了如“确认”按钮后,本实施例的执行主体会触发执行上述步骤103~106确定出定位传感器在气管树三维模型中当前所在的目标模型区域,实现针对目标模型区域进行配准进度的自动检测。有关配准进度自动检测的具体实现可参见下文相关内容。Specifically, in this embodiment, the registration progress detection solution provided by this embodiment is triggered to be executed after it is determined that the positioning sensor has reached the reference point. For example: in the stage of surgical registration, the doctor will manipulate the positioning sensor to enter the lung trachea from the patient's nostril or mouth and move it. When the reference point A is reached, a prompt message will be displayed on the surgical registration interface as shown in Fig. After the "Confirm" button in the prompt message or the "Start Registration" button displayed on the interface, the automatic execution of the registration progress detection solution provided by this embodiment will be triggered. Wherein, the above-mentioned surgical registration interface can be displayed through the display screen of the control device 511 as shown in Figure 1c; after the doctor clicks the "confirm" button, he can continue to manipulate the positioning sensor to move each trachea contained in the patient's lung trachea. , for example: the positioning sensor can be manipulated to perform a retreat action to move in the main trachea in the pulmonary trachea; after confirming that the main trachea has been traversed, the positioning sensor can be manipulated to traverse the right main bronchi and right lower lobe bronchus of the pulmonary trachea in sequence etc. In addition, after detecting that the doctor has clicked the "Confirm" button, the execution subject of this embodiment will trigger the execution of the above steps 103-106 to determine the target model area where the positioning sensor is currently located in the 3D model of the trachea tree, so as to realize the target model. Automatic detection of registration progress in regions. For the specific implementation of the automatic detection of the registration progress, please refer to the related content below.

有上内容即,本实施例提供的方法,还可包括如下步骤:With the above content, the method provided in this embodiment may also include the following steps:

检测到定位传感器在气管三维模型中达到所述基准点时,显示一提示信息以提示用户确认开始配准;When it is detected that the positioning sensor reaches the reference point in the three-dimensional model of the trachea, a prompt message is displayed to prompt the user to confirm the start of registration;

响应于用户针对所述提示信息触发的确认操作,触发执行上述步骤103。In response to the confirmation operation triggered by the user on the prompt information, the execution of the above step 103 is triggered.

上述103中,可以是由如图1a或图1b中示出的磁导航装置20根据获取到的定位传感器在肺部气管内游走时实时发送的定位信号,来确定定位传感器在肺部气管内当前的位置信息(即第一位置信息)并发送至本申请实施例的执行主体;其中,定位信号是定位传感器根据采集到的自身内线圈在变换磁场中产生的电流生成的。变换磁场由磁导航装置20控制设置在操作台10内的磁场发生器22工作而产生的,由于患者如仰卧于操作台10内时,患者肺部是在变换磁场下的,为此定位转感器在患者肺部气管内游走时,可以感应到变换磁场并产生相应的电流。In the above step 103, the magnetic navigation device 20 as shown in Fig. 1a or Fig. 1b may determine that the positioning sensor is in the lung trachea according to the acquired positioning signal sent by the positioning sensor in real time when it walks in the lung trachea. The current position information (namely the first position information) is sent to the executive body of the embodiment of the present application; wherein, the positioning signal is generated by the positioning sensor according to the collected current generated by its own internal coil in the transformed magnetic field. The changing magnetic field is generated by the magnetic navigation device 20 controlling the operation of the magnetic field generator 22 arranged in the operating table 10. Since the patient's lungs are under the changing magnetic field when the patient lies supine in the operating table 10, the positioning rotation sensor When the device travels in the trachea of the patient's lungs, it can sense the changing magnetic field and generate a corresponding current.

上述第一位置信息包括定位传感器在肺部内当前的位置和方向。The above-mentioned first position information includes the current position and direction of the positioning sensor in the lung.

上述104中,可以根据磁场空间与图像空间之间的空间坐标变换关系,来确定气管树三维模型中与第一位置信息对应的第二位置信息,该第二位置信息也即为定位传感器以虚拟标识的形式叠加在气管树三维模型中时对应的位置信息;根据该第二位置信息,便可确定定位传感器以虚拟标识的形式叠加在气管树三维模型中时,虚拟标识所在的目标模型区域,即可理解为定位传感器在气管树三维模型中所在的目标模型区域。In the above step 104, the second position information corresponding to the first position information in the three-dimensional model of the trachea tree can be determined according to the spatial coordinate transformation relationship between the magnetic field space and the image space, and the second position information is also the positioning sensor with a virtual The corresponding position information when the logo is superimposed on the three-dimensional model of the trachea tree; according to the second position information, when the positioning sensor is superimposed on the three-dimensional model of the trachea tree in the form of a virtual logo, the target model area where the virtual logo is located can be determined, That is, it can be understood as the target model area where the positioning sensor is located in the three-dimensional model of the tracheal tree.

上述105~106中,可利用相应的距离度量算法,根据第二位置信息及目标模型区域的至少一个第一关键点的第三位置信息,来计算定位传感器与目标模型区域内相应的第一关键点的第一距离(即定位传感器在气管树三维模型中当前的位置点与目标模型区域的第一关键点的距离),以此作为针对目标模型区域的配准进度的衡量标准。其中,上述所述的距离度量算法可以为但不局限于:欧式距离、余弦相似度、汉明距离、弗雷歇距离、豪斯多夫距离、曼哈顿距离等等。In the above 105-106, the corresponding distance measurement algorithm can be used to calculate the corresponding first key points in the positioning sensor and the target model area according to the second position information and the third position information of at least one first key point in the target model area. The first distance of the point (that is, the distance between the current position point of the positioning sensor in the three-dimensional model of the tracheal tree and the first key point of the target model area) is used as a measure of the registration progress of the target model area. Wherein, the distance measurement algorithm mentioned above may be, but not limited to: Euclidean distance, cosine similarity, Hamming distance, Frescher distance, Hausdorff distance, Manhattan distance and so on.

具体实施时,可以事先基于目标模型区域内包含的至少一个第一关键点的数量,将目标模型区域对应的配准进度划分为相应的数量个配准进度范围,后续在执行上述步骤105~106时,可以按与目标模型区域适配的查找方向,从目标模型区域包含的至少一个第一关键点中查找出目标第一关键点(如与定位传感器当前在目标模型区域中的位置距离最近的第一关键点),进而再计算出定位传感器与目标第一关键点的第一距离,以此根据该第一距离和目标第一关键点对应的配准进度范围,来确定针对该目标模型区域的配准进度。其中,若目标模型区域为多个模型区域中的主气管模型区域,则查找方向可为与主气管方向(如图4a箭头V所指示的方向)相反的方向;若目标模型区域为多个模型区域中除主气管模型区域之外的其他模型区域,则查找方向可为目标模型区域包含的至少一个气管模型的层级递增方向。由此即,上述105“根据所述第二位置信息,计算所述定位传感器与所述目标模型区域包含的所述至少一个第一关键点之间的第一距离”的一种可实现方案,可具体包括:During specific implementation, based on the number of at least one first key point contained in the target model area, the registration progress corresponding to the target model area can be divided into a corresponding number of registration progress ranges, and then the above steps 105-106 are performed , the first key point of the target (such as the one with the closest distance to the current position of the positioning sensor in the target model area) can be found from at least one first key point contained in the target model area according to the search direction adapted to the target model area. first key point), and then calculate the first distance between the positioning sensor and the first key point of the target, so as to determine the target model area according to the first distance and the registration progress range corresponding to the first key point of the target registration progress. Wherein, if the target model area is the main trachea model area in multiple model areas, the search direction can be the direction opposite to the main trachea direction (as indicated by the arrow V in Figure 4a); if the target model area is multiple models For other model regions in the region except the main trachea model region, the search direction may be the layer-increasing direction of at least one trachea model included in the target model region. That is to say, the above-mentioned 105 "according to the second position information, calculate the first distance between the positioning sensor and the at least one first key point contained in the target model area" can be implemented, Can specifically include:

确定所述目标模型区域对应的查找方向;determining the search direction corresponding to the target model area;

按照所述查找方向,从所述目标模型区域内包含的所述至少一个第一关键点中查找出距离所述定位传感器最近的目标第一关键点;According to the search direction, find the first key point of the target closest to the positioning sensor from the at least one first key point included in the target model area;

根据所述第二位置信息,计算所述定位传感器与所述目标第一关键点之间的第一距离;calculating a first distance between the positioning sensor and the first key point of the target according to the second position information;

以及相应地,上述106“根据所述第一距离,确定针对所述目标模型区域的配准进度”,可具体包括:And correspondingly, the above 106 "determine the registration progress for the target model region according to the first distance" may specifically include:

获取所述目标第一关键点对应的配准进度范围;Obtain the registration progress range corresponding to the first key point of the target;

根据所述定位传感器与所述目标第一关键点之间的第一距离、以及所述目标第一关键点对应的配准进度范围,确定针对所述目标模型区域的配准进度。The registration progress for the target model area is determined according to the first distance between the positioning sensor and the target first key point and the registration progress range corresponding to the target first key point.

例如,基于上文相关内容,在实施例中优选每个模型区域包含有一个第一关键点的情况下,即目标模型区域内包含有一个第一关键点,则可将目标模型区域对应的配准进度直接划分为一个配准进度范围:0~100%。若定位传感器与该目标模型区域包含的一个第一关键点之间的第一距离越大,则表征针对目标模型区域的配准进度越小,在本实施例中,在第一距离大于预设距离阈值的情况下,针对目标模型区域的配准进度统一设置为0。上述预设距离阈值可根据实际情况灵活设定,此处不作限定。而若第一距离越小,则表征针对目标模型区域的配准进度越大;上述配准进度最大为100%,即说明定位传感器达到目标模型区域的第一关键点,不过这并不表征针对目标模型区域已完成了配准,为提高判断针对目标模型区域的配准是否完成的精准度,本实施例还会结合配准数据集中的数据落入目标模型区域对应的判定区域的数量来进行判断;其中,判断区域为目标模型区域的第一关键点为中心点确定的一区域。有关对判定区域的详述,将会在下文相关内容中进行介绍说明。For example, based on the relevant content above, in the embodiment, it is preferred that each model area contains a first key point, that is, the target model area contains a first key point, then the configuration corresponding to the target model area can be The quasi-progress is directly divided into a registration progress range: 0-100%. If the first distance between the positioning sensor and a first key point included in the target model area is larger, it indicates that the registration progress of the target model area is smaller. In this embodiment, when the first distance is greater than the preset In the case of the distance threshold, the registration progress for the target model area is uniformly set to 0. The foregoing preset distance threshold can be flexibly set according to actual conditions, and is not limited here. And if the first distance is smaller, it means that the registration progress of the target model area is greater; the above-mentioned registration progress is at most 100%, which means that the positioning sensor reaches the first key point of the target model area, but this does not mean that the registration progress for the target model area is greater. The target model area has been registered. In order to improve the accuracy of judging whether the registration of the target model area is completed, this embodiment will also combine the number of data in the registration data set that falls into the determination area corresponding to the target model area. Judgment; Wherein, the judgment area is an area determined by the first key point of the target model area as the center point. The detailed description of the judgment area will be introduced in the relevant content below.

再例如,若目标模型区域内包含有两个第一关键点,则可以事先将该目标模型区域对应的配准进度划分成两个配准进度范围,如结合图3b和图4a,设目标模型区域为主气管模型区域,该主气管模型区域内包含的两个第一关键点:主气管模型关键点10、主气管模型关键点10’,则可将主气管模型区域对应的配准进度划分为如下两个配准进度范围:0~50%(包含50%)、50%(不包含50%)~100%,其中,主气管模型关键点10’对应的配准进度范围为0~50%,主气管模型关键10对应的配准进度范围为50%~100%。若定位传感器当前在主气管模型区域中所处位置在基准点A和主气管模型关键10’之间,则此时按照与主气管模型区域适配的查找方向(与主气管方向相反),可从主气管模型区域包含的两个第一关键点中查找出主气管模型关键点10’为目标第一关键点,即主气管模型关键点10’是与定位传感器当前在主气管模型区域中的位置距离最近的目标第一关键点,进而可定位传感器与该主气管模型关键点10’之间的第一距离D’、以及主气管模型关键点10’对应的配准进度范围来确定针对该目标模型区域的配准进度。其中,第一距离D’越大,配准进度越小,在第一距离D’大于预设距离阈值的情况下,将配准进度统一设置为0;第一距离D’越小,配准进度越大,配准进度最大为50%。进一步地,后续若定位传感器移动至主气管模型区域中位于主气管模型关键10’和主气管模型关键10之间的一位置处,则主气管模型关键10为目标第一关键点,根据定位传感器与该主气管模型关键点10之间的第一距离D、以及主气管模型关键点10对应的配准进度范围50%~100%,可针对该目标模型区域继续确定配准进度,其中,继续确定出的配准进度最大为100%,即说明定位传感器达到主气管模型区域内包含的两个第一关键点中距离基准点最远的第一关键点(即主气管模型关键10),不过这并不表征针对主气管模型区域已完成了配准,为提高判断针对主气管模型区域的配准是否完成的精准度,本实施例还会结合配准数据集中的数据落入主气管模型区域对应的判定区域的数量来进行判断;其中,判断区域是以主气管模型关键10为中心点确定的一区域。同样地,有关此判定区域的确定,可参见下文相关内容。For another example, if there are two first key points in the target model area, the registration progress corresponding to the target model area can be divided into two registration progress ranges in advance, such as combining Figure 3b and Figure 4a, set the target model The region is the main trachea model area, and the two first key points contained in the main trachea model area: the main trachea model key point 10 and the main trachea model key point 10', the registration progress corresponding to the main trachea model area can be divided into The following two registration progress ranges: 0-50% (including 50%), 50% (excluding 50%)-100%, wherein, the registration progress range corresponding to the key point 10' of the main trachea model is 0-50 %, the registration progress corresponding to key 10 of the main trachea model ranges from 50% to 100%. If the current position of the positioning sensor in the main trachea model area is between the reference point A and the key 10' of the main trachea model, then at this time, according to the search direction adapted to the main trachea model area (opposite to the direction of the main trachea), you can Find the key point 10' of the main trachea model from the two first key points contained in the main trachea model area as the first key point of the target, that is, the key point 10' of the main trachea model is the same as the positioning sensor currently in the main trachea model area The first key point of the target with the closest position, and then the first distance D' between the sensor and the key point 10' of the main trachea model, and the registration progress range corresponding to the key point 10' of the main trachea model can be determined to determine the Registration progress for the target model region. Wherein, the larger the first distance D', the smaller the registration progress. When the first distance D' is greater than the preset distance threshold, the registration progress is uniformly set to 0; the smaller the first distance D', the smaller the registration progress. The greater the progress, the registration progress is at most 50%. Further, if the positioning sensor subsequently moves to a position between the main trachea model key 10' and the main trachea model key 10 in the main trachea model area, then the main trachea model key 10 is the first key point of the target, according to the positioning sensor The first distance D between the key point 10 of the main trachea model and the registration progress range corresponding to the key point 10 of the main trachea model is 50% to 100%, and the registration progress can be continuously determined for the target model area, wherein, continue The determined registration progress is at most 100%, which means that the positioning sensor has reached the first key point farthest from the reference point among the two first key points contained in the main trachea model area (i.e., the main trachea model key 10). This does not mean that the registration for the main trachea model area has been completed. In order to improve the accuracy of judging whether the registration for the main trachea model area is completed, this embodiment will also combine the data in the registration data set to fall into the main trachea model area. The judgment is made according to the number of corresponding judgment areas; wherein, the judgment area is an area determined by the key 10 of the main airway model as the center point. Similarly, for the determination of this judgment area, please refer to the relevant content below.

本实施例中,为了更进一步地提高配准进度计算的精准性,会针对目标模型区域会执行错误路径判断,具体地也就是说:判断定位传感器是否按照为其针对目标模型区域规划出的规划路径在目标模型区域中进行移动;若是,则认为针对目标模型区域的配准进入正确路径,便会进行配准进度的计算,此外还会将定位传感器在目标模型区域内的移动路径上的路径点集添加至配准数据集,以为判断是否针对目标模型区域完成配准提供数据支持;若否,则认为针对目标模型区域的配准没有进入正确路径,便不再进行配准进度的计算,也不会将定位传感器在目标模型区域内的移动路径上的路径点集添加至配准数据集。具体地,In this embodiment, in order to further improve the accuracy of the registration progress calculation, the wrong path judgment will be performed for the target model area, specifically: to determine whether the positioning sensor follows the plan planned for the target model area The path moves in the target model area; if it is, it is considered that the registration for the target model area enters the correct path, and the registration progress will be calculated. In addition, the path of the positioning sensor on the moving path in the target model area will be calculated. The point set is added to the registration data set to provide data support for judging whether the registration of the target model area is completed; if not, it is considered that the registration of the target model area has not entered the correct path, and the calculation of the registration progress is no longer performed. Nor is the set of waypoints added to the registration dataset along the path of movement of the positioning sensor within the region of the target model. specifically,

在本实施例中每个模型区域包含一个第一关键点,由此即目标模型区域内包含有一个第一关键点的情况下,则上述规划路径直接是指规划出的从基准点到目标模型区域的第一关键点之间的最短路径,其可以根据气管树三维模型的中心线信息进行规划得到;移动路径是指定位传感器在气管树三维模型中从基准点移动至在目标模型区域的当前位置最短的移动路径。由上,即上述每个模型区域包含一个第一关键点时,本申请实施例提供的所述方法还可包括如下步骤:In this embodiment, each model area contains a first key point, so that the target model area contains a first key point, then the above-mentioned planning path directly refers to the planned path from the reference point to the target model The shortest path between the first key points of the region, which can be obtained by planning according to the centerline information of the three-dimensional model of the trachea tree; the moving path refers to the movement of the positioning sensor from the reference point to the current position in the target model area in the three-dimensional model of the trachea tree The shortest path of movement. From the above, that is, when each of the above-mentioned model regions contains a first key point, the method provided in the embodiment of the present application may further include the following steps:

107、获取针对所述目标模型区域执行路径规划得到的规划路径;其中,所述规划路径为根据所述气管树三维模型的中心线信息,规划出的所述基准点和所述目标模型区域内包含的一个第一关键点之间的最短路径;107. Obtain a planned path obtained by executing path planning for the target model area; wherein, the planned path is the reference point planned according to the centerline information of the three-dimensional model of the trachea tree and the target model area Contains the shortest path between a first key point;

108、确定所述定位传感器在所述气管树三维模型中从所述基准点移动至当前在所述目标模型区域中位置最短的移动路径;108. Determine the shortest moving path of the positioning sensor moving from the reference point to the current position in the target model area in the three-dimensional model of the tracheal tree;

109、将所述移动路径与所述规划路径进行比对,以确定所述定位传感器是否按照所述规划路径移动;109. Compare the moving path with the planned path to determine whether the positioning sensor moves according to the planned path;

1010、按照所述规划路径移动时,触发上述步骤105中的计算步骤,并将所述移动路径上的所有路径点添加至配准数据集中。1010. When moving according to the planned path, trigger the calculation step in step 105 above, and add all waypoints on the moving path to the registration data set.

上述107中,在执行路径规划时,可以将气管树三维模型的中心线信息包含的中心线上所有点,作为气管树三维模型中的路径点集;然后,根据提取到的中心线信息中包含的中心线上所有点的坐标,利用相应的路径搜索算法,以基准点作为初始路径点进行前向路径搜索,以此实现搜索出基准点与各模型区域的第一关键点之间的最短路径,作为规划路径。In the above 107, when performing path planning, all points on the centerline contained in the centerline information of the three-dimensional model of the trachea tree can be used as a set of path points in the three-dimensional model of the airway tree; then, according to the extracted centerline information contained in The coordinates of all points on the center line of the center line, use the corresponding path search algorithm, and use the reference point as the initial path point to perform forward path search, so as to realize the search for the shortest path between the reference point and the first key point of each model area , as the planning path.

例如,参见图4b,以规划基准点A和右肺上叶模型区域的第一关键点(右上叶支气管模型的右上叶关键点1110)之间的路径为例,假设执行路径规划时所利用的路径搜索算法为基于坐标的路径搜索算法(如CPS算法),则可以根据提取到的气管树三维模型的中心线信息中包含的中心线上所有点的坐标,以基准点作为第一个路径点(即初始路劲点),沿着前向搜索方向(具体为气管模型层级增加的方向,如图中虚拟箭头所指示的方向),确定中心线上位于第一路径点右边、且与第一路径点相邻的至少一个第一相邻点;然后,分别计算第一路径点与各第一相邻点的距离(如欧式距离),并选取对应距离最短的第一相邻点作为第二个路径点,并将第二个路径点添加至右肺上叶模型区域对应的规划路径点集中;接着,继续沿着向下搜索方向,确定中心线上与第二路径点相邻的至少一个第二相邻点,并选出至少一个第二相邻点中与第二路径点距离最短的第二相邻点为第三路径点,并将第三路径点添加至右肺上叶模型区域对应的规划路径点集中;以此类推,直至搜索到右肺上叶模型区域的第一关键点(即右上叶支气管模型的右上叶关键点1110),便可结束针对右肺上叶模型区域执行路径搜索,并可以根据右肺上叶模型区域对应的规划路径点集生成相应的规划路径,该规划路径可以叠加显示在气管树三维模型中,以为医生控制定位传感器在肺部气管游走提供引导。For example, referring to Fig. 4b, taking the path between the planning reference point A and the first key point (the right upper lobe key point 1110 of the right upper lobe bronchus model) of the right upper lobe model region as an example, it is assumed that the path planning is performed using The path search algorithm is a coordinate-based path search algorithm (such as the CPS algorithm), and then the coordinates of all points on the center line contained in the center line information of the extracted 3D model of the trachea tree can be used as the first path point with the reference point (that is, the initial road strength point), along the forward search direction (specifically, the direction of increasing the level of the trachea model, as shown by the virtual arrow in the figure Indicated direction), determine at least one first adjacent point on the center line that is located on the right side of the first path point and adjacent to the first path point; then, respectively calculate the distance between the first path point and each first adjacent point distance (such as Euclidean distance), and select the first adjacent point with the shortest corresponding distance as the second path point, and add the second path point to the planning path point set corresponding to the model area of the upper lobe of the right lung; then, continue Along the downward search direction, determine at least one second adjacent point adjacent to the second path point on the center line, and select the second adjacent point with the shortest distance from the second path point among the at least one second adjacent points Point is the third path point, and the third path point is added to the planning path point set corresponding to the right upper lobe model area; and so on, until the first key point of the right upper lobe model area is searched (that is, the The right upper lobe key point 1110 of the bronchial model), the execution path search for the right upper lobe model area can be ended, and the corresponding planning path can be generated according to the planning path point set corresponding to the right upper lobe model area, and the planning path can be superimposed Displayed in the 3D model of the tracheal tree to provide guidance for the doctor to control the positioning of the sensor in the trachea of the lungs.

同理,也可以规划出的基准点和其它模型区域的第一关键点之间的最短路径作为相应的规划路径。这里需要补充说明的是,在针对主气管模型区域执行相应的路径规划时,是从基准点开始,沿后向搜索方向进行路径搜索。其中,后向搜索方向具体是指与箭头V所指示的方向(为主气管方向,在肺部气管中该主气管方向由咽喉一端指向主隆突一端)相反的方向。Similarly, the shortest path between the planned reference point and the first key points of other model regions can also be used as the corresponding planning path. What needs to be added here is that when executing the corresponding path planning for the main trachea model area, the path search is performed along the backward search direction starting from the reference point. Wherein, the backward search direction specifically refers to the direction opposite to the direction indicated by the arrow V (the direction of the main trachea, which is directed from the throat end to the main carina in the pulmonary trachea).

上述108中,可以根据定位传感器在肺部气管空间内移动的真实轨迹数据,来确定定位传感器在气管树三维模型中从基准点移动至在目标模型区域当前位置的虚拟轨迹数据,从而通过对该虚拟轨迹数据进行处理,以此来根据处理结果得到定位传感器在气管树三维模型中从基准点移动至当前在目标模型区域中位置最短的移动路径;其中,上述所述的处理可包括但不限于删除因定位传感器执行回退动作产生的重复轨迹点。基于此,在一种可实现的技术方案中,上述108“确定所述定位传感器在气管树三维模型中从所述基准点移动至当前在所述目标模型区域中位置最短的移动路径”,可具体包括:In the above 108, the virtual trajectory data of the positioning sensor moving from the reference point to the current position in the target model area in the three-dimensional model of the trachea tree can be determined according to the real trajectory data of the positioning sensor moving in the lung trachea space, so that by The virtual trajectory data is processed, so as to obtain the shortest movement path where the positioning sensor moves from the reference point to the current position in the target model area in the three-dimensional model of the tracheal tree according to the processing results; wherein, the above-mentioned processing may include but not limited to Delete the duplicate track points caused by the positioning sensor performing the retraction action. Based on this, in an achievable technical solution, the above-mentioned 108 "determine the shortest moving path of the positioning sensor moving from the reference point to the current position in the target model area in the three-dimensional model of the tracheal tree" can be Specifically include:

1081、获取所述定位传感器在所述肺部气管内移动的第一轨迹数据(为真实轨迹);1081. Acquire first trajectory data (real trajectory) of the positioning sensor moving in the lung trachea;

1082、根据所述第一轨迹数据,确定所述定位传感器在所述气管树三维模型中从所述基准点移动至在所述目标模型区域中当前位置的第二轨迹数据(为虚拟轨迹);1082. According to the first trajectory data, determine second trajectory data (a virtual trajectory) in which the positioning sensor moves from the reference point to the current position in the target model area in the three-dimensional model of the tracheal tree;

1083、确定所述第二轨迹数据中的第一类轨迹点和第二类轨迹点;其中,所述第一类轨迹点为反映所述定位传感器执行回退动作的轨迹点,所述第二类轨迹点是与所述第一类轨迹点相对应的的满足删除规则并反映所述定位传感器执行前进动作的轨迹点;1083. Determine the first type of trajectory point and the second type of trajectory point in the second trajectory data; wherein, the first type of trajectory point is a trajectory point that reflects the retraction action performed by the positioning sensor, and the second type of trajectory point The class track point is a track point corresponding to the first class track point that satisfies the deletion rule and reflects that the positioning sensor performs a forward movement;

1084、将所述第二轨迹数据中的所述第一类轨迹点和所述第二类轨迹点进行删除,得到删除后的第二轨迹数据;1084. Delete the first type of track points and the second type of track points in the second track data to obtain deleted second track data;

1085、根据删除后的第二轨迹数据,确定所述移动路径。1085. Determine the movement path according to the deleted second trajectory data.

具体实施时,上述第一轨迹数据(为真实轨迹)是根据定位传感器实时发送的点云数据(为其实时生成的定位信号的点云数据)获取到的。获取到第一轨迹数据之后,可以将上述第一轨迹数据进行空间转换,以得到相应地定位传感器在气管树三维模型中与第一轨迹数据对应的第三轨迹数据(为虚拟轨迹),从而再从第三轨迹数据中提取出定位传感器在气管树三维模型中从基准点移动至当前在目标模型区域中位置的第二轨迹数据。之后,可以分析第二轨迹数据中时间序列上前后的两个轨迹点是否相对于基准点的距离增加,若是,则表征该两个轨迹点对应于定位传感器执行前进动作,该两个轨迹点为回退轨迹点;若否,则表征该两个轨迹点对应于定位传感器执行回退动作,该两个轨迹点为前进轨迹点。定位传感器出现了执行前进动作的情况下,便认为第二轨迹数据中出现了重复轨迹点,为此会对第二轨迹数据中用于反映定位传感器执行回退动作的回退轨迹点集进行删除,同时也会将第二轨迹数据中用于反映定位传感器执行回前进动作的前进轨迹点集中与回退轨迹点集相对应的点进行删除,具体地指的是:将时间序列上与回退轨迹点集的时间序列最接近、但早于回退轨迹点集的时间序列、且对应距离范围与回退轨迹点集对应的距离范围相同的前进轨迹点集中的点进行删除。通过上述删除操作,将第二轨迹数据中的重复轨迹点进行删除后,基于删除后的第二轨迹数据中包含的轨迹点,便可得到定位传感器在气管树三维模型中从基准点移动至当前在目标模型区域中位置最短的移动路径。During specific implementation, the above-mentioned first trajectory data (which is the real trajectory) is obtained according to the point cloud data sent by the positioning sensor in real time (the point cloud data of the positioning signal generated by it in real time). After the first trajectory data is obtained, the above-mentioned first trajectory data can be spatially converted to obtain the third trajectory data corresponding to the first trajectory data (virtual trajectory) corresponding to the positioning sensor in the three-dimensional model of the tracheal tree, so as to further Second trajectory data in which the positioning sensor moves from the reference point to the current position in the target model area in the three-dimensional model of the tracheal tree is extracted from the third trajectory data. After that, it can be analyzed whether the distance between the two trajectory points in the time series of the second trajectory data increases relative to the reference point, and if so, it indicates that the two trajectory points correspond to the positioning sensor to perform the forward movement, and the two trajectory points are If not, it indicates that the two track points correspond to the positioning sensor performing a retreat action, and the two track points are forward track points. When the positioning sensor performs a forward movement, it is considered that there are repeated trajectory points in the second trajectory data. Therefore, the set of retraction trajectory points used to reflect the backward movement of the positioning sensor in the second trajectory data will be deleted. , at the same time, the points corresponding to the set of forward track points in the second track data used to reflect the forward movement of the positioning sensor and the set of retreat track points will be deleted. The time series of the track point set is the closest, but earlier than the time series of the retreat track point set, and the points in the forward track point set whose corresponding distance range is the same as the distance range corresponding to the retreat track point set are deleted. Through the above deletion operation, after deleting the repeated trajectory points in the second trajectory data, based on the trajectory points contained in the deleted second trajectory data, it can be obtained that the positioning sensor moves from the reference point to the current position in the three-dimensional model of the tracheal tree. The shortest path of movement within the target model area.

基于上述,在一种可实现技术方案中,上述1083中“确定所述第二轨迹数据中的第一类轨迹点”,可具体包括:Based on the above, in an achievable technical solution, "determining the first type of trajectory points in the second trajectory data" in the above 1083 may specifically include:

10831、根据所述第二轨迹数据中包含的多个轨迹点的时间戳,确定时间戳相邻的多对轨迹点;10831. According to the time stamps of multiple track points included in the second track data, determine multiple pairs of track points with adjacent time stamps;

10832、计算各对轨迹点包含的第一轨迹点、第二轨迹点分别相对于所述基准点的第二距离、第三距离;其中,所述第二轨迹点的时间戳晚于第一轨迹点的时间戳;10832. Calculate the second distance and the third distance of the first trajectory point and the second trajectory point included in each pair of trajectory points relative to the reference point; wherein, the timestamp of the second trajectory point is later than the first trajectory the timestamp of the point;

10833、根据所述第二距离及所述第三距离,判断各对轨迹点是否为第一类轨迹点。10833. According to the second distance and the third distance, determine whether each pair of track points is the first type of track point.

上述中,可以采用相应的距离度量算法来计算各对轨迹点包含的第一轨迹点、第二轨迹点分别相对于所述基准点的第二距离、第三距离。有关可采用的距离度量算法,可参见上文对距离度量算法的相关描述,此处不作赘述。In the above, a corresponding distance measurement algorithm may be used to calculate the second distance and the third distance of the first trajectory point and the second trajectory point contained in each pair of trajectory points relative to the reference point, respectively. For the applicable distance measurement algorithm, refer to the relevant description of the distance measurement algorithm above, which will not be repeated here.

若计算出的一对轨迹点中第二轨迹点与基准点的第三距离小于第一轨迹点与基准点的第二距离,则可判定该对轨迹点为第一类轨迹点;反之,可判定该对轨迹点不是第一类轨迹点。If the third distance between the second track point and the reference point in the calculated pair of track points is less than the second distance between the first track point and the reference point, then it can be determined that the pair of track points is the first type of track point; otherwise, it can be It is determined that the pair of track points are not the first type of track points.

即,目标对轨迹点为多对轨迹点中的一对,则上述10833“根据所述第二距离及所述第三距离,判断各对轨迹点是否我第一类轨迹点”,可采用如下具体步骤来实现:That is, the target pair of track points is one of many pairs of track points, then the above-mentioned 10833 "according to the second distance and the third distance, judge whether each pair of track points is my first type of track point", which can be used as follows Concrete steps to achieve:

若目标对轨迹点中第二轨迹点与基准点的第三距离小于第一轨迹点与基准点的第二距离,则所述目标对轨迹点是第一类轨迹点;If the third distance between the second track point and the reference point in the target pair track point is less than the second distance between the first track point and the reference point, then the target pair track point is a first type track point;

若目标对轨迹点中第二轨迹点与基准点的第三距离大于或等于第一轨迹点与基准点的第二距离,则所述目标对轨迹点不是第一类轨迹点。If the third distance between the second trajectory point and the reference point among the target pair trajectory points is greater than or equal to the second distance between the first trajectory point and the reference point, then the target pair trajectory point is not the first type of trajectory point.

在确定出第一类轨迹点的基础上,也就可以结合相应的删除规则,从第二轨迹数据中包含的除第一类轨迹点之外的剩余轨迹点中确定出与第一类轨迹点对应的、且满足删除规则要求的轨迹点。所述的满足删除规则包括:时间戳早于第一类轨迹点的时间戳;与基准点的距离大于或等于第一类轨迹点中时间戳最晚的轨迹点与基准点的距离、且小于或等于第一类轨迹点中时间戳最早的轨迹点与基准点的距离。On the basis of determining the first type of trajectory points, it can also be combined with the corresponding deletion rules to determine the first type of trajectory points from the remaining trajectory points except the first type of trajectory points contained in the second trajectory data. Corresponding track points that meet the requirements of the deletion rule. The satisfying deletion rule includes: the timestamp is earlier than the timestamp of the first type of track point; the distance from the reference point is greater than or equal to the distance between the track point with the latest time stamp and the reference point in the first type of track point, and less than Or equal to the distance between the track point with the earliest time stamp and the reference point among the track points of the first type.

为便于理解,下面结合图5针对上述1083举一示例进行说明,For ease of understanding, an example of the above-mentioned 1083 will be described below in conjunction with FIG. 5 ,

如参见图5示出的第二轨迹数据L,针对该第二轨迹数据L通过执行上述步骤10831~10833确定轨迹线段l2上的所有轨迹点为第一类轨迹点,且轨迹线段l2上的时间戳最早的第一类轨迹点为轨迹点g2、时间戳最晚的第一类轨迹点为轨迹点g1,其中,轨迹点g1与基准点A的距离为d1、轨迹点g2与基准点的距离为d2(大于d1,图中未示出),即第一类轨迹点与基准点的距离范围为[d1,d2]。则,首选,根据第二轨迹点数据L中各轨迹点的时间戳,可以确定出在基准点A与轨迹点g2之间轨迹线段上的轨迹点的时间戳均早于第一类轨迹点的时间戳。进一步地,可以计算在基准点A与轨迹点g2之间轨迹线段上的所有轨迹点各自与基准点的距离d3。然后,从基准点A与轨迹点g2之间轨迹线段上的所有轨迹点中,筛选出对应距离d3大于或等于距离d1、且小于或等于距离d2的轨迹点,确定为第二类轨迹点,如在轨迹点g2和轨迹点g3之间轨迹线段l3上的所有轨迹点便为第二类轨迹点。As referring to the second trajectory data L shown in FIG. 5 , for the second trajectory data L, it is determined that all the trajectory points on the trajectory line segment l2 are the first type of trajectory points by performing the above steps 10831 to 10833, and the time on the trajectory line segment l2 The first type of track point with the earliest stamp is track point g2, and the first type of track point with the latest time stamp is track point g1, where the distance between track point g1 and reference point A is d1, and the distance between track point g2 and the reference point is d2 (greater than d1, not shown in the figure), that is, the distance range between the first type of trajectory point and the reference point is [d1, d2]. Then, firstly, according to the time stamps of each track point in the second track point data L, it can be determined that the time stamps of the track points on the track line segment between the reference point A and the track point g2 are all earlier than the time stamps of the first type of track points timestamp. Further, the distance d3 from the reference point to all the trajectory points on the trajectory line segment between the reference point A and the trajectory point g2 can be calculated. Then, from all the track points on the track line segment between the reference point A and the track point g2, filter out the track points whose corresponding distance d3 is greater than or equal to the distance d1 and less than or equal to the distance d2, and determine it as the second type of track point, For example, all the trajectory points on the trajectory line segment l3 between the trajectory point g2 and the trajectory point g3 are the second type of trajectory points.

后续在将确定出的第一类轨迹点和第二类轨迹点从第二轨迹数据L中删除后,在根据删除后的第二轨迹数据确定移动路径过程中,可以将删除后的第二轨迹数据L中相邻于轨迹点g3的轨迹点与相邻于轨迹点g1的轨迹点连接。Subsequently, after deleting the determined first-type trajectory points and second-type trajectory points from the second trajectory data L, in the process of determining the moving path according to the deleted second trajectory data, the deleted second trajectory can be The trajectory point adjacent to the trajectory point g3 in the data L is connected to the trajectory point adjacent to the trajectory point g1.

上述109~1010中,可以采用但不局限于动态时间规整(Dymamic Time Warping,DTW)方法,来将通过上述步骤107~108针对目标模型区域获取到的规划路径、以及确定的移动路径进行比对,以比较规划路径与移动路径的相似度;若相似度大于或等于预设阈值,则判定为传感器是按照规划路径移动的,换句话也可以说,视为针对目标模型区域的配准进入正确路径),从而触发针对目标模型区域配准进度的计算,并移动路径上的所有路径点添加至配准数据集。若相似度小于预设阈值,则判定为定位传感器没有按照轨迹路径移动,换句话也可以说,视为针对目标模型区域的配准没有进入正确路径,从而触发针对目标模型区域停止计算配准进度,此外,移动路径上的所有路径点也不加入配准数据集。In the above-mentioned 109-1010, but not limited to, the method of Dynamic Time Warping (DTW) can be used to compare the planned path obtained for the target model area through the above-mentioned steps 107-108 with the determined moving path , to compare the similarity between the planned path and the moving path; if the similarity is greater than or equal to the preset threshold, it is determined that the sensor is moving according to the planned path, in other words, it can be regarded as a registration entry for the target model area correct path), which triggers the calculation of the registration progress for the target model region, and adds all waypoints on the moving path to the registration dataset. If the similarity is less than the preset threshold, it is determined that the positioning sensor has not moved according to the trajectory path. In other words, it can be said that the registration for the target model area has not entered the correct path, thereby triggering the stop calculation of the registration for the target model area In addition, all waypoints on the moving path are not included in the registration dataset.

利用上述的配准数据集,可以用来判断针对目标模型区域的配置是否完成,以进一步地提高判断针对目标模型区域的配准是否完成的精准度。具体地,本实施例提供的所述方法还可包括如下步骤:The aforementioned registration data set can be used to judge whether the configuration of the target model region is completed, so as to further improve the accuracy of judging whether the registration of the target model region is completed. Specifically, the method provided in this embodiment may also include the following steps:

1011、以所述目标模型区域包含的一个第一关键点为中心点,确定判定区域;1011. Using a first key point included in the target model area as the center point, determine a judgment area;

1012、确定所述配准数据集中包含的路径点在所述判定区域内的数量;1012. Determine the number of waypoints included in the registration data set within the determination area;

1013、根据所述数量,确定是否完成针对所述目标模型区域的配准。1013. Determine whether to complete the registration of the target model region according to the quantity.

上述1011中,判定区域可以是以目标模型区域包含的一个第一关键点为圆心点、半径为R的圆形区域;当然,判定区域也可以是其它形状的区域,比如,矩形、正方形、五边形、六边形等,此处不作限定,只要保证判定区域是以目标模型区域的第一关键点为中心点即可。本实施例优选判定区域为圆心区域。In the above step 1011, the judgment area can be a circular area with a radius of R and a first key point contained in the target model area as the center point; of course, the judgment area can also be an area of other shapes, such as rectangle, square, five Polygons, hexagons, etc. are not limited here, as long as the determination area is centered on the first key point of the target model area. In this embodiment, it is preferable that the determination area is a circle center area.

上述1011~1013中,在判定区域的形状为以目标模型区域的第一关键点为圆心点、半径为R的圆形区域的情况下,可以统计配准数据集中与目标模型区域的第一关键点间的距离小于或等于R的路径点的数量,若该数量大于或等于设定阈值,则确定完成了针对目标模型区域的配准;若该数量小于设定阈值,则确定没有完成针对目标模型区域的配准。In the above 1011-1013, when the shape of the determination area is a circular area with the first key point of the target model area as the center point and a radius of R, the first key points in the registration data set and the target model area can be counted The distance between points is less than or equal to the number of way points of R, if the number is greater than or equal to the set threshold, it is determined that the registration for the target model area is completed; if the number is less than the set threshold, it is determined that the registration for the target is not completed Registration of model regions.

进一步地,在确定完成了针对目标模型区域的配准后,可以显示相应的提示以提示针对目标模型区域已完成配准。例如,参见图11,在手术配准交互界面上显示有气管树三维模型100的二维正视图,以目标模型区域为气管树三维模型100中的主气管模型区域为例,则可以将二维正视图中的主气管模型区域的显示颜色更新为如灰色、并在主气管模型区域上显示一配准完成标识如以此提示已针对主气管模型区域完成配准。Further, after it is determined that the registration of the target model region is completed, a corresponding prompt may be displayed to prompt that the registration of the target model region has been completed. For example, referring to FIG. 11 , a two-dimensional front view of the three-dimensional model of the trachea tree 100 is displayed on the surgical registration interface. Taking the target model area as the main trachea model area in the three-dimensional model of the trachea tree 100 as an example, the two-dimensional The display color of the main trachea model area in the front view is updated to gray, and a registration completion mark is displayed on the main trachea model area, such as This is a reminder that the registration has been done for the main trachea model region.

上述主要是从每个模型区域内包含一个第一关键点的角度,来介绍针对目标模型区域执行错误路径判断、以及判断是否针对目标模型区域完成配准的。若本实施例中每个模型区域内包含至少一个第一关键点,相应地,上述目标模型区域包含至少两个第一关键点时,则:本申请实施例提供的所述方法还可包括如下步骤:The above is mainly from the perspective that each model region contains a first key point, and introduces the execution of the wrong path judgment for the target model region and the judgment of whether the registration is completed for the target model region. If each model area in this embodiment contains at least one first key point, and correspondingly, when the above-mentioned target model area contains at least two first key points, then: the method provided in the embodiment of the present application may also include the following step:

107’、获取两个目标点之间的规划路径;其中,所述两个目标点为从所述基准点和目标模型区域内包含的至少两个第一关键点中确定出与定位传感器相邻的两个点;所述规划路径是基于所述气管树三维模型的中心线信息,规划出的所述两个目标点之间的最短路径;107'. Obtain a planned path between two target points; wherein, the two target points are determined from the reference point and at least two first key points contained in the target model area to be adjacent to the positioning sensor two points; the planned path is the shortest path between the two target points planned based on the centerline information of the three-dimensional model of the trachea tree;

108’、确定所述定位传感器在所述气管树三维模型中从第一目标点移动至当前在所述目标模型区域中位置最短的移动路径;所述第一目标点为所述两个目标点中所述定位传感器已超过的目标点;108'. Determine the shortest movement path where the positioning sensor moves from the first target point to the current position in the target model area in the three-dimensional model of the tracheal tree; the first target point is the two target points Target points that have been exceeded by the positioning sensor as described in ;

109’将所述移动路径与所述规划路径进行比对,以确定所述定位传感器是否按照所述规划路径移动;109' comparing the moving path with the planned path to determine whether the positioning sensor moves according to the planned path;

1010’、按照所述规划路径移动时,触发上述步骤105中的计算步骤,并将所述移动路径上的所有路径点添加至配准数据集中。1010'. When moving according to the planned path, trigger the calculation step in step 105 above, and add all waypoints on the moving path to the registration data set.

例如,结合图3b和图4a,以目标模型区域为主气管模型区域,该主气管模型区域内包含有如下两个第一关键点:主气管关键点10’和主气管关键点10为例,假设定位传感器当前在主气管模型区域中的位置处于基准点A和主气管关键点10’之间,则从基准点A、主气管关键点10’和主气管关键点10中所确定出的与定位传感器相邻的两个点即为基准点A和主气管关键点10’;其中,基准点A为定位传感器经移动已超过的第一目标点;之后,可将获取到的基准点A和主气管关键点10’之间的规划路径、与确定出的定位传感器从基准点A移动至当前在主气管模型区域中位置最短的移动路径进行比对,以此根据比对结果确定定位传感器是否在主气管模型区域中按照上述规划路径来移动,若是,则触发针对主气管模型区域触发配准进度的计算,并将上述移动路径添加至配准数据集。For example, in combination with Fig. 3b and Fig. 4a, the target model area is taken as the main trachea model area, and the main trachea model area contains the following two first key points: the main trachea key point 10' and the main trachea key point 10 as an example, Assuming that the current position of the positioning sensor in the main trachea model area is between the reference point A and the main trachea key point 10', the relationship The two points adjacent to the positioning sensor are the reference point A and the key point 10' of the main trachea; wherein, the reference point A is the first target point that the positioning sensor has moved beyond; after that, the obtained reference point A and The planned path between the key points 10' of the main trachea is compared with the determined moving path of the positioning sensor from the reference point A to the shortest position in the main trachea model area, so as to determine whether the positioning sensor is Move in the main trachea model area according to the above-mentioned planned path, if yes, trigger the calculation of the registration progress for the main trachea model area, and add the above-mentioned moving path to the registration data set.

有关上述107’~1010’中所述的规划路径、移动路径、比对等的具体实现,可参见上文中与步骤107~1010相关的内容。For the specific implementation of the planned path, moving path, comparison, etc. described in the above 107'-1010', please refer to the content related to steps 107-1010 above.

进一步地,本实施例提供的所述方法还可包括如下步骤:Further, the method provided in this embodiment may also include the following steps:

1011’、以所述目标模型区域包含的至少两个第一关键点中距离所述基准点最远的第一关键点为中心点,确定判定区域;1011'. Taking the first key point farthest from the reference point among the at least two first key points included in the target model area as the center point, determine the judgment area;

1012’、确定所述配准数据集中包含的路径点在所述判定区域内的数量;1012'. Determine the number of waypoints included in the registration data set within the decision area;

1013’、根据所述数量,确定是否完成针对所述目标模型区域的配准。1013'. According to the quantity, determine whether to complete the registration of the target model region.

有关上述1011’~1013’的具体实现描述,可参见上文与步骤1011~1013相关的内容。For the specific implementation description of the above steps 1011'~1013', please refer to the content related to steps 1011~1013 above.

此外,在确定已完成针对目标模型区域的配准后,若通过返回执行上述步骤103~104,监测到定位传感器进入下一个目标模型区域,则可以再次执行上述步骤105~106以实现针对该下一个目标模型区域的配准进度检测,进而确定是否完成了针对该下一个目标模型区域的配准。依此,在监测到针对气管树三维模型包含的所有模型区域均完成了配准后,便可判定针对整个肺部气管完成了配准。In addition, after it is determined that the registration for the target model area has been completed, if it is detected that the positioning sensor enters the next target model area by returning to the above-mentioned steps 103-104, the above-mentioned steps 105-106 can be performed again to realize the registration for the next target model area. The registration progress detection of a target model area, and then determine whether the registration for the next target model area is completed. Accordingly, after it is detected that the registration has been completed for all model regions contained in the three-dimensional model of the tracheal tree, it can be determined that the registration has been completed for the entire lung trachea.

为了便于医生直观了解配准进度,本实施例还可将针对气管树三维模型中各模型区域的配准进度进行显示,并在确定配准完成后,输出相应的提示,提示可以为但不局限于:改变相应的模型区域的颜色、为相应的模型区域调整已完成配准的标识,语音提示等。有关提示的具体描述,可参见结合图11所述的相关内容。In order to facilitate doctors to intuitively understand the registration progress, this embodiment can also display the registration progress of each model area in the three-dimensional model of the tracheal tree, and output corresponding prompts after the registration is confirmed. The prompts can be but not limited to For: changing the color of the corresponding model area, adjusting the registered logo for the corresponding model area, voice prompts, etc. For a specific description of the prompt, refer to the relevant content described in conjunction with FIG. 11 .

另外,本申请实施例还可以计算气管树三维模型的分叉角度信息(包含多个分叉角度)并显示,以为医生操作定位传感器在肺部气管移动提供依据。上述分叉角度信息,可以根据气管树三维模型的中心线信息计算,具体地,可根据气管树三维模型中各气管模型的中心线计算,其中,一个分叉角度是指一个气管模型的中心线与其相邻的另一个气管模型的中心线的夹角大小,换句化也可以说,一个分叉角度是指存在分叉关系的两个气管模型的中心线之间的夹角大小。即,本实施例提供的所述方法还可包括如下步骤:In addition, the embodiment of the present application can also calculate and display bifurcation angle information (including multiple bifurcation angles) of the three-dimensional model of the tracheal tree, so as to provide a basis for the doctor to operate the positioning sensor to move the lung trachea. The information on the above-mentioned bifurcation angle can be calculated according to the centerline information of the three-dimensional model of the trachea tree, specifically, it can be calculated according to the centerline of each trachea model in the three-dimensional model of the trachea tree, wherein a bifurcation angle refers to the centerline of a trachea model The angle between the centerlines of another adjacent trachea model, in other words, a bifurcation angle refers to the angle between the centerlines of two trachea models that have a bifurcation relationship. That is, the method provided in this embodiment may also include the following steps:

1014、根据气管树三维模型的中心线信息,确定所述气管树三维模型中多个气管模型各自的中心线;1014. According to the centerline information of the three-dimensional model of the trachea tree, determine the centerlines of the multiple trachea models in the three-dimensional model of the trachea tree;

1015、根据所述多个气管模型各自的中心线,确定所述气管树三维模型的分叉角度信息;其中,所述分叉角度信息包含多个分叉角度,一个分叉角度为存在分叉关系的两个气管模型的中心线的夹角大小;1015. Determine the bifurcation angle information of the three-dimensional model of the trachea tree according to the respective centerlines of the plurality of trachea models; wherein the bifurcation angle information includes multiple bifurcation angles, and one bifurcation angle indicates that there is a bifurcation The angle between the centerlines of the two trachea models of the relationship;

1016、在所述气管树三维模型上显示所述分叉角度信息,以便于用户基于所述分叉角度信息,操控所述定位传感器在所述肺部气管中移动。1016. Display the bifurcation angle information on the three-dimensional model of the trachea tree, so that the user can manipulate the positioning sensor to move in the lung trachea based on the bifurcation angle information.

例如,参见图3a,主气管模型1的中心线与右主支气管模型11的中心线之间的夹角,便为一个分叉角度;右主支气管模型11的中心线与右上叶支气管模型111的中心线之间的夹角,便为另一个分叉角度,等等。以此类推,可以得到其他剩余分叉角度。For example, referring to Fig. 3 a, the included angle between the centerline of the main trachea model 1 and the centerline of the right main bronchus model 11 is a bifurcation angle; the centerline of the right main bronchus model 11 and the right upper lobe bronchus model 111 The angle between the centerlines is another bifurcation angle, and so on. By analogy, other remaining bifurcation angles can be obtained.

综上,本实施例提供的技术方案,是在获取针对肺部气管所重建出的气管树三维模型的基础上,基于获取到的气管树三维模型中的多个第一关键点来对该气管树三维模型进行划分,可划分得到多个模型区域,每个模型区域内包含至少一个第一关键点;进一步地,根据获取到的定位传感器在肺部气管内当前的第一位置信息,可确定出定位传感器在气管树三维模型中的第二位置信息以及所处的目标模型区域,并根据该第二位置信息可计算出定位传感器与目标模型区域包含的至少一个第一关键点的第一距离,进而根据该第一距离来确定针对目标模型区域的配准进度。采用本实施例提供的技术方案,通过将定位传感器与目标模型区域中相应的第一关键点的第一距离,作为该目标模型区域的配准进度的衡量标准,为评价术中针对肺部气管配准的配准完成情况提供了客观性标准,利于提高配准完成情况确定的精准性;此外,基于确定出的目标模型区域的配准进度,还有助于后续实现给于用户(如临床医师)相应的配准进度信息反馈,进而使用户直观上即可了解目标模型区域的配准完成情况,能为用户操作定位传感器在肺部气管内移动提供有效辅助,从而利于保证配准数据采集的充分性,可为后续精准引导手术进行提供保障。To sum up, the technical solution provided by this embodiment is based on obtaining the three-dimensional model of the tracheal tree reconstructed for the pulmonary trachea, and based on multiple first key points in the obtained three-dimensional model of the tracheal tree The three-dimensional tree model can be divided into multiple model areas, and each model area contains at least one first key point; further, according to the obtained first position information of the positioning sensor in the lung trachea, it can be determined Obtain the second position information of the positioning sensor in the three-dimensional model of the trachea tree and the target model area where it is located, and calculate the first distance between the positioning sensor and at least one first key point contained in the target model area according to the second position information , and then determine the registration progress for the target model region according to the first distance. Using the technical solution provided in this embodiment, by using the first distance between the positioning sensor and the corresponding first key point in the target model area as a measure of the registration progress of the target model area, in order to evaluate the accuracy of the lung trachea in the operation The registration completion status of the registration provides an objective standard, which is conducive to improving the accuracy of the determination of the registration completion status; in addition, based on the determined registration progress of the target model area, it is also helpful for subsequent implementation to users (such as clinical Physician) corresponding registration progress information feedback, so that the user can intuitively understand the registration completion of the target model area, and can provide effective assistance for the user to operate the positioning sensor to move in the lung trachea, so as to ensure registration data collection The adequacy of the method can provide guarantee for subsequent precision-guided surgery.

这里需要补充说明的是:考虑到若定位传感器在肺部气管内若一直处于不移动情况下,使用定位传感器所采集到的点云数据(为定位传感器在肺部气管内的位置数据)往往是毫无意义的;以及,在刚开始的配准时候,使用定位传感器采集到的点云数据量往往会比较小,这种情况下,若便对定位传感器采集到的点云数据进行处理以用于进行配准进度的计算、配准操作是否完成的判断等,计算及判断等的结果准确性常会比较低,有上为此,本实施例是在确定使用定位传感器采集到的点云数量大于或等于设定数量阈值、以及确定定位传感的移动范围大于设定范围阈值的情况下,才开始对使用定位传感器采集到的点云数据进行处理,以确定定位传感器在肺部气管内当前位置的位置信息、在肺部气管内移动的轨迹数据等。上述也是本实施例中上文所述的在上述第一距离大于预设距离阈值的情况下,针对目标模型区域的配准进度统一设置为0的原因所在。What needs to be added here is: Considering that if the positioning sensor has been in the non-moving situation in the lung trachea, the point cloud data collected by the positioning sensor (which is the position data of the positioning sensor in the lung trachea) is often Meaningless; and, at the beginning of the registration, the amount of point cloud data collected by the positioning sensor is often relatively small. In this case, if the point cloud data collected by the positioning sensor is processed to use For the calculation of the registration progress, the judgment of whether the registration operation is completed, etc., the accuracy of the calculation and judgment results is often relatively low. For this reason, this embodiment determines that the number of point clouds collected by the positioning sensor is greater than or equal to the set number threshold, and when it is determined that the movement range of the positioning sensor is greater than the set range threshold, the point cloud data collected by the positioning sensor is started to be processed to determine the current position of the positioning sensor in the lung trachea location information, trajectory data moving in the lungs and trachea, etc. The above is also the reason why the registration progress for the target model area is uniformly set to 0 when the first distance is greater than the preset distance threshold in this embodiment.

其中,在上述处理过程中会先对使用定位传感器采集到的点云数据进行预处理,以删除一些异常数据,如离群数据、因信号丢失产生的无效数据。例如,因受到干扰定位传感器内的线圈无法感应到磁场,从而无法产生自身无法产生电流,此时定位传感器便会将默认的一个信号发送至本实施例执行主体,该接收到的默认信号变为无效数据或也可能为离群数据。在完成上述预处理之后,可以对预处理后的点云数据进行栅格化处理以对点云数据进行降采样,便于对点云数据的进一步分析打下基础,提高进一步分析效率,进一步分析的目的包括但不限于:确定定位传感器在肺部气管内当前位置的位置信息、在肺部气管内移动的轨迹数据等。有关数据栅格化处理的具体实现,可参加现有相关内容,此处不再作具体赘述。Among them, in the above processing process, the point cloud data collected by the positioning sensor will be preprocessed first to delete some abnormal data, such as outlier data and invalid data due to signal loss. For example, because the coil in the positioning sensor cannot sense the magnetic field due to interference, it cannot generate its own current. At this time, the positioning sensor will send a default signal to the executive body of this embodiment, and the received default signal becomes Invalid data or possibly outlier data. After the above preprocessing is completed, the preprocessed point cloud data can be rasterized to downsample the point cloud data, which is convenient for laying the foundation for further analysis of the point cloud data, improving the efficiency of further analysis, and the purpose of further analysis Including but not limited to: determining the position information of the current position of the positioning sensor in the trachea of the lung, the trajectory data of the movement in the trachea of the lung, and the like. For the specific implementation of data rasterization processing, you can refer to the existing relevant content, and will not go into details here.

本申请一实施例还提供了一种与上述方法实施例对应的针对肺部气管的配准进度检测系统。如参见图6所示,该针对肺部手术导航的配准进度检测系统可包括:An embodiment of the present application also provides a registration progress detection system for lung trachea corresponding to the above method embodiment. As shown in FIG. 6, the registration progress detection system for lung surgery navigation may include:

磁场发生器,用于产生定位磁场;肺部气管处于所述定位磁场中;A magnetic field generator, used to generate a positioning magnetic field; the lungs and trachea are in the positioning magnetic field;

定位传感器,其在所述肺部气管内移动时能通过感应所述定位磁场产生定位信号,并将所述定位信号发送至处理设备,以由所述处理设备根据所述定位信号确定所述定位传感器在所述肺部气管中的位置信息;A positioning sensor, which can generate a positioning signal by sensing the positioning magnetic field when it moves in the trachea of the lung, and send the positioning signal to a processing device, so that the processing device can determine the positioning according to the positioning signal location information of the sensor in the trachea of the lung;

处理设备,用于执行本申请提供的针对肺部气管的配准进度检测方法实施例中的步骤。The processing device is configured to execute the steps in the embodiment of the method for detecting the registration progress of the pulmonary trachea provided in the present application.

有关上述磁场发生器和定位传感器的具体描述,可参加上文本申请其他实施例中相关内容,此处不再作具体赘述。For the specific description of the above-mentioned magnetic field generator and positioning sensor, refer to the relevant content in other embodiments of the above-mentioned application, and details will not be repeated here.

上述处理设备可以为具有数据处理功能的控制设备,比如图1c中示出的控制设备511(如为计算机设备)。控制设备可以独立设置在如图1c中示出的医生用的主控台车50上,或者也可以与如图1a中示出的磁导航装置20集成设置,即可设置在磁导航装置20上,本实施例对此不作限定。The above-mentioned processing device may be a control device with a data processing function, such as the control device 511 shown in FIG. 1c (such as a computer device). The control device can be independently installed on the doctor's main control trolley 50 as shown in FIG. , which is not limited in this embodiment.

这里需要补充说明的是,上述本申请实施例提供的针对肺部气管的配准进度检测系统中除了可包括上述各器件或设备之外,还可以包括其他设备或器件,有关可包括的其他设备或器件,可参加上述与图1a至图1c介绍的医疗系统相关内容。What needs to be added here is that the registration progress detection system for the pulmonary trachea provided by the above-mentioned embodiment of the present application may include other devices or devices in addition to the above-mentioned devices or devices. Regarding other devices that may be included Or devices, can participate in the above-mentioned content related to the medical system introduced in Figure 1a to Figure 1c.

图7示出了本申请一实施例提供的针对肺部气管的配准进度检测装置的结构框图。如图7所示,该针对肺部气管的配准进度检测装置包括:获取模块61、划分模块62、确定模块63以及计算模块64;其中,Fig. 7 shows a structural block diagram of an apparatus for detecting registration progress of a pulmonary trachea provided by an embodiment of the present application. As shown in FIG. 7 , the device for detecting the registration progress of the pulmonary trachea includes: an acquisition module 61, a division module 62, a determination module 63, and a calculation module 64; wherein,

获取模块61,用于获取基于肺部气管的医学影像图像所重建出的气管树三维模型和所述气管树三维模型中的多个第一关键点;An acquisition module 61, configured to acquire a three-dimensional model of the tracheal tree reconstructed based on medical imaging images of the lung trachea and a plurality of first key points in the three-dimensional model of the tracheal tree;

划分模块62,用于基于多个所述第一关键点对所述气管树三维模型进行划分,得到多个模型区域,其中,每个所述模型区域内包含至少一个第一关键点;A division module 62, configured to divide the three-dimensional model of the trachea tree based on a plurality of the first key points to obtain a plurality of model areas, wherein each of the model areas contains at least one first key point;

获取模块61,还用于获取定位传感器在所述肺部气管内当前位置的第一位置信息;The obtaining module 61 is also used to obtain the first position information of the current position of the positioning sensor in the lung trachea;

确定模块63,用于根据所述第一位置信息,确定所述定位传感器在所述气管树三维模型中的第二位置信息和所处的目标模型区域;A determining module 63, configured to determine, according to the first position information, the second position information of the positioning sensor in the three-dimensional model of the trachea tree and the target model area where it is located;

计算模块64,用于根据所述第二位置信息,计算所述定位传感器与所述目标模型区域包含的所述至少一个第一关键点的第一距离;A calculation module 64, configured to calculate a first distance between the positioning sensor and the at least one first key point included in the target model area according to the second position information;

确定模块63,还用于根据所述第一距离,确定针对所述目标模型区域的配准进度。The determining module 63 is further configured to determine a registration progress for the target model region according to the first distance.

进一步地,上述气管树三维模型包括多个气管模型,每个所述模型区域包括至少一个所述气管模型,其中,所述多个气管模型包括:主气管模型、与所述主气管模型相连的右肺支气管模型和左肺支气管模型,其中,所述右肺支气管模型包括:右主支气管模型、右上叶支气管模型、右下叶支气管模型;所述左肺支气管模包括:左主支气管模型、左上叶支气管模型、左下叶支气管模型;多个所述第一关键点包括:位于所述主气管模型上的主气管关键点、位于所述右上叶支气管模型上的右上叶关键点、位于所述右下叶支气管模型上的右下叶关键点、位于所述左上叶支气管模型上的左上叶关键点、位于所述左下叶支气管模型上的左下叶关键点。Further, the above three-dimensional model of the trachea tree includes multiple trachea models, each of the model areas includes at least one trachea model, wherein the multiple trachea models include: a main trachea model, a main trachea model connected to the main trachea model Right lung bronchus model and left lung bronchus model, wherein, the right lung bronchus model includes: right main bronchus model, right upper lobe bronchus model, right lower lobe bronchus model; described left lung bronchus model includes: left main bronchus model, left upper lobe bronchus model Lobe bronchus model, left lower lobe bronchus model; multiple first key points include: the main trachea key point located on the main trachea model, the right upper lobe key point located on the right upper lobe bronchus model, the right upper lobe key point located on the right The right lower lobe key point on the lower lobe bronchus model, the left upper lobe key point on the left upper lobe bronchus model, and the left lower lobe key point on the left lower lobe bronchus model.

上述划分模块62,在用于基于多个所述第一关键点对所述气管树三维模型进行划分,得到多个模型区域时,具体用于:获取所述气管树三维模型的基准点;所述基准点是基于所述主气管模型、所述右主支气管模型和所述左主支气管模型的交点确定的;根据所述主气管关键点和所述基准点,确定所述气管树三维模型的基准平面;根据所述基准平面和多个所述第一关键点,将所述气管树三维模型划分为多个模型区域。The above division module 62, when used to divide the three-dimensional model of the trachea tree based on the first key points to obtain multiple model areas, is specifically used to: acquire the reference point of the three-dimensional model of the trachea tree; The reference point is determined based on the intersection of the main trachea model, the right main bronchus model and the left main bronchus model; according to the main trachea key point and the reference point, determine the three-dimensional model of the trachea tree A reference plane: dividing the three-dimensional model of the trachea tree into multiple model regions according to the reference plane and the plurality of first key points.

进一步地,上述划分模块62,在用于根据所述主气管关键点和所述基准点,确定所述气管树三维模型的基准平面时,具体用于:根据所述主气管关键点和所述基准点,确定一用以反映所述主气管模型的主气管方向的向量;将过所述基准点、且与所述向量垂直的一平面,确定为所述基准平面。Further, when the above division module 62 is used to determine the reference plane of the three-dimensional model of the trachea tree according to the key points of the main trachea and the reference point, it is specifically used to: according to the key points of the main trachea and the A reference point is used to determine a vector used to reflect the direction of the main trachea of the main trachea model; a plane passing through the reference point and perpendicular to the vector is determined as the reference plane.

进一步地,上述划分模块62,在用于根据所述基准平面和多个所述第一关键点,将所述气管树三维模型划分为多个模型区域时,具体用于:将所述气管树三维模型中位于所述基准平面上方的模型区域,确定为主气管模型区域;基于所述基准点和所述主气管关键点,确定一分割线;根据所述分割线,将所述气管树三维模型中位于所述基准平面下方的模型区域划分为右肺支气管模型区域、左肺支气管模型区域;根据所述右肺支气管模型区域内包含的所述右上叶关键点和所述右下叶关键点,将所述右肺支气管模型区域划分为右肺上叶模型区域、右肺下叶模型区域;根据所述左肺支气管模型区域内包含所述左上叶关键点和所述左下叶关键点,将所述左肺支气管模型区域划分为左肺上叶模型区域、左肺下叶模型区域。Further, when the division module 62 is used to divide the three-dimensional model of the trachea tree into multiple model regions according to the reference plane and the plurality of first key points, it is specifically used to: divide the trachea tree The model area located above the reference plane in the three-dimensional model is determined as the main trachea model area; based on the reference point and the key point of the main trachea, a dividing line is determined; according to the dividing line, the trachea tree is three-dimensionally The model area located below the reference plane in the model is divided into the right lung bronchus model area and the left lung bronchus model area; according to the right upper lobe key points and the right lower lobe key points contained in the right lung bronchus model area , dividing the right lung bronchus model area into right upper lobe model area and right lower lobe model area; according to the left upper lobe key points and left lower lobe key points contained in the left lung bronchus model area, the The left lung bronchi model area is divided into a left upper lobe model area and a left lower lobe model area.

进一步地,上述划分模块62,在用于根据所述右肺支气管模型区域内包含的所述右上叶关键点和所述右下叶关键点,将所述右肺支气管模型区域划分为右肺上叶模型区域、右肺下叶模型区域时,具体用于:根据所述右上叶关键点和所述右下叶关键点,确定一条第一水平线;其中,所述第一水平线位于所述右上叶关键点和所述右下叶关键点之间、且平行于所述基准平面;将所述右肺支气管模型区域中位于所述第一水平线上方的模型区域,确定为所述右肺上叶模型区域;将所述右肺支气管模型区域中位于所述第一水平线下方的模型区域,确定为所述右肺下叶模型区域。Further, the above division module 62 is used to divide the right lung bronchus model area into right lung bronchus model area according to the right upper lobe key points and the right lower lobe key points contained in the right lung bronchus model area. Lobe model area, right lower lobe model area, it is specifically used to: determine a first horizontal line according to the key points of the upper right lobe and the key points of the lower right lobe; wherein, the first horizontal line is located in the upper right lobe Between the key point and the key point of the right lower lobe, and parallel to the reference plane; the model area above the first horizontal line in the right lung bronchus model area is determined as the right upper lobe model area: determining the model area below the first horizontal line in the right lung bronchi model area as the right lower lobe model area.

进一步地,上述划分模块62,在用于根据所述右上叶关键点和所述右下叶关键点,确定一条第一水平线,包括:将过所述右上叶关键点和所述右下叶关键点的第一连线的中心点,且平行于所述基准平面的水平线,确定为所述第一水平线;或者,在所述右肺支气管模型区域中确定一个第二关键点,其中,所述第二关键点的纵坐标与所述右上叶关键点、所述右下叶关键点中的一个关键点的纵坐标相同,所述第二关键点的横坐标与所述右上叶关键点、所述右下叶关键点中的另一个关键点相同;将过所述第二关键点与所述右上叶关键点、所述右下叶关键点中的另一个关键点的第二连线的中心点,且与所述第二连线垂直的水平线,确定为所述第一水平线。Further, the above division module 62 is used to determine a first horizontal line according to the key point of the upper right leaf and the key point of the lower right leaf, including: passing the key point of the upper right leaf and the key point of the lower right leaf The center point of the first connecting line of points, and the horizontal line parallel to the reference plane, is determined as the first horizontal line; or, a second key point is determined in the right lung bronchus model area, wherein the The ordinate of the second key point is the same as the ordinate of one of the key points of the upper right leaf and the key point of the lower right leaf, and the abscissa of the second key point is the same as that of the key point of the upper right leaf and the key point of the lower right leaf. The other key point in the key point of the lower right leaf is the same; the center of the second connection line passing through the second key point and the key point of the upper right leaf and another key point in the key point of the lower right leaf point, and a horizontal line perpendicular to the second connecting line is determined as the first horizontal line.

进一步地,上述划分模块62,在用于根据所述左肺支气管模型区域内包含的所述左上关键点和所述左下关键点,将所述左肺支气管模型区域划分为左肺上叶模型区域、左肺下叶模型区域时,具体用于:根据所述左上叶关键点和所述左下叶关键点,确定一条第二水平线;其中,所述第二水平线位于所述左上叶关键点和所述左下叶关键点之间、且平行于所述基准平面;将所述左肺支气管模型区域中位于所述第二水平线上方的模型区域,确定为所述左肺上叶模型区域;将所述左肺支气管模型区域中位于所述第二水平线下方的模型区域,确定为所述左肺下叶模型区域。Further, the above division module 62 is used to divide the left lung bronchus model area into left lung upper lobe model area according to the left upper key point and the left lower key point contained in the left lung bronchus model area 1. When the left lower lobe model area is used, it is specifically used to: determine a second horizontal line according to the left upper lobe key point and the left lower lobe key point; wherein, the second horizontal line is located between the left upper lobe key point and the left upper lobe key point Between the key points of the left lower lobe and parallel to the reference plane; the model area above the second horizontal line in the left lung bronchus model area is determined as the left upper lobe model area; the A model area located below the second horizontal line in the left pulmonary bronchi model area is determined as the left lower lobe model area.

进一步地,上述划分模块62,在用于根据所述左上叶关键点和所述左下叶关键点,确定一条第二水平线,包括:将过所述左上叶关键点和所述左下叶关键点的第三连线的中心点、且平行于所述基准面的水平线,确定为所述第二水平线;或者,在所述左肺支气管模型区域中确定一个第三关键点,其中,所述第三关键点的纵坐标与所述左上叶关键点、所述左下叶关键点中的一个关键点的纵坐标相同,所述第三关键点的横坐标与所述左上叶关键点、所述左下叶关键点中的另一个关键点相同;将过所述第三关键点与所述左上叶关键点、所述左下叶关键点中的另一个关键点的第四连线的中心点,且与所述第四连线垂直的水平线,确定为所述第二水平线。Further, the above division module 62 is used to determine a second horizontal line according to the key point of the upper left leaf and the key point of the lower left leaf, including: passing through the key point of the upper left leaf and the key point of the lower left leaf The center point of the third line and the horizontal line parallel to the reference plane is determined as the second horizontal line; or, a third key point is determined in the left lung bronchus model area, wherein the third The ordinate of the key point is the same as the ordinate of a key point in the left upper leaf key point and the left lower leaf key point, and the abscissa of the third key point is the same as the left upper leaf key point, the left lower leaf key point Another key point in the key point is the same; the center point of the fourth connection line passing through the third key point and the left upper leaf key point, another key point in the left lower leaf key point, and with the A horizontal line perpendicular to the fourth connecting line is determined as the second horizontal line.

进一步地,每个所述模型区域包含一个第一关键点;以及,上述获取模块61,还可用于获取针对所述目标模型区域执行路径规划得到的规划路径;其中,所述规划路径为根据所述气管树三维模型的中心线信息,规划出的所述基准点和所述目标模型区域内包含的一个第一关键点之间的最短路径;Further, each of the model areas contains a first key point; and, the acquisition module 61 can also be used to acquire a planned path obtained by executing path planning for the target model area; wherein, the planned path is based on the Centerline information of the three-dimensional model of the trachea tree, the shortest path between the planned reference point and a first key point included in the target model area;

上述确定模块63,还可用于确定所述定位传感器在所述气管树三维模型中从所述基准点移动至当前在所述目标模型区域中位置最短的移动路径;The above determination module 63 can also be used to determine the shortest movement path of the positioning sensor moving from the reference point to the current position in the target model area in the three-dimensional model of the trachea tree;

以及,本申请实施例提供的所述装置还可包括:对比模块,用于将所述移动路径与所述规划路径进行对比,以确定所述定位传感器是否按照所述规划路径移动;触发模块,用于按照所述规划路径移动时,触发执行所述根据所述第二位置信息,计算所述定位传感器与所述目标模型区域包含的一个第一关键点之间的第一距离的步骤,并将所述移动路径上的所有路径点添加至配准数据集。And, the device provided in the embodiment of the present application may further include: a comparison module, configured to compare the moving path with the planned path, so as to determine whether the positioning sensor moves according to the planned path; a trigger module, When moving according to the planned path, triggering the execution of the step of calculating the first distance between the positioning sensor and a first key point contained in the target model area according to the second position information, and All waypoints on the path of movement are added to the registration dataset.

进一步地,上述确定模块63,在用于确定所述定位传感器在所述气管树三维模型中从所述基准点移动至在所述目标模型区域的当前位置最短的移动路径时,可具体用于:获取所述定位传感器在所述肺部气管内移动的第一轨迹数据;根据所述第一轨迹数据,确定所述定位传感器在所述气管树三维模型中从所述基准点移动至在所述目标模型区域中当前位置的第二轨迹数据;确定所述第二轨迹数据中的第一类轨迹点和第二类轨迹点;其中,所述第一类轨迹点为反映所述定位传感器执行回退动作的轨迹点,所述第二类轨迹点是与所述第一类轨迹点相对应的满足删除规则并反映所述定位传感器执行前进动作的轨迹点;将所述第二轨迹数据中的所述第一类轨迹点和所述第二类轨迹点进行删除;根据删除后的第二轨迹数据,确定所述移动路径;其中,所述满足删除规则包括:时间戳早于第一类轨迹点的时间戳;与基准点的距离大于或等于第一类轨迹点中时间戳最晚的轨迹点与基准点的距离、且小于或等于第一类轨迹点中时间戳最早的轨迹点与基准点的距离。Further, when the determination module 63 is used to determine the shortest moving path of the positioning sensor moving from the reference point to the current position in the target model area in the three-dimensional model of the tracheal tree, it can be specifically used to : Acquiring the first trajectory data of the movement of the positioning sensor in the lung trachea; according to the first trajectory data, determining that the positioning sensor moves from the reference point to the position in the three-dimensional model of the trachea tree The second trajectory data of the current position in the target model area; determine the first type of trajectory points and the second type of trajectory points in the second trajectory data; wherein, the first type of trajectory points reflect the execution of the positioning sensor The trajectory point of the retreat action, the second type of trajectory point is a trajectory point corresponding to the first type of trajectory point that satisfies the deletion rule and reflects that the positioning sensor performs a forward movement; The first type of track point and the second type of track point are deleted; according to the deleted second track data, the movement path is determined; wherein, the satisfying the deletion rule includes: the time stamp is earlier than the first type The timestamp of the track point; the distance from the reference point is greater than or equal to the distance between the track point with the latest timestamp and the reference point in the first type of track point, and less than or equal to the distance between the track point with the earliest time stamp in the first type of track point and The distance from the reference point.

进一步地,上述确定模块63,在用于确定所述第二轨迹数据中的第一类轨迹点时,可具体用于:根据所述第二轨迹数据中包含的多个轨迹点的时间戳,确定时间戳相邻的多对轨迹点;计算各对轨迹点包含的第一轨迹点、第二轨迹点分别相对于所述基准点的第二距离、第三距离;其中,第二轨迹点的时间戳晚于第一轨迹点的时间戳;根据所述第二距离及所述第三距离,判断各对轨迹点是否为第一类轨迹点。Further, when the above-mentioned determination module 63 is used to determine the first type of trajectory points in the second trajectory data, it may be specifically configured to: according to the time stamps of multiple trajectory points contained in the second trajectory data, Determine multiple pairs of track points adjacent to the time stamp; calculate the second distance and the third distance of the first track point and the second track point contained in each pair of track points relative to the reference point; wherein, the second track point The time stamp is later than the time stamp of the first track point; according to the second distance and the third distance, it is judged whether each pair of track points is the first type of track point.

进一步地,目标对轨迹点为多对轨迹点中的一对;以及上述确定模块63,在用于根据目标对轨迹点对应的所述第二距离及所述第三距离,判断目标对轨迹点是否为第一类轨迹点时,可具体用于:若所述第三距离小于所述第二距离,则所述目标对轨迹点是第一类轨迹点;若所述第三距离大于或等于所述第二距离,则所述目标对轨迹点不是第一类轨迹点。Further, the target pair of track points is one of multiple pairs of track points; and the determination module 63 is used to determine the target pair of track points according to the second distance and the third distance corresponding to the target pair of track points Whether it is the first type of track point, it can be specifically used for: if the third distance is less than the second distance, then the target pair track point is the first type of track point; if the third distance is greater than or equal to The second distance, the target pair track point is not the first type of track point.

进一步地,上述确定模块63,还用于以所述目标模型区域包含的一个第一关键点为中心点,确定判定区域;确定所述配准数据集中包含的路径点在所述判定区域内的数量;根据所述数量,确定是否完成针对所述目标模型区域的配准。Further, the above determination module 63 is also used to determine the judgment area with a first key point included in the target model area as the center point; Quantity; according to the quantity, determine whether to complete the registration for the target model region.

这里需要说明的是:上述实施例提供的针对肺部气管的配准进度检测装置可实现上述本申请提供的方法实施例中描述的技术方案,上述各模块或单元具体实现的原理可参见上述本申请提供的针对肺部气管的配准进度检测方法实施例中的相应内容,此处不再赘述。What needs to be explained here is that the registration progress detection device for the pulmonary trachea provided in the above embodiment can realize the technical solution described in the above method embodiment provided in this application. Corresponding content in the embodiment of the registration progress detection method for lung trachea provided in the application will not be repeated here.

图8示出了本申请一实施例提供一个电子设备的结构示意图。如图8所示,所述电子设备包括:存储器71以及处理器72。其中,上述存储器71用于存储计算机程序;所述处理器,与所述存储器耦合,用于执行所述存储器中存储的所述计算机程序,以用于实现本申请提供的针对肺部气管的配准进度检测方法实施例中的步骤或功能。FIG. 8 shows a schematic structural diagram of an electronic device provided by an embodiment of the present application. As shown in FIG. 8 , the electronic device includes: a memory 71 and a processor 72 . Wherein, the above-mentioned memory 71 is used to store computer programs; the processor, coupled with the memory, is used to execute the computer programs stored in the memory, so as to realize the configuration for the pulmonary trachea provided by the present application. The steps or functions in the embodiments of the quasi-progress detection method.

上述存储器71可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The above-mentioned memory 71 can be realized by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.

上述电子设备可指的是上述图6中示出的处理设备。The aforementioned electronic device may refer to the aforementioned processing device shown in FIG. 6 .

进一步,如图8所示,电子设备还可包括:通信组件73、显示器74、电源组件75及音频组件76等其它组件。图8中仅示意性给出部分组件,并不意味着该电子设备只包括图8所示组件。Further, as shown in FIG. 8 , the electronic device may further include: a communication component 73 , a display 74 , a power supply component 75 , an audio component 76 and other components. FIG. 8 only schematically shows some components, which does not mean that the electronic device only includes the components shown in FIG. 8 .

相应地,本申请实施例还提供一种存储有计算机程序的计算机可读存储介质,所述计算机程序被计算机执行时能够实现上述本申请实施例提供的针对肺部气管的配准进度检测方法中的步骤或功能。Correspondingly, an embodiment of the present application further provides a computer-readable storage medium storing a computer program, and when the computer program is executed by a computer, it can implement the registration progress detection method for the pulmonary trachea provided by the above-mentioned embodiment of the present application. steps or functions.

本申请中的方法可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。图9示意性地示出了本申请提供的一计算机程序产品的框图。所述计算机程序产品包括计算机程序/指令81,当所述计算机程序/指令81被诸如图8所示的处理器72执行时,可全部或部分地执行本申请各实施例提供的针对肺部气管的配准进度检测方法中的步骤或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、网络设备、用户设备、核心网设备、OAM或者其它可编程装置。The methods in this application may be fully or partially implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. Fig. 9 schematically shows a block diagram of a computer program product provided by the present application. The computer program product includes a computer program/instruction 81. When the computer program/instruction 81 is executed by the processor 72 such as shown in FIG. A step or function in a registration progress detection method for . The computer may be a general computer, a special computer, a computer network, a network device, a user device, a core network device, an OAM or other programmable devices.

所述计算机程序或指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机程序或指令可以从一个网站站点、计算机、服务器或数据中心通过有线或无线方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是集成一个或多个可用介质的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,例如,软盘、硬盘、磁带;也可以是光介质,例如,数字视频光盘;还可以是半导体介质,例如,固态硬盘。该计算机可读存储介质可以是易失性或非易失性存储介质,或可包括易失性和非易失性两种类型的存储介质。The computer program or instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program or instructions may be downloaded from a website, computer, A server or data center transmits to another website site, computer, server or data center by wired or wireless means. The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrating one or more available media. The available medium may be a magnetic medium, such as a floppy disk, a hard disk, or a magnetic tape; it may also be an optical medium, such as a digital video disk; or it may be a semiconductor medium, such as a solid state disk. The computer readable storage medium may be a volatile or a nonvolatile storage medium, or may include both volatile and nonvolatile types of storage media.

以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are only illustrative, and 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 it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without any creative effort.

通过以上实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be realized by means of software plus a necessary general-purpose hardware platform, and of course also by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products can be stored in computer-readable storage media, such as ROM/RAM, magnetic discs, optical discs, etc., including several instructions to make a computer device (which may be a personal computer, server, or network device, etc.) execute the methods described in various embodiments or some parts of the embodiments.

最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, rather than limiting them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present application.

Claims (16)

1. A registration progress detection method for a pulmonary trachea, comprising:
acquiring a three-dimensional model of a tracheal tree reconstructed based on a medical image of a lung trachea and a plurality of first key points in the three-dimensional model of the tracheal tree;
dividing the three-dimensional model of the tracheal tree based on a plurality of first key points to obtain a plurality of model areas, wherein each model area comprises at least one first key point;
acquiring first position information of a current position of a positioning sensor in the lung trachea;
determining second position information of the positioning sensor in the three-dimensional model of the tracheal tree and a target model area where the positioning sensor is located according to the first position information;
calculating a first distance between the positioning sensor and the at least one first key point contained in the target model area according to the second position information;
and determining the registration progress of the target model area according to the first distance.
2. The method of claim 1, wherein the three-dimensional model of the airway tree comprises a plurality of airway models, each of the model regions comprising at least one of the airway models, wherein,
The plurality of tracheal models comprises: a main tracheal model, a right pulmonary bronchus model and a left pulmonary bronchus model connected to the main tracheal model, wherein the right pulmonary bronchus model comprises: a right main bronchus model, a right upper leaf bronchus model, and a right lower leaf bronchus model; the left lung broncho-mask includes: a left main bronchus model, a left upper leaf bronchus model, and a left lower leaf bronchus model;
the plurality of first keypoints includes: a main tracheal keypoint located on the main tracheal model, an upper right lobe keypoint located on the upper right lobe bronchial model, a lower right lobe keypoint located on the lower right lobe bronchial model, an upper left lobe keypoint located on the upper left lobe bronchial model, a lower left lobe keypoint located on the lower left lobe bronchial model.
3. The method of claim 2, wherein partitioning the three-dimensional model of the tracheal tree based on the plurality of first keypoints results in a plurality of model regions, comprising:
acquiring a datum point of the three-dimensional model of the tracheal tree; the fiducial point is determined based on an intersection of the main bronchi model, the right main bronchi model, and the left main bronchi model;
Determining a reference plane of the three-dimensional model of the tracheal tree according to the main tracheal key points and the reference points;
and dividing the three-dimensional model of the tracheal tree into a plurality of model areas according to the reference plane and the plurality of first key points.
4. A method according to claim 3, wherein determining the reference plane from the main airway key point and the reference point comprises:
determining a vector for reflecting the main air pipe direction of the main air pipe model according to the main air pipe key point and the datum point;
a plane passing through the reference point and perpendicular to the vector is determined as the reference plane.
5. A method according to claim 3, wherein dividing the three-dimensional model of the tracheal tree into a plurality of model regions based on the reference plane and the plurality of first keypoints comprises:
determining a model area above the reference plane in the three-dimensional model of the tracheal tree as a main tracheal model area;
determining a parting line based on the fiducial point and the primary airway key;
dividing a model area below the reference plane in the three-dimensional model of the tracheal tree into a right lung bronchus model area and a left lung bronchus model area according to the dividing line;
Dividing the right lung bronchus model region into a right lung upper lobe model region and a right lung lower lobe model region according to the right upper lobe key point and the right lower lobe key point contained in the right lung bronchus model region;
and dividing the left lung bronchus model region into a left upper lung model region and a left lower lung model region according to the left upper leaf key point and the left lower leaf key point contained in the left lung bronchus model region.
6. The method of claim 5, wherein dividing the right lung bronchus model region into a right upper lung lobe model region, a right lower lung lobe model region, based on the right upper lobe keypoints and the right lower lobe keypoints contained within the right lung bronchus model region, comprises:
determining a first horizontal line according to the upper right leaf key point and the lower right leaf key point; wherein the first horizontal line is located between the upper right leaf keypoint and the lower right leaf keypoint and is parallel to the reference plane;
determining a model region above the first horizontal line in the right lung bronchus model region as the right lung upper lobe model region;
And determining a model region below the first horizontal line in the right lung bronchus model region as the right lung inferior lobe model region.
7. The method of claim 6, wherein determining a first horizontal line based on the upper right leaf keypoint and the lower right leaf keypoint comprises:
determining a horizontal line which passes through the center point of a first connecting line of the upper right leaf key point and the lower right leaf key point and is parallel to the reference plane as the first horizontal line; or alternatively
Determining a second key point in the right lung bronchus model area, wherein the ordinate of the second key point is the same as the ordinate of one key point of the right upper lobe key point and the right lower lobe key point, and the abscissa of the second key point is the same as the other key point of the right upper lobe key point and the right lower lobe key point; and determining a horizontal line which passes through the center point of a second connecting line of the second key point and the other key point of the upper right leaf key point and the lower right leaf key point and is perpendicular to the second connecting line as the first horizontal line.
8. The method of claim 5, wherein dividing the left lung bronchus model region into a left upper lung lobe model region, a left lower lung lobe model region, based on the left upper keypoint and the left lower keypoint contained within the left lung bronchus model region, comprises:
Determining a second horizontal line according to the upper left leaf key point and the lower left leaf key point; wherein the second horizontal line is located between the upper left leaf keypoint and the lower left leaf keypoint and is parallel to the reference plane;
determining a model region above the second horizontal line in the left lung bronchus model region as the left lung upper lobe model region;
and determining a model region below the second horizontal line in the left lung bronchus model region as the left lung inferior lobe model region.
9. The method of claim 8, wherein determining a second horizontal line based on the upper left leaf keypoint and the lower left leaf keypoint comprises:
determining a horizontal line which passes through the center point of a third connecting line of the upper left leaf key point and the lower left leaf key point and is parallel to the reference plane as the second horizontal line; or alternatively
Determining a third key point in the left lung bronchus model area, wherein the ordinate of the third key point is the same as the ordinate of one key point of the left upper leaf key point and the left lower leaf key point, and the abscissa of the third key point is the same as the other key point of the left upper leaf key point and the left lower leaf key point; and determining a horizontal line which passes through the center point of a fourth connecting line of the third key point and the other key point of the upper left leaf key point and the lower left leaf key point and is perpendicular to the fourth connecting line as the second horizontal line.
10. The method according to any one of claims 3 to 9, wherein each of the model regions comprises a first keypoint;
and, the method further comprises:
acquiring a planned path obtained by executing path planning on the target model area; the planned path is the shortest path between the planned datum point and a first key point contained in the target model area according to the central line information of the three-dimensional model of the tracheal tree;
determining a movement path of the positioning sensor in the three-dimensional model of the tracheal tree from the reference point to the shortest position in the target model area;
comparing the moving path with the planned path to determine whether the positioning sensor moves according to the planned path;
and triggering and executing the step of calculating a first distance between the positioning sensor and one first key point contained in the target model area according to the second position information when the planned path moves, and adding all path points on the moving path to a registration data set.
11. The method of claim 10, wherein determining a path of movement for the positioning sensor to move in the three-dimensional model of the tracheal tree from the reference point to a shortest current position in the target model region comprises:
Acquiring first track data of the movement of the positioning sensor in the lung trachea;
determining second track data of the positioning sensor moving from the datum point to the current position in the target model area in the three-dimensional model of the tracheal tree according to the first track data;
determining a first type of track point and a second type of track point in the second track data; the first type of track points are track points reflecting the back action executed by the positioning sensor, and the second type of track points are track points which correspond to the first type of track points, meet a deletion rule and reflect the forward action executed by the positioning sensor;
deleting the first type track points and the second type track points in the second track data;
determining the moving path according to the deleted second track data;
wherein, the meeting the deletion rule includes: the time stamp is earlier than the time stamp of the first type of track point; the distance from the reference point is larger than or equal to the distance between the track point with the latest time stamp in the track points of the first type and the reference point, and smaller than or equal to the distance between the track point with the earliest time stamp in the track points of the first type and the reference point.
12. The method of claim 11, wherein determining a first type of trajectory point in the second trajectory data comprises:
determining a plurality of pairs of track points with adjacent time stamps according to the time stamps of the track points contained in the second track data;
calculating a second distance and a third distance of a first track point and a second track point which are contained in each pair of track points relative to the datum point respectively; wherein the timestamp of the second trace point is later than the timestamp of the first trace point;
and judging whether each pair of track points is a first type of track point according to the second distance and the third distance.
13. The method of claim 12, wherein the target pair of trace points is one of a plurality of pairs of trace points;
judging whether the target pair track points are the first track points according to the second distance and the third distance corresponding to the target pair track points, wherein the judging comprises the following steps:
if the third distance is smaller than the second distance, the target pair track point is a first track point;
and if the third distance is greater than or equal to the second distance, the target pair track point is not the first track point.
14. The method as recited in claim 10, further comprising:
Determining a judging area by taking a first key point contained in the target model area as a central point;
determining the number of path points contained in the registration data set in the judging area;
based on the number, it is determined whether registration for the target model region is complete.
15. A registration progress detection system for a pulmonary trachea, comprising:
a magnetic field generator for generating a positioning magnetic field; the lung trachea is in the positioning magnetic field;
a positioning sensor capable of generating a positioning signal by sensing the positioning magnetic field when moving in the lung trachea, and transmitting the positioning signal to a processing device, so that the processing device determines position information of the positioning sensor in the lung trachea according to the positioning signal;
processing apparatus for performing the steps in the registration progress detection method for a pulmonary trachea according to any one of claims 1 to 14.
16. An electronic device, comprising: a memory and a processor, wherein,
the memory is used for storing a computer program;
the processor, coupled to the memory, for executing the computer program stored in the memory for implementing the steps in the registration progress detection method for pulmonary airways according to any of the preceding claims 1 to 14.
CN202310497894.9A 2023-05-05 2023-05-05 Registration progress detection method and system for lung trachea and electronic equipment Pending CN116636928A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310497894.9A CN116636928A (en) 2023-05-05 2023-05-05 Registration progress detection method and system for lung trachea and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310497894.9A CN116636928A (en) 2023-05-05 2023-05-05 Registration progress detection method and system for lung trachea and electronic equipment

Publications (1)

Publication Number Publication Date
CN116636928A true CN116636928A (en) 2023-08-25

Family

ID=87614483

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310497894.9A Pending CN116636928A (en) 2023-05-05 2023-05-05 Registration progress detection method and system for lung trachea and electronic equipment

Country Status (1)

Country Link
CN (1) CN116636928A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119138833A (en) * 2024-09-11 2024-12-17 首都医科大学附属北京儿童医院 Infant airway display system with electronic scale and early warning function

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101460908B1 (en) * 2013-08-09 2014-11-17 서울여자대학교 산학협력단 Lung tumor tracking system and the method in 4D CT images
CN109215032A (en) * 2017-06-30 2019-01-15 上海联影医疗科技有限公司 The method and system of image segmentation
CN112423652A (en) * 2018-06-19 2021-02-26 直观外科手术操作公司 Systems and methods related to registration for image guided surgery
US20220156925A1 (en) * 2019-03-14 2022-05-19 Koninklijke Philips N.V. Dynamic interventional three-dimensional model deformation
CN115120346A (en) * 2022-08-30 2022-09-30 中国科学院自动化研究所 Target point positioning method, device, electronic device and bronchoscopy system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101460908B1 (en) * 2013-08-09 2014-11-17 서울여자대학교 산학협력단 Lung tumor tracking system and the method in 4D CT images
CN109215032A (en) * 2017-06-30 2019-01-15 上海联影医疗科技有限公司 The method and system of image segmentation
CN112423652A (en) * 2018-06-19 2021-02-26 直观外科手术操作公司 Systems and methods related to registration for image guided surgery
US20220156925A1 (en) * 2019-03-14 2022-05-19 Koninklijke Philips N.V. Dynamic interventional three-dimensional model deformation
CN115120346A (en) * 2022-08-30 2022-09-30 中国科学院自动化研究所 Target point positioning method, device, electronic device and bronchoscopy system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119138833A (en) * 2024-09-11 2024-12-17 首都医科大学附属北京儿童医院 Infant airway display system with electronic scale and early warning function

Similar Documents

Publication Publication Date Title
US11804308B2 (en) Pathway planning system and method
JP6638027B2 (en) Path planning system and method
JP6586253B2 (en) Route planning system and method
US11547377B2 (en) System and method for navigating to target and performing procedure on target utilizing fluoroscopic-based local three dimensional volume reconstruction
US11896414B2 (en) System and method for pose estimation of an imaging device and for determining the location of a medical device with respect to a target
US11925452B2 (en) System and method for lung visualization using ultrasound
JP6503373B2 (en) Tracheal marking
CN110123450A (en) System and method for the conduit detection in fluoroscopic image and the display position for updating conduit
JP2010510815A (en) Adaptive navigation technology for navigating a catheter through a body passage or cavity
CN110301883B (en) Image-based wizard for navigating tubular networks
CN109561832B (en) Method for predicting respiratory cycle and improving end registration using soft-point features
CN112294436A (en) Cone beam and 3D fluoroscopic lung navigation
CN116747015A (en) Registration method and system for lung trachea and electronic equipment
CN116636928A (en) Registration progress detection method and system for lung trachea and electronic equipment
EP3861937B1 (en) Electromagnetic navigation bronchoscopy using ultrasound
CN117745772A (en) Pulmonary tracheal registration method, pulmonary tracheal registration system, computing device and computer storage medium
CN117765038A (en) Pulmonary tracheal registration method, pulmonary tracheal registration system, computing device and computer storage medium
CN120018825A (en) Systems and methods for determining the position or orientation of a medical device relative to a target
CN116098704A (en) Systems and methods for visualizing a medical device relative to a target
CN115916088A (en) System and associated method for assessing alignability of anatomical model

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